Skip to content

Commit 5a76bf3

Browse files
committed
update unit tests to use new APIs
1 parent 0783d2a commit 5a76bf3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tools/unit-tests/unit-image.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ uint16_t wolfBoot_find_header(uint8_t *haystack, uint16_t type, uint8_t **ptr)
361361
}
362362

363363
#if defined(WOLFBOOT_SIGN_ECC256)
364-
int wc_ecc_init(ecc_key* key) {
364+
int wc_ecc_init_ex(ecc_key* key, void* heap, int devId) {
365+
(void)heap;
366+
(void)devId;
365367
if (ecc_init_fail)
366368
return -1;
367369
return 0;
@@ -460,10 +462,11 @@ END_TEST
460462
defined(WOLFBOOT_SIGN_RSA4096) || defined(WOLFBOOT_SIGN_SECONDARY_RSA2048) || \
461463
defined(WOLFBOOT_SIGN_SECONDARY_RSA3072) || \
462464
defined(WOLFBOOT_SIGN_SECONDARY_RSA4096)
463-
int wc_InitRsaKey(RsaKey* key, void* heap)
465+
int wc_InitRsaKey_ex(RsaKey* key, void* heap, int devId)
464466
{
465467
(void)key;
466468
(void)heap;
469+
(void)devId;
467470
return 0;
468471
}
469472

0 commit comments

Comments
 (0)