aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValerio Setti <valerio.setti@nordicsemi.no>2024-05-15 07:39:47 +0200
committerValerio Setti <valerio.setti@nordicsemi.no>2024-06-14 16:44:12 +0200
commit0c0e418d63699d365830d71b1041a6029ea72475 (patch)
treeba94c97c92334954d789900018246971fa2d27e0
parentf5761ff26c4291d24fedd0fa34960f1f7311fc68 (diff)
downloadmbedtls-0c0e418d63699d365830d71b1041a6029ea72475.zip
mbedtls-0c0e418d63699d365830d71b1041a6029ea72475.tar.gz
mbedtls-0c0e418d63699d365830d71b1041a6029ea72475.tar.bz2
config_psa: do not update legacy symbols in client-only PSA build
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
-rw-r--r--include/mbedtls/config_psa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbedtls/config_psa.h b/include/mbedtls/config_psa.h
index 17da61b..8bcca40 100644
--- a/include/mbedtls/config_psa.h
+++ b/include/mbedtls/config_psa.h
@@ -32,7 +32,11 @@
* before we deduce what built-ins are required. */
#include "psa/crypto_adjust_config_key_pair_types.h"
+#if defined(MBEDTLS_PSA_CRYPTO_C)
+/* If we are implementing PSA crypto ourselves, then we want to enable the
+ * required built-ins. Otherwise, PSA features will be provided by the server. */
#include "mbedtls/config_adjust_legacy_from_psa.h"
+#endif
#else /* MBEDTLS_PSA_CRYPTO_CONFIG */