db-passwd-file.h revision fb1927dad988a34040afe4a1e51a5dbe3c085c8f
#ifndef DB_PASSWD_FILE_H
#define DB_PASSWD_FILE_H
#include "hash.h"
#define PASSWD_FILE_DEFAULT_USERNAME_FORMAT "%u"
#define PASSWD_FILE_DEFAULT_SCHEME "CRYPT"
struct passwd_user {
char *home;
char *password;
char **extra_fields;
};
struct passwd_file {
struct db_passwd_file *db;
int refcount;
char *path;
int fd;
};
struct db_passwd_file {
struct db_passwd_file *next;
int refcount;
char *path;
struct passwd_file *default_file;
unsigned int vars:1;
unsigned int userdb:1;
unsigned int userdb_warn_missing:1;
unsigned int debug:1;
};
struct passwd_user *
const char *username_format);
struct db_passwd_file *
#endif