--- old/test/javax/net/ssl/templates/SSLSocketSSLEngineTemplate.java Fri May 29 00:49:25 2015 +++ new/test/javax/net/ssl/templates/SSLSocketSSLEngineTemplate.java Fri May 29 00:49:25 2015 @@ -139,6 +139,11 @@ * Main entry point for this test. */ public static void main(String args[]) throws Exception { + // reset security properties to make sure that the algorithms + // and keys used in this test are not disabled. + Security.setProperty("jdk.tls.disabledAlgorithms", ""); + Security.setProperty("jdk.certpath.disabledAlgorithms", ""); + if (debug) { System.setProperty("javax.net.debug", "all"); } @@ -153,7 +158,12 @@ */ SSLSocketSSLEngineTemplate test = new SSLSocketSSLEngineTemplate(protocol); + log("-------------------------------------"); + log("Testing " + protocol + " for direct buffers ..."); test.runTest(true); + + log("---------------------------------------"); + log("Testing " + protocol + " for indirect buffers ..."); test.runTest(false); } @@ -329,6 +339,10 @@ thread.join(); } + if (sslSocket != null) { + sslSocket.close(); + } + if (serverException != null) { if (clientException != null) { serverException.initCause(clientException);