2 * hostapd / RADIUS authentication server
3 * Copyright (c) 2005, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
15 #ifndef RADIUS_SERVER_H
16 #define RADIUS_SERVER_H
18 struct radius_server_data;
20 struct radius_server_conf {
24 void *eap_sim_db_priv;
32 struct radius_server_data *
33 radius_server_init(struct radius_server_conf *conf);
35 void radius_server_deinit(struct radius_server_data *data);
37 int radius_server_get_mib(struct radius_server_data *data, char *buf,
40 void radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx);
42 #else /* RADIUS_SERVER */
44 static inline struct radius_server_data *
45 radius_server_init(struct radius_server_conf *conf)
50 static inline void radius_server_deinit(struct radius_server_data *data)
54 static inline int radius_server_get_mib(struct radius_server_data *data,
55 char *buf, size_t buflen)
61 radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx)
65 #endif /* RADIUS_SERVER */
67 #endif /* RADIUS_SERVER_H */