mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Cryptography: dropped support for OpenSSL 1.1
OpenSSL 1.1 has been deprecated for quite some time now so it is time to put it to rest. Please upgrade to OpenSSL 3.x
This commit is contained in:
@@ -51,10 +51,8 @@ auto OpenOpenSSLStore(boost::filesystem::path const& storePath, UI_METHOD const*
|
||||
boost::system::error_code GetLastOpenSSLError()
|
||||
{
|
||||
auto ossl_error = ::ERR_get_error();
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
if (ERR_SYSTEM_ERROR(ossl_error))
|
||||
return boost::system::error_code(static_cast<int>(::ERR_GET_REASON(ossl_error)), boost::asio::error::get_system_category());
|
||||
#endif
|
||||
|
||||
return boost::system::error_code(static_cast<int>(ossl_error), boost::asio::error::get_ssl_category());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user