IDZEBRA  2.1.2
Data Structures | Functions
passwddb.c File Reference
#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)
 

Function Documentation

static int get_entry ( const char **  p,
char *  dst,
int  max 
)
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 
)
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 int passwd_db_file_int ( Passwd_db  db,
const char *  fname,
int  encrypt_flag 
)
static
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)