aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-01-08 19:15:25 +0200
committerJouni Malinen <j@w1.fi>2009-01-08 19:15:25 +0200
commitf88bd288361a09060d3aa283e8913bf55fd8469d (patch)
treeaf67f8cd62ebeff43c46cb62ceb63e9aef91e4ae /src/radius
parent9c584c06bd896a925db36f6f0642a40fe1dd34fb (diff)
downloadexternal_wpa_supplicant_8_ti-f88bd288361a09060d3aa283e8913bf55fd8469d.zip
external_wpa_supplicant_8_ti-f88bd288361a09060d3aa283e8913bf55fd8469d.tar.gz
external_wpa_supplicant_8_ti-f88bd288361a09060d3aa283e8913bf55fd8469d.tar.bz2
Added support for removing RADIUS accounting and RADIUS in general
CONFIG_NO_ACCOUNTING=y and CONFIG_NO_RADIUS=y build options can now be used to remove RADIUS support from the hostapd build.
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius_client.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/radius/radius_client.h b/src/radius/radius_client.h
index 4fe9ba9..b71db7b 100644
--- a/src/radius/radius_client.h
+++ b/src/radius/radius_client.h
@@ -93,6 +93,33 @@ int radius_client_send(struct radius_client_data *radius,
RadiusType msg_type, const u8 *addr);
u8 radius_client_get_id(struct radius_client_data *radius);
+#ifdef CONFIG_NO_RADIUS
+static inline void radius_client_flush(struct radius_client_data *radius,
+ int only_auth)
+{
+}
+
+static inline struct radius_client_data *
+radius_client_init(void *ctx, struct hostapd_radius_servers *conf)
+{
+ return (void *) -1;
+}
+
+static inline void radius_client_deinit(struct radius_client_data *radius)
+{
+}
+
+static inline void radius_client_flush_auth(struct radius_client_data *radius,
+ u8 *addr)
+{
+}
+
+static inline int radius_client_get_mib(struct radius_client_data *radius,
+ char *buf, size_t buflen)
+{
+ return 0;
+}
+#else /* CONFIG_NO_RADIUS */
void radius_client_flush(struct radius_client_data *radius, int only_auth);
struct radius_client_data *
radius_client_init(void *ctx, struct hostapd_radius_servers *conf);
@@ -100,6 +127,7 @@ void radius_client_deinit(struct radius_client_data *radius);
void radius_client_flush_auth(struct radius_client_data *radius, u8 *addr);
int radius_client_get_mib(struct radius_client_data *radius, char *buf,
size_t buflen);
+#endif /* CONFIG_NO_RADIUS */
struct radius_client_data *
radius_client_reconfig(struct radius_client_data *old, void *ctx,
struct hostapd_radius_servers *oldconf,