summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/OpenSSLPluginI.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2004-02-12 21:59:52 +0000
committerAnthony Neal <aneal@zeroc.com>2004-02-12 21:59:52 +0000
commitaf18d6bf6d51018be5418b061dce4c6e3e056ed2 (patch)
tree7eee5d58f59f69b66eee44a25b7058ea866cdc00 /cpp/src/IceSSL/OpenSSLPluginI.cpp
parentFix (diff)
downloadice-af18d6bf6d51018be5418b061dce4c6e3e056ed2.tar.bz2
ice-af18d6bf6d51018be5418b061dce4c6e3e056ed2.tar.xz
ice-af18d6bf6d51018be5418b061dce4c6e3e056ed2.zip
Fix for bug 4194, you can now turn off certificate validity period checking
of peer certificates. See the IceSSL.Client.IgnoreValidPeriod and IceSSL.Server.IgnoreValidPeriod properties.
Diffstat (limited to 'cpp/src/IceSSL/OpenSSLPluginI.cpp')
-rw-r--r--cpp/src/IceSSL/OpenSSLPluginI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/OpenSSLPluginI.cpp b/cpp/src/IceSSL/OpenSSLPluginI.cpp
index b4cc3d60bac..1e8e1abbe30 100644
--- a/cpp/src/IceSSL/OpenSSLPluginI.cpp
+++ b/cpp/src/IceSSL/OpenSSLPluginI.cpp
@@ -232,6 +232,7 @@ IceSSL::OpenSSLPluginI::~OpenSSLPluginI()
ERR_free_strings();
unregisterThreads();
+ ERR_remove_state(0);
EVP_cleanup();
@@ -640,6 +641,8 @@ IceSSL::OpenSSLPluginI::setCertificateVerifier(ContextType contextType,
throw cvtEx;
}
+ castVerifier->setContext(contextType);
+
if(contextType == Client || contextType == ClientServer)
{
_clientContext.setCertificateVerifier(castVerifier);