Skip to content

Commit

Permalink
Merge branch 'server-keeps-sending-newsessiontickets' into dtls1.3-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
fwh-dc committed Oct 16, 2023
2 parents 9a07d61 + 4e1268e commit a8cb2f2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ssl/statem/statem_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,15 @@ WORK_STATE ossl_statem_server_pre_work(SSL_CONNECTION *s, WORK_STATE wst)
return WORK_FINISHED_CONTINUE;

case TLS_ST_SW_SESSION_TICKET:
if ((SSL_CONNECTION_IS_TLS13(s) || SSL_CONNECTION_IS_DTLS13(s)) && s->sent_tickets == 0
if (SSL_CONNECTION_IS_DTLS(s)) {
/*
* We're into the last flight. We don't retransmit the last flight
* unless we need to, so we don't use the timer
*/
st->use_timer = 0;
}
if ((SSL_CONNECTION_IS_TLS13(s) || SSL_CONNECTION_IS_DTLS13(s))
&& s->sent_tickets == 0
&& s->ext.extra_tickets_expected == 0) {
/*
* Actually this is the end of the handshake, but we're going
Expand All @@ -796,13 +804,6 @@ WORK_STATE ossl_statem_server_pre_work(SSL_CONNECTION *s, WORK_STATE wst)
*/
return tls_finish_handshake(s, wst, 0, 0);
}
if (SSL_CONNECTION_IS_DTLS(s)) {
/*
* We're into the last flight. We don't retransmit the last flight
* unless we need to, so we don't use the timer
*/
st->use_timer = 0;
}
break;

case TLS_ST_SW_CHANGE:
Expand Down

0 comments on commit a8cb2f2

Please sign in to comment.