Skip to content

Commit d573efa

Browse files
committed
Initialize wolfPKCS11 also in "_hwswap" mode
1 parent df4dd3d commit d573efa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/update_flash_hwswap.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
#include "hal.h"
2828
#include "spi_flash.h"
2929
#include "wolfboot/wolfboot.h"
30+
#ifdef SECURE_PKCS11
31+
int WP11_Library_Init(void);
32+
#endif
3033

3134
extern void hal_flash_dualbank_swap(void);
3235

@@ -92,6 +95,9 @@ void RAMFUNCTION wolfBoot_start(void)
9295
hal_flash_lock();
9396
}
9497
}
98+
#ifdef SECURE_PKCS11
99+
WP11_Library_Init();
100+
#endif
95101
hal_prepare_boot();
96102
do_boot((void *)(WOLFBOOT_PARTITION_BOOT_ADDRESS + IMAGE_HEADER_SIZE));
97103
}

0 commit comments

Comments
 (0)