]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use HAVE_SSL_SET_TLSEXT_HOST_NAME so that builds with old versions of OpenSSL
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 23 Apr 2012 23:38:47 +0000 (23:38 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 23 Apr 2012 23:38:47 +0000 (23:38 +0000)
still work.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10438 7a7537e8-13f0-0310-91df-b6672ffda945

cups/http.c

index 23bef76a72efb45dcba75d7344e4a41318431662..5bb21f575a6661c523cb11f2db9f48713acdd6c1 100644 (file)
@@ -3968,7 +3968,9 @@ http_setup_ssl(http_t *http)              /* I - Connection to server */
   http->tls = SSL_new(context);
   SSL_set_bio(http->tls, bio, bio);
 
+#   ifdef HAVE_SSL_SET_TLSEXT_HOST_NAME
   SSL_set_tlsext_host_name(http->tls, hostname);
+#   endif /* HAVE_SSL_SET_TLSEXT_HOST_NAME */
 
   if (SSL_connect(http->tls) != 1)
   {