changeset 56878:9e2f184eac99

8233621: Mismatch in jsse.enableMFLNExtension property name Reviewed-by: mullan
author xuelei
date Fri, 08 Nov 2019 18:35:33 -0800
parents 90cf1d4e712f
children 6bc29ebe053e
files src/java.base/share/classes/sun/security/ssl/SSLExtension.java
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/sun/security/ssl/SSLExtension.java	Fri Nov 08 16:53:57 2019 +0800
+++ b/src/java.base/share/classes/sun/security/ssl/SSLExtension.java	Fri Nov 08 18:35:33 2019 -0800
@@ -696,8 +696,18 @@
             }
 
             // To switch off the max_fragment_length extension.
+            //
+            // Note that "jsse.enableMFLNExtension" is the CSR approved
+            // property name.  However, "jsse.enableMFLExtension" was used
+            // in the original implementation.  Temporarily, if either of
+            // the two properties set to true, the extension is switch on.
+            // We may remove the "jsse.enableMFLExtension" property in the
+            // future.  Please don't continue to use the misspelling property.
             enableExtension =
-                Utilities.getBooleanProperty("jsse.enableMFLExtension", false);
+                Utilities.getBooleanProperty(
+                        "jsse.enableMFLNExtension", false) ||
+                Utilities.getBooleanProperty(
+                        "jsse.enableMFLExtension", false);
             if (!enableExtension) {
                 extensions.remove(CH_MAX_FRAGMENT_LENGTH);
             }