Home
last modified time | relevance | path

Searched refs:eap_sm (Results 1 – 25 of 58) sorted by relevance

123

/external/wpa_supplicant_8/src/eap_peer/
Deap.h16 struct eap_sm;
309 struct eap_sm * eap_peer_sm_init(void *eapol_ctx,
312 void eap_peer_sm_deinit(struct eap_sm *sm);
313 int eap_peer_sm_step(struct eap_sm *sm);
314 void eap_sm_abort(struct eap_sm *sm);
315 int eap_sm_get_status(struct eap_sm *sm, char *buf, size_t buflen,
317 const char * eap_sm_get_method_name(struct eap_sm *sm);
318 struct wpabuf * eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted);
319 void eap_sm_request_identity(struct eap_sm *sm);
320 void eap_sm_request_password(struct eap_sm *sm);
[all …]
Deap_i.h90 void * (*init)(struct eap_sm *sm);
99 void (*deinit)(struct eap_sm *sm, void *priv);
116 struct wpabuf * (*process)(struct eap_sm *sm, void *priv,
126 Boolean (*isKeyAvailable)(struct eap_sm *sm, void *priv);
139 u8 * (*getKey)(struct eap_sm *sm, void *priv, size_t *len);
155 int (*get_status)(struct eap_sm *sm, void *priv, char *buf,
168 Boolean (*has_reauth_data)(struct eap_sm *sm, void *priv);
181 void (*deinit_for_reauth)(struct eap_sm *sm, void *priv);
193 void * (*init_for_reauth)(struct eap_sm *sm, void *priv);
206 const u8 * (*get_identity)(struct eap_sm *sm, void *priv, size_t *len);
[all …]
Deap_tls_common.h65 struct eap_sm *eap;
93 int eap_peer_tls_ssl_init(struct eap_sm *sm, struct eap_ssl_data *data,
95 void eap_peer_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data);
96 u8 * eap_peer_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data,
98 u8 * eap_peer_tls_derive_session_id(struct eap_sm *sm,
101 int eap_peer_tls_process_helper(struct eap_sm *sm, struct eap_ssl_data *data,
107 int eap_peer_tls_reauth_init(struct eap_sm *sm, struct eap_ssl_data *data);
108 int eap_peer_tls_status(struct eap_sm *sm, struct eap_ssl_data *data,
110 const u8 * eap_peer_tls_process_init(struct eap_sm *sm,
118 int eap_peer_tls_decrypt(struct eap_sm *sm, struct eap_ssl_data *data,
[all …]
Deap.c32 #define STATE_MACHINE_DATA struct eap_sm
39 static Boolean eap_sm_allowMethod(struct eap_sm *sm, int vendor,
41 static struct wpabuf * eap_sm_buildNak(struct eap_sm *sm, int id);
42 static void eap_sm_processIdentity(struct eap_sm *sm,
44 static void eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req);
46 static void eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req);
54 static Boolean eapol_get_bool(struct eap_sm *sm, enum eapol_bool_var var) in eapol_get_bool()
60 static void eapol_set_bool(struct eap_sm *sm, enum eapol_bool_var var, in eapol_set_bool()
67 static unsigned int eapol_get_int(struct eap_sm *sm, enum eapol_int_var var) in eapol_get_int()
73 static void eapol_set_int(struct eap_sm *sm, enum eapol_int_var var, in eapol_set_int()
[all …]
Deap_tls.c18 static void eap_tls_deinit(struct eap_sm *sm, void *priv);
31 static void * eap_tls_init(struct eap_sm *sm) in eap_tls_init()
75 static void * eap_unauth_tls_init(struct eap_sm *sm) in eap_unauth_tls_init()
102 static void * eap_wfa_unauth_tls_init(struct eap_sm *sm) in eap_wfa_unauth_tls_init()
137 static void eap_tls_deinit(struct eap_sm *sm, void *priv) in eap_tls_deinit()
149 static struct wpabuf * eap_tls_failure(struct eap_sm *sm, in eap_tls_failure()
185 static void eap_tls_success(struct eap_sm *sm, struct eap_tls_data *data, in eap_tls_success()
221 static struct wpabuf * eap_tls_process(struct eap_sm *sm, void *priv, in eap_tls_process()
266 static Boolean eap_tls_has_reauth_data(struct eap_sm *sm, void *priv) in eap_tls_has_reauth_data()
273 static void eap_tls_deinit_for_reauth(struct eap_sm *sm, void *priv) in eap_tls_deinit_for_reauth()
[all …]
Deap_fast_pac.h39 int eap_fast_load_pac(struct eap_sm *sm, struct eap_fast_pac **pac_root,
41 int eap_fast_save_pac(struct eap_sm *sm, struct eap_fast_pac *pac_root,
45 int eap_fast_load_pac_bin(struct eap_sm *sm, struct eap_fast_pac **pac_root,
47 int eap_fast_save_pac_bin(struct eap_sm *sm, struct eap_fast_pac *pac_root,
Deap_vendor_test.c31 static void * eap_vendor_test_init(struct eap_sm *sm) in eap_vendor_test_init()
51 static void eap_vendor_test_deinit(struct eap_sm *sm, void *priv) in eap_vendor_test_deinit()
60 struct eap_sm *sm = eloop_ctx; in eap_vendor_ready()
67 static struct wpabuf * eap_vendor_test_process(struct eap_sm *sm, void *priv, in eap_vendor_test_process()
141 static Boolean eap_vendor_test_isKeyAvailable(struct eap_sm *sm, void *priv) in eap_vendor_test_isKeyAvailable()
148 static u8 * eap_vendor_test_getKey(struct eap_sm *sm, void *priv, size_t *len) in eap_vendor_test_getKey()
Deap_ttls.c26 static void eap_ttls_deinit(struct eap_sm *sm, void *priv);
69 static void * eap_ttls_init(struct eap_sm *sm) in eap_ttls_init()
125 static void eap_ttls_phase2_eap_deinit(struct eap_sm *sm, in eap_ttls_phase2_eap_deinit()
145 static void eap_ttls_deinit(struct eap_sm *sm, void *priv) in eap_ttls_deinit()
222 static int eap_ttls_v0_derive_key(struct eap_sm *sm, in eap_ttls_v0_derive_key()
256 static u8 * eap_ttls_implicit_challenge(struct eap_sm *sm, in eap_ttls_implicit_challenge()
285 static int eap_ttls_phase2_eap_process(struct eap_sm *sm, in eap_ttls_phase2_eap_process()
311 static int eap_ttls_phase2_request_eap_method(struct eap_sm *sm, in eap_ttls_phase2_request_eap_method()
383 static int eap_ttls_phase2_request_eap(struct eap_sm *sm, in eap_ttls_phase2_request_eap()
426 static int eap_ttls_phase2_request_mschapv2(struct eap_sm *sm, in eap_ttls_phase2_request_mschapv2()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_i.h29 void * (*init)(struct eap_sm *sm);
30 void * (*initPickUp)(struct eap_sm *sm);
31 void (*reset)(struct eap_sm *sm, void *priv);
33 struct wpabuf * (*buildReq)(struct eap_sm *sm, void *priv, u8 id);
34 int (*getTimeout)(struct eap_sm *sm, void *priv);
35 Boolean (*check)(struct eap_sm *sm, void *priv,
37 void (*process)(struct eap_sm *sm, void *priv,
39 Boolean (*isDone)(struct eap_sm *sm, void *priv);
40 u8 * (*getKey)(struct eap_sm *sm, void *priv, size_t *len);
43 Boolean (*isSuccess)(struct eap_sm *sm, void *priv);
[all …]
Deap_tls_common.h49 struct eap_sm *eap;
72 int eap_server_tls_ssl_init(struct eap_sm *sm, struct eap_ssl_data *data,
74 void eap_server_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data);
75 u8 * eap_server_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data,
77 u8 * eap_server_tls_derive_session_id(struct eap_sm *sm,
83 int eap_server_tls_phase1(struct eap_sm *sm, struct eap_ssl_data *data);
84 struct wpabuf * eap_server_tls_encrypt(struct eap_sm *sm,
87 int eap_server_tls_process(struct eap_sm *sm, struct eap_ssl_data *data,
89 int (*proc_version)(struct eap_sm *sm, void *priv,
91 void (*proc_msg)(struct eap_sm *sm, void *priv,
Deap.h18 struct eap_sm;
141 struct eap_sm * eap_server_sm_init(void *eapol_ctx,
144 void eap_server_sm_deinit(struct eap_sm *sm);
145 int eap_server_sm_step(struct eap_sm *sm);
146 void eap_sm_notify_cached(struct eap_sm *sm);
147 void eap_sm_pending_cb(struct eap_sm *sm);
148 int eap_sm_method_pending(struct eap_sm *sm);
149 const u8 * eap_get_identity(struct eap_sm *sm, size_t *len);
150 struct eap_eapol_interface * eap_get_interface(struct eap_sm *sm);
151 void eap_server_clear_identity(struct eap_sm *sm);
[all …]
Deap_server_tls.c17 static void eap_tls_reset(struct eap_sm *sm, void *priv);
54 static void * eap_tls_init(struct eap_sm *sm) in eap_tls_init()
76 static void * eap_unauth_tls_init(struct eap_sm *sm) in eap_unauth_tls_init()
98 static void * eap_wfa_unauth_tls_init(struct eap_sm *sm) in eap_wfa_unauth_tls_init()
119 static void eap_tls_reset(struct eap_sm *sm, void *priv) in eap_tls_reset()
129 static struct wpabuf * eap_tls_build_start(struct eap_sm *sm, in eap_tls_build_start()
150 static struct wpabuf * eap_tls_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_tls_buildReq()
192 static Boolean eap_tls_check(struct eap_sm *sm, void *priv, in eap_tls_check()
219 static void eap_tls_process_msg(struct eap_sm *sm, void *priv, in eap_tls_process_msg()
233 static void eap_tls_process(struct eap_sm *sm, void *priv, in eap_tls_process()
[all …]
Deap_server_vendor_test.c51 static void * eap_vendor_test_init(struct eap_sm *sm) in eap_vendor_test_init()
64 static void eap_vendor_test_reset(struct eap_sm *sm, void *priv) in eap_vendor_test_reset()
71 static struct wpabuf * eap_vendor_test_buildReq(struct eap_sm *sm, void *priv, in eap_vendor_test_buildReq()
91 static Boolean eap_vendor_test_check(struct eap_sm *sm, void *priv, in eap_vendor_test_check()
107 static void eap_vendor_test_process(struct eap_sm *sm, void *priv, in eap_vendor_test_process()
133 static Boolean eap_vendor_test_isDone(struct eap_sm *sm, void *priv) in eap_vendor_test_isDone()
140 static u8 * eap_vendor_test_getKey(struct eap_sm *sm, void *priv, size_t *len) in eap_vendor_test_getKey()
161 static Boolean eap_vendor_test_isSuccess(struct eap_sm *sm, void *priv) in eap_vendor_test_isSuccess()
Deap_server_identity.c21 static void * eap_identity_init(struct eap_sm *sm) in eap_identity_init()
34 static void * eap_identity_initPickUp(struct eap_sm *sm) in eap_identity_initPickUp()
45 static void eap_identity_reset(struct eap_sm *sm, void *priv) in eap_identity_reset()
52 static struct wpabuf * eap_identity_buildReq(struct eap_sm *sm, void *priv, in eap_identity_buildReq()
82 static Boolean eap_identity_check(struct eap_sm *sm, void *priv, in eap_identity_check()
99 static void eap_identity_process(struct eap_sm *sm, void *priv, in eap_identity_process()
143 static Boolean eap_identity_isDone(struct eap_sm *sm, void *priv) in eap_identity_isDone()
150 static Boolean eap_identity_isSuccess(struct eap_sm *sm, void *priv) in eap_identity_isSuccess()
Deap_server_sake.c61 static void * eap_sake_init(struct eap_sm *sm) in eap_sake_init()
82 static void eap_sake_reset(struct eap_sm *sm, void *priv) in eap_sake_reset()
116 static struct wpabuf * eap_sake_build_identity(struct eap_sm *sm, in eap_sake_build_identity()
144 static struct wpabuf * eap_sake_build_challenge(struct eap_sm *sm, in eap_sake_build_challenge()
180 static struct wpabuf * eap_sake_build_confirm(struct eap_sm *sm, in eap_sake_build_confirm()
215 static struct wpabuf * eap_sake_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_sake_buildReq()
235 static Boolean eap_sake_check(struct eap_sm *sm, void *priv, in eap_sake_check()
287 static void eap_sake_process_identity(struct eap_sm *sm, in eap_sake_process_identity()
301 static void eap_sake_process_challenge(struct eap_sm *sm, in eap_sake_process_challenge()
364 static void eap_sake_process_confirm(struct eap_sm *sm, in eap_sake_process_confirm()
[all …]
Deap_server_md5.c25 static void * eap_md5_init(struct eap_sm *sm) in eap_md5_init()
38 static void eap_md5_reset(struct eap_sm *sm, void *priv) in eap_md5_reset()
45 static struct wpabuf * eap_md5_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_md5_buildReq()
76 static Boolean eap_md5_check(struct eap_sm *sm, void *priv, in eap_md5_check()
98 static void eap_md5_process(struct eap_sm *sm, void *priv, in eap_md5_process()
139 static Boolean eap_md5_isDone(struct eap_sm *sm, void *priv) in eap_md5_isDone()
146 static Boolean eap_md5_isSuccess(struct eap_sm *sm, void *priv) in eap_md5_isSuccess()
Deap_server_gtc.c21 static void * eap_gtc_init(struct eap_sm *sm) in eap_gtc_init()
43 static void eap_gtc_reset(struct eap_sm *sm, void *priv) in eap_gtc_reset()
50 static struct wpabuf * eap_gtc_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_gtc_buildReq()
77 static Boolean eap_gtc_check(struct eap_sm *sm, void *priv, in eap_gtc_check()
93 static void eap_gtc_process(struct eap_sm *sm, void *priv, in eap_gtc_process()
188 static Boolean eap_gtc_isDone(struct eap_sm *sm, void *priv) in eap_gtc_isDone()
195 static Boolean eap_gtc_isSuccess(struct eap_sm *sm, void *priv) in eap_gtc_isSuccess()
Deap_server_fast.c22 static void eap_fast_reset(struct eap_sm *sm, void *priv);
71 static int eap_fast_process_phase2_start(struct eap_sm *sm,
111 static EapType eap_fast_req_failure(struct eap_sm *sm, in eap_fast_req_failure()
267 static void eap_fast_derive_key_auth(struct eap_sm *sm, in eap_fast_derive_key_auth()
297 static void eap_fast_derive_key_provisioning(struct eap_sm *sm, in eap_fast_derive_key_provisioning()
329 static int eap_fast_get_phase2_key(struct eap_sm *sm, in eap_fast_get_phase2_key()
374 static int eap_fast_update_icmk(struct eap_sm *sm, struct eap_fast_data *data) in eap_fast_update_icmk()
407 static void * eap_fast_init(struct eap_sm *sm) in eap_fast_init()
501 static void eap_fast_reset(struct eap_sm *sm, void *priv) in eap_fast_reset()
518 static struct wpabuf * eap_fast_build_start(struct eap_sm *sm, in eap_fast_build_start()
[all …]
Deap_server_aka.c57 static void eap_aka_fullauth(struct eap_sm *sm, struct eap_aka_data *data);
90 static int eap_aka_check_identity_reauth(struct eap_sm *sm, in eap_aka_check_identity_reauth()
131 static void eap_aka_check_identity(struct eap_sm *sm, in eap_aka_check_identity()
180 static void * eap_aka_init(struct eap_sm *sm) in eap_aka_init()
204 static void * eap_aka_prime_init(struct eap_sm *sm) in eap_aka_prime_init()
237 static void eap_aka_reset(struct eap_sm *sm, void *priv) in eap_aka_reset()
348 static struct wpabuf * eap_aka_build_identity(struct eap_sm *sm, in eap_aka_build_identity()
390 static int eap_aka_build_encr(struct eap_sm *sm, struct eap_aka_data *data, in eap_aka_build_encr()
465 static struct wpabuf * eap_aka_build_challenge(struct eap_sm *sm, in eap_aka_build_challenge()
541 static struct wpabuf * eap_aka_build_reauth(struct eap_sm *sm, in eap_aka_build_reauth()
[all …]
Deap_server_psk.c33 static void * eap_psk_init(struct eap_sm *sm) in eap_psk_init()
46 static void eap_psk_reset(struct eap_sm *sm, void *priv) in eap_psk_reset()
54 static struct wpabuf * eap_psk_build_1(struct eap_sm *sm, in eap_psk_build_1()
89 static struct wpabuf * eap_psk_build_3(struct eap_sm *sm, in eap_psk_build_3()
156 static struct wpabuf * eap_psk_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_psk_buildReq()
174 static Boolean eap_psk_check(struct eap_sm *sm, void *priv, in eap_psk_check()
213 static void eap_psk_process_2(struct eap_sm *sm, in eap_psk_process_2()
329 static void eap_psk_process_4(struct eap_sm *sm, in eap_psk_process_4()
409 static void eap_psk_process(struct eap_sm *sm, void *priv, in eap_psk_process()
438 static Boolean eap_psk_isDone(struct eap_sm *sm, void *priv) in eap_psk_isDone()
[all …]
Deap_server_mschapv2.c58 static void * eap_mschapv2_init(struct eap_sm *sm) in eap_mschapv2_init()
87 static void eap_mschapv2_reset(struct eap_sm *sm, void *priv) in eap_mschapv2_reset()
99 struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id) in eap_mschapv2_build_challenge()
142 struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id) in eap_mschapv2_build_success_req()
186 struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id) in eap_mschapv2_build_failure_req()
218 static struct wpabuf * eap_mschapv2_buildReq(struct eap_sm *sm, void *priv, in eap_mschapv2_buildReq()
239 static Boolean eap_mschapv2_check(struct eap_sm *sm, void *priv, in eap_mschapv2_check()
281 static void eap_mschapv2_process_response(struct eap_sm *sm, in eap_mschapv2_process_response()
452 static void eap_mschapv2_process_success_resp(struct eap_sm *sm, in eap_mschapv2_process_success_resp()
479 static void eap_mschapv2_process_failure_resp(struct eap_sm *sm, in eap_mschapv2_process_failure_resp()
[all …]
Deap_server_sim.c74 static void * eap_sim_init(struct eap_sm *sm) in eap_sim_init()
92 static void eap_sim_reset(struct eap_sm *sm, void *priv) in eap_sim_reset()
101 static struct wpabuf * eap_sim_build_start(struct eap_sm *sm, in eap_sim_build_start()
147 static int eap_sim_build_encr(struct eap_sm *sm, struct eap_sim_data *data, in eap_sim_build_encr()
218 static struct wpabuf * eap_sim_build_challenge(struct eap_sm *sm, in eap_sim_build_challenge()
248 static struct wpabuf * eap_sim_build_reauth(struct eap_sm *sm, in eap_sim_build_reauth()
285 static struct wpabuf * eap_sim_build_notification(struct eap_sm *sm, in eap_sim_build_notification()
324 static struct wpabuf * eap_sim_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_sim_buildReq()
346 static Boolean eap_sim_check(struct eap_sm *sm, void *priv, in eap_sim_check()
413 static void eap_sim_process_start(struct eap_sm *sm, in eap_sim_process_start()
[all …]
Deap_server_ttls.c24 static void eap_ttls_reset(struct eap_sm *sm, void *priv);
302 static u8 * eap_ttls_implicit_challenge(struct eap_sm *sm, in eap_ttls_implicit_challenge()
310 static void * eap_ttls_init(struct eap_sm *sm) in eap_ttls_init()
330 static void eap_ttls_reset(struct eap_sm *sm, void *priv) in eap_ttls_reset()
343 static struct wpabuf * eap_ttls_build_start(struct eap_sm *sm, in eap_ttls_build_start()
366 struct eap_sm *sm, struct eap_ttls_data *data, u8 id) in eap_ttls_build_phase2_eap_req()
396 struct eap_sm *sm, struct eap_ttls_data *data) in eap_ttls_build_phase2_mschapv2()
436 static struct wpabuf * eap_ttls_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_ttls_buildReq()
482 static Boolean eap_ttls_check(struct eap_sm *sm, void *priv, in eap_ttls_check()
498 static void eap_ttls_process_phase2_pap(struct eap_sm *sm, in eap_ttls_process_phase2_pap()
[all …]
Deap_server_peap.c29 static void eap_peap_reset(struct eap_sm *sm, void *priv);
101 static void eap_peap_req_success(struct eap_sm *sm, in eap_peap_req_success()
118 static void eap_peap_req_failure(struct eap_sm *sm, in eap_peap_req_failure()
136 static void * eap_peap_init(struct eap_sm *sm) in eap_peap_init()
164 static void eap_peap_reset(struct eap_sm *sm, void *priv) in eap_peap_reset()
179 static struct wpabuf * eap_peap_build_start(struct eap_sm *sm, in eap_peap_build_start()
201 static struct wpabuf * eap_peap_build_phase2_req(struct eap_sm *sm, in eap_peap_build_phase2_req()
237 static struct wpabuf * eap_peap_build_phase2_soh(struct eap_sm *sm, in eap_peap_build_phase2_soh()
292 static int eap_peap_derive_cmk(struct eap_sm *sm, struct eap_peap_data *data) in eap_peap_derive_cmk()
339 static struct wpabuf * eap_peap_build_phase2_tlv(struct eap_sm *sm, in eap_peap_build_phase2_tlv()
[all …]
Deap_server.c23 #define STATE_MACHINE_DATA struct eap_sm
33 static int eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount,
36 static void eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp);
38 static struct wpabuf * eap_sm_buildSuccess(struct eap_sm *sm, u8 id);
39 static struct wpabuf * eap_sm_buildFailure(struct eap_sm *sm, u8 id);
40 static int eap_sm_nextId(struct eap_sm *sm, int id);
41 static void eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list,
43 static EapType eap_sm_Policy_getNextMethod(struct eap_sm *sm, int *vendor);
44 static int eap_sm_Policy_getDecision(struct eap_sm *sm);
45 static Boolean eap_sm_Policy_doPickUp(struct eap_sm *sm, EapType method);
[all …]

123