aboutsummaryrefslogtreecommitdiff
path: root/db.c
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2021-01-04 21:06:31 +0100
committerTom Smeding <tom.smeding@gmail.com>2021-01-04 21:06:31 +0100
commit32566e4d640e354adaa83cf9b7240bfc2cdd83e3 (patch)
treeef025e3f6894d660fdd41443ed3fc453b2f331cc /db.c
parent9acdb2720b7afe82c804725db816d0914bc74648 (diff)
server: Move PASSHASH defines to separate header
Diffstat (limited to 'db.c')
-rw-r--r--db.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/db.c b/db.c
index 5020b08..a349b44 100644
--- a/db.c
+++ b/db.c
@@ -5,6 +5,7 @@
#include <sqlite3.h>
#include <sodium.h>
#include "db.h"
+#include "hashing_settings.h"
#include "schema.sql.h"
@@ -12,9 +13,6 @@
#define DATABASE_VERSION 3
-#define PASSHASH_OPSLIMIT 3
-#define PASSHASH_MEMLIMIT crypto_pwhash_MEMLIMIT_INTERACTIVE
-
#define MAX_DATABASE_SIZE_BYTES ((i64)2 * 1024 * 1024 * 1024)
// #define INSECURE_PURE_SPEED