tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r1099730 - /tomcat/native/branches/1.1.x/native/src/sslcontext.c
Date Thu, 05 May 2011 09:16:08 GMT
Author: jfclere
Date: Thu May  5 09:16:08 2011
New Revision: 1099730

URL: http://svn.apache.org/viewvc?rev=1099730&view=rev
Log:
Add the openssl error message to thrown error message.

Modified:
    tomcat/native/branches/1.1.x/native/src/sslcontext.c

Modified: tomcat/native/branches/1.1.x/native/src/sslcontext.c
URL: http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/src/sslcontext.c?rev=1099730&r1=1099729&r2=1099730&view=diff
==============================================================================
--- tomcat/native/branches/1.1.x/native/src/sslcontext.c (original)
+++ tomcat/native/branches/1.1.x/native/src/sslcontext.c Thu May  5 09:16:08 2011
@@ -109,7 +109,9 @@ TCN_IMPLEMENT_CALL(jlong, SSLContext, ma
         break;
     }
     if (!ctx) {
-        tcn_ThrowException(e, "Invalid Server SSL Protocol");
+        char err[256];
+        ERR_error_string(ERR_get_error(), err);
+        tcn_Throw(e, "Invalid Server SSL Protocol (%s)", err);
         goto init_failed;
     }
     if ((c = apr_pcalloc(p, sizeof(tcn_ssl_ctxt_t))) == NULL) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message