Skip to content

Commit

Permalink
config_psa: do not update legacy symbols in client-only PSA build
Browse files Browse the repository at this point in the history
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
  • Loading branch information
valeriosetti committed May 15, 2024
1 parent f5761ff commit f235d16
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/mbedtls/config_psa.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@
* before we deduce what built-ins are required. */
#include "psa/crypto_adjust_config_key_pair_types.h"

#if defined(MBEDTLS_PSA_CRYPTO_CLIENT) && !defined(MBEDTLS_PSA_CRYPTO_C) && \
defined(MBEDTLS_USE_PSA_CRYPTO)
/* Legacy symbols do not need to be updated in client-only PSA build
* (i.e. MBEDTLS_PSA_CRYPTO_CLIENT && !MBEDTLS_PSA_CRYPTO_C) if TLS/X509/PK rely
* on PSA APIs (i.e. MBEDTLS_USE_PSA_CRYPTO). */
#else
#include "mbedtls/config_adjust_legacy_from_psa.h"
#endif

#else /* MBEDTLS_PSA_CRYPTO_CONFIG */

Expand Down

0 comments on commit f235d16

Please sign in to comment.