mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 22:15:45 +01:00
Align some timeouts with the 2.16 branch in ssl-opt.sh
This commit only addresses the timeouts in the "DTLS proxy: 3d, ..." tests. The discrepancy with the 2.16 branch became apparent for some of these tests when backporting the previous commit (skip_close_nofity), so let's align the whole series for consistency and to make future backporting easier. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
5e261e958c
commit
aa719e78ce
@ -5239,9 +5239,9 @@ run_test "DTLS proxy: delay ChangeCipherSpec" \
|
|||||||
client_needs_more_time 2
|
client_needs_more_time 2
|
||||||
run_test "DTLS proxy: 3d (drop, delay, duplicate), \"short\" PSK handshake" \
|
run_test "DTLS proxy: 3d (drop, delay, duplicate), \"short\" PSK handshake" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none \
|
||||||
psk=abc123" \
|
psk=abc123" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0 psk=abc123 \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0 psk=abc123 \
|
||||||
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
@ -5250,8 +5250,8 @@ run_test "DTLS proxy: 3d (drop, delay, duplicate), \"short\" PSK handshake" \
|
|||||||
client_needs_more_time 2
|
client_needs_more_time 2
|
||||||
run_test "DTLS proxy: 3d, \"short\" RSA handshake" \
|
run_test "DTLS proxy: 3d, \"short\" RSA handshake" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none" \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0 \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0 \
|
||||||
force_ciphersuite=TLS-RSA-WITH-AES-128-CBC-SHA" \
|
force_ciphersuite=TLS-RSA-WITH-AES-128-CBC-SHA" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
@ -5260,8 +5260,8 @@ run_test "DTLS proxy: 3d, \"short\" RSA handshake" \
|
|||||||
client_needs_more_time 2
|
client_needs_more_time 2
|
||||||
run_test "DTLS proxy: 3d, \"short\" (no ticket, no cli_auth) FS handshake" \
|
run_test "DTLS proxy: 3d, \"short\" (no ticket, no cli_auth) FS handshake" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none" \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0" \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
-c "HTTP/1.0 200 OK"
|
-c "HTTP/1.0 200 OK"
|
||||||
@ -5269,8 +5269,8 @@ run_test "DTLS proxy: 3d, \"short\" (no ticket, no cli_auth) FS handshake" \
|
|||||||
client_needs_more_time 2
|
client_needs_more_time 2
|
||||||
run_test "DTLS proxy: 3d, FS, client auth" \
|
run_test "DTLS proxy: 3d, FS, client auth" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=required" \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=required" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0" \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
-c "HTTP/1.0 200 OK"
|
-c "HTTP/1.0 200 OK"
|
||||||
@ -5278,8 +5278,8 @@ run_test "DTLS proxy: 3d, FS, client auth" \
|
|||||||
client_needs_more_time 2
|
client_needs_more_time 2
|
||||||
run_test "DTLS proxy: 3d, FS, ticket" \
|
run_test "DTLS proxy: 3d, FS, ticket" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=1 auth_mode=none" \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=1 auth_mode=none" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=1" \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=1" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
-c "HTTP/1.0 200 OK"
|
-c "HTTP/1.0 200 OK"
|
||||||
@ -5287,8 +5287,8 @@ run_test "DTLS proxy: 3d, FS, ticket" \
|
|||||||
client_needs_more_time 2
|
client_needs_more_time 2
|
||||||
run_test "DTLS proxy: 3d, max handshake (FS, ticket + client auth)" \
|
run_test "DTLS proxy: 3d, max handshake (FS, ticket + client auth)" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=1 auth_mode=required" \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=1 auth_mode=required" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=1" \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=1" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
-c "HTTP/1.0 200 OK"
|
-c "HTTP/1.0 200 OK"
|
||||||
@ -5296,9 +5296,9 @@ run_test "DTLS proxy: 3d, max handshake (FS, ticket + client auth)" \
|
|||||||
client_needs_more_time 2
|
client_needs_more_time 2
|
||||||
run_test "DTLS proxy: 3d, max handshake, nbio" \
|
run_test "DTLS proxy: 3d, max handshake, nbio" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 nbio=2 tickets=1 \
|
"$P_SRV dtls=1 hs_timeout=500-10000 nbio=2 tickets=1 \
|
||||||
auth_mode=required" \
|
auth_mode=required" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 nbio=2 tickets=1" \
|
"$P_CLI dtls=1 hs_timeout=500-10000 nbio=2 tickets=1" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
-c "HTTP/1.0 200 OK"
|
-c "HTTP/1.0 200 OK"
|
||||||
@ -5306,9 +5306,9 @@ run_test "DTLS proxy: 3d, max handshake, nbio" \
|
|||||||
client_needs_more_time 4
|
client_needs_more_time 4
|
||||||
run_test "DTLS proxy: 3d, min handshake, resumption" \
|
run_test "DTLS proxy: 3d, min handshake, resumption" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none \
|
||||||
psk=abc123 debug_level=3" \
|
psk=abc123 debug_level=3" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0 psk=abc123 \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0 psk=abc123 \
|
||||||
debug_level=3 reconnect=1 skip_close_notify=1 read_timeout=1000 max_resend=10 \
|
debug_level=3 reconnect=1 skip_close_notify=1 read_timeout=1000 max_resend=10 \
|
||||||
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
||||||
0 \
|
0 \
|
||||||
@ -5320,9 +5320,9 @@ run_test "DTLS proxy: 3d, min handshake, resumption" \
|
|||||||
client_needs_more_time 4
|
client_needs_more_time 4
|
||||||
run_test "DTLS proxy: 3d, min handshake, resumption, nbio" \
|
run_test "DTLS proxy: 3d, min handshake, resumption, nbio" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none \
|
||||||
psk=abc123 debug_level=3 nbio=2" \
|
psk=abc123 debug_level=3 nbio=2" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0 psk=abc123 \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0 psk=abc123 \
|
||||||
debug_level=3 reconnect=1 skip_close_notify=1 read_timeout=1000 max_resend=10 \
|
debug_level=3 reconnect=1 skip_close_notify=1 read_timeout=1000 max_resend=10 \
|
||||||
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8 nbio=2" \
|
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8 nbio=2" \
|
||||||
0 \
|
0 \
|
||||||
@ -5335,9 +5335,9 @@ client_needs_more_time 4
|
|||||||
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
||||||
run_test "DTLS proxy: 3d, min handshake, client-initiated renego" \
|
run_test "DTLS proxy: 3d, min handshake, client-initiated renego" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none \
|
||||||
psk=abc123 renegotiation=1 debug_level=2" \
|
psk=abc123 renegotiation=1 debug_level=2" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0 psk=abc123 \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0 psk=abc123 \
|
||||||
renegotiate=1 debug_level=2 \
|
renegotiate=1 debug_level=2 \
|
||||||
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
||||||
0 \
|
0 \
|
||||||
@ -5350,9 +5350,9 @@ client_needs_more_time 4
|
|||||||
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
||||||
run_test "DTLS proxy: 3d, min handshake, client-initiated renego, nbio" \
|
run_test "DTLS proxy: 3d, min handshake, client-initiated renego, nbio" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none \
|
||||||
psk=abc123 renegotiation=1 debug_level=2" \
|
psk=abc123 renegotiation=1 debug_level=2" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0 psk=abc123 \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0 psk=abc123 \
|
||||||
renegotiate=1 debug_level=2 \
|
renegotiate=1 debug_level=2 \
|
||||||
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
||||||
0 \
|
0 \
|
||||||
@ -5365,10 +5365,10 @@ client_needs_more_time 4
|
|||||||
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
||||||
run_test "DTLS proxy: 3d, min handshake, server-initiated renego" \
|
run_test "DTLS proxy: 3d, min handshake, server-initiated renego" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none \
|
||||||
psk=abc123 renegotiate=1 renegotiation=1 exchanges=4 \
|
psk=abc123 renegotiate=1 renegotiation=1 exchanges=4 \
|
||||||
debug_level=2" \
|
debug_level=2" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0 psk=abc123 \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0 psk=abc123 \
|
||||||
renegotiation=1 exchanges=4 debug_level=2 \
|
renegotiation=1 exchanges=4 debug_level=2 \
|
||||||
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
||||||
0 \
|
0 \
|
||||||
@ -5381,10 +5381,10 @@ client_needs_more_time 4
|
|||||||
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
||||||
run_test "DTLS proxy: 3d, min handshake, server-initiated renego, nbio" \
|
run_test "DTLS proxy: 3d, min handshake, server-initiated renego, nbio" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$P_SRV dtls=1 hs_timeout=250-10000 tickets=0 auth_mode=none \
|
"$P_SRV dtls=1 hs_timeout=500-10000 tickets=0 auth_mode=none \
|
||||||
psk=abc123 renegotiate=1 renegotiation=1 exchanges=4 \
|
psk=abc123 renegotiate=1 renegotiation=1 exchanges=4 \
|
||||||
debug_level=2 nbio=2" \
|
debug_level=2 nbio=2" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-10000 tickets=0 psk=abc123 \
|
"$P_CLI dtls=1 hs_timeout=500-10000 tickets=0 psk=abc123 \
|
||||||
renegotiation=1 exchanges=4 debug_level=2 nbio=2 \
|
renegotiation=1 exchanges=4 debug_level=2 nbio=2 \
|
||||||
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
force_ciphersuite=TLS-PSK-WITH-AES-128-CCM-8" \
|
||||||
0 \
|
0 \
|
||||||
@ -5398,7 +5398,7 @@ not_with_valgrind # risk of non-mbedtls peer timing out
|
|||||||
run_test "DTLS proxy: 3d, openssl server" \
|
run_test "DTLS proxy: 3d, openssl server" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5 protect_hvr=1" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5 protect_hvr=1" \
|
||||||
"$O_SRV -dtls1 -mtu 2048" \
|
"$O_SRV -dtls1 -mtu 2048" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-60000 tickets=0" \
|
"$P_CLI dtls=1 hs_timeout=500-60000 tickets=0" \
|
||||||
0 \
|
0 \
|
||||||
-c "HTTP/1.0 200 OK"
|
-c "HTTP/1.0 200 OK"
|
||||||
|
|
||||||
@ -5407,7 +5407,7 @@ not_with_valgrind # risk of non-mbedtls peer timing out
|
|||||||
run_test "DTLS proxy: 3d, openssl server, fragmentation" \
|
run_test "DTLS proxy: 3d, openssl server, fragmentation" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5 protect_hvr=1" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5 protect_hvr=1" \
|
||||||
"$O_SRV -dtls1 -mtu 768" \
|
"$O_SRV -dtls1 -mtu 768" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-60000 tickets=0" \
|
"$P_CLI dtls=1 hs_timeout=500-60000 tickets=0" \
|
||||||
0 \
|
0 \
|
||||||
-c "HTTP/1.0 200 OK"
|
-c "HTTP/1.0 200 OK"
|
||||||
|
|
||||||
@ -5416,7 +5416,7 @@ not_with_valgrind # risk of non-mbedtls peer timing out
|
|||||||
run_test "DTLS proxy: 3d, openssl server, fragmentation, nbio" \
|
run_test "DTLS proxy: 3d, openssl server, fragmentation, nbio" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5 protect_hvr=1" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5 protect_hvr=1" \
|
||||||
"$O_SRV -dtls1 -mtu 768" \
|
"$O_SRV -dtls1 -mtu 768" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-60000 nbio=2 tickets=0" \
|
"$P_CLI dtls=1 hs_timeout=500-60000 nbio=2 tickets=0" \
|
||||||
0 \
|
0 \
|
||||||
-c "HTTP/1.0 200 OK"
|
-c "HTTP/1.0 200 OK"
|
||||||
|
|
||||||
@ -5426,7 +5426,7 @@ not_with_valgrind # risk of non-mbedtls peer timing out
|
|||||||
run_test "DTLS proxy: 3d, gnutls server" \
|
run_test "DTLS proxy: 3d, gnutls server" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$G_SRV -u --mtu 2048 -a" \
|
"$G_SRV -u --mtu 2048 -a" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-60000" \
|
"$P_CLI dtls=1 hs_timeout=500-60000" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
-c "Extra-header:"
|
-c "Extra-header:"
|
||||||
@ -5437,7 +5437,7 @@ not_with_valgrind # risk of non-mbedtls peer timing out
|
|||||||
run_test "DTLS proxy: 3d, gnutls server, fragmentation" \
|
run_test "DTLS proxy: 3d, gnutls server, fragmentation" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$G_SRV -u --mtu 512" \
|
"$G_SRV -u --mtu 512" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-60000" \
|
"$P_CLI dtls=1 hs_timeout=500-60000" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
-c "Extra-header:"
|
-c "Extra-header:"
|
||||||
@ -5448,7 +5448,7 @@ not_with_valgrind # risk of non-mbedtls peer timing out
|
|||||||
run_test "DTLS proxy: 3d, gnutls server, fragmentation, nbio" \
|
run_test "DTLS proxy: 3d, gnutls server, fragmentation, nbio" \
|
||||||
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
-p "$P_PXY drop=5 delay=5 duplicate=5" \
|
||||||
"$G_SRV -u --mtu 512" \
|
"$G_SRV -u --mtu 512" \
|
||||||
"$P_CLI dtls=1 hs_timeout=250-60000 nbio=2" \
|
"$P_CLI dtls=1 hs_timeout=500-60000 nbio=2" \
|
||||||
0 \
|
0 \
|
||||||
-s "Extra-header:" \
|
-s "Extra-header:" \
|
||||||
-c "Extra-header:"
|
-c "Extra-header:"
|
||||||
|
Loading…
Reference in New Issue
Block a user