qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject qpid-jms git commit: dont need to disable host verification with updated keystores
Date Fri, 13 Mar 2015 19:03:55 GMT
Repository: qpid-jms
Updated Branches:
  refs/heads/master f1b19acb9 -> 63467e18e


dont need to disable host verification with updated keystores


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/63467e18
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/63467e18
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/63467e18

Branch: refs/heads/master
Commit: 63467e18e29f67e36dc02a3e14ae76ed3bb69a11
Parents: f1b19ac
Author: Robert Gemmell <robbie@apache.org>
Authored: Fri Mar 13 19:02:14 2015 +0000
Committer: Robert Gemmell <robbie@apache.org>
Committed: Fri Mar 13 19:02:14 2015 +0000

----------------------------------------------------------------------
 .../qpid/jms/transports/netty/NettySslTransportTest.java      | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/63467e18/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettySslTransportTest.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettySslTransportTest.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettySslTransportTest.java
index bee430b..c1542e6 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettySslTransportTest.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettySslTransportTest.java
@@ -63,7 +63,7 @@ public class NettySslTransportTest extends NettyTcpTransportTest {
             int port = server.getServerPort();
             URI serverLocation = new URI("tcp://localhost:" + port);
 
-            Transport transport = createTransport(serverLocation, testListener, createClientOptionsWithoutTrustStore(false,
false));
+            Transport transport = createTransport(serverLocation, testListener, createClientOptionsWithoutTrustStore(false));
             try {
                 transport.connect();
                 fail("Should not have connected to the server");
@@ -115,7 +115,7 @@ public class NettySslTransportTest extends NettyTcpTransportTest {
             int port = server.getServerPort();
             URI serverLocation = new URI("tcp://localhost:" + port);
 
-            Transport transport = createTransport(serverLocation, testListener, createClientOptionsWithoutTrustStore(true,
false));
+            Transport transport = createTransport(serverLocation, testListener, createClientOptionsWithoutTrustStore(true));
             try {
                 transport.connect();
                 LOG.info("Connection established to untrusted test server.");
@@ -222,12 +222,11 @@ public class NettySslTransportTest extends NettyTcpTransportTest {
         return options;
     }
 
-    protected TransportSslOptions createClientOptionsWithoutTrustStore(boolean trustAll,
boolean verifyHost) {
+    protected TransportSslOptions createClientOptionsWithoutTrustStore(boolean trustAll)
{
         TransportSslOptions options = TransportSslOptions.INSTANCE.clone();
 
         options.setStoreType(KEYSTORE_TYPE);
         options.setTrustAll(trustAll);
-        options.setVerifyHost(verifyHost);
 
         return options;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message