crypt32: Store crypt provider in decode message.

This commit is contained in:
Juan Lang 2007-07-13 10:58:10 -07:00 committed by Alexandre Julliard
parent 8dcd9e4279
commit 6a07ca4442
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}