diff options
author | Jose <jose@zeroc.com> | 2016-11-07 12:01:27 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-11-07 12:01:27 +0100 |
commit | 2c9a7b1d54dc95c1b6307643e6fbfc89dc02607e (patch) | |
tree | 211cf29b239a4c874f838c9777b7d610c8306c67 /cpp/src/IceSSL/SSLEngine.h | |
parent | Revert "Replaced double and triple underscores in C++ by ice-prefixed names" (diff) | |
download | ice-2c9a7b1d54dc95c1b6307643e6fbfc89dc02607e.tar.bz2 ice-2c9a7b1d54dc95c1b6307643e6fbfc89dc02607e.tar.xz ice-2c9a7b1d54dc95c1b6307643e6fbfc89dc02607e.zip |
UWP ssl improvements
Diffstat (limited to 'cpp/src/IceSSL/SSLEngine.h')
-rw-r--r-- | cpp/src/IceSSL/SSLEngine.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/cpp/src/IceSSL/SSLEngine.h b/cpp/src/IceSSL/SSLEngine.h index 25748c71c78..c8b84fcd31b 100644 --- a/cpp/src/IceSSL/SSLEngine.h +++ b/cpp/src/IceSSL/SSLEngine.h @@ -40,6 +40,8 @@ # include <sspi.h> # include <schannel.h> # undef SECURITY_WIN32 +#elif defined(ICE_OS_WINRT) +# include <mutex> #endif namespace IceSSL @@ -81,10 +83,10 @@ public: std::string getPassword() const; void setPassword(const std::string& password); - bool getCheckCertName() const { return _checkCertName; } - int getVerifyPeer() const { return _verifyPeer; } - int securityTraceLevel() const { return _securityTraceLevel; } - std::string securityTraceCategory() const { return _securityTraceCategory; } + bool getCheckCertName() const; + int getVerifyPeer() const; + int securityTraceLevel() const; + std::string securityTraceCategory() const; private: @@ -234,6 +236,13 @@ public: virtual void initialize(); virtual bool initialized() const; virtual void destroy(); + virtual std::shared_ptr<Certificate> certificate(); + +private: + + std::shared_ptr<Certificate> _certificate; + bool _initialized; + std::mutex _mutex; }; #else // OpenSSL @@ -263,7 +272,6 @@ private: enum Protocols { SSLv3 = 0x01, TLSv1_0 = 0x02, TLSv1_1 = 0x04, TLSv1_2 = 0x08 }; int parseProtocols(const Ice::StringSeq&) const; - bool _initialized; SSL_CTX* _ctx; std::string _defaultDir; |