summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-02 14:47:12 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-02 14:47:12 +0100
commit76f5d84671a258274b0b647d234431ad70b4553e (patch)
tree353f16cc576f23bd559a2390dd505eb0b4eba6a5 /uhttpd.h
parentd0aab7b1fc7c94c3d6d41990e7615be85b58e640 (diff)
downloaduhttpd2-76f5d84671a258274b0b647d234431ad70b4553e.tar.gz
add auth support
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index e1d061f..cb56fcd 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -103,6 +103,7 @@ struct path_info {
const char *name;
const char *info;
const char *query;
+ const char *auth;
bool redirected;
struct stat stat;
const struct interpreter *ip;
@@ -213,6 +214,7 @@ uh_client_error(struct client *cl, int code, const char *summary, const char *fm
void uh_handle_request(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);
void uh_close_listen_fds(void);
void uh_close_fds(void);