diff options
author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-25 03:44:38 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-23 23:07:33 +0100 |
commit | 10f835b058ffa517866b08efe6634b0d5226bb66 (patch) | |
tree | 3c21feca49a0ee541d5ba562da4b91123918ef81 /src/common/Cryptography/OpenSSLCrypto.cpp | |
parent | 699c9ed4148640d18f1ba59596e364279e4ceeec (diff) |
Common/Crypto: #ifdef out unnecessary locking code for OpenSSL 1.1+ (PR #25110)
(cherry picked from commit 7ea33120a03d70aaa856c2c66f183d684131746e)
Diffstat (limited to 'src/common/Cryptography/OpenSSLCrypto.cpp')
-rw-r--r-- | src/common/Cryptography/OpenSSLCrypto.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/Cryptography/OpenSSLCrypto.cpp b/src/common/Cryptography/OpenSSLCrypto.cpp index ccb20431673..3346a1c2098 100644 --- a/src/common/Cryptography/OpenSSLCrypto.cpp +++ b/src/common/Cryptography/OpenSSLCrypto.cpp @@ -15,8 +15,10 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <OpenSSLCrypto.h> +#include "OpenSSLCrypto.h" #include <openssl/crypto.h> + +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1010000fL #include <vector> #include <thread> #include <mutex> @@ -67,6 +69,7 @@ void OpenSSLCrypto::threadsCleanup() } cryptoLocks.resize(0); } +#endif #ifdef VALGRIND #include <openssl/rand.h> |