summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp_auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd/ppp_auth.h')
-rw-r--r--accel-pptpd/ppp_auth.h24
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 0000000..79ceb64
--- /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
+