summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-07-02 16:19:16 +0200
committerJo-Philipp Wich <jo@mein.io>2017-07-02 16:19:16 +0200
commitad93be7632963da1bd5b67d71021d1d63ecfd909 (patch)
treeab35e6e73dbf619c8cb683a95b080db37fb8ef13 /uhttpd.h
parentfa51d7fbc67aa27b423c50c77b817514de6def09 (diff)
auth: store parsed username and password
Store the parsed username and password information as HTTP headers in the clients header blob buffer for later use by proc.c Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/uhttpd.h b/uhttpd.h
index fe05f0d..b358a0b 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -300,7 +300,8 @@ void uh_client_read_cb(struct client *cl);
void uh_client_notify_state(struct client *cl);
void uh_auth_add(const char *path, const char *user, const char *pass);
-bool uh_auth_check(struct client *cl, struct path_info *pi);
+bool uh_auth_check(struct client *cl, const char *path, const char *auth,
+ char **uptr, char **pptr);
void uh_close_listen_fds(void);
void uh_close_fds(void);