summaryrefslogtreecommitdiff
path: root/src/elogin/md5calc.h
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-02-06 01:15:11 -0300
committerJesusaves <cpntb1@ymail.com>2022-02-06 01:15:11 -0300
commit9bf7e921e7807def51f32ff48ad6920618735a8d (patch)
treebc326d6fe86cb538a724d064788cbaae96ba1edf /src/elogin/md5calc.h
parent660b9e5afc01a2db7c0a796b599f80deddc0cfd2 (diff)
downloadevol-hercules-9bf7e921e7807def51f32ff48ad6920618735a8d.tar.gz
evol-hercules-9bf7e921e7807def51f32ff48ad6920618735a8d.tar.bz2
evol-hercules-9bf7e921e7807def51f32ff48ad6920618735a8d.tar.xz
evol-hercules-9bf7e921e7807def51f32ff48ad6920618735a8d.zip
All new accounts will now have their passwords stored in SHA256.
Supersedes all previous authentication methods, except VAULT TOKEN. This is done on registration and when changing password.
Diffstat (limited to 'src/elogin/md5calc.h')
-rw-r--r--src/elogin/md5calc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/elogin/md5calc.h b/src/elogin/md5calc.h
index cf82738..d3db357 100644
--- a/src/elogin/md5calc.h
+++ b/src/elogin/md5calc.h
@@ -7,7 +7,9 @@ void MD5_String (const char *string, char *output);
void MD5_String2binary (const char *string, char *output);
char *MD5_saltcrypt(const char *key, const char *salt);
char *make_salt(void);
+char *SHA256_CRYPT(const char *key);
int pass_ok(const char *password, const char *crypted);
+int pass_sha256(const char *password, const char *crypted);
in_addr_t MD5_ip(char *secret, in_addr_t ip);
#endif