diff options
| author | Dmitry Kozlov <xeb@mail.ru> | 2016-06-07 20:41:14 +0300 |
|---|---|---|
| committer | Dmitry Kozlov <xeb@mail.ru> | 2016-06-07 20:41:14 +0300 |
| commit | 7fe9078e44b13c030e4c9ca55cc431f2811efc5a (patch) | |
| tree | 8226aa14351319a221d5e62524ff05071b1502b4 /accel-pppd/include | |
| parent | 429ca0e6188594e5ccbce639d2d22576e5256e62 (diff) | |
| parent | e3e804a0266840ef0a9cc13c4f6d1ac8fc68c676 (diff) | |
| download | accel-ppp-7fe9078e44b13c030e4c9ca55cc431f2811efc5a.tar.gz accel-ppp-7fe9078e44b13c030e4c9ca55cc431f2811efc5a.zip | |
Merge branch 'master' of ssh://git.code.sf.net/p/accel-ppp/code
Diffstat (limited to 'accel-pppd/include')
| l---------[-rw-r--r--] | accel-pppd/include/ppp_auth.h | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/accel-pppd/include/ppp_auth.h b/accel-pppd/include/ppp_auth.h index 839a8817..527c8538 100644..120000 --- a/accel-pppd/include/ppp_auth.h +++ b/accel-pppd/include/ppp_auth.h @@ -1,37 +1 @@ -#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 - +../ppp/ppp_auth.h
\ No newline at end of file |
