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
4c3474c0
Commit
4c3474c0
authored
Nov 14, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Nov 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Indent directory name when formatting an alt name entry.
parent
e9352b90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
object.c
dlls/crypt32/object.c
+9
-11
No files found.
dlls/crypt32/object.c
View file @
4c3474c0
...
...
@@ -761,6 +761,7 @@ static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
WCHAR
ipAddrBuf
[
32
];
WCHAR
maskBuf
[
16
];
DWORD
bytesNeeded
=
sizeof
(
WCHAR
);
DWORD
strType
=
CERT_X500_NAME_STR
|
CERT_NAME_STR_REVERSE_FLAG
;
if
(
dwFormatStrType
&
CRYPT_FORMAT_STR_MULTI_LINE
)
bytesNeeded
+=
indentLevel
*
strlenW
(
indent
)
*
sizeof
(
WCHAR
);
...
...
@@ -780,11 +781,12 @@ static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
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
);
DWORD
directoryNameLen
;
if
(
dwFormatStrType
&
CRYPT_FORMAT_STR_MULTI_LINE
)
strType
|=
CERT_NAME_STR_CRLF_FLAG
;
directoryNameLen
=
cert_name_to_str_with_indent
(
X509_ASN_ENCODING
,
indentLevel
+
1
,
&
entry
->
u
.
DirectoryName
,
strType
,
NULL
,
0
);
LoadStringW
(
hInstance
,
IDS_ALT_NAME_DIRECTORY_NAME
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
bytesNeeded
+=
(
directoryNameLen
-
1
)
*
sizeof
(
WCHAR
);
...
...
@@ -891,14 +893,10 @@ static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
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
));
cert_name_to_str_with_indent
(
X509_ASN_ENCODING
,
indentLevel
+
1
,
&
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