SNI support

This commit is contained in:
orignal 2016-12-21 07:41:18 -05:00
parent 9da984b866
commit e699d3d02d

View File

@ -444,6 +444,7 @@ namespace data
s.lowest_layer().connect (*it, ecode);
if (!ecode)
{
SSL_set_tlsext_host_name(s.native_handle(), url.host.c_str ());
s.handshake (boost::asio::ssl::stream_base::client, ecode);
if (!ecode)
{