[PATCH v2 2/2] crypt32: Add support for CMSG_ENCODED_MESSAGE.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Oct 5 01:00:08 CDT 2020
v2: Propagate return value of CRYPT_CopyParam().
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
dlls/crypt32/msg.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index 0e50cc13d6..cb99cf8a91 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -3190,6 +3190,12 @@ static BOOL CDecodeSignedMsg_GetParam(CDecodeMsg *msg, DWORD dwParamType,
else
SetLastError(CRYPT_E_INVALID_MSG_TYPE);
break;
+ case CMSG_ENCODED_MESSAGE:
+ if (msg->msg_data.pbData)
+ ret = CRYPT_CopyParam(pvData, pcbData, msg->msg_data.pbData, msg->msg_data.cbData);
+ else
+ SetLastError(CRYPT_E_INVALID_MSG_TYPE);
+ break;
case CMSG_ENCODED_SIGNER:
if (msg->u.signed_data.info)
{
--
2.26.2
More information about the wine-devel
mailing list