Rename attribute
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 10 Nov 2009 15:38:37 +0000 (15:38 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 10 Nov 2009 15:38:37 +0000 (15:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@834506 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java

index 956af3e..a552b8e 100644 (file)
@@ -102,7 +102,7 @@ public class JSSESocketFactory
     protected String clientAuth = "false";
     protected SSLServerSocketFactory sslProxy = null;
     protected String[] enabledCiphers;
-    protected boolean enableMitmVulnerability = false;
+    protected boolean allowUnsafeLegacyRenegotiation = false;
 
     /**
      * Flag to state that we require client authentication.
@@ -157,7 +157,7 @@ public class JSSESocketFactory
         SSLSocket asock = null;
         try {
              asock = (SSLSocket)socket.accept();
-             if (!enableMitmVulnerability) {
+             if (!allowUnsafeLegacyRenegotiation) {
                  asock.addHandshakeCompletedListener(
                          new DisableSslRenegotiation());
              }
@@ -490,8 +490,8 @@ public class JSSESocketFactory
                 getEnabledCiphers(requestedCiphers,
                         sslProxy.getSupportedCipherSuites());
 
-            enableMitmVulnerability =
-                "true".equals(attributes.get("enableMitmVulnerability"));
+            allowUnsafeLegacyRenegotiation =
+                "true".equals(attributes.get("allowUnsafeLegacyRenegotiation"));
             
             // Check the SSL config is OK
             checkConfig();