Author: rjung Date: Sun Aug 27 12:21:41 2017 New Revision: 1806356 URL: http://svn.apache.org/viewvc?rev=1806356&view=rev Log: Revert part of r1805525:
Some attributes of the SSL connection actually can change dynamically after initialization, especially the auth mode during renegotiation. Not allowing this broke multiple junit tests in TestCustomSsl and TestClientCert. Modified: tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java Modified: tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java?rev=1806356&r1=1806355&r2=1806356&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java Sun Aug 27 12:21:41 2017 @@ -1001,9 +1001,6 @@ public final class OpenSSLEngine extends @Override public void setUseClientMode(boolean clientMode) { - if (initialized) { - return; - } if (clientMode != this.clientMode) { throw new UnsupportedOperationException(); } @@ -1035,9 +1032,6 @@ public final class OpenSSLEngine extends } private void setClientAuth(ClientAuthMode mode) { - if (initialized) { - return; - } if (clientMode) { return; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org