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
41e147e6
Commit
41e147e6
authored
May 14, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
May 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Support setting security flags on request handles.
parent
14e061a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
session.c
dlls/winhttp/session.c
+20
-1
winhttp_private.h
dlls/winhttp/winhttp_private.h
+1
-0
No files found.
dlls/winhttp/session.c
View file @
41e147e6
...
...
@@ -723,8 +723,27 @@ static BOOL request_set_option( object_header_t *hdr, DWORD option, LPVOID buffe
return
TRUE
;
}
case
WINHTTP_OPTION_SECURITY_FLAGS
:
FIXME
(
"WINHTTP_OPTION_SECURITY_FLAGS unimplemented (%08x)
\n
"
,
*
(
DWORD
*
)
buffer
);
{
DWORD
flags
;
if
(
buflen
<
sizeof
(
DWORD
))
{
set_last_error
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
flags
=
*
(
DWORD
*
)
buffer
;
TRACE
(
"0x%x
\n
"
,
flags
);
if
(
!
(
flags
&
(
SECURITY_FLAG_IGNORE_CERT_CN_INVALID
|
SECURITY_FLAG_IGNORE_CERT_DATE_INVALID
|
SECURITY_FLAG_IGNORE_UNKNOWN_CA
|
SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE
)))
{
set_last_error
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
request
->
security_flags
=
flags
;
return
TRUE
;
}
case
WINHTTP_OPTION_RESOLVE_TIMEOUT
:
request
->
resolve_timeout
=
*
(
DWORD
*
)
buffer
;
return
TRUE
;
...
...
dlls/winhttp/winhttp_private.h
View file @
41e147e6
...
...
@@ -155,6 +155,7 @@ typedef struct
DWORD
content_read
;
/* bytes read so far */
header_t
*
headers
;
DWORD
num_headers
;
DWORD
security_flags
;
}
request_t
;
typedef
struct
_task_header_t
task_header_t
;
...
...
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