Commit ca683382 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

crypt32: Make sure that the provider supports the specified hash algorithm.

parent 34a89805
...@@ -2195,7 +2195,7 @@ BOOL WINAPI CryptHashCertificate(HCRYPTPROV_LEGACY hCryptProv, ALG_ID Algid, ...@@ -2195,7 +2195,7 @@ BOOL WINAPI CryptHashCertificate(HCRYPTPROV_LEGACY hCryptProv, ALG_ID Algid,
pbEncoded, cbEncoded, pbComputedHash, pcbComputedHash); pbEncoded, cbEncoded, pbComputedHash, pcbComputedHash);
if (!hCryptProv) if (!hCryptProv)
hCryptProv = I_CryptGetDefaultCryptProv(0); hCryptProv = I_CryptGetDefaultCryptProv(Algid);
if (!Algid) if (!Algid)
Algid = CALG_SHA1; Algid = CALG_SHA1;
if (ret) if (ret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment