src/java.base/share/classes/sun/security/ssl/ServerKeyExchange.java
changeset 55715 e2af6324d67c
parent 53064 103ed9569fc8
equal deleted inserted replaced
55714:e17ec6bc670a 55715:e2af6324d67c
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    90             ClientHandshakeContext chc = (ClientHandshakeContext)context;
    90             ClientHandshakeContext chc = (ClientHandshakeContext)context;
    91 
    91 
    92             // clean up this consumer
    92             // clean up this consumer
    93             chc.handshakeConsumers.remove(SSLHandshake.SERVER_KEY_EXCHANGE.id);
    93             chc.handshakeConsumers.remove(SSLHandshake.SERVER_KEY_EXCHANGE.id);
    94 
    94 
       
    95             SSLConsumer certStatCons = chc.handshakeConsumers.remove(
       
    96                     SSLHandshake.CERTIFICATE_STATUS.id);
       
    97             if (certStatCons != null) {
       
    98                 // Stapling was active but no certificate status message
       
    99                 // was sent.  We need to run the absence handler which will
       
   100                 // check the certificate chain.
       
   101                 CertificateStatus.handshakeAbsence.absent(context, null);
       
   102             }
       
   103 
    95             SSLKeyExchange ke = SSLKeyExchange.valueOf(
   104             SSLKeyExchange ke = SSLKeyExchange.valueOf(
    96                     chc.negotiatedCipherSuite.keyExchange,
   105                     chc.negotiatedCipherSuite.keyExchange,
    97                     chc.negotiatedProtocol);
   106                     chc.negotiatedProtocol);
    98             if (ke != null) {
   107             if (ke != null) {
    99                 for (Map.Entry<Byte, SSLConsumer> hc :
   108                 for (Map.Entry<Byte, SSLConsumer> hc :