From 21e78f430e299464b3c902bec78f8daa1f0e2e71 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 5 Jun 2005 22:35:03 +0000 Subject: Stripped down import of hostapd v0.3.7 --- contrib/hostapd/radius_server.h | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 contrib/hostapd/radius_server.h (limited to 'contrib/hostapd/radius_server.h') diff --git a/contrib/hostapd/radius_server.h b/contrib/hostapd/radius_server.h new file mode 100644 index 0000000..a725f0a --- /dev/null +++ b/contrib/hostapd/radius_server.h @@ -0,0 +1,45 @@ +#ifndef RADIUS_SERVER_H +#define RADIUS_SERVER_H + +struct radius_server_data; + +struct radius_server_conf { + int auth_port; + char *client_file; + void *hostapd_conf; + void *eap_sim_db_priv; + void *ssl_ctx; +}; + + +#ifdef RADIUS_SERVER + +struct radius_server_data * +radius_server_init(struct radius_server_conf *conf); + +void radius_server_deinit(struct radius_server_data *data); + +int radius_server_get_mib(struct radius_server_data *data, char *buf, + size_t buflen); + +#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; +} + +#endif /* RADIUS_SERVER */ + +#endif /* RADIUS_SERVER_H */ -- cgit v1.1