mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Crypto: Fixed loading legacy openssl provider for RC4 on windows
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/crypto.h>
|
||||
#include <boost/asio/signal_set.hpp>
|
||||
#include <boost/dll/runtime_symbol_info.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/program_options.hpp>
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
@@ -216,7 +217,7 @@ extern int main(int argc, char** argv)
|
||||
for (std::string const& key : overriddenKeys)
|
||||
TC_LOG_INFO("server.worldserver", "Configuration field '%s' was overridden with environment variable.", key.c_str());
|
||||
|
||||
OpenSSLCrypto::threadsSetup();
|
||||
OpenSSLCrypto::threadsSetup(boost::dll::program_location().remove_filename());
|
||||
|
||||
std::shared_ptr<void> opensslHandle(nullptr, [](void*) { OpenSSLCrypto::threadsCleanup(); });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user