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
f75b86f0
Commit
f75b86f0
authored
Jun 28, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Jun 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement getting content for data messages opened to encode.
parent
263f424c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
msg.c
dlls/crypt32/msg.c
+10
-1
msg.c
dlls/crypt32/tests/msg.c
+0
-5
No files found.
dlls/crypt32/msg.c
View file @
f75b86f0
...
...
@@ -118,8 +118,17 @@ static BOOL CDataEncodeMsg_GetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
switch
(
dwParamType
)
{
case
CMSG_CONTENT_PARAM
:
FIXME
(
"stub
\n
"
);
{
CRYPT_CONTENT_INFO
info
;
char
rsa_data
[]
=
"1.2.840.113549.1.7.1"
;
info
.
pszObjId
=
rsa_data
;
info
.
Content
.
cbData
=
msg
->
bare_content_len
;
info
.
Content
.
pbData
=
msg
->
bare_content
;
ret
=
CryptEncodeObject
(
X509_ASN_ENCODING
,
PKCS_CONTENT_INFO
,
&
info
,
pvData
,
pcbData
);
break
;
}
case
CMSG_BARE_CONTENT_PARAM
:
if
(
!
pvData
)
{
...
...
dlls/crypt32/tests/msg.c
View file @
f75b86f0
...
...
@@ -384,7 +384,6 @@ static void test_data_msg_get_param(void)
/* Content and bare content are always gettable */
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
CMSG_CONTENT_PARAM
,
0
,
NULL
,
&
size
);
todo_wine
ok
(
ret
,
"CryptMsgGetParam failed: %08x
\n
"
,
GetLastError
());
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
CMSG_BARE_CONTENT_PARAM
,
0
,
NULL
,
&
size
);
...
...
@@ -426,14 +425,12 @@ static void test_data_msg_encoding(void)
NULL
);
check_param
(
"data empty bare content"
,
msg
,
CMSG_BARE_CONTENT_PARAM
,
dataEmptyBareContent
,
sizeof
(
dataEmptyBareContent
));
todo_wine
check_param
(
"data empty content"
,
msg
,
CMSG_CONTENT_PARAM
,
dataEmptyContent
,
sizeof
(
dataEmptyContent
));
ret
=
CryptMsgUpdate
(
msg
,
msgData
,
sizeof
(
msgData
),
TRUE
);
ok
(
ret
,
"CryptMsgUpdate failed: %x
\n
"
,
GetLastError
());
check_param
(
"data bare content"
,
msg
,
CMSG_BARE_CONTENT_PARAM
,
dataBareContent
,
sizeof
(
dataBareContent
));
todo_wine
check_param
(
"data content"
,
msg
,
CMSG_CONTENT_PARAM
,
dataContent
,
sizeof
(
dataContent
));
CryptMsgClose
(
msg
);
...
...
@@ -442,14 +439,12 @@ static void test_data_msg_encoding(void)
CMSG_DATA
,
NULL
,
NULL
,
NULL
);
check_param
(
"data empty bare content"
,
msg
,
CMSG_BARE_CONTENT_PARAM
,
dataEmptyBareContent
,
sizeof
(
dataEmptyBareContent
));
todo_wine
check_param
(
"data empty content"
,
msg
,
CMSG_CONTENT_PARAM
,
dataEmptyContent
,
sizeof
(
dataEmptyContent
));
ret
=
CryptMsgUpdate
(
msg
,
msgData
,
sizeof
(
msgData
),
TRUE
);
ok
(
ret
,
"CryptMsgUpdate failed: %x
\n
"
,
GetLastError
());
check_param
(
"data bare content"
,
msg
,
CMSG_BARE_CONTENT_PARAM
,
dataBareContent
,
sizeof
(
dataBareContent
));
todo_wine
check_param
(
"data content"
,
msg
,
CMSG_CONTENT_PARAM
,
dataContent
,
sizeof
(
dataContent
));
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