src/java.base/share/classes/sun/security/ssl/ClientHello.java
changeset 53018 8bf9268df0e2
parent 52170 2990f1e1c325
child 53064 103ed9569fc8
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
   489                 if ((session != null) &&
   489                 if ((session != null) &&
   490                         !ClientHandshakeContext.allowUnsafeServerCertChange) {
   490                         !ClientHandshakeContext.allowUnsafeServerCertChange) {
   491                     // It is fine to move on with abbreviate handshake if
   491                     // It is fine to move on with abbreviate handshake if
   492                     // endpoint identification is enabled.
   492                     // endpoint identification is enabled.
   493                     String identityAlg = chc.sslConfig.identificationProtocol;
   493                     String identityAlg = chc.sslConfig.identificationProtocol;
   494                     if ((identityAlg == null || identityAlg.length() == 0)) {
   494                     if (identityAlg == null || identityAlg.isEmpty()) {
   495                         if (isEmsAvailable) {
   495                         if (isEmsAvailable) {
   496                             if (!session.useExtendedMasterSecret) {
   496                             if (!session.useExtendedMasterSecret) {
   497                                 // perform full handshake instead
   497                                 // perform full handshake instead
   498                                 session = null;
   498                                 session = null;
   499                             }   // Otherwise, use extended master secret.
   499                             }   // Otherwise, use extended master secret.