Commit 203849d7 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Store stream info in message.

parent 5db6b1cc
......@@ -39,15 +39,18 @@ typedef struct _CryptMsgBase
{
LONG ref;
DWORD open_flags;
PCMSG_STREAM_INFO stream_info;
CryptMsgCloseFunc close;
CryptMsgUpdateFunc update;
CryptMsgGetParamFunc get_param;
} CryptMsgBase;
static inline void CryptMsgBase_Init(CryptMsgBase *msg, DWORD dwFlags)
static inline void CryptMsgBase_Init(CryptMsgBase *msg, DWORD dwFlags,
PCMSG_STREAM_INFO pStreamInfo)
{
msg->ref = 1;
msg->open_flags = dwFlags;
msg->stream_info = pStreamInfo;
}
typedef struct _CDataEncodeMsg
......@@ -69,7 +72,7 @@ static HCRYPTMSG CDataEncodeMsg_Open(DWORD dwFlags, const void *pvMsgEncodeInfo,
msg = CryptMemAlloc(sizeof(CDataEncodeMsg));
if (msg)
{
CryptMsgBase_Init((CryptMsgBase *)msg, dwFlags);
CryptMsgBase_Init((CryptMsgBase *)msg, dwFlags, pStreamInfo);
}
return (HCRYPTMSG)msg;
}
......
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