summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/Context.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/Context.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/Context.cpp')
-rw-r--r--cpp/src/IceSSL/Context.cpp8
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";