src/java.base/share/classes/sun/security/ssl/SSLExtension.java
changeset 58998 9e2f184eac99
parent 55353 946f7f2d321c
equal deleted inserted replaced
58991:90cf1d4e712f 58998:9e2f184eac99
   694             if (!enableExtension) {
   694             if (!enableExtension) {
   695                 extensions.remove(CH_SERVER_NAME);
   695                 extensions.remove(CH_SERVER_NAME);
   696             }
   696             }
   697 
   697 
   698             // To switch off the max_fragment_length extension.
   698             // To switch off the max_fragment_length extension.
       
   699             //
       
   700             // Note that "jsse.enableMFLNExtension" is the CSR approved
       
   701             // property name.  However, "jsse.enableMFLExtension" was used
       
   702             // in the original implementation.  Temporarily, if either of
       
   703             // the two properties set to true, the extension is switch on.
       
   704             // We may remove the "jsse.enableMFLExtension" property in the
       
   705             // future.  Please don't continue to use the misspelling property.
   699             enableExtension =
   706             enableExtension =
   700                 Utilities.getBooleanProperty("jsse.enableMFLExtension", false);
   707                 Utilities.getBooleanProperty(
       
   708                         "jsse.enableMFLNExtension", false) ||
       
   709                 Utilities.getBooleanProperty(
       
   710                         "jsse.enableMFLExtension", false);
   701             if (!enableExtension) {
   711             if (!enableExtension) {
   702                 extensions.remove(CH_MAX_FRAGMENT_LENGTH);
   712                 extensions.remove(CH_MAX_FRAGMENT_LENGTH);
   703             }
   713             }
   704 
   714 
   705             defaults = Collections.unmodifiableCollection(extensions);
   715             defaults = Collections.unmodifiableCollection(extensions);