Commit 4e0f33da authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Support getting the inner content OID from a decoded signed message.

parent 01446703
......@@ -1760,6 +1760,14 @@ static BOOL CDecodeSignedMsg_GetParam(CDecodeMsg *msg, DWORD dwParamType,
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,
......
......@@ -1978,7 +1978,6 @@ static void test_decode_msg_get_param(void)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment