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
01c69eb3
Commit
01c69eb3
authored
Mar 14, 2023
by
Tyson Whitehead
Committed by
Alexandre Julliard
Mar 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add some CertGetNameStringW fallback cases.
When called with CERT_NAME_ATTR_TYPE and pvTypePara=NULL, Windows did the first of email, CN, OU, or O while Wine just did email.
parent
78dc4ce7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
str.c
dlls/crypt32/str.c
+15
-4
No files found.
dlls/crypt32/str.c
View file @
01c69eb3
...
...
@@ -965,11 +965,22 @@ static DWORD cert_get_name_from_rdn_attr(DWORD encodingType,
if
(
CryptDecodeObjectEx
(
encodingType
,
X509_NAME
,
name
->
pbData
,
name
->
cbData
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
nameInfo
,
&
bytes
))
{
PCERT_RDN_ATTR
nameAttr
;
PCERT_RDN_ATTR
nameAttr
=
NULL
;
if
(
!
oid
)
oid
=
szOID_RSA_emailAddr
;
nameAttr
=
CertFindRDNAttr
(
oid
,
nameInfo
);
if
(
oid
)
nameAttr
=
CertFindRDNAttr
(
oid
,
nameInfo
);
else
{
static
const
LPCSTR
attributeOIDs
[]
=
{
szOID_RSA_emailAddr
,
szOID_COMMON_NAME
,
szOID_ORGANIZATIONAL_UNIT_NAME
,
szOID_ORGANIZATION_NAME
};
DWORD
i
;
for
(
i
=
0
;
!
nameAttr
&&
i
<
ARRAY_SIZE
(
attributeOIDs
);
i
++
)
nameAttr
=
CertFindRDNAttr
(
attributeOIDs
[
i
],
nameInfo
);
}
if
(
nameAttr
)
ret
=
rdn_value_to_strW
(
nameAttr
->
dwValueType
,
&
nameAttr
->
Value
,
pszNameString
,
cchNameString
,
TRUE
);
...
...
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