crypt32: Store crypt provider in decode message.
This commit is contained in:
parent
8dcd9e4279
commit
6a07ca4442
|
@ -666,6 +666,13 @@ HCRYPTMSG WINAPI CryptMsgOpenToDecode(DWORD dwMsgEncodingType, DWORD dwFlags,
|
|||
CryptMsgBase_Init((CryptMsgBase *)msg, dwFlags, pStreamInfo,
|
||||
CDecodeMsg_Close, CDecodeMsg_GetParam, CDecodeMsg_Update);
|
||||
msg->type = dwMsgType;
|
||||
if (hCryptProv)
|
||||
msg->crypt_prov = hCryptProv;
|
||||
else
|
||||
{
|
||||
msg->crypt_prov = CRYPT_GetDefaultProvider();
|
||||
msg->base.open_flags &= ~CMSG_CRYPT_RELEASE_CONTEXT_FLAG;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue