Skip to content

Commit 4838766

Browse files
ssl-opt: Added handhsake defragmentation tests for SSL_VARIABLE_BUFFER_LENGTH
Signed-off-by: Minos Galanakis <[email protected]>
1 parent da81a64 commit 4838766

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/ssl-opt.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14210,6 +14210,24 @@ run_test "Handshake defragmentation on server: len=5, TLS 1.3" \
1421014210
-s "handshake fragment: 0 \\.\\. 5 of [0-9]\\+ msglen 5" \
1421114211
-s "waiting for more fragments (5"
1421214212

14213+
# Test Server Buffer resizing with fragmented handshake on TLS1.2
14214+
# TODO investigate a a GNUTLS version for -maxfraglen 512
14215+
requires_openssl_3_x
14216+
requires_protocol_version tls12
14217+
requires_certificate_authentication
14218+
requires_config_enabled MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
14219+
requires_config_enabled MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH
14220+
requires_max_content_len 1025
14221+
run_test "Handshake defragmentation on Server with buffer resizing: len=256, MFL=1024" \
14222+
"$P_SRV debug_level=4 auth_mode=required" \
14223+
"$O_NEXT_CLI -tls1_2 -split_send_frag 256 -split_send_frag 256 -maxfraglen 1024 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
14224+
0 \
14225+
-s "Reallocating in_buf" \
14226+
-s "Reallocating out_buf" \
14227+
-s "reassembled record" \
14228+
-s "handshake fragment: 0 \\.\\. 256 of [0-9]\\+ msglen 256" \
14229+
-s "waiting for more fragments (256"
14230+
1421314231
# Test heap memory usage after handshake
1421414232
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
1421514233
requires_config_enabled MBEDTLS_MEMORY_DEBUG

0 commit comments

Comments
 (0)