mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Add handshake version test
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
@@ -2099,6 +2099,17 @@ void perform_handshake( handshake_test_options* options )
|
||||
}
|
||||
|
||||
TEST_ASSERT( mbedtls_ssl_is_handshake_over( &client.ssl ) == 1 );
|
||||
|
||||
/* Workaround for TLS1.3 */
|
||||
TEST_ASSERT( mbedtls_move_handshake_to_state( &(server.ssl),
|
||||
&(client.ssl),
|
||||
MBEDTLS_SSL_HANDSHAKE_OVER )
|
||||
== expected_handshake_result );
|
||||
if( expected_handshake_result != 0 )
|
||||
{
|
||||
goto exit;
|
||||
}
|
||||
|
||||
TEST_ASSERT( mbedtls_ssl_is_handshake_over( &server.ssl ) == 1 );
|
||||
|
||||
/* Check that both sides have negotiated the expected version. */
|
||||
|
Reference in New Issue
Block a user