summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/radius.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/radius.h')
-rw-r--r--usr.sbin/ppp/radius.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/ppp/radius.h b/usr.sbin/ppp/radius.h
index 0ea6edd..0b01b23 100644
--- a/usr.sbin/ppp/radius.h
+++ b/usr.sbin/ppp/radius.h
@@ -26,6 +26,12 @@
* $FreeBSD$
*/
+#define MPPE_POLICY_ALLOWED 1
+#define MPPE_POLICY_REQUIRED 2
+
+#define MPPE_TYPE_40BIT 2
+#define MPPE_TYPE_128BIT 4
+
struct radius {
struct fdescriptor desc; /* We're a sort of (selectable) fdescriptor */
struct {
@@ -46,6 +52,14 @@ struct radius {
char *repstr; /* Reply-Message */
char *errstr; /* Error-Message */
struct {
+ int policy; /* MPPE_POLICY_* */
+ int types; /* MPPE_TYPE_*BIT bitmask */
+ char *recvkey;
+ size_t recvkeylen;
+ char *sendkey;
+ size_t sendkeylen;
+ } mppe;
+ struct {
char file[PATH_MAX]; /* Radius config file */
} cfg;
};
OpenPOWER on IntegriCloud