mbedtls/programs/ssl
Gilles Peskine 5333425891 Always call psa_crypto_init before using TLS
In Mbed TLS 4.0, all cryptography goes through PSA, so calling
psa_crypto_init() is now mandatory before starting a TLS connection (as was
the case in Mbed TLS 3.x with MBEDTLS_USE_PSA_CRYPTO enabled).

Switch the TLS sample programs to calling psa_crypto_init() unconditionally.
Otherwise TLS 1.3 connections fail, and (D)TLS 1.2 connections soon will.

This commit omits the test programs ssl_client2 and ssl_server2, which don't
require a change right now. They will be covered when we make
MBEDTLS_USE_PSA_CRYPTO always on.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-09-25 21:12:57 +02:00
..
CMakeLists.txt CMake: support "make ssl-opt" to just build what ssl-opt.sh needs 2024-09-14 12:19:19 +02:00
dtls_client.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
dtls_server.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
mini_client.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
ssl_client1.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
ssl_client2.c Merge pull request #1272 from eleuzi01/forward-1263 2024-08-28 19:38:36 +02:00
ssl_context_info.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
ssl_fork_server.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
ssl_mail_client.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
ssl_pthread_server.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
ssl_server2.c Address review comments: add PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 2024-09-09 11:18:10 +01:00
ssl_server.c Always call psa_crypto_init before using TLS 2024-09-25 21:12:57 +02:00
ssl_test_common_source.c Replace MBEDTLS_PK_CAN_ECDSA_SOME with PSA_HAVE_ALG_SOME_ECDSA 2024-09-09 11:17:36 +01:00
ssl_test_lib.c
ssl_test_lib.h