Skip to content

Commit 6697e50

Browse files
committed
reduce scope of variable to prevent unused argument warning
1 parent 99805c6 commit 6697e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ static void wolfBoot_verify_signature_rsa(uint8_t key_slot,
417417
int ret;
418418
uint8_t output[RSA_IMAGE_SIGNATURE_SIZE];
419419
uint8_t* digest_out = NULL;
420-
word32 inOutIdx = 0;
421420
struct RsaKey rsa;
422421

423422
#if (!defined(WOLFBOOT_ENABLE_WOLFHSM_CLIENT) && \
@@ -519,6 +518,7 @@ static void wolfBoot_verify_signature_rsa(uint8_t key_slot,
519518
/* wolfCrypt software RSA verify */
520519
ret = wc_InitRsaKey(&rsa, NULL);
521520
if (ret == 0) {
521+
word32 inOutIdx = 0;
522522
/* Import public key */
523523
ret = wc_RsaPublicKeyDecode((byte*)pubkey, &inOutIdx, &rsa, pubkey_sz);
524524
if (ret >= 0) {

0 commit comments

Comments
 (0)