From dc99c890a6c050f6abf8579b983c2d7bb53e9b6b Mon Sep 17 00:00:00 2001 From: Waleed Elmelegy Date: Mon, 15 Jul 2024 17:25:04 +0000 Subject: [PATCH] Improve legacy compression regression testing Signed-off-by: Waleed Elmelegy --- tests/ssl-opt.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index be06e5ad4b..7a35c43d40 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -14138,13 +14138,25 @@ run_test "TLS 1.3: no HRR in case of PSK key exchange mode" \ # Legacy_compression_methods testing requires_gnutls +requires_config_enabled MBEDTLS_SSL_SRV_C requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2 requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 -run_test "ClientHello parse handle Legacy_compression_methods" \ +run_test "TLS 1.2 ClientHello indicating support for deflate compression method (fallback from TLS 1.3)" \ "$P_SRV debug_level=3" \ "$G_CLI --priority=NORMAL:-VERS-ALL:+VERS-TLS1.2:+COMP-DEFLATE localhost" \ 0 \ - -c "Handshake was completed" + -c "Handshake was completed" \ + -s "dumping .client hello, compression. (2 bytes)" + +requires_gnutls +requires_config_enabled MBEDTLS_SSL_SRV_C +requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2 +run_test "TLS 1.2 ClientHello indicating support for deflate compression method" \ + "$P_SRV debug_level=3" \ + "$G_CLI --priority=NORMAL:-VERS-ALL:+VERS-TLS1.2:+COMP-DEFLATE localhost" \ + 0 \ + -c "Handshake was completed" \ + -s "dumping .client hello, compression. (2 bytes)" # Test heap memory usage after handshake requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2