summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-10-27 17:03:09 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2018-11-06 19:17:50 +0000
commit7434882dd8dae78f598f41c9f9bcd42b2ee7f4a7 (patch)
treedf0481a09a8393ed50c3ca673c72741d8c0f67b0
parentdbcb6d0acbbd69b8a68ba117530e00300ec698ba (diff)
tidying
-rw-r--r--src/OS/os.h-Darwin2
-rw-r--r--src/src/ip.c2
-rw-r--r--src/src/receive.c12
-rw-r--r--src/src/tls-openssl.c6
4 files changed, 14 insertions, 8 deletions
diff --git a/src/OS/os.h-Darwin b/src/OS/os.h-Darwin
index 4667689c9..7e3a67c4e 100644
--- a/src/OS/os.h-Darwin
+++ b/src/OS/os.h-Darwin
@@ -51,7 +51,7 @@ in "man 2 getgroups". */
#define _DARWIN_UNLIMITED_GETGROUPS
#define EXIM_GROUPLIST_SIZE 64
-/* TCP Fast Open: Darwin uses a connectex() call
+/* TCP Fast Open: Darwin uses a connectx() call
rather than a modified sendto() */
#define EXIM_TFO_CONNECTX
diff --git a/src/src/ip.c b/src/src/ip.c
index 2a6a24922..552f7dc37 100644
--- a/src/src/ip.c
+++ b/src/src/ip.c
@@ -320,7 +320,7 @@ if (fastopen_blob && f.tcp_fastopen_ok)
fastopen_blob->len > 0 ? "with" : "no");
if (!fastopen_blob->data)
{
- tcp_out_fastopen = TFO_ATTEMPTED; /* we tried; unknown if useful yet */
+ tcp_out_fastopen = TFO_ATTEMPTED_NODATA; /* we tried; unknown if useful yet */
rc = 0;
}
else /* assume that no data was queued; block in send */
diff --git a/src/src/receive.c b/src/src/receive.c
index a5646811f..c86ad2f48 100644
--- a/src/src/receive.c
+++ b/src/src/receive.c
@@ -266,7 +266,7 @@ if (check_spool_space > 0 || msg_size > 0 || check_spool_inodes > 0)
space = receive_statvfs(TRUE, &inodes);
DEBUG(D_receive)
- debug_printf("spool directory space = %dK inodes = %d "
+ debug_printf("spool directory space = " PR_EXIM_ARITH "K inodes = %d "
"check_space = " PR_EXIM_ARITH "K inodes = %d msg_size = %d\n",
space, inodes, check_spool_space, check_spool_inodes, msg_size);
@@ -284,15 +284,15 @@ if (check_log_space > 0 || check_log_inodes > 0)
space = receive_statvfs(FALSE, &inodes);
DEBUG(D_receive)
- debug_printf("log directory space = %dK inodes = %d "
+ debug_printf("log directory space = " PR_EXIM_ARITH "K inodes = %d "
"check_space = " PR_EXIM_ARITH "K inodes = %d\n",
space, inodes, check_log_space, check_log_inodes);
- if ((space >= 0 && space < check_log_space) ||
- (inodes >= 0 && inodes < check_log_inodes))
+ if ( space >= 0 && space < check_log_space
+ || inodes >= 0 && inodes < check_log_inodes)
{
- log_write(0, LOG_MAIN, "log directory space check failed: space=%d "
- "inodes=%d", space, inodes);
+ log_write(0, LOG_MAIN, "log directory space check failed: space=" PR_EXIM_ARITH
+ " inodes=%d", space, inodes);
return FALSE;
}
}
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c
index f0351451c..3299c2046 100644
--- a/src/src/tls-openssl.c
+++ b/src/src/tls-openssl.c
@@ -71,6 +71,8 @@ functions from the OpenSSL library. */
# define EXIM_HAVE_OPENSSL_CHECKHOST
# define EXIM_HAVE_OPENSSL_DH_BITS
# define EXIM_HAVE_OPENSSL_TLS_METHOD
+# else
+# define EXIM_NEED_OPENSSL_INIT
# endif
# if OPENSSL_VERSION_NUMBER >= 0x010000000L \
&& (OPENSSL_VERSION_NUMBER & 0x0000ff000L) >= 0x000002000L
@@ -1714,8 +1716,10 @@ cbinfo->host = host;
cbinfo->event_action = NULL;
#endif
+#ifdef EXIM_NEED_OPENSSL_INIT
SSL_load_error_strings(); /* basic set up */
OpenSSL_add_ssl_algorithms();
+#endif
#ifdef EXIM_HAVE_SHA256
/* SHA256 is becoming ever more popular. This makes sure it gets added to the
@@ -3056,8 +3060,10 @@ uschar *s, *expciphers, *err;
/* this duplicates from tls_init(), we need a better "init just global
state, for no specific purpose" singleton function of our own */
+#ifdef EXIM_NEED_OPENSSL_INIT
SSL_load_error_strings();
OpenSSL_add_ssl_algorithms();
+#endif
#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_SHA256)
/* SHA256 is becoming ever more popular. This makes sure it gets added to the
list of available digests. */