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
..
.jenkins
configs Header updates 2023-11-03 12:21:36 +00:00
data_files Merge remote-tracking branch 'upstream/development' into pkcs5_aes_new 2024-02-08 14:26:29 +00:00
docker/bionic Header updates 2023-11-03 12:21:36 +00:00
git-scripts Header updates 2023-11-03 12:21:36 +00:00
include pk: guard mbedtls_pk_setup_opaque() with CRYPTO_CLIENT instead of USE_PSA 2024-02-19 17:41:40 +01:00
opt-testcases Merge pull request #8717 from valeriosetti/issue8030 2024-02-07 10:06:03 +00:00
scripts Add stub functions so that we can run tests with MBEDTLS_PSA_CRYPTO_CLIENT 2024-02-20 14:40:42 +01:00
src Add stub functions so that we can run tests with MBEDTLS_PSA_CRYPTO_CLIENT 2024-02-20 14:40:42 +01:00
suites Switch back to non-PSA paths in PK when MBEDTLS_USE_PSA_CRYPTO is off 2024-02-20 11:43:43 +01:00
.gitignore Revert "Auto-generated files for v3.5.0" 2023-10-05 00:17:21 +01:00
CMakeLists.txt Refactor common PThreads CMake code 2024-01-24 18:05:53 +00:00
compat-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
compat.sh Merge pull request #8462 from daverodgman/license-change 2023-11-04 15:47:07 +01:00
context-info.sh Header updates 2023-11-03 12:21:36 +00:00
Descriptions.txt
make-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
Makefile Unify MBEDTLS_TEST_OBJS 2024-01-02 23:11:24 +01:00
ssl-opt-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
ssl-opt.sh ssl-opt: add DH groups requirements in test cases using FFDH 2024-01-18 09:47:00 +01:00