Home
last modified time | relevance | path

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

123

/external/wpa_supplicant_8/src/eap_peer/
Deap.h16 struct eap_sm;
329 struct eap_sm * eap_peer_sm_init(void *eapol_ctx,
332 void eap_peer_sm_deinit(struct eap_sm *sm);
333 int eap_peer_sm_step(struct eap_sm *sm);
334 void eap_sm_abort(struct eap_sm *sm);
335 int eap_sm_get_status(struct eap_sm *sm, char *buf, size_t buflen,
337 const char * eap_sm_get_method_name(struct eap_sm *sm);
338 struct wpabuf * eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted);
339 void eap_sm_request_identity(struct eap_sm *sm);
340 void eap_sm_request_password(struct eap_sm *sm);
[all …]
Deap_i.h92 void * (*init)(struct eap_sm *sm);
101 void (*deinit)(struct eap_sm *sm, void *priv);
118 struct wpabuf * (*process)(struct eap_sm *sm, void *priv,
128 bool (*isKeyAvailable)(struct eap_sm *sm, void *priv);
141 u8 * (*getKey)(struct eap_sm *sm, void *priv, size_t *len);
157 int (*get_status)(struct eap_sm *sm, void *priv, char *buf,
170 bool (*has_reauth_data)(struct eap_sm *sm, void *priv);
183 void (*deinit_for_reauth)(struct eap_sm *sm, void *priv);
195 void * (*init_for_reauth)(struct eap_sm *sm, void *priv);
208 const u8 * (*get_identity)(struct eap_sm *sm, void *priv, size_t *len);
[all …]
Deap_tls_common.h65 struct eap_sm *eap;
100 int eap_peer_tls_ssl_init(struct eap_sm *sm, struct eap_ssl_data *data,
102 void eap_peer_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data);
103 u8 * eap_peer_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data,
106 u8 * eap_peer_tls_derive_session_id(struct eap_sm *sm,
109 int eap_peer_tls_process_helper(struct eap_sm *sm, struct eap_ssl_data *data,
115 int eap_peer_tls_reauth_init(struct eap_sm *sm, struct eap_ssl_data *data);
116 int eap_peer_tls_status(struct eap_sm *sm, struct eap_ssl_data *data,
118 const u8 * eap_peer_tls_process_init(struct eap_sm *sm,
126 int eap_peer_tls_decrypt(struct eap_sm *sm, struct eap_ssl_data *data,
[all …]
Deap.c32 #define STATE_MACHINE_DATA struct eap_sm
40 static bool eap_sm_allowMethod(struct eap_sm *sm, int vendor,
42 static struct wpabuf * eap_sm_buildNak(struct eap_sm *sm, int id);
43 static void eap_sm_processIdentity(struct eap_sm *sm,
45 static void eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req);
47 static void eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req);
52 static void eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field,
57 static bool eapol_get_bool(struct eap_sm *sm, enum eapol_bool_var var) in eapol_get_bool()
63 static void eapol_set_bool(struct eap_sm *sm, enum eapol_bool_var var, in eapol_set_bool()
70 static unsigned int eapol_get_int(struct eap_sm *sm, enum eapol_int_var var) in eapol_get_int()
[all …]
Deap_tls.c18 static void eap_tls_deinit(struct eap_sm *sm, void *priv);
32 static void * eap_tls_init(struct eap_sm *sm) in eap_tls_init()
82 static void * eap_unauth_tls_init(struct eap_sm *sm) in eap_unauth_tls_init()
109 static void * eap_wfa_unauth_tls_init(struct eap_sm *sm) in eap_wfa_unauth_tls_init()
144 static void eap_tls_deinit(struct eap_sm *sm, void *priv) in eap_tls_deinit()
157 static struct wpabuf * eap_tls_failure(struct eap_sm *sm, in eap_tls_failure()
179 static void eap_tls_success(struct eap_sm *sm, struct eap_tls_data *data, in eap_tls_success()
238 static struct wpabuf * eap_tls_process(struct eap_sm *sm, void *priv, in eap_tls_process()
325 static bool eap_tls_has_reauth_data(struct eap_sm *sm, void *priv) in eap_tls_has_reauth_data()
332 static void eap_tls_deinit_for_reauth(struct eap_sm *sm, void *priv) in eap_tls_deinit_for_reauth()
[all …]
Deap_teap_pac.h39 int eap_teap_load_pac(struct eap_sm *sm, struct eap_teap_pac **pac_root,
41 int eap_teap_save_pac(struct eap_sm *sm, struct eap_teap_pac *pac_root,
45 int eap_teap_load_pac_bin(struct eap_sm *sm, struct eap_teap_pac **pac_root,
47 int eap_teap_save_pac_bin(struct eap_sm *sm, struct eap_teap_pac *pac_root,
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 bool 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()
/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 bool (*check)(struct eap_sm *sm, void *priv, struct wpabuf *respData);
36 void (*process)(struct eap_sm *sm, void *priv,
38 bool (*isDone)(struct eap_sm *sm, void *priv);
39 u8 * (*getKey)(struct eap_sm *sm, void *priv, size_t *len);
42 bool (*isSuccess)(struct eap_sm *sm, void *priv);
[all …]
Deap.h18 struct eap_sm;
273 struct eap_sm * eap_server_sm_init(void *eapol_ctx,
277 void eap_server_sm_deinit(struct eap_sm *sm);
278 int eap_server_sm_step(struct eap_sm *sm);
279 void eap_sm_notify_cached(struct eap_sm *sm);
280 void eap_sm_pending_cb(struct eap_sm *sm);
281 int eap_sm_method_pending(struct eap_sm *sm);
282 const u8 * eap_get_identity(struct eap_sm *sm, size_t *len);
283 const char * eap_get_serial_num(struct eap_sm *sm);
284 const char * eap_get_method(struct eap_sm *sm);
[all …]
Deap_tls_common.h49 struct eap_sm *eap;
78 int eap_server_tls_ssl_init(struct eap_sm *sm, struct eap_ssl_data *data,
80 void eap_server_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data);
81 u8 * eap_server_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data,
84 u8 * eap_server_tls_derive_session_id(struct eap_sm *sm,
90 int eap_server_tls_phase1(struct eap_sm *sm, struct eap_ssl_data *data);
91 struct wpabuf * eap_server_tls_encrypt(struct eap_sm *sm,
94 int eap_server_tls_process(struct eap_sm *sm, struct eap_ssl_data *data,
96 int (*proc_version)(struct eap_sm *sm, void *priv,
98 void (*proc_msg)(struct eap_sm *sm, void *priv,
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 bool 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 bool 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 bool 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 bool 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 bool eap_identity_isDone(struct eap_sm *sm, void *priv) in eap_identity_isDone()
150 static bool eap_identity_isSuccess(struct eap_sm *sm, void *priv) in eap_identity_isSuccess()
Deap_server_tls.c17 static void eap_tls_reset(struct eap_sm *sm, void *priv);
57 static void eap_tls_valid_session(struct eap_sm *sm, struct eap_tls_data *data) in eap_tls_valid_session()
72 static void * eap_tls_init(struct eap_sm *sm) in eap_tls_init()
96 static void * eap_unauth_tls_init(struct eap_sm *sm) in eap_unauth_tls_init()
118 static void * eap_wfa_unauth_tls_init(struct eap_sm *sm) in eap_wfa_unauth_tls_init()
140 static void eap_tls_reset(struct eap_sm *sm, void *priv) in eap_tls_reset()
150 static struct wpabuf * eap_tls_build_start(struct eap_sm *sm, in eap_tls_build_start()
171 static struct wpabuf * eap_tls_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_tls_buildReq()
229 static bool eap_tls_check(struct eap_sm *sm, void *priv, in eap_tls_check()
256 static void eap_tls_process_msg(struct eap_sm *sm, void *priv, in eap_tls_process_msg()
[all …]
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 bool 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()
372 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 bool 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 bool eap_md5_isDone(struct eap_sm *sm, void *priv) in eap_md5_isDone()
146 static bool 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 bool 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()
187 static bool eap_gtc_isDone(struct eap_sm *sm, void *priv) in eap_gtc_isDone()
194 static bool 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 enum eap_type eap_fast_req_failure(struct eap_sm *sm, in eap_fast_req_failure()
272 static void eap_fast_derive_key_auth(struct eap_sm *sm, in eap_fast_derive_key_auth()
302 static void eap_fast_derive_key_provisioning(struct eap_sm *sm, in eap_fast_derive_key_provisioning()
333 static int eap_fast_get_phase2_key(struct eap_sm *sm, in eap_fast_get_phase2_key()
378 static int eap_fast_update_icmk(struct eap_sm *sm, struct eap_fast_data *data) in eap_fast_update_icmk()
411 static void * eap_fast_init(struct eap_sm *sm) in eap_fast_init()
508 static void eap_fast_reset(struct eap_sm *sm, void *priv) in eap_fast_reset()
525 static struct wpabuf * eap_fast_build_start(struct eap_sm *sm, in eap_fast_build_start()
[all …]
Deap_server.c23 #define STATE_MACHINE_DATA struct eap_sm
28 static int eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount,
31 static void eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp);
33 static struct wpabuf * eap_sm_buildSuccess(struct eap_sm *sm, u8 id);
34 static struct wpabuf * eap_sm_buildFailure(struct eap_sm *sm, u8 id);
35 static int eap_sm_nextId(struct eap_sm *sm, int id);
36 static void eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list,
38 static enum eap_type eap_sm_Policy_getNextMethod(struct eap_sm *sm,
40 static int eap_sm_Policy_getDecision(struct eap_sm *sm);
41 static bool eap_sm_Policy_doPickUp(struct eap_sm *sm, enum eap_type method);
[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 bool 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()
328 static void eap_psk_process_4(struct eap_sm *sm, in eap_psk_process_4()
407 static void eap_psk_process(struct eap_sm *sm, void *priv, in eap_psk_process()
436 static bool 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()
86 static void eap_mschapv2_reset(struct eap_sm *sm, void *priv) in eap_mschapv2_reset()
98 struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id) in eap_mschapv2_build_challenge()
141 struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id) in eap_mschapv2_build_success_req()
185 struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id) in eap_mschapv2_build_failure_req()
217 static struct wpabuf * eap_mschapv2_buildReq(struct eap_sm *sm, void *priv, in eap_mschapv2_buildReq()
238 static bool eap_mschapv2_check(struct eap_sm *sm, void *priv, in eap_mschapv2_check()
280 static void eap_mschapv2_process_response(struct eap_sm *sm, in eap_mschapv2_process_response()
451 static void eap_mschapv2_process_success_resp(struct eap_sm *sm, in eap_mschapv2_process_success_resp()
478 static void eap_mschapv2_process_failure_resp(struct eap_sm *sm, in eap_mschapv2_process_failure_resp()
[all …]
Deap_server_aka.c58 static void eap_aka_fullauth(struct eap_sm *sm, struct eap_aka_data *data);
91 static int eap_aka_check_identity_reauth(struct eap_sm *sm, in eap_aka_check_identity_reauth()
132 static void eap_aka_check_identity(struct eap_sm *sm, in eap_aka_check_identity()
181 static void * eap_aka_init(struct eap_sm *sm) in eap_aka_init()
205 static void * eap_aka_prime_init(struct eap_sm *sm) in eap_aka_prime_init()
238 static void eap_aka_reset(struct eap_sm *sm, void *priv) in eap_aka_reset()
349 static struct wpabuf * eap_aka_build_identity(struct eap_sm *sm, in eap_aka_build_identity()
391 static int eap_aka_build_encr(struct eap_sm *sm, struct eap_aka_data *data, in eap_aka_build_encr()
472 static struct wpabuf * eap_aka_build_challenge(struct eap_sm *sm, in eap_aka_build_challenge()
548 static struct wpabuf * eap_aka_build_reauth(struct eap_sm *sm, in eap_aka_build_reauth()
[all …]
Deap_server_sim.c75 static void * eap_sim_init(struct eap_sm *sm) in eap_sim_init()
93 static void eap_sim_reset(struct eap_sm *sm, void *priv) in eap_sim_reset()
102 static struct wpabuf * eap_sim_build_start(struct eap_sm *sm, in eap_sim_build_start()
148 static int eap_sim_build_encr(struct eap_sm *sm, struct eap_sim_data *data, in eap_sim_build_encr()
225 static struct wpabuf * eap_sim_build_challenge(struct eap_sm *sm, in eap_sim_build_challenge()
255 static struct wpabuf * eap_sim_build_reauth(struct eap_sm *sm, in eap_sim_build_reauth()
302 static struct wpabuf * eap_sim_build_notification(struct eap_sm *sm, in eap_sim_build_notification()
341 static struct wpabuf * eap_sim_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_sim_buildReq()
363 static bool eap_sim_check(struct eap_sm *sm, void *priv, in eap_sim_check()
430 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);
79 static void eap_ttls_valid_session(struct eap_sm *sm, in eap_ttls_valid_session()
331 static u8 * eap_ttls_implicit_challenge(struct eap_sm *sm, in eap_ttls_implicit_challenge()
339 static void * eap_ttls_init(struct eap_sm *sm) in eap_ttls_init()
359 static void eap_ttls_reset(struct eap_sm *sm, void *priv) in eap_ttls_reset()
372 static struct wpabuf * eap_ttls_build_start(struct eap_sm *sm, in eap_ttls_build_start()
395 struct eap_sm *sm, struct eap_ttls_data *data, u8 id) in eap_ttls_build_phase2_eap_req()
425 struct eap_sm *sm, struct eap_ttls_data *data) in eap_ttls_build_phase2_mschapv2()
465 static struct wpabuf * eap_ttls_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_ttls_buildReq()
512 static bool eap_ttls_check(struct eap_sm *sm, void *priv, in eap_ttls_check()
[all …]
Deap_server_gpsk.c65 static void * eap_gpsk_init(struct eap_sm *sm) in eap_gpsk_init()
96 static void eap_gpsk_reset(struct eap_sm *sm, void *priv) in eap_gpsk_reset()
104 static struct wpabuf * eap_gpsk_build_gpsk_1(struct eap_sm *sm, in eap_gpsk_build_gpsk_1()
144 static struct wpabuf * eap_gpsk_build_gpsk_3(struct eap_sm *sm, in eap_gpsk_build_gpsk_3()
193 static struct wpabuf * eap_gpsk_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_gpsk_buildReq()
211 static bool eap_gpsk_check(struct eap_sm *sm, void *priv, in eap_gpsk_check()
239 static void eap_gpsk_process_gpsk_2(struct eap_sm *sm, in eap_gpsk_process_gpsk_2()
472 static void eap_gpsk_process_gpsk_4(struct eap_sm *sm, in eap_gpsk_process_gpsk_4()
541 static void eap_gpsk_process(struct eap_sm *sm, void *priv, in eap_gpsk_process()
563 static bool eap_gpsk_isDone(struct eap_sm *sm, void *priv) in eap_gpsk_isDone()
[all …]

123