diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-05 15:18:59 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-05 15:18:59 +0300 |
commit | f28cb1b0a926f1ea98700b7871537ad1793511fd (patch) | |
tree | baf35570bc6b38b6fab5b6524e8f19f58f71e57f /accel-pppd/pwdb.h | |
parent | 2fdf3586c13a72c36f9530084962e29d57dc0329 (diff) | |
download | accel-ppp-f28cb1b0a926f1ea98700b7871537ad1793511fd.tar.gz accel-ppp-f28cb1b0a926f1ea98700b7871537ad1793511fd.zip |
rename accel-pptp to accel-ppp
Diffstat (limited to 'accel-pppd/pwdb.h')
-rw-r--r-- | accel-pppd/pwdb.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/accel-pppd/pwdb.h b/accel-pppd/pwdb.h new file mode 100644 index 0000000..a1c2ced --- /dev/null +++ b/accel-pppd/pwdb.h @@ -0,0 +1,27 @@ +#ifndef PWDB_H +#define PWDB_H + +#include <stdarg.h> +#include "list.h" + +struct ppp_t; + +#define PWDB_SUCCESS 0 +#define PWDB_DENIED 1 +#define PWDB_NO_IMPL 2 + +struct pwdb_t +{ + struct list_head entry; + int (*check)(struct pwdb_t *, struct ppp_t *, const char *username, int type, va_list args); + char* (*get_passwd)(struct pwdb_t *, struct ppp_t *, const char *username); +}; + +int pwdb_check(struct ppp_t *, const char *username, int type, ...); +char *pwdb_get_passwd(struct ppp_t *, const char *username); + +void pwdb_register(struct pwdb_t *); +void pwdb_unregister(struct pwdb_t *); + +#endif + |