From 27259f85241cb9a8293fe716c5de439c7921fd91 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 14 Jun 2022 23:18:42 +0200 Subject: Core/Crypto: Fixed loading legacy openssl provider for RC4 on windows --- src/server/authserver/Main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server/authserver/Main.cpp') diff --git a/src/server/authserver/Main.cpp b/src/server/authserver/Main.cpp index 145ec132966..33d50071140 100644 --- a/src/server/authserver/Main.cpp +++ b/src/server/authserver/Main.cpp @@ -34,12 +34,14 @@ #include "IPLocation.h" #include "GitRevision.h" #include "MySQLThreading.h" +#include "OpenSSLCrypto.h" #include "ProcessPriority.h" #include "RealmList.h" #include "SecretMgr.h" #include "SharedDefines.h" #include "Util.h" #include +#include #include #include #include @@ -129,6 +131,10 @@ int main(int argc, char** argv) for (std::string const& key : overriddenKeys) TC_LOG_INFO("server.authserver", "Configuration field '%s' was overridden with environment variable.", key.c_str()); + OpenSSLCrypto::threadsSetup(boost::dll::program_location().remove_filename()); + + std::shared_ptr opensslHandle(nullptr, [](void*) { OpenSSLCrypto::threadsCleanup(); }); + // authserver PID file creation std::string pidFile = sConfigMgr->GetStringDefault("PidFile", ""); if (!pidFile.empty()) -- cgit v1.2.3