From a43f85c9b299caedab7d09a5a82e80c854e16b77 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 5 Sep 2019 14:51:20 +0100 Subject: [PATCH] ssl-opt.sh: Auto-skip tests depending on DTLS --- tests/ssl-opt.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index a013792cd..62463748d 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -539,10 +539,12 @@ check_cmdline_param_compat() { fi } -check_cmdline_check_tls() { +check_cmdline_check_tls_dtls() { detect_dtls "$CMD" if [ "$DTLS" = "0" ]; then requires_config_disabled MBEDTLS_SSL_PROTO_NO_TLS + elif [ "$DTLS" = "1" ]; then + requires_config_enabled MBEDTLS_SSL_PROTO_DTLS fi } @@ -676,8 +678,8 @@ check_cmdline_compat() { check_cmdline_param_compat "badmac_limit" \ "MBEDTLS_SSL_CONF_BADMAC_LIMIT" - # Skip tests that use TLS in configs disabling TLS - check_cmdline_check_tls + # Skip tests relying on TLS/DTLS in configs that disable it. + check_cmdline_check_tls_dtls # Authentication mode check_cmdline_authmode_compat