Commit b34e816f authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Implement WinHttpQueryOption(WINHTTP_OPTION_SECURITY_FLAGS).

parent e3a15936
...@@ -245,6 +245,25 @@ static void request_destroy( object_header_t *hdr ) ...@@ -245,6 +245,25 @@ static void request_destroy( object_header_t *hdr )
heap_free( request ); heap_free( request );
} }
static BOOL request_query_option( object_header_t *hdr, DWORD option, LPVOID buffer, LPDWORD buflen )
{
switch (option)
{
case WINHTTP_OPTION_SECURITY_FLAGS:
{
DWORD flags = 0;
if (hdr->flags & WINHTTP_FLAG_SECURE) flags |= SECURITY_FLAG_SECURE;
*(DWORD *)buffer = flags;
*buflen = sizeof(DWORD);
return TRUE;
}
default:
FIXME("unimplemented option %u\n", option);
return FALSE;
}
}
static BOOL request_set_option( object_header_t *hdr, DWORD option, LPVOID buffer, DWORD buflen ) static BOOL request_set_option( object_header_t *hdr, DWORD option, LPVOID buffer, DWORD buflen )
{ {
switch (option) switch (option)
...@@ -289,7 +308,7 @@ static BOOL request_set_option( object_header_t *hdr, DWORD option, LPVOID buffe ...@@ -289,7 +308,7 @@ static BOOL request_set_option( object_header_t *hdr, DWORD option, LPVOID buffe
static const object_vtbl_t request_vtbl = static const object_vtbl_t request_vtbl =
{ {
request_destroy, request_destroy,
NULL, request_query_option,
request_set_option request_set_option
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment