mbedtls/programs/ssl
Gilles Peskine 1af872d23b Move the fake PSA external RNG to its own header and source files
Move the declaration of the functions needed to use the test
implementation of mbedtls_psa_external_get_random() to a new header
file. Before, they were declared in
tests/include/test/psa_crypto_helpers.h, but this header file can't be
included in sample programs because it also includes headers from the
library directory which is not on the include path for sample
programs.

This fixes the build of the sample programs when
MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG and MBEDTLS_USE_PSA_CRYPTO are
enabled.

Move the implementation of the functions to a separate .c file as
well. This isn't strictly necessary, but makes the structure of the
source code easier to understand.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-01-20 20:02:01 +01:00
..
CMakeLists.txt ssl_test_lib.[hc]: new source file for common SSL test code 2021-01-06 10:25:35 +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 SSL test programs: enable the PSA test external RNG 2021-01-13 23:53:09 +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 SSL test programs: enable the PSA test external RNG 2021-01-13 23:53:09 +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 SSL test programs: support HMAC_DRBG 2021-01-13 20:30:03 +01:00
ssl_test_lib.h Move the fake PSA external RNG to its own header and source files 2021-01-20 20:02:01 +01:00