Commit a7144d91 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

crypt32: Fix build with MSVC.

parent af3d368a
...@@ -1809,7 +1809,12 @@ static BOOL CEnvelopedEncodeMsg_GetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType, ...@@ -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,
......
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