mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8233619: SSLEngine handshake status immediately after the handshake can be NOT_HANDSHAKING rather than FINISHED with TLSv1.3
Reviewed-by: jnimeh
This commit is contained in:
parent
467ee78a52
commit
89448a83d9
4 changed files with 463 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1140,8 +1140,8 @@ final class Finished {
|
|||
SSLLogger.fine(
|
||||
"Sending new session ticket");
|
||||
}
|
||||
NewSessionTicket.kickstartProducer.produce(shc);
|
||||
|
||||
NewSessionTicket.kickstartProducer.produce(shc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -429,8 +429,8 @@ final class NewSessionTicket {
|
|||
hc.handshakeOutput.flush();
|
||||
}
|
||||
|
||||
if (hc instanceof PostHandshakeContext) {
|
||||
((PostHandshakeContext) hc).finish();
|
||||
if (hc.negotiatedProtocol.useTLS13PlusSpec()) {
|
||||
hc.conContext.finishPostHandshake();
|
||||
}
|
||||
|
||||
// The message has been delivered.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -83,9 +83,4 @@ final class PostHandshakeContext extends HandshakeContext {
|
|||
SSLHandshake.nameOf(handshakeType), be);
|
||||
}
|
||||
}
|
||||
|
||||
// Finish this PostHandshake event
|
||||
void finish() {
|
||||
handshakeSession = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue