tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1144880 - /tomcat/native/trunk/native/src/sslcontext.c
Date Sun, 10 Jul 2011 15:31:36 GMT
Author: rjung
Date: Sun Jul 10 15:31:36 2011
New Revision: 1144880

URL: http://svn.apache.org/viewvc?rev=1144880&view=rev
Log:
Forward port of r1099730 for tcnative trunk.
Add the openssl error message to thrown error message.

Modified:
    tomcat/native/trunk/native/src/sslcontext.c

Modified: tomcat/native/trunk/native/src/sslcontext.c
URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/src/sslcontext.c?rev=1144880&r1=1144879&r2=1144880&view=diff
==============================================================================
--- tomcat/native/trunk/native/src/sslcontext.c (original)
+++ tomcat/native/trunk/native/src/sslcontext.c Sun Jul 10 15:31:36 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