summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/TrustManager.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-05-31 15:33:03 +0000
committerMark Spruiell <mes@zeroc.com>2006-05-31 15:33:03 +0000
commit0871f588cbbcd1759cce22bdab44e3352ee76245 (patch)
tree600d96f7b5314524dc367ac0fec01ef8bdbf3a44 /cpp/src/IceSSL/TrustManager.cpp
parentDependency fixes (diff)
downloadice-0871f588cbbcd1759cce22bdab44e3352ee76245.tar.bz2
ice-0871f588cbbcd1759cce22bdab44e3352ee76245.tar.xz
ice-0871f588cbbcd1759cce22bdab44e3352ee76245.zip
minor edits
Diffstat (limited to 'cpp/src/IceSSL/TrustManager.cpp')
-rw-r--r--cpp/src/IceSSL/TrustManager.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IceSSL/TrustManager.cpp b/cpp/src/IceSSL/TrustManager.cpp
index f32ba2b1d2a..8814afe016c 100644
--- a/cpp/src/IceSSL/TrustManager.cpp
+++ b/cpp/src/IceSSL/TrustManager.cpp
@@ -47,7 +47,7 @@ TrustManager::TrustManager(const Ice::CommunicatorPtr& communicator) :
catch(const RFC2253::ParseException& e)
{
Ice::PluginInitializationException ex(__FILE__, __LINE__);
- ex.reason = "IceSSL: unable to initialize. property: " + key + " reason: " + e.reason;
+ ex.reason = "IceSSL: invalid property " + key + ":\n" + e.reason;
throw ex;
}
}
@@ -85,7 +85,6 @@ TrustManager::verify(const ConnectionInfo& info)
}
}
-
//
// If there is nothing to match against, then we accept the cert.
//
@@ -113,7 +112,7 @@ TrustManager::verify(const ConnectionInfo& info)
if(alldn.size() != 1)
{
Ice::Warning warn(_communicator->getLogger());
- warn << "certificate DN parsed more than one DN. dn: " + info.certs[0]->getSubjectDN();
+ warn << "IceSSL: certificate contains more than one DN:\n" + info.certs[0]->getSubjectDN();
return false;
}
list<pair<string, string> > dn = alldn.front();
@@ -133,9 +132,11 @@ TrustManager::verify(const ConnectionInfo& info)
catch(const RFC2253::ParseException& e)
{
Ice::Warning warn(_communicator->getLogger());
- warn << "certificate DN failed to parse. DN: " + info.certs[0]->getSubjectDN() + " reason: " + e.reason;
+ warn << "IceSSL: unable to parse certificate DN `" + info.certs[0]->getSubjectDN() + "'\nreason: " +
+ e.reason;
}
}
+
return false;
}