AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
OpenSSLCrypto.cpp File Reference
#include "OpenSSLCrypto.h"
#include <openssl/crypto.h>
#include <openssl/provider.h>
#include <boost/dll/runtime_symbol_info.hpp>
#include <filesystem>

Go to the source code of this file.

Functions

void SetupLibrariesForWindows ()
 

Variables

OSSL_PROVIDER * LegacyProvider
 
OSSL_PROVIDER * DefaultProvider
 

Function Documentation

◆ SetupLibrariesForWindows()

void SetupLibrariesForWindows ( )
30{
31 namespace fs = std::filesystem;
32
33 fs::path programLocation{ boost::dll::program_location().remove_filename().string() };
34 fs::path libLegacy{ boost::dll::program_location().remove_filename().string() + "/legacy.dll" };
35
36 ASSERT(fs::exists(libLegacy), "Not found 'legacy.dll'. Please copy library 'legacy.dll' from OpenSSL default dir to '{}'", programLocation.generic_string());
37 OSSL_PROVIDER_set_default_search_path(nullptr, programLocation.generic_string().c_str());
38}
#define ASSERT
Definition: Errors.h:68

References ASSERT.

Referenced by OpenSSLCrypto::threadsSetup().

Variable Documentation

◆ DefaultProvider

OSSL_PROVIDER* DefaultProvider

◆ LegacyProvider

OSSL_PROVIDER* LegacyProvider