crypt32: Add support for CMSG_SIGNER_AUTH_ATTR_PARAM for a being decoded signed message.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1b87f222ed
commit
4c9c6ca417
|
@ -3194,6 +3194,18 @@ static BOOL CDecodeSignedMsg_GetParam(CDecodeMsg *msg, DWORD dwParamType,
|
||||||
else
|
else
|
||||||
SetLastError(CRYPT_E_INVALID_MSG_TYPE);
|
SetLastError(CRYPT_E_INVALID_MSG_TYPE);
|
||||||
break;
|
break;
|
||||||
|
case CMSG_SIGNER_AUTH_ATTR_PARAM:
|
||||||
|
if (msg->u.signed_data.info)
|
||||||
|
{
|
||||||
|
if (dwIndex >= msg->u.signed_data.info->cSignerInfo)
|
||||||
|
SetLastError(CRYPT_E_INVALID_INDEX);
|
||||||
|
else
|
||||||
|
ret = CRYPT_CopyAttr(pvData, pcbData,
|
||||||
|
&msg->u.signed_data.info->rgSignerInfo[dwIndex].AuthAttrs);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
SetLastError(CRYPT_E_INVALID_MSG_TYPE);
|
||||||
|
break;
|
||||||
case CMSG_SIGNER_UNAUTH_ATTR_PARAM:
|
case CMSG_SIGNER_UNAUTH_ATTR_PARAM:
|
||||||
if (msg->u.signed_data.info)
|
if (msg->u.signed_data.info)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue