crypt32: Add a get param function, use it to implement CryptMsgGetParam.
This commit is contained in:
parent
fa0f5bd066
commit
d5e784bdaf
|
@ -29,11 +29,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
|
||||||
*/
|
*/
|
||||||
typedef void (*CryptMsgCloseFunc)(HCRYPTMSG msg);
|
typedef void (*CryptMsgCloseFunc)(HCRYPTMSG msg);
|
||||||
|
|
||||||
|
typedef BOOL (*CryptMsgGetParamFunc)(HCRYPTMSG hCryptMsg, DWORD dwParamType,
|
||||||
|
DWORD dwIndex, void *pvData, DWORD *pcbData);
|
||||||
|
|
||||||
typedef struct _CryptMsgBase
|
typedef struct _CryptMsgBase
|
||||||
{
|
{
|
||||||
LONG ref;
|
LONG ref;
|
||||||
DWORD open_flags;
|
DWORD open_flags;
|
||||||
CryptMsgCloseFunc close;
|
CryptMsgCloseFunc close;
|
||||||
|
CryptMsgGetParamFunc get_param;
|
||||||
} CryptMsgBase;
|
} CryptMsgBase;
|
||||||
|
|
||||||
static inline void CryptMsgBase_Init(CryptMsgBase *msg, DWORD dwFlags)
|
static inline void CryptMsgBase_Init(CryptMsgBase *msg, DWORD dwFlags)
|
||||||
|
@ -174,7 +178,12 @@ BOOL WINAPI CryptMsgUpdate(HCRYPTMSG hCryptMsg, const BYTE *pbData,
|
||||||
BOOL WINAPI CryptMsgGetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
|
BOOL WINAPI CryptMsgGetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
|
||||||
DWORD dwIndex, void *pvData, DWORD *pcbData)
|
DWORD dwIndex, void *pvData, DWORD *pcbData)
|
||||||
{
|
{
|
||||||
FIXME("(%p, %d, %d, %p, %p): stub\n", hCryptMsg, dwParamType, dwIndex,
|
CryptMsgBase *msg = (CryptMsgBase *)hCryptMsg;
|
||||||
|
BOOL ret = FALSE;
|
||||||
|
|
||||||
|
TRACE("(%p, %d, %d, %p, %p)\n", hCryptMsg, dwParamType, dwIndex,
|
||||||
pvData, pcbData);
|
pvData, pcbData);
|
||||||
return FALSE;
|
if (msg && msg->get_param)
|
||||||
|
ret = msg->get_param(hCryptMsg, dwParamType, dwIndex, pvData, pcbData);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue