summaryrefslogtreecommitdiffstats
path: root/include/proto.h
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-06 22:24:50 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-06 22:24:50 +0800
commit2cf681116231eb085a985917ae19188f06dc041e (patch)
tree43a55cb156587c9451d27ea3aaaa1a0ad9e51a5c /include/proto.h
parent9c4e5e52c6b9de0ff0873fd76a3d187a19fb45da (diff)
downloadpttbbs-2cf681116231eb085a985917ae19188f06dc041e.tar
pttbbs-2cf681116231eb085a985917ae19188f06dc041e.tar.gz
pttbbs-2cf681116231eb085a985917ae19188f06dc041e.tar.bz2
pttbbs-2cf681116231eb085a985917ae19188f06dc041e.tar.lz
pttbbs-2cf681116231eb085a985917ae19188f06dc041e.tar.xz
pttbbs-2cf681116231eb085a985917ae19188f06dc041e.tar.zst
pttbbs-2cf681116231eb085a985917ae19188f06dc041e.zip
- refine and prepare for login daemon:
* change str_guest and str_new to macro definition names * make passwd utilites (check, verify, ...) available in util_passwd * make logattemtp() use assigned time and host. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4498 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/proto.h')
-rw-r--r--include/proto.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/proto.h b/include/proto.h
index 414e8b6c..b17086c9 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -494,7 +494,6 @@ int getindex(const char *fpath, fileheader_t *fh, int start);
int u_register(void);
int bad_user_id(const char *userid);
int getnewuserid(void);
-int checkpasswd(const char *passwd, char *test);
int setupnewuser(const userec_t *user);
int regform_estimate_queuesize();
void new_register(void);
@@ -502,7 +501,6 @@ void check_register(void);
void check_birthday(void);
int check_regmail(char *email); // check and prompt for invalid reason; will str_lower() mail domain.
void delregcodefile(void);
-char *genpasswd(char *pw);
/* reversi */
void reversi(int s, ChessGameMode mode);
@@ -740,6 +738,9 @@ void passwd_force_update(int flag);
int initcuser(const char *userid);
int freecuser(void);
int passwd_add_my_numpost(int diff); // temporary hack before new account system ready.
+char* genpasswd (char *pw);
+int checkpasswd(const char *passwd, char *test); // test will be destroyed
+void logattempt (const char *uid, char type, time4_t now, const char *fromhost);
// current user help utilities
int pwcuSetSignature (unsigned char newsig);