summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-30 21:56:11 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-12-30 21:56:23 +0100
commit5ddf71b3638788f8d1dd1d312ec79acfac7f3e74 (patch)
treee9cb2ceba83eac4478633f616277d161cf0ee0b9 /uhttpd.h
parent9767b5af1c379608a7502e7820867af7090e9ee2 (diff)
add config parser
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index 0cb8eb8..0c1cd8b 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -49,6 +49,13 @@ struct config {
int http_keepalive;
};
+struct auth_realm {
+ struct list_head list;
+ char path[PATH_MAX];
+ char user[32];
+ char pass[128];
+};
+
enum http_method {
UH_HTTP_MSG_GET,
UH_HTTP_MSG_POST,
@@ -146,4 +153,6 @@ uh_client_error(struct client *cl, int code, const char *summary, const char *fm
void uh_handle_file_request(struct client *cl);
+void uh_auth_add(const char *path, const char *user, const char *pass);
+
#endif