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
6859eee6
Commit
6859eee6
authored
Feb 23, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Don't crash on Win9x (test_msg_get_and_verify_signer).
parent
b38b2076
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
msg.c
dlls/crypt32/tests/msg.c
+8
-5
No files found.
dlls/crypt32/tests/msg.c
View file @
6859eee6
...
...
@@ -2968,11 +2968,14 @@ static void test_msg_get_and_verify_signer(void)
msg
=
CryptMsgOpenToDecode
(
PKCS_7_ASN_ENCODING
,
0
,
0
,
0
,
NULL
,
NULL
);
/* A "signed" message created with no signer cert likewise has no signer */
CryptMsgUpdate
(
msg
,
signedEmptyContent
,
sizeof
(
signedEmptyContent
),
TRUE
);
SetLastError
(
0xdeadbeef
);
ret
=
CryptMsgGetAndVerifySigner
(
msg
,
0
,
NULL
,
0
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_NO_TRUSTED_SIGNER
,
"expected CRYPT_E_NO_TRUSTED_SIGNER, got 0x%08x
\n
"
,
GetLastError
());
ret
=
CryptMsgUpdate
(
msg
,
signedEmptyContent
,
sizeof
(
signedEmptyContent
),
TRUE
);
if
(
ret
)
{
/* Crashes on most Win9x */
ret
=
CryptMsgGetAndVerifySigner
(
msg
,
0
,
NULL
,
0
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_NO_TRUSTED_SIGNER
,
"expected CRYPT_E_NO_TRUSTED_SIGNER, got 0x%08x
\n
"
,
GetLastError
());
}
CryptMsgClose
(
msg
);
msg
=
CryptMsgOpenToDecode
(
PKCS_7_ASN_ENCODING
,
0
,
0
,
0
,
NULL
,
NULL
);
...
...
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