summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SslConnectionOpenSSLServer.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-03-15 19:10:11 +0000
committerAnthony Neal <aneal@zeroc.com>2002-03-15 19:10:11 +0000
commitf7b0dbc3d03677e9179d11ef046f5c93dd359ae6 (patch)
tree6587c62e7d385b70dce982440fbf8e48f3e27d09 /cpp/src/Ice/SslConnectionOpenSSLServer.cpp
parentadding hashCode (diff)
downloadice-f7b0dbc3d03677e9179d11ef046f5c93dd359ae6.tar.bz2
ice-f7b0dbc3d03677e9179d11ef046f5c93dd359ae6.tar.xz
ice-f7b0dbc3d03677e9179d11ef046f5c93dd359ae6.zip
Added new, more descriptive of the problem, IceSSL exceptions.
Diffstat (limited to 'cpp/src/Ice/SslConnectionOpenSSLServer.cpp')
-rw-r--r--cpp/src/Ice/SslConnectionOpenSSLServer.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/cpp/src/Ice/SslConnectionOpenSSLServer.cpp b/cpp/src/Ice/SslConnectionOpenSSLServer.cpp
index 96392f0e551..7df78b3d32d 100644
--- a/cpp/src/Ice/SslConnectionOpenSSLServer.cpp
+++ b/cpp/src/Ice/SslConnectionOpenSSLServer.cpp
@@ -119,11 +119,19 @@ IceSSL::OpenSSL::ServerConnection::init(int timeout)
if (verify_error != X509_V_OK)
{
- CertificateException certEx(__FILE__, __LINE__);
+ CertificateVerificationException certVerEx(__FILE__, __LINE__);
- certEx._message = "SSL certificate verification error.";
+ certVerEx._message = "SSL certificate verification error.";
+
+ string errors = sslGetErrors();
+
+ if (!errors.empty())
+ {
+ certVerEx._message += "\n";
+ certVerEx._message += errors;
+ }
- throw certEx;
+ throw certVerEx;
}
else
{