auth.h revision cd75c360f244c96b9ee10e01ee3a66fad13183c8
#ifndef AUTH_H
#define AUTH_H
#include "auth-settings.h"
#define PASSWORD_HIDDEN_STR "<hidden>"
enum auth_passdb_skip {
};
enum auth_userdb_skip {
};
enum auth_db_rule {
};
struct auth_passdb {
struct auth_passdb *next;
const struct auth_passdb_settings *set;
struct passdb_module *passdb;
enum auth_passdb_skip skip;
enum auth_db_rule result_success;
enum auth_db_rule result_failure;
};
struct auth_userdb {
struct auth_userdb *next;
const struct auth_userdb_settings *set;
struct userdb_module *userdb;
enum auth_userdb_skip skip;
enum auth_db_rule result_success;
enum auth_db_rule result_failure;
};
struct auth {
const char *service;
const struct auth_settings *set;
const struct mechanisms_register *reg;
struct auth_passdb *masterdbs;
struct auth_passdb *passdbs;
struct auth_userdb *userdbs;
};
extern struct auth_penalty *auth_penalty;
struct auth *auth_default_service(void);
const struct mechanisms_register *reg,
const char *const *services);
void auths_init(void);
void auths_deinit(void);
void auths_free(void);
#endif