diff options
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 { |