Gilles Peskine 5950301740 Don't call psa_crypto_init in unit tests when not required for TLS 1.3
For backward compatibility with Mbed TLS <=3.5.x, applications must be able
to make a TLS connection with a peer that supports both TLS 1.2 and TLS 1.3,
regardless of whether they call psa_crypto_init(). Since Mbed TLS 3.6.0,
we enable TLS 1.3 in the default configuration, so we must take care of
calling psa_crypto_init() if needed. This is a change from TLS 1.3 in
previous versions, where enabling MBEDTLS_SSL_PROTO_TLS1_3 was a user
choice and could have additional requirement.

This commit changes our unit tests to validate that the library
does not have the compatibility-breaking requirement.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-08-25 10:44:39 +02:00
..
drivers Fix failures in psa_cryto_driver_wrappers suite 2024-04-04 12:57:06 +02:00
arguments.h update headers 2023-11-02 19:47:20 +00:00
asn1_helpers.h update headers 2023-11-02 19:47:20 +00:00
bignum_helpers.h Revert accidental formatting change 2024-02-02 17:59:26 +00:00
certs.h update headers 2023-11-02 19:47:20 +00:00
constant_flow.h update headers 2023-11-02 19:47:20 +00:00
fake_external_rng_for_test.h update headers 2023-11-02 19:47:20 +00:00
helpers.h Fix typo / improve documentation for test step fns 2024-02-09 14:41:24 +00:00
macros.h tests: fix calloc() argument list (gcc-14 fix) 2024-01-25 21:29:56 +00:00
memory.h Disable poisoning with PSA_CRYPTO_DRIVER_TEST 2024-01-31 14:38:15 +00:00
psa_crypto_helpers.h Don't call psa_crypto_init in unit tests when not required for TLS 1.3 2024-08-25 10:44:39 +02:00
psa_exercise_key.h Document unsupported concurrency scenario in psa_exercise_key 2024-03-14 17:51:09 +00:00
psa_helpers.h update headers 2023-11-02 19:47:20 +00:00
psa_memory_poisoning_wrappers.h Remove the manually written poisoning wrapper 2024-01-15 19:22:15 +01:00
psa_test_wrappers.h Update PSA wrappers 2024-08-06 13:12:06 +02:00
random.h update headers 2023-11-02 19:47:20 +00:00
ssl_helpers.h Add ALPN checking when accepting early data 2024-03-15 12:12:15 +00:00
threading_helpers.h Fix style issues 2024-02-01 12:44:01 +00:00