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
a506d0aa
Commit
a506d0aa
authored
Apr 30, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Add support for NTLM and Negotiate authentication.
parent
d63ef4d8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
request.c
dlls/winhttp/request.c
+0
-0
session.c
dlls/winhttp/session.c
+3
-0
winhttp_private.h
dlls/winhttp/winhttp_private.h
+27
-1
No files found.
dlls/winhttp/request.c
View file @
a506d0aa
This diff is collapsed.
Click to expand it.
dlls/winhttp/session.c
View file @
a506d0aa
...
...
@@ -552,6 +552,9 @@ static void request_destroy( object_header_t *hdr )
release_object
(
&
request
->
connect
->
hdr
);
destroy_authinfo
(
request
->
authinfo
);
destroy_authinfo
(
request
->
proxy_authinfo
);
heap_free
(
request
->
verb
);
heap_free
(
request
->
path
);
heap_free
(
request
->
version
);
...
...
dlls/winhttp/winhttp_private.h
View file @
a506d0aa
...
...
@@ -148,6 +148,29 @@ typedef struct
BOOL
is_request
;
/* part of request headers? */
}
header_t
;
enum
auth_scheme
{
SCHEME_INVALID
=
-
1
,
SCHEME_BASIC
,
SCHEME_NTLM
,
SCHEME_PASSPORT
,
SCHEME_DIGEST
,
SCHEME_NEGOTIATE
};
struct
authinfo
{
enum
auth_scheme
scheme
;
CredHandle
cred
;
CtxtHandle
ctx
;
TimeStamp
exp
;
ULONG
attr
;
ULONG
max_token
;
char
*
data
;
unsigned
int
data_len
;
BOOL
finished
;
/* finished authenticating */
};
typedef
struct
{
object_header_t
hdr
;
...
...
@@ -174,6 +197,8 @@ typedef struct
DWORD
num_headers
;
WCHAR
**
accept_types
;
DWORD
num_accept_types
;
struct
authinfo
*
authinfo
;
struct
authinfo
*
proxy_authinfo
;
}
request_t
;
typedef
struct
_task_header_t
task_header_t
;
...
...
@@ -252,7 +277,8 @@ BOOL set_cookies( request_t *, const WCHAR * ) DECLSPEC_HIDDEN;
BOOL
add_cookie_headers
(
request_t
*
)
DECLSPEC_HIDDEN
;
BOOL
add_request_headers
(
request_t
*
,
LPCWSTR
,
DWORD
,
DWORD
)
DECLSPEC_HIDDEN
;
void
delete_domain
(
domain_t
*
)
DECLSPEC_HIDDEN
;
BOOL
set_server_for_hostname
(
connect_t
*
connect
,
LPCWSTR
server
,
INTERNET_PORT
port
)
DECLSPEC_HIDDEN
;
BOOL
set_server_for_hostname
(
connect_t
*
,
LPCWSTR
,
INTERNET_PORT
)
DECLSPEC_HIDDEN
;
void
destroy_authinfo
(
struct
authinfo
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WinHttpRequest_create
(
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
...
...
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