aboutsummaryrefslogtreecommitdiff
path: root/site.h
diff options
context:
space:
mode:
Diffstat (limited to 'site.h')
-rw-r--r--site.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/site.h b/site.h
index f590bad..4e13319 100644
--- a/site.h
+++ b/site.h
@@ -1,3 +1,22 @@
+/*
+ * TODO: It is probably better to use the CONTENT_LENGTH
+ * environment variable to decide the length of the entire
+ * posted query string and then compare it to a max value,
+ * such as:
+ */
+
+#define MAXATTDATA 4096
+#define MAXUSERDATA 512
+#define MAXPOSTDATA 4096
+
+/* Maximum size of newuser parameter, incl. NUL. */
+#define MAXUSERPARAM 512
+
+/* Maximum size of user information, incl. NUL. */
+#define MAXUSERNAME 80
+#define MAXUSERFULL 128
+#define MAXUSERPASS 128
+
struct site{
char *name;
} site; \ No newline at end of file