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
439f5e0d
Commit
439f5e0d
authored
Oct 16, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Include policy being checked in failure message.
parent
052238d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
chain.c
dlls/crypt32/tests/chain.c
+23
-11
No files found.
dlls/crypt32/tests/chain.c
View file @
439f5e0d
...
...
@@ -1775,7 +1775,9 @@ static void checkChainPolicyStatus(LPCSTR policy, const ChainPolicyCheck *check,
&
policyStatus
);
if
(
check
->
todo
&
TODO_POLICY
)
todo_wine
ok
(
ret
,
"%d: CertVerifyCertificateChainPolicy failed: %08x
\n
"
,
todo_wine
ok
(
ret
,
"%s[%d]: CertVerifyCertificateChainPolicy failed: %08x
\n
"
,
HIWORD
(
policy
)
?
policy
:
num_to_str
(
LOWORD
(
policy
)),
testIndex
,
GetLastError
());
else
{
...
...
@@ -1786,36 +1788,46 @@ static void checkChainPolicyStatus(LPCSTR policy, const ChainPolicyCheck *check,
pCertFreeCertificateChain
(
chain
);
return
;
}
ok
(
ret
,
"%d: CertVerifyCertificateChainPolicy failed: %08x
\n
"
,
testIndex
,
GetLastError
());
ok
(
ret
,
"%s[%d]: CertVerifyCertificateChainPolicy failed: %08x
\n
"
,
HIWORD
(
policy
)
?
policy
:
num_to_str
(
LOWORD
(
policy
)),
testIndex
,
GetLastError
());
}
if
(
ret
)
{
if
(
check
->
todo
&
TODO_ERROR
)
todo_wine
ok
(
policyStatus
.
dwError
==
check
->
status
.
dwError
,
"%d: expected %08x, got %08x
\n
"
,
testIndex
,
check
->
status
.
dwError
,
policyStatus
.
dwError
);
"%s[%d]: expected %08x, got %08x
\n
"
,
HIWORD
(
policy
)
?
policy
:
num_to_str
(
LOWORD
(
policy
)),
testIndex
,
check
->
status
.
dwError
,
policyStatus
.
dwError
);
else
ok
(
policyStatus
.
dwError
==
check
->
status
.
dwError
,
"%d: expected %08x, got %08x
\n
"
,
testIndex
,
check
->
status
.
dwError
,
policyStatus
.
dwError
);
"%s[%d]: expected %08x, got %08x
\n
"
,
HIWORD
(
policy
)
?
policy
:
num_to_str
(
LOWORD
(
policy
)),
testIndex
,
check
->
status
.
dwError
,
policyStatus
.
dwError
);
if
(
check
->
todo
&
TODO_CHAINS
)
todo_wine
ok
(
policyStatus
.
lChainIndex
==
check
->
status
.
lChainIndex
,
"%d: expected %d, got %d
\n
"
,
check
->
status
.
lChainIndex
,
"%s[%d]: expected %d, got %d
\n
"
,
HIWORD
(
policy
)
?
policy
:
num_to_str
(
LOWORD
(
policy
)),
testIndex
,
check
->
status
.
lChainIndex
,
policyStatus
.
lChainIndex
);
else
ok
(
policyStatus
.
lChainIndex
==
check
->
status
.
lChainIndex
,
"%d: expected %d, got %d
\n
"
,
testIndex
,
"%s[%d]: expected %d, got %d
\n
"
,
HIWORD
(
policy
)
?
policy
:
num_to_str
(
LOWORD
(
policy
)),
testIndex
,
check
->
status
.
lChainIndex
,
policyStatus
.
lChainIndex
);
if
(
check
->
todo
&
TODO_ELEMENTS
)
todo_wine
ok
(
policyStatus
.
lElementIndex
==
check
->
status
.
lElementIndex
,
"%d: expected %d, got %d
\n
"
,
testIndex
,
"%s[%d]: expected %d, got %d
\n
"
,
HIWORD
(
policy
)
?
policy
:
num_to_str
(
LOWORD
(
policy
)),
testIndex
,
check
->
status
.
lElementIndex
,
policyStatus
.
lElementIndex
);
else
ok
(
policyStatus
.
lElementIndex
==
check
->
status
.
lElementIndex
,
"%d: expected %d, got %d
\n
"
,
testIndex
,
"%s[%d]: expected %d, got %d
\n
"
,
HIWORD
(
policy
)
?
policy
:
num_to_str
(
LOWORD
(
policy
)),
testIndex
,
check
->
status
.
lElementIndex
,
policyStatus
.
lElementIndex
);
}
pCertFreeCertificateChain
(
chain
);
...
...
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