SSL should be based on SSLEnabled, not secure flag
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 29 Oct 2009 21:48:04 +0000 (21:48 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 29 Oct 2009 21:48:04 +0000 (21:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@831106 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11NioProtocol.java
java/org/apache/coyote/http11/Http11Protocol.java

index 1121f00..9246e5f 100644 (file)
@@ -734,7 +734,7 @@ public class Http11NioProtocol implements ProtocolHandler, MBeanRegistration
 
                 processor.action(ActionCode.ACTION_START, null);
                 
-                if (proto.ep.getSecure() && (proto.sslImplementation != null)) {
+                if (proto.ep.isSSLEnabled() && (proto.sslImplementation != null)) {
                     if (socket instanceof SecureNioChannel) {
                         SecureNioChannel ch = (SecureNioChannel)socket;
                         processor.setSslSupport(proto.sslImplementation.getSSLSupport(ch.getSslEngine().getSession()));
index a6ee796..0ed13e0 100644 (file)
@@ -578,7 +578,7 @@ public class Http11Protocol
 
                 processor.action(ActionCode.ACTION_START, null);
 
-                if (proto.secure && (proto.sslImplementation != null)) {
+                if (proto.isSSLEnabled() && (proto.sslImplementation != null)) {
                     processor.setSSLSupport
                         (proto.sslImplementation.getSSLSupport(socket.getSocket()));
                 } else {