Fix a system performance issue created by ata_sort_queue(). This function
[dragonfly.git] / contrib / hostapd-0.5.8 / radius_server.h
blob9c9315e60706f1a189cfcb446bb036c867756906
1 /*
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
10 * license.
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 {
21 int auth_port;
22 char *client_file;
23 void *hostapd_conf;
24 void *eap_sim_db_priv;
25 void *ssl_ctx;
26 int ipv6;
30 #ifdef RADIUS_SERVER
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,
38 size_t buflen);
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)
47 return NULL;
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)
57 return 0;
60 static inline void
61 radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx)
65 #endif /* RADIUS_SERVER */
67 #endif /* RADIUS_SERVER_H */