Skip to content

Commit 521fc0b

Browse files
committed
bootutil: Conditionally include mbedtls/ oid.h, asn1.h
When MCUboot is built with the PSA Crypto backend these Mbed TLS headers are not required. Include them conditionally to avoid unnecessary build errors. Change-Id: Ia1b34c59608d763eb1f37d21ed831253085b4fd8 Signed-off-by: David Vincze <[email protected]>
1 parent 29ea7bd commit 521fc0b

File tree

1 file changed

+2
-2
lines changed
  • boot/bootutil/include/bootutil/crypto

1 file changed

+2
-2
lines changed

boot/bootutil/include/bootutil/crypto/ecdsa.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
/* Universal defines */
6666
#define BOOTUTIL_CRYPTO_ECDSA_P256_HASH_SIZE (32)
6767

68-
#include "mbedtls/oid.h"
69-
#include "mbedtls/asn1.h"
7068
#include "bootutil/sign_key.h"
7169
#if !defined(MCUBOOT_USE_PSA_CRYPTO)
7270
#include "bootutil/crypto/common.h"
71+
#include "mbedtls/asn1.h"
72+
#include "mbedtls/oid.h"
7373
#endif
7474

7575
#ifdef __cplusplus

0 commit comments

Comments
 (0)