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
70a0190e
Commit
70a0190e
authored
Nov 26, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Fix failures on win7 and above.
parent
7f62678c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
chain.c
dlls/crypt32/tests/chain.c
+6
-4
No files found.
dlls/crypt32/tests/chain.c
View file @
70a0190e
...
...
@@ -4626,16 +4626,18 @@ static void testVerifyCertChainPolicy(void)
ret
=
pCertVerifyCertificateChainPolicy
(
CERT_CHAIN_POLICY_BASE
,
chain
,
NULL
,
&
policyStatus
);
ok
(
ret
,
"CertVerifyCertificateChainPolicy failed: %08x
\n
"
,
GetLastError
());
ok
(
policyStatus
.
dwError
==
CERT_E_UNTRUSTEDROOT
,
"Expected CERT_E_UNTRUSTEDROOT, got %08x
\n
"
,
policyStatus
.
dwError
);
ok
(
policyStatus
.
dwError
==
CERT_E_UNTRUSTEDROOT
||
policyStatus
.
dwError
==
TRUST_E_CERT_SIGNATURE
,
/* win7 + win8 */
"Expected CERT_E_UNTRUSTEDROOT or TRUST_E_CERT_SIGNATURE, got %08x
\n
"
,
policyStatus
.
dwError
);
ok
(
policyStatus
.
lChainIndex
==
0
&&
policyStatus
.
lElementIndex
==
0
,
"Expected both indexes 0, got %d, %d
\n
"
,
policyStatus
.
lChainIndex
,
policyStatus
.
lElementIndex
);
ret
=
pCertVerifyCertificateChainPolicy
(
CERT_CHAIN_POLICY_BASE
,
chain
,
&
policyPara
,
&
policyStatus
);
ok
(
ret
,
"CertVerifyCertificateChainPolicy failed: %08x
\n
"
,
GetLastError
());
ok
(
policyStatus
.
dwError
==
CERT_E_UNTRUSTEDROOT
,
"Expected CERT_E_UNTRUSTEDROOT, got %08x
\n
"
,
policyStatus
.
dwError
);
ok
(
policyStatus
.
dwError
==
CERT_E_UNTRUSTEDROOT
||
policyStatus
.
dwError
==
TRUST_E_CERT_SIGNATURE
,
/* win7 + win8 */
"Expected CERT_E_UNTRUSTEDROOT or TRUST_E_CERT_SIGNATURE, got %08x
\n
"
,
policyStatus
.
dwError
);
ok
(
policyStatus
.
lChainIndex
==
0
&&
policyStatus
.
lElementIndex
==
0
,
"Expected both indexes 0, got %d, %d
\n
"
,
policyStatus
.
lChainIndex
,
policyStatus
.
lElementIndex
);
...
...
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