Hans Leidekker : winhttp: Implement WinHttpQueryOption( WINHTTP_OPTION_SECURITY_FLAGS).
Alexandre Julliard
julliard at winehq.org
Fri Sep 5 10:34:05 CDT 2008
Module: wine
Branch: master
Commit: b34e816f4a8a7284a29d1a20e56a5d37b63b897b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b34e816f4a8a7284a29d1a20e56a5d37b63b897b
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Sep 5 14:10:57 2008 +0200
winhttp: Implement WinHttpQueryOption(WINHTTP_OPTION_SECURITY_FLAGS).
---
dlls/winhttp/session.c | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index d429fcb..8725f7e 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -245,6 +245,25 @@ static void request_destroy( object_header_t *hdr )
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 )
{
switch (option)
@@ -289,7 +308,7 @@ static BOOL request_set_option( object_header_t *hdr, DWORD option, LPVOID buffe
static const object_vtbl_t request_vtbl =
{
request_destroy,
- NULL,
+ request_query_option,
request_set_option
};
More information about the wine-cvs
mailing list