Skip to content

Commit a3af430

Browse files
committed
Ensure that MBEDTLS_USE_PSA_CRYPTO is only defined when it should be
MBEDTLS_USE_PSA_CRYPTO should only be defined in Mbed OS when the appropriate Mbed OS flags are set.
1 parent 077f4c3 commit a3af430

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

features/mbedtls/importer/adjust-config.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ conf unset MBEDTLS_PLATFORM_TIME_TYPE_MACRO
123123
# which should fit RSA 4096 bit keys.
124124
conf set MBEDTLS_MPI_MAX_SIZE 512
125125

126+
# Explicitly unset MBEDTLS_USE_PSA_CRYPTO as this will be set based on the
127+
# FEATURE_PSA flag in Mbed OS
128+
conf unset MBEDTLS_USE_PSA_CRYPTO
129+
126130
# add an #ifndef to include config-no-entropy.h when the target does not have
127131
# an entropy source we can use.
128132
append_code \

0 commit comments

Comments
 (0)