Gilles Peskine 7c5547ccbd Add stub functions so that we can run tests with MBEDTLS_PSA_CRYPTO_CLIENT
When MBEDTLS_PSA_CRYPTO_CLIENT is enabled but MBEDTLS_PSA_CRYPTO_C is
disabled, the PSA functions are missing, but there is code in the pk module
that call PSA functions.

When building such a configuration, let the test code provide stub functions
that just return an error. This way, we can link and run programs in this
configuration. The programs will fail at runtime if they try to invoke a PSA
function, so any testing that involves running PSA functions must still be
guarded by MBEDTLS_PSA_CRYPTO_C, not MBEDTLS_PSA_CRYPTO_CLIENT.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-02-20 14:40:42 +01:00
..
drivers test_driver_key_management: keep mbedtls_test_opaque_wrap_key() private 2024-01-18 08:44:13 +01:00
test_helpers tests: ssl: Add helper function to get a TLS 1.3 ticket 2024-02-06 16:43:33 +01:00
asn1_helpers.c update headers 2023-11-02 19:47:20 +00:00
bignum_helpers.c Move bignum flag for negative zero into test_info 2024-01-09 18:01:58 +00:00
certs.c update headers 2023-11-02 19:47:20 +00:00
fake_external_rng_for_test.c update headers 2023-11-02 19:47:20 +00:00
helpers.c Fix deadlock with test failures 2024-02-13 13:57:31 +00:00
psa_crypto_helpers.c test_suite_psa_crypto_slot_management: modify check on open key slots 2023-12-04 11:04:42 +01:00
psa_crypto_stubs.c Add stub functions so that we can run tests with MBEDTLS_PSA_CRYPTO_CLIENT 2024-02-20 14:40:42 +01:00
psa_exercise_key.c Add hkdf_extract, hkdf_expand and ecjpake_to_pms cases 2024-01-10 21:49:09 +05:30
random.c update headers 2023-11-02 19:47:20 +00:00
test_certs.h update headers 2023-11-02 19:47:20 +00:00
threading_helpers.c Merge remote-tracking branch 'upstream/development' into make_tests_thread_safe 2024-02-09 14:33:58 +00:00