mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-10 19:25:29 +00:00
ssl-opt.sh: Auto-skip tests using TLS if TLS is disabled
This commit is contained in:
parent
e1c5608370
commit
73b72d1890
|
@ -539,6 +539,13 @@ check_cmdline_param_compat() {
|
|||
fi
|
||||
}
|
||||
|
||||
check_cmdline_check_tls() {
|
||||
detect_dtls "$CMD"
|
||||
if [ "$DTLS" = "0" ]; then
|
||||
requires_config_disabled MBEDTLS_SSL_PROTO_NO_TLS
|
||||
fi
|
||||
}
|
||||
|
||||
check_cmdline_authmode_compat() {
|
||||
__VAL="$( get_config_value_or_default "MBEDTLS_SSL_CONF_AUTHMODE" )"
|
||||
if [ ! -z "$__VAL" ]; then
|
||||
|
@ -669,6 +676,9 @@ 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
|
||||
|
||||
# Authentication mode
|
||||
check_cmdline_authmode_compat
|
||||
|
||||
|
|
Loading…
Reference in a new issue