Test Handshake defragmentation only for TLS 1.3 only for small values

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
Waleed Elmelegy
2025-01-31 11:50:08 +00:00
committed by Minos Galanakis
parent a75c7e09c8
commit 5f21537c2a

View File

@@ -13893,8 +13893,12 @@ run_test "Client Handshake defragmentation (513)" \
# OpenSSL does not allow max_send_frag to be less than 512
# so we use split_send_frag instead for tests lower than 512 below.
# There is an issue with OpenSSL when fragmenting with values less
# than 512 bytes in TLS 1.2 so we require TLS 1.3 with these values.
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Client Handshake defragmentation (256)" \
"$O_NEXT_SRV -split_send_frag 256 " \
"$P_CLI debug_level=4 " \
@@ -13904,6 +13908,7 @@ run_test "Client Handshake defragmentation (256)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Client Handshake defragmentation (128)" \
"$O_NEXT_SRV -split_send_frag 128 " \
"$P_CLI debug_level=4 " \
@@ -13913,6 +13918,7 @@ run_test "Client Handshake defragmentation (128)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Client Handshake defragmentation (64)" \
"$O_NEXT_SRV -split_send_frag 64 " \
"$P_CLI debug_level=4 " \
@@ -13922,6 +13928,7 @@ run_test "Client Handshake defragmentation (64)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Client Handshake defragmentation (36)" \
"$O_NEXT_SRV -split_send_frag 36 " \
"$P_CLI debug_level=4 " \
@@ -13931,6 +13938,7 @@ run_test "Client Handshake defragmentation (36)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Client Handshake defragmentation (32)" \
"$O_NEXT_SRV -split_send_frag 32 " \
"$P_CLI debug_level=4 " \
@@ -13940,6 +13948,7 @@ run_test "Client Handshake defragmentation (32)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Client Handshake defragmentation (16)" \
"$O_NEXT_SRV -split_send_frag 16 " \
"$P_CLI debug_level=4 " \
@@ -13949,6 +13958,7 @@ run_test "Client Handshake defragmentation (16)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Client Handshake defragmentation (13)" \
"$O_NEXT_SRV -split_send_frag 13 " \
"$P_CLI debug_level=4 " \
@@ -13958,6 +13968,7 @@ run_test "Client Handshake defragmentation (13)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Client Handshake defragmentation (5)" \
"$O_NEXT_SRV -split_send_frag 5 " \
"$P_CLI debug_level=4 " \
@@ -13985,6 +13996,7 @@ run_test "Server Handshake defragmentation (513)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Server Handshake defragmentation (256)" \
"$P_SRV debug_level=4 auth_mode=required" \
"$O_NEXT_CLI -split_send_frag 256 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
@@ -13994,6 +14006,7 @@ run_test "Server Handshake defragmentation (256)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Server Handshake defragmentation (128)" \
"$P_SRV debug_level=4 auth_mode=required" \
"$O_NEXT_CLI -split_send_frag 128 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
@@ -14003,6 +14016,7 @@ run_test "Server Handshake defragmentation (128)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Server Handshake defragmentation (64)" \
"$P_SRV debug_level=4 auth_mode=required" \
"$O_NEXT_CLI -split_send_frag 64 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
@@ -14012,6 +14026,7 @@ run_test "Server Handshake defragmentation (64)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Server Handshake defragmentation (36)" \
"$P_SRV debug_level=4 auth_mode=required" \
"$O_NEXT_CLI -split_send_frag 36 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
@@ -14021,6 +14036,7 @@ run_test "Server Handshake defragmentation (36)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Server Handshake defragmentation (32)" \
"$P_SRV debug_level=4 auth_mode=required" \
"$O_NEXT_CLI -split_send_frag 32 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
@@ -14030,6 +14046,7 @@ run_test "Server Handshake defragmentation (32)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Server Handshake defragmentation (16)" \
"$P_SRV debug_level=4 auth_mode=required" \
"$O_NEXT_CLI -split_send_frag 16 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
@@ -14039,6 +14056,7 @@ run_test "Server Handshake defragmentation (16)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Server Handshake defragmentation (13)" \
"$P_SRV debug_level=4 auth_mode=required" \
"$O_NEXT_CLI -split_send_frag 13 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
@@ -14048,6 +14066,7 @@ run_test "Server Handshake defragmentation (13)" \
requires_openssl_tls1_3
requires_certificate_authentication
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "Server Handshake defragmentation (5)" \
"$P_SRV debug_level=4 auth_mode=required" \
"$O_NEXT_CLI -split_send_frag 5 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \