1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Rework NewSessionTicket handling in state machine

Fixes bug: NewSessionTicket was ommited in resumed sessions.
This commit is contained in:
Manuel Pégourié-Gonnard
2013-08-02 13:24:41 +02:00
committed by Paul Bakker
parent 3ffa3db80b
commit 7cd5924cec
3 changed files with 13 additions and 23 deletions

View File

@ -2619,11 +2619,6 @@ int ssl_write_finished( ssl_context *ssl )
else
ssl->state = SSL_CLIENT_CHANGE_CIPHER_SPEC;
}
else if( ssl->endpoint == SSL_IS_CLIENT &&
ssl->handshake->new_session_ticket != 0 )
{
ssl->state = SSL_SERVER_NEW_SESSION_TICKET;
}
else
ssl->state++;
@ -2736,11 +2731,6 @@ int ssl_parse_finished( ssl_context *ssl )
if( ssl->endpoint == SSL_IS_SERVER )
ssl->state = SSL_HANDSHAKE_WRAPUP;
}
else if( ssl->endpoint == SSL_IS_SERVER &&
ssl->handshake->new_session_ticket != 0 )
{
ssl->state = SSL_SERVER_NEW_SESSION_TICKET;
}
else
ssl->state++;