[PATCH 2/2] crypt32: Add support for CMSG_ENCODED_MESSAGE.

Dmitry Timoshkov dmitry at baikal.ru
Fri Oct 2 13:52:11 CDT 2020


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..a521e45846 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)
+            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