16 #define EAP_TTLS_AUTH_PAP 1
17 #define EAP_TTLS_AUTH_CHAP 2
18 #define EAP_TTLS_AUTH_MSCHAP 4
19 #define EAP_TTLS_AUTH_MSCHAPV2 8
25 } methods[EAP_MAX_METHODS];
32 unsigned int remediation:1;
33 unsigned int macacl:1;
42 struct wpabuf *eapRespData;
59 size_t eapSessionIdLen;
60 Boolean eapKeyAvailable;
67 struct wpabuf *aaaEapReqData;
69 size_t aaaEapKeyDataLen;
70 Boolean aaaEapKeyAvailable;
75 struct wpabuf *aaaEapRespData;
84 u8 rRK[ERP_MAX_KEY_LEN];
85 u8 rIK[ERP_MAX_KEY_LEN];
92 int (*get_eap_user)(
void *ctx,
const u8 *identity,
size_t identity_len,
94 const char * (*get_eap_req_id_text)(
void *ctx,
size_t *len);
95 void (*log_msg)(
void *ctx,
const char *msg);
96 int (*get_erp_send_reauth_start)(
void *ctx);
97 const char * (*get_erp_domain)(
void *ctx);
106 void *eap_sim_db_priv;
107 Boolean backend_auth;
110 u8 *pac_opaque_encr_key;
112 size_t eap_fast_a_id_len;
113 char *eap_fast_a_id_info;
115 int pac_key_lifetime;
116 int pac_key_refresh_time;
117 int eap_sim_aka_result_ind;
120 const struct wpabuf *assoc_wps_ie;
121 const struct wpabuf *assoc_p2p_ie;
128 size_t server_id_len;
130 unsigned int tls_session_lifetime;
132 #ifdef CONFIG_TESTING_OPTIONS
149 void eap_server_mschap_rx_callback(
struct eap_sm *sm,
const char *source,
150 const u8 *username,
size_t username_len,
151 const u8 *challenge,
const u8 *response);
void eap_server_clear_identity(struct eap_sm *sm)
Clear EAP identity information.
Definition: eap_server.c:1986
Definition: ap_config.h:158
WPA Supplicant - Common definitions.
int eap_sm_method_pending(struct eap_sm *sm)
Query whether EAP method is waiting for pending data.
Definition: eap_server.c:1946
void eap_server_sm_deinit(struct eap_sm *sm)
Deinitialize and free an EAP server state machine.
Definition: eap_server.c:1883
void eap_sm_notify_cached(struct eap_sm *sm)
Notify EAP state machine of cached PMK.
Definition: eap_server.c:1916
struct eap_sm * eap_server_sm_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb, struct eap_config *eap_conf)
Allocate and initialize EAP server state machine.
Definition: eap_server.c:1812
Doubly-linked list.
Definition: list.h:12
EAP server/peer: Shared EAP definitions.
Callback functions from EAP to lower layer.
Definition: eap.h:147
EAP server method registration.
const u8 * eap_get_identity(struct eap_sm *sm, size_t *len)
Get the user identity (from EAP-Response/Identity)
Definition: eap_server.c:1960
int eap_server_sm_step(struct eap_sm *sm)
Step EAP server state machine.
Definition: eap_server.c:1780
void eap_sm_pending_cb(struct eap_sm *sm)
EAP state machine callback for a pending EAP request.
Definition: eap_server.c:1931
Global (for all networks) EAPOL state machine context.
Definition: eapol_supp_sm.h:87
Configuration for EAP state machine.
Definition: eap.h:280
struct eap_eapol_interface * eap_get_interface(struct eap_sm *sm)
Get pointer to EAP-EAPOL interface data.
Definition: eap_server.c:1972
EAP state machine data.
Definition: eap_i.h:302
struct wps_context * wps
WPS context data.
Definition: eap.h:317
Long term WPS context data.
Definition: wps.h:623