diff options
Diffstat (limited to 'cpp/src/IceSSL/Context.cpp')
-rw-r--r-- | cpp/src/IceSSL/Context.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/IceSSL/Context.cpp b/cpp/src/IceSSL/Context.cpp index eef654b3e7e..99d67a67d7a 100644 --- a/cpp/src/IceSSL/Context.cpp +++ b/cpp/src/IceSSL/Context.cpp @@ -61,6 +61,7 @@ void IceSSL::Context::setCertificateVerifier(const CertificateVerifierPtr& verifier) { _certificateVerifier = verifier; + _certificateVerifier->setContext(_contextType); } void @@ -153,11 +154,14 @@ IceSSL::Context::configure(const GeneralConfig& generalConfig, // Protected // -IceSSL::Context::Context(const TraceLevelsPtr& traceLevels, const CommunicatorPtr& communicator) : +IceSSL::Context::Context(const TraceLevelsPtr& traceLevels, const CommunicatorPtr& communicator, + const ContextType& type) : _traceLevels(traceLevels), - _communicator(communicator) + _communicator(communicator), + _contextType(type) { _certificateVerifier = new DefaultCertificateVerifier(traceLevels, communicator); + _certificateVerifier->setContext(_contextType); _sslContext = 0; _maxPassphraseRetriesDefault = "4"; |