tests: early data: Complete the handshake

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2024-02-05 17:57:05 +01:00
parent 33327dab85
commit d0a772740e

View file

@ -3810,10 +3810,6 @@ void tls13_early_data(int scenario)
TEST_EQUAL(mbedtls_ssl_read_early_data(&(server_ep.ssl),
buf, sizeof(buf)), early_data_len);
TEST_MEMORY_COMPARE(buf, early_data_len, early_data, early_data_len);
TEST_EQUAL(mbedtls_test_move_handshake_to_state(
&(server_ep.ssl), &(client_ep.ssl),
MBEDTLS_SSL_HANDSHAKE_WRAPUP), 0);
break;
case TEST_EARLY_DATA_DEPROTECT_AND_DISCARD: /* Intentional fallthrough */
@ -3824,6 +3820,10 @@ void tls13_early_data(int scenario)
break;
}
TEST_EQUAL(mbedtls_test_move_handshake_to_state(
&(server_ep.ssl), &(client_ep.ssl),
MBEDTLS_SSL_HANDSHAKE_OVER), 0);
exit:
mbedtls_test_ssl_endpoint_free(&client_ep, NULL);
mbedtls_test_ssl_endpoint_free(&server_ep, NULL);