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
ef7cda72
Commit
ef7cda72
authored
Sep 08, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Sep 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Further simplify CertGetNameStringW.
parent
4d2972c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
str.c
dlls/crypt32/str.c
+7
-7
No files found.
dlls/crypt32/str.c
View file @
ef7cda72
...
...
@@ -995,21 +995,23 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
szOID_ORGANIZATIONAL_UNIT_NAME
,
szOID_ORGANIZATION_NAME
,
szOID_RSA_emailAddr
};
CERT_NAME_INFO
*
nameInfo
=
NULL
;
PCERT_RDN_ATTR
nameAttr
=
NULL
;
DWORD
bytes
=
0
,
i
;
if
(
CryptDecodeObjectEx
(
pCertContext
->
dwCertEncodingType
,
X509_NAME
,
name
->
pbData
,
name
->
cbData
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
nameInfo
,
&
bytes
))
{
PCERT_RDN_ATTR
nameAttr
=
NULL
;
for
(
i
=
0
;
!
nameAttr
&&
i
<
sizeof
(
simpleAttributeOIDs
)
/
sizeof
(
simpleAttributeOIDs
[
0
]);
i
++
)
nameAttr
=
CertFindRDNAttr
(
simpleAttributeOIDs
[
i
],
nameInfo
);
if
(
nameAttr
)
ret
=
CertRDNValueToStrW
(
nameAttr
->
dwValueType
,
&
nameAttr
->
Value
,
pszNameString
,
cchNameString
);
LocalFree
(
nameInfo
);
}
if
(
nameAttr
)
ret
=
CertRDNValueToStrW
(
nameAttr
->
dwValueType
,
&
nameAttr
->
Value
,
pszNameString
,
cchNameString
);
else
if
(
!
ret
)
{
CERT_ALT_NAME_INFO
*
altInfo
;
PCERT_ALT_NAME_ENTRY
entry
=
cert_find_alt_name_entry
(
pCertContext
,
...
...
@@ -1035,8 +1037,6 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
LocalFree
(
altInfo
);
}
}
if
(
nameInfo
)
LocalFree
(
nameInfo
);
break
;
}
case
CERT_NAME_FRIENDLY_DISPLAY_TYPE
:
...
...
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