wininet: Store security flags in WININET_NETCONNECTION.

oldstable
Juan Lang 2010-09-28 16:46:41 -07:00 committed by Alexandre Julliard
parent ce0164c3f7
commit 77c4ade08b
2 changed files with 12 additions and 0 deletions

View File

@ -1887,6 +1887,17 @@ static DWORD HTTPREQ_SetOption(object_header_t *hdr, DWORD option, void *buffer,
http_request_t *req = (http_request_t*)hdr;
switch(option) {
case INTERNET_OPTION_SECURITY_FLAGS:
{
DWORD flags;
if (!buffer || size != sizeof(DWORD))
return ERROR_INVALID_PARAMETER;
flags = *(DWORD *)buffer;
TRACE("%08x\n", flags);
req->netConnection.security_flags = flags;
return ERROR_SUCCESS;
}
case INTERNET_OPTION_SEND_TIMEOUT:
case INTERNET_OPTION_RECEIVE_TIMEOUT:
TRACE("INTERNET_OPTION_SEND/RECEIVE_TIMEOUT\n");

View File

@ -53,6 +53,7 @@ typedef struct
BOOL useSSL;
int socketFD;
void *ssl_s;
DWORD security_flags;
} WININET_NETCONNECTION;
static inline LPWSTR heap_strdupW(LPCWSTR str)