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
4e289449
Commit
4e289449
authored
Jul 17, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Jul 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement getting content of a data message.
parent
95bb1be2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
msg.c
dlls/crypt32/msg.c
+7
-0
msg.c
dlls/crypt32/tests/msg.c
+5
-1
No files found.
dlls/crypt32/msg.c
View file @
4e289449
...
...
@@ -743,6 +743,13 @@ static BOOL CDecodeMsg_GetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
ret
=
CRYPT_CopyParam
(
pvData
,
pcbData
,
(
const
BYTE
*
)
&
msg
->
type
,
sizeof
(
msg
->
type
));
break
;
case
CMSG_CONTENT_PARAM
:
if
(
msg
->
data
)
ret
=
CRYPT_CopyParam
(
pvData
,
pcbData
,
msg
->
data
->
pbData
,
msg
->
data
->
cbData
);
else
SetLastError
(
CRYPT_E_INVALID_MSG_TYPE
);
break
;
default:
FIXME
(
"unimplemented for parameter %d
\n
"
,
dwParamType
);
SetLastError
(
CRYPT_E_INVALID_MSG_TYPE
);
...
...
dlls/crypt32/tests/msg.c
View file @
4e289449
...
...
@@ -1208,10 +1208,14 @@ static void test_decode_msg_get_param(void)
{
HCRYPTMSG
msg
;
BOOL
ret
;
DWORD
size
=
0
;
msg
=
CryptMsgOpenToDecode
(
PKCS_7_ASN_ENCODING
,
0
,
0
,
0
,
NULL
,
NULL
);
SetLastError
(
0xdeadbeef
);
ret
=
CryptMsgGetParam
(
msg
,
CMSG_CONTENT_PARAM
,
0
,
NULL
,
&
size
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_INVALID_MSG_TYPE
,
"Expected CRYPT_E_INVALID_MSG_TYPE, got %x
\n
"
,
GetLastError
());
ret
=
CryptMsgUpdate
(
msg
,
dataContent
,
sizeof
(
dataContent
),
TRUE
);
todo_wine
check_param
(
"data content"
,
msg
,
CMSG_CONTENT_PARAM
,
msgData
,
sizeof
(
msgData
));
CryptMsgClose
(
msg
);
...
...
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