hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1632966 - /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java
Date Sun, 19 Oct 2014 18:35:32 GMT
Author: olegk
Date: Sun Oct 19 18:35:32 2014
New Revision: 1632966

URL: http://svn.apache.org/r1632966
Log:
Do not use TLSv1.1 and TLSv1.2 in SSL tests

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java?rev=1632966&r1=1632965&r2=1632966&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java
Sun Oct 19 18:35:32 2014
@@ -528,9 +528,7 @@ public class TestSSLContextBuilder {
         final SSLServerSocket serverSocket = (SSLServerSocket) serverSslContext.getServerSocketFactory().createServerSocket();
         final Set<String> supportedServerProtocols = new LinkedHashSet<String>(Arrays.asList(serverSocket.getSupportedProtocols()));
         Assert.assertTrue(supportedServerProtocols.contains("TLSv1"));
-        Assert.assertTrue(supportedServerProtocols.contains("TLSv1.1"));
-        Assert.assertTrue(supportedServerProtocols.contains("TLSv1.2"));
-        serverSocket.setEnabledProtocols(new String[] {"TLSv1", "TLSv1.1", "TLSv1.2"});
+        serverSocket.setEnabledProtocols(new String[] {"TLSv1"});
         serverSocket.bind(new InetSocketAddress(0));
 
         this.executorService = Executors.newSingleThreadExecutor();
@@ -599,9 +597,7 @@ public class TestSSLContextBuilder {
         try {
             final Set<String> supportedClientProtocols = new LinkedHashSet<String>(Arrays.asList(clientSocket.getSupportedProtocols()));
             Assert.assertTrue(supportedClientProtocols.contains("TLSv1"));
-            Assert.assertTrue(supportedClientProtocols.contains("TLSv1.1"));
-            Assert.assertTrue(supportedClientProtocols.contains("TLSv1.2"));
-            clientSocket.setEnabledProtocols(new String[] {"TLSv1", "TLSv1.1", "TLSv1.2"});
+            clientSocket.setEnabledProtocols(new String[] {"TLSv1"});
             clientSocket.connect(new InetSocketAddress("localhost", localPort), 5000);
             clientSocket.startHandshake();
         } finally {



Mime
View raw message