ssl-opt.sh: Add version selection by the server tests
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
50ae84ed97
commit
d120bd646c
1 changed files with 37 additions and 0 deletions
|
@ -1946,6 +1946,43 @@ run_test "Default, DTLS" \
|
||||||
-s "Protocol is DTLSv1.2" \
|
-s "Protocol is DTLSv1.2" \
|
||||||
-s "Ciphersuite is TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256"
|
-s "Ciphersuite is TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256"
|
||||||
|
|
||||||
|
requires_gnutls_tls1_3
|
||||||
|
requires_config_enabled MBEDTLS_DEBUG_C
|
||||||
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
||||||
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
|
||||||
|
requires_config_enabled MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
|
||||||
|
run_test "Server selecting preferred TLS 1.2 over TLS 1.3" \
|
||||||
|
"$P_SRV crt_file=data_files/server5.crt key_file=data_files/server5.key" \
|
||||||
|
"$G_NEXT_CLI localhost --priority=NORMAL:-VERS-ALL:+VERS-TLS1.2:+VERS-TLS1.3" \
|
||||||
|
0 \
|
||||||
|
-s "Protocol is TLSv1.2" \
|
||||||
|
-c "HTTP/1.0 200 OK"
|
||||||
|
|
||||||
|
requires_gnutls_tls1_3
|
||||||
|
requires_config_enabled MBEDTLS_DEBUG_C
|
||||||
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
||||||
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||||
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
||||||
|
run_test "Server selecting preferred TLS 1.3 over TLS 1.2" \
|
||||||
|
"$P_SRV crt_file=data_files/server5.crt key_file=data_files/server5.key" \
|
||||||
|
"$G_NEXT_CLI localhost --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:+VERS-TLS1.2:%DISABLE_TLS13_COMPAT_MODE" \
|
||||||
|
0 \
|
||||||
|
-s "Protocol is TLSv1.3" \
|
||||||
|
-c "HTTP/1.0 200 OK"
|
||||||
|
|
||||||
|
requires_gnutls_tls1_3
|
||||||
|
requires_config_enabled MBEDTLS_DEBUG_C
|
||||||
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
||||||
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
||||||
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
||||||
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
||||||
|
run_test "Server selecting preferred TLS 1.3 over TLS 1.2 - compat mode enabled" \
|
||||||
|
"$P_SRV crt_file=data_files/server5.crt key_file=data_files/server5.key" \
|
||||||
|
"$G_NEXT_CLI localhost --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:+VERS-TLS1.2" \
|
||||||
|
0 \
|
||||||
|
-s "Protocol is TLSv1.3" \
|
||||||
|
-c "HTTP/1.0 200 OK"
|
||||||
|
|
||||||
requires_key_exchange_with_cert_in_tls12_or_tls13_enabled
|
requires_key_exchange_with_cert_in_tls12_or_tls13_enabled
|
||||||
run_test "TLS client auth: required" \
|
run_test "TLS client auth: required" \
|
||||||
"$P_SRV auth_mode=required" \
|
"$P_SRV auth_mode=required" \
|
||||||
|
|
Loading…
Reference in a new issue