mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 17:48:02 +08:00
20 lines
851 B
Diff
20 lines
851 B
Diff
diff --git a/websocketpp/transport/asio/security/tls.hpp b/websocketpp/transport/asio/security/tls.hpp
|
|
index 7b32db8..37173b7 100644
|
|
--- a/websocketpp/transport/asio/security/tls.hpp
|
|
+++ b/websocketpp/transport/asio/security/tls.hpp
|
|
@@ -355,7 +355,13 @@ protected:
|
|
template <typename ErrorCodeType>
|
|
lib::error_code translate_ec(ErrorCodeType ec) {
|
|
if (ec.category() == lib::asio::error::get_ssl_category()) {
|
|
- if (ERR_GET_REASON(ec.value()) == SSL_R_SHORT_READ) {
|
|
+ if (
|
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
+ ERR_GET_REASON(ec.value()) == SSL_R_SHORT_READ
|
|
+#else
|
|
+ false
|
|
+#endif
|
|
+ ) {
|
|
return make_error_code(transport::error::tls_short_read);
|
|
} else {
|
|
// We know it is a TLS related error, but otherwise don't know
|