passdb.h revision e9503210d3521a6833ed62dc332fc42ffb0e7a13
#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 *credentials,
struct auth_request *request);
struct passdb_module {
const char *name;
/* 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. */
int blocking;
void (*deinit)(void);
/* Check if plaintext password matches */
/* Return authentication credentials. Type is authentication mechanism
specific value that is requested. */
};
struct auth_request *auth_request);
#include "auth-request.h"
#endif