summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SslConnectionOpenSSLServer.cpp
diff options
context:
space:
mode:
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
{