diff options
author | onefang | 2020-04-22 05:41:23 +1000 |
---|---|---|
committer | onefang | 2020-04-22 05:41:23 +1000 |
commit | 8c6c04fbbbd4a9da243f4618d61adaa00a6db3d6 (patch) | |
tree | 492fa05698c32b3e79add2b75c3a8ef3e6e39572 /src/sledjchisl | |
parent | Only check password on login. (diff) | |
download | opensim-SC_OLD-8c6c04fbbbd4a9da243f4618d61adaa00a6db3d6.zip opensim-SC_OLD-8c6c04fbbbd4a9da243f4618d61adaa00a6db3d6.tar.gz opensim-SC_OLD-8c6c04fbbbd4a9da243f4618d61adaa00a6db3d6.tar.bz2 opensim-SC_OLD-8c6c04fbbbd4a9da243f4618d61adaa00a6db3d6.tar.xz |
Comments ++ -- and commented out unused code.
Diffstat (limited to '')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 11 |
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 |
366 | typedef struct _sesh sesh; | 366 | typedef struct _sesh sesh; |
367 | // Details about the logged in web user. | ||
367 | struct _sesh | 368 | struct _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. | ||
377 | struct _reqData | 379 | struct _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 | */ | ||
2962 | char *checkSLOSpassword(reqData *Rd, char *salt, char *password, char *passwordHash, char *fail) | 2960 | char *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 | ||
3076 | char *checkLinky(reqData *Rd) | 3074 | char *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 | /* | |
5062 | void listPage(reqData *Rd, char *message) | 5061 | void 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 | ||
5095 | void account_html(char *file, reqData *Rd, HTMLfile *thisFile) | 5094 | void account_html(char *file, reqData *Rd, HTMLfile *thisFile) |
5096 | { | 5095 | { |