diff options
author | unknown <svoj@mysql.com> | 2005-05-25 19:11:36 +0500 |
---|---|---|
committer | unknown <svoj@mysql.com> | 2005-05-25 19:11:36 +0500 |
commit | f0f9b5959eecb87b369fc45c981d926b79de0c61 (patch) | |
tree | 174e95037d5db26c6fe56e6469e3b2b95e55d5f6 /extra | |
parent | d9d47c6a6f8eb99735450a8f06d014e7efd705e9 (diff) | |
download | mariadb-git-f0f9b5959eecb87b369fc45c981d926b79de0c61.tar.gz |
WL#2286 - Compile MySQL w/YASSL support
Merge with latest yaSSL, fix compilation error for SSE2 processors.
extra/yassl/include/yassl_int.hpp:
Merge with latest yaSSL.
extra/yassl/src/log.cpp:
Merge with latest yaSSL.
extra/yassl/src/yassl_int.cpp:
Merge with latest yaSSL.
extra/yassl/taocrypt/include/integer.hpp:
Merge with latest yaSSL.
extra/yassl/taocrypt/src/integer.cpp:
Fix compilation error for SSE2 processors.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/yassl/include/yassl_int.hpp | 6 | ||||
-rw-r--r-- | extra/yassl/src/log.cpp | 6 | ||||
-rw-r--r-- | extra/yassl/src/yassl_int.cpp | 9 | ||||
-rw-r--r-- | extra/yassl/taocrypt/include/integer.hpp | 2 | ||||
-rw-r--r-- | extra/yassl/taocrypt/src/integer.cpp | 3 |
5 files changed, 16 insertions, 10 deletions
diff --git a/extra/yassl/include/yassl_int.hpp b/extra/yassl/include/yassl_int.hpp index c9168254907..876f730a07d 100644 --- a/extra/yassl/include/yassl_int.hpp +++ b/extra/yassl/include/yassl_int.hpp @@ -122,7 +122,8 @@ public: friend sslFactory& GetSSL_Factory(); // singleton creator private: - static sslFactory instance; + static sslFactory instance_; + sslFactory(const sslFactory&); // hide copy sslFactory& operator=(const sslFactory&); // and assign }; @@ -207,9 +208,10 @@ public: friend Sessions& GetSessions(); // singleton creator private: + static Sessions instance_; + Sessions(const Sessions&); // hide copy Sessions& operator=(const Sessions&); // and assign - static Sessions instance; }; diff --git a/extra/yassl/src/log.cpp b/extra/yassl/src/log.cpp index eb4776d3d19..19072a5e09c 100644 --- a/extra/yassl/src/log.cpp +++ b/extra/yassl/src/log.cpp @@ -26,9 +26,9 @@ #include "log.hpp" #ifdef YASSL_LOG - #include <ctime> - #include <cstdio> - #include <cstring> + #include <time.h> + #include <stdio.h> + #include <string.h> #endif diff --git a/extra/yassl/src/yassl_int.cpp b/extra/yassl/src/yassl_int.cpp index f32a8420b98..718871a598b 100644 --- a/extra/yassl/src/yassl_int.cpp +++ b/extra/yassl/src/yassl_int.cpp @@ -1324,18 +1324,19 @@ SSL_SESSION::~SSL_SESSION() } -Sessions Sessions::instance; // simple singleton +Sessions Sessions::instance_; // simple singleton Sessions& GetSessions() { - return Sessions::instance; + return Sessions::instance_; } -sslFactory sslFactory::instance; + +sslFactory sslFactory::instance_; // simple singleton sslFactory& GetSSL_Factory() { - return sslFactory::instance; + return sslFactory::instance_; } diff --git a/extra/yassl/taocrypt/include/integer.hpp b/extra/yassl/taocrypt/include/integer.hpp index 6b1984e46ed..e9e4a7218bd 100644 --- a/extra/yassl/taocrypt/include/integer.hpp +++ b/extra/yassl/taocrypt/include/integer.hpp @@ -251,11 +251,11 @@ public: private: friend class ModularArithmetic; friend class MontgomeryRepresentation; - Integer(word value, unsigned int length); static const Integer zero; static const Integer one; static const Integer two; + Integer(word value, unsigned int length); int PositiveCompare(const Integer& t) const; friend void PositiveAdd(Integer& sum, const Integer& a, const Integer& b); diff --git a/extra/yassl/taocrypt/src/integer.cpp b/extra/yassl/taocrypt/src/integer.cpp index 37cfe374451..b6a1b72a41f 100644 --- a/extra/yassl/taocrypt/src/integer.cpp +++ b/extra/yassl/taocrypt/src/integer.cpp @@ -3948,6 +3948,9 @@ Integer CRT(const Integer &xp, const Integer &p, const Integer &xq, #ifdef __GNUC__ template unsigned int DivideThreeWordsByTwo<unsigned int, DWord>(unsigned int*, unsigned int, unsigned int, DWord*); +#if defined(SSE2_INTRINSICS_AVAILABLE) +template AlignedAllocator<unsigned int>::pointer StdReallocate<unsigned int, AlignedAllocator<unsigned int> >(AlignedAllocator<unsigned int>&, unsigned int*, AlignedAllocator<unsigned int>::size_type, AlignedAllocator<unsigned int>::size_type, bool); +#endif #endif } // namespace |