summaryrefslogtreecommitdiffstats
path: root/include/cmbbs.h
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-12 20:22:07 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-12 20:22:07 +0800
commit2f6959aecaaaed4980f7c8740f2fae2c8fc326ca (patch)
treed3d59847cadac9939bc0e9945530cfd1b7a5caeb /include/cmbbs.h
parentc5f8e88cde8ad8120fd5e2bdaddd2f5591502aa8 (diff)
downloadpttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.gz
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.bz2
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.lz
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.xz
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.zst
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.zip
* refine cmbbs: move util_passwd.o to cmbbs/passwd.c.
* note: in order to workaround the buggy/dirty synchronization hacks, changed 'passwd_query' and 'passwd_update' to passwd_sync_*. * util/* and daemon/* use directly passwd_query/update, and mbbsd should use passwd_sync_*. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4574 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/cmbbs.h')
-rw-r--r--include/cmbbs.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/cmbbs.h b/include/cmbbs.h
index 48d36ed3..7ea98e7a 100644
--- a/include/cmbbs.h
+++ b/include/cmbbs.h
@@ -51,7 +51,6 @@ extern void remove_from_uhash(int n);
extern int dosearchuser(const char *userid, char *rightid);
extern int searchuser(const char *userid, char *rightid);
extern void setuserid(int num, const char *userid);
-extern int getuser(const char *userid, userec_t *xuser);
extern userinfo_t *search_ulistn(int uid, int unum);
extern userinfo_t *search_ulist_pid(int pid);
extern userinfo_t *search_ulist_userid(const char *userid);
@@ -81,4 +80,17 @@ extern void add_cooldowntime(int uid, int min);
extern void add_posttimes(int uid, int times);
# endif
+/* passwd */
+extern int passwd_init (void);
+extern void passwd_lock (void);
+extern void passwd_unlock(void);
+extern int passwd_update_money(int num);
+extern int passwd_update(int num, userec_t *buf);
+extern int passwd_query (int num, userec_t *buf);
+extern int passwd_load_user(const char *userid, userec_t *buf);
+extern int passwd_apply (void *data, int (*fptr)(void *, int, userec_t *));
+extern int checkpasswd (const char *passwd, char *test); // test will be destroyed
+extern void logattempt (const char *uid, char type, time4_t now, const char *fromhost);
+extern char*genpasswd (char *pw);
+
#endif