Skip to content

Commit

Permalink
Fix (d)tls1_2 into (d)tls12 in version options
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaofei Bai <xiaofei.bai@arm.com>
  • Loading branch information
xffbai committed Dec 2, 2021
1 parent d25fab6 commit 8b5c382
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 84 deletions.
10 changes: 5 additions & 5 deletions tests/compat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ else
fi

# default values for options
MODES="tls1_2 dtls1_2"
MODES="tls12 dtls12"
VERIFIES="NO YES"
TYPES="ECDSA RSA PSK"
FILTER=""
Expand Down Expand Up @@ -155,14 +155,14 @@ log() {
# is_dtls <mode>
is_dtls()
{
test "$1" = "dtls1_2"
test "$1" = "dtls12"
}

# minor_ver <mode>
minor_ver()
{
case "$1" in
tls1_2|dtls1_2)
tls12|dtls12)
echo 3
;;
*)
Expand Down Expand Up @@ -633,10 +633,10 @@ setup_arguments()
{
G_MODE=""
case "$MODE" in
"tls1_2")
"tls12")
G_PRIO_MODE="+VERS-TLS1.2"
;;
"dtls1_2")
"dtls12")
G_PRIO_MODE="+VERS-DTLS1.2"
G_MODE="-u"
;;
Expand Down
8 changes: 4 additions & 4 deletions tests/scripts/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ component_test_no_ctr_drbg_classic () {
tests/ssl-opt.sh -f 'Default\|SSL async private.*delay=\|tickets enabled on server'

msg "test: Full minus CTR_DRBG, classic crypto - compat.sh (subset)"
tests/compat.sh -m tls1_2 -t 'ECDSA PSK' -V NO -p OpenSSL
tests/compat.sh -m tls12 -t 'ECDSA PSK' -V NO -p OpenSSL
}

component_test_no_ctr_drbg_use_psa () {
Expand All @@ -1101,7 +1101,7 @@ component_test_no_ctr_drbg_use_psa () {
tests/ssl-opt.sh -f 'Default\|SSL async private.*delay=\|tickets enabled on server'

msg "test: Full minus CTR_DRBG, USE_PSA_CRYPTO - compat.sh (subset)"
tests/compat.sh -m tls1_2 -t 'ECDSA PSK' -V NO -p OpenSSL
tests/compat.sh -m tls12 -t 'ECDSA PSK' -V NO -p OpenSSL
}

component_test_no_hmac_drbg_classic () {
Expand All @@ -1128,7 +1128,7 @@ component_test_no_hmac_drbg_classic () {
# To save time, only test one protocol version, since this part of
# the protocol is identical in (D)TLS up to 1.2.
msg "test: Full minus HMAC_DRBG, classic crypto - compat.sh (ECDSA)"
tests/compat.sh -m tls1_2 -t 'ECDSA'
tests/compat.sh -m tls12 -t 'ECDSA'
}

component_test_no_hmac_drbg_use_psa () {
Expand All @@ -1155,7 +1155,7 @@ component_test_no_hmac_drbg_use_psa () {
# To save time, only test one protocol version, since this part of
# the protocol is identical in (D)TLS up to 1.2.
msg "test: Full minus HMAC_DRBG, USE_PSA_CRYPTO - compat.sh (ECDSA)"
tests/compat.sh -m tls1_2 -t 'ECDSA'
tests/compat.sh -m tls12 -t 'ECDSA'
}

component_test_psa_external_rng_no_drbg_classic () {
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/test-ref-configs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@

my %configs = (
'config-ccm-psk-tls1_2.h' => {
'compat' => '-m tls1_2 -f \'^TLS-PSK-WITH-AES-...-CCM-8\'',
'compat' => '-m tls12 -f \'^TLS-PSK-WITH-AES-...-CCM-8\'',
},
'config-no-entropy.h' => {
},
'config-suite-b.h' => {
'compat' => "-m tls1_2 -f 'ECDHE-ECDSA.*AES.*GCM' -p mbedTLS",
'compat' => "-m tls12 -f 'ECDHE-ECDSA.*AES.*GCM' -p mbedTLS",
},
'config-symmetric-only.h' => {
},
Expand Down
Loading

0 comments on commit 8b5c382

Please sign in to comment.