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
948173b7
Commit
948173b7
authored
Sep 30, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Oct 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Set cipher strength bits when querying INTERNET_OPTION_SECURITY_FLAGS.
parent
887aeb6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
http.c
dlls/wininet/http.c
+13
-6
No files found.
dlls/wininet/http.c
View file @
948173b7
...
...
@@ -1690,19 +1690,26 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
case
INTERNET_OPTION_SECURITY_FLAGS
:
{
http_session_t
*
lpwhs
;
lpwhs
=
req
->
lpHttpSession
;
http_session_t
*
lpwhs
=
req
->
lpHttpSession
;
DWORD
flags
;
int
bits
;
if
(
*
size
<
sizeof
(
ULONG
))
return
ERROR_INSUFFICIENT_BUFFER
;
*
size
=
sizeof
(
DWORD
);
flags
=
0
;
if
(
lpwhs
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
)
*
(
DWORD
*
)
buffer
=
SECURITY_FLAG_SECURE
;
flags
|=
SECURITY_FLAG_SECURE
;
flags
|=
req
->
netConnection
.
security_flags
;
bits
=
NETCON_GetCipherStrength
(
&
req
->
netConnection
);
if
(
bits
>=
128
)
flags
|=
SECURITY_FLAG_STRENGTH_STRONG
;
else
if
(
bits
>=
56
)
flags
|=
SECURITY_FLAG_STRENGTH_MEDIUM
;
else
*
(
DWORD
*
)
buffer
=
0
;
*
(
DWORD
*
)
buffer
|=
req
->
netConnection
.
security_flags
;
/* FIXME: set connection cipher strength (SECURITY_FLAG_STRENGTH_*) */
flags
|=
SECURITY_FLAG_STRENGTH_WEAK
;
*
(
DWORD
*
)
buffer
=
flags
;
return
ERROR_SUCCESS
;
}
...
...
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