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@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
194e22f9ff
commit
b2e72dd09d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue