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

crypt32: Look for the provider that supports the specified content OID in…

crypt32: Look for the provider that supports the specified content OID in CryptMsgOpenToEncode(CMSG_HASHED). Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fd6e9ccc
......@@ -567,7 +567,12 @@ static HCRYPTMSG CHashEncodeMsg_Open(DWORD dwFlags, const void *pvMsgEncodeInfo,
prov = info->hCryptProv;
else
{
prov = I_CryptGetDefaultCryptProv(0);
prov = I_CryptGetDefaultCryptProv(algID);
if (!prov)
{
SetLastError(E_INVALIDARG);
return NULL;
}
dwFlags &= ~CMSG_CRYPT_RELEASE_CONTEXT_FLAG;
}
msg = CryptMemAlloc(sizeof(CHashEncodeMsg));
......
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