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
9a58b308
Commit
9a58b308
authored
Aug 14, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Initial implementation of CertGetCertificateChain and CertFreeCertificateChain.
parent
51651c7c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
chain.c
dlls/crypt32/chain.c
+0
-0
chain.c
dlls/crypt32/tests/chain.c
+0
-9
No files found.
dlls/crypt32/chain.c
View file @
9a58b308
This diff is collapsed.
Click to expand it.
dlls/crypt32/tests/chain.c
View file @
9a58b308
...
...
@@ -492,12 +492,10 @@ static void testGetCertChain(void)
/* Basic parameter checks */
ret
=
CertGetCertificateChain
(
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
ret
=
CertGetCertificateChain
(
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
&
chain
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
/* Crash
...
...
@@ -509,7 +507,6 @@ static void testGetCertChain(void)
sizeof
(
bigCert
));
todo_wine
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
/* Crash
...
...
@@ -530,14 +527,11 @@ static void testGetCertChain(void)
cert
=
CertCreateCertificateContext
(
X509_ASN_ENCODING
,
selfSignedCert
,
sizeof
(
selfSignedCert
));
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
NULL
,
NULL
,
&
para
,
0
,
NULL
,
&
chain
);
todo_wine
ok
(
ret
,
"CertGetCertificateChain failed: %08x
\n
"
,
GetLastError
());
todo_wine
ok
(
chain
!=
NULL
,
"Expected a chain
\n
"
);
if
(
chain
)
{
...
...
@@ -564,7 +558,6 @@ static void testGetCertChain(void)
ok
(
ret
,
"CertCreateCertificateChainEngine failed: %08x
\n
"
,
GetLastError
());
ret
=
CertGetCertificateChain
(
engine
,
cert
,
NULL
,
NULL
,
&
para
,
0
,
NULL
,
&
chain
);
todo_wine
ok
(
chain
!=
NULL
,
"Expected a chain
\n
"
);
if
(
chain
)
{
...
...
@@ -625,14 +618,12 @@ static void testGetCertChain(void)
else
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
NULL
,
config
.
hRestrictedRoot
,
&
para
,
0
,
NULL
,
&
chain
);
todo_wine
ok
(
ret
,
"CertGetCertificateChain failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
/* Since there's no guarantee the Verisign cert is in the Root
* store, either error is acceptable.
*/
todo_wine
ok
(
chain
->
TrustStatus
.
dwErrorStatus
==
CERT_TRUST_NO_ERROR
||
chain
->
TrustStatus
.
dwErrorStatus
==
CERT_TRUST_IS_UNTRUSTED_ROOT
,
"Expected no error or CERT_TRUST_IS_UNTRUSTED_ROOT, got %08x
\n
"
,
...
...
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