diff options
author | sam <sam@FreeBSD.org> | 2005-06-05 22:35:03 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-06-05 22:35:03 +0000 |
commit | 21e78f430e299464b3c902bec78f8daa1f0e2e71 (patch) | |
tree | a7d225a062cd128980707f3fa918dec2d015c46b /contrib/hostapd/radius_server.h | |
download | FreeBSD-src-21e78f430e299464b3c902bec78f8daa1f0e2e71.zip FreeBSD-src-21e78f430e299464b3c902bec78f8daa1f0e2e71.tar.gz |
Stripped down import of hostapd v0.3.7
Diffstat (limited to 'contrib/hostapd/radius_server.h')
-rw-r--r-- | contrib/hostapd/radius_server.h | 45 |
1 files changed, 45 insertions, 0 deletions
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 */ |