Author: markt
Date: Wed Aug 23 11:43:30 2017
New Revision: 1805883

URL: http://svn.apache.org/viewvc?rev=1805883&view=rev
Log:
Fix a warning when compiling with LibreSSL

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=1805883&r1=1805882&r2=1805883&view=diff
==============================================================================
--- tomcat/native/trunk/native/src/sslcontext.c (original)
+++ tomcat/native/trunk/native/src/sslcontext.c Wed Aug 23 11:43:30 2017
@@ -1211,9 +1211,14 @@ TCN_IMPLEMENT_CALL(jboolean, SSLContext,
         ERR_error_string(SSL_ERR_get(), err);
         tcn_Throw(e, "Error reading certificate (%s)", err);
         rv = JNI_FALSE;
+#if defined(LIBRESSL_VERSION_NUMBER)
+    } else {
+        tcn_Throw(e, "Unable to use Java keystores with LibreSSL");
+#else
     } else if (SSL_CTX_add0_chain_cert(c->ctx, certs) <= 0) {
         ERR_error_string(SSL_ERR_get(), err);
         tcn_Throw(e, "Error adding certificate to chain (%s)", err);
+#endif
         rv = JNI_FALSE;
     }
 



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

Reply via email to