aboutsummaryrefslogtreecommitdiff
path: root/site.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 22:51:30 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 22:51:44 +0200
commit9ff1b81d65c370a938cd9d9c033e04e395f00704 (patch)
tree3f507a48d8d39f27a36b3fab32b0a230abe512f4 /site.h
parent2b915a42f6665b4110338cfde30eedc55abe7f3c (diff)
downloadcforum-9ff1b81d65c370a938cd9d9c033e04e395f00704.tar.gz
New user
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