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
d6795bd9
Commit
d6795bd9
authored
Oct 30, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Trace contents of CERT_CHAIN_PARA.
parent
2387532c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
chain.c
dlls/crypt32/chain.c
+27
-0
No files found.
dlls/crypt32/chain.c
View file @
d6795bd9
...
...
@@ -2009,6 +2009,31 @@ static void CRYPT_VerifyChainRevocation(PCERT_CHAIN_CONTEXT chain,
}
}
static
void
dump_usage_match
(
LPCSTR
name
,
const
CERT_USAGE_MATCH
*
usageMatch
)
{
DWORD
i
;
TRACE_
(
chain
)(
"%s: %s
\n
"
,
name
,
usageMatch
->
dwType
==
USAGE_MATCH_TYPE_AND
?
"AND"
:
"OR"
);
for
(
i
=
0
;
i
<
usageMatch
->
Usage
.
cUsageIdentifier
;
i
++
)
TRACE_
(
chain
)(
"%s
\n
"
,
usageMatch
->
Usage
.
rgpszUsageIdentifier
[
i
]);
}
static
void
dump_chain_para
(
const
CERT_CHAIN_PARA
*
pChainPara
)
{
TRACE_
(
chain
)(
"%d
\n
"
,
pChainPara
->
cbSize
);
if
(
pChainPara
->
cbSize
>=
sizeof
(
CERT_CHAIN_PARA_NO_EXTRA_FIELDS
))
dump_usage_match
(
"RequestedUsage"
,
&
pChainPara
->
RequestedUsage
);
if
(
pChainPara
->
cbSize
>=
sizeof
(
CERT_CHAIN_PARA
))
{
dump_usage_match
(
"RequestedIssuancePolicy"
,
&
pChainPara
->
RequestedIssuancePolicy
);
TRACE_
(
chain
)(
"%d
\n
"
,
pChainPara
->
dwUrlRetrievalTimeout
);
TRACE_
(
chain
)(
"%d
\n
"
,
pChainPara
->
fCheckRevocationFreshnessTime
);
TRACE_
(
chain
)(
"%d
\n
"
,
pChainPara
->
dwRevocationFreshnessTime
);
}
}
BOOL
WINAPI
CertGetCertificateChain
(
HCERTCHAINENGINE
hChainEngine
,
PCCERT_CONTEXT
pCertContext
,
LPFILETIME
pTime
,
HCERTSTORE
hAdditionalStore
,
PCERT_CHAIN_PARA
pChainPara
,
DWORD
dwFlags
,
LPVOID
pvReserved
,
...
...
@@ -2035,6 +2060,8 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
if
(
!
hChainEngine
)
hChainEngine
=
CRYPT_GetDefaultChainEngine
();
if
(
TRACE_ON
(
chain
))
dump_chain_para
(
pChainPara
);
/* FIXME: what about HCCE_LOCAL_MACHINE? */
ret
=
CRYPT_BuildCandidateChainFromCert
(
hChainEngine
,
pCertContext
,
pTime
,
hAdditionalStore
,
&
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