diff options
author | Jose <jose@zeroc.com> | 2017-03-20 11:11:16 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-03-20 11:11:16 +0100 |
commit | 11c1140a8041b3dcdd79b9244422e56ebe8da10c (patch) | |
tree | 04cba9afe9ec7fb3e723ca45cb76afcfb5cc4885 /cpp/include/IceSSL/Plugin.h | |
parent | Fixed (ICE-7678) - Python build failure with VS 2015 (diff) | |
download | ice-11c1140a8041b3dcdd79b9244422e56ebe8da10c.tar.bz2 ice-11c1140a8041b3dcdd79b9244422e56ebe8da10c.tar.xz ice-11c1140a8041b3dcdd79b9244422e56ebe8da10c.zip |
Update IceSSL::ConnectionInfo to use native certs and remove NativeConnectionInfo
Diffstat (limited to 'cpp/include/IceSSL/Plugin.h')
-rw-r--r-- | cpp/include/IceSSL/Plugin.h | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/cpp/include/IceSSL/Plugin.h b/cpp/include/IceSSL/Plugin.h index 8e3d2f44f5b..94c8da4b841 100644 --- a/cpp/include/IceSSL/Plugin.h +++ b/cpp/include/IceSSL/Plugin.h @@ -12,7 +12,7 @@ #include <Ice/Plugin.h> #include <IceSSL/Config.h> -#include <IceSSL/ConnectionInfo.h> +#include <IceSSL/ConnectionInfoF.h> #ifdef ICE_CPP11_MAPPING # include <chrono> @@ -372,25 +372,6 @@ public: static CertificatePtr decode(const std::string&); }; -// -// NativeConnectionInfo is an extension of IceSSL::ConnectionInfo that -// provides access to native certificates. -// -class ICESSL_API NativeConnectionInfo : public ConnectionInfo -{ -public: - - virtual ~NativeConnectionInfo(); - - // - // The certificate chain. This may be empty if the peer did not - // supply a certificate. The peer's certificate (if any) is the - // first one in the chain. - // - std::vector<CertificatePtr> nativeCerts; -}; -ICE_DEFINE_PTR(NativeConnectionInfoPtr, NativeConnectionInfo); - #ifndef ICE_CPP11_MAPPING // C++98 mapping // @@ -408,7 +389,7 @@ public: // Return false if the connection should be rejected, or true to // allow it. // - virtual bool verify(const NativeConnectionInfoPtr&) = 0; + virtual bool verify(const ConnectionInfoPtr&) = 0; }; typedef IceUtil::Handle<CertificateVerifier> CertificateVerifierPtr; @@ -457,7 +438,7 @@ public: // before any connections are established. // #ifdef ICE_CPP11_MAPPING - virtual void setCertificateVerifier(std::function<bool(const std::shared_ptr<NativeConnectionInfo>&)>) = 0; + virtual void setCertificateVerifier(std::function<bool(const std::shared_ptr<ConnectionInfo>&)>) = 0; #else virtual void setCertificateVerifier(const CertificateVerifierPtr&) = 0; #endif |