mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-12 10:13:39 +00:00
Add test for single signature alg with openssl
Test supplied by Gilles Peskine. Also rename previous test to fit to naming pattern. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
3b4cedaa71
commit
f6e342cae2
@ -2379,12 +2379,23 @@ requires_config_enabled MBEDTLS_SSL_CLI_C
|
||||
requires_config_enabled MBEDTLS_SSL_SRV_C
|
||||
requires_config_enabled MBEDTLS_ECDSA_C
|
||||
requires_hash_alg SHA_256
|
||||
run_test "Single supported algorithm sending" \
|
||||
run_test "Single supported algorithm sending: mbedtls client" \
|
||||
"$P_SRV sig_algs=ecdsa_secp256r1_sha256 auth_mode=required" \
|
||||
"$P_CLI sig_algs=ecdsa_secp256r1_sha256 debug_level=3" \
|
||||
0 \
|
||||
-c "Supported Signature Algorithm found: 04 03"
|
||||
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
|
||||
requires_config_enabled MBEDTLS_SSL_SRV_C
|
||||
requires_config_enabled MBEDTLS_ECDSA_C
|
||||
requires_config_enabled MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
||||
requires_hash_alg SHA_256
|
||||
run_test "Single supported algorithm sending: openssl client" \
|
||||
"$P_SRV sig_algs=ecdsa_secp256r1_sha256 auth_mode=required" \
|
||||
"$O_CLI -cert data_files/server6.crt \
|
||||
-key data_files/server6.key" \
|
||||
0
|
||||
|
||||
# Tests for certificate verification callback
|
||||
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_2
|
||||
run_test "Configuration-specific CRT verification callback" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user