Skip to content

Commit ebb28b3

Browse files
author
Krzysztof Stachowiak
committed
Move the new check into the end of the previous line
1 parent 717573f commit ebb28b3

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

features/mbedtls/importer/adjust-config.sh

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +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-
" !defined(MBEDTLS_ENTROPY_NV_SEED)\n" \
71-
"#error \"No entropy source was found at build time, so TLS \" \\\\\n" \
72-
" \"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" \
7372
"#endif\n"
7473

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

0 commit comments

Comments
 (0)