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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org