Loading extra/yassl/include/yassl_int.hpp +2 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,7 @@ public: friend sslFactory& GetSSL_Factory(); // singleton creator private: static sslFactory instance; sslFactory(const sslFactory&); // hide copy sslFactory& operator=(const sslFactory&); // and assign }; Loading Loading @@ -208,6 +209,7 @@ public: private: Sessions(const Sessions&); // hide copy Sessions& operator=(const Sessions&); // and assign static Sessions instance; }; Loading extra/yassl/src/yassl_int.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -1346,17 +1346,18 @@ SSL_SESSION::~SSL_SESSION() } Sessions Sessions::instance; // simple singleton Sessions& GetSessions() { static Sessions instance; // simple singleton return instance; return Sessions::instance; } sslFactory sslFactory::instance; sslFactory& GetSSL_Factory() { static sslFactory instance; // simple singleton return instance; return sslFactory::instance; } Loading extra/yassl/taocrypt/include/integer.hpp +4 −0 Original line number Diff line number Diff line Loading @@ -258,6 +258,10 @@ private: Integer(word value, unsigned int length); static const Integer zero; static const Integer one; static const Integer two; int PositiveCompare(const Integer& t) const; friend void PositiveAdd(Integer& sum, const Integer& a, const Integer& b); friend void PositiveSubtract(Integer& diff, const Integer& a, Loading extra/yassl/taocrypt/src/integer.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -2844,23 +2844,24 @@ unsigned int Integer::Encode(byte* output, unsigned int outputLen, } const Integer Integer::zero(1,2); const Integer &Integer::Zero() { static const Integer zero; return zero; } const Integer Integer::one(1,2); const Integer &Integer::One() { static const Integer one(1,2); return one; } const Integer Integer::two(1,2); const Integer &Integer::Two() { static const Integer two(2,2); return two; } Loading Loading
extra/yassl/include/yassl_int.hpp +2 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,7 @@ public: friend sslFactory& GetSSL_Factory(); // singleton creator private: static sslFactory instance; sslFactory(const sslFactory&); // hide copy sslFactory& operator=(const sslFactory&); // and assign }; Loading Loading @@ -208,6 +209,7 @@ public: private: Sessions(const Sessions&); // hide copy Sessions& operator=(const Sessions&); // and assign static Sessions instance; }; Loading
extra/yassl/src/yassl_int.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -1346,17 +1346,18 @@ SSL_SESSION::~SSL_SESSION() } Sessions Sessions::instance; // simple singleton Sessions& GetSessions() { static Sessions instance; // simple singleton return instance; return Sessions::instance; } sslFactory sslFactory::instance; sslFactory& GetSSL_Factory() { static sslFactory instance; // simple singleton return instance; return sslFactory::instance; } Loading
extra/yassl/taocrypt/include/integer.hpp +4 −0 Original line number Diff line number Diff line Loading @@ -258,6 +258,10 @@ private: Integer(word value, unsigned int length); static const Integer zero; static const Integer one; static const Integer two; int PositiveCompare(const Integer& t) const; friend void PositiveAdd(Integer& sum, const Integer& a, const Integer& b); friend void PositiveSubtract(Integer& diff, const Integer& a, Loading
extra/yassl/taocrypt/src/integer.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -2844,23 +2844,24 @@ unsigned int Integer::Encode(byte* output, unsigned int outputLen, } const Integer Integer::zero(1,2); const Integer &Integer::Zero() { static const Integer zero; return zero; } const Integer Integer::one(1,2); const Integer &Integer::One() { static const Integer one(1,2); return one; } const Integer Integer::two(1,2); const Integer &Integer::Two() { static const Integer two(2,2); return two; } Loading