summaryrefslogtreecommitdiffstats
path: root/source4/lib/http/http.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/http/http.h')
-rw-r--r--source4/lib/http/http.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/source4/lib/http/http.h b/source4/lib/http/http.h
index 671f3836e5..75a04b1179 100644
--- a/source4/lib/http/http.h
+++ b/source4/lib/http/http.h
@@ -63,10 +63,8 @@ enum http_cmd_type {
};
enum http_auth_method {
- HTTP_AUTH_AUTO,
- HTTP_AUTH_BASIC,
+ HTTP_AUTH_BASIC=1,
HTTP_AUTH_NTLM,
- HTTP_AUTH_NEGOTIATE,
};
struct http_header {
@@ -108,4 +106,15 @@ NTSTATUS http_read_response_recv(struct tevent_req *,
TALLOC_CTX *,
struct http_request **);
+/* HTTP authenticated request */
+struct tevent_req *http_send_auth_request_send(TALLOC_CTX *,
+ struct tevent_context *,
+ struct tstream_context *,
+ struct tevent_queue *,
+ struct http_request *,
+ struct cli_credentials *,
+ struct loadparm_context *,
+ enum http_auth_method);
+NTSTATUS http_send_auth_request_recv(struct tevent_req *);
+
#endif /* _HTTP_H_ */