radius.h (43313) | radius.h (43693) |
---|---|
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 * $Id:$ | 26 * $Id: radius.h,v 1.1 1999/01/28 01:56:34 brian Exp $ |
27 */ 28 29struct radius { | 27 */ 28 29struct radius { |
30 struct descriptor desc; /* We're a sort of (selectable) descriptor */ 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; |
|
30 unsigned valid : 1; /* Is this structure valid ? */ 31 unsigned vj : 1; /* FRAMED Compression */ 32 struct in_addr ip; /* FRAMED IP */ 33 struct in_addr mask; /* FRAMED Netmask */ 34 unsigned long mtu; /* FRAMED MTU */ 35 struct sticky_route *routes; /* FRAMED Routes */ 36 struct { 37 char file[MAXPATHLEN]; /* Radius config file */ 38 } cfg; 39}; 40 | 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 struct sticky_route *routes; /* FRAMED Routes */ 43 struct { 44 char file[MAXPATHLEN]; /* Radius config file */ 45 } cfg; 46}; 47 |
48#define descriptor2radius(d) \ 49 ((d)->type == RADIUS_DESCRIPTOR ? (struct radius *)(d) : NULL) 50 |
|
41struct bundle; 42 43extern void radius_Init(struct radius *); 44extern void radius_Destroy(struct radius *); 45 46extern void radius_Show(struct radius *, struct prompt *); | 51struct bundle; 52 53extern void radius_Init(struct radius *); 54extern void radius_Destroy(struct radius *); 55 56extern void radius_Show(struct radius *, struct prompt *); |
47extern int radius_Authenticate(struct radius *, struct bundle *, const char *, 48 const char *, const char *); | 57extern void radius_Authenticate(struct radius *, struct authinfo *, 58 const char *, const char *, const char *); |