crypt32: Fix build with MSVC.

This commit is contained in:
Thomas Faber 2012-01-23 18:37:35 +01:00 committed by Alexandre Julliard
parent af3d368aca
commit a7144d916d
1 changed files with 6 additions and 1 deletions

View File

@ -1809,7 +1809,12 @@ static BOOL CEnvelopedEncodeMsg_GetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
char oid_rsa_data[] = szOID_RSA_data; char oid_rsa_data[] = szOID_RSA_data;
CRYPT_ENVELOPED_DATA envelopedData = { CRYPT_ENVELOPED_DATA envelopedData = {
CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, msg->cRecipientInfo, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, msg->cRecipientInfo,
msg->recipientInfo, { oid_rsa_data, msg->algo, msg->data } msg->recipientInfo, { oid_rsa_data, {
msg->algo.pszObjId,
{ msg->algo.Parameters.cbData, msg->algo.Parameters.pbData }
},
{ msg->data.cbData, msg->data.pbData }
}
}; };
ret = CRYPT_AsnEncodePKCSEnvelopedData(&envelopedData, pvData, ret = CRYPT_AsnEncodePKCSEnvelopedData(&envelopedData, pvData,