summaryrefslogtreecommitdiffstats
path: root/database/sqlite/edb-sqlite.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-01-02 17:41:48 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-01-02 17:41:48 +0100
commit241b14d771d247127508cf7b20f833b9dbe0abda (patch)
treee43906492727d02827a21147f380ffb670cfc62a /database/sqlite/edb-sqlite.c
parenta2ca4fdf6c6eee2d229c8cb7770f37accd467d93 (diff)
downloadeurephia-241b14d771d247127508cf7b20f833b9dbe0abda.tar.gz
eurephia-241b14d771d247127508cf7b20f833b9dbe0abda.tar.xz
eurephia-241b14d771d247127508cf7b20f833b9dbe0abda.zip
Prepared passwdhash function to allow salting and be prepared for other hashing algorithms
Diffstat (limited to 'database/sqlite/edb-sqlite.c')
-rw-r--r--database/sqlite/edb-sqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/sqlite/edb-sqlite.c b/database/sqlite/edb-sqlite.c
index 27897f1..5b8073c 100644
--- a/database/sqlite/edb-sqlite.c
+++ b/database/sqlite/edb-sqlite.c
@@ -236,7 +236,7 @@ int eDBauth_user(eurephiaCTX *ctx, const int certid, const char *username, const
// Generate SHA512 hash of password, used for password auth
- crpwd = passwdhash(passwd);
+ crpwd = passwdhash(pwdSHA512, NULL, passwd);
res = sqlite_query(ctx,
"SELECT uicid, ou.uid, activated, deactivated, bl1.blid, bl2.blid, "