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
6dfe7bc3
Commit
6dfe7bc3
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: Implement CertGetNameStringW for CERT_NAME_EMAIL_TYPE.
parent
288c79cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
str.c
dlls/crypt32/str.c
+25
-0
No files found.
dlls/crypt32/str.c
View file @
6dfe7bc3
...
...
@@ -1008,6 +1008,31 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
switch
(
dwType
)
{
case
CERT_NAME_EMAIL_TYPE
:
{
CERT_ALT_NAME_INFO
*
info
;
PCERT_ALT_NAME_ENTRY
entry
=
cert_find_alt_name_entry
(
pCertContext
,
altNameOID
,
CERT_ALT_NAME_RFC822_NAME
,
&
info
);
if
(
entry
)
{
if
(
!
pszNameString
)
ret
=
strlenW
(
entry
->
pwszRfc822Name
)
+
1
;
else
{
ret
=
min
(
strlenW
(
entry
->
pwszRfc822Name
),
cchNameString
-
1
);
memcpy
(
pszNameString
,
entry
->
pwszRfc822Name
,
ret
*
sizeof
(
WCHAR
));
pszNameString
[
ret
++
]
=
0
;
}
}
if
(
info
)
LocalFree
(
info
);
if
(
!
ret
)
ret
=
cert_get_name_from_rdn_attr
(
pCertContext
->
dwCertEncodingType
,
name
,
szOID_RSA_emailAddr
,
pszNameString
,
cchNameString
);
break
;
}
case
CERT_NAME_RDN_TYPE
:
if
(
name
->
cbData
)
ret
=
CertNameToStrW
(
pCertContext
->
dwCertEncodingType
,
name
,
...
...
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