Allow renewed tickets on session resumption in DTLS.

Analogous fix for DTLS as upstream's c519e89f5c359b8c0f747519773284d9b6382791.

Change-Id: I8a56070ce2a1edf4e9ceb2fd8ce08552e25a1cf3
Reviewed-on: https://boringssl-review.googlesource.com/1504
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2014-08-13 14:50:01 -04:00 committed by Adam Langley
parent 09bd58d1f1
commit 6491e8c267

View File

@ -275,6 +275,11 @@ int dtls1_connect(SSL *s)
if (s->hit)
{
s->state=SSL3_ST_CR_FINISHED_A;
if (s->tlsext_ticket_expected)
{
/* receive renewed session ticket */
s->state=SSL3_ST_CR_SESSION_TICKET_A;
}
}
else
s->state=DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A;