--- /usr/include/boost/asio/ssl/detail/impl/engine.orig 2017-08-29 01:39:58.321515459 +0300 +++ /usr/include/boost/asio/ssl/detail/impl/engine.ipp 2017-08-29 01:40:22.094110792 +0300 @@ -212,13 +212,13 @@ #if (OPENSSL_VERSION_NUMBER < 0x10100000L) if (ssl_->version == SSL2_VERSION) return ec; -#endif // (OPENSSL_VERSION_NUMBER < 0x10100000L) // Otherwise, the peer should have negotiated a proper shutdown. if ((::SSL_get_shutdown(ssl_) & SSL_RECEIVED_SHUTDOWN) == 0) { ec = boost::asio::ssl::error::stream_truncated; } +#endif // (OPENSSL_VERSION_NUMBER < 0x10100000L) return ec; }