summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2014-05-30 12:58:26 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2014-05-30 12:58:26 +0100
commit32d07012f108f56aaf8f03468fa7ef2e8635325c (patch)
treeb46b16dd0e55bfd8b3d086ceef64c1d8a97104df
parent00bff6f61e05faee0a5a76d3b882f6d1dd96537c (diff)
Fix no-ssl build
-rw-r--r--src/src/readconf.c2
-rw-r--r--src/src/transports/smtp.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/src/readconf.c b/src/src/readconf.c
index 4db0cbbe5..adb538c59 100644
--- a/src/src/readconf.c
+++ b/src/src/readconf.c
@@ -3374,12 +3374,12 @@ if (openssl_options != NULL)
"openssl_options parse error: %s", openssl_options);
# endif
}
-#endif
if (gnutls_require_kx || gnutls_require_mac || gnutls_require_proto)
log_write(0, LOG_MAIN, "WARNING: main options"
" gnutls_require_kx, gnutls_require_mac and gnutls_require_protocols"
" are obsolete\n");
+#endif /*SUPPORT_TLS*/
}
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index 88f796e33..33c91a67a 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -401,12 +401,14 @@ for them, but do not do any lookups at this time. */
host_build_hostlist(&(ob->fallback_hostlist), ob->fallback_hosts, FALSE);
+#ifdef SUPPORT_TLS
if ( ob->gnutls_require_kx
|| ob->gnutls_require_mac
|| ob->gnutls_require_proto)
log_write(0, LOG_MAIN, "WARNING: smtp transport options"
" gnutls_require_kx, gnutls_require_mac and gnutls_require_protocols"
" are obsolete\n");
+#endif
}