mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 05:32:20 +01:00
fix: escape error code operands
This commit is contained in:
@@ -1753,7 +1753,7 @@ int wc_CryptoCb_Sha512Hash(wc_Sha512* sha512, const byte* in,
|
||||
cryptoInfo.hash.type = WC_HASH_TYPE_SHA512_224;
|
||||
ret = dev->cb(dev->devId, &cryptoInfo, dev->ctx);
|
||||
ret = wc_CryptoCb_TranslateErrorCode(ret);
|
||||
if (ret != CRYPTOCB_UNAVAILABLE)
|
||||
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE))
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
@@ -1762,7 +1762,7 @@ int wc_CryptoCb_Sha512Hash(wc_Sha512* sha512, const byte* in,
|
||||
cryptoInfo.hash.type = WC_HASH_TYPE_SHA512_256;
|
||||
ret = dev->cb(dev->devId, &cryptoInfo, dev->ctx);
|
||||
ret = wc_CryptoCb_TranslateErrorCode(ret);
|
||||
if (ret != CRYPTOCB_UNAVAILABLE)
|
||||
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE))
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user