mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
ssl-opt: Added requires_openssl_3_x to defragmentation tests.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
@ -13874,6 +13874,7 @@ run_test "TLS 1.2 ClientHello indicating support for deflate compression meth
|
||||
|
||||
# Handshake defragmentation testing
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
run_test "Client Handshake defragmentation (512)" \
|
||||
@ -13881,8 +13882,10 @@ run_test "Client Handshake defragmentation (512)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (512 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 512 of [0-9]\\+ msglen 512" \
|
||||
-c "waiting for more fragments (512 of [0-9]\\+"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
run_test "Client Handshake defragmentation (513)" \
|
||||
@ -13890,7 +13893,8 @@ run_test "Client Handshake defragmentation (513)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (513 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 513 of [0-9]\\+ msglen 513" \
|
||||
-c "waiting for more fragments (513 of [0-9]\\+"
|
||||
|
||||
# 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.
|
||||
@ -13898,6 +13902,7 @@ run_test "Client Handshake defragmentation (513)" \
|
||||
# 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_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -13906,8 +13911,10 @@ run_test "Client Handshake defragmentation (256)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (256 of [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 256 of [0-9]\\+ msglen 256" \
|
||||
-c "waiting for more fragments (256 of [0-9]\\+"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -13916,8 +13923,10 @@ run_test "Client Handshake defragmentation (128)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (128 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 128 of [0-9]\\+ msglen 128" \
|
||||
-c "waiting for more fragments (128"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -13926,8 +13935,10 @@ run_test "Client Handshake defragmentation (64)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (64 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 64 of [0-9]\\+ msglen 64" \
|
||||
-c "waiting for more fragments (64"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -13936,8 +13947,10 @@ run_test "Client Handshake defragmentation (36)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (36 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 36 of [0-9]\\+ msglen 36" \
|
||||
-c "waiting for more fragments (36"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -13946,8 +13959,10 @@ run_test "Client Handshake defragmentation (32)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (32 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 32 of [0-9]\\+ msglen 32" \
|
||||
-c "waiting for more fragments (32"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -13956,8 +13971,10 @@ run_test "Client Handshake defragmentation (16)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (16 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 16 of [0-9]\\+ msglen 16" \
|
||||
-c "waiting for more fragments (16"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -13966,8 +13983,10 @@ run_test "Client Handshake defragmentation (13)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (13 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 13 of [0-9]\\+ msglen 13" \
|
||||
-c "waiting for more fragments (13"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -13976,8 +13995,10 @@ run_test "Client Handshake defragmentation (5)" \
|
||||
"$P_CLI debug_level=4 " \
|
||||
0 \
|
||||
-c "reassembled record" \
|
||||
-c "waiting for more fragments (5 [0-9]\\+, [0-9]\\+ left)"
|
||||
-c "handshake fragment: 0 \\.\\. 5 of [0-9]\\+ msglen 5" \
|
||||
-c "waiting for more fragments (5"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
run_test "Server Handshake defragmentation (512)" \
|
||||
@ -13985,8 +14006,10 @@ run_test "Server Handshake defragmentation (512)" \
|
||||
"$O_NEXT_CLI -max_send_frag 512 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (512 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 512 of [0-9]\\+ msglen 512" \
|
||||
-s "waiting for more fragments (512"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
run_test "Server Handshake defragmentation (513)" \
|
||||
@ -13994,8 +14017,10 @@ run_test "Server Handshake defragmentation (513)" \
|
||||
"$O_NEXT_CLI -max_send_frag 513 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (513 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 513 of [0-9]\\+ msglen 513" \
|
||||
-s "waiting for more fragments (513"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -14004,8 +14029,10 @@ run_test "Server Handshake defragmentation (256)" \
|
||||
"$O_NEXT_CLI -split_send_frag 256 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (256 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 256 of [0-9]\\+ msglen 256" \
|
||||
-s "waiting for more fragments (256"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -14014,8 +14041,10 @@ run_test "Server Handshake defragmentation (128)" \
|
||||
"$O_NEXT_CLI -split_send_frag 128 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (128 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 128 of [0-9]\\+ msglen 128" \
|
||||
-s "waiting for more fragments (128"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -14024,8 +14053,10 @@ run_test "Server Handshake defragmentation (64)" \
|
||||
"$O_NEXT_CLI -split_send_frag 64 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (64 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 64 of [0-9]\\+ msglen 64" \
|
||||
-s "waiting for more fragments (64"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -14034,8 +14065,10 @@ run_test "Server Handshake defragmentation (36)" \
|
||||
"$O_NEXT_CLI -split_send_frag 36 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (36 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 36 of [0-9]\\+ msglen 36" \
|
||||
-s "waiting for more fragments (36"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -14044,8 +14077,10 @@ run_test "Server Handshake defragmentation (32)" \
|
||||
"$O_NEXT_CLI -split_send_frag 32 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (32 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 32 of [0-9]\\+ msglen 32" \
|
||||
-s "waiting for more fragments (32"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -14054,8 +14089,10 @@ run_test "Server Handshake defragmentation (16)" \
|
||||
"$O_NEXT_CLI -split_send_frag 16 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (16 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 16 of [0-9]\\+ msglen 16" \
|
||||
-s "waiting for more fragments (16"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -14064,8 +14101,10 @@ run_test "Server Handshake defragmentation (13)" \
|
||||
"$O_NEXT_CLI -split_send_frag 13 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (12 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 13 of [0-9]\\+ msglen 13" \
|
||||
-s "waiting for more fragments (13"
|
||||
|
||||
requires_openssl_3_x
|
||||
requires_openssl_tls1_3
|
||||
requires_certificate_authentication
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||
@ -14074,7 +14113,8 @@ run_test "Server Handshake defragmentation (5)" \
|
||||
"$O_NEXT_CLI -split_send_frag 5 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
|
||||
0 \
|
||||
-s "reassembled record" \
|
||||
-s "waiting for more fragments (5 [0-9]\\+, [0-9]\\+ left)"
|
||||
-s "handshake fragment: 0 \\.\\. 5 of [0-9]\\+ msglen 5" \
|
||||
-s "waiting for more fragments (5"
|
||||
|
||||
# Test heap memory usage after handshake
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
|
||||
|
Reference in New Issue
Block a user