summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/uhttpd/src/uhttpd.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-20 23:51:51 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-20 23:51:51 +0000
commit95b9bb0f69fa4ed2bc2c414a614d1723b1e59e21 (patch)
tree2ff64ee3b570d8e269e7e5a24e33a76944bf8d96 /contrib/package/uhttpd/src/uhttpd.h
parent1ecf7ac9fa9499d79ccebf805090b2fd1310f3d9 (diff)
uhttpd: add basic auth infrastructure
Diffstat (limited to 'contrib/package/uhttpd/src/uhttpd.h')
-rw-r--r--contrib/package/uhttpd/src/uhttpd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/package/uhttpd/src/uhttpd.h b/contrib/package/uhttpd/src/uhttpd.h
index aa9186782d..c6212109b4 100644
--- a/contrib/package/uhttpd/src/uhttpd.h
+++ b/contrib/package/uhttpd/src/uhttpd.h
@@ -42,6 +42,7 @@
#define UH_LIMIT_LISTENERS 16
#define UH_LIMIT_CLIENTS 64
+#define UH_LIMIT_AUTHREALMS 8
#define UH_HTTP_MSG_GET 0
#define UH_HTTP_MSG_HEAD 1
@@ -85,11 +86,19 @@ struct client {
#endif
};
+struct auth_realm {
+ char path[PATH_MAX];
+ char realm[128];
+ char user[32];
+ char pass[128];
+};
+
struct http_request {
int method;
float version;
char *url;
char *headers[UH_LIMIT_HEADERS];
+ struct auth_realm *realm;
};
struct http_response {