IDZEBRA
2.2.7
|
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <yaz/log.h>
#include <yaz/xmalloc.h>
#include <passwddb.h>
Go to the source code of this file.
Data Structures | |
struct | passwd_entry |
struct | passwd_db |
Functions | |
Passwd_db | passwd_db_open (void) |
static int | get_entry (const char **p, char *dst, int max) |
static int | passwd_db_file_int (Passwd_db db, const char *fname, int encrypt_flag) |
void | passwd_db_close (Passwd_db db) |
void | passwd_db_show (Passwd_db db) |
int | passwd_db_auth (Passwd_db db, const char *user, const char *pass) |
int | passwd_db_file_crypt (Passwd_db db, const char *fname) |
int | passwd_db_file_plain (Passwd_db db, const char *fname) |
|
static |
Definition at line 59 of file passwddb.c.
Referenced by passwd_db_file_int().
int passwd_db_auth | ( | Passwd_db | db, |
const char * | user, | ||
const char * | pass | ||
) |
Definition at line 128 of file passwddb.c.
References passwd_entry::des, passwd_entry::encrypt_flag, passwd_db::entries, passwd_entry::name, and passwd_entry::next.
Referenced by tst(), and zebra_auth().
void passwd_db_close | ( | Passwd_db | db | ) |
Definition at line 106 of file passwddb.c.
References passwd_entry::des, passwd_db::entries, passwd_entry::name, and passwd_entry::next.
Referenced by tst(), and zebra_stop().
int passwd_db_file_crypt | ( | Passwd_db | db, |
const char * | fname | ||
) |
Definition at line 172 of file passwddb.c.
References passwd_db_file_int().
Referenced by tst(), and zebra_start_res().
|
static |
Definition at line 75 of file passwddb.c.
References passwd_entry::des, passwd_entry::encrypt_flag, passwd_db::entries, get_entry(), passwd_entry::name, and passwd_entry::next.
Referenced by passwd_db_file_crypt(), and passwd_db_file_plain().
int passwd_db_file_plain | ( | Passwd_db | db, |
const char * | fname | ||
) |
Definition at line 181 of file passwddb.c.
References passwd_db_file_int().
Referenced by tst(), and zebra_start_res().
Passwd_db passwd_db_open | ( | void | ) |
Definition at line 52 of file passwddb.c.
References passwd_db::entries.
Referenced by tst(), and zebra_start_res().
void passwd_db_show | ( | Passwd_db | db | ) |
Definition at line 121 of file passwddb.c.
References passwd_entry::des, passwd_db::entries, passwd_entry::name, and passwd_entry::next.