mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
test_suite_ssl: Test ServerHello on record boundary enforcement
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
3f55bb6998
commit
ee2cb8abce
@ -3592,3 +3592,6 @@ tls13_drop_early_data:1
|
||||
|
||||
TLS 1.3 ClientHello record boundary alignment enforcement
|
||||
tls13_record_boundary_alignment:MBEDTLS_SSL_IS_SERVER:MBEDTLS_SSL_HS_CLIENT_HELLO
|
||||
|
||||
TLS 1.3 ServerHello record boundary alignement enforcement
|
||||
tls13_record_boundary_alignment:MBEDTLS_SSL_IS_CLIENT:MBEDTLS_SSL_HS_SERVER_HELLO
|
||||
|
||||
@ -6912,6 +6912,13 @@ void tls13_record_boundary_alignment(int endpoint, int handshake_message)
|
||||
encrypted = 0;
|
||||
break;
|
||||
|
||||
case MBEDTLS_SSL_HS_SERVER_HELLO:
|
||||
TEST_EQUAL(endpoint, MBEDTLS_SSL_IS_CLIENT);
|
||||
target_state = MBEDTLS_SSL_SERVER_HELLO;
|
||||
peer_target_state = MBEDTLS_SSL_ENCRYPTED_EXTENSIONS;
|
||||
encrypted = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
TEST_ASSERT(0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user