TLS: Whine to log on client config of SNI under too-old OpenSSL version
authorJeremy Harris <jgh146exb@wizmail.org>
Fri, 5 Feb 2016 18:47:45 +0000 (18:47 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Fri, 5 Feb 2016 18:47:45 +0000 (18:47 +0000)
src/src/tls-openssl.c
test/scripts/2100-OpenSSL/2130

index f45daa7..98762fd 100644 (file)
@@ -2079,8 +2079,7 @@ if (ob->tls_sni)
     DEBUG(D_tls) debug_printf("Setting TLS SNI \"%s\"\n", tls_out.sni);
     SSL_set_tlsext_host_name(client_ssl, tls_out.sni);
 #else
     DEBUG(D_tls) debug_printf("Setting TLS SNI \"%s\"\n", tls_out.sni);
     SSL_set_tlsext_host_name(client_ssl, tls_out.sni);
 #else
-    DEBUG(D_tls)
-      debug_printf("OpenSSL at build-time lacked SNI support, ignoring \"%s\"\n",
+    log_write(0, LOG_MAIN, "SNI unusable with this OpenSSL library version; ignoring \"%s\"\n",
           tls_out.sni);
 #endif
     }
           tls_out.sni);
 #endif
     }
index 1de3e4f..afaa949 100644 (file)
@@ -1,4 +1,4 @@
-# TLS: SNI
+# TLS: client SNI
 #
 exim -DSERVER=server -bd -oX PORT_D
 ****
 #
 exim -DSERVER=server -bd -oX PORT_D
 ****