It would a lot of work to have it switchable in APR.
authorjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 25 May 2010 09:13:15 +0000 (09:13 +0000)
committerjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 25 May 2010 09:13:15 +0000 (09:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@947974 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/startup/TestTomcatSSL.java

index d859d57..55491e5 100644 (file)
@@ -217,6 +217,12 @@ public class TestTomcatSSL extends TomcatBaseTest {
         tomcat.getConnector().setAttribute("allowUnsafeLegacyRenegotiation", "true");
 
         tomcat.start();
+
+        String protocol = tomcat.getConnector().getProtocolHandlerClassName();
+        if (protocol.indexOf("Apr") != -1) {
+            return; // Not supported yet (10/05/25)
+        }
+
         SSLContext sslCtx = SSLContext.getInstance("TLS");
         sslCtx.init(null, trustAllCerts, new java.security.SecureRandom());
         SSLSocketFactory socketFactory = sslCtx.getSocketFactory();