Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4f30f90c
Commit
4f30f90c
authored
Jul 23, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Jul 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement getting version from an encoded signed message.
parent
8c81a386
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
msg.c
dlls/crypt32/msg.c
+4
-0
msg.c
dlls/crypt32/tests/msg.c
+0
-3
No files found.
dlls/crypt32/msg.c
View file @
4f30f90c
...
...
@@ -865,6 +865,10 @@ static BOOL CSignedEncodeMsg_GetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
ret
=
CryptGetHashParam
(
msg
->
signerHandles
[
dwIndex
].
hash
,
HP_HASHVAL
,
pvData
,
pcbData
,
0
);
break
;
case
CMSG_VERSION_PARAM
:
ret
=
CRYPT_CopyParam
(
pvData
,
pcbData
,
(
const
BYTE
*
)
&
msg
->
info
.
version
,
sizeof
(
msg
->
info
.
version
));
break
;
default:
FIXME
(
"unimplemented for %d
\n
"
,
dwParamType
);
SetLastError
(
CRYPT_E_INVALID_MSG_TYPE
);
...
...
dlls/crypt32/tests/msg.c
View file @
4f30f90c
...
...
@@ -1355,14 +1355,11 @@ static void test_signed_msg_get_param(void)
/* For "signed" messages, so is the version. */
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
CMSG_VERSION_PARAM
,
0
,
NULL
,
&
size
);
todo_wine
ok
(
ret
,
"CryptMsgGetParam failed: %08x
\n
"
,
GetLastError
());
size
=
sizeof
(
value
);
ret
=
CryptMsgGetParam
(
msg
,
CMSG_VERSION_PARAM
,
0
,
(
LPBYTE
)
&
value
,
&
size
);
todo_wine
{
ok
(
ret
,
"CryptMsgGetParam failed: %08x
\n
"
,
GetLastError
());
ok
(
value
==
CMSG_SIGNED_DATA_V1
,
"Expected version 1, got %d
\n
"
,
value
);
}
/* But for this message, with no signers, the hash and signer aren't
* available.
*/
...
...
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