Loading boot/bootutil/include/bootutil/caps.h +1 −0 Changes for boot/bootutil/include/bootutil/caps.h: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ uint32_t bootutil_get_caps(void); #define BOOTUTIL_CAP_ED25519 (1<<9) #define BOOTUTIL_CAP_ENC_EC256 (1<<10) #define BOOTUTIL_CAP_SWAP_USING_MOVE (1<<11) #define BOOTUTIL_CAP_DOWNGRADE_PREVENTION (1<<12) /* * Query the number of images this bootloader is configured for. This Loading boot/bootutil/src/caps.c +3 −0 Changes for boot/bootutil/src/caps.c: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -57,6 +57,9 @@ uint32_t bootutil_get_caps(void) #if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT) res |= BOOTUTIL_CAP_VALIDATE_PRIMARY_SLOT; #endif #if defined(MCUBOOT_DOWNGRADE_PREVENTION) res |= BOOTUTIL_CAP_DOWNGRADE_PREVENTION; #endif return res; } Loading Loading
boot/bootutil/include/bootutil/caps.h +1 −0 Changes for boot/bootutil/include/bootutil/caps.h: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ uint32_t bootutil_get_caps(void); #define BOOTUTIL_CAP_ED25519 (1<<9) #define BOOTUTIL_CAP_ENC_EC256 (1<<10) #define BOOTUTIL_CAP_SWAP_USING_MOVE (1<<11) #define BOOTUTIL_CAP_DOWNGRADE_PREVENTION (1<<12) /* * Query the number of images this bootloader is configured for. This Loading
boot/bootutil/src/caps.c +3 −0 Changes for boot/bootutil/src/caps.c: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -57,6 +57,9 @@ uint32_t bootutil_get_caps(void) #if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT) res |= BOOTUTIL_CAP_VALIDATE_PRIMARY_SLOT; #endif #if defined(MCUBOOT_DOWNGRADE_PREVENTION) res |= BOOTUTIL_CAP_DOWNGRADE_PREVENTION; #endif return res; } Loading