mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8211018: Session Resumption without Server-Side State
Reviewed-by: xuelei, jnimeh, jjiang
This commit is contained in:
parent
9597144fb2
commit
94e1d7530f
21 changed files with 1620 additions and 150 deletions
|
@ -159,14 +159,19 @@ class TransportContext implements ConnectionContext {
|
|||
if (handshakeContext == null) {
|
||||
if (type == SSLHandshake.KEY_UPDATE.id ||
|
||||
type == SSLHandshake.NEW_SESSION_TICKET.id) {
|
||||
if (isNegotiated &&
|
||||
protocolVersion.useTLS13PlusSpec()) {
|
||||
handshakeContext = new PostHandshakeContext(this);
|
||||
} else {
|
||||
if (!isNegotiated) {
|
||||
throw fatal(Alert.UNEXPECTED_MESSAGE,
|
||||
"Unexpected unnegotiated post-handshake" +
|
||||
" message: " +
|
||||
SSLHandshake.nameOf(type));
|
||||
}
|
||||
if (type == SSLHandshake.KEY_UPDATE.id &&
|
||||
!protocolVersion.useTLS13PlusSpec()) {
|
||||
throw fatal(Alert.UNEXPECTED_MESSAGE,
|
||||
"Unexpected post-handshake message: " +
|
||||
SSLHandshake.nameOf(type));
|
||||
}
|
||||
handshakeContext = new PostHandshakeContext(this);
|
||||
} else {
|
||||
handshakeContext = sslConfig.isClientMode ?
|
||||
new ClientHandshakeContext(sslContext, this) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue