From 0340b323cdaa71ccab87fc35caea7f94a7b4c5ff Mon Sep 17 00:00:00 2001 From: Aaron Jense Date: Wed, 2 Oct 2019 09:41:06 -0600 Subject: [PATCH] Fix shadow redeclaration --- wolfcrypt/src/sha.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/sha.c b/wolfcrypt/src/sha.c index b2dee4323..1eee40bc3 100644 --- a/wolfcrypt/src/sha.c +++ b/wolfcrypt/src/sha.c @@ -496,7 +496,7 @@ int wc_ShaUpdate(wc_Sha* sha, const byte* data, word32 len) #ifdef WOLF_CRYPTO_CB if (sha->devId != INVALID_DEVID) { - int ret = wc_CryptoCb_ShaHash(sha, data, len, NULL); + ret = wc_CryptoCb_ShaHash(sha, data, len, NULL); if (ret != CRYPTOCB_UNAVAILABLE) return ret; /* fall-through when unavailable */ @@ -650,7 +650,7 @@ int wc_ShaFinal(wc_Sha* sha, byte* hash) #ifdef WOLF_CRYPTO_CB if (sha->devId != INVALID_DEVID) { - int ret = wc_CryptoCb_ShaHash(sha, NULL, 0, hash); + ret = wc_CryptoCb_ShaHash(sha, NULL, 0, hash); if (ret != CRYPTOCB_UNAVAILABLE) return ret; /* fall-through when unavailable */