Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From 1dd07113f2a7489444a8990a95be42e035f8e9df Mon Sep 17 00:00:00 2001 |
| 2 | From: Kurt Roeckx <kroeckx@debian.org> |
| 3 | Date: Tue, 1 Nov 2016 12:57:35 +0100 |
| 4 | Subject: [PATCH] Fix issue #599 |
| 5 | Forwarded: https://github.com/zaphoyd/websocketpp/pull/600 |
| 6 | |
| 7 | --- |
| 8 | websocketpp/transport/asio/security/tls.hpp | 4 ---- |
| 9 | 1 file changed, 4 deletions(-) |
| 10 | |
| 11 | diff --git a/websocketpp/transport/asio/security/tls.hpp b/websocketpp/transport/asio/security/tls.hpp |
| 12 | index 7b32db8..a8aafec 100644 |
| 13 | --- a/websocketpp/transport/asio/security/tls.hpp |
| 14 | +++ b/websocketpp/transport/asio/security/tls.hpp |
| 15 | @@ -355,13 +355,9 @@ protected: |
| 16 | template <typename ErrorCodeType> |
| 17 | lib::error_code translate_ec(ErrorCodeType ec) { |
| 18 | if (ec.category() == lib::asio::error::get_ssl_category()) { |
| 19 | - if (ERR_GET_REASON(ec.value()) == SSL_R_SHORT_READ) { |
| 20 | - return make_error_code(transport::error::tls_short_read); |
| 21 | - } else { |
| 22 | // We know it is a TLS related error, but otherwise don't know |
| 23 | // more. Pass through as TLS generic. |
| 24 | return make_error_code(transport::error::tls_error); |
| 25 | - } |
| 26 | } else { |
| 27 | // We don't know any more information about this error so pass |
| 28 | // through |
| 29 | -- |
| 30 | 2.7.4 |
| 31 | |