Skip to content

Commit 253d6c9

Browse files
ssl-opt: Added handhsake defragmentation tests for client initiated renegotiation.
Signed-off-by: Minos Galanakis <[email protected]>
1 parent b94ad7f commit 253d6c9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/ssl-opt.sh

100644100755
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14513,6 +14513,24 @@ run_test "Handshake defragmentation on Server with buffer resizing: len=256,
1451314513
-s "handshake fragment: 0 \\.\\. 256 of [0-9]\\+ msglen 256" \
1451414514
-s "waiting for more fragments (256"
1451514515

14516+
# Test Client initialised renegotiation with fragmented handshake on TLS1.2
14517+
requires_openssl_3_x
14518+
requires_protocol_version tls12
14519+
requires_certificate_authentication
14520+
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
14521+
run_test "Handshake defragmentation with client-initiated renegotation: len=256" \
14522+
"$P_SRV debug_level=4 exchanges=2 renegotiation=1 auth_mode=required" \
14523+
"echo 'R' | $OPENSSL_NEXT s_client -tls1_2 -split_send_frag 256 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key -connect 127.0.0.1:+$SRV_PORT" \
14524+
0 \
14525+
-s "received TLS_EMPTY_RENEGOTIATION_INFO" \
14526+
-s "found renegotiation extension" \
14527+
-s "server hello, secure renegotiation extension" \
14528+
-s "=> renegotiate" \
14529+
-S "write hello request" \
14530+
-s "reassembled record" \
14531+
-s "handshake fragment: 0 \\.\\. 256 of [0-9]\\+ msglen 256" \
14532+
-s "waiting for more fragments (256"
14533+
1451614534
# Test heap memory usage after handshake
1451714535
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
1451814536
requires_config_enabled MBEDTLS_MEMORY_DEBUG

0 commit comments

Comments
 (0)