X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=common%2Fauth.h;fp=common%2Fauth.h;h=9d3fe499d036cc69560f7ca052bfa281d131bfaf;hb=65363bdbdec43b2efd906d8fa848fc4d69c529d2;hp=24fd2935fe5b8ef032ab5539249fc8f37b0f90cc;hpb=c1465d733ef80a19bff0056935dbf15539f122c7;p=blerg.git diff --git a/common/auth.h b/common/auth.h index 24fd293..9d3fe49 100644 --- a/common/auth.h +++ b/common/auth.h @@ -4,6 +4,8 @@ #ifndef _AUTH_H #define _AUTH_H +#include + #define TOKEN_SIZE 16 #define MAX_PASSWORD_LENGTH 64 #define SCRYPT_SALT_SIZE 8 @@ -15,7 +17,7 @@ int auth_set_password(const char *username, const char *password); int auth_get_password_version(const char *username); int auth_get_password(const char *username, char *password); -int auth_get_salt(const char *username, char *salt); +int auth_get_salt(const char *username, uint8_t *salt); int auth_check_password(const char *username, const char *password); char * auth_login(const char *username, const char *password); int auth_logout(const char *username, const char *token);