src/java.base/share/classes/sun/security/ssl/SSLHandshake.java
branchJDK-8145252-TLS13-branch
changeset 56704 c3ee22c3a0f6
parent 56542 56aaa6cb3693
child 56715 b152d06ed6a9
equal deleted inserted replaced
56702:75527e40bdfd 56704:c3ee22c3a0f6
   397     private SSLConsumer getHandshakeConsumer(ConnectionContext context) {
   397     private SSLConsumer getHandshakeConsumer(ConnectionContext context) {
   398         if (handshakeConsumers.length == 0) {
   398         if (handshakeConsumers.length == 0) {
   399             return null;
   399             return null;
   400         }
   400         }
   401 
   401 
   402         // The comsuming happens in handshake context only.
   402         // The consuming happens in handshake context only.
   403         HandshakeContext hc = (HandshakeContext)context;
   403         HandshakeContext hc = (HandshakeContext)context;
   404         ProtocolVersion protocolVersion;
   404         ProtocolVersion protocolVersion;
   405         if ((hc.negotiatedProtocol == null) ||
   405         if ((hc.negotiatedProtocol == null) ||
   406                 (hc.negotiatedProtocol == ProtocolVersion.NONE)) {
   406                 (hc.negotiatedProtocol == ProtocolVersion.NONE)) {
   407             protocolVersion = hc.maximumActiveProtocol;
   407             protocolVersion = hc.maximumActiveProtocol;
   437             ConnectionContext context) {
   437             ConnectionContext context) {
   438         if (handshakeConsumers.length == 0) {
   438         if (handshakeConsumers.length == 0) {
   439             return null;
   439             return null;
   440         }
   440         }
   441 
   441 
   442         // The comsuming happens in handshake context only.
   442         // The consuming happens in handshake context only.
   443         HandshakeContext hc = (HandshakeContext)context;
   443         HandshakeContext hc = (HandshakeContext)context;
   444         ProtocolVersion protocolVersion;
   444         ProtocolVersion protocolVersion;
   445         if ((hc.negotiatedProtocol == null) ||
   445         if ((hc.negotiatedProtocol == null) ||
   446                 (hc.negotiatedProtocol == ProtocolVersion.NONE)) {
   446                 (hc.negotiatedProtocol == ProtocolVersion.NONE)) {
   447             protocolVersion = hc.maximumActiveProtocol;
   447             protocolVersion = hc.maximumActiveProtocol;