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

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Dmitry Timoshkov 2019-01-23 17:27:37 +08:00 committed by Alexandre Julliard
parent 8bace09cb8
commit 34a89805e3
1 changed files with 1 additions and 1 deletions

View File

@ -2449,7 +2449,7 @@ static BOOL CRYPT_VerifySignature(HCRYPTPROV_LEGACY hCryptProv, DWORD dwCertEnco
pubKeyID = hashID;
/* Load the default provider if necessary */
if (!hCryptProv)
hCryptProv = I_CryptGetDefaultCryptProv(0);
hCryptProv = I_CryptGetDefaultCryptProv(hashID);
ret = CryptImportPublicKeyInfoEx(hCryptProv, dwCertEncodingType,
pubKeyInfo, pubKeyID, 0, NULL, &key);
if (ret)