mbedtls/programs/ssl
Gilles Peskine b8c484088c Fix psa_destroy_key called after mbedtls_psa_crypto_free
Move the call to destroy the PSK to before freeing the SSL session
data and calling rng_free(), which deinitializes the PSA subsystem.
This particular ordering was chosen to make the ssl_client2 more
similar to ssl_server2. This fixes the client failing on the
psa_destroy_key() call in `ssl-opt.sh -f 'opaque psk on client'`.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-02-16 15:46:02 +01:00
..
CMakeLists.txt Merge pull request #3897 from d3zd3z/fix-cmake28 2021-01-26 13:35:56 +01:00
dtls_client.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
dtls_server.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
mini_client.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_client1.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_client2.c Fix psa_destroy_key called after mbedtls_psa_crypto_free 2021-02-16 15:46:02 +01:00
ssl_context_info.c ssl_context_info: fix config requirements 2020-11-09 15:17:07 +01:00
ssl_fork_server.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_mail_client.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_pthread_server.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_server.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_server2.c Add comments to a few #endif closing a long chunk 2021-02-16 15:44:37 +01:00
ssl_test_common_source.c ssl_test_lib: move common functions and variables 2021-01-06 10:25:35 +01:00
ssl_test_lib.c Support mbedtls_psa_get_random() in SSL test programs 2021-02-16 15:39:48 +01:00
ssl_test_lib.h Support mbedtls_psa_get_random() in SSL test programs 2021-02-16 15:39:48 +01:00