diff options
author | Winfidonarleyan <dowlandtop@yandex.com> | 2022-11-23 21:12:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 01:12:20 +0700 |
commit | a1a1528cb4a9ed6f0220621fe6ecf9e2c36a5534 (patch) | |
tree | 04598163bda650f353cc1e12872c03f94537f700 /src/tools/dbimport/Main.cpp | |
parent | 4a2964e10a03a2b6ba2077e6b362b8a6ba6675fb (diff) |
feat(Core/Crypto): add support `OpenSSL 3.0` (#13354)
Diffstat (limited to 'src/tools/dbimport/Main.cpp')
-rw-r--r-- | src/tools/dbimport/Main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/dbimport/Main.cpp b/src/tools/dbimport/Main.cpp index 644e80a29e..0f4ddf5ffa 100644 --- a/src/tools/dbimport/Main.cpp +++ b/src/tools/dbimport/Main.cpp @@ -16,13 +16,13 @@ */ #include "Banner.h" -#include "Common.h" #include "Config.h" #include "DatabaseEnv.h" #include "DatabaseLoader.h" #include "IoContext.h" #include "Log.h" #include "MySQLThreading.h" +#include "OpenSSLCrypto.h" #include "Util.h" #include <boost/program_options.hpp> #include <boost/version.hpp> @@ -73,11 +73,15 @@ int main(int argc, char** argv) []() { LOG_INFO("dbimport", "> Using configuration file: {}", sConfigMgr->GetFilename()); - LOG_INFO("dbimport", "> Using SSL version: {} (library: {})", OPENSSL_VERSION_TEXT, SSLeay_version(SSLEAY_VERSION)); + LOG_INFO("dbimport", "> Using SSL version: {} (library: {})", OPENSSL_VERSION_TEXT, OpenSSL_version(OPENSSL_VERSION)); LOG_INFO("dbimport", "> Using Boost version: {}.{}.{}", BOOST_VERSION / 100000, BOOST_VERSION / 100 % 1000, BOOST_VERSION % 100); } ); + OpenSSLCrypto::threadsSetup(); + + std::shared_ptr<void> opensslHandle(nullptr, [](void*) { OpenSSLCrypto::threadsCleanup(); }); + // Initialize the database connection if (!StartDB()) return 1; |