crypt32(11/11): Support getting the inner content OID from a
decoded signed message
Juan Lang
juan.lang at gmail.com
Mon Jul 30 14:20:36 CDT 2007
--Juan
-------------- next part --------------
From 3b1e44f21492f51ba9d54b07bb50fbffac77929d Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Mon, 30 Jul 2007 12:10:27 -0700
Subject: [PATCH] Support getting the inner content OID from a decoded signed message
---
dlls/crypt32/msg.c | 8 ++++++++
dlls/crypt32/tests/msg.c | 1 -
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index 54f0636..c0ddcae 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -1760,6 +1760,14 @@ static BOOL CDecodeSignedMsg_GetParam(CD
else
SetLastError(CRYPT_E_INVALID_MSG_TYPE);
break;
+ case CMSG_INNER_CONTENT_TYPE_PARAM:
+ if (msg->u.signedInfo)
+ ret = CRYPT_CopyParam(pvData, pcbData,
+ msg->u.signedInfo->content.pszObjId,
+ strlen(msg->u.signedInfo->content.pszObjId) + 1);
+ else
+ SetLastError(CRYPT_E_INVALID_MSG_TYPE);
+ break;
case CMSG_SIGNER_COUNT_PARAM:
if (msg->u.signedInfo)
ret = CRYPT_CopyParam(pvData, pcbData,
diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c
index 28b11e5..dba0752 100644
--- a/dlls/crypt32/tests/msg.c
+++ b/dlls/crypt32/tests/msg.c
@@ -1978,7 +1978,6 @@ static void test_decode_msg_get_param(vo
ok(ret, "CryptMsgUpdate failed: %08x\n", GetLastError());
check_param("signed content", msg, CMSG_CONTENT_PARAM, msgData,
sizeof(msgData));
- todo_wine
check_param("inner content", msg, CMSG_INNER_CONTENT_TYPE_PARAM,
(const BYTE *)szOID_RSA_data, strlen(szOID_RSA_data) + 1);
size = sizeof(value);
--
1.4.1
More information about the wine-patches
mailing list