You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2018/10/11 22:25:41 UTC

svn commit: r1843609 - /tomcat/native/trunk/native/src/ssl.c

Author: remm
Date: Thu Oct 11 22:25:41 2018
New Revision: 1843609

URL: http://svn.apache.org/viewvc?rev=1843609&view=rev
Log:
Make my old OpenSSL happier.

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

Modified: tomcat/native/trunk/native/src/ssl.c
URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/src/ssl.c?rev=1843609&r1=1843608&r2=1843609&view=diff
==============================================================================
--- tomcat/native/trunk/native/src/ssl.c (original)
+++ tomcat/native/trunk/native/src/ssl.c Thu Oct 11 22:25:41 2018
@@ -1542,6 +1542,7 @@ TCN_IMPLEMENT_CALL(jint, SSL, renegotiat
 
 TCN_IMPLEMENT_CALL(jint, SSL, verifyClientPostHandshake)(TCN_STDARGS,
                                                          jlong ssl /* SSL * */) {
+#if defined(SSL_OP_NO_TLSv1_3)
     SSL *ssl_ = J2P(ssl, SSL *);
     tcn_ssl_conn_t *con;
 
@@ -1556,10 +1557,14 @@ TCN_IMPLEMENT_CALL(jint, SSL, verifyClie
     con->pha_state = PHA_STARTED;
 
     return SSL_verify_client_post_handshake(ssl_);
+#else
+    return 0;
+#endif
 }
 
 TCN_IMPLEMENT_CALL(jint, SSL, getPostHandshakeAuthInProgress)(TCN_STDARGS,
                                                               jlong ssl /* SSL * */) {
+#if defined(SSL_OP_NO_TLSv1_3)
     SSL *ssl_ = J2P(ssl, SSL *);
     tcn_ssl_conn_t *con;
 
@@ -1573,6 +1578,9 @@ TCN_IMPLEMENT_CALL(jint, SSL, getPostHan
     con = (tcn_ssl_conn_t *)SSL_get_app_data(ssl_);
 
     return (con->pha_state == PHA_STARTED);
+#else
+    return 0;
+#endif
 }
 
 /* Read which protocol was negotiated for the given SSL *. */



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