wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ieee802_1x.h
Go to the documentation of this file.
1 
5 #ifndef IEEE802_1X_H
6 #define IEEE802_1X_H
7 
8 struct hostapd_data;
9 struct sta_info;
10 struct eapol_state_machine;
11 struct hostapd_config;
12 struct hostapd_bss_config;
13 struct hostapd_radius_attr;
14 struct radius_msg;
15 
16 
17 void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf,
18  size_t len);
19 void ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta);
20 void ieee802_1x_free_station(struct sta_info *sta);
21 
22 void ieee802_1x_abort_auth(struct hostapd_data *hapd, struct sta_info *sta);
23 void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd,
24  struct sta_info *sta, int authorized);
25 void ieee802_1x_dump_state(FILE *f, const char *prefix, struct sta_info *sta);
26 int ieee802_1x_init(struct hostapd_data *hapd);
27 void ieee802_1x_erp_flush(struct hostapd_data *hapd);
28 void ieee802_1x_deinit(struct hostapd_data *hapd);
29 int ieee802_1x_tx_status(struct hostapd_data *hapd, struct sta_info *sta,
30  const u8 *buf, size_t len, int ack);
31 int ieee802_1x_eapol_tx_status(struct hostapd_data *hapd, struct sta_info *sta,
32  const u8 *data, int len, int ack);
33 u8 * ieee802_1x_get_identity(struct eapol_state_machine *sm, size_t *len);
34 u8 * ieee802_1x_get_radius_class(struct eapol_state_machine *sm, size_t *len,
35  int idx);
36 struct wpabuf * ieee802_1x_get_radius_cui(struct eapol_state_machine *sm);
37 const u8 * ieee802_1x_get_key(struct eapol_state_machine *sm, size_t *len);
38 void ieee802_1x_notify_port_enabled(struct eapol_state_machine *sm,
39  int enabled);
40 void ieee802_1x_notify_port_valid(struct eapol_state_machine *sm,
41  int valid);
42 void ieee802_1x_notify_pre_auth(struct eapol_state_machine *sm, int pre_auth);
43 int ieee802_1x_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
44 int ieee802_1x_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
45  char *buf, size_t buflen);
46 void hostapd_get_ntp_timestamp(u8 *buf);
47 char *eap_type_text(u8 type);
48 
49 const char *radius_mode_txt(struct hostapd_data *hapd);
50 int radius_sta_rate(struct hostapd_data *hapd, struct sta_info *sta);
51 
52 int add_common_radius_attr(struct hostapd_data *hapd,
53  struct hostapd_radius_attr *req_attr,
54  struct sta_info *sta,
55  struct radius_msg *msg);
56 
57 #endif /* IEEE802_1X_H */
RADIUS message structure for new and parsed messages.
Definition: radius.c:18
Definition: sta_info.h:44
Definition: ap_config.h:158
struct wpabuf * buf
Allocated buffer for RADIUS message.
Definition: radius.c:23
Definition: wpabuf.h:16
void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf, size_t len)
Process the EAPOL frames from the Supplicant.
Definition: ieee802_1x.c:839
Per-Supplicant Authenticator state machines.
Definition: eapol_auth_sm_i.h:40
void ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta)
Start IEEE 802.1X authentication.
Definition: ieee802_1x.c:1019
Per-BSS configuration.
Definition: ap_config.h:209
hostapd per-BSS data structure
Definition: hostapd.h:103
Per-radio interface configuration.
Definition: ap_config.h:565