mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-13 09:05:08 -04:00
compat.sh: use correct names in --list-test-cases
The main fix here is that m->O and m->G should use `M_CIPHERS`. In order to apply that though, we need to change the structure with a new for loop and case statement. The new structure matches what's done when actually running tests. Note: this issue only exists in 2.28. In 3.x we now use the standard name for display everywhere, but in 2.28 we use the name as seen by the client for display. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
826f8da954
commit
c1685d1c11
@ -147,17 +147,31 @@ list_test_cases() {
|
||||
fi
|
||||
for VERIFY in $SUB_VERIFIES; do
|
||||
VERIF=$(echo $VERIFY | tr '[:upper:]' '[:lower:]')
|
||||
reset_ciphersuites
|
||||
add_common_ciphersuites
|
||||
add_openssl_ciphersuites
|
||||
add_gnutls_ciphersuites
|
||||
add_mbedtls_ciphersuites
|
||||
filter_ciphersuites
|
||||
print_test_case m O "$O_CIPHERS"
|
||||
print_test_case O m "$O_CIPHERS"
|
||||
print_test_case m G "$G_CIPHERS"
|
||||
print_test_case G m "$G_CIPHERS"
|
||||
print_test_case m m "$M_CIPHERS"
|
||||
for PEER in $PEERS; do
|
||||
reset_ciphersuites
|
||||
add_common_ciphersuites
|
||||
case "$PEER" in
|
||||
[Oo]pen*)
|
||||
add_openssl_ciphersuites
|
||||
filter_ciphersuites
|
||||
print_test_case m O "$M_CIPHERS"
|
||||
print_test_case O m "$O_CIPHERS"
|
||||
;;
|
||||
[Gg]nu*)
|
||||
add_gnutls_ciphersuites
|
||||
filter_ciphersuites
|
||||
print_test_case m G "$M_CIPHERS"
|
||||
print_test_case G m "$G_CIPHERS"
|
||||
;;
|
||||
mbed*)
|
||||
add_openssl_ciphersuites
|
||||
add_gnutls_ciphersuites
|
||||
add_mbedtls_ciphersuites
|
||||
filter_ciphersuites
|
||||
print_test_case m m "$M_CIPHERS"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
done
|
||||
done
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user