We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1bac1 commit 07e1381Copy full SHA for 07e1381
boot/bootutil/include/bootutil/caps.h
@@ -44,6 +44,7 @@ uint32_t bootutil_get_caps(void);
44
#define BOOTUTIL_CAP_ED25519 (1<<9)
45
#define BOOTUTIL_CAP_ENC_EC256 (1<<10)
46
#define BOOTUTIL_CAP_SWAP_USING_MOVE (1<<11)
47
+#define BOOTUTIL_CAP_DOWNGRADE_PREVENTION (1<<12)
48
49
/*
50
* Query the number of images this bootloader is configured for. This
boot/bootutil/src/caps.c
@@ -57,6 +57,9 @@ uint32_t bootutil_get_caps(void)
57
#if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT)
58
res |= BOOTUTIL_CAP_VALIDATE_PRIMARY_SLOT;
59
#endif
60
+#if defined(MCUBOOT_DOWNGRADE_PREVENTION)
61
+ res |= BOOTUTIL_CAP_DOWNGRADE_PREVENTION;
62
+#endif
63
64
return res;
65
}
0 commit comments