[PATCH v2 3/3] crypt32: Add support for CMSG_ENCODED_MESSAGE for a being decoded signed message.

Dmitry Timoshkov dmitry at baikal.ru
Thu Nov 12 02:15:08 CST 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 ba3690b264..fac9561bbb 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -3151,6 +3151,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.29.2




More information about the wine-devel mailing list