Gilles Peskine cd4da16eea Don't call psa_crypto_init in test programs 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 test programs 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
..
CMakeLists.txt Refactor common PThreads CMake code 2024-01-24 18:05:53 +00:00
dtls_client.c update headers 2023-11-02 19:47:20 +00:00
dtls_server.c update headers 2023-11-02 19:47:20 +00:00
mini_client.c Update paths pointing to tests/data_files 2024-07-08 15:36:46 +01:00
ssl_client1.c update headers 2023-11-02 19:47:20 +00:00
ssl_client2.c Don't call psa_crypto_init in test programs when not required for TLS 1.3 2024-08-25 10:44:39 +02:00
ssl_context_info.c Adjust spacing in sample programs 2024-08-06 12:09:13 +01:00
ssl_fork_server.c update headers 2023-11-02 19:47:20 +00:00
ssl_mail_client.c ssl_mail_client: Fix code style issue 2024-04-30 13:00:35 +02:00
ssl_pthread_server.c update headers 2023-11-02 19:47:20 +00:00
ssl_server2.c Don't call psa_crypto_init in test programs when not required for TLS 1.3 2024-08-25 10:44:39 +02:00
ssl_server.c update headers 2023-11-02 19:47:20 +00:00
ssl_test_common_source.c Use correct conditionals in programs/ssl (fix unused-function errors) 2024-08-06 12:09:13 +01:00
ssl_test_lib.c ssl_test_lib: add guards for pk_wrap_as_opaque() 2024-02-28 10:45:43 +01:00
ssl_test_lib.h ssl_test_lib: add guards for pk_wrap_as_opaque() 2024-02-28 10:45:43 +01:00