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
7fb0ce55
Commit
7fb0ce55
authored
Nov 12, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Nov 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement formatting an alt name entry with type CERT_ALT_NAME_DIRECTORY_NAME.
parent
a82454b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
object.c
dlls/crypt32/object.c
+22
-0
No files found.
dlls/crypt32/object.c
View file @
7fb0ce55
...
...
@@ -778,6 +778,19 @@ static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
bytesNeeded
+=
strlenW
(
entry
->
u
.
pwszDNSName
)
*
sizeof
(
WCHAR
);
ret
=
TRUE
;
break
;
case
CERT_ALT_NAME_DIRECTORY_NAME
:
{
DWORD
strType
=
dwFormatStrType
&
CRYPT_FORMAT_STR_MULTI_LINE
?
CERT_NAME_STR_CRLF_FLAG
:
0
;
DWORD
directoryNameLen
=
CertNameToStrW
(
X509_ASN_ENCODING
,
&
entry
->
u
.
DirectoryName
,
strType
,
NULL
,
0
);
LoadStringW
(
hInstance
,
IDS_ALT_NAME_OTHER_NAME
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
bytesNeeded
+=
(
directoryNameLen
-
1
)
*
sizeof
(
WCHAR
);
ret
=
TRUE
;
break
;
}
case
CERT_ALT_NAME_URL
:
LoadStringW
(
hInstance
,
IDS_ALT_NAME_URL
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
...
...
@@ -877,6 +890,15 @@ static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
case
CERT_ALT_NAME_URL
:
strcpyW
(
str
,
entry
->
u
.
pwszURL
);
break
;
case
CERT_ALT_NAME_DIRECTORY_NAME
:
{
DWORD
strType
=
dwFormatStrType
&
CRYPT_FORMAT_STR_MULTI_LINE
?
CERT_NAME_STR_CRLF_FLAG
:
0
;
CertNameToStrW
(
X509_ASN_ENCODING
,
&
entry
->
u
.
DirectoryName
,
strType
,
str
,
bytesNeeded
/
sizeof
(
WCHAR
));
break
;
}
case
CERT_ALT_NAME_IP_ADDRESS
:
if
(
dwFormatStrType
&
CRYPT_FORMAT_STR_MULTI_LINE
)
{
...
...
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