aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-06 17:53:59 +0200
committerJouni Malinen <j@w1.fi>2009-12-06 17:53:59 +0200
commit74784010af6b2965b24ee975e4a749d157b20df6 (patch)
tree8071fe4623960b516ba61856a29a54576f6ba359 /src/radius
parent0bc377fa938c7f70a401a3109adea7fe485a7ef8 (diff)
downloadexternal_wpa_supplicant_8_ti-74784010af6b2965b24ee975e4a749d157b20df6.zip
external_wpa_supplicant_8_ti-74784010af6b2965b24ee975e4a749d157b20df6.tar.gz
external_wpa_supplicant_8_ti-74784010af6b2965b24ee975e4a749d157b20df6.tar.bz2
Remove conditional no-RADIUS build from src/radius
Make it responsibility of the src/radius user to handle conditional build rules.
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius.h12
-rw-r--r--src/radius/radius_client.h29
-rw-r--r--src/radius/radius_server.h27
3 files changed, 0 insertions, 68 deletions
diff --git a/src/radius/radius.h b/src/radius/radius.h
index 9b76553..76a5c13 100644
--- a/src/radius/radius.h
+++ b/src/radius/radius.h
@@ -280,20 +280,8 @@ struct radius_class_data {
size_t count;
};
-#ifndef CONFIG_NO_RADIUS
void radius_free_class(struct radius_class_data *c);
int radius_copy_class(struct radius_class_data *dst,
const struct radius_class_data *src);
-#else /* CONFIG_NO_RADIUS */
-static inline void radius_free_class(struct radius_class_data *c)
-{
-}
-
-static inline int radius_copy_class(struct radius_class_data *dst,
- const struct radius_class_data *src)
-{
- return -1;
-}
-#endif /* CONFIG_NO_RADIUS */
#endif /* RADIUS_H */
diff --git a/src/radius/radius_client.h b/src/radius/radius_client.h
index 6c0ae5b..644ea23 100644
--- a/src/radius/radius_client.h
+++ b/src/radius/radius_client.h
@@ -251,34 +251,6 @@ int radius_client_send(struct radius_client_data *radius,
struct radius_msg *msg,
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,
- const 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);
@@ -287,6 +259,5 @@ void radius_client_flush_auth(struct radius_client_data *radius,
const u8 *addr);
int radius_client_get_mib(struct radius_client_data *radius, char *buf,
size_t buflen);
-#endif /* CONFIG_NO_RADIUS */
#endif /* RADIUS_CLIENT_H */
diff --git a/src/radius/radius_server.h b/src/radius/radius_server.h
index fafa851..43942de 100644
--- a/src/radius/radius_server.h
+++ b/src/radius/radius_server.h
@@ -192,8 +192,6 @@ struct radius_server_conf {
};
-#ifdef RADIUS_SERVER
-
struct radius_server_data *
radius_server_init(struct radius_server_conf *conf);
@@ -204,29 +202,4 @@ int radius_server_get_mib(struct radius_server_data *data, char *buf,
void radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx);
-#else /* RADIUS_SERVER */
-
-static inline struct radius_server_data *
-radius_server_init(struct radius_server_conf *conf)
-{
- return NULL;
-}
-
-static inline void radius_server_deinit(struct radius_server_data *data)
-{
-}
-
-static inline int radius_server_get_mib(struct radius_server_data *data,
- char *buf, size_t buflen)
-{
- return 0;
-}
-
-static inline void
-radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx)
-{
-}
-
-#endif /* RADIUS_SERVER */
-
#endif /* RADIUS_SERVER_H */