summaryrefslogtreecommitdiff
path: root/accel-pppd/include
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-08-27 12:22:43 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-08-27 12:22:43 +0400
commit2282219823f120b9237e56afb24c885a2ff87abc (patch)
tree3eb5420ddb0b9408f45ffb710399b808f2ea872e /accel-pppd/include
parenteb1fe6921bccf5bf52495a28ea9c95b69f5c8bcb (diff)
downloadaccel-ppp-2282219823f120b9237e56afb24c885a2ff87abc.tar.gz
accel-ppp-2282219823f120b9237e56afb24c885a2ff87abc.zip
fix typo (successed -> succeeded)
Diffstat (limited to 'accel-pppd/include')
-rw-r--r--[l---------]accel-pppd/include/ppp_auth.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/accel-pppd/include/ppp_auth.h b/accel-pppd/include/ppp_auth.h
index 527c8538..9c684668 120000..100644
--- a/accel-pppd/include/ppp_auth.h
+++ b/accel-pppd/include/ppp_auth.h
@@ -1 +1,37 @@
-../ppp/ppp_auth.h \ No newline at end of file
+#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
+