wpa_supplicant / hostapd 2.0

radius_server.h

Go to the documentation of this file.
00001 
00010 #ifndef RADIUS_SERVER_H
00011 #define RADIUS_SERVER_H
00012 
00013 struct radius_server_data;
00014 struct eap_user;
00015 
00020 struct radius_server_conf {
00025         int auth_port;
00026 
00039         char *client_file;
00040 
00047         void *conf_ctx;
00048 
00056         void *eap_sim_db_priv;
00057 
00065         void *ssl_ctx;
00066 
00075         u8 *pac_opaque_encr_key;
00076 
00087         u8 *eap_fast_a_id;
00088 
00093         size_t eap_fast_a_id_len;
00094 
00104         char *eap_fast_a_id_info;
00105 
00114         int eap_fast_prov;
00115 
00123         int pac_key_lifetime;
00124 
00133         int pac_key_refresh_time;
00134 
00142         int eap_sim_aka_result_ind;
00143 
00153         int tnc;
00154 
00161         u16 pwd_group;
00162 
00171         struct wps_context *wps;
00172 
00177         int ipv6;
00178 
00194         int (*get_eap_user)(void *ctx, const u8 *identity, size_t identity_len,
00195                             int phase2, struct eap_user *user);
00196 
00208         const char *eap_req_id_text;
00209 
00214         size_t eap_req_id_text_len;
00215 
00216         /*
00217          * msg_ctx - Context data for wpa_msg() calls
00218          */
00219         void *msg_ctx;
00220 
00221 #ifdef CONFIG_RADIUS_TEST
00222         const char *dump_msk_file;
00223 #endif /* CONFIG_RADIUS_TEST */
00224 };
00225 
00226 
00227 struct radius_server_data *
00228 radius_server_init(struct radius_server_conf *conf);
00229 
00230 void radius_server_deinit(struct radius_server_data *data);
00231 
00232 int radius_server_get_mib(struct radius_server_data *data, char *buf,
00233                           size_t buflen);
00234 
00235 void radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx);
00236 
00237 #endif /* RADIUS_SERVER_H */
00238 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines