From 8c6c04fbbbd4a9da243f4618d61adaa00a6db3d6 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 22 Apr 2020 05:41:23 +1000 Subject: Comments ++ -- and commented out unused code. --- src/sledjchisl/sledjchisl.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/sledjchisl') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index d150a2f..99a4adb 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -364,6 +364,7 @@ static void newBuildPage(char *name, pageBuildFunction func, pageBuildFunction e #define HMACSIZE EVP_MAX_MD_SIZE * 2 #define HMACSIZE64 88 typedef struct _sesh sesh; +// Details about the logged in web user. struct _sesh { char salt[256 + 1], seshID[256 + 1], @@ -374,6 +375,7 @@ struct _sesh boolean isLinky; }; +// Details about the current web request. struct _reqData { lua_State *L; @@ -2955,10 +2957,6 @@ char *newSLOSsalt(reqData *Rd) return salt; } -/* TODO - rewrite this - - Don't store things in Rd->stuff. Salt was passed in, and not modified. - Return calculated passHash, not int ret. Returns a NULL if things went wrong. -*/ char *checkSLOSpassword(reqData *Rd, char *salt, char *password, char *passwordHash, char *fail) { char *ret = NULL; @@ -3075,6 +3073,7 @@ d("Lua reading (%s) %s = %s", type, n, getStrH(tnm, n)); char *checkLinky(reqData *Rd) { +// TODO - should be from Rd.shs->linky-hashish char *ret = xstrdup(""), *t0 = getStrH(Rd->stuff, "linky-hashish"); if ('\0' != t0[0]) @@ -5058,7 +5057,7 @@ static int collectFields(reqData *Rd, inputForm *iF, inputValue *iV, int t) return i; } - +/* void listPage(reqData *Rd, char *message) { // TODO - should check if the user is a god before allowing this. @@ -5090,7 +5089,7 @@ void listPage(reqData *Rd, char *message) Rd->reply->addstrf(Rd->reply, "
%s
\n", message); HTMLfooter(Rd->reply); } - +*/ void account_html(char *file, reqData *Rd, HTMLfile *thisFile) { -- cgit v1.1