diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-30 21:56:11 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-30 21:56:23 +0100 |
commit | 5ddf71b3638788f8d1dd1d312ec79acfac7f3e74 (patch) | |
tree | e9cb2ceba83eac4478633f616277d161cf0ee0b9 /uhttpd.h | |
parent | 9767b5af1c379608a7502e7820867af7090e9ee2 (diff) |
add config parser
Diffstat (limited to 'uhttpd.h')
-rw-r--r-- | uhttpd.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |