diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-12 20:22:07 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-12 20:22:07 +0800 |
commit | 2f6959aecaaaed4980f7c8740f2fae2c8fc326ca (patch) | |
tree | d3d59847cadac9939bc0e9945530cfd1b7a5caeb /include/proto.h | |
parent | c5f8e88cde8ad8120fd5e2bdaddd2f5591502aa8 (diff) | |
download | pttbbs-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/proto.h')
-rw-r--r-- | include/proto.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/include/proto.h b/include/proto.h index 6716aa30..66226d9d 100644 --- a/include/proto.h +++ b/include/proto.h @@ -115,8 +115,9 @@ unsigned int getutmpmode(void); void setutmpmode(unsigned int mode); void purge_utmp(userinfo_t *uentp); void getnewutmpent(const userinfo_t *up); -int apply_ulist(int (*fptr)(const userinfo_t *)); -char *getuserid(int num); +int apply_ulist(int (*fptr)(const userinfo_t *)); +char*getuserid(int num); +int getuser(const char *userid, userec_t *xuser); int searchnewuser(int mode); int count_logins(int uid, int show); int is_BM_cache(int); @@ -683,27 +684,18 @@ int RcyAddDir (const fileheader_t *fhdr, int bid, const char *direct); int RcyRecycleBin(void); /* passwd */ -int passwd_init(void); -int passwd_update(int num, userec_t *buf); -int passwd_query(int num, userec_t *buf); -int passwd_apply(void *data, int (*fptr)(void *, int, userec_t *)); -void passwd_lock(void); -void passwd_unlock(void); -int passwd_update_money(int num); +int initcuser (const char *userid); 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); +int passwd_sync_update (int num, userec_t * buf); +int passwd_sync_query (int num, userec_t * buf); + +// int passwd_add_my_numpost(int diff); // temporary hack before new account system ready. // current user help utilities int pwcuSetSignature (unsigned char newsig); int pwcuBitSetLevel (unsigned int mask); int pwcuBitUnsetLevel (unsigned int mask); - /* calendar */ int calendar(void); int ParseDate(const char *date, int *year, int *month, int *day); |