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);
|
||||
|
||||
// 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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user