wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
eap_proxy.h
Go to the documentation of this file.
1 
5 #ifndef EAP_PROXY_H
6 #define EAP_PROXY_H
7 
8 struct eap_proxy_sm;
9 struct eapol_callbacks;
10 struct eap_sm;
11 struct eap_peer_config;
12 
13 enum eap_proxy_status {
14  EAP_PROXY_FAILURE = 0x00,
15  EAP_PROXY_SUCCESS
16 };
17 
18 struct eap_proxy_sm *
19 eap_proxy_init(void *eapol_ctx, struct eapol_callbacks *eapol_cb,
20  void *msg_ctx);
21 
22 void eap_proxy_deinit(struct eap_proxy_sm *eap_proxy);
23 
24 int eap_proxy_key_available(struct eap_proxy_sm *sm);
25 
26 const u8 * eap_proxy_get_eapKeyData(struct eap_proxy_sm *sm, size_t *len);
27 
28 struct wpabuf * eap_proxy_get_eapRespData(struct eap_proxy_sm *sm);
29 
30 int eap_proxy_sm_step(struct eap_proxy_sm *sm, struct eap_sm *eap_sm);
31 
32 enum eap_proxy_status
33 eap_proxy_packet_update(struct eap_proxy_sm *eap_proxy, u8 *eapReqData,
34  int eapReqDataLen);
35 
36 int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen,
37  int verbose);
38 
39 int eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, char *imsi_buf,
40  size_t *imsi_len);
41 
42 int eap_proxy_notify_config(struct eap_proxy_sm *sm,
43  struct eap_peer_config *config);
44 
45 #endif /* EAP_PROXY_H */
Definition: wpabuf.h:16
Callback functions from EAP to lower layer.
Definition: eap.h:147
Global (for all networks) EAPOL state machine context.
Definition: eapol_supp_sm.h:87
EAP state machine data.
Definition: eap_i.h:302
EAP peer configuration/credentials.
Definition: eap_config.h:12