blob: 5318a6a10376e2e6f7f38111568871195cc1b9e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Origin: https://github.com/Microsoft/cpprestsdk/issues/813
Last-Update: 2018-07-23
--- cpprest-2.10.2.orig/Release/libs/websocketpp/websocketpp/transport/asio/security/tls.hpp
+++ cpprest-2.10.2/Release/libs/websocketpp/websocketpp/transport/asio/security/tls.hpp
@@ -312,7 +312,7 @@ protected:
return make_error_code(transport::error::tls_short_read);
#else
if (ERR_GET_REASON(ec.value()) == boost::asio::ssl::error::stream_truncated) {
- return make_error_code(boost::asio::ssl::error::stream_truncated);
+ return make_error_code(static_cast<std::errc>(boost::asio::ssl::error::stream_truncated));
#endif
} else {
// We know it is a TLS related error, but otherwise don't know
|