input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int eap_ttls_phase2_request_chap(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, wpabuf **resp) {
u8 *v5;
int __pad;
size_t identity_len;
size_t password_len;
const u8 *identity;
const u8 *password;
wpabuf *msg;
u8 *buf;
u8 *pos;
u8 *challenge;
unsigned long ... | static int eap_ttls_phase2_request_chap(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct wpabuf **resp) {
#ifdef CONFIG_FIPS
wpa_printf(MSG_ERROR, "EAP-TTLS: CHAP no... | eap_ttls_phase2_request_chap | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_phase2_request_eap(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, eap_hdr *hdr,
wpabuf **resp) {
int code;
signed int v7;
u32 v8;
size_t len;
eap_peer_config *config;
len = _bswap_16_2(hdr->length);
config = eap_get_confi... | static int eap_ttls_phase2_request_eap(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct eap_hdr *hdr,
struct wpabuf **resp) {
siz... | eap_ttls_phase2_request_eap | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_phase2_request_eap_method(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, eap_hdr *hdr,
size_t len, int vendor, eap_type method,
wpabuf **resp) {
if (data->tnc_started && data->phase... | static int eap_ttls_phase2_request_eap_method(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct eap_hdr *hdr, size_t len,
... | eap_ttls_phase2_request_eap_method | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_phase2_request_mschap(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, wpabuf **resp) {
u8 *v5;
u8 *v6;
int pwhash;
int __pad;
size_t identity_len;
size_t password_len;
const u8 *identity;
const u8 *password;
wpabuf *msg;
u8 *buf;
u8 *pos;
u8 ... | static int eap_ttls_phase2_request_mschap(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct wpabuf **resp) {
#ifdef CONFIG_FIPS
wpa_printf(MSG_ERROR, "EAP-TTLS:... | eap_ttls_phase2_request_mschap | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_phase2_request_mschapv2(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, wpabuf **resp) {
u8 *v5;
u8 *v6;
int pwhash;
int __pad;
size_t identity_len;
size_t password_len;
const u8 *identity;
const u8 *password;
wpabuf *msg;
u8 *buf;
u8 *pos;
... | static int eap_ttls_phase2_request_mschapv2(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct wpabuf **resp) {
#ifdef CONFIG_FIPS
wpa_printf(MSG_ERROR, "E... | eap_ttls_phase2_request_mschapv2 | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_phase2_request_pap(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, wpabuf **resp) {
size_t v5;
int __pad;
size_t identity_len;
size_t password_len;
const u8 *identity;
const u8 *password;
wpabuf *msg;
u8 *buf;
u8 *pos;
size_t pad;
unsigned long v1... | static int eap_ttls_phase2_request_pap(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct wpabuf **resp) {
struct wpabuf *msg;
u8 *buf, *pos;
size_t pad;
const u8 *... | eap_ttls_phase2_request_pap | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eap_ttls_phase2_select_eap_method(eap_ttls_data *data, int vendor,
eap_type method) {
size_t i;
for (i = 0; i < data->num_phase2_eap_types; ++i) {
if (vendor == data->phase2_eap_types[i].vendor &&
method == data->phase2_eap_types[i].method) {
data->phas... | static void eap_ttls_phase2_select_eap_method(struct eap_ttls_data *data,
int vendor,
enum eap_type method) {
size_t i;
for (i = 0; i < data->num_phase2_eap_types; i++) {
if (data->phase2_eap_types[i].vendor != vendor ||... | eap_ttls_phase2_select_eap_method | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_phase2_start(eap_sm *sm, eap_ttls_data *data, eap_method_ret *ret,
u8 identifier, wpabuf **out_data) {
data->phase2_start = 0;
if (!data->reauth || !tls_connection_resumed(sm->ssl_ctx, data->ssl.conn))
return eap_ttls_implicit_identity_request(sm, data, ret, identifier,
... | static int eap_ttls_phase2_start(struct eap_sm *sm, struct eap_ttls_data *data,
struct eap_method_ret *ret, u8 identifier,
struct wpabuf **out_data) {
data->phase2_start = 0;
if (data->reauth && tls_connection_resumed(sm->ssl_ctx, data->ssl.conn)) {... | eap_ttls_phase2_start | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpabuf *eap_ttls_process(eap_sm *sm, void *priv, eap_method_ret *ret,
const wpabuf *reqData) {
u8 flags;
u8 id;
int res;
size_t left;
wpabuf *resp;
eap_ttls_data *data;
const u8 *pos;
wpabuf msg;
unsigned long v15;
v15 = __readfsqword(0x28u);
data = (eap_ttls_data *)priv;... | static struct wpabuf *eap_ttls_process(struct eap_sm *sm, void *priv,
struct eap_method_ret *ret,
const struct wpabuf *reqData) {
size_t left;
int res;
u8 flags, id;
struct wpabuf *resp;
const u8 *pos;
struct eap_ttls_data *data =... | eap_ttls_process | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_process_decrypted(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, u8 identifier,
ttls_parse_avp *parse, wpabuf *in_decrypted,
wpabuf **out_data) {
phase2_types phase2_type;
int res;
wpabuf *resp;
eap_... | static int eap_ttls_process_decrypted(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret, u8 identifier,
struct ttls_parse_avp *parse,
struct wpa... | eap_ttls_process_decrypted | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_process_handshake(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, u8 identifier,
const wpabuf *in_data, wpabuf **out_data) {
int res;
eap_peer_config *config;
if ((*((_BYTE *)sm + 332) & 4) != 0 && data->pending_resp) {
config =... | static int eap_ttls_process_handshake(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret, u8 identifier,
const struct wpabuf *in_data,
struct wpa... | eap_ttls_process_handshake | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_process_phase2_eap(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, ttls_parse_avp *parse,
wpabuf **resp) {
eap_hdr *hdr;
size_t len;
if (parse->eapdata) {
wpa_hexdump(2, "EAP-TTLS: Phase 2 EAP", parse->eapdata, parse->eap_len)... | static int eap_ttls_process_phase2_eap(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct ttls_parse_avp *parse,
struct wpabuf **resp... | eap_ttls_process_phase2_eap | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_process_phase2_mschapv2(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret,
ttls_parse_avp *parse) {
if (parse->mschapv2_error) {
wpa_printf(2, "EAP-TTLS/MSCHAPV2: Received MS-CHAP-Error - failed");
ret->methodState = MET... | static int eap_ttls_process_phase2_mschapv2(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct ttls_parse_avp *parse) {
#ifdef EAP_MSCHAPv2
if (parse->msch... | eap_ttls_process_phase2_mschapv2 | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_process_tnc_start(eap_sm *sm, eap_ttls_data *data,
eap_method_ret *ret, ttls_parse_avp *parse,
wpabuf **resp) {
if (parse->eapdata) {
if (data->ready_for_tnc) {
wpa_printf(2, "EAP-TTLS: Start TNC after completed non-EAP method");
... | static int eap_ttls_process_tnc_start(struct eap_sm *sm,
struct eap_ttls_data *data,
struct eap_method_ret *ret,
struct ttls_parse_avp *parse,
struct wpabuf **resp) {
... | eap_ttls_process_tnc_start | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_ttls_v0_derive_key(eap_sm *sm, eap_ttls_data *data) {
const char *label;
u8 *context;
size_t context_len;
u8 eap_tls13_context[1];
unsigned long v7;
v7 = __readfsqword(0x28u);
eap_tls13_context[0] = 21;
context = 0;
context_len = 0;
if (data->ssl.tls_v13) {
label = "EXPORTER_EAP_TLS_Key... | static int eap_ttls_v0_derive_key(struct eap_sm *sm,
struct eap_ttls_data *data) {
const char *label;
const u8 eap_tls13_context[1] = {EAP_TYPE_TTLS};
const u8 *context = NULL;
size_t context_len = 0;
if (data->ssl.tls_v13) {
label = "EXPORTER_EAP_TLS_Key_Material";
... | eap_ttls_v0_derive_key | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eap_update_len(wpabuf *msg) {
__uint16_t v1;
eap_hdr *hdr;
hdr = (eap_hdr *)wpabuf_mhead_14(msg);
if (wpabuf_len_70(msg) > 3) {
v1 = wpabuf_len_70(msg);
hdr->length = _bswap_16_16(v1);
}
} | void eap_update_len(struct wpabuf *msg) {
struct eap_hdr *hdr;
hdr = wpabuf_mhead(msg);
if (wpabuf_len(msg) < sizeof(*hdr))
return;
hdr->length = host_to_be16(wpabuf_len(msg));
} | eap_update_len | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eap_user_get(eap_sm *sm, const u8 *identity, size_t identity_len,
int phase2) {
eap_user *user;
if (!sm || !sm->ssl_ctx2 || !*(_QWORD *)sm->ssl_ctx2)
return -1;
eap_user_free((eap_user *)sm->ext_pw);
sm->ext_pw = 0;
user = (eap_user *)os_zalloc(0x88u);
if (!user)
return -1;
i... | int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len,
int phase2) {
struct eap_user *user;
if (sm == NULL || sm->eapol_cb == NULL || sm->eapol_cb->get_eap_user == NULL)
return -1;
eap_user_free(sm->user);
sm->user = NULL;
user = os_zalloc(sizeof(*user));
if (us... | eap_user_get | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void *eap_wfa_unauth_tls_init(eap_sm *sm) {
void *ssl_ctx2;
eap_peer_config *config;
eap_tls_data *data;
config = eap_get_config(sm);
data = (eap_tls_data *)os_zalloc(0x88u);
if (!data)
return 0;
if (sm->init_phase2 && sm->ssl_ctx2)
ssl_ctx2 = sm->ssl_ctx2;
else
ssl_ctx2 = sm->ssl_ctx;
da... | static void *eap_wfa_unauth_tls_init(struct eap_sm *sm) {
struct eap_tls_data *data;
struct eap_peer_config *config = eap_get_config(sm);
data = os_zalloc(sizeof(*data));
if (data == NULL)
return NULL;
data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : sm->ssl_ctx;
if (eap_peer_tls_ssl_... | eap_wfa_unauth_tls_init | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
eapol_state_machine *
eapol_auth_alloc(eapol_authenticator *eapol, const u8 *addr, int flags,
const wpabuf *assoc_wps_ie, const wpabuf *assoc_p2p_ie,
void *sta_ctx, const char *identity, const char *radius_cui) {
size_t v9;
eapol_state_machine *sm;
eap_session_data_0 eap_sess;
... | struct eapol_state_machine *
eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr, int flags,
const struct wpabuf *assoc_wps_ie,
const struct wpabuf *assoc_p2p_ie, void *sta_ctx,
const char *identity, const char *radius_cui) {
struct eapol_state_machine... | eapol_auth_alloc | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_auth_free(eapol_state_machine *sm) {
if (sm) {
eloop_cancel_timeout((eloop_timeout_handler)eapol_port_timers_tick_0, 0,
sm);
eloop_cancel_timeout((eloop_timeout_handler)eapol_sm_step_cb, sm, 0);
if (sm->eap)
eap_server_sm_deinit(sm->eap);
wpabuf_free(sm->radiu... | void eapol_auth_free(struct eapol_state_machine *sm) {
if (sm == NULL)
return;
eloop_cancel_timeout(eapol_port_timers_tick, NULL, sm);
eloop_cancel_timeout(eapol_sm_step_cb, sm, NULL);
if (sm->eap)
eap_server_sm_deinit(sm->eap);
wpabuf_free(sm->radius_cui);
os_free(sm->identity);
os_free(sm);
} | eapol_auth_free | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_auth_initialize(eapol_state_machine *sm) {
sm->initializing = 1;
sm->initialize = 1;
eapol_sm_step_run(sm);
sm->initialize = 0;
eapol_sm_step_run(sm);
sm->initializing = 0;
eloop_cancel_timeout((eloop_timeout_handler)eapol_port_timers_tick_0, 0, sm);
eloop_register_timeout(1u, 0, (eloop_timeo... | static void eapol_auth_initialize(struct eapol_state_machine *sm) {
sm->initializing = true;
sm->initialize = true;
eapol_sm_step_run(sm);
sm->initialize = false;
eapol_sm_step_run(sm);
sm->initializing = false;
eloop_cancel_timeout(eapol_port_timers_tick, NULL, sm);
eloop_register_timeout(1, 0, eapol... | eapol_auth_initialize | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_auth_set_conf(eapol_state_machine *sm, const char *param,
const char *value) {
wpa_printf(2,
"EAPOL: External configuration operation for "
"%02x:%02x:%02x:%02x:%02x:%02x - param=%s value=%s",
sm->addr[0], sm->addr[1], sm->addr[2], sm->addr[3], ... | int eapol_auth_set_conf(struct eapol_state_machine *sm, const char *param,
const char *value) {
wpa_printf(MSG_DEBUG,
"EAPOL: External configuration operation for " MACSTR
" - param=%s value=%s",
MAC2STR(sm->addr), param, value);
if (os_strcasecmp(para... | eapol_auth_set_conf | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_auth_tx_canned_eap(eapol_state_machine *sm, int success) {
u8 v2;
const char *v3;
eap_hdr eap;
unsigned long v5;
v5 = __readfsqword(0x28u);
memset(&eap, 0, sizeof(eap));
if (success)
v2 = 3;
else
v2 = 4;
eap.code = v2;
eap.identifier = ++sm->last_eap_id;
eap.length = _bswap_16_... | static void eapol_auth_tx_canned_eap(struct eapol_state_machine *sm,
int success) {
struct eap_hdr eap;
os_memset(&eap, 0, sizeof(eap));
eap.code = success ? EAP_CODE_SUCCESS : EAP_CODE_FAILURE;
eap.identifier = ++sm->last_eap_id;
eap.length = host_to_be16(sizeof(eap));
... | eapol_auth_tx_canned_eap | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_auth_tx_req(eapol_state_machine *sm) {
void (*eapol_send)(void *, void *, u8, const u8 *, size_t);
size_t v2;
const u8 *v3;
if (sm->eap_if->eapReqData && wpabuf_len_41(sm->eap_if->eapReqData) > 3) {
if ((sm->flags & 2) != 0) {
wpa_printf(2,
"EAPOL: Drop EAPOL TX to %02x:%0... | static void eapol_auth_tx_req(struct eapol_state_machine *sm) {
if (sm->eap_if->eapReqData == NULL ||
wpabuf_len(sm->eap_if->eapReqData) < sizeof(struct eap_hdr)) {
eapol_auth_logger(sm->eapol, sm->addr, EAPOL_LOGGER_DEBUG,
"TxReq called, but there is no EAP request "
... | eapol_auth_tx_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_enable_timer_tick(eapol_sm *sm) {
if (!sm->timer_tick_enabled) {
wpa_printf(2, "EAPOL: enable timer tick");
eloop_cancel_timeout((eloop_timeout_handler)eapol_port_timers_tick, 0, sm);
if (!eloop_register_timeout(
1u, 0, (eloop_timeout_handler)eapol_port_timers_tick, 0, sm))
sm... | static void eapol_enable_timer_tick(struct eapol_sm *sm) {
if (sm->timer_tick_enabled)
return;
wpa_printf(MSG_DEBUG, "EAPOL: enable timer tick");
eloop_cancel_timeout(eapol_port_timers_tick, NULL, sm);
if (eloop_register_timeout(1, 0, eapol_port_timers_tick, NULL, sm) == 0)
sm->timer_tick_enabled = 1;
} | eapol_enable_timer_tick | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
bool eapol_get_bool(eap_sm *sm, eapol_bool_var var) {
return sm->eapol_cb->get_bool(sm->eapol_ctx, var);
} | static bool eapol_get_bool(struct eap_sm *sm, enum eapol_bool_var var) {
return sm->eapol_cb->get_bool(sm->eapol_ctx, var);
} | eapol_get_bool | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpabuf *eapol_get_eapReqData(eap_sm *sm) {
return sm->eapol_cb->get_eapReqData(sm->eapol_ctx);
} | static struct wpabuf *eapol_get_eapReqData(struct eap_sm *sm) {
return sm->eapol_cb->get_eapReqData(sm->eapol_ctx);
} | eapol_get_eapReqData | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
unsigned int eapol_get_int(eap_sm *sm, eapol_int_var var) {
return sm->eapol_cb->get_int(sm->eapol_ctx, var);
} | static unsigned int eapol_get_int(struct eap_sm *sm, enum eapol_int_var var) {
return sm->eapol_cb->get_int(sm->eapol_ctx, var);
} | eapol_get_int | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const char *eapol_port_control(PortControl ctrl) {
if (ctrl == ForceAuthorized)
return "ForceAuthorized";
if ((unsigned int)ctrl > ForceAuthorized)
return "Unknown";
if (ctrl)
return "ForceUnauthorized";
return "Auto";
} | static const char *eapol_port_control(PortControl ctrl) {
switch (ctrl) {
case Auto:
return "Auto";
case ForceUnauthorized:
return "ForceUnauthorized";
case ForceAuthorized:
return "ForceAuthorized";
default:
return "Unknown";
}
} | eapol_port_control | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const char *eapol_port_status(PortStatus status) {
if (status == Authorized)
return "Authorized";
else
return "Unauthorized";
} | static const char *eapol_port_status(PortStatus status) {
if (status == Authorized)
return "Authorized";
else
return "Unauthorized";
} | eapol_port_status | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_set_bool(eap_sm *sm, eapol_bool_var var, bool value) {
sm->eapol_cb->set_bool(sm->eapol_ctx, var, value);
} | static void eapol_set_bool(struct eap_sm *sm, enum eapol_bool_var var,
bool value) {
sm->eapol_cb->set_bool(sm->eapol_ctx, var, value);
} | eapol_set_bool | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_set_int(eap_sm *sm, eapol_int_var var, unsigned int value) {
sm->eapol_cb->set_int(sm->eapol_ctx, var, value);
} | static void eapol_set_int(struct eap_sm *sm, enum eapol_int_var var,
unsigned int value) {
sm->eapol_cb->set_int(sm->eapol_ctx, var, value);
} | eapol_set_int | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_abortSupp(eapol_sm *sm) {
free(sm->last_rx_key);
sm->last_rx_key = 0;
wpabuf_free(sm->eapReqData);
sm->eapReqData = 0;
eap_sm_abort(sm->eap);
} | static void eapol_sm_abortSupp(struct eapol_sm *sm) {
os_free(sm->last_rx_key);
sm->last_rx_key = NULL;
wpabuf_free(sm->eapReqData);
sm->eapReqData = NULL;
eap_sm_abort(sm->eap);
#ifdef CONFIG_EAP_PROXY
eap_proxy_sm_abort(sm->eap_proxy);
#endif
} | eapol_sm_abortSupp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_abort_cached(eapol_sm *sm) {
wpa_printf(
2,
"RSN: Authenticator did not accept PMKID, doing full EAP authentication");
if (sm) {
sm->cached_pmk = 0;
sm->SUPP_PAE_state = SUPP_PAE_CONNECTING;
eapol_sm_set_port_unauthorized(sm);
sm->startWhen = 3;
eapol_enable_timer_tick(... | static void eapol_sm_abort_cached(struct eapol_sm *sm) {
wpa_printf(MSG_DEBUG, "RSN: Authenticator did not accept PMKID, "
"doing full EAP authentication");
if (sm == NULL)
return;
sm->cached_pmk = false;
sm->SUPP_PAE_state = SUPP_PAE_CONNECTING;
eapol_sm_set_port_unauthorized(sm);... | eapol_sm_abort_cached | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpabuf *eapol_sm_build_erp_reauth_start(eapol_sm *sm) { return 0; } | struct wpabuf *eapol_sm_build_erp_reauth_start(struct eapol_sm *sm) {
#ifdef CONFIG_ERP
if (!sm)
return NULL;
return eap_peer_build_erp_reauth_start(sm->eap, 0);
#else
return NULL;
#endif
} | eapol_sm_build_erp_reauth_start | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_configure(eapol_sm *sm, int heldPeriod, int authPeriod,
int startPeriod, int maxStart) {
if (sm) {
if (heldPeriod >= 0)
sm->heldPeriod = heldPeriod;
if (authPeriod >= 0)
sm->authPeriod = authPeriod;
if (startPeriod >= 0)
sm->startPeriod = startPeriod... | void eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod,
int startPeriod, int maxStart) {
if (sm == NULL)
return;
if (heldPeriod >= 0)
sm->heldPeriod = heldPeriod;
if (authPeriod >= 0)
sm->authPeriod = authPeriod;
if (startPeriod >= 0)
sm->startPeriod ... | eapol_sm_configure | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_sm_confirm_auth(eapol_sm *sm) {
if (sm->ctx->confirm_auth_cb)
return sm->ctx->confirm_auth_cb(sm->ctx->ctx);
else
return 0;
} | static int eapol_sm_confirm_auth(struct eapol_sm *sm) {
if (!sm->ctx->confirm_auth_cb)
return 0;
return sm->ctx->confirm_auth_cb(sm->ctx->ctx);
} | eapol_sm_confirm_auth | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_deinit(eapol_sm *sm) {
if (sm) {
eloop_cancel_timeout((eloop_timeout_handler)eapol_sm_step_timeout, 0, sm);
eloop_cancel_timeout((eloop_timeout_handler)eapol_port_timers_tick, 0, sm);
eap_peer_sm_deinit(sm->eap);
free(sm->last_rx_key);
wpabuf_free(sm->eapReqData);
free(sm->ctx);
... | void eapol_sm_deinit(struct eapol_sm *sm) {
if (sm == NULL)
return;
eloop_cancel_timeout(eapol_sm_step_timeout, NULL, sm);
eloop_cancel_timeout(eapol_port_timers_tick, NULL, sm);
eap_peer_sm_deinit(sm->eap);
#ifdef CONFIG_EAP_PROXY
eap_proxy_deinit(sm->eap_proxy);
#endif
os_free(sm->last_rx_key);
wpab... | eapol_sm_deinit | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_eap_param_needed(void *ctx, wpa_ctrl_req_type field,
const char *txt) {
wpa_printf(2, "EAPOL: EAP parameter needed");
if (*(_QWORD *)(*((_QWORD *)ctx + 31) + 144LL))
(*(void (**)(_QWORD, _QWORD, const char *))(*((_QWORD *)ctx + 31) + 144LL))(
**((_QWORD **)ct... | static void eapol_sm_eap_param_needed(void *ctx, enum wpa_ctrl_req_type field,
const char *txt) {
struct eapol_sm *sm = ctx;
wpa_printf(MSG_DEBUG, "EAPOL: EAP parameter needed");
if (sm->ctx->eap_param_needed)
sm->ctx->eap_param_needed(sm->ctx->ctx, field, txt);
} | eapol_sm_eap_param_needed | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_erp_flush(eapol_sm *sm) {
if (sm)
eap_peer_erp_free_keys(sm->eap);
} | void eapol_sm_erp_flush(struct eapol_sm *sm) {
if (sm)
eap_peer_erp_free_keys(sm->eap);
} | eapol_sm_erp_flush | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_sm_failed(eapol_sm *sm) {
if (!sm)
return 0;
return !sm->eapSuccess && sm->eapFail;
} | int eapol_sm_failed(struct eapol_sm *sm) {
if (sm == NULL)
return 0;
return !sm->eapSuccess && sm->eapFail;
} | eapol_sm_failed | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_getSuppRsp(eapol_sm *sm) { wpa_printf(2, "EAPOL: getSuppRsp"); } | static void eapol_sm_getSuppRsp(struct eapol_sm *sm) {
wpa_printf(MSG_DEBUG, "EAPOL: getSuppRsp");
} | eapol_sm_getSuppRsp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
bool eapol_sm_get_bool(void *ctx, eapol_bool_var variable) {
bool result;
if (!ctx)
return 0;
switch (variable) {
case eapol_bool_var_EAPOL_eapSuccess:
result = *((_BYTE *)ctx + 22);
break;
case eapol_bool_var_EAPOL_eapRestart:
result = *((_BYTE *)ctx + 60);
break;
case eapol_bool_var_E... | static bool eapol_sm_get_bool(void *ctx, enum eapol_bool_var variable) {
struct eapol_sm *sm = ctx;
if (sm == NULL)
return false;
switch (variable) {
case EAPOL_eapSuccess:
return sm->eapSuccess;
case EAPOL_eapRestart:
return sm->eapRestart;
case EAPOL_eapFail:
return sm->eapFail;
case EAP... | eapol_sm_get_bool | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
eap_peer_config *eapol_sm_get_config(void *ctx) {
if (ctx)
return (eap_peer_config *)*((_QWORD *)ctx + 20);
else
return 0;
} | static struct eap_peer_config *eapol_sm_get_config(void *ctx) {
struct eapol_sm *sm = ctx;
return sm ? sm->config : NULL;
} | eapol_sm_get_config | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const wpa_config_blob *eapol_sm_get_config_blob(void *ctx, const char *name) {
if (ctx && *((_QWORD *)ctx + 31) && *(_QWORD *)(*((_QWORD *)ctx + 31) + 88LL))
return (*(const wpa_config_blob *(**)(_QWORD, const char *))(
*((_QWORD *)ctx + 31) + 88LL))(**((_QWORD **)ctx + 31), name);
else
return 0;
} | static const struct wpa_config_blob *
eapol_sm_get_config_blob(void *ctx, const char *name) {
#ifndef CONFIG_NO_CONFIG_BLOBS
struct eapol_sm *sm = ctx;
if (sm && sm->ctx && sm->ctx->get_config_blob)
return sm->ctx->get_config_blob(sm->ctx->ctx, name);
else
return NULL;
#else
return NULL;
#endif
} | eapol_sm_get_config_blob | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpabuf *eapol_sm_get_eapReqData(void *ctx) {
if (ctx && *((_QWORD *)ctx + 24))
return (wpabuf *)*((_QWORD *)ctx + 24);
else
return 0;
} | static struct wpabuf *eapol_sm_get_eapReqData(void *ctx) {
struct eapol_sm *sm = ctx;
if (sm == NULL || sm->eapReqData == NULL)
return NULL;
return sm->eapReqData;
} | eapol_sm_get_eapReqData | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_sm_get_erp_info(eapol_sm *sm, eap_peer_config *config,
const u8 **username, size_t *username_len,
const u8 **realm, size_t *realm_len,
u16 *erp_next_seq_num, const u8 **rrk,
size_t *rrk_len) {
return -1;
... | int eapol_sm_get_erp_info(struct eapol_sm *sm, struct eap_peer_config *config,
const u8 **username, size_t *username_len,
const u8 **realm, size_t *realm_len,
u16 *erp_next_seq_num, const u8 **rrk,
size_t *rrk_len) {... | eapol_sm_get_erp_info | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
unsigned int eapol_sm_get_int(void *ctx, eapol_int_var variable) {
if (!ctx)
return 0;
if (variable)
return 0;
return *((_DWORD *)ctx + 3);
} | static unsigned int eapol_sm_get_int(void *ctx, enum eapol_int_var variable) {
struct eapol_sm *sm = ctx;
if (sm == NULL)
return 0;
switch (variable) {
case EAPOL_idleWhile:
return sm->idleWhile;
}
return 0;
} | eapol_sm_get_int | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_sm_get_key(eapol_sm *sm, u8 *key, size_t len) {
size_t eap_len;
const u8 *eap_key;
unsigned long v7;
v7 = __readfsqword(0x28u);
if (sm && eap_key_available(sm->eap)) {
eap_key = eap_get_eapKeyData(sm->eap, &eap_len);
if (eap_key) {
if (len <= eap_len) {
memcpy(key, eap_key, le... | int eapol_sm_get_key(struct eapol_sm *sm, u8 *key, size_t len) {
const u8 *eap_key;
size_t eap_len;
#ifdef CONFIG_EAP_PROXY
if (sm && sm->use_eap_proxy) {
if (sm == NULL || !eap_proxy_key_available(sm->eap_proxy)) {
wpa_printf(MSG_DEBUG, "EAPOL: EAP key not available");
return -1;
}
eap_... | eapol_sm_get_key | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const char *eapol_sm_get_method_name(eapol_sm *sm) {
if (sm->SUPP_PAE_state == SUPP_PAE_AUTHENTICATED &&
sm->suppPortStatus == Authorized)
return eap_sm_get_method_name(sm->eap);
else
return 0;
} | const char *eapol_sm_get_method_name(struct eapol_sm *sm) {
if (sm->SUPP_PAE_state != SUPP_PAE_AUTHENTICATED ||
sm->suppPortStatus != Authorized)
return NULL;
return eap_sm_get_method_name(sm->eap);
} | eapol_sm_get_method_name | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_sm_get_mib(eapol_sm *sm, char *buf, size_t buflen) {
const char *v4;
int ret;
int reta;
size_t len;
if (!sm)
return 0;
if (sm->suppPortStatus == Authorized)
v4 = "Authorized";
else
v4 = "Unauthorized";
ret = snprintf(buf, buflen,
"dot1xSuppPaeState=%d\n"
... | int eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen) {
size_t len;
int ret;
if (sm == NULL)
return 0;
ret = os_snprintf(buf, buflen,
"dot1xSuppPaeState=%d\n"
"dot1xSuppHeldPeriod=%u\n"
"dot1xSuppAuthPeriod=%u\n"
... | eapol_sm_get_mib | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const u8 *eapol_sm_get_session_id(eapol_sm *sm, size_t *len) {
if (sm && eap_key_available(sm->eap))
return eap_get_eapSessionId(sm->eap, len);
wpa_printf(2, "EAPOL: EAP Session-Id not available");
return 0;
} | const u8 *eapol_sm_get_session_id(struct eapol_sm *sm, size_t *len) {
if (sm == NULL || !eap_key_available(sm->eap)) {
wpa_printf(MSG_DEBUG, "EAPOL: EAP Session-Id not available");
return NULL;
}
return eap_get_eapSessionId(sm->eap, len);
} | eapol_sm_get_session_id | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_sm_get_status(eapol_sm *sm, char *buf, size_t buflen, int verbose) {
const char *v5;
const char *v6;
const char *v7;
const char *v8;
int len;
int ret;
if (!sm)
return 0;
v5 = eapol_port_status(sm->suppPortStatus);
v6 = eapol_supp_pae_state(sm->SUPP_PAE_state);
len = snprintf(buf, bufl... | int eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen,
int verbose) {
int len, ret;
if (sm == NULL)
return 0;
len = os_snprintf(buf, buflen,
"Supplicant PAE state=%s\n"
"suppPortStatus=%s\n",
eapol_supp_pae_st... | eapol_sm_get_status | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
eapol_sm *eapol_sm_init(eapol_ctx *ctx) {
eapol_sm *sm;
eap_config_0 conf;
unsigned long v4;
v4 = __readfsqword(0x28u);
sm = (eapol_sm *)os_zalloc(0x108u);
if (!sm)
return 0;
sm->ctx = ctx;
sm->portControl = Auto;
sm->heldPeriod = 60;
sm->startPeriod = 30;
sm->maxStart = 3;
sm->authPeriod =... | struct eapol_sm *eapol_sm_init(struct eapol_ctx *ctx) {
struct eapol_sm *sm;
struct eap_config conf;
sm = os_zalloc(sizeof(*sm));
if (sm == NULL)
return NULL;
sm->ctx = ctx;
sm->portControl = Auto;
sm->heldPeriod = 60;
sm->startPeriod = 30;
sm->maxStart = 3;
sm->authPeriod = 30;
os_memset(... | eapol_sm_init | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_invalidate_cached_session(eapol_sm *sm) {
if (sm)
eap_invalidate_cached_session(sm->eap);
} | void eapol_sm_invalidate_cached_session(struct eapol_sm *sm) {
if (sm)
eap_invalidate_cached_session(sm->eap);
} | eapol_sm_invalidate_cached_session | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_cached(eapol_sm *sm) {
if (sm) {
wpa_printf(2, "EAPOL: PMKSA caching was used - skip EAPOL");
sm->eapSuccess = 1;
eap_notify_success(sm->eap);
eapol_sm_step(sm);
}
} | void eapol_sm_notify_cached(struct eapol_sm *sm) {
if (sm == NULL)
return;
wpa_printf(MSG_DEBUG, "EAPOL: PMKSA caching was used - skip EAPOL");
sm->eapSuccess = true;
eap_notify_success(sm->eap);
eapol_sm_step(sm);
} | eapol_sm_notify_cached | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_cert(void *ctx, tls_cert_data *cert,
const char *cert_hash) {
if (*(_QWORD *)(*((_QWORD *)ctx + 31) + 160LL))
(*(void (**)(_QWORD, tls_cert_data *, const char *))(
*((_QWORD *)ctx + 31) + 160LL))(**((_QWORD **)ctx + 31), cert,
... | static void eapol_sm_notify_cert(void *ctx, struct tls_cert_data *cert,
const char *cert_hash) {
struct eapol_sm *sm = ctx;
if (sm->ctx->cert_cb)
sm->ctx->cert_cb(sm->ctx->ctx, cert, cert_hash);
} | eapol_sm_notify_cert | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_config(eapol_sm *sm, eap_peer_config *config,
const eapol_config *conf) {
if (sm) {
sm->config = config;
if (conf) {
sm->conf.accept_802_1x_keys = conf->accept_802_1x_keys;
sm->conf.required_keys = conf->required_keys;
sm->conf.fast_reauth = c... | void eapol_sm_notify_config(struct eapol_sm *sm, struct eap_peer_config *config,
const struct eapol_config *conf) {
if (sm == NULL)
return;
sm->config = config;
#ifdef CONFIG_EAP_PROXY
sm->use_eap_proxy = eap_proxy_notify_config(sm->eap_proxy, config) > 0;
#endif
if (conf == NU... | eapol_sm_notify_config | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_ctrl_attached(eapol_sm *sm) {
if (sm)
eap_sm_notify_ctrl_attached(sm->eap);
} | void eapol_sm_notify_ctrl_attached(struct eapol_sm *sm) {
if (sm == NULL)
return;
eap_sm_notify_ctrl_attached(sm->eap);
} | eapol_sm_notify_ctrl_attached | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_ctrl_response(eapol_sm *sm) {
if (sm && sm->eapReqData && !sm->eapReq) {
wpa_printf(2, "EAPOL: received control response (user input) notification "
"- retrying pending EAP Request");
sm->eapolEap = 1;
sm->eapReq = 1;
eapol_sm_step(sm);
}
} | void eapol_sm_notify_ctrl_response(struct eapol_sm *sm) {
if (sm == NULL)
return;
if (sm->eapReqData && !sm->eapReq) {
wpa_printf(MSG_DEBUG, "EAPOL: received control response (user "
"input) notification - retrying pending EAP "
"Request");
sm->eapolEa... | eapol_sm_notify_ctrl_response | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_eap_error(void *ctx, int error_code) {
if (*(_QWORD *)(*((_QWORD *)ctx + 31) + 184LL))
(*(void (**)(_QWORD, _QWORD))(*((_QWORD *)ctx + 31) + 184LL))(
**((_QWORD **)ctx + 31), (unsigned int)error_code);
} | static void eapol_sm_notify_eap_error(void *ctx, int error_code) {
struct eapol_sm *sm = ctx;
if (sm->ctx->eap_error_cb)
sm->ctx->eap_error_cb(sm->ctx->ctx, error_code);
} | eapol_sm_notify_eap_error | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_eap_fail(eapol_sm *sm, bool fail) {
if (sm) {
wpa_printf(2, "EAPOL: External notification - EAP fail=%d", fail);
sm->eapFail = fail;
sm->altReject = fail;
eapol_sm_step(sm);
}
} | void eapol_sm_notify_eap_fail(struct eapol_sm *sm, bool fail) {
if (sm == NULL)
return;
wpa_printf(MSG_DEBUG,
"EAPOL: External notification - "
"EAP fail=%d",
fail);
sm->eapFail = fail;
sm->altReject = fail;
eapol_sm_step(sm);
} | eapol_sm_notify_eap_fail | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_eap_success(eapol_sm *sm, bool success) {
if (sm) {
wpa_printf(2, "EAPOL: External notification - EAP success=%d", success);
sm->eapSuccess = success;
sm->altAccept = success;
if (success)
eap_notify_success(sm->eap);
eapol_sm_step(sm);
}
} | void eapol_sm_notify_eap_success(struct eapol_sm *sm, bool success) {
if (sm == NULL)
return;
wpa_printf(MSG_DEBUG,
"EAPOL: External notification - "
"EAP success=%d",
success);
sm->eapSuccess = success;
sm->altAccept = success;
if (success)
eap_notify_success(sm... | eapol_sm_notify_eap_success | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_logoff(eapol_sm *sm, bool logoff) {
if (sm) {
sm->userLogoff = logoff;
if (!logoff)
sm->startWhen = 0;
eapol_sm_step(sm);
}
} | void eapol_sm_notify_logoff(struct eapol_sm *sm, bool logoff) {
if (sm) {
sm->userLogoff = logoff;
if (!logoff) {
sm->startWhen = 0;
}
eapol_sm_step(sm);
}
} | eapol_sm_notify_logoff | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_lower_layer_success(eapol_sm *sm, int in_eapol_sm) {
if (sm) {
eap_notify_lower_layer_success(sm->eap);
if (!in_eapol_sm)
eapol_sm_step(sm);
}
} | void eapol_sm_notify_lower_layer_success(struct eapol_sm *sm, int in_eapol_sm) {
if (sm == NULL)
return;
eap_notify_lower_layer_success(sm->eap);
if (!in_eapol_sm)
eapol_sm_step(sm);
} | eapol_sm_notify_lower_layer_success | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_pending(void *ctx) {
if (ctx && *((_QWORD *)ctx + 24) && *((_BYTE *)ctx + 93) != 1) {
wpa_printf(2, "EAPOL: received notification from EAP state machine - "
"retrying pending EAP Request");
*((_BYTE *)ctx + 21) = 1;
*((_BYTE *)ctx + 93) = 1;
eapol_sm_step((eapol_... | static void eapol_sm_notify_pending(void *ctx) {
struct eapol_sm *sm = ctx;
if (sm == NULL)
return;
if (sm->eapReqData && !sm->eapReq) {
wpa_printf(MSG_DEBUG, "EAPOL: received notification from EAP "
"state machine - retrying pending EAP Request");
sm->eapolEap = true;
sm... | eapol_sm_notify_pending | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_pmkid_attempt(eapol_sm *sm) {
if (sm) {
wpa_printf(2, "RSN: Trying to use cached PMKSA");
sm->cached_pmk = 1;
}
} | void eapol_sm_notify_pmkid_attempt(struct eapol_sm *sm) {
if (sm == NULL)
return;
wpa_printf(MSG_DEBUG, "RSN: Trying to use cached PMKSA");
sm->cached_pmk = true;
} | eapol_sm_notify_pmkid_attempt | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_portControl(eapol_sm *sm, PortControl portControl) {
const char *v2;
if (sm) {
v2 = eapol_port_control(portControl);
wpa_printf(2, "EAPOL: External notification - portControl=%s", v2);
sm->portControl = portControl;
eapol_sm_step(sm);
}
} | void eapol_sm_notify_portControl(struct eapol_sm *sm, PortControl portControl) {
if (sm == NULL)
return;
wpa_printf(MSG_DEBUG,
"EAPOL: External notification - "
"portControl=%s",
eapol_port_control(portControl));
sm->portControl = portControl;
eapol_sm_step(sm);
} | eapol_sm_notify_portControl | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_portEnabled(eapol_sm *sm, bool enabled) {
if (sm) {
wpa_printf(2, "EAPOL: External notification - portEnabled=%d", enabled);
if (enabled != sm->portEnabled)
sm->force_authorized_update = 1;
sm->portEnabled = enabled;
eapol_sm_step(sm);
}
} | void eapol_sm_notify_portEnabled(struct eapol_sm *sm, bool enabled) {
if (sm == NULL)
return;
wpa_printf(MSG_DEBUG,
"EAPOL: External notification - "
"portEnabled=%d",
enabled);
if (sm->portEnabled != enabled)
sm->force_authorized_update = true;
sm->portEnabled = e... | eapol_sm_notify_portEnabled | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_portValid(eapol_sm *sm, bool valid) {
if (sm) {
wpa_printf(2, "EAPOL: External notification - portValid=%d", valid);
sm->portValid = valid;
eapol_sm_step(sm);
}
} | void eapol_sm_notify_portValid(struct eapol_sm *sm, bool valid) {
if (sm == NULL)
return;
wpa_printf(MSG_DEBUG,
"EAPOL: External notification - "
"portValid=%d",
valid);
sm->portValid = valid;
eapol_sm_step(sm);
} | eapol_sm_notify_portValid | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_status(void *ctx, const char *status,
const char *parameter) {
if (*(_QWORD *)(*((_QWORD *)ctx + 31) + 176LL))
(*(void (**)(_QWORD, const char *, const char *))(
*((_QWORD *)ctx + 31) + 176LL))(**((_QWORD **)ctx + 31), status,
... | static void eapol_sm_notify_status(void *ctx, const char *status,
const char *parameter) {
struct eapol_sm *sm = ctx;
if (sm->ctx->status_cb)
sm->ctx->status_cb(sm->ctx->ctx, status, parameter);
} | eapol_sm_notify_status | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_notify_tx_eapol_key(eapol_sm *sm) {
if (sm)
++sm->dot1xSuppEapolFramesTx;
} | void eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm) {
if (sm)
sm->dot1xSuppEapolFramesTx++;
} | eapol_sm_notify_tx_eapol_key | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_processKey(eapol_sm *sm) { ; } | static void eapol_sm_processKey(struct eapol_sm *sm) {
#ifdef CONFIG_WEP
#ifndef CONFIG_FIPS
struct ieee802_1x_hdr *hdr;
struct ieee802_1x_eapol_key *key;
struct eap_key_data keydata;
u8 orig_key_sign[IEEE8021X_KEY_SIGN_LEN], datakey[32];
#ifndef CONFIG_NO_RC4
u8 ekey[IEEE8021X_KEY_IV_LEN + IEEE8021X_ENCR_KEY... | eapol_sm_processKey | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_process_erp_finish(eapol_sm *sm, const u8 *buf, size_t len) { ; } | void eapol_sm_process_erp_finish(struct eapol_sm *sm, const u8 *buf,
size_t len) {
#ifdef CONFIG_ERP
if (!sm)
return;
eap_peer_finish(sm->eap, (const struct eap_hdr *)buf, len);
#endif
} | eapol_sm_process_erp_finish | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_register_scard_ctx(eapol_sm *sm, void *ctx) {
if (sm) {
sm->ctx->scard_ctx = ctx;
eap_register_scard_ctx(sm->eap, ctx);
}
} | void eapol_sm_register_scard_ctx(struct eapol_sm *sm, void *ctx) {
if (sm) {
sm->ctx->scard_ctx = ctx;
eap_register_scard_ctx(sm->eap, ctx);
}
} | eapol_sm_register_scard_ctx | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_request_reauth(eapol_sm *sm) {
if (sm) {
if (sm->SUPP_PAE_state == SUPP_PAE_AUTHENTICATED)
eapol_sm_txStart(sm);
}
} | void eapol_sm_request_reauth(struct eapol_sm *sm) {
if (sm == NULL || sm->SUPP_PAE_state != SUPP_PAE_AUTHENTICATED)
return;
eapol_sm_txStart(sm);
} | eapol_sm_request_reauth | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_sm_rx_eapol(eapol_sm *sm, const u8 *src, const u8 *buf, size_t len) {
int res;
int data_len;
size_t plen;
const ieee802_1x_eapol_key *key;
res = 1;
if (!sm)
return 0;
++sm->dot1xSuppEapolFramesRx;
if (len > 3) {
sm->dot1xSuppLastEapolFrameVersion = *buf;
memcpy(sm->dot1xSuppLastEa... | int eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf,
size_t len) {
const struct ieee802_1x_hdr *hdr;
const struct ieee802_1x_eapol_key *key;
int data_len;
int res = 1;
size_t plen;
if (sm == NULL)
return 0;
sm->dot1xSuppEapolFramesRx++;
if (len < sizeof(*hd... | eapol_sm_rx_eapol | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_set_anon_id(void *ctx, const u8 *id, size_t len) {
if (*(_QWORD *)(*((_QWORD *)ctx + 31) + 192LL))
(*(void (**)(_QWORD, const u8 *, size_t))(*((_QWORD *)ctx + 31) + 192LL))(
**((_QWORD **)ctx + 31), id, len);
} | static void eapol_sm_set_anon_id(void *ctx, const u8 *id, size_t len) {
struct eapol_sm *sm = ctx;
if (sm->ctx->set_anon_id)
sm->ctx->set_anon_id(sm->ctx->ctx, id, len);
} | eapol_sm_set_anon_id | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_set_bool(void *ctx, eapol_bool_var variable, bool value) {
if (ctx) {
switch (variable) {
case eapol_bool_var_EAPOL_eapSuccess:
*((_BYTE *)ctx + 22) = value;
break;
case eapol_bool_var_EAPOL_eapRestart:
*((_BYTE *)ctx + 60) = value;
break;
case eapol_bool_var_EAPO... | static void eapol_sm_set_bool(void *ctx, enum eapol_bool_var variable,
bool value) {
struct eapol_sm *sm = ctx;
if (sm == NULL)
return;
switch (variable) {
case EAPOL_eapSuccess:
sm->eapSuccess = value;
break;
case EAPOL_eapRestart:
sm->eapRestart = value;
bre... | eapol_sm_set_bool | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_set_config_blob(void *ctx, wpa_config_blob *blob) {
if (ctx && *((_QWORD *)ctx + 31)) {
if (*(_QWORD *)(*((_QWORD *)ctx + 31) + 80LL))
(*(void (**)(_QWORD, wpa_config_blob *))(*((_QWORD *)ctx + 31) + 80LL))(
**((_QWORD **)ctx + 31), blob);
}
} | static void eapol_sm_set_config_blob(void *ctx, struct wpa_config_blob *blob) {
#ifndef CONFIG_NO_CONFIG_BLOBS
struct eapol_sm *sm = ctx;
if (sm && sm->ctx && sm->ctx->set_config_blob)
sm->ctx->set_config_blob(sm->ctx->ctx, blob);
#endif
} | eapol_sm_set_config_blob | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_set_ext_pw_ctx(eapol_sm *sm, ext_password_data *ext) {
if (sm) {
if (sm->eap)
eap_sm_set_ext_pw_ctx(sm->eap, ext);
}
} | void eapol_sm_set_ext_pw_ctx(struct eapol_sm *sm,
struct ext_password_data *ext) {
if (sm && sm->eap)
eap_sm_set_ext_pw_ctx(sm->eap, ext);
} | eapol_sm_set_ext_pw_ctx | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_set_int(void *ctx, eapol_int_var variable, unsigned int value) {
if (ctx && variable == eapol_int_var_EAPOL_idleWhile) {
*((_DWORD *)ctx + 3) = value;
if (*((_DWORD *)ctx + 3))
eapol_enable_timer_tick((eapol_sm *)ctx);
}
} | static void eapol_sm_set_int(void *ctx, enum eapol_int_var variable,
unsigned int value) {
struct eapol_sm *sm = ctx;
if (sm == NULL)
return;
switch (variable) {
case EAPOL_idleWhile:
sm->idleWhile = value;
if (sm->idleWhile > 0)
eapol_enable_timer_tick(sm);
br... | eapol_sm_set_int | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_set_port_authorized(eapol_sm *sm) {
_BOOL4 v1;
v1 = sm->suppPortStatus != Authorized || sm->force_authorized_update;
sm->force_authorized_update = 0;
sm->suppPortStatus = Authorized;
if (v1) {
if (sm->ctx->port_cb)
sm->ctx->port_cb(sm->ctx->ctx, 1);
}
} | static void eapol_sm_set_port_authorized(struct eapol_sm *sm) {
int cb;
cb = sm->suppPortStatus != Authorized || sm->force_authorized_update;
sm->force_authorized_update = false;
sm->suppPortStatus = Authorized;
if (cb && sm->ctx->port_cb)
sm->ctx->port_cb(sm->ctx->ctx, 1);
} | eapol_sm_set_port_authorized | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_set_port_unauthorized(eapol_sm *sm) {
_BOOL4 v1;
v1 = sm->suppPortStatus || sm->force_authorized_update;
sm->force_authorized_update = 0;
sm->suppPortStatus = Unauthorized;
if (v1) {
if (sm->ctx->port_cb)
sm->ctx->port_cb(sm->ctx->ctx, 0);
}
} | static void eapol_sm_set_port_unauthorized(struct eapol_sm *sm) {
int cb;
cb = sm->suppPortStatus != Unauthorized || sm->force_authorized_update;
sm->force_authorized_update = false;
sm->suppPortStatus = Unauthorized;
if (cb && sm->ctx->port_cb)
sm->ctx->port_cb(sm->ctx->ctx, 0);
} | eapol_sm_set_port_unauthorized | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_step(eapol_sm *sm) {
int i;
eapol_supp_result result;
for (i = 0; i <= 99; ++i) {
sm->changed = 0;
sm_SUPP_PAE_Step(sm);
sm_KEY_RX_Step(sm);
sm_SUPP_BE_Step(sm);
if (eap_peer_sm_step(sm->eap))
sm->changed = 1;
if (!sm->changed)
break;
}
if (sm->changed) {
... | void eapol_sm_step(struct eapol_sm *sm) {
int i;
for (i = 0; i < 100; i++) {
sm->changed = false;
SM_STEP_RUN(SUPP_PAE);
SM_STEP_RUN(KEY_RX);
SM_STEP_RUN(SUPP_BE);
#ifdef CONFIG_EAP_PROXY
if (sm->use_eap_proxy) {
if (eap_proxy_sm_step(sm->eap_proxy, sm->eap))
sm->changed = true;
... | eapol_sm_step | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_step_run(eapol_state_machine *sm) {
void (*aaa_send)(void *, void *, const u8 *, size_t);
size_t v2;
const u8 *v3;
int max_steps;
eapol_state_machine_$9D79E0E8BE6624DF62DCC50DB2CA689A prev_auth_pae;
eapol_state_machine_$84970FB7B763FCBAD231DC05B663F0AB prev_be_auth;
eapol_state_machine_$7E9A... | static void eapol_sm_step_run(struct eapol_state_machine *sm) {
struct eapol_authenticator *eapol = sm->eapol;
u8 addr[ETH_ALEN];
unsigned int prev_auth_pae, prev_be_auth, prev_reauth_timer, prev_auth_key_tx,
prev_key_rx, prev_ctrl_dir;
int max_steps = 100;
os_memcpy(addr, sm->addr, ETH_ALEN);
restart... | eapol_sm_step_run | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_step_timeout(void *eloop_ctx, void *timeout_ctx) {
eapol_sm_step((eapol_sm *)timeout_ctx);
} | static void eapol_sm_step_timeout(void *eloop_ctx, void *timeout_ctx) {
eapol_sm_step(timeout_ctx);
} | eapol_sm_step_timeout | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_txLogoff(eapol_sm *sm) {
wpa_printf(2, "EAPOL: txLogoff");
sm->ctx->eapol_send(sm->ctx->eapol_send_ctx, 2, (const u8 *)&unk_26EDC8, 0);
++sm->dot1xSuppEapolLogoffFramesTx;
++sm->dot1xSuppEapolFramesTx;
} | static void eapol_sm_txLogoff(struct eapol_sm *sm) {
wpa_printf(MSG_DEBUG, "EAPOL: txLogoff");
sm->ctx->eapol_send(sm->ctx->eapol_send_ctx, IEEE802_1X_TYPE_EAPOL_LOGOFF,
(u8 *)"", 0);
sm->dot1xSuppEapolLogoffFramesTx++;
sm->dot1xSuppEapolFramesTx++;
} | eapol_sm_txLogoff | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_txStart(eapol_sm *sm) {
wpa_printf(2, "EAPOL: txStart");
sm->ctx->eapol_send(sm->ctx->eapol_send_ctx, 1, (const u8 *)&unk_26EDC8, 0);
++sm->dot1xSuppEapolStartFramesTx;
++sm->dot1xSuppEapolFramesTx;
} | static void eapol_sm_txStart(struct eapol_sm *sm) {
wpa_printf(MSG_DEBUG, "EAPOL: txStart");
sm->ctx->eapol_send(sm->ctx->eapol_send_ctx, IEEE802_1X_TYPE_EAPOL_START,
(u8 *)"", 0);
sm->dot1xSuppEapolStartFramesTx++;
sm->dot1xSuppEapolFramesTx++;
} | eapol_sm_txStart | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eapol_sm_txSuppRsp(eapol_sm *sm) {
int (*eapol_send)(void *, int, const u8 *, size_t);
size_t v2;
const u8 *v3;
wpabuf *resp;
wpa_printf(2, "EAPOL: txSuppRsp");
resp = eap_get_eapRespData(sm->eap);
if (resp) {
eapol_send = sm->ctx->eapol_send;
v2 = wpabuf_len_38(resp);
v3 = (const u8 *)w... | static void eapol_sm_txSuppRsp(struct eapol_sm *sm) {
struct wpabuf *resp;
wpa_printf(MSG_DEBUG, "EAPOL: txSuppRsp");
#ifdef CONFIG_EAP_PROXY
if (sm->use_eap_proxy) {
resp = eap_proxy_get_eapRespData(sm->eap_proxy);
if (resp == NULL) {
wpa_printf(MSG_WARNING, "EAPOL: txSuppRsp - EAP Proxy "
... | eapol_sm_txSuppRsp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eapol_sm_update_erp_next_seq_num(eapol_sm *sm, u16 next_seq_num) {
return -1;
} | int eapol_sm_update_erp_next_seq_num(struct eapol_sm *sm, u16 next_seq_num) {
#ifdef CONFIG_ERP
if (!sm)
return -1;
return eap_peer_update_erp_next_seq_num(sm->eap, next_seq_num);
#else
return -1;
#endif
} | eapol_sm_update_erp_next_seq_num | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const char *eapol_supp_be_state(int state) {
const char *result;
switch (state) {
case 1:
result = "INITIALIZE";
break;
case 2:
result = "IDLE";
break;
case 3:
result = "REQUEST";
break;
case 4:
result = "RECEIVE";
break;
case 5:
result = "RESPONSE";
break;
case ... | static const char *eapol_supp_be_state(int state) {
switch (state) {
case SUPP_BE_REQUEST:
return "REQUEST";
case SUPP_BE_RESPONSE:
return "RESPONSE";
case SUPP_BE_SUCCESS:
return "SUCCESS";
case SUPP_BE_FAIL:
return "FAIL";
case SUPP_BE_TIMEOUT:
return "TIMEOUT";
case SUPP_BE_IDLE:
... | eapol_supp_be_state | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const char *eapol_supp_pae_state(int state) {
const char *result;
switch (state) {
case 1:
result = "DISCONNECTED";
break;
case 2:
result = "LOGOFF";
break;
case 3:
result = "CONNECTING";
break;
case 4:
result = "AUTHENTICATING";
break;
case 5:
result = "AUTHENTICATED"... | static const char *eapol_supp_pae_state(int state) {
switch (state) {
case SUPP_PAE_LOGOFF:
return "LOGOFF";
case SUPP_PAE_DISCONNECTED:
return "DISCONNECTED";
case SUPP_PAE_CONNECTING:
return "CONNECTING";
case SUPP_PAE_AUTHENTICATING:
return "AUTHENTICATING";
case SUPP_PAE_HELD:
return... | eapol_supp_pae_state | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eloop_cancel_timeout_one(eloop_timeout_handler handler, void *eloop_data,
void *user_data, os_reltime *remaining) {
int removed;
eloop_timeout *timeout;
eloop_timeout *prev;
os_reltime now;
unsigned long v11;
v11 = __readfsqword(0x28u);
removed = 0;
os_get_reltime(&now)... | int eloop_cancel_timeout_one(eloop_timeout_handler handler, void *eloop_data,
void *user_data, struct os_reltime *remaining) {
struct eloop_timeout *timeout, *prev;
int removed = 0;
struct os_reltime now;
os_get_reltime(&now);
remaining->sec = remaining->usec = 0;
dl_list_for_... | eloop_cancel_timeout_one | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eloop_deplete_timeout(unsigned int req_secs, unsigned int req_usecs,
eloop_timeout_handler handler, void *eloop_data,
void *user_data) {
eloop_timeout *tmp;
os_reltime now;
os_reltime requested;
os_reltime remaining;
unsigned long v13;
v13 = __readfsq... | int eloop_deplete_timeout(unsigned int req_secs, unsigned int req_usecs,
eloop_timeout_handler handler, void *eloop_data,
void *user_data) {
struct os_reltime now, requested, remaining;
struct eloop_timeout *tmp;
dl_list_for_each(tmp, &eloop.timeout, struct elo... | eloop_deplete_timeout | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eloop_init() {
memset(&eloop, 0, sizeof(eloop));
dl_list_init_1(&eloop.timeout);
return 0;
} | while (0)
#endif
int eloop_init(void) {
os_memset(&eloop, 0, sizeof(eloop));
dl_list_init(&eloop.timeout);
#ifdef CONFIG_ELOOP_EPOLL
eloop.epollfd = epoll_create1(0);
if (eloop.epollfd < 0) {
wpa_printf(MSG_ERROR, "%s: epoll_create1 failed. %s", __func__,
strerror(errno));
... | eloop_init | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eloop_register_signal(int sig, eloop_signal_handler handler,
void *user_data) {
eloop_signal *tmp;
tmp = (eloop_signal *)os_realloc_array_2(eloop.signals,
eloop.signal_count + 1, 0x20u);
if (!tmp)
return -1;
tmp[eloop.signal_count].si... | int eloop_register_signal(int sig, eloop_signal_handler handler,
void *user_data) {
struct eloop_signal *tmp;
tmp = os_realloc_array(eloop.signals, eloop.signal_count + 1,
sizeof(struct eloop_signal));
if (tmp == NULL)
return -1;
tmp[eloop.signal_count].s... | eloop_register_signal | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eloop_register_timeout(unsigned int secs, unsigned int usecs,
eloop_timeout_handler handler, void *eloop_data,
void *user_data) {
eloop_timeout *tmp;
eloop_timeout *timeout;
os_time_t now_sec;
timeout = (eloop_timeout *)os_zalloc(0x38u);
if (!timeout)... | int eloop_register_timeout(unsigned int secs, unsigned int usecs,
eloop_timeout_handler handler, void *eloop_data,
void *user_data) {
struct eloop_timeout *timeout, *tmp;
os_time_t now_sec;
timeout = os_zalloc(sizeof(*timeout));
if (timeout == NULL)
ret... | eloop_register_timeout | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void eloop_remove_timeout(eloop_timeout *timeout) {
dl_list_del_2(&timeout->list);
free(timeout);
} | static void eloop_remove_timeout(struct eloop_timeout *timeout) {
dl_list_del(&timeout->list);
wpa_trace_remove_ref(timeout, eloop, timeout->eloop_data);
wpa_trace_remove_ref(timeout, user, timeout->user_data);
os_free(timeout);
} | eloop_remove_timeout | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int eloop_replenish_timeout(unsigned int req_secs, unsigned int req_usecs,
eloop_timeout_handler handler, void *eloop_data,
void *user_data) {
eloop_timeout *tmp;
os_reltime now;
os_reltime requested;
os_reltime remaining;
unsigned long v13;
v13 = __r... | int eloop_replenish_timeout(unsigned int req_secs, unsigned int req_usecs,
eloop_timeout_handler handler, void *eloop_data,
void *user_data) {
struct os_reltime now, requested, remaining;
struct eloop_timeout *tmp;
dl_list_for_each(tmp, &eloop.timeout, stru... | eloop_replenish_timeout | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.