Skip to content

Commit

Permalink
asio: Support client side SNI
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed May 3, 2018
1 parent 86fab99 commit 3e4f257
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/asio_client_session_tls_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ session_tls_impl::session_tls_impl(
// ssl::context::set_verify_mode(boost::asio::ssl::verify_peer) is
// not used, which is what we want.
socket_.set_verify_callback(boost::asio::ssl::rfc2818_verification(host));
auto ssl = socket_.native_handle();
if (!util::numeric_host(host.c_str())) {
SSL_set_tlsext_host_name(ssl, host.c_str());
}
}

session_tls_impl::~session_tls_impl() {}
Expand Down

0 comments on commit 3e4f257

Please sign in to comment.