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
d664edb3
Commit
d664edb3
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 directory name of alt name entries.
parent
1a194449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
chain.c
dlls/crypt32/chain.c
+21
-2
No files found.
dlls/crypt32/chain.c
View file @
d664edb3
...
...
@@ -725,8 +725,26 @@ static void CRYPT_CheckChainNameConstraints(PCERT_SIMPLE_CHAIN chain)
}
}
static
LPWSTR
name_value_to_str
(
const
CERT_NAME_BLOB
*
name
)
{
DWORD
len
=
cert_name_to_str_with_indent
(
X509_ASN_ENCODING
,
0
,
name
,
CERT_SIMPLE_NAME_STR
,
NULL
,
0
);
LPWSTR
str
=
NULL
;
if
(
len
)
{
str
=
CryptMemAlloc
(
len
*
sizeof
(
WCHAR
));
if
(
str
)
cert_name_to_str_with_indent
(
X509_ASN_ENCODING
,
0
,
name
,
CERT_SIMPLE_NAME_STR
,
str
,
len
);
}
return
str
;
}
static
void
dump_alt_name_entry
(
const
CERT_ALT_NAME_ENTRY
*
entry
)
{
LPWSTR
str
;
switch
(
entry
->
dwAltNameChoice
)
{
case
CERT_ALT_NAME_OTHER_NAME
:
...
...
@@ -742,8 +760,9 @@ static void dump_alt_name_entry(const CERT_ALT_NAME_ENTRY *entry)
debugstr_w
(
entry
->
u
.
pwszDNSName
));
break
;
case
CERT_ALT_NAME_DIRECTORY_NAME
:
TRACE_
(
chain
)(
"CERT_ALT_NAME_DIRECTORY_NAME: %d bytes
\n
"
,
entry
->
u
.
DirectoryName
.
cbData
);
str
=
name_value_to_str
(
&
entry
->
u
.
DirectoryName
);
TRACE_
(
chain
)(
"CERT_ALT_NAME_DIRECTORY_NAME: %s
\n
"
,
debugstr_w
(
str
));
CryptMemFree
(
str
);
break
;
case
CERT_ALT_NAME_URL
:
TRACE_
(
chain
)(
"CERT_ALT_NAME_URL: %s
\n
"
,
debugstr_w
(
entry
->
u
.
pwszURL
));
...
...
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