diff options
| author | Naios <naios-dev@live.de> | 2016-03-22 19:58:32 +0100 |
|---|---|---|
| committer | Naios <naios-dev@live.de> | 2016-03-24 02:45:44 +0100 |
| commit | 1a1c0d1dc4b5476bd438585e8b16466101ad509a (patch) | |
| tree | 2e37535ef1c9cc371a0182e305919e0d3aeedc48 /src/common/Cryptography | |
| parent | 77aa9ae01d6681be747f0bfbb3e593cc6ce7c757 (diff) | |
Core/Common: Converted the common library to a shared library.
* There is still the possibility to static link against common.
(cherry picked from commit 501fd9b50232ca3ae3623877c3e521c9c1f894be)
Diffstat (limited to 'src/common/Cryptography')
| -rw-r--r-- | src/common/Cryptography/ARC4.h | 2 | ||||
| -rw-r--r-- | src/common/Cryptography/Authentication/AuthCrypt.h | 2 | ||||
| -rw-r--r-- | src/common/Cryptography/BigNumber.h | 2 | ||||
| -rw-r--r-- | src/common/Cryptography/HMACSHA1.h | 2 | ||||
| -rw-r--r-- | src/common/Cryptography/OpenSSLCrypto.h | 8 | ||||
| -rw-r--r-- | src/common/Cryptography/SHA1.h | 2 |
6 files changed, 10 insertions, 8 deletions
diff --git a/src/common/Cryptography/ARC4.h b/src/common/Cryptography/ARC4.h index f39e662e295..7e680176836 100644 --- a/src/common/Cryptography/ARC4.h +++ b/src/common/Cryptography/ARC4.h @@ -22,7 +22,7 @@ #include <openssl/evp.h> #include "Define.h" -class ARC4 +class TC_COMMON_API ARC4 { public: ARC4(uint8 len); diff --git a/src/common/Cryptography/Authentication/AuthCrypt.h b/src/common/Cryptography/Authentication/AuthCrypt.h index 878391e3ce8..db4de8a7bd1 100644 --- a/src/common/Cryptography/Authentication/AuthCrypt.h +++ b/src/common/Cryptography/Authentication/AuthCrypt.h @@ -23,7 +23,7 @@ class BigNumber; -class AuthCrypt +class TC_COMMON_API AuthCrypt { public: AuthCrypt(); diff --git a/src/common/Cryptography/BigNumber.h b/src/common/Cryptography/BigNumber.h index a5bda50dc72..1d21be1b431 100644 --- a/src/common/Cryptography/BigNumber.h +++ b/src/common/Cryptography/BigNumber.h @@ -24,7 +24,7 @@ struct bignum_st; -class BigNumber +class TC_COMMON_API BigNumber { public: BigNumber(); diff --git a/src/common/Cryptography/HMACSHA1.h b/src/common/Cryptography/HMACSHA1.h index 29a926d5b16..049847489a6 100644 --- a/src/common/Cryptography/HMACSHA1.h +++ b/src/common/Cryptography/HMACSHA1.h @@ -28,7 +28,7 @@ class BigNumber; #define SEED_KEY_SIZE 16 -class HmacHash +class TC_COMMON_API HmacHash { public: HmacHash(uint32 len, uint8 *seed); diff --git a/src/common/Cryptography/OpenSSLCrypto.h b/src/common/Cryptography/OpenSSLCrypto.h index df1b14b5eda..65155df9af8 100644 --- a/src/common/Cryptography/OpenSSLCrypto.h +++ b/src/common/Cryptography/OpenSSLCrypto.h @@ -18,6 +18,8 @@ #ifndef OPENSSL_CRYPTO_H #define OPENSSL_CRYPTO_H +#include "Define.h" + /** * A group of functions which setup openssl crypto module to work properly in multithreaded enviroment * If not setup properly - it will crash @@ -25,9 +27,9 @@ namespace OpenSSLCrypto { /// Needs to be called before threads using openssl are spawned - void threadsSetup(); + TC_COMMON_API void threadsSetup(); /// Needs to be called after threads using openssl are despawned - void threadsCleanup(); + TC_COMMON_API void threadsCleanup(); } -#endif
\ No newline at end of file +#endif diff --git a/src/common/Cryptography/SHA1.h b/src/common/Cryptography/SHA1.h index ffa02176a2d..970ab5c0cb9 100644 --- a/src/common/Cryptography/SHA1.h +++ b/src/common/Cryptography/SHA1.h @@ -25,7 +25,7 @@ class BigNumber; -class SHA1Hash +class TC_COMMON_API SHA1Hash { public: SHA1Hash(); |
