wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
radius_server.h
Go to the documentation of this file.
1 
5 #ifndef RADIUS_SERVER_H
6 #define RADIUS_SERVER_H
7 
8 struct radius_server_data;
9 struct eap_user;
10 
20  int auth_port;
21 
26  int acct_port;
27 
40  char *client_file;
41 
46  const char *sqlite_file;
47 
54  void *conf_ctx;
55 
64 
72  void *ssl_ctx;
73 
83 
95 
101 
112 
122 
131 
141 
150 
160  int tnc;
161 
169 
174  const char *server_id;
175 
185  int erp;
186 
187  const char *erp_domain;
188 
189  unsigned int tls_session_lifetime;
190 
199  struct wps_context *wps;
200 
205  int ipv6;
206 
221  int (*get_eap_user)(void *ctx, const u8 *identity, size_t identity_len,
222  int phase2, struct eap_user *user);
223 
235  const char *eap_req_id_text;
236 
242 
243  /*
244  * msg_ctx - Context data for wpa_msg() calls
245  */
246  void *msg_ctx;
247 
248 #ifdef CONFIG_RADIUS_TEST
249  const char *dump_msk_file;
250 #endif /* CONFIG_RADIUS_TEST */
251 
252  char *subscr_remediation_url;
253  u8 subscr_remediation_method;
254 };
255 
256 
257 struct radius_server_data *
259 
261 void radius_server_deinit(struct radius_server_data *data);
262 
263 int radius_server_get_mib(struct radius_server_data *data, char *buf,
264  size_t buflen);
265 
266 void radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx);
267 
268 #endif /* RADIUS_SERVER_H */
int auth_port
UDP port to listen to as an authentication server.
Definition: radius_server.h:20
int(* get_eap_user)(void *ctx, const u8 *identity, size_t identity_len, int phase2, struct eap_user *user)
Callback for fetching EAP user information.
Definition: radius_server.h:221
int radius_server_get_mib(struct radius_server_data *data, char *buf, size_t buflen)
Get RADIUS server MIB information.
Definition: radius_server.c:1923
void radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx)
Pending EAP data notification.
Definition: radius_server.c:2161
void radius_server_erp_flush(struct radius_server_data *data)
Flush all ERP keys.
Definition: radius_server.c:1861
const char * sqlite_file
SQLite database for storing debug log information.
Definition: radius_server.h:46
int acct_port
UDP port to listen to as an accounting server.
Definition: radius_server.h:26
int eap_sim_aka_result_ind
EAP-SIM/AKA protected success indication.
Definition: radius_server.h:149
void * eap_sim_db_priv
EAP-SIM/AKA database context.
Definition: radius_server.h:63
int pac_key_lifetime
EAP-FAST PAC-Key lifetime in seconds.
Definition: radius_server.h:130
Definition: eap.h:21
struct radius_server_data * radius_server_init(struct radius_server_conf *conf)
Initialize RADIUS server.
Definition: radius_server.c:1722
int erp
Whether EAP Re-authentication Protocol (ERP) is enabled.
Definition: radius_server.h:185
u8 * pac_opaque_encr_key
PAC-Opaque encryption key for EAP-FAST.
Definition: radius_server.h:82
size_t eap_req_id_text_len
Length of eap_req_id_text buffer in octets.
Definition: radius_server.h:241
u16 pwd_group
EAP-pwd D-H group.
Definition: radius_server.h:168
const char * eap_req_id_text
Optional data for EAP-Request/Identity.
Definition: radius_server.h:235
u8 * eap_fast_a_id
EAP-FAST authority identity (A-ID)
Definition: radius_server.h:94
struct wps_context * wps
Wi-Fi Protected Setup context.
Definition: radius_server.h:199
Internal RADIUS server data.
Definition: radius_server.c:117
char * client_file
RADIUS client configuration file.
Definition: radius_server.h:40
void * conf_ctx
Context pointer for callbacks.
Definition: radius_server.h:54
int eap_fast_prov
EAP-FAST provisioning modes.
Definition: radius_server.h:121
const char * server_id
Server identity.
Definition: radius_server.h:174
int tnc
Trusted Network Connect (TNC)
Definition: radius_server.h:160
RADIUS server configuration.
Definition: radius_server.h:15
int ipv6
Whether to enable IPv6 support in the RADIUS server.
Definition: radius_server.h:205
int pac_key_refresh_time
EAP-FAST PAC-Key refresh time in seconds.
Definition: radius_server.h:140
char * eap_fast_a_id_info
EAP-FAST authority identifier information.
Definition: radius_server.h:111
size_t eap_fast_a_id_len
Length of eap_fast_a_id buffer in octets.
Definition: radius_server.h:100
void radius_server_deinit(struct radius_server_data *data)
Deinitialize RADIUS server.
Definition: radius_server.c:1879
Long term WPS context data.
Definition: wps.h:623
void * ssl_ctx
TLS context.
Definition: radius_server.h:72