From c0226d686c54339348194c622381dcf69a48ca52 Mon Sep 17 00:00:00 2001 From: Christian Plattner Date: Thu, 4 Feb 2016 08:34:51 +0100 Subject: [PATCH] Enable support for SNI on client side --- libfreerdp/crypto/tls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libfreerdp/crypto/tls.c b/libfreerdp/crypto/tls.c index 14d0c2ce2..e8627e41e 100644 --- a/libfreerdp/crypto/tls.c +++ b/libfreerdp/crypto/tls.c @@ -807,6 +807,10 @@ int tls_connect(rdpTls* tls, BIO* underlying) if (!tls_prepare(tls, underlying, SSLv23_client_method(), options, TRUE)) return FALSE; +#ifndef OPENSSL_NO_TLSEXT + SSL_set_tlsext_host_name(tls->ssl, tls->hostname); +#endif + return tls_do_handshake(tls, TRUE); }