Skip to content

Commit 495ae06

Browse files
authored
Merge pull request #6509 from k-stachowiak/nvseed-check
Add an NV_SEED test to the config adjustment script
2 parents 5e62d17 + ebb28b3 commit 495ae06

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

features/mbedtls/importer/adjust-config.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ add_code
5555
"\n" \
5656
"#else\n"
5757

58-
add_code \
59-
"#include \"check_config.h\"\n" \
60-
"\n" \
61-
"#endif \/* !MBEDTLS_ENTROPY_HARDWARE_ALT && !MBEDTLS_TEST_NULL_ENTROPY *\/\n" \
62-
"\n" \
63-
"#if defined(MBEDTLS_TEST_NULL_ENTROPY)\n" \
64-
"#warning \"MBEDTLS_TEST_NULL_ENTROPY has been enabled. This \" \\\\\n" \
65-
" \"configuration is not secure and is not suitable for production use\"\n" \
66-
"#endif\n" \
67-
"\n" \
68-
"#if defined(MBEDTLS_SSL_TLS_C) && !defined(MBEDTLS_TEST_NULL_ENTROPY) && \\\\\n" \
69-
" !defined(MBEDTLS_ENTROPY_HARDWARE_ALT)\n" \
70-
"#error \"No entropy source was found at build time, so TLS \" \\\\\n" \
71-
" \"functionality is not available\"\n" \
58+
add_code \
59+
"#include \"check_config.h\"\n" \
60+
"\n" \
61+
"#endif \/* !MBEDTLS_ENTROPY_HARDWARE_ALT && !MBEDTLS_TEST_NULL_ENTROPY *\/\n" \
62+
"\n" \
63+
"#if defined(MBEDTLS_TEST_NULL_ENTROPY)\n" \
64+
"#warning \"MBEDTLS_TEST_NULL_ENTROPY has been enabled. This \" \\\\\n" \
65+
" \"configuration is not secure and is not suitable for production use\"\n" \
66+
"#endif\n" \
67+
"\n" \
68+
"#if defined(MBEDTLS_SSL_TLS_C) && !defined(MBEDTLS_TEST_NULL_ENTROPY) && \\\\\n" \
69+
" !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && !defined(MBEDTLS_ENTROPY_NV_SEED)\n" \
70+
"#error \"No entropy source was found at build time, so TLS \" \\\\\n" \
71+
" \"functionality is not available\"\n" \
7272
"#endif\n"
7373

7474
# not supported on mbed OS, nor used by mbed Client

0 commit comments

Comments
 (0)