aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius_das.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-05-06 19:02:42 (GMT)
committerJouni Malinen <j@w1.fi>2012-05-06 19:02:42 (GMT)
commitb031338cf080a07e23ad5ca75e577b49a23b8093 (patch)
tree8331e43a3f08996225af8988ccc0cea9be45a082 /src/radius/radius_das.h
parentaf35e7af7f8bb1ca9f0905b4074fb56a264aa12b (diff)
downloadhostap-b031338cf080a07e23ad5ca75e577b49a23b8093.zip
hostap-b031338cf080a07e23ad5ca75e577b49a23b8093.tar.gz
hostap-b031338cf080a07e23ad5ca75e577b49a23b8093.tar.bz2
Add preliminary RADIUS dynamic authorization server (RFC 5176)
This adds the basic DAS mechanism to enable hostapd to be configured to request dynamic authorization requests (Disconnect-Request and CoA-Request). This commit does not add actual processing of the requests, i.e., this will only receive and authenticate the requests and NAK them regardless of what operation is requested. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius/radius_das.h')
-rw-r--r--src/radius/radius_das.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/radius/radius_das.h b/src/radius/radius_das.h
new file mode 100644
index 0000000..4e21c6d
--- /dev/null
+++ b/src/radius/radius_das.h
@@ -0,0 +1,26 @@
+/*
+ * RADIUS Dynamic Authorization Server (DAS)
+ * Copyright (c) 2012, Jouni Malinen <j@w1.fi>
+ *
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
+ */
+
+#ifndef RADIUS_DAS_H
+#define RADIUS_DAS_H
+
+struct radius_das_data;
+
+struct radius_das_conf {
+ int port;
+ const u8 *shared_secret;
+ size_t shared_secret_len;
+ const struct hostapd_ip_addr *client_addr;
+};
+
+struct radius_das_data *
+radius_das_init(struct radius_das_conf *conf);
+
+void radius_das_deinit(struct radius_das_data *data);
+
+#endif /* RADIUS_DAS_H */