summaryrefslogtreecommitdiff
path: root/src/common/Cryptography/OpenSSLCrypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Cryptography/OpenSSLCrypto.h')
-rw-r--r--src/common/Cryptography/OpenSSLCrypto.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/common/Cryptography/OpenSSLCrypto.h b/src/common/Cryptography/OpenSSLCrypto.h
index b181f3418d..be68504510 100644
--- a/src/common/Cryptography/OpenSSLCrypto.h
+++ b/src/common/Cryptography/OpenSSLCrypto.h
@@ -15,11 +15,10 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef OPENSSL_CRYPTO_H_
-#define OPENSSL_CRYPTO_H_
+#ifndef _AC_OPENSSL_CRYPTO_H
+#define _AC_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
@@ -27,17 +26,11 @@
*/
namespace OpenSSLCrypto
{
-
-#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1010000fL
/// Needs to be called before threads using openssl are spawned
- void threadsSetup();
- /// Needs to be called after threads using openssl are despawned
- void threadsCleanup();
-#else
- void threadsSetup() { };
- void threadsCleanup() { };
-#endif
+ AC_COMMON_API void threadsSetup();
+ /// Needs to be called after threads using openssl are despawned
+ AC_COMMON_API void threadsCleanup();
}
#endif