mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-20 21:39:54 +00:00
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>