mirror of
https://github.com/monero-project/monero.git
synced 2025-05-05 14:35:02 -04:00
Merge pull request #2663
4b228dd3
cmake: epee: use var from FindOpenSSL.cmake (redfish)29497f79
epee: use boost type for SSL error code (redfish)
This commit is contained in:
commit
35dbb3be33
3 changed files with 15 additions and 3 deletions
|
@ -36,6 +36,7 @@
|
|||
#include <istream>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/asio/ssl.hpp>
|
||||
#include <boost/asio/steady_timer.hpp>
|
||||
|
@ -576,7 +577,14 @@ namespace net_utils
|
|||
m_io_service.run_one();
|
||||
}
|
||||
// Ignore "short read" error
|
||||
if (ec.category() == boost::asio::error::get_ssl_category() && ec.value() != ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ))
|
||||
if (ec.category() == boost::asio::error::get_ssl_category() &&
|
||||
ec.value() !=
|
||||
#if BOOST_VERSION >= 106200
|
||||
boost::asio::ssl::error::stream_truncated
|
||||
#else // older Boost supports only OpenSSL 1.0, so 1.0-only macros are appropriate
|
||||
ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ)
|
||||
#endif
|
||||
)
|
||||
MDEBUG("Problems at ssl shutdown: " << ec.message());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue