mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
Only guard with CRYPTO_CLIENT when version >= 4
In 4.x the semantics of MBEDTLS_PSA_CRYPTO_C and MBEDTLS_PSA_CRYPTO_CLIENT are different compared with 3.6. Where this is a problem, make guards more version-specific so that we are guarding with MBEDTLS_PSA_CRYPTO_C for 3.6 and MBEDTLS_PSA_CRYPTO_CLIENT for 4.x, keeping each branch the same as it was formerly. Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
|
||||
#if ((MBEDTLS_VERSION_MAJOR < 4) \
|
||||
&& defined(MBEDTLS_PSA_CRYPTO_C)) \
|
||||
|| defined(MBEDTLS_PSA_CRYPTO_CLIENT)
|
||||
|| (MBEDTLS_VERSION_MAJOR >= 4 \
|
||||
&& defined(MBEDTLS_PSA_CRYPTO_CLIENT))
|
||||
|
||||
#include <mbedtls/asn1.h>
|
||||
#include <psa/crypto.h>
|
||||
|
||||
Reference in New Issue
Block a user