Skip to content

Commit d4394c2

Browse files
tomi-fontnvlsianpu
authored andcommitted
mbedtls config: fix too early check_config.h includes
check_config.h was included manually by custom configuration files. This caused compilation errors when updating MbedTLS to 3.6.0 because check_config.h was processed too early, before the whole configuration is defined, effectively causing configuration check errors. MbedTLS already takes care of including check_config.h at the right time. Remove those erroneous manual check_config.h includes. Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 78bfe75 commit d4394c2

File tree

15 files changed

+0
-29
lines changed

15 files changed

+0
-29
lines changed

boot/bootutil/src/fault_injection_hardening_delay_rng_mbedtls.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#ifdef FIH_ENABLE_DELAY
1010

11-
#include "mcuboot-mbedtls-cfg.h"
1211
#include "mbedtls/ctr_drbg.h"
1312
#include "mbedtls/entropy.h"
1413

boot/cypress/MCUBootApp/config/mcuboot_crypto_config.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,8 +3596,6 @@
35963596
#include MBEDTLS_USER_CONFIG_FILE
35973597
#endif
35983598

3599-
#include "mbedtls/check_config.h"
3600-
36013599
#ifdef MCUBOOT_ENC_IMAGES
36023600
#define MBEDTLS_SHA256_DIGEST_SIZE (32)
36033601
#define MBEDTLS_AES_KEY_SIZE 16

boot/zephyr/include/config-asn1.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,4 @@
4141
// #define MBEDTLS_OID_C
4242
// #define MBEDTLS_SHA256_C
4343

44-
#include "mbedtls/check_config.h"
45-
4644
#endif /* MBEDTLS_CONFIG_ASN1_H */

boot/zephyr/include/config-ec.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,4 @@
9191
#define MBEDTLS_NIST_KW_C
9292
#endif /* MCUBOOT_ENC_IMAGES */
9393

94-
#include "mbedtls/check_config.h"
95-
9694
#endif /* MCUBOOT_MBEDTLS_CONFIG_ECDSA */

boot/zephyr/include/config-ed25519.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,4 @@
7373
/* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */
7474
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
7575

76-
#include "mbedtls/check_config.h"
77-
7876
#endif /* MCUBOOT_MBEDTLS_CONFIG_RSA */

boot/zephyr/include/config-kw.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,4 @@
6363
#define MBEDTLS_CIPHER_C
6464
#define MBEDTLS_NIST_KW_C
6565

66-
#include "mbedtls/check_config.h"
67-
6866
#endif /* MCUBOOT_MBEDTLS_CONFIG_KW */

boot/zephyr/include/config-rsa-kw.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,4 @@
7777
/* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */
7878
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
7979

80-
#include "mbedtls/check_config.h"
81-
8280
#endif /* MCUBOOT_MBEDTLS_CONFIG_RSA_KW */

boot/zephyr/include/config-rsa.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,4 @@
8080
/* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */
8181
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
8282

83-
#include "mbedtls/check_config.h"
84-
8583
#endif /* MCUBOOT_MBEDTLS_CONFIG_RSA */

sim/mcuboot-sys/csupport/config-asn1.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,4 @@
4141
// #define MBEDTLS_OID_C
4242
// #define MBEDTLS_SHA256_C
4343

44-
#include "mbedtls/check_config.h"
45-
4644
#endif /* MBEDTLS_CONFIG_ASN1_H */

sim/mcuboot-sys/csupport/config-ec-psa.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,4 @@
3232
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
3333
#endif /* MCUBOOT_SIGN_EC384 */
3434

35-
#include "mbedtls/check_config.h"
36-
3735
#endif /* MCUBOOT_PSA_CRYPTO_CONFIG_ECDSA */

0 commit comments

Comments
 (0)