1 /* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
2 * BSD-style license. Please see the COPYING file for details.
8 #define MAX_PASSWORD_LENGTH 64
9 #define SCRYPT_SALT_SIZE 8
10 #define SCRYPT_OUTPUT_SIZE 32
11 #define SCRYPT_N 1<<14
15 int auth_set_password(const char *, const char *);
16 int auth_get_password_version(const char *);
17 int auth_get_password(const char *, char *);
18 int auth_get_salt(const char *, char *);
19 int auth_check_password(const char *, const char *);
20 char * auth_login(const char *username, const char *password);
21 int auth_logout(const char *username, const char *token);
22 int auth_check_token(const char *username, const char *given_token);