提交 da2b09fc 编写于 作者: S snikandrova

8151197: [TEST_BUG] Need to backport fix for test/javax/net/ssl/TLS/TestJSSE.java

Reviewed-by: xuelei
上级 f93cab60
/** /**
* Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it under * This code is free software; you can redistribute it and/or modify it under
...@@ -78,6 +78,10 @@ public class TestJSSE { ...@@ -78,6 +78,10 @@ public class TestJSSE {
private static final String LOCAL_IP = "127.0.0.1"; private static final String LOCAL_IP = "127.0.0.1";
public static void main(String... args) throws Exception { public static void main(String... args) throws Exception {
// reset the security property to make sure that the algorithms
// and keys used in this test are not disabled.
Security.setProperty("jdk.tls.disabledAlgorithms", "");
String serverProtocol = System.getProperty("SERVER_PROTOCOL"); String serverProtocol = System.getProperty("SERVER_PROTOCOL");
String clientProtocol = System.getProperty("CLIENT_PROTOCOL"); String clientProtocol = System.getProperty("CLIENT_PROTOCOL");
int port = jdk.testlibrary.Utils.getFreePort(); int port = jdk.testlibrary.Utils.getFreePort();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册