Marko Friedemann : wintrust: Use enhanced crypto provider in VerifyImageHash.
Module: wine Branch: master Commit: b2e72dd09da88e2a4562eb668727c381ea91d91d URL: https://source.winehq.org/git/wine.git/?a=commit;h=b2e72dd09da88e2a4562eb668... Author: Marko Friedemann <marko(a)friedemann.email> Date: Thu Apr 18 15:10:46 2019 +0200 wintrust: Use enhanced crypto provider in VerifyImageHash. Softpub VerifyImageHash uses the default crypto provider and fails for certificates using SHA256 et al. with NTE_BAD_ALGID (80090008) Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47034 Signed-off-by: Vijay Kiran Kamuju <infyquest(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wintrust/softpub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wintrust/softpub.c b/dlls/wintrust/softpub.c index 1273a58..475f55a 100644 --- a/dlls/wintrust/softpub.c +++ b/dlls/wintrust/softpub.c @@ -328,7 +328,7 @@ static DWORD SOFTPUB_VerifyImageHash(CRYPT_PROVIDER_DATA *data, HANDLE file) if (!prov) { - if (!CryptAcquireContextW(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) + if (!CryptAcquireContextW(&prov, NULL, MS_ENH_RSA_AES_PROV_W, PROV_RSA_AES, CRYPT_VERIFYCONTEXT)) return GetLastError(); release_prov = TRUE; }
participants (1)
-
Alexandre Julliard