|
|
@ -1501,6 +1501,7 @@ run_test "Max fragment length: DTLS client, larger message" \
|
|
|
|
|
|
|
|
|
|
|
|
# Tests for renegotiation
|
|
|
|
# Tests for renegotiation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Renegotiation SCSV always added, regardless of SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: none, for reference" \
|
|
|
|
run_test "Renegotiation: none, for reference" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2" \
|
|
|
@ -1514,6 +1515,7 @@ run_test "Renegotiation: none, for reference" \
|
|
|
|
-S "=> renegotiate" \
|
|
|
|
-S "=> renegotiate" \
|
|
|
|
-S "write hello request"
|
|
|
|
-S "write hello request"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: client-initiated" \
|
|
|
|
run_test "Renegotiation: client-initiated" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
@ -1527,6 +1529,7 @@ run_test "Renegotiation: client-initiated" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-S "write hello request"
|
|
|
|
-S "write hello request"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: server-initiated" \
|
|
|
|
run_test "Renegotiation: server-initiated" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional renegotiate=1" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1" \
|
|
|
@ -1543,6 +1546,7 @@ run_test "Renegotiation: server-initiated" \
|
|
|
|
# Checks that no Signature Algorithm with SHA-1 gets negotiated. Negotiating SHA-1 would mean that
|
|
|
|
# Checks that no Signature Algorithm with SHA-1 gets negotiated. Negotiating SHA-1 would mean that
|
|
|
|
# the server did not parse the Signature Algorithm extension. This test is valid only if an MD
|
|
|
|
# the server did not parse the Signature Algorithm extension. This test is valid only if an MD
|
|
|
|
# algorithm stronger than SHA-1 is enabled in config.h
|
|
|
|
# algorithm stronger than SHA-1 is enabled in config.h
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: Signature Algorithms parsing, client-initiated" \
|
|
|
|
run_test "Renegotiation: Signature Algorithms parsing, client-initiated" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
@ -1560,6 +1564,7 @@ run_test "Renegotiation: Signature Algorithms parsing, client-initiated" \
|
|
|
|
# Checks that no Signature Algorithm with SHA-1 gets negotiated. Negotiating SHA-1 would mean that
|
|
|
|
# Checks that no Signature Algorithm with SHA-1 gets negotiated. Negotiating SHA-1 would mean that
|
|
|
|
# the server did not parse the Signature Algorithm extension. This test is valid only if an MD
|
|
|
|
# the server did not parse the Signature Algorithm extension. This test is valid only if an MD
|
|
|
|
# algorithm stronger than SHA-1 is enabled in config.h
|
|
|
|
# algorithm stronger than SHA-1 is enabled in config.h
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: Signature Algorithms parsing, server-initiated" \
|
|
|
|
run_test "Renegotiation: Signature Algorithms parsing, server-initiated" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional renegotiate=1" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1" \
|
|
|
@ -1574,6 +1579,7 @@ run_test "Renegotiation: Signature Algorithms parsing, server-initiated" \
|
|
|
|
-s "write hello request" \
|
|
|
|
-s "write hello request" \
|
|
|
|
-S "client hello v3, signature_algorithm ext: 2" # Is SHA-1 negotiated?
|
|
|
|
-S "client hello v3, signature_algorithm ext: 2" # Is SHA-1 negotiated?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: double" \
|
|
|
|
run_test "Renegotiation: double" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional renegotiate=1" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 auth_mode=optional renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
@ -1587,6 +1593,7 @@ run_test "Renegotiation: double" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "write hello request"
|
|
|
|
-s "write hello request"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: client-initiated, server-rejected" \
|
|
|
|
run_test "Renegotiation: client-initiated, server-rejected" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=0 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=0 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
@ -1602,6 +1609,7 @@ run_test "Renegotiation: client-initiated, server-rejected" \
|
|
|
|
-c "SSL - Unexpected message at ServerHello in renegotiation" \
|
|
|
|
-c "SSL - Unexpected message at ServerHello in renegotiation" \
|
|
|
|
-c "failed"
|
|
|
|
-c "failed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: server-initiated, client-rejected, default" \
|
|
|
|
run_test "Renegotiation: server-initiated, client-rejected, default" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=0" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=0" \
|
|
|
@ -1617,6 +1625,7 @@ run_test "Renegotiation: server-initiated, client-rejected, default" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "failed"
|
|
|
|
-S "failed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: server-initiated, client-rejected, not enforced" \
|
|
|
|
run_test "Renegotiation: server-initiated, client-rejected, not enforced" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 \
|
|
|
|
renego_delay=-1 auth_mode=optional" \
|
|
|
|
renego_delay=-1 auth_mode=optional" \
|
|
|
@ -1634,6 +1643,7 @@ run_test "Renegotiation: server-initiated, client-rejected, not enforced" \
|
|
|
|
-S "failed"
|
|
|
|
-S "failed"
|
|
|
|
|
|
|
|
|
|
|
|
# delay 2 for 1 alert record + 1 application data record
|
|
|
|
# delay 2 for 1 alert record + 1 application data record
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: server-initiated, client-rejected, delay 2" \
|
|
|
|
run_test "Renegotiation: server-initiated, client-rejected, delay 2" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 \
|
|
|
|
renego_delay=2 auth_mode=optional" \
|
|
|
|
renego_delay=2 auth_mode=optional" \
|
|
|
@ -1650,6 +1660,7 @@ run_test "Renegotiation: server-initiated, client-rejected, delay 2" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "failed"
|
|
|
|
-S "failed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: server-initiated, client-rejected, delay 0" \
|
|
|
|
run_test "Renegotiation: server-initiated, client-rejected, delay 0" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 \
|
|
|
|
renego_delay=0 auth_mode=optional" \
|
|
|
|
renego_delay=0 auth_mode=optional" \
|
|
|
@ -1665,6 +1676,7 @@ run_test "Renegotiation: server-initiated, client-rejected, delay 0" \
|
|
|
|
-s "write hello request" \
|
|
|
|
-s "write hello request" \
|
|
|
|
-s "SSL - An unexpected message was received from our peer"
|
|
|
|
-s "SSL - An unexpected message was received from our peer"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: server-initiated, client-accepted, delay 0" \
|
|
|
|
run_test "Renegotiation: server-initiated, client-accepted, delay 0" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 \
|
|
|
|
"$P_SRV debug_level=3 exchanges=2 renegotiation=1 renegotiate=1 \
|
|
|
|
renego_delay=0 auth_mode=optional" \
|
|
|
|
renego_delay=0 auth_mode=optional" \
|
|
|
@ -1681,6 +1693,7 @@ run_test "Renegotiation: server-initiated, client-accepted, delay 0" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "failed"
|
|
|
|
-S "failed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: periodic, just below period" \
|
|
|
|
run_test "Renegotiation: periodic, just below period" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=9 renegotiation=1 renego_period=3 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=9 renegotiation=1 renego_period=3 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=2 renegotiation=1" \
|
|
|
@ -1698,6 +1711,7 @@ run_test "Renegotiation: periodic, just below period" \
|
|
|
|
-S "failed"
|
|
|
|
-S "failed"
|
|
|
|
|
|
|
|
|
|
|
|
# one extra exchange to be able to complete renego
|
|
|
|
# one extra exchange to be able to complete renego
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: periodic, just above period" \
|
|
|
|
run_test "Renegotiation: periodic, just above period" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=9 renegotiation=1 renego_period=3 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=9 renegotiation=1 renego_period=3 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=4 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=4 renegotiation=1" \
|
|
|
@ -1714,6 +1728,7 @@ run_test "Renegotiation: periodic, just above period" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "failed"
|
|
|
|
-S "failed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: periodic, two times period" \
|
|
|
|
run_test "Renegotiation: periodic, two times period" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=9 renegotiation=1 renego_period=3 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=9 renegotiation=1 renego_period=3 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=7 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=7 renegotiation=1" \
|
|
|
@ -1730,6 +1745,7 @@ run_test "Renegotiation: periodic, two times period" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "failed"
|
|
|
|
-S "failed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: periodic, above period, disabled" \
|
|
|
|
run_test "Renegotiation: periodic, above period, disabled" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=9 renegotiation=0 renego_period=3 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 exchanges=9 renegotiation=0 renego_period=3 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=4 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=4 renegotiation=1" \
|
|
|
@ -1746,6 +1762,7 @@ run_test "Renegotiation: periodic, above period, disabled" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "SSL - An unexpected message was received from our peer" \
|
|
|
|
-S "failed"
|
|
|
|
-S "failed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: nbio, client-initiated" \
|
|
|
|
run_test "Renegotiation: nbio, client-initiated" \
|
|
|
|
"$P_SRV debug_level=3 nbio=2 exchanges=2 renegotiation=1 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 nbio=2 exchanges=2 renegotiation=1 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 nbio=2 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 nbio=2 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
@ -1759,6 +1776,7 @@ run_test "Renegotiation: nbio, client-initiated" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-S "write hello request"
|
|
|
|
-S "write hello request"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: nbio, server-initiated" \
|
|
|
|
run_test "Renegotiation: nbio, server-initiated" \
|
|
|
|
"$P_SRV debug_level=3 nbio=2 exchanges=2 renegotiation=1 renegotiate=1 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 nbio=2 exchanges=2 renegotiation=1 renegotiate=1 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 nbio=2 exchanges=2 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 nbio=2 exchanges=2 renegotiation=1" \
|
|
|
@ -1772,6 +1790,7 @@ run_test "Renegotiation: nbio, server-initiated" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "write hello request"
|
|
|
|
-s "write hello request"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: openssl server, client-initiated" \
|
|
|
|
run_test "Renegotiation: openssl server, client-initiated" \
|
|
|
|
"$O_SRV -www" \
|
|
|
|
"$O_SRV -www" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1" \
|
|
|
@ -1784,6 +1803,7 @@ run_test "Renegotiation: openssl server, client-initiated" \
|
|
|
|
-c "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
-c "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
|
|
|
|
|
|
|
|
requires_gnutls
|
|
|
|
requires_gnutls
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: gnutls server strict, client-initiated" \
|
|
|
|
run_test "Renegotiation: gnutls server strict, client-initiated" \
|
|
|
|
"$G_SRV --priority=NORMAL:%SAFE_RENEGOTIATION" \
|
|
|
|
"$G_SRV --priority=NORMAL:%SAFE_RENEGOTIATION" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1" \
|
|
|
@ -1796,6 +1816,7 @@ run_test "Renegotiation: gnutls server strict, client-initiated" \
|
|
|
|
-c "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
-c "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
|
|
|
|
|
|
|
|
requires_gnutls
|
|
|
|
requires_gnutls
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: gnutls server unsafe, client-initiated default" \
|
|
|
|
run_test "Renegotiation: gnutls server unsafe, client-initiated default" \
|
|
|
|
"$G_SRV --priority=NORMAL:%DISABLE_SAFE_RENEGOTIATION" \
|
|
|
|
"$G_SRV --priority=NORMAL:%DISABLE_SAFE_RENEGOTIATION" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1" \
|
|
|
@ -1808,6 +1829,7 @@ run_test "Renegotiation: gnutls server unsafe, client-initiated default" \
|
|
|
|
-C "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
-C "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
|
|
|
|
|
|
|
|
requires_gnutls
|
|
|
|
requires_gnutls
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: gnutls server unsafe, client-inititated no legacy" \
|
|
|
|
run_test "Renegotiation: gnutls server unsafe, client-inititated no legacy" \
|
|
|
|
"$G_SRV --priority=NORMAL:%DISABLE_SAFE_RENEGOTIATION" \
|
|
|
|
"$G_SRV --priority=NORMAL:%DISABLE_SAFE_RENEGOTIATION" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1 \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1 \
|
|
|
@ -1821,6 +1843,7 @@ run_test "Renegotiation: gnutls server unsafe, client-inititated no legacy" \
|
|
|
|
-C "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
-C "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
|
|
|
|
|
|
|
|
requires_gnutls
|
|
|
|
requires_gnutls
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: gnutls server unsafe, client-inititated legacy" \
|
|
|
|
run_test "Renegotiation: gnutls server unsafe, client-inititated legacy" \
|
|
|
|
"$G_SRV --priority=NORMAL:%DISABLE_SAFE_RENEGOTIATION" \
|
|
|
|
"$G_SRV --priority=NORMAL:%DISABLE_SAFE_RENEGOTIATION" \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1 \
|
|
|
|
"$P_CLI debug_level=3 exchanges=1 renegotiation=1 renegotiate=1 \
|
|
|
@ -1833,6 +1856,7 @@ run_test "Renegotiation: gnutls server unsafe, client-inititated legacy" \
|
|
|
|
-C "error" \
|
|
|
|
-C "error" \
|
|
|
|
-c "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
-c "HTTP/1.0 200 [Oo][Kk]"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: DTLS, client-initiated" \
|
|
|
|
run_test "Renegotiation: DTLS, client-initiated" \
|
|
|
|
"$P_SRV debug_level=3 dtls=1 exchanges=2 renegotiation=1" \
|
|
|
|
"$P_SRV debug_level=3 dtls=1 exchanges=2 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
@ -1846,6 +1870,7 @@ run_test "Renegotiation: DTLS, client-initiated" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-S "write hello request"
|
|
|
|
-S "write hello request"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: DTLS, server-initiated" \
|
|
|
|
run_test "Renegotiation: DTLS, server-initiated" \
|
|
|
|
"$P_SRV debug_level=3 dtls=1 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_SRV debug_level=3 dtls=1 exchanges=2 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 exchanges=2 renegotiation=1 \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 exchanges=2 renegotiation=1 \
|
|
|
@ -1860,6 +1885,7 @@ run_test "Renegotiation: DTLS, server-initiated" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "write hello request"
|
|
|
|
-s "write hello request"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: DTLS, renego_period overflow" \
|
|
|
|
run_test "Renegotiation: DTLS, renego_period overflow" \
|
|
|
|
"$P_SRV debug_level=3 dtls=1 exchanges=4 renegotiation=1 renego_period=18446462598732840962 auth_mode=optional" \
|
|
|
|
"$P_SRV debug_level=3 dtls=1 exchanges=4 renegotiation=1 renego_period=18446462598732840962 auth_mode=optional" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 exchanges=4 renegotiation=1" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 exchanges=4 renegotiation=1" \
|
|
|
@ -1871,9 +1897,10 @@ run_test "Renegotiation: DTLS, renego_period overflow" \
|
|
|
|
-s "record counter limit reached: renegotiate" \
|
|
|
|
-s "record counter limit reached: renegotiate" \
|
|
|
|
-c "=> renegotiate" \
|
|
|
|
-c "=> renegotiate" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "=> renegotiate" \
|
|
|
|
-s "write hello request" \
|
|
|
|
-s "write hello request"
|
|
|
|
|
|
|
|
|
|
|
|
requires_gnutls
|
|
|
|
requires_gnutls
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "Renegotiation: DTLS, gnutls server, client-initiated" \
|
|
|
|
run_test "Renegotiation: DTLS, gnutls server, client-initiated" \
|
|
|
|
"$G_SRV -u --mtu 4096" \
|
|
|
|
"$G_SRV -u --mtu 4096" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 exchanges=1 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 exchanges=1 renegotiation=1 renegotiate=1" \
|
|
|
@ -3782,6 +3809,7 @@ run_test "DTLS reassembly: more fragmentation, nbio (gnutls server)" \
|
|
|
|
-C "error"
|
|
|
|
-C "error"
|
|
|
|
|
|
|
|
|
|
|
|
requires_gnutls
|
|
|
|
requires_gnutls
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "DTLS reassembly: fragmentation, renego (gnutls server)" \
|
|
|
|
run_test "DTLS reassembly: fragmentation, renego (gnutls server)" \
|
|
|
|
"$G_SRV -u --mtu 256" \
|
|
|
|
"$G_SRV -u --mtu 256" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 dtls=1 renegotiation=1 renegotiate=1" \
|
|
|
@ -3795,6 +3823,7 @@ run_test "DTLS reassembly: fragmentation, renego (gnutls server)" \
|
|
|
|
-s "Extra-header:"
|
|
|
|
-s "Extra-header:"
|
|
|
|
|
|
|
|
|
|
|
|
requires_gnutls
|
|
|
|
requires_gnutls
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_RENEGOTIATION
|
|
|
|
run_test "DTLS reassembly: fragmentation, nbio, renego (gnutls server)" \
|
|
|
|
run_test "DTLS reassembly: fragmentation, nbio, renego (gnutls server)" \
|
|
|
|
"$G_SRV -u --mtu 256" \
|
|
|
|
"$G_SRV -u --mtu 256" \
|
|
|
|
"$P_CLI debug_level=3 nbio=2 dtls=1 renegotiation=1 renegotiate=1" \
|
|
|
|
"$P_CLI debug_level=3 nbio=2 dtls=1 renegotiation=1 renegotiate=1" \
|
|
|
@ -4039,6 +4068,7 @@ run_test "DTLS proxy: 3d, min handshake, resumption, nbio" \
|
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
|
|
|
|
client_needs_more_time 4
|
|
|
|
client_needs_more_time 4
|
|
|
|
|
|
|
|
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=250-10000 tickets=0 auth_mode=none \
|
|
|
@ -4053,6 +4083,7 @@ run_test "DTLS proxy: 3d, min handshake, client-initiated renego" \
|
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
|
|
|
|
client_needs_more_time 4
|
|
|
|
client_needs_more_time 4
|
|
|
|
|
|
|
|
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=250-10000 tickets=0 auth_mode=none \
|
|
|
@ -4067,6 +4098,7 @@ run_test "DTLS proxy: 3d, min handshake, client-initiated renego, nbio" \
|
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
|
|
|
|
client_needs_more_time 4
|
|
|
|
client_needs_more_time 4
|
|
|
|
|
|
|
|
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=250-10000 tickets=0 auth_mode=none \
|
|
|
@ -4082,6 +4114,7 @@ run_test "DTLS proxy: 3d, min handshake, server-initiated renego" \
|
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
|
|
|
|
client_needs_more_time 4
|
|
|
|
client_needs_more_time 4
|
|
|
|
|
|
|
|
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=250-10000 tickets=0 auth_mode=none \
|
|
|
|