radius.h (96324) | radius.h (96730) |
---|---|
1/* 2 * Copyright 1999 Internet Business Solutions Ltd., Switzerland 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright 1999 Internet Business Solutions Ltd., Switzerland 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/ppp/radius.h 96324 2002-05-10 03:11:35Z brian $ | 26 * $FreeBSD: head/usr.sbin/ppp/radius.h 96730 2002-05-16 13:34:20Z brian $ |
27 */ 28 29struct radius { 30 struct fdescriptor desc; /* We're a sort of (selectable) fdescriptor */ 31 struct { 32 int fd; /* We're selecting on this */ 33 struct rad_handle *rad; /* Using this to talk to our lib */ 34 struct pppTimer timer; /* for this long */ 35 struct authinfo *auth; /* Tell this about success/failure */ 36 } cx; 37 unsigned valid : 1; /* Is this structure valid ? */ 38 unsigned vj : 1; /* FRAMED Compression */ 39 struct in_addr ip; /* FRAMED IP */ 40 struct in_addr mask; /* FRAMED Netmask */ 41 unsigned long mtu; /* FRAMED MTU */ 42 unsigned long sessiontime; /* Session-Timeout */ 43 char *filterid; /* FRAMED Filter Id */ 44 struct sticky_route *routes; /* FRAMED Routes */ | 27 */ 28 29struct radius { 30 struct fdescriptor desc; /* We're a sort of (selectable) fdescriptor */ 31 struct { 32 int fd; /* We're selecting on this */ 33 struct rad_handle *rad; /* Using this to talk to our lib */ 34 struct pppTimer timer; /* for this long */ 35 struct authinfo *auth; /* Tell this about success/failure */ 36 } cx; 37 unsigned valid : 1; /* Is this structure valid ? */ 38 unsigned vj : 1; /* FRAMED Compression */ 39 struct in_addr ip; /* FRAMED IP */ 40 struct in_addr mask; /* FRAMED Netmask */ 41 unsigned long mtu; /* FRAMED MTU */ 42 unsigned long sessiontime; /* Session-Timeout */ 43 char *filterid; /* FRAMED Filter Id */ 44 struct sticky_route *routes; /* FRAMED Routes */ |
45 char *msrepstr; /* MS-CHAP2-Response */ |
|
45 char *repstr; /* Reply-Message */ 46 char *errstr; /* Error-Message */ 47 struct { 48 char file[PATH_MAX]; /* Radius config file */ 49 } cfg; 50}; 51 52struct radacct { --- 10 unchanged lines hidden (view full) --- 63 ((d)->type == RADIUS_DESCRIPTOR ? (struct radius *)(d) : NULL) 64 65struct bundle; 66 67extern void radius_Init(struct radius *); 68extern void radius_Destroy(struct radius *); 69 70extern void radius_Show(struct radius *, struct prompt *); | 46 char *repstr; /* Reply-Message */ 47 char *errstr; /* Error-Message */ 48 struct { 49 char file[PATH_MAX]; /* Radius config file */ 50 } cfg; 51}; 52 53struct radacct { --- 10 unchanged lines hidden (view full) --- 64 ((d)->type == RADIUS_DESCRIPTOR ? (struct radius *)(d) : NULL) 65 66struct bundle; 67 68extern void radius_Init(struct radius *); 69extern void radius_Destroy(struct radius *); 70 71extern void radius_Show(struct radius *, struct prompt *); |
71extern void radius_Authenticate(struct radius *, struct authinfo *, 72 const char *, const char *, int, 73 const char *, int); | 72extern int radius_Authenticate(struct radius *, struct authinfo *, 73 const char *, const char *, int, 74 const char *, int, const char *, int); |
74extern void radius_Account(struct radius *, struct radacct *, 75 struct datalink *, int, struct in_addr *, 76 struct in_addr *, struct pppThroughput *); 77 78/* An (int) parameter to radius_Account, from radlib.h */ 79#if !defined(RAD_START) 80#define RAD_START 1 81#define RAD_STOP 2 82#endif 83 84/* Get address from NAS pool */ 85#define RADIUS_INADDR_POOL htonl(0xfffffffe) /* 255.255.255.254 */ | 75extern void radius_Account(struct radius *, struct radacct *, 76 struct datalink *, int, struct in_addr *, 77 struct in_addr *, struct pppThroughput *); 78 79/* An (int) parameter to radius_Account, from radlib.h */ 80#if !defined(RAD_START) 81#define RAD_START 1 82#define RAD_STOP 2 83#endif 84 85/* Get address from NAS pool */ 86#define RADIUS_INADDR_POOL htonl(0xfffffffe) /* 255.255.255.254 */ |