8017049: rename property jdk.tls.rejectClientInitializedRenego

Reviewed-by: vinnie, wetmore, mullan
This commit is contained in:
Xue-Lei Andrew Fan 2013-06-26 06:32:40 -07:00
parent 345f3a94c5
commit d22a89a1ae
3 changed files with 7 additions and 6 deletions

View File

@ -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;

View File

@ -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.*;

View File

@ -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");