1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Prepare moving away from memmove() on incoming HS

This commit is contained in:
Manuel Pégourié-Gonnard
2014-09-10 08:25:12 +00:00
committed by Paul Bakker
parent 4a1753657c
commit f899583f94
4 changed files with 38 additions and 27 deletions

View File

@ -3018,6 +3018,8 @@ static int ssl_parse_client_key_exchange( ssl_context *ssl )
return( ret );
}
ssl_hs_rm_dtls_hdr( ssl );
if( ssl->in_msgtype != SSL_MSG_HANDSHAKE )
{
SSL_DEBUG_MSG( 1, ( "bad client key exchange message" ) );
@ -3310,6 +3312,8 @@ static int ssl_parse_certificate_verify( ssl_context *ssl )
return( ret );
}
ssl_hs_rm_dtls_hdr( ssl );
ssl->state++;
if( ssl->in_msgtype != SSL_MSG_HANDSHAKE )