aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-13 18:01:29 (GMT)
committerJouni Malinen <j@w1.fi>2009-01-13 18:01:29 (GMT)
commit010dc0685377d8f96b3d8d320275579cc087713d (patch)
treec508bc25fb60d6abbcda80e83d83029df801180e /src/radius/radius.h
parent93ea8ed0346ab9eb2b9f1c37aa8dd3660fd265bb (diff)
downloadhostap-010dc0685377d8f96b3d8d320275579cc087713d.zip
hostap-010dc0685377d8f96b3d8d320275579cc087713d.tar.gz
hostap-010dc0685377d8f96b3d8d320275579cc087713d.tar.bz2
Moved RADIUS Class attribute helpers into RADIUS module
Diffstat (limited to 'src/radius/radius.h')
-rw-r--r--src/radius/radius.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/radius/radius.h b/src/radius/radius.h
index c30621d..76a5c13 100644
--- a/src/radius/radius.h
+++ b/src/radius/radius.h
@@ -269,4 +269,19 @@ int radius_msg_get_attr_ptr(struct radius_msg *msg, u8 type, u8 **buf,
size_t *len, const u8 *start);
int radius_msg_count_attr(struct radius_msg *msg, u8 type, int min_len);
+
+struct radius_attr_data {
+ u8 *data;
+ size_t len;
+};
+
+struct radius_class_data {
+ struct radius_attr_data *attr;
+ size_t count;
+};
+
+void radius_free_class(struct radius_class_data *c);
+int radius_copy_class(struct radius_class_data *dst,
+ const struct radius_class_data *src);
+
#endif /* RADIUS_H */