X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=blobdiff_plain;f=uhttpd.h;h=1e487f8ab526eeb05431ece86e079e34dad23f42;hp=0cb8eb8ad9c9d0764327dedbe482b5bf9d409966;hb=363e794df318080ea8f1878f95027161bb82b513;hpb=30fff08a44094df9b775f2e4bf9f5abceb847415 diff --git a/uhttpd.h b/uhttpd.h index 0cb8eb8..1e487f8 100644 --- a/uhttpd.h +++ b/uhttpd.h @@ -28,6 +28,7 @@ #include #include #include +#include #include "utils.h" @@ -47,6 +48,14 @@ struct config { int tcp_keepalive; int max_requests; int http_keepalive; + int script_timeout; +}; + +struct auth_realm { + struct list_head list; + char *path; + char *user; + char *pass; }; enum http_method { @@ -146,4 +155,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