• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/wpa_supplicant-0.7.3/src/eapol_auth/

Lines Matching refs:eapol

36 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 1)
38 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 0)
44 #define abortAuth() sm->eapol->cb.abort_auth(sm->eapol->conf.ctx, sm->sta)
45 #define txKey() sm->eapol->cb.tx_key(sm->eapol->conf.ctx, sm->sta)
54 static void eapol_auth_logger(struct eapol_authenticator *eapol,
58 if (eapol->cb.logger == NULL)
60 eapol->cb.logger(eapol->conf.ctx, addr, level, txt);
64 static void eapol_auth_vlogger(struct eapol_authenticator *eapol,
72 if (eapol->cb.logger == NULL)
84 eapol_auth_logger(eapol, addr, level, format);
101 eapol_auth_vlogger(sm->eapol, sm->addr, EAPOL_LOGGER_DEBUG,
104 sm->eapol->cb.eapol_send(sm->eapol->conf.ctx, sm->sta,
115 eapol_auth_logger(sm->eapol, sm->addr,
130 eapol_auth_vlogger(sm->eapol, sm->addr, EAPOL_LOGGER_DEBUG,
133 sm->eapol->cb.eapol_send(sm->eapol->conf.ctx, sm->sta,
227 sm->eapol->cb.finished(sm->eapol->conf.ctx, sm->sta, 0,
274 eapol_auth_vlogger(sm->eapol, sm->addr, EAPOL_LOGGER_WARNING,
279 eapol_auth_vlogger(sm->eapol, sm->addr, EAPOL_LOGGER_INFO,
284 sm->eapol->cb.finished(sm->eapol->conf.ctx, sm->sta, 0,
305 eapol_auth_vlogger(sm->eapol, sm->addr, EAPOL_LOGGER_INFO,
310 sm->eapol->cb.finished(sm->eapol->conf.ctx, sm->sta, 1,
617 sm->eapol->cb.eapol_event(sm->eapol->conf.ctx, sm->sta,
764 eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr,
770 if (eapol == NULL)
783 sm->eapol = eapol;
795 sm->reAuthPeriod = eapol->conf.eap_reauth_period;
796 sm->reAuthEnabled = eapol->conf.eap_reauth_period > 0 ? TRUE : FALSE;
806 if (!eapol->conf.wpa &&
807 (eapol->default_wep_key || eapol->conf.individual_wep_key_len > 0))
811 if (eapol->conf.wpa)
817 eap_conf.eap_server = eapol->conf.eap_server;
818 eap_conf.ssl_ctx = eapol->conf.ssl_ctx;
819 eap_conf.msg_ctx = eapol->conf.msg_ctx;
820 eap_conf.eap_sim_db_priv = eapol->conf.eap_sim_db_priv;
821 eap_conf.pac_opaque_encr_key = eapol->conf.pac_opaque_encr_key;
822 eap_conf.eap_fast_a_id = eapol->conf.eap_fast_a_id;
823 eap_conf.eap_fast_a_id_len = eapol->conf.eap_fast_a_id_len;
824 eap_conf.eap_fast_a_id_info = eapol->conf.eap_fast_a_id_info;
825 eap_conf.eap_fast_prov = eapol->conf.eap_fast_prov;
826 eap_conf.pac_key_lifetime = eapol->conf.pac_key_lifetime;
827 eap_conf.pac_key_refresh_time = eapol->conf.pac_key_refresh_time;
828 eap_conf.eap_sim_aka_result_ind = eapol->conf.eap_sim_aka_result_ind;
829 eap_conf.tnc = eapol->conf.tnc;
830 eap_conf.wps = eapol->conf.wps;
859 static int eapol_sm_sta_entry_alive(struct eapol_authenticator *eapol,
862 return eapol->cb.sta_entry_alive(eapol->conf.ctx, addr);
868 struct eapol_authenticator *eapol = sm->eapol;
891 if (sm->initializing || eapol_sm_sta_entry_alive(eapol, addr))
893 if (sm->initializing || eapol_sm_sta_entry_alive(eapol, addr))
895 if (sm->initializing || eapol_sm_sta_entry_alive(eapol, addr))
897 if (sm->initializing || eapol_sm_sta_entry_alive(eapol, addr))
899 if (sm->initializing || eapol_sm_sta_entry_alive(eapol, addr))
915 if (eapol_sm_sta_entry_alive(eapol, addr) && sm->eap) {
932 sm->eapol->cb.aaa_send(
933 sm->eapol->conf.ctx, sm->sta,
939 if (eapol_sm_sta_entry_alive(eapol, addr))
940 sm->eapol->cb.eapol_event(sm->eapol->conf.ctx, sm->sta,
993 return sm->eapol->cb.get_eap_user(sm->eapol->conf.ctx, identity,
1001 *len = sm->eapol->conf.eap_req_id_text_len;
1002 return sm->eapol->conf.eap_req_id_text;
1100 struct eapol_authenticator *eapol;
1102 eapol = os_zalloc(sizeof(*eapol));
1103 if (eapol == NULL)
1106 if (eapol_auth_conf_clone(&eapol->conf, conf) < 0) {
1107 os_free(eapol);
1113 eapol->default_wep_key_idx = 1;
1116 eapol->cb.eapol_send = cb->eapol_send;
1117 eapol->cb.aaa_send = cb->aaa_send;
1118 eapol->cb.finished = cb->finished;
1119 eapol->cb.get_eap_user = cb->get_eap_user;
1120 eapol->cb.sta_entry_alive = cb->sta_entry_alive;
1121 eapol->cb.logger = cb->logger;
1122 eapol->cb.set_port_authorized = cb->set_port_authorized;
1123 eapol->cb.abort_auth = cb->abort_auth;
1124 eapol->cb.tx_key = cb->tx_key;
1125 eapol->cb.eapol_event = cb->eapol_event;
1127 return eapol;
1131 void eapol_auth_deinit(struct eapol_authenticator *eapol)
1133 if (eapol == NULL)
1136 eapol_auth_conf_free(&eapol->conf);
1137 os_free(eapol->default_wep_key);
1138 os_free(eapol);