aboutsummaryrefslogtreecommitdiff
path: root/cforum.h
diff options
context:
space:
mode:
Diffstat (limited to 'cforum.h')
-rw-r--r--cforum.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cforum.h b/cforum.h
index 13d0d30..a7572e2 100644
--- a/cforum.h
+++ b/cforum.h
@@ -33,6 +33,7 @@ struct user{
char *name;
char *full;
char *hash;
+ char *salt;
};
struct query{
@@ -48,6 +49,7 @@ struct site{
/***** Functions *****/
/* ctl.c */
+void login(void);
void newatt(void);
void newpost(void);
void newuser(void);
@@ -59,6 +61,8 @@ void showuser(int);
/* db.c */
int addatt(struct att *);
int adduser(struct user *);
+int haspass(struct user *, char *);
+void makehash(char *, char **, char **);
struct att *getatt(sqlite3_stmt *);
struct post *getpost(sqlite3_stmt *);
struct user *getuser(sqlite3_stmt *);
@@ -88,7 +92,7 @@ int urldecode(char *, int);
/* Maximum size of user information, incl. NUL. */
#define MAXUSERNAME 40
#define MAXUSERFULL 128
-#define MAXUSERPASS 128
+#define MAXUSERPASS 72
/***** Variables *****/