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
daa9d700
Commit
daa9d700
authored
Sep 29, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Oct 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Set cipher strength bits when querying WINHTTP_OPTION_SECURITY_FLAGS.
parent
4127062a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
session.c
dlls/winhttp/session.c
+8
-1
No files found.
dlls/winhttp/session.c
View file @
daa9d700
...
...
@@ -580,6 +580,7 @@ static BOOL request_query_option( object_header_t *hdr, DWORD option, LPVOID buf
case
WINHTTP_OPTION_SECURITY_FLAGS
:
{
DWORD
flags
;
int
bits
;
if
(
!
buffer
||
*
buflen
<
sizeof
(
flags
))
{
...
...
@@ -591,7 +592,13 @@ static BOOL request_query_option( object_header_t *hdr, DWORD option, LPVOID buf
flags
=
0
;
if
(
hdr
->
flags
&
WINHTTP_FLAG_SECURE
)
flags
|=
SECURITY_FLAG_SECURE
;
flags
|=
request
->
netconn
.
security_flags
;
/* FIXME: set connection cipher strength (SECURITY_FLAG_STRENGTH_*) */
bits
=
netconn_get_cipher_strength
(
&
request
->
netconn
);
if
(
bits
>=
128
)
flags
|=
SECURITY_FLAG_STRENGTH_STRONG
;
else
if
(
bits
>=
56
)
flags
|=
SECURITY_FLAG_STRENGTH_MEDIUM
;
else
flags
|=
SECURITY_FLAG_STRENGTH_WEAK
;
*
(
DWORD
*
)
buffer
=
flags
;
*
buflen
=
sizeof
(
flags
);
return
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