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