mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix shadow redeclaration
This commit is contained in:
@ -496,7 +496,7 @@ int wc_ShaUpdate(wc_Sha* sha, const byte* data, word32 len)
|
|||||||
|
|
||||||
#ifdef WOLF_CRYPTO_CB
|
#ifdef WOLF_CRYPTO_CB
|
||||||
if (sha->devId != INVALID_DEVID) {
|
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)
|
if (ret != CRYPTOCB_UNAVAILABLE)
|
||||||
return ret;
|
return ret;
|
||||||
/* fall-through when unavailable */
|
/* fall-through when unavailable */
|
||||||
@ -650,7 +650,7 @@ int wc_ShaFinal(wc_Sha* sha, byte* hash)
|
|||||||
|
|
||||||
#ifdef WOLF_CRYPTO_CB
|
#ifdef WOLF_CRYPTO_CB
|
||||||
if (sha->devId != INVALID_DEVID) {
|
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)
|
if (ret != CRYPTOCB_UNAVAILABLE)
|
||||||
return ret;
|
return ret;
|
||||||
/* fall-through when unavailable */
|
/* fall-through when unavailable */
|
||||||
|
Reference in New Issue
Block a user