aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/sledjchisl/sledjchisl.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/sledjchisl/sledjchisl.c11
1 files changed, 5 insertions, 6 deletions
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
364#define HMACSIZE EVP_MAX_MD_SIZE * 2 364#define HMACSIZE EVP_MAX_MD_SIZE * 2
365#define HMACSIZE64 88 365#define HMACSIZE64 88
366typedef struct _sesh sesh; 366typedef struct _sesh sesh;
367// Details about the logged in web user.
367struct _sesh 368struct _sesh
368{ 369{
369 char salt[256 + 1], seshID[256 + 1], 370 char salt[256 + 1], seshID[256 + 1],
@@ -374,6 +375,7 @@ struct _sesh
374 boolean isLinky; 375 boolean isLinky;
375}; 376};
376 377
378// Details about the current web request.
377struct _reqData 379struct _reqData
378{ 380{
379 lua_State *L; 381 lua_State *L;
@@ -2955,10 +2957,6 @@ char *newSLOSsalt(reqData *Rd)
2955 return salt; 2957 return salt;
2956} 2958}
2957 2959
2958/* TODO - rewrite this -
2959 Don't store things in Rd->stuff. Salt was passed in, and not modified.
2960 Return calculated passHash, not int ret. Returns a NULL if things went wrong.
2961*/
2962char *checkSLOSpassword(reqData *Rd, char *salt, char *password, char *passwordHash, char *fail) 2960char *checkSLOSpassword(reqData *Rd, char *salt, char *password, char *passwordHash, char *fail)
2963{ 2961{
2964 char *ret = NULL; 2962 char *ret = NULL;
@@ -3075,6 +3073,7 @@ d("Lua reading (%s) %s = %s", type, n, getStrH(tnm, n));
3075 3073
3076char *checkLinky(reqData *Rd) 3074char *checkLinky(reqData *Rd)
3077{ 3075{
3076// TODO - should be from Rd.shs->linky-hashish
3078 char *ret = xstrdup(""), *t0 = getStrH(Rd->stuff, "linky-hashish"); 3077 char *ret = xstrdup(""), *t0 = getStrH(Rd->stuff, "linky-hashish");
3079 3078
3080 if ('\0' != t0[0]) 3079 if ('\0' != t0[0])
@@ -5058,7 +5057,7 @@ static int collectFields(reqData *Rd, inputForm *iF, inputValue *iV, int t)
5058 return i; 5057 return i;
5059} 5058}
5060 5059
5061 5060/*
5062void listPage(reqData *Rd, char *message) 5061void listPage(reqData *Rd, char *message)
5063{ 5062{
5064// TODO - should check if the user is a god before allowing this. 5063// TODO - should check if the user is a god before allowing this.
@@ -5090,7 +5089,7 @@ void listPage(reqData *Rd, char *message)
5090 Rd->reply->addstrf(Rd->reply, "<p>%s</p>\n", message); 5089 Rd->reply->addstrf(Rd->reply, "<p>%s</p>\n", message);
5091 HTMLfooter(Rd->reply); 5090 HTMLfooter(Rd->reply);
5092} 5091}
5093 5092*/
5094 5093
5095void account_html(char *file, reqData *Rd, HTMLfile *thisFile) 5094void account_html(char *file, reqData *Rd, HTMLfile *thisFile)
5096{ 5095{