Merge pull request #3107 from ccpp/tls-sni

Enable support for SNI on client side
This commit is contained in:
akallabeth 2016-02-04 09:56:52 +01:00
commit eadfff87a6

View File

@ -807,6 +807,10 @@ int tls_connect(rdpTls* tls, BIO* underlying)
if (!tls_prepare(tls, underlying, SSLv23_client_method(), options, TRUE)) if (!tls_prepare(tls, underlying, SSLv23_client_method(), options, TRUE))
return FALSE; return FALSE;
#ifndef OPENSSL_NO_TLSEXT
SSL_set_tlsext_host_name(tls->ssl, tls->hostname);
#endif
return tls_do_handshake(tls, TRUE); return tls_do_handshake(tls, TRUE);
} }