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
f3dd75d8
Commit
f3dd75d8
authored
May 25, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
May 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Set SECURITY_FLAG_STRENGTH_* flags in NETCONN_secure_connect.
parent
90ec92df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
http.c
dlls/wininet/http.c
+2
-9
netconnection.c
dlls/wininet/netconnection.c
+9
-0
No files found.
dlls/wininet/http.c
View file @
f3dd75d8
...
...
@@ -1999,16 +1999,9 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
*
size
=
sizeof
(
DWORD
);
flags
=
req
->
netconn
?
req
->
netconn
->
security_flags
:
req
->
security_flags
|
req
->
server
->
security_flags
;
if
(
req
->
netconn
)
{
int
bits
=
NETCON_GetCipherStrength
(
req
->
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
;
TRACE
(
"INTERNET_OPTION_SECURITY_FLAGS %x
\n
"
,
flags
);
return
ERROR_SUCCESS
;
}
...
...
dlls/wininet/netconnection.c
View file @
f3dd75d8
...
...
@@ -688,6 +688,7 @@ DWORD NETCON_secure_connect(netconn_t *connection)
DWORD
res
=
ERROR_NOT_SUPPORTED
;
#ifdef SONAME_LIBSSL
void
*
ssl_s
;
int
bits
;
/* can't connect if we are already connected */
if
(
connection
->
ssl_s
)
...
...
@@ -730,7 +731,15 @@ DWORD NETCON_secure_connect(netconn_t *connection)
connection
->
ssl_s
=
ssl_s
;
bits
=
NETCON_GetCipherStrength
(
connection
);
if
(
bits
>=
128
)
connection
->
security_flags
|=
SECURITY_FLAG_STRENGTH_STRONG
;
else
if
(
bits
>=
56
)
connection
->
security_flags
|=
SECURITY_FLAG_STRENGTH_MEDIUM
;
else
connection
->
security_flags
|=
SECURITY_FLAG_STRENGTH_WEAK
;
connection
->
security_flags
|=
SECURITY_FLAG_SECURE
;
connection
->
server
->
security_flags
=
connection
->
security_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