Revert change in dtls1.2
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
668070d5f4
commit
9b421456b0
1 changed files with 3 additions and 3 deletions
|
@ -2936,9 +2936,9 @@ int mbedtls_ssl_prepare_handshake_record( mbedtls_ssl_context *ssl )
|
|||
}
|
||||
|
||||
if( ssl->handshake != NULL &&
|
||||
( ( ssl->state != MBEDTLS_SSL_HANDSHAKE_OVER &&
|
||||
( ( mbedtls_ssl_is_handshake_over( ssl ) == 0 &&
|
||||
recv_msg_seq != ssl->handshake->in_msg_seq ) ||
|
||||
( ssl->state == MBEDTLS_SSL_HANDSHAKE_OVER &&
|
||||
( mbedtls_ssl_is_handshake_over( ssl ) == 1 &&
|
||||
ssl->in_msg[0] != MBEDTLS_SSL_HS_CLIENT_HELLO ) ) )
|
||||
{
|
||||
if( recv_msg_seq > ssl->handshake->in_msg_seq )
|
||||
|
@ -4833,7 +4833,7 @@ int mbedtls_ssl_handle_message_type( mbedtls_ssl_context *ssl )
|
|||
}
|
||||
|
||||
if( ssl->handshake != NULL &&
|
||||
ssl->state == MBEDTLS_SSL_HANDSHAKE_OVER )
|
||||
mbedtls_ssl_is_handshake_over( ssl ) == 1 )
|
||||
{
|
||||
mbedtls_ssl_handshake_wrapup_free_hs_transform( ssl );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue