diff options
Diffstat (limited to 'src/common/Cryptography/OpenSSLCrypto.h')
-rw-r--r-- | src/common/Cryptography/OpenSSLCrypto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/Cryptography/OpenSSLCrypto.h b/src/common/Cryptography/OpenSSLCrypto.h index 09ab6bf7a72..8aa0abef88d 100644 --- a/src/common/Cryptography/OpenSSLCrypto.h +++ b/src/common/Cryptography/OpenSSLCrypto.h @@ -19,6 +19,7 @@ #define OPENSSL_CRYPTO_H #include "Define.h" +#include <openssl/opensslv.h> /** * A group of functions which setup openssl crypto module to work properly in multithreaded enviroment @@ -26,10 +27,17 @@ */ 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(); /// Needs to be called after threads using openssl are despawned TC_COMMON_API void threadsCleanup(); +#else + void threadsSetup() { }; + void threadsCleanup() { }; +#endif + } #endif |