crypt32: Fix build with MSVC.
This commit is contained in:
parent
af3d368aca
commit
a7144d916d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue