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-29 12:11:40 +0400
commitebbd6f580322767983ebf6b4049924d7e2de642f (patch)
tree6c10d3dda8d1e97437bceb88cc430addda56a011 /accel-pppd/include
parentfd379e46a8e41a1a41836922a376e462bb676b0f (diff)
downloadaccel-ppp-ebbd6f580322767983ebf6b4049924d7e2de642f.tar.gz
accel-ppp-ebbd6f580322767983ebf6b4049924d7e2de642f.zip
fix typo (successed -> succeeded)
Conflicts: accel-pppd/ppp/ppp_auth.c
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 527c853..9c68466 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
+