Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d6150a79
Commit
d6150a79
authored
Jul 30, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Jul 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement getting inner content of a decoded signed message.
parent
2acb8a2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
msg.c
dlls/crypt32/msg.c
+21
-0
msg.c
dlls/crypt32/tests/msg.c
+0
-1
No files found.
dlls/crypt32/msg.c
View file @
d6150a79
...
...
@@ -1570,6 +1570,27 @@ static BOOL CDecodeSignedMsg_GetParam(CDecodeMsg *msg, DWORD dwParamType,
case
CMSG_TYPE_PARAM
:
ret
=
CRYPT_CopyParam
(
pvData
,
pcbData
,
&
msg
->
type
,
sizeof
(
msg
->
type
));
break
;
case
CMSG_CONTENT_PARAM
:
if
(
msg
->
u
.
signedInfo
)
{
CRYPT_DATA_BLOB
*
blob
;
DWORD
size
;
/* FIXME: does this depend on inner content type? */
ret
=
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
X509_OCTET_STRING
,
msg
->
u
.
signedInfo
->
content
.
Content
.
pbData
,
msg
->
u
.
signedInfo
->
content
.
Content
.
cbData
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
LPBYTE
)
&
blob
,
&
size
);
if
(
ret
)
{
ret
=
CRYPT_CopyParam
(
pvData
,
pcbData
,
blob
->
pbData
,
blob
->
cbData
);
LocalFree
(
blob
);
}
}
else
SetLastError
(
CRYPT_E_INVALID_MSG_TYPE
);
break
;
case
CMSG_SIGNER_COUNT_PARAM
:
if
(
msg
->
u
.
signedInfo
)
ret
=
CRYPT_CopyParam
(
pvData
,
pcbData
,
...
...
dlls/crypt32/tests/msg.c
View file @
d6150a79
...
...
@@ -1976,7 +1976,6 @@ static void test_decode_msg_get_param(void)
msg
=
CryptMsgOpenToDecode
(
PKCS_7_ASN_ENCODING
,
0
,
0
,
0
,
NULL
,
NULL
);
ret
=
CryptMsgUpdate
(
msg
,
signedContent
,
sizeof
(
signedContent
),
TRUE
);
ok
(
ret
,
"CryptMsgUpdate failed: %08x
\n
"
,
GetLastError
());
todo_wine
check_param
(
"signed content"
,
msg
,
CMSG_CONTENT_PARAM
,
msgData
,
sizeof
(
msgData
));
todo_wine
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment