version 1.1.2.2, 2012/09/18 08:44:19
|
version 1.1.2.3, 2012/09/18 13:24:50
|
Line 71 typedef int (*cb_acct_f)(void * /*current db_record*/,
|
Line 71 typedef int (*cb_acct_f)(void * /*current db_record*/,
|
|
|
|
|
struct tagUser { |
struct tagUser { |
|
int usr_fields; |
|
|
ait_val_t usr_name; |
ait_val_t usr_name; |
ait_val_t usr_pass; |
ait_val_t usr_pass; |
ait_val_t usr_uid; |
ait_val_t usr_uid; |
Line 82 struct tagUser {
|
Line 84 struct tagUser {
|
ait_val_t usr_home; |
ait_val_t usr_home; |
ait_val_t usr_shell; |
ait_val_t usr_shell; |
|
|
SLIST_ENTRY(tagCfg) usr_next; | SLIST_ENTRY(tagUser) usr_next; |
RB_ENTRY(tagCfg) usr_node; | RB_ENTRY(tagUser) usr_node; |
}; |
}; |
typedef struct tagPWD { |
typedef struct tagPWD { |
pthread_mutex_t pwd_mtx; |
pthread_mutex_t pwd_mtx; |
Line 147 void cfgUnloadPasswd(pwd_root_t * __restrict pwd);
|
Line 149 void cfgUnloadPasswd(pwd_root_t * __restrict pwd);
|
* return: -1 error or 0 ok |
* return: -1 error or 0 ok |
*/ |
*/ |
int cfgCreatePasswd(const char *pwdName, pwd_root_t * __restrict pwd); |
int cfgCreatePasswd(const char *pwdName, pwd_root_t * __restrict pwd); |
|
|
|
/* |
|
* cfgReadPasswd() - Read file and add new item at password root |
|
* |
|
* @f = File resource |
|
* @pwd = Password root |
|
* return: -1 error or 0 ok |
|
*/ |
|
int cfgReadPasswd(FILE *f, pwd_root_t * __restrict pwd); |
|
/* |
|
* cfgWritePasswd() - Write passwords from memory |
|
* |
|
* @f = File handle |
|
* @pwd = Password root |
|
* return: -1 error or 0 ok |
|
*/ |
|
int cfgWritePasswd(FILE *f, pwd_root_t * __restrict pwd); |
|
|
#if 0 |
#if 0 |
/* |
/* |