8017049: rename property jdk.tls.rejectClientInitializedRenego
Reviewed-by: vinnie, wetmore, mullan
This commit is contained in:
parent
345f3a94c5
commit
d22a89a1ae
@ -187,14 +187,14 @@ abstract class Handshaker {
|
|||||||
"sun.security.ssl.allowLegacyHelloMessages", true);
|
"sun.security.ssl.allowLegacyHelloMessages", true);
|
||||||
|
|
||||||
// To prevent the TLS renegotiation issues, by setting system property
|
// To prevent the TLS renegotiation issues, by setting system property
|
||||||
// "jdk.tls.rejectClientInitializedRenego" to true, applications in server
|
// "jdk.tls.rejectClientInitiatedRenegotiation" to true, applications in
|
||||||
// side can disable all client initiated SSL renegotiations regardless
|
// server side can disable all client initiated SSL renegotiations
|
||||||
// of the support of TLS protocols.
|
// regardless of the support of TLS protocols.
|
||||||
//
|
//
|
||||||
// By default, allow client initiated renegotiations.
|
// By default, allow client initiated renegotiations.
|
||||||
static final boolean rejectClientInitiatedRenego =
|
static final boolean rejectClientInitiatedRenego =
|
||||||
Debug.getBooleanProperty(
|
Debug.getBooleanProperty(
|
||||||
"jdk.tls.rejectClientInitializedRenego", false);
|
"jdk.tls.rejectClientInitiatedRenegotiation", false);
|
||||||
|
|
||||||
// need to dispose the object when it is invalidated
|
// need to dispose the object when it is invalidated
|
||||||
boolean invalidated;
|
boolean invalidated;
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
* @bug 7188658
|
* @bug 7188658
|
||||||
* @summary Add possibility to disable client initiated renegotiation
|
* @summary Add possibility to disable client initiated renegotiation
|
||||||
* @run main/othervm
|
* @run main/othervm
|
||||||
* -Djdk.tls.rejectClientInitializedRenego=true NoImpactServerRenego
|
* -Djdk.tls.rejectClientInitiatedRenegotiation=true NoImpactServerRenego
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
@ -216,7 +216,8 @@ public class RejectClientRenego implements
|
|||||||
System.setProperty("javax.net.ssl.trustStorePassword", passwd);
|
System.setProperty("javax.net.ssl.trustStorePassword", passwd);
|
||||||
|
|
||||||
// reject client initialized SSL renegotiation.
|
// reject client initialized SSL renegotiation.
|
||||||
System.setProperty("jdk.tls.rejectClientInitializedRenego", "true");
|
System.setProperty(
|
||||||
|
"jdk.tls.rejectClientInitiatedRenegotiation", "true");
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
System.setProperty("javax.net.debug", "all");
|
System.setProperty("javax.net.debug", "all");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user