From b38346852a08877bf6c77cc11ae62730939c3c03 Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 23 Apr 2012 23:38:47 +0000 Subject: [PATCH] Use HAVE_SSL_SET_TLSEXT_HOST_NAME so that builds with old versions of OpenSSL still work. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10438 7a7537e8-13f0-0310-91df-b6672ffda945 --- cups/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cups/http.c b/cups/http.c index 23bef76a72..5bb21f575a 100644 --- a/cups/http.c +++ b/cups/http.c @@ -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) { -- 2.47.3