diff options
author | Kozlov Dmitry <dima@server> | 2010-08-06 13:59:54 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-08-06 13:59:54 +0400 |
commit | 4a268755565ced740c391a4c8c7fc7c98b7fc3c7 (patch) | |
tree | abfd4918ffbb26dac07ae970aa4ff628fd19c583 /accel-pptpd/ppp_auth.h | |
parent | 00785e9cb2adc570a267c160b869bbf9d33bbbe4 (diff) | |
download | accel-ppp-4a268755565ced740c391a4c8c7fc7c98b7fc3c7.tar.gz accel-ppp-4a268755565ced740c391a4c8c7fc7c98b7fc3c7.zip |
* written base code of lcp module
* written generic auth module
Diffstat (limited to 'accel-pptpd/ppp_auth.h')
-rw-r--r-- | accel-pptpd/ppp_auth.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/accel-pptpd/ppp_auth.h b/accel-pptpd/ppp_auth.h new file mode 100644 index 00000000..79ceb645 --- /dev/null +++ b/accel-pptpd/ppp_auth.h @@ -0,0 +1,24 @@ +#ifndef PPP_AUTH_H +#define PPP_AUTH_H + +#include "list.h" + +struct ppp_layer_t; +struct lcp_opt_hdr_t; +struct lcp_opt32_t; + +struct auth_driver_t +{ + struct list_head entry; + int type; + int (*get_conf_req)(struct auth_driver_t*, struct ppp_layer_t*, struct lcp_opt32_t*); + int (*recv_conf_req)(struct auth_driver_t*, struct ppp_layer_t*, struct lcp_opt32_t*); +}; + +int auth_get_conf_req(struct ppp_layer_t *l, struct lcp_opt32_t *); +int auth_recv_conf_req(struct ppp_layer_t *l, struct lcp_opt_hdr_t *); +int auth_recv_conf_rej(struct ppp_layer_t *l, struct lcp_opt_hdr_t *); +int auth_recv_conf_nak(struct ppp_layer_t *l, struct lcp_opt_hdr_t *); + +#endif + |