vcpkg/ports/websocketpp/openssl_110.patch

20 lines
851 B
Diff
Raw Normal View History

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