mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 07:51:10 +00:00
ssl-opt.sh: Auto-skip tests depending on DTLS
This commit is contained in:
parent
fcda6ddae1
commit
a43f85c9b2
|
@ -539,10 +539,12 @@ check_cmdline_param_compat() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_cmdline_check_tls() {
|
check_cmdline_check_tls_dtls() {
|
||||||
detect_dtls "$CMD"
|
detect_dtls "$CMD"
|
||||||
if [ "$DTLS" = "0" ]; then
|
if [ "$DTLS" = "0" ]; then
|
||||||
requires_config_disabled MBEDTLS_SSL_PROTO_NO_TLS
|
requires_config_disabled MBEDTLS_SSL_PROTO_NO_TLS
|
||||||
|
elif [ "$DTLS" = "1" ]; then
|
||||||
|
requires_config_enabled MBEDTLS_SSL_PROTO_DTLS
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -676,8 +678,8 @@ check_cmdline_compat() {
|
||||||
check_cmdline_param_compat "badmac_limit" \
|
check_cmdline_param_compat "badmac_limit" \
|
||||||
"MBEDTLS_SSL_CONF_BADMAC_LIMIT"
|
"MBEDTLS_SSL_CONF_BADMAC_LIMIT"
|
||||||
|
|
||||||
# Skip tests that use TLS in configs disabling TLS
|
# Skip tests relying on TLS/DTLS in configs that disable it.
|
||||||
check_cmdline_check_tls
|
check_cmdline_check_tls_dtls
|
||||||
|
|
||||||
# Authentication mode
|
# Authentication mode
|
||||||
check_cmdline_authmode_compat
|
check_cmdline_authmode_compat
|
||||||
|
|
Loading…
Reference in a new issue