Fixed to support boringssl

master
Ryan Lee 2017-10-23 00:04:52 +09:00
parent 3c73978688
commit 137fe1cfbc
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ const asio::error_code& engine::map_error_code(
// SSL v2 doesn't provide a protocol-level shutdown, so an eof on the
// underlying transport is passed through.
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
if (ssl_->version == SSL2_VERSION)
// if (ssl_->version == SSL2_VERSION)
if (::SSL_version(ssl_) == SSL2_VERSION)
return ec;
#endif // (OPENSSL_VERSION_NUMBER < 0x10100000L)