Skip to content

Commit 6e590cd

Browse files
committed
Include mbedtls/config.h before evaluating MBEDTLS_PSA_CRYPTO_C
Signed-off-by: Devaraj Ranganna <[email protected]>
1 parent b55344c commit 6e590cd

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

TESTS/mbed-crypto/sanity/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
* limitations under the License.
1616
*/
1717

18+
#if !defined(MBEDTLS_CONFIG_FILE)
19+
#include "mbedtls/config.h"
20+
#else
21+
#include MBEDTLS_CONFIG_FILE
22+
#endif
23+
1824
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
1925
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
2026
#endif

TESTS/psa/attestation/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
* limitations under the License.
1717
*/
1818

19+
#if !defined(MBEDTLS_CONFIG_FILE)
20+
#include "mbedtls/config.h"
21+
#else
22+
#include MBEDTLS_CONFIG_FILE
23+
#endif
24+
1925
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
2026
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
2127
#endif // TARGET_PSA

TESTS/psa/crypto_access_control/COMPONENT_NSPE/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
* limitations under the License.
1616
*/
1717

18+
#if !defined(MBEDTLS_CONFIG_FILE)
19+
#include "mbedtls/config.h"
20+
#else
21+
#include MBEDTLS_CONFIG_FILE
22+
#endif
23+
1824
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)) || (!defined(COMPONENT_PSA_SRV_IPC)))
1925
#error [NOT_SUPPORTED] These tests can run only on SPM-enabled targets and where Mbed Crypto is ON - skipping.
2026
#endif

TESTS/psa/crypto_init/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
* limitations under the License.
1717
*/
1818

19+
#if !defined(MBEDTLS_CONFIG_FILE)
20+
#include "mbedtls/config.h"
21+
#else
22+
#include MBEDTLS_CONFIG_FILE
23+
#endif
24+
1925
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
2026
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
2127
#endif // TARGET_PSA

0 commit comments

Comments
 (0)