aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/OpenSSLCrypto.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-06-14 23:18:42 +0200
committerShauren <shauren.trinity@gmail.com>2022-06-16 12:37:00 +0200
commit27259f85241cb9a8293fe716c5de439c7921fd91 (patch)
tree018bf5936b10a7da08c9fd646a9014c50653ec46 /src/common/Cryptography/OpenSSLCrypto.h
parent9fca5e9117317d6706fdf7d09fb86acaa3361129 (diff)
Core/Crypto: Fixed loading legacy openssl provider for RC4 on windows
Diffstat (limited to 'src/common/Cryptography/OpenSSLCrypto.h')
-rw-r--r--src/common/Cryptography/OpenSSLCrypto.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/common/Cryptography/OpenSSLCrypto.h b/src/common/Cryptography/OpenSSLCrypto.h
index 7b646659c05..1e6ca9562dd 100644
--- a/src/common/Cryptography/OpenSSLCrypto.h
+++ b/src/common/Cryptography/OpenSSLCrypto.h
@@ -19,7 +19,7 @@
#define TRINITY_OPENSSL_CRYPTO_H
#include "Define.h"
-#include <openssl/opensslv.h>
+#include <boost/filesystem/path.hpp>
/**
* A group of functions which setup openssl crypto module to work properly in multithreaded enviroment
@@ -27,17 +27,10 @@
*/
namespace OpenSSLCrypto
{
-
-#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1010000fL
/// Needs to be called before threads using openssl are spawned
- TC_COMMON_API void threadsSetup();
+ TC_COMMON_API void threadsSetup(boost::filesystem::path const& providerModulePath);
/// Needs to be called after threads using openssl are despawned
TC_COMMON_API void threadsCleanup();
-#else
- void threadsSetup() { };
- void threadsCleanup() { };
-#endif
-
}
#endif