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
89529f8a
Commit
89529f8a
authored
Feb 16, 2006
by
Juan Lang
Committed by
Alexandre Julliard
Feb 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use CertNameToStr for INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT
and update comment.
parent
e9c44cc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
5 deletions
+46
-5
internet.c
dlls/wininet/internet.c
+46
-5
No files found.
dlls/wininet/internet.c
View file @
89529f8a
...
...
@@ -2259,15 +2259,56 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
if
(
context
)
{
LPINTERNET_CERTIFICATE_INFOW
info
=
(
LPINTERNET_CERTIFICATE_INFOW
)
lpBuffer
;
DWORD
strLen
;
memset
(
info
,
0
,
sizeof
(
INTERNET_CERTIFICATE_INFOW
));
info
->
ftExpiry
=
context
->
pCertInfo
->
NotAfter
;
info
->
ftStart
=
context
->
pCertInfo
->
NotBefore
;
if
(
bIsUnicode
)
{
strLen
=
CertNameToStrW
(
context
->
dwCertEncodingType
,
&
context
->
pCertInfo
->
Subject
,
CERT_SIMPLE_NAME_STR
,
NULL
,
0
);
info
->
lpszSubjectInfo
=
LocalAlloc
(
0
,
strLen
*
sizeof
(
WCHAR
));
if
(
info
->
lpszSubjectInfo
)
CertNameToStrW
(
context
->
dwCertEncodingType
,
&
context
->
pCertInfo
->
Subject
,
CERT_SIMPLE_NAME_STR
,
info
->
lpszSubjectInfo
,
strLen
);
strLen
=
CertNameToStrW
(
context
->
dwCertEncodingType
,
&
context
->
pCertInfo
->
Issuer
,
CERT_SIMPLE_NAME_STR
,
NULL
,
0
);
info
->
lpszIssuerInfo
=
LocalAlloc
(
0
,
strLen
*
sizeof
(
WCHAR
));
if
(
info
->
lpszIssuerInfo
)
CertNameToStrW
(
context
->
dwCertEncodingType
,
&
context
->
pCertInfo
->
Issuer
,
CERT_SIMPLE_NAME_STR
,
info
->
lpszIssuerInfo
,
strLen
);
}
else
{
LPINTERNET_CERTIFICATE_INFOA
infoA
=
(
LPINTERNET_CERTIFICATE_INFOA
)
info
;
strLen
=
CertNameToStrA
(
context
->
dwCertEncodingType
,
&
context
->
pCertInfo
->
Subject
,
CERT_SIMPLE_NAME_STR
,
NULL
,
0
);
infoA
->
lpszSubjectInfo
=
LocalAlloc
(
0
,
strLen
);
if
(
infoA
->
lpszSubjectInfo
)
CertNameToStrA
(
context
->
dwCertEncodingType
,
&
context
->
pCertInfo
->
Subject
,
CERT_SIMPLE_NAME_STR
,
infoA
->
lpszSubjectInfo
,
strLen
);
strLen
=
CertNameToStrA
(
context
->
dwCertEncodingType
,
&
context
->
pCertInfo
->
Issuer
,
CERT_SIMPLE_NAME_STR
,
NULL
,
0
);
infoA
->
lpszIssuerInfo
=
LocalAlloc
(
0
,
strLen
);
if
(
infoA
->
lpszIssuerInfo
)
CertNameToStrA
(
context
->
dwCertEncodingType
,
&
context
->
pCertInfo
->
Issuer
,
CERT_SIMPLE_NAME_STR
,
infoA
->
lpszIssuerInfo
,
strLen
);
}
/*
* CertNameToStr implement requred for
* lpszSubjectInfo
* lpszIssuerInfo
*
* also need to set:
* Contrary to MSDN, these do not appear to be set.
* lpszProtocolName
* lpszSignatureAlgName
* lpszEncryptionAlgName
...
...
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