summaryrefslogtreecommitdiffstats
path: root/source4/lib/http/http.h
diff options
context:
space:
mode:
authorSamuel Cabrero <samuelcabrero@kernevil.me>2014-09-16 18:05:53 +0200
committerStefan Metzmacher <metze@samba.org>2014-09-22 23:09:08 +0200
commitcc55bc2d45df3406130a5fe127f5eb35e466a7cd (patch)
tree16f6213c3dcb17e52b32521ebd2b384d64a9ce67 /source4/lib/http/http.h
parent8260ae6dbe5e65033d406ba26bbe97a6e4712c4c (diff)
downloadsamba-cc55bc2d45df3406130a5fe127f5eb35e466a7cd.tar.gz
samba-cc55bc2d45df3406130a5fe127f5eb35e466a7cd.tar.xz
samba-cc55bc2d45df3406130a5fe127f5eb35e466a7cd.zip
ncacn_http: Authentication modules for http library
Signed-off-by: Samuel Cabrero <samuelcabrero@kernevil.me> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
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_ */