aboutsummaryrefslogtreecommitdiff
path: root/src/server/bnetserver/Server/SslContext.cpp
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2024-05-12 15:48:39 +0200
committerOvahlord <dreadkiller@gmx.de>2024-05-28 16:59:07 +0200
commit333d5751a9615cc98cda6820a446056bba2170d6 (patch)
tree50909d7cc09fcffed9ac9ef6c8f1578434dde947 /src/server/bnetserver/Server/SslContext.cpp
parentf200b22d8f9b874c164122f07ba70b2ce695bd5b (diff)
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 (cherry picked from commit 728e7c7fcf2435172a86e621746db5218bdda0cd)
Diffstat (limited to 'src/server/bnetserver/Server/SslContext.cpp')
-rw-r--r--src/server/bnetserver/Server/SslContext.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/server/bnetserver/Server/SslContext.cpp b/src/server/bnetserver/Server/SslContext.cpp
index c59e897ffbd..e9192475a62 100644
--- a/src/server/bnetserver/Server/SslContext.cpp
+++ b/src/server/bnetserver/Server/SslContext.cpp
@@ -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());
}