diff options
author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-25 03:44:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-25 03:44:38 +0200 |
commit | 7ea33120a03d70aaa856c2c66f183d684131746e (patch) | |
tree | 672150e6e7163a64b89a58eaa796dd3000f398e7 /src/common/Cryptography/OpenSSLCrypto.cpp | |
parent | 690a095b94ad0650da0791621104d24e3f862b36 (diff) |
Common/Crypto: #ifdef out unnecessary locking code for OpenSSL 1.1+ (PR #25110)
Diffstat (limited to 'src/common/Cryptography/OpenSSLCrypto.cpp')
-rw-r--r-- | src/common/Cryptography/OpenSSLCrypto.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/Cryptography/OpenSSLCrypto.cpp b/src/common/Cryptography/OpenSSLCrypto.cpp index e6b1aaf0ecf..864e95530c2 100644 --- a/src/common/Cryptography/OpenSSLCrypto.cpp +++ b/src/common/Cryptography/OpenSSLCrypto.cpp @@ -17,6 +17,8 @@ #include <OpenSSLCrypto.h> #include <openssl/crypto.h> + +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1010000fL #include <vector> #include <thread> #include <mutex> @@ -62,3 +64,4 @@ void OpenSSLCrypto::threadsCleanup() } cryptoLocks.resize(0); } +#endif |