mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-17 20:42:44 +00:00
Fix skipped tests in configurations without RSA
Tighten the matching when detecting which certificates are in use to determine algorithm requirements. This fixes a bug whereby all tests were skipped in configurations without RSA except for an Mbed TLS client against a GnuTLS or OpenSSL server, due to *server2* matching ssl_server2. Fixes #8366. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
f1415b65d0
commit
1bc28fe34b
@ -443,9 +443,9 @@ detect_required_features() {
|
||||
esac
|
||||
|
||||
case "$CMD_LINE" in
|
||||
*server5*|\
|
||||
*server7*|\
|
||||
*dir-maxpath*)
|
||||
*/server5*|\
|
||||
*/server7*|\
|
||||
*/dir-maxpath*)
|
||||
if [ "$TLS_VERSION" = "TLS13" ]; then
|
||||
# In case of TLS13 the support for ECDSA is enough
|
||||
requires_pk_alg "ECDSA"
|
||||
@ -477,8 +477,8 @@ detect_required_features() {
|
||||
esac
|
||||
|
||||
case "$CMD_LINE" in
|
||||
*server2*|\
|
||||
*server7*)
|
||||
*/server2*|\
|
||||
*/server7*)
|
||||
# server2 and server7 certificates use RSA encryption
|
||||
requires_config_enabled "MBEDTLS_RSA_C"
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user