From ebbd6f580322767983ebf6b4049924d7e2de642f Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 27 Aug 2012 12:22:43 +0400 Subject: fix typo (successed -> succeeded) Conflicts: accel-pppd/ppp/ppp_auth.c --- accel-pppd/include/ppp_auth.h | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) mode change 120000 => 100644 accel-pppd/include/ppp_auth.h (limited to 'accel-pppd/include/ppp_auth.h') diff --git a/accel-pppd/include/ppp_auth.h b/accel-pppd/include/ppp_auth.h deleted file mode 120000 index 527c853..0000000 --- a/accel-pppd/include/ppp_auth.h +++ /dev/null @@ -1 +0,0 @@ -../ppp/ppp_auth.h \ No newline at end of file diff --git a/accel-pppd/include/ppp_auth.h b/accel-pppd/include/ppp_auth.h new file mode 100644 index 0000000..9c68466 --- /dev/null +++ b/accel-pppd/include/ppp_auth.h @@ -0,0 +1,37 @@ +#ifndef PPP_AUTH_H +#define PPP_AUTH_H + +#include "list.h" + +struct ppp_auth_handler_t; + +struct auth_data_t +{ + struct list_head entry; + int proto; + int state; + struct ppp_auth_handler_t *h; +}; + +struct ppp_auth_handler_t +{ + struct list_head entry; + const char *name; + struct auth_data_t* (*init)(struct ppp_t*); + int (*send_conf_req)(struct ppp_t*, struct auth_data_t*, uint8_t*); + int (*recv_conf_req)(struct ppp_t*, struct auth_data_t*, uint8_t*); + int (*start)(struct ppp_t*, struct auth_data_t*); + int (*finish)(struct ppp_t*, struct auth_data_t*); + void (*free)(struct ppp_t*,struct auth_data_t*); + int (*check)(uint8_t *); + int (*restart)(struct ppp_t*,struct auth_data_t*); +}; + +int ppp_auth_register_handler(struct ppp_auth_handler_t*); + +int ppp_auth_succeeded(struct ppp_t *ppp, char *username); +void ppp_auth_failed(struct ppp_t *ppp, char *username); +int ppp_auth_restart(struct ppp_t *ppp); + +#endif + -- cgit v1.2.3