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
01262515
Commit
01262515
authored
Aug 22, 2018
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Aug 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Add revocation flags tests for CertGetCertificateChain().
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1f75f426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
chain.c
dlls/crypt32/tests/chain.c
+20
-0
No files found.
dlls/crypt32/tests/chain.c
View file @
01262515
...
...
@@ -4147,6 +4147,26 @@ static void testGetCertChain(void)
pCertFreeCertificateChain
(
chain
);
/* Test revocation flags */
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
&
fileTime
,
store
,
&
para
,
CERT_CHAIN_REVOCATION_CHECK_END_CERT
,
NULL
,
&
chain
);
ok
(
ret
,
"CertGetCertificateChain failed: %u
\n
"
,
GetLastError
());
ok
(
!
chain
->
TrustStatus
.
dwErrorStatus
,
"chain->TrustStatus.dwErrorStatus = %x
\n
"
,
chain
->
TrustStatus
.
dwErrorStatus
);
pCertFreeCertificateChain
(
chain
);
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
&
fileTime
,
store
,
&
para
,
CERT_CHAIN_REVOCATION_CHECK_CHAIN
,
NULL
,
&
chain
);
ok
(
ret
,
"CertGetCertificateChain failed: %u
\n
"
,
GetLastError
());
todo_wine
ok
(
!
chain
->
TrustStatus
.
dwErrorStatus
||
broken
(
chain
->
TrustStatus
.
dwErrorStatus
==
CERT_TRUST_REVOCATION_STATUS_UNKNOWN
),
/* XP */
"chain->TrustStatus.dwErrorStatus = %x
\n
"
,
chain
->
TrustStatus
.
dwErrorStatus
);
pCertFreeCertificateChain
(
chain
);
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
&
fileTime
,
store
,
&
para
,
CERT_CHAIN_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT
,
NULL
,
&
chain
);
ok
(
ret
,
"CertGetCertificateChain failed: %u
\n
"
,
GetLastError
());
ok
(
!
chain
->
TrustStatus
.
dwErrorStatus
,
"chain->TrustStatus.dwErrorStatus = %x
\n
"
,
chain
->
TrustStatus
.
dwErrorStatus
);
pCertFreeCertificateChain
(
chain
);
/* Test HCCE_LOCAL_MACHINE */
ret
=
CertGetCertificateChain
(
HCCE_LOCAL_MACHINE
,
cert
,
&
fileTime
,
store
,
&
para
,
0
,
NULL
,
&
chain
);
ok
(
ret
,
"CertGetCertificateChain failed: %u
\n
"
,
GetLastError
());
...
...
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