Skip to content

Commit 35a187b

Browse files
ssl-opt: Added a negative defragmentation test for TLS12 client-server.
Signed-off-by: Minos Galanakis <[email protected]>
1 parent 6a5d231 commit 35a187b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/ssl-opt.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14297,6 +14297,18 @@ run_test "Handshake defragmentation on server: len=3, TLS 1.3 -> 1.2" \
1429714297
-s "handshake message too short: 3" \
1429814298
-s "SSL - An invalid SSL record was received"
1429914299

14300+
requires_openssl_3_x
14301+
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
14302+
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
14303+
requires_certificate_authentication
14304+
run_test "Handshake defragmentation on server: len=32, TLS 1.2" \
14305+
"$P_SRV debug_level=4 force_version=tls12 auth_mode=required" \
14306+
"$O_NEXT_CLI -tls1_2 -split_send_frag 32 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
14307+
1 \
14308+
-s "The SSL configuration is tls12 only" \
14309+
-s "bad client hello message" \
14310+
-s "SSL - A message could not be parsed due to a syntactic error"
14311+
1430014312
# Test heap memory usage after handshake
1430114313
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
1430214314
requires_config_enabled MBEDTLS_MEMORY_DEBUG

0 commit comments

Comments
 (0)