rsaenh: Output FIXME when HMAC hash algorithm is not found.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
06e125ab3a
commit
56d9ed83c1
|
@ -690,7 +690,13 @@ static inline BOOL init_hash(CRYPTHASH *pCryptHash) {
|
||||||
const PROV_ENUMALGS_EX *pAlgInfo;
|
const PROV_ENUMALGS_EX *pAlgInfo;
|
||||||
|
|
||||||
pAlgInfo = get_algid_info(pCryptHash->hProv, pCryptHash->pHMACInfo->HashAlgid);
|
pAlgInfo = get_algid_info(pCryptHash->hProv, pCryptHash->pHMACInfo->HashAlgid);
|
||||||
if (!pAlgInfo) return FALSE;
|
if (!pAlgInfo)
|
||||||
|
{
|
||||||
|
/* A number of hash algorithms (e. g., _SHA256) are supported for HMAC even for providers
|
||||||
|
* which don't list the algorithm, so print a fixme here. */
|
||||||
|
FIXME("Hash algroithm %#x not found.\n", pCryptHash->pHMACInfo->HashAlgid);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
pCryptHash->dwHashSize = pAlgInfo->dwDefaultLen >> 3;
|
pCryptHash->dwHashSize = pAlgInfo->dwDefaultLen >> 3;
|
||||||
init_hash_impl(pCryptHash->pHMACInfo->HashAlgid, &pCryptHash->hash_handle);
|
init_hash_impl(pCryptHash->pHMACInfo->HashAlgid, &pCryptHash->hash_handle);
|
||||||
update_hash_impl(pCryptHash->hash_handle,
|
update_hash_impl(pCryptHash->hash_handle,
|
||||||
|
|
Loading…
Reference in New Issue