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

Alexandre Julliard julliard at winehq.org
Wed Jan 23 17:11:33 CST 2019


Module: wine
Branch: master
Commit: 34a89805e3b3acd43f23944b48ef23aaaf1d57f4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=34a89805e3b3acd43f23944b48ef23aaaf1d57f4

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Jan 23 17:27:37 2019 +0800

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

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/crypt32/cert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c
index 2d4ce8c..b532936 100644
--- a/dlls/crypt32/cert.c
+++ b/dlls/crypt32/cert.c
@@ -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)




More information about the wine-cvs mailing list