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
bcb4bc6b
Commit
bcb4bc6b
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 netscape cert type extension.
parent
d664edb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
chain.c
dlls/crypt32/chain.c
+28
-0
No files found.
dlls/crypt32/chain.c
View file @
bcb4bc6b
...
...
@@ -936,6 +936,32 @@ static void dump_enhanced_key_usage(const CERT_EXTENSION *ext)
}
}
static
void
dump_netscape_cert_type
(
const
CERT_EXTENSION
*
ext
)
{
CRYPT_BIT_BLOB
usage
;
DWORD
size
=
sizeof
(
usage
);
if
(
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
X509_BITS
,
ext
->
Value
.
pbData
,
ext
->
Value
.
cbData
,
CRYPT_DECODE_NOCOPY_FLAG
,
NULL
,
&
usage
,
&
size
))
{
#define trace_cert_type_bit(bits, bit) \
if ((bits) & (bit)) TRACE_(chain)("%s\n", #bit)
if
(
usage
.
cbData
)
{
trace_cert_type_bit
(
usage
.
pbData
[
0
],
NETSCAPE_SSL_CLIENT_AUTH_CERT_TYPE
);
trace_cert_type_bit
(
usage
.
pbData
[
0
],
NETSCAPE_SSL_SERVER_AUTH_CERT_TYPE
);
trace_cert_type_bit
(
usage
.
pbData
[
0
],
NETSCAPE_SMIME_CERT_TYPE
);
trace_cert_type_bit
(
usage
.
pbData
[
0
],
NETSCAPE_SIGN_CERT_TYPE
);
trace_cert_type_bit
(
usage
.
pbData
[
0
],
NETSCAPE_SSL_CA_CERT_TYPE
);
trace_cert_type_bit
(
usage
.
pbData
[
0
],
NETSCAPE_SMIME_CA_CERT_TYPE
);
trace_cert_type_bit
(
usage
.
pbData
[
0
],
NETSCAPE_SIGN_CA_CERT_TYPE
);
}
#undef trace_cert_type_bit
}
}
static
void
dump_extension
(
const
CERT_EXTENSION
*
ext
)
{
TRACE_
(
chain
)(
"%s (%scritical)
\n
"
,
debugstr_a
(
ext
->
pszObjId
),
...
...
@@ -960,6 +986,8 @@ static void dump_extension(const CERT_EXTENSION *ext)
dump_cert_policies
(
ext
);
else
if
(
!
strcmp
(
ext
->
pszObjId
,
szOID_ENHANCED_KEY_USAGE
))
dump_enhanced_key_usage
(
ext
);
else
if
(
!
strcmp
(
ext
->
pszObjId
,
szOID_NETSCAPE_CERT_TYPE
))
dump_netscape_cert_type
(
ext
);
}
static
LPCWSTR
filetime_to_str
(
const
FILETIME
*
time
)
...
...
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