diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-03-15 19:10:11 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-03-15 19:10:11 +0000 |
commit | f7b0dbc3d03677e9179d11ef046f5c93dd359ae6 (patch) | |
tree | 6587c62e7d385b70dce982440fbf8e48f3e27d09 /cpp/src/Ice/SslConnectionOpenSSLServer.cpp | |
parent | adding hashCode (diff) | |
download | ice-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.cpp | 14 |
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 { |