提交 05a8fbbd 编写于 作者: X xuelei

8017049: rename property jdk.tls.rejectClientInitializedRenego

Reviewed-by: vinnie, wetmore, mullan
上级 3da441e2
......@@ -187,14 +187,14 @@ abstract class Handshaker {
"sun.security.ssl.allowLegacyHelloMessages", true);
// To prevent the TLS renegotiation issues, by setting system property
// "jdk.tls.rejectClientInitializedRenego" to true, applications in server
// side can disable all client initiated SSL renegotiations regardless
// of the support of TLS protocols.
// "jdk.tls.rejectClientInitiatedRenegotiation" to true, applications in
// server side can disable all client initiated SSL renegotiations
// regardless of the support of TLS protocols.
//
// By default, allow client initiated renegotiations.
static final boolean rejectClientInitiatedRenego =
Debug.getBooleanProperty(
"jdk.tls.rejectClientInitializedRenego", false);
"jdk.tls.rejectClientInitiatedRenegotiation", false);
// need to dispose the object when it is invalidated
boolean invalidated;
......
......@@ -29,7 +29,7 @@
* @bug 7188658
* @summary Add possibility to disable client initiated renegotiation
* @run main/othervm
* -Djdk.tls.rejectClientInitializedRenego=true NoImpactServerRenego
* -Djdk.tls.rejectClientInitiatedRenegotiation=true NoImpactServerRenego
*/
import java.io.*;
......
......@@ -216,7 +216,8 @@ public class RejectClientRenego implements
System.setProperty("javax.net.ssl.trustStorePassword", passwd);
// reject client initialized SSL renegotiation.
System.setProperty("jdk.tls.rejectClientInitializedRenego", "true");
System.setProperty(
"jdk.tls.rejectClientInitiatedRenegotiation", "true");
if (debug)
System.setProperty("javax.net.debug", "all");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册