Skip to content

Commit c18af74

Browse files
committed
Changed the order of the options so that app-config-file has the last say of what's defined
1 parent 60545ee commit c18af74

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

features/mbedtls/inc/mbedtls/mbedtls_config_reader.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@
2222
// This first section is checking the values from mbed_app.json and
2323
// mbedtls/mbed_lib.json and setting the appropriate defines for them
2424

25-
#ifdef MBED_CONF_MBEDTLS_APP_CONFIG_FILE
26-
27-
#include <limits.h>
28-
#include MBED_CONF_MBEDTLS_APP_CONFIG_FILE
29-
30-
#endif // else MBED_CONF_MBEDTLS_APP_CONFIG_FILE
31-
3225
#if MBED_CONF_MBEDTLS_PELION_CLIENT
3326
#undef MBED_CONF_MBEDTLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
3427
#define MBED_CONF_MBEDTLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 1
@@ -452,7 +445,15 @@
452445
#define MBEDTLS_SSL_COOKIE_C
453446
#define MBEDTLS_SSL_CLI_C
454447

455-
>>>>>>> b4b9199... A small amount of cleanup
448+
// finally, let any file referred to with mbedtls.app-config-file override
449+
// any of the other selections
450+
#ifdef MBED_CONF_MBEDTLS_APP_CONFIG_FILE
451+
452+
#include <limits.h>
453+
#include MBED_CONF_MBEDTLS_APP_CONFIG_FILE
454+
455+
#endif // else MBED_CONF_MBEDTLS_APP_CONFIG_FILE
456+
456457
#include "check_config.h"
457458

458459
#endif // __MBEDTLS_CONFIG_READER_H__

0 commit comments

Comments
 (0)