Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
777ea81c
Commit
777ea81c
authored
Oct 23, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Trace cert policies extension.
parent
994d7ed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
chain.c
dlls/crypt32/chain.c
+29
-0
No files found.
dlls/crypt32/chain.c
View file @
777ea81c
...
...
@@ -782,6 +782,33 @@ static void dump_key_usage(const CERT_EXTENSION *ext)
}
}
static
void
dump_cert_policies
(
const
CERT_EXTENSION
*
ext
)
{
CERT_POLICIES_INFO
*
policies
;
DWORD
size
;
if
(
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
X509_CERT_POLICIES
,
ext
->
Value
.
pbData
,
ext
->
Value
.
cbData
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
policies
,
&
size
))
{
DWORD
i
,
j
;
TRACE_
(
chain
)(
"%d policies:
\n
"
,
policies
->
cPolicyInfo
);
for
(
i
=
0
;
i
<
policies
->
cPolicyInfo
;
i
++
)
{
TRACE_
(
chain
)(
"policy identifier: %s
\n
"
,
debugstr_a
(
policies
->
rgPolicyInfo
[
i
].
pszPolicyIdentifier
));
TRACE_
(
chain
)(
"%d policy qualifiers:
\n
"
,
policies
->
rgPolicyInfo
[
i
].
cPolicyQualifier
);
for
(
j
=
0
;
j
<
policies
->
rgPolicyInfo
[
i
].
cPolicyQualifier
;
j
++
)
TRACE_
(
chain
)(
"%s
\n
"
,
debugstr_a
(
policies
->
rgPolicyInfo
[
i
].
rgPolicyQualifier
[
j
].
pszPolicyQualifierId
));
}
LocalFree
(
policies
);
}
}
static
void
dump_enhanced_key_usage
(
const
CERT_EXTENSION
*
ext
)
{
CERT_ENHKEY_USAGE
*
usage
;
...
...
@@ -810,6 +837,8 @@ static void dump_extension(const CERT_EXTENSION *ext)
dump_key_usage
(
ext
);
else
if
(
!
strcmp
(
ext
->
pszObjId
,
szOID_BASIC_CONSTRAINTS2
))
dump_basic_constraints2
(
ext
);
else
if
(
!
strcmp
(
ext
->
pszObjId
,
szOID_CERT_POLICIES
))
dump_cert_policies
(
ext
);
else
if
(
!
strcmp
(
ext
->
pszObjId
,
szOID_ENHANCED_KEY_USAGE
))
dump_enhanced_key_usage
(
ext
);
}
...
...
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