@@ -13819,6 +13819,15 @@ run_test "Handshake defragmentation on server: len=4, client-initiated server
13819
13819
-s "Consume: waiting for more handshake fragments 4/" \
13820
13820
13821
13821
# Test server-initiated renegotiation with fragmented handshake on TLS1.2
13822
+
13823
+ # Note: The /reneg endpoint serves as a directive for OpenSSL's s_server
13824
+ # to initiate a handshake renegotiation.
13825
+ # Note: Adjusting the renegotiation delay beyond the library's default
13826
+ # value of 16 is necessary. This parameter defines the maximum
13827
+ # number of records received before renegotiation is completed.
13828
+ # By fragmenting records and thereby increasing their quantity,
13829
+ # the default threshold can be reached more quickly.
13830
+ # Setting it to -1 disables that policy's enforment.
13822
13831
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
13823
13832
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
13824
13833
run_test "Handshake defragmentation on client: len=512, server-initiated renegotiation" \
@@ -13832,15 +13841,6 @@ run_test "Handshake defragmentation on client: len=512, server-initiated rene
13832
13841
-c "found renegotiation extension" \
13833
13842
-c "=> renegotiate"
13834
13843
13835
-
13836
- # Note: The /reneg endpoint serves as a directive for OpenSSL's s_server
13837
- # to initiate a handshake renegotiation.
13838
- # Note: Adjusting the renegotiation delay beyond the library's default
13839
- # value of 16 is necessary. This parameter defines the maximum
13840
- # number of records received before renegotiation is completed.
13841
- # By fragmenting records and thereby increasing their quantity,
13842
- # the default threshold can be reached more quickly.
13843
- # Setting it to -1 disables that policy's enforment.
13844
13844
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
13845
13845
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
13846
13846
run_test "Handshake defragmentation on client: len=256, server-initiated renegotiation" \
@@ -13854,6 +13854,32 @@ run_test "Handshake defragmentation on client: len=256, server-initiated rene
13854
13854
-c "found renegotiation extension" \
13855
13855
-c "=> renegotiate"
13856
13856
13857
+ requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
13858
+ requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
13859
+ run_test "Handshake defragmentation on client: len=128, server-initiated renegotiation" \
13860
+ "$O_NEXT_SRV -tls1_2 -split_send_frag 128 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
13861
+ "$P_CLI debug_level=3 renegotiation=1 renego_delay=-1 request_page=/reneg" \
13862
+ 0 \
13863
+ -c "initial handshake fragment: 128, 0\\.\\.128 of [0-9]\\+" \
13864
+ -c "Prepare: waiting for more handshake fragments 128/" \
13865
+ -c "Consume: waiting for more handshake fragments 128/" \
13866
+ -c "client hello, adding renegotiation extension" \
13867
+ -c "found renegotiation extension" \
13868
+ -c "=> renegotiate"
13869
+
13870
+ requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
13871
+ requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
13872
+ run_test "Handshake defragmentation on client: len=4, server-initiated renegotiation" \
13873
+ "$O_NEXT_SRV -tls1_2 -split_send_frag 4 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
13874
+ "$P_CLI debug_level=3 renegotiation=1 renego_delay=-1 request_page=/reneg" \
13875
+ 0 \
13876
+ -c "initial handshake fragment: 4, 0\\.\\.4 of [0-9]\\+" \
13877
+ -c "Prepare: waiting for more handshake fragments 4/" \
13878
+ -c "Consume: waiting for more handshake fragments 4/" \
13879
+ -c "client hello, adding renegotiation extension" \
13880
+ -c "found renegotiation extension" \
13881
+ -c "=> renegotiate"
13882
+
13857
13883
# Test heap memory usage after handshake
13858
13884
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
13859
13885
requires_config_enabled MBEDTLS_MEMORY_DEBUG
0 commit comments