Skip to content

Commit a549ad6

Browse files
ssl-opt: Added requires_openssl_3_x to defragmentation tests.
Signed-off-by: Minos Galanakis <[email protected]>
1 parent e18ea6d commit a549ad6

File tree

1 file changed

+60
-20
lines changed

1 file changed

+60
-20
lines changed

tests/ssl-opt.sh

Lines changed: 60 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13874,30 +13874,35 @@ run_test "TLS 1.2 ClientHello indicating support for deflate compression meth
1387413874

1387513875
# Handshake defragmentation testing
1387613876

13877+
requires_openssl_3_x
1387713878
requires_openssl_tls1_3
1387813879
requires_certificate_authentication
1387913880
run_test "Client Handshake defragmentation (512)" \
1388013881
"$O_NEXT_SRV -max_send_frag 512 " \
1388113882
"$P_CLI debug_level=4 " \
1388213883
0 \
1388313884
-c "reassembled record" \
13884-
-c "waiting for more fragments (512 [0-9]\\+, [0-9]\\+ left)"
13885+
-c "handshake fragment: 0 \\.\\. 512 of [0-9]\\+ msglen 512" \
13886+
-c "waiting for more fragments (512 of [0-9]\\+"
1388513887

13888+
requires_openssl_3_x
1388613889
requires_openssl_tls1_3
1388713890
requires_certificate_authentication
1388813891
run_test "Client Handshake defragmentation (513)" \
1388913892
"$O_NEXT_SRV -max_send_frag 513 " \
1389013893
"$P_CLI debug_level=4 " \
1389113894
0 \
1389213895
-c "reassembled record" \
13893-
-c "waiting for more fragments (513 [0-9]\\+, [0-9]\\+ left)"
13896+
-c "handshake fragment: 0 \\.\\. 513 of [0-9]\\+ msglen 513" \
13897+
-c "waiting for more fragments (513 of [0-9]\\+"
1389413898

1389513899
# OpenSSL does not allow max_send_frag to be less than 512
1389613900
# so we use split_send_frag instead for tests lower than 512 below.
1389713901

1389813902
# There is an issue with OpenSSL when fragmenting with values less
1389913903
# than 512 bytes in TLS 1.2 so we require TLS 1.3 with these values.
1390013904

13905+
requires_openssl_3_x
1390113906
requires_openssl_tls1_3
1390213907
requires_certificate_authentication
1390313908
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -13906,8 +13911,10 @@ run_test "Client Handshake defragmentation (256)" \
1390613911
"$P_CLI debug_level=4 " \
1390713912
0 \
1390813913
-c "reassembled record" \
13909-
-c "waiting for more fragments (256 of [0-9]\\+, [0-9]\\+ left)"
13914+
-c "handshake fragment: 0 \\.\\. 256 of [0-9]\\+ msglen 256" \
13915+
-c "waiting for more fragments (256 of [0-9]\\+"
1391013916

13917+
requires_openssl_3_x
1391113918
requires_openssl_tls1_3
1391213919
requires_certificate_authentication
1391313920
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -13916,8 +13923,10 @@ run_test "Client Handshake defragmentation (128)" \
1391613923
"$P_CLI debug_level=4 " \
1391713924
0 \
1391813925
-c "reassembled record" \
13919-
-c "waiting for more fragments (128 [0-9]\\+, [0-9]\\+ left)"
13926+
-c "handshake fragment: 0 \\.\\. 128 of [0-9]\\+ msglen 128" \
13927+
-c "waiting for more fragments (128"
1392013928

13929+
requires_openssl_3_x
1392113930
requires_openssl_tls1_3
1392213931
requires_certificate_authentication
1392313932
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -13926,8 +13935,10 @@ run_test "Client Handshake defragmentation (64)" \
1392613935
"$P_CLI debug_level=4 " \
1392713936
0 \
1392813937
-c "reassembled record" \
13929-
-c "waiting for more fragments (64 [0-9]\\+, [0-9]\\+ left)"
13938+
-c "handshake fragment: 0 \\.\\. 64 of [0-9]\\+ msglen 64" \
13939+
-c "waiting for more fragments (64"
1393013940

13941+
requires_openssl_3_x
1393113942
requires_openssl_tls1_3
1393213943
requires_certificate_authentication
1393313944
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -13936,8 +13947,10 @@ run_test "Client Handshake defragmentation (36)" \
1393613947
"$P_CLI debug_level=4 " \
1393713948
0 \
1393813949
-c "reassembled record" \
13939-
-c "waiting for more fragments (36 [0-9]\\+, [0-9]\\+ left)"
13950+
-c "handshake fragment: 0 \\.\\. 36 of [0-9]\\+ msglen 36" \
13951+
-c "waiting for more fragments (36"
1394013952

13953+
requires_openssl_3_x
1394113954
requires_openssl_tls1_3
1394213955
requires_certificate_authentication
1394313956
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -13946,8 +13959,10 @@ run_test "Client Handshake defragmentation (32)" \
1394613959
"$P_CLI debug_level=4 " \
1394713960
0 \
1394813961
-c "reassembled record" \
13949-
-c "waiting for more fragments (32 [0-9]\\+, [0-9]\\+ left)"
13962+
-c "handshake fragment: 0 \\.\\. 32 of [0-9]\\+ msglen 32" \
13963+
-c "waiting for more fragments (32"
1395013964

13965+
requires_openssl_3_x
1395113966
requires_openssl_tls1_3
1395213967
requires_certificate_authentication
1395313968
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -13956,8 +13971,10 @@ run_test "Client Handshake defragmentation (16)" \
1395613971
"$P_CLI debug_level=4 " \
1395713972
0 \
1395813973
-c "reassembled record" \
13959-
-c "waiting for more fragments (16 [0-9]\\+, [0-9]\\+ left)"
13974+
-c "handshake fragment: 0 \\.\\. 16 of [0-9]\\+ msglen 16" \
13975+
-c "waiting for more fragments (16"
1396013976

13977+
requires_openssl_3_x
1396113978
requires_openssl_tls1_3
1396213979
requires_certificate_authentication
1396313980
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -13966,8 +13983,10 @@ run_test "Client Handshake defragmentation (13)" \
1396613983
"$P_CLI debug_level=4 " \
1396713984
0 \
1396813985
-c "reassembled record" \
13969-
-c "waiting for more fragments (13 [0-9]\\+, [0-9]\\+ left)"
13986+
-c "handshake fragment: 0 \\.\\. 13 of [0-9]\\+ msglen 13" \
13987+
-c "waiting for more fragments (13"
1397013988

13989+
requires_openssl_3_x
1397113990
requires_openssl_tls1_3
1397213991
requires_certificate_authentication
1397313992
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -13976,26 +13995,32 @@ run_test "Client Handshake defragmentation (5)" \
1397613995
"$P_CLI debug_level=4 " \
1397713996
0 \
1397813997
-c "reassembled record" \
13979-
-c "waiting for more fragments (5 [0-9]\\+, [0-9]\\+ left)"
13998+
-c "handshake fragment: 0 \\.\\. 5 of [0-9]\\+ msglen 5" \
13999+
-c "waiting for more fragments (5"
1398014000

14001+
requires_openssl_3_x
1398114002
requires_openssl_tls1_3
1398214003
requires_certificate_authentication
1398314004
run_test "Server Handshake defragmentation (512)" \
1398414005
"$P_SRV debug_level=4 auth_mode=required" \
1398514006
"$O_NEXT_CLI -max_send_frag 512 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1398614007
0 \
1398714008
-s "reassembled record" \
13988-
-s "waiting for more fragments (512 [0-9]\\+, [0-9]\\+ left)"
14009+
-s "handshake fragment: 0 \\.\\. 512 of [0-9]\\+ msglen 512" \
14010+
-s "waiting for more fragments (512"
1398914011

14012+
requires_openssl_3_x
1399014013
requires_openssl_tls1_3
1399114014
requires_certificate_authentication
1399214015
run_test "Server Handshake defragmentation (513)" \
1399314016
"$P_SRV debug_level=4 auth_mode=required" \
1399414017
"$O_NEXT_CLI -max_send_frag 513 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1399514018
0 \
1399614019
-s "reassembled record" \
13997-
-s "waiting for more fragments (513 [0-9]\\+, [0-9]\\+ left)"
14020+
-s "handshake fragment: 0 \\.\\. 513 of [0-9]\\+ msglen 513" \
14021+
-s "waiting for more fragments (513"
1399814022

14023+
requires_openssl_3_x
1399914024
requires_openssl_tls1_3
1400014025
requires_certificate_authentication
1400114026
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -14004,8 +14029,10 @@ run_test "Server Handshake defragmentation (256)" \
1400414029
"$O_NEXT_CLI -split_send_frag 256 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1400514030
0 \
1400614031
-s "reassembled record" \
14007-
-s "waiting for more fragments (256 [0-9]\\+, [0-9]\\+ left)"
14032+
-s "handshake fragment: 0 \\.\\. 256 of [0-9]\\+ msglen 256" \
14033+
-s "waiting for more fragments (256"
1400814034

14035+
requires_openssl_3_x
1400914036
requires_openssl_tls1_3
1401014037
requires_certificate_authentication
1401114038
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -14014,8 +14041,10 @@ run_test "Server Handshake defragmentation (128)" \
1401414041
"$O_NEXT_CLI -split_send_frag 128 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1401514042
0 \
1401614043
-s "reassembled record" \
14017-
-s "waiting for more fragments (128 [0-9]\\+, [0-9]\\+ left)"
14044+
-s "handshake fragment: 0 \\.\\. 128 of [0-9]\\+ msglen 128" \
14045+
-s "waiting for more fragments (128"
1401814046

14047+
requires_openssl_3_x
1401914048
requires_openssl_tls1_3
1402014049
requires_certificate_authentication
1402114050
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -14024,8 +14053,10 @@ run_test "Server Handshake defragmentation (64)" \
1402414053
"$O_NEXT_CLI -split_send_frag 64 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1402514054
0 \
1402614055
-s "reassembled record" \
14027-
-s "waiting for more fragments (64 [0-9]\\+, [0-9]\\+ left)"
14056+
-s "handshake fragment: 0 \\.\\. 64 of [0-9]\\+ msglen 64" \
14057+
-s "waiting for more fragments (64"
1402814058

14059+
requires_openssl_3_x
1402914060
requires_openssl_tls1_3
1403014061
requires_certificate_authentication
1403114062
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -14034,8 +14065,10 @@ run_test "Server Handshake defragmentation (36)" \
1403414065
"$O_NEXT_CLI -split_send_frag 36 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1403514066
0 \
1403614067
-s "reassembled record" \
14037-
-s "waiting for more fragments (36 [0-9]\\+, [0-9]\\+ left)"
14068+
-s "handshake fragment: 0 \\.\\. 36 of [0-9]\\+ msglen 36" \
14069+
-s "waiting for more fragments (36"
1403814070

14071+
requires_openssl_3_x
1403914072
requires_openssl_tls1_3
1404014073
requires_certificate_authentication
1404114074
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -14044,8 +14077,10 @@ run_test "Server Handshake defragmentation (32)" \
1404414077
"$O_NEXT_CLI -split_send_frag 32 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1404514078
0 \
1404614079
-s "reassembled record" \
14047-
-s "waiting for more fragments (32 [0-9]\\+, [0-9]\\+ left)"
14080+
-s "handshake fragment: 0 \\.\\. 32 of [0-9]\\+ msglen 32" \
14081+
-s "waiting for more fragments (32"
1404814082

14083+
requires_openssl_3_x
1404914084
requires_openssl_tls1_3
1405014085
requires_certificate_authentication
1405114086
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -14054,8 +14089,10 @@ run_test "Server Handshake defragmentation (16)" \
1405414089
"$O_NEXT_CLI -split_send_frag 16 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1405514090
0 \
1405614091
-s "reassembled record" \
14057-
-s "waiting for more fragments (16 [0-9]\\+, [0-9]\\+ left)"
14092+
-s "handshake fragment: 0 \\.\\. 16 of [0-9]\\+ msglen 16" \
14093+
-s "waiting for more fragments (16"
1405814094

14095+
requires_openssl_3_x
1405914096
requires_openssl_tls1_3
1406014097
requires_certificate_authentication
1406114098
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -14064,8 +14101,10 @@ run_test "Server Handshake defragmentation (13)" \
1406414101
"$O_NEXT_CLI -split_send_frag 13 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1406514102
0 \
1406614103
-s "reassembled record" \
14067-
-s "waiting for more fragments (12 [0-9]\\+, [0-9]\\+ left)"
14104+
-s "handshake fragment: 0 \\.\\. 13 of [0-9]\\+ msglen 13" \
14105+
-s "waiting for more fragments (13"
1406814106

14107+
requires_openssl_3_x
1406914108
requires_openssl_tls1_3
1407014109
requires_certificate_authentication
1407114110
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
@@ -14074,7 +14113,8 @@ run_test "Server Handshake defragmentation (5)" \
1407414113
"$O_NEXT_CLI -split_send_frag 5 -cert $DATA_FILES_PATH/server5.crt -key $DATA_FILES_PATH/server5.key" \
1407514114
0 \
1407614115
-s "reassembled record" \
14077-
-s "waiting for more fragments (5 [0-9]\\+, [0-9]\\+ left)"
14116+
-s "handshake fragment: 0 \\.\\. 5 of [0-9]\\+ msglen 5" \
14117+
-s "waiting for more fragments (5"
1407814118

1407914119
# Test heap memory usage after handshake
1408014120
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2

0 commit comments

Comments
 (0)