fix openssl build with boost-1.46
This commit is contained in:
@@ -537,7 +537,7 @@ namespace aux {
|
||||
int session_impl::logging_allocator::allocated_bytes = 0;
|
||||
#endif
|
||||
|
||||
#ifdef TORRENT_USE_OPENSSL
|
||||
#if defined TORRENT_USE_OPENSSL && BOOST_VERSION > 104600
|
||||
// when running bittorrent over SSL, the SNI (server name indication)
|
||||
// extension is used to know which torrent the incoming connection is
|
||||
// trying to connect to. The 40 first bytes in the name is expected to
|
||||
@@ -684,8 +684,10 @@ namespace aux {
|
||||
error_code ec;
|
||||
#ifdef TORRENT_USE_OPENSSL
|
||||
m_ssl_ctx.set_verify_mode(asio::ssl::context::verify_none, ec);
|
||||
#if BOOST_VERSION > 104600
|
||||
SSL_CTX_set_tlsext_servername_callback(m_ssl_ctx.native_handle(), servername_callback);
|
||||
SSL_CTX_set_tlsext_servername_arg(m_ssl_ctx.native_handle(), this);
|
||||
#endif // BOOST_VERSION
|
||||
#endif
|
||||
|
||||
#ifndef TORRENT_DISABLE_DHT
|
||||
|
Reference in New Issue
Block a user