From: jfclere Date: Tue, 25 May 2010 09:13:15 +0000 (+0000) Subject: It would a lot of work to have it switchable in APR. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1577c23ff9734f07eeda86c2d97fc7c6e8acbce0;p=tomcat7.0 It would a lot of work to have it switchable in APR. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@947974 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/startup/TestTomcatSSL.java b/test/org/apache/catalina/startup/TestTomcatSSL.java index d859d57a4..55491e540 100644 --- a/test/org/apache/catalina/startup/TestTomcatSSL.java +++ b/test/org/apache/catalina/startup/TestTomcatSSL.java @@ -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();