File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Release/libs/websocketpp/websocketpp/transport/asio/security Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -307,8 +307,13 @@ class connection : public lib::enable_shared_from_this<connection> {
307
307
*/
308
308
lib::error_code translate_ec (boost::system::error_code ec) {
309
309
if (ec.category () == boost::asio::error::get_ssl_category ()) {
310
+ #if defined SSL_R_SHORT_READ
310
311
if (ERR_GET_REASON (ec.value ()) == SSL_R_SHORT_READ) {
311
312
return make_error_code (transport::error::tls_short_read);
313
+ #else
314
+ if (ERR_GET_REASON (ec.value ()) == boost::asio::ssl::error::stream_truncated) {
315
+ return make_error_code (boost::asio::ssl::error::stream_truncated);
316
+ #endif
312
317
} else {
313
318
// We know it is a TLS related error, but otherwise don't know
314
319
// more. Pass through as TLS generic.
You can’t perform that action at this time.
0 commit comments