diff options
author | Kozlov Dmitry <dima@server> | 2010-09-04 16:20:11 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-09-04 16:20:11 +0400 |
commit | af5a96e2d04056b065a36ecbd140a16d0685c7e6 (patch) | |
tree | f873b3c5c68a72d2df1785fdd0931bc57c91fd35 /accel-pptpd/radius/radius.h | |
parent | e8aa3a1457295f70f8ccc9cd7f2f9073f01a5e2e (diff) | |
download | accel-ppp-af5a96e2d04056b065a36ecbd140a16d0685c7e6.tar.gz accel-ppp-af5a96e2d04056b065a36ecbd140a16d0685c7e6.zip |
started work on radius module
Diffstat (limited to 'accel-pptpd/radius/radius.h')
-rw-r--r-- | accel-pptpd/radius/radius.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/accel-pptpd/radius/radius.h b/accel-pptpd/radius/radius.h new file mode 100644 index 0000000..aac1cd0 --- /dev/null +++ b/accel-pptpd/radius/radius.h @@ -0,0 +1,28 @@ +#ifndef __RADIUS_H +#define __RADIUS_H + +#include <netinet/in.h> + +#define ATTR_TYPE_INTEGER 0 +#define ATTR_TYPE_STRING 1 +#define ATTR_TYPE_DATE 2 +#define ATTR_TYPE_IPADDR 3 + +typedef union +{ + int integer; + const char *string; + time_t date; + in_addr_t ipaddr; +} rad_value_t; + +struct rad_dict_t +{ + struct list_head items; +}; + +void *rad_load_dict(const char *fname); +void rad_free_dict(struct rad_dict_t *dict); + +#endif + |