File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1515#include "bootutil/bootutil_public.h"
1616#include "bootutil/fault_injection_hardening.h"
1717#include <bm_installs.h>
18+ #include "bootutil/key_revocation.h"
1819
1920#include "io/io.h"
2021#include "mcuboot_config/mcuboot_config.h"
@@ -249,6 +250,15 @@ boot_go(struct boot_rsp *rsp)
249250 }
250251#endif
251252
253+ #if defined(CONFIG_BOOT_KEYS_REVOCATION )
254+ if (softdevice_image_valid == true && firmware_loader_image_valid == true) {
255+ allow_revoke ();
256+ if (revoke () != BOOT_KEY_REVOKE_OK ) {
257+ return -1 ;
258+ }
259+ }
260+ #endif /*CONFIG_BOOT_KEYS_REVOCATION*/
261+
252262 if (app_installer_image_valid == true && app_installer_is_installer_image == true) {
253263 /* Installer image is present, this gets priority */
254264 BOOT_LOG_DBG ("Booting installer" );
You can’t perform that action at this time.
0 commit comments