passdb.h revision 35136dd2baf8dc30e4e754294ed81ff48e8c1e64
#ifndef __PASSDB_H
#define __PASSDB_H
#define IS_VALID_PASSWD(pass) \
struct auth_request;
enum passdb_credentials {
};
enum passdb_result {
PASSDB_RESULT_OK = 1
};
struct auth_request *request);
const char *password,
struct auth_request *request);
struct auth_request *request);
struct passdb_module_interface {
const char *name;
struct passdb_module *
/* Check if plaintext password matches */
/* Return authentication credentials, set in
auth_request->credentials. */
/* Update credentials */
const char *new_credentials,
};
struct passdb_module {
/* The caching key for this module, or NULL if caching isn't wanted. */
const char *cache_key;
/* Default password scheme for this module.
If cache_key is set, must not be NULL. */
const char *default_pass_scheme;
/* If blocking is set to TRUE, use child processes to access
this passdb. */
bool blocking;
struct passdb_module_interface iface;
};
const char *
struct auth_request *auth_request);
#include "auth-request.h"
#endif