Functions | |
int | u_pwd_init (const char *res_uri, u_pwd_open_cb_t cb_open, u_pwd_load_cb_t cb_load, u_pwd_close_cb_t cb_close, u_pwd_notify_cb_t cb_notify, u_pwd_hash_cb_t cb_hash, size_t hash_len, int in_memory, u_pwd_t **ppwd) |
Initialize a pwd instance. | |
int | u_pwd_retr (u_pwd_t *pwd, const char *user, u_pwd_rec_t **prec) |
Retrieve a pwd record. | |
int | u_pwd_auth_user (u_pwd_t *pwd, const char *user, const char *password) |
Check if user has presented the right credential. | |
void | u_pwd_term (u_pwd_t *pwd) |
Dispose the supplied pwd instance. | |
int | u_pwd_init_file (const char *res_uri, u_pwd_hash_cb_t cb_hash, size_t hash_len, int in_memory, u_pwd_t **ppwd) |
Init specialization for file-based password db. | |
void | u_pwd_rec_free (u_pwd_t *pwd, u_pwd_rec_t *rec) |
Dispose a pwd_rec record (must be used on returned pwd_rec record from u_pwd_retr on in_memory pwd instances). | |
const char * | u_pwd_rec_get_user (u_pwd_rec_t *rec) |
Return the user field of the supplied pwd record. | |
const char * | u_pwd_rec_get_password (u_pwd_rec_t *rec) |
Return the password field of the supplied pwd record. | |
const char * | u_pwd_rec_get_opaque (u_pwd_rec_t *rec) |
Return the opaque field of the supplied pwd record. | |
int | u_pwd_in_memory (u_pwd_t *pwd) |
Return the in_memory flag of the supplied pwd instance. |
|
Definition at line 175 of file pwd.c. References u_free(), u_pwd_rec_free(), u_pwd_retr(), and u_zalloc(). |
|
|
|
Definition at line 98 of file pwd.c. References u_pwd_term(), and u_zalloc(). Referenced by u_pwd_init_file(). |
|
Definition at line 249 of file pwd.c. References u_pwd_init(). |
|
Definition at line 265 of file pwd.c. References u_free(). Referenced by u_pwd_auth_user(). |
|
|
|
|
|
|
|
Definition at line 152 of file pwd.c. Referenced by u_pwd_auth_user(). |
|
Definition at line 225 of file pwd.c. Referenced by u_pwd_init(). |