Enable SNI with OpenSSL 0.9.8f as well
This commit is contained in:
@@ -153,7 +153,7 @@ tls_t *tls_new(xmpp_conn_t *conn)
|
|||||||
if (tls->ssl == NULL)
|
if (tls->ssl == NULL)
|
||||||
goto err_free_ctx;
|
goto err_free_ctx;
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
#if OPENSSL_VERSION_NUMBER >= 0x0908060L && !defined(OPENSSL_NO_TLSEXT)
|
||||||
/* Enable SNI. */
|
/* Enable SNI. */
|
||||||
SSL_set_tlsext_host_name(tls->ssl, conn->domain);
|
SSL_set_tlsext_host_name(tls->ssl, conn->domain);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user