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
bool eap_peap_isKeyAvailable(eap_sm *sm, void *priv) { return *((_QWORD *)priv + 22) && *((_DWORD *)priv + 30); }
static bool eap_peap_isKeyAvailable(struct eap_sm *sm, void *priv) { struct eap_peap_data *data = priv; return data->key_data != NULL && data->phase2_success; }
eap_peap_isKeyAvailable
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peap_parse_phase1(eap_peap_data *data, const char *phase1) { char *pos; pos = strstr(phase1, "peapver="); if (pos) { data->force_peap_version = atoi(pos + 8); data->peap_version = data->force_peap_version; wpa_printf(2, "EAP-PEAP: Forced PEAP version %d", data->force_peap_version); } if ...
static void eap_peap_parse_phase1(struct eap_peap_data *data, const char *phase1) { const char *pos; pos = os_strstr(phase1, "peapver="); if (pos) { data->force_peap_version = atoi(pos + 8); data->peap_version = data->force_peap_version; wpa_printf(MSG_DEBUG, "EAP-PE...
eap_peap_parse_phase1
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peap_phase2_request(eap_sm *sm, eap_peap_data *data, eap_method_ret *ret, wpabuf *req, wpabuf **resp) { int code; _BOOL4 v7; u8 identifier; size_t v9; u32 vendor; eap_type method; size_t i; eap_hdr *hdr; size_t len; eap_peer_config *config; u8 *pos; const u8 *...
static int eap_peap_phase2_request(struct eap_sm *sm, struct eap_peap_data *data, struct eap_method_ret *ret, struct wpabuf *req, struct wpabuf **resp) { struct eap_hdr *hdr = wpabuf_mhead(req); size_t len = be_...
eap_peap_phase2_request
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_peap_process(eap_sm *sm, void *priv, eap_method_ret *ret, const wpabuf *reqData) { u8 *v5; u8 *v6; u8 flags; u8 id; int res; size_t left; wpabuf *resp; const char *label; const u8 *context; size_t context_len; eap_peap_data *data; const u8 *pos; const eap_h...
static struct wpabuf *eap_peap_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData) { const struct eap_hdr *req; size_t left; int res; u8 flags, id; struct wpabuf *resp; const u8 *pos; ...
eap_peap_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_config_free(eap_peer_config *eap) { free(eap->eap_methods); bin_clear_free(eap->identity, eap->identity_len); free(eap->anonymous_identity); free(eap->imsi_identity); free(eap->machine_identity); bin_clear_free(eap->password, eap->password_len); bin_clear_free(eap->machine_password, eap->mac...
static void eap_peer_config_free(struct eap_peer_config *eap) { os_free(eap->eap_methods); bin_clear_free(eap->identity, eap->identity_len); os_free(eap->anonymous_identity); os_free(eap->imsi_identity); os_free(eap->machine_identity); bin_clear_free(eap->password, eap->password_len); bin_clear_free(eap->...
eap_peer_config_free
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_config_free_cert(eap_peer_cert_config *cert) { free(cert->ca_cert); free(cert->ca_path); free(cert->client_cert); free(cert->private_key); str_clear_free(cert->private_key_passwd); free(cert->dh_file); free(cert->subject_match); free(cert->check_cert_subject); free(cert->altsubject_match...
static void eap_peer_config_free_cert(struct eap_peer_cert_config *cert) { os_free(cert->ca_cert); os_free(cert->ca_path); os_free(cert->client_cert); os_free(cert->private_key); str_clear_free(cert->private_key_passwd); os_free(cert->dh_file); os_free(cert->subject_match); os_free(cert->check_cert_subj...
eap_peer_config_free_cert
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_erp_free_keys(eap_sm *sm) { ; }
void eap_peer_erp_free_keys(struct eap_sm *sm) { #ifdef CONFIG_ERP struct eap_erp_key *erp, *tmp; dl_list_for_each_safe(erp, tmp, &sm->erp_keys, struct eap_erp_key, list) eap_peer_erp_free_key(erp); #endif }
eap_peer_erp_free_keys
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_erp_init(eap_sm *sm, u8 *ext_session_id, size_t ext_session_id_len, u8 *ext_emsk, size_t ext_emsk_len) { ; }
void eap_peer_erp_init(struct eap_sm *sm, u8 *ext_session_id, size_t ext_session_id_len, u8 *ext_emsk, size_t ext_emsk_len) { #ifdef CONFIG_ERP u8 *emsk = NULL; size_t emsk_len = 0; u8 *session_id = NULL; size_t session_id_len = 0; u8 EMSKname[EAP_EMSK_NAME_LEN]; ...
eap_peer_erp_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_fast_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_FAST, "FAST"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_fast_init; eap->deinit = (void (*)(eap_sm *, void *))eap_fast_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_m...
int eap_peer_fast_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_FAST, "FAST"); if (eap == NULL) return -1; eap->init = eap_fast_init; eap->deinit = eap_fast_deinit; eap->process = eap_fast...
eap_peer_fast_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_finish(eap_sm *sm, const eap_hdr *hdr, size_t len) { ; }
void eap_peer_finish(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) { #ifdef CONFIG_ERP const u8 *pos = (const u8 *)(hdr + 1); const u8 *end = ((const u8 *)hdr) + len; const u8 *start; struct erp_tlvs parse; u8 flags; u16 seq; u8 hash[SHA256_MAC_LEN]; size_t hash_len; struct eap_erp_key *er...
eap_peer_finish
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const eap_method_0 *eap_peer_get_eap_method(int vendor, eap_type method) { eap_method_0 *m; for (m = eap_methods; m; m = (eap_method_0 *)m->next) { if (vendor == m->vendor && method == m->method) return m; } return 0; }
const struct eap_method *eap_peer_get_eap_method(int vendor, enum eap_type method) { struct eap_method *m; for (m = eap_methods; m; m = m->next) { if (m->vendor == vendor && m->method == method) return m; } return NULL; }
eap_peer_get_eap_method
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const eap_method_0 *eap_peer_get_methods(size_t *count) { int c; eap_method_0 *m; c = 0; for (m = eap_methods; m; m = (eap_method_0 *)m->next) ++c; *count = c; return eap_methods; }
const struct eap_method *eap_peer_get_methods(size_t *count) { int c = 0; struct eap_method *m; for (m = eap_methods; m; m = m->next) c++; *count = c; return eap_methods; }
eap_peer_get_methods
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
eap_type eap_peer_get_type(const char *name, int *vendor) { eap_method_0 *m; for (m = eap_methods; m; m = (eap_method_0 *)m->next) { if (!strcmp(m->name, name)) { *vendor = m->vendor; return m->method; } } *vendor = 0; return eap_type_EAP_TYPE_NONE; }
enum eap_type eap_peer_get_type(const char *name, int *vendor) { struct eap_method *m; for (m = eap_methods; m; m = m->next) { if (os_strcmp(m->name, name) == 0) { *vendor = m->vendor; return m->method; } } *vendor = EAP_VENDOR_IETF; return EAP_TYPE_NONE; }
eap_peer_get_type
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_gpsk_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_GPSK, "GPSK"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_gpsk_init; eap->deinit = (void (*)(eap_sm *, void *))eap_gpsk_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_m...
int eap_peer_gpsk_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_GPSK, "GPSK"); if (eap == NULL) return -1; eap->init = eap_gpsk_init; eap->deinit = eap_gpsk_deinit; eap->process = eap_gpsk...
eap_peer_gpsk_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_gtc_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_GTC, "GTC"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_gtc_init; eap->deinit = (void (*)(eap_sm *, void *))eap_gtc_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_method...
int eap_peer_gtc_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_GTC, "GTC"); if (eap == NULL) return -1; eap->init = eap_gtc_init; eap->deinit = eap_gtc_deinit; eap->process = eap_gtc_proce...
eap_peer_gtc_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_ikev2_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_IKEV2, "IKEV2"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_ikev2_init; eap->deinit = (void (*)(eap_sm *, void *))eap_ikev2_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, ...
int eap_peer_ikev2_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_IKEV2, "IKEV2"); if (eap == NULL) return -1; eap->init = eap_ikev2_init; eap->deinit = eap_ikev2_deinit; eap->process = eap...
eap_peer_ikev2_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_initiate(eap_sm *sm, const eap_hdr *hdr, size_t len) { wpa_printf(2, "EAP: EAP-Initiate/Re-auth-Start - No suitable ERP keys " "available - try to start full EAP authentication"); eapol_set_bool(sm, eapol_bool_var_EAPOL_eapTriggerStart, 1); }
static void eap_peer_initiate(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) { #ifdef CONFIG_ERP const u8 *pos = (const u8 *)(hdr + 1); const u8 *end = ((const u8 *)hdr) + len; struct erp_tlvs parse; if (len < sizeof(*hdr) + 1) { wpa_printf(MSG_DEBUG, "EAP: Ignored ...
eap_peer_initiate
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_leap_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_LEAP, "LEAP"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_leap_init; eap->deinit = (void (*)(eap_sm *, void *))eap_leap_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_m...
int eap_peer_leap_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_LEAP, "LEAP"); if (eap == NULL) return -1; eap->init = eap_leap_init; eap->deinit = eap_leap_deinit; eap->process = eap_leap...
eap_peer_leap_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_md5_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_MD5, "MD5"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_md5_init; eap->deinit = (void (*)(eap_sm *, void *))eap_md5_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_method...
int eap_peer_md5_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_MD5, "MD5"); if (eap == NULL) return -1; eap->init = eap_md5_init; eap->deinit = eap_md5_deinit; eap->process = eap_md5_proce...
eap_peer_md5_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
eap_method_0 *eap_peer_method_alloc(int version, int vendor, eap_type method, const char *name) { eap_method_0 *eap; eap = (eap_method_0 *)os_zalloc(0x90u); if (!eap) return 0; eap->version = version; eap->vendor = vendor; eap->method = method; eap->name = name; ...
struct eap_method *eap_peer_method_alloc(int version, int vendor, enum eap_type method, const char *name) { struct eap_method *eap; eap = os_zalloc(sizeof(*eap)); if (eap == NULL) return NULL; eap->version = version; eap->ve...
eap_peer_method_alloc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_method_free(eap_method_0 *method) { free(method); }
static void eap_peer_method_free(struct eap_method *method) { os_free(method); }
eap_peer_method_free
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_method_load(const char *so) { return 0; }
int eap_peer_method_load(const char *so) { void *handle; int (*dyn_init)(void); int ret; handle = dlopen(so, RTLD_LAZY); if (handle == NULL) { wpa_printf(MSG_ERROR, "EAP: Failed to open dynamic EAP method " "'%s': %s", so, dlerror()); return -1; } dyn...
eap_peer_method_load
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_method_register(eap_method_0 *method) { eap_method_0 *m; eap_method_0 *last; last = 0; if (method && method->name && method->version == 1) { for (m = eap_methods; m; m = (eap_method_0 *)m->next) { if (m->vendor == method->vendor && m->method == method->method || !strcmp(m->name...
int eap_peer_method_register(struct eap_method *method) { struct eap_method *m, *last = NULL; if (method == NULL || method->name == NULL || method->version != EAP_PEER_METHOD_INTERFACE_VERSION) { eap_peer_method_free(method); return -1; } for (m = eap_methods; m; m = m->next) { if ((m->vendo...
eap_peer_method_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_mschapv2_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_MSCHAPV2, "MSCHAPV2"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_mschapv2_init; eap->deinit = (void (*)(eap_sm *, void *))eap_mschapv2_deinit; eap->process = (wpabuf * (*)(eap...
int eap_peer_mschapv2_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, "MSCHAPV2"); if (eap == NULL) return -1; eap->init = eap_mschapv2_init; eap->deinit = eap_mschapv2_deinit; eap...
eap_peer_mschapv2_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_otp_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_OTP, "OTP"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_otp_init; eap->deinit = (void (*)(eap_sm *, void *))eap_otp_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_method...
int eap_peer_otp_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_OTP, "OTP"); if (eap == NULL) return -1; eap->init = eap_otp_init; eap->deinit = eap_otp_deinit; eap->process = eap_otp_proce...
eap_peer_otp_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_pax_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_PAX, "PAX"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_pax_init; eap->deinit = (void (*)(eap_sm *, void *))eap_pax_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_method...
int eap_peer_pax_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_PAX, "PAX"); if (eap == NULL) return -1; eap->init = eap_pax_init; eap->deinit = eap_pax_deinit; eap->process = eap_pax_proce...
eap_peer_pax_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_peap_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_PEAP, "PEAP"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_peap_init; eap->deinit = (void (*)(eap_sm *, void *))eap_peap_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_m...
int eap_peer_peap_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_PEAP, "PEAP"); if (eap == NULL) return -1; eap->init = eap_peap_init; eap->deinit = eap_peap_deinit; eap->process = eap_peap...
eap_peer_peap_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_psk_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_PSK, "PSK"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_psk_init; eap->deinit = (void (*)(eap_sm *, void *))eap_psk_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_method...
int eap_peer_psk_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_PSK, "PSK"); if (eap == NULL) return -1; eap->init = eap_psk_init; eap->deinit = eap_psk_deinit; eap->process = eap_psk_proce...
eap_peer_psk_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_pwd_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_PWD, "PWD"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_pwd_init; eap->deinit = (void (*)(eap_sm *, void *))eap_pwd_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_method...
int eap_peer_pwd_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_PWD, "PWD"); if (eap == NULL) return -1; eap->init = eap_pwd_init; eap->deinit = eap_pwd_deinit; eap->process = eap_pwd_proce...
eap_peer_pwd_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_req_is_duplicate(eap_sm *sm) { _BOOL4 v1; int duplicate; v1 = sm->reqId == sm->lastId && sm->rxReq; duplicate = v1; if (sm->workaround && v1 && memcmp(sm->req_sha1, sm->last_sha1, 0x14u)) { wpa_printf( 2, "EAP: AS used the same Id again, but EAP packets were not identical"); ...
static int eap_peer_req_is_duplicate(struct eap_sm *sm) { int duplicate; duplicate = (sm->reqId == sm->lastId) && sm->rxReq; if (sm->workaround && duplicate && os_memcmp(sm->req_sha1, sm->last_sha1, 20) != 0) { wpa_printf(MSG_DEBUG, "EAP: AS used the same Id again, but " "EAP...
eap_peer_req_is_duplicate
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_sake_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_SAKE, "SAKE"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_sake_init; eap->deinit = (void (*)(eap_sm *, void *))eap_sake_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_m...
int eap_peer_sake_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_SAKE, "SAKE"); if (eap == NULL) return -1; eap->init = eap_sake_init; eap->deinit = eap_sake_deinit; eap->process = eap_sake...
eap_peer_sake_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_select_phase2_methods(eap_peer_config *config, const char *prefix, eap_method_type **types, size_t *num_types, int use_machine_cred) { const char *v5; char *v7; int vendor; u32 method; size_t num_methods; char *start; char ...
int eap_peer_select_phase2_methods(struct eap_peer_config *config, const char *prefix, struct eap_method_type **types, size_t *num_types, int use_machine_cred) { char *start, *pos, *buf; struct eap_method_type *...
eap_peer_select_phase2_methods
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_sm_allow_canned(eap_sm *sm) { eap_peer_config *config; config = eap_get_config(sm); return config && config->phase1 && strstr(config->phase1, "allow_canned_success=1"); }
static int eap_peer_sm_allow_canned(struct eap_sm *sm) { struct eap_peer_config *config = eap_get_config(sm); return config && config->phase1 && os_strstr(config->phase1, "allow_canned_success=1"); }
eap_peer_sm_allow_canned
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_sm_deinit(eap_sm *sm) { if (sm) { eap_deinit_prev_method(sm, "EAP deinit"); eap_sm_abort(sm); if (sm->ssl_ctx2) tls_deinit(sm->ssl_ctx2); tls_deinit(sm->ssl_ctx); eap_peer_erp_free_keys(sm); free(sm); } }
void eap_peer_sm_deinit(struct eap_sm *sm) { if (sm == NULL) return; eap_deinit_prev_method(sm, "EAP deinit"); eap_sm_abort(sm); if (sm->ssl_ctx2) tls_deinit(sm->ssl_ctx2); tls_deinit(sm->ssl_ctx); eap_peer_erp_free_keys(sm); os_free(sm); }
eap_peer_sm_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
eap_sm *eap_peer_sm_init(void *eapol_ctx, const eapol_callbacks *eapol_cb, void *msg_ctx, eap_config *conf) { eap_sm *sm; tls_config tlsconf; unsigned long v9; v9 = __readfsqword(0x28u); sm = (eap_sm *)os_zalloc(0x160u); if (!sm) return 0; sm->eapol_ctx = eapol_ctx; sm->eap...
struct eap_sm *eap_peer_sm_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb, void *msg_ctx, struct eap_config *conf) { struct eap_sm *sm; struct tls_config tlsconf; sm = os_zalloc(sizeof(*sm)); if (sm == NULL) return NULL; sm->ea...
eap_peer_sm_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_sm_step(eap_sm *sm) { int res; for (res = 0;; res = 1) { sm->changed = 0; sm_EAP_Step(sm); if (!sm->changed) break; } return res; }
int eap_peer_sm_step(struct eap_sm *sm) { int res = 0; do { sm->changed = false; SM_STEP_RUN(EAP); if (sm->changed) res = 1; } while (sm->changed); return res; }
eap_peer_sm_step
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_sm_step_idle(eap_sm *sm) { if (eapol_get_bool(sm, eapol_bool_var_EAPOL_eapReq)) { sm_EAP_RECEIVED_Enter(sm, 0); return; } if (eapol_get_bool(sm, eapol_bool_var_EAPOL_altAccept) && sm->decision || !eapol_get_int(sm, eapol_int_var_EAPOL_idleWhile) && sm->decision == DECISION_UN...
static void eap_peer_sm_step_idle(struct eap_sm *sm) { if (eapol_get_bool(sm, EAPOL_eapReq)) SM_ENTER(EAP, RECEIVED); else if ((eapol_get_bool(sm, EAPOL_altAccept) && sm->decision != DECISION_FAIL) || (eapol_get_int(sm, EAPOL_idleWhile) == 0 && sm->decision == DECISION_UNCOND...
eap_peer_sm_step_idle
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_sm_step_local(eap_sm *sm) { switch (sm->EAP_state) { case 0: case 6: case 7: sm_EAP_IDLE_Enter(sm, 0); break; case 1: if (eapol_get_bool(sm, eapol_bool_var_EAPOL_portEnabled) && !sm->force_disabled) sm_EAP_INITIALIZE_Enter(sm, 0); break; case 2: eap_peer_sm_st...
static void eap_peer_sm_step_local(struct eap_sm *sm) { switch (sm->EAP_state) { case EAP_INITIALIZE: SM_ENTER(EAP, IDLE); break; case EAP_DISABLED: if (eapol_get_bool(sm, EAPOL_portEnabled) && !sm->force_disabled) SM_ENTER(EAP, INITIALIZE); break; case EAP_IDLE: eap_peer_sm_step_idle(...
eap_peer_sm_step_local
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_sm_step_received(eap_sm *sm) { int duplicate; duplicate = eap_peer_req_is_duplicate(sm); if (sm->rxSuccess && sm->decision && (sm->reqId == sm->lastId || eap_success_workaround(sm, sm->reqId, sm->lastId)) || sm->workaround && sm->lastId == -1 && sm->rxSuccess && !sm->rxFa...
static void eap_peer_sm_step_received(struct eap_sm *sm) { int duplicate = eap_peer_req_is_duplicate(sm); if (sm->rxSuccess && sm->decision != DECISION_FAIL && (sm->reqId == sm->lastId || eap_success_workaround(sm, sm->reqId, sm->lastId))) SM_ENTER(EAP, SUCCESS); else if (sm->workaround && sm->l...
eap_peer_sm_step_received
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_sm_tls_event(void *ctx, tls_event ev, tls_event_data *data) { char *hash_hex; size_t len; hash_hex = 0; if (ev == tls_event_TLS_ALERT) { if (data->cert_fail.depth) eap_notify_status((eap_sm *)ctx, "local TLS alert", data->alert.description); else eap_no...
static void eap_peer_sm_tls_event(void *ctx, enum tls_event ev, union tls_event_data *data) { struct eap_sm *sm = ctx; char *hash_hex = NULL; switch (ev) { case TLS_CERT_CHAIN_SUCCESS: eap_notify_status(sm, "remote certificate verification", "success"); if (sm->ext_cer...
eap_peer_sm_tls_event
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_teap_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_TEAP, "TEAP"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_teap_init; eap->deinit = (void (*)(eap_sm *, void *))eap_teap_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_m...
int eap_peer_teap_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_TEAP, "TEAP"); if (!eap) return -1; eap->init = eap_teap_init; eap->deinit = eap_teap_deinit; eap->process = eap_teap_proces...
eap_peer_teap_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_peer_tls_build_ack(u8 id, eap_type eap_type, int peap_version) { wpabuf *resp; resp = eap_tls_msg_alloc(eap_type, 1u, 2u, id); if (!resp) return 0; wpa_printf(2, "SSL: Building ACK (type=%d id=%d ver=%d)", eap_type, id, peap_version); wpabuf_put_u8_45(resp, peap_version); retur...
struct wpabuf *eap_peer_tls_build_ack(u8 id, enum eap_type eap_type, int peap_version) { struct wpabuf *resp; resp = eap_tls_msg_alloc(eap_type, 1, EAP_CODE_RESPONSE, id); if (resp == NULL) return NULL; wpa_printf(MSG_DEBUG, "SSL: Building ACK (type=%d id=%d ver=%d)", ...
eap_peer_tls_build_ack
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const wpabuf *eap_peer_tls_data_reassemble(eap_ssl_data *data, const wpabuf *in_data, int *need_more_input) { size_t tls_in_left; int res; *need_more_input = 0; tls_in_left = data->tls_in_left; if (tls_in_left <= wpabuf_len...
static const struct wpabuf * eap_peer_tls_data_reassemble(struct eap_ssl_data *data, const struct wpabuf *in_data, int *need_more_input) { *need_more_input = 0; if (data->tls_in_left > wpabuf_len(in_data) || data->tls_in) { int res = eap_peer_tls_reass...
eap_peer_tls_data_reassemble
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_decrypt(eap_sm *sm, eap_ssl_data *data, const wpabuf *in_data, wpabuf **in_decrypted) { int need_more_input; const wpabuf *msg; unsigned long v8; v8 = __readfsqword(0x28u); msg = eap_peer_tls_data_reassemble(data, in_data, &need_more_input); if (msg) { *in_decr...
int eap_peer_tls_decrypt(struct eap_sm *sm, struct eap_ssl_data *data, const struct wpabuf *in_data, struct wpabuf **in_decrypted) { const struct wpabuf *msg; int need_more_input; msg = eap_peer_tls_data_reassemble(data, in_data, &need_more_input); if (msg == N...
eap_peer_tls_decrypt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_peer_tls_derive_key(eap_sm *sm, eap_ssl_data *data, const char *label, const u8 *context, size_t context_len, size_t len) { u8 *out; out = (u8 *)malloc(len); if (!out) return 0; if (!tls_connection_export_key(data->ssl_ctx, data->conn, label, context, ...
u8 *eap_peer_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data, const char *label, const u8 *context, size_t context_len, size_t len) { u8 *out; out = os_malloc(len); if (out == NULL) return NULL; if (tls_connection_export_key(data->ssl_ctx...
eap_peer_tls_derive_key
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_peer_tls_derive_session_id(eap_sm *sm, eap_ssl_data *data, u8 eap_type, size_t *len) { u8 *out; u8 *id; u8 *method_id; tls_random keys; u8 context[1]; unsigned long v12; v12 = __readfsqword(0x28u); if (data->tls_v13) { context[0] = eap_type; *len = 65;...
u8 *eap_peer_tls_derive_session_id(struct eap_sm *sm, struct eap_ssl_data *data, u8 eap_type, size_t *len) { struct tls_random keys; u8 *out; if (data->tls_v13) { u8 *id, *method_id; const u8 context[] = {eap_type}; *len = 1 + 64; id = os_malloc(*len); if (...
eap_peer_tls_derive_session_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_encrypt(eap_sm *sm, eap_ssl_data *data, eap_type eap_type, int peap_version, u8 id, const wpabuf *in_data, wpabuf **out_data) { size_t v7; if (!in_data) return eap_tls_process_output(data, eap_type, peap_version, id, 0, ...
int eap_peer_tls_encrypt(struct eap_sm *sm, struct eap_ssl_data *data, enum eap_type eap_type, int peap_version, u8 id, const struct wpabuf *in_data, struct wpabuf **out_data) { if (in_data) { eap_peer_tls_reset_output(data); data->tls...
eap_peer_tls_encrypt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_phase2_nak(eap_method_type *types, size_t num_types, eap_hdr *hdr, wpabuf **resp) { size_t i; wpa_printf(2, "TLS: Phase 2 Request: Nak type=%d", hdr[1].code); wpa_hexdump(2, "TLS: Allowed Phase2 EAP types", types, 8 * num_types); *resp = eap_msg_alloc(0, eap_t...
int eap_peer_tls_phase2_nak(struct eap_method_type *types, size_t num_types, struct eap_hdr *hdr, struct wpabuf **resp) { u8 *pos = (u8 *)(hdr + 1); size_t i; wpa_printf(MSG_DEBUG, "TLS: Phase 2 Request: Nak type=%d", *pos); wpa_hexdump(MSG_DEBUG, "TLS: Allowed Phase2 EAP types", (u...
eap_peer_tls_phase2_nak
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_process_helper(eap_sm *sm, eap_ssl_data *data, eap_type eap_type, int peap_version, u8 id, const wpabuf *in_data, wpabuf **out_data) { int v8; int ret; int res; char buf[24]; unsigned long v16; v16 = __readfsqword(0x28u); re...
int eap_peer_tls_process_helper(struct eap_sm *sm, struct eap_ssl_data *data, enum eap_type eap_type, int peap_version, u8 id, const struct wpabuf *in_data, struct wpabuf **out_data) { int ret = 0; *out_data = NULL; ...
eap_peer_tls_process_helper
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const u8 *eap_peer_tls_process_init(eap_sm *sm, eap_ssl_data *data, eap_type eap_type, eap_method_ret *ret, const wpabuf *reqData, size_t *len, u8 *flags) { u8 *v8; int v9; size_t v10; u32 tls_msg_len; ...
const u8 *eap_peer_tls_process_init(struct eap_sm *sm, struct eap_ssl_data *data, enum eap_type eap_type, struct eap_method_ret *ret, const struct wpabuf *reqData, size_t *len,...
eap_peer_tls_process_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_reassemble_fragment(eap_ssl_data *data, const wpabuf *in_data) { size_t v2; size_t v3; size_t tls_in_len; size_t in_len; if (data->tls_in) v2 = wpabuf_len_59(data->tls_in); else v2 = 0; tls_in_len = v2; if (in_data) v3 = wpabuf_len_59(in...
static int eap_peer_tls_reassemble_fragment(struct eap_ssl_data *data, const struct wpabuf *in_data) { size_t tls_in_len, in_len; tls_in_len = data->tls_in ? wpabuf_len(data->tls_in) : 0; in_len = in_data ? wpabuf_len(in_data) : 0; if (tls_in_len + in_len == 0) { ...
eap_peer_tls_reassemble_fragment
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_reauth_init(eap_sm *sm, eap_ssl_data *data) { eap_peer_tls_reset_input(data); eap_peer_tls_reset_output(data); return tls_connection_shutdown(data->ssl_ctx, data->conn); }
int eap_peer_tls_reauth_init(struct eap_sm *sm, struct eap_ssl_data *data) { eap_peer_tls_reset_input(data); eap_peer_tls_reset_output(data); return tls_connection_shutdown(data->ssl_ctx, data->conn); }
eap_peer_tls_reauth_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_TLS, "TLS"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_tls_init; eap->deinit = (void (*)(eap_sm *, void *))eap_tls_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_method...
int eap_peer_tls_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_TLS, "TLS"); if (eap == NULL) return -1; eap->init = eap_tls_init; eap->deinit = eap_tls_deinit; eap->process = eap_tls_proce...
eap_peer_tls_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_tls_reset_input(eap_ssl_data *data) { data->tls_in_total = 0; data->tls_in_left = data->tls_in_total; wpabuf_free(data->tls_in); data->tls_in = 0; }
void eap_peer_tls_reset_input(struct eap_ssl_data *data) { data->tls_in_left = data->tls_in_total = 0; wpabuf_free(data->tls_in); data->tls_in = NULL; }
eap_peer_tls_reset_input
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_tls_reset_output(eap_ssl_data *data) { data->tls_out_pos = 0; wpabuf_free(data->tls_out); data->tls_out = 0; }
void eap_peer_tls_reset_output(struct eap_ssl_data *data) { data->tls_out_pos = 0; wpabuf_free(data->tls_out); data->tls_out = NULL; }
eap_peer_tls_reset_output
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_tls_ssl_deinit(eap_sm *sm, eap_ssl_data *data) { tls_connection_deinit(data->ssl_ctx, data->conn); eap_peer_tls_reset_input(data); eap_peer_tls_reset_output(data); }
void eap_peer_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data) { tls_connection_deinit(data->ssl_ctx, data->conn); eap_peer_tls_reset_input(data); eap_peer_tls_reset_output(data); }
eap_peer_tls_ssl_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_ssl_init(eap_sm *sm, eap_ssl_data *data, eap_peer_config *config, u8 eap_type) { void *ssl_ctx2; tls_connection_params params; unsigned long v8; v8 = __readfsqword(0x28u); if (!config) return -1; data->eap = sm; data->eap_type = eap_type; data->phase2 = sm...
int eap_peer_tls_ssl_init(struct eap_sm *sm, struct eap_ssl_data *data, struct eap_peer_config *config, u8 eap_type) { struct tls_connection_params params; if (config == NULL) return -1; data->eap = sm; data->eap_type = eap_type; data->phase2 = sm->init_phase2; data->ssl_ctx ...
eap_peer_tls_ssl_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tls_status(eap_sm *sm, eap_ssl_data *data, char *buf, size_t buflen, int verbose) { int v5; int len; int ret; char version[32]; char name[136]; unsigned long v13; v13 = __readfsqword(0x28u); len = 0; if (tls_get_version(data->ssl_ctx, data->conn, version, 0x14u) <...
int eap_peer_tls_status(struct eap_sm *sm, struct eap_ssl_data *data, char *buf, size_t buflen, int verbose) { char version[20], name[128]; int len = 0, ret; if (tls_get_version(data->ssl_ctx, data->conn, version, sizeof(version)) < 0) version[0] = '\0'; if (tls_get_cipher(data->ssl...
eap_peer_tls_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_tnc_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_TNC, "TNC"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_tnc_init; eap->deinit = (void (*)(eap_sm *, void *))eap_tnc_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_method...
int eap_peer_tnc_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_TNC, "TNC"); if (eap == NULL) return -1; eap->init = eap_tnc_init; eap->deinit = eap_tnc_deinit; eap->process = eap_tnc_proce...
eap_peer_tnc_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_ttls_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 0, eap_type_EAP_TYPE_TTLS, "TTLS"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_ttls_init; eap->deinit = (void (*)(eap_sm *, void *))eap_ttls_deinit; eap->process = (wpabuf * (*)(eap_sm *, void *, eap_m...
int eap_peer_ttls_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_IETF, EAP_TYPE_TTLS, "TTLS"); if (eap == NULL) return -1; eap->init = eap_ttls_init; eap->deinit = eap_ttls_deinit; eap->process = eap_ttls...
eap_peer_ttls_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_peer_unregister_methods() { eap_method_0 *m; while (eap_methods) { m = eap_methods; eap_methods = (eap_method_0 *)eap_methods->next; if (m->free) m->free((eap_method *)m); else eap_peer_method_free(m); } }
void eap_peer_unregister_methods(void) { struct eap_method *m; #ifdef CONFIG_DYNAMIC_EAP_METHODS void *handle; #endif while (eap_methods) { m = eap_methods; eap_methods = eap_methods->next; #ifdef CONFIG_DYNAMIC_EAP_METHODS handle = m->dl_handle; #endif if (m->free) m->free(m); else ...
eap_peer_unregister_methods
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_was_failure_expected(eap_sm *sm) { return *((_BYTE *)sm + 332) & 1; }
int eap_peer_was_failure_expected(struct eap_sm *sm) { return sm->expected_failure; }
eap_peer_was_failure_expected
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_peer_wfa_unauth_tls_register() { eap_method_0 *eap; eap = eap_peer_method_alloc(1, 40808, eap_type_EAP_TYPE_TLS, "WFA-UNAUTH-TLS"); if (!eap) return -1; eap->init = (void *(*)(eap_sm *))eap_wfa_unauth_tls_init; eap->deinit = (void (*)(eap_sm *, void *))eap_tls_deinit; eap->process = ...
int eap_peer_wfa_unauth_tls_register(void) { struct eap_method *eap; eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, EAP_VENDOR_WFA_NEW, EAP_VENDOR_WFA_UNAUTH_TLS, "WFA-UNAUTH-TLS"); if (eap == NULL) return -1; eap->init = eap_wfa_...
eap_peer_wfa_unauth_tls_register
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_psk_deinit(eap_sm *sm, void *priv) { free(*((void **)priv + 11)); free(*((void **)priv + 12)); bin_clear_free(priv, 0xF8u); }
static void eap_psk_deinit(struct eap_sm *sm, void *priv) { struct eap_psk_data *data = priv; os_free(data->id_s); os_free(data->id_p); bin_clear_free(data, sizeof(*data)); }
eap_psk_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_psk_getKey(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (*(_DWORD *)priv != 2) return 0; key = (u8 *)os_memdup((char *)priv + 120, 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_psk_getKey(struct eap_sm *sm, void *priv, size_t *len) { struct eap_psk_data *data = priv; u8 *key; if (data->state != PSK_DONE) return NULL; key = os_memdup(data->msk, EAP_MSK_LEN); if (key == NULL) return NULL; *len = EAP_MSK_LEN; return key; }
eap_psk_getKey
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_psk_get_emsk(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (*(_DWORD *)priv != 2) return 0; key = (u8 *)os_memdup((char *)priv + 184, 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_psk_get_emsk(struct eap_sm *sm, void *priv, size_t *len) { struct eap_psk_data *data = priv; u8 *key; if (data->state != PSK_DONE) return NULL; key = os_memdup(data->emsk, EAP_EMSK_LEN); if (key == NULL) return NULL; *len = EAP_EMSK_LEN; return key; }
eap_psk_get_emsk
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_psk_get_session_id(eap_sm *sm, void *priv, size_t *len) { long v4; long v5; u8 *id; if (*(_DWORD *)priv != 2) return 0; *len = 33; id = (u8 *)malloc(*len); if (!id) return 0; *id = 47; v4 = *(_QWORD *)((char *)priv + 12); *(_QWORD *)(id + 1) = *(_QWORD *)((char *)priv + 4); *(_QWO...
static u8 *eap_psk_get_session_id(struct eap_sm *sm, void *priv, size_t *len) { struct eap_psk_data *data = priv; u8 *id; if (data->state != PSK_DONE) return NULL; *len = 1 + 2 * EAP_PSK_RAND_LEN; id = os_malloc(*len); if (id == NULL) return NULL; id[0] = EAP_TYPE_PSK; os_memcpy(id + 1, data-...
eap_psk_get_session_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *eap_psk_init(eap_sm *sm) { u8 *v2; size_t identity_len; size_t password_len; const u8 *password; eap_psk_data *data; const u8 *identity; unsigned long v8; v8 = __readfsqword(0x28u); password = eap_get_config_password(sm, &password_len); if (password && password_len == 16) { data = (eap_ps...
static void *eap_psk_init(struct eap_sm *sm) { struct eap_psk_data *data; const u8 *identity, *password; size_t identity_len, password_len; password = eap_get_config_password(sm, &password_len); if (!password || password_len != 16) { wpa_printf(MSG_INFO, "EAP-PSK: 16-octet pre-shared key not " ...
eap_psk_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
bool eap_psk_isKeyAvailable(eap_sm *sm, void *priv) { return *(_DWORD *)priv == 2; }
static bool eap_psk_isKeyAvailable(struct eap_sm *sm, void *priv) { struct eap_psk_data *data = priv; return data->state == PSK_DONE; }
eap_psk_isKeyAvailable
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_pwd_allowed_group(eap_pwd_data *data, u16 group) { if (data->allowed_groups.range) return freq_range_list_includes(&data->allowed_groups, group); return group == 19 || group == 20 || group == 21; }
static int eap_pwd_allowed_group(struct eap_pwd_data *data, u16 group) { if (!data->allowed_groups.range) { return group == 19 || group == 20 || group == 21; } return freq_range_list_includes(&data->allowed_groups, group); }
eap_pwd_allowed_group
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_pwd_deinit(eap_sm *sm, void *priv) { crypto_bignum_deinit(*((crypto_bignum **)priv + 18), 1); crypto_bignum_deinit(*((crypto_bignum **)priv + 19), 1); crypto_bignum_deinit(*((crypto_bignum **)priv + 20), 1); crypto_bignum_deinit(*((crypto_bignum **)priv + 17), 1); crypto_ec_point_deinit(*((crypto_ec_...
static void eap_pwd_deinit(struct eap_sm *sm, void *priv) { struct eap_pwd_data *data = priv; crypto_bignum_deinit(data->private_value, 1); crypto_bignum_deinit(data->server_scalar, 1); crypto_bignum_deinit(data->my_scalar, 1); crypto_bignum_deinit(data->k, 1); crypto_ec_point_deinit(data->my_element, 1); ...
eap_pwd_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_pwd_get_emsk(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (*(_DWORD *)priv != 4) return 0; key = (u8 *)malloc(0x40u); if (!key) return 0; memcpy(key, (char *)priv + 248, 0x40u); *len = 64; return key; }
static u8 *eap_pwd_get_emsk(struct eap_sm *sm, void *priv, size_t *len) { struct eap_pwd_data *data = priv; u8 *key; if (data->state != SUCCESS) return NULL; if ((key = os_malloc(EAP_EMSK_LEN)) == NULL) return NULL; os_memcpy(key, data->emsk, EAP_EMSK_LEN); *len = EAP_EMSK_LEN; return key; }
eap_pwd_get_emsk
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_pwd_get_session_id(eap_sm *sm, void *priv, size_t *len) { u8 *id; if (*(_DWORD *)priv != 4) return 0; id = (u8 *)os_memdup((char *)priv + 312, 0x21u); if (!id) return 0; *len = 33; return id; }
static u8 *eap_pwd_get_session_id(struct eap_sm *sm, void *priv, size_t *len) { struct eap_pwd_data *data = priv; u8 *id; if (data->state != SUCCESS) return NULL; id = os_memdup(data->session_id, 1 + SHA256_MAC_LEN); if (id == NULL) return NULL; *len = 1 + SHA256_MAC_LEN; return id; }
eap_pwd_get_session_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_pwd_getkey(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (*(_DWORD *)priv != 4) return 0; key = (u8 *)os_memdup((char *)priv + 184, 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_pwd_getkey(struct eap_sm *sm, void *priv, size_t *len) { struct eap_pwd_data *data = priv; u8 *key; if (data->state != SUCCESS) return NULL; key = os_memdup(data->msk, EAP_MSK_LEN); if (key == NULL) return NULL; *len = EAP_MSK_LEN; return key; }
eap_pwd_getkey
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *eap_pwd_init(eap_sm *sm) { u8 *v2; u8 *v3; int pwhash; int res; int fragment_size; size_t identity_len; size_t password_len; const char *pos; char *copy; const u8 *password; const u8 *identity; eap_pwd_data *data; const char *phase1; const char *end; unsigned long v16; v16 = __rea...
static void *eap_pwd_init(struct eap_sm *sm) { struct eap_pwd_data *data; const u8 *identity, *password; size_t identity_len, password_len; int fragment_size; int pwhash; const char *phase1; password = eap_get_config_password2(sm, &password_len, &pwhash); if (password == NULL) { wpa_printf(MSG_INFO...
eap_pwd_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
bool eap_pwd_key_available(eap_sm *sm, void *priv) { return *(_DWORD *)priv == 4; }
static bool eap_pwd_key_available(struct eap_sm *sm, void *priv) { struct eap_pwd_data *data = priv; return data->state == SUCCESS; }
eap_pwd_key_available
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_pwd_perform_commit_exchange(eap_sm *sm, eap_pwd_data *data, eap_method_ret *ret, const wpabuf *reqData, const u8 *payload, size_t payload_len) { int v6; long v7; long v8; long v9; long v10; u8 *v11; u8 *v12; u8 *v13; in...
static void eap_pwd_perform_commit_exchange( struct eap_sm *sm, struct eap_pwd_data *data, struct eap_method_ret *ret, const struct wpabuf *reqData, const u8 *payload, size_t payload_len) { struct crypto_ec_point *K = NULL; struct crypto_bignum *mask = NULL; const u8 *ptr = payload; u8 *scalar, *element...
eap_pwd_perform_commit_exchange
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_pwd_perform_confirm_exchange(eap_sm *sm, eap_pwd_data *data, eap_method_ret *ret, const wpabuf *reqData, const u8 *payload, size_t payload_len) { u32 cs_0; crypto_hash *hash; u8 *cruft; siz...
static void eap_pwd_perform_confirm_exchange( struct eap_sm *sm, struct eap_pwd_data *data, struct eap_method_ret *ret, const struct wpabuf *reqData, const u8 *payload, size_t payload_len) { struct crypto_hash *hash = NULL; u32 cs; u16 grp; u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; size_t prime_le...
eap_pwd_perform_confirm_exchange
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_pwd_perform_id_exchange(eap_sm *sm, eap_pwd_data *data, eap_method_ret *ret, const wpabuf *reqData, const u8 *payload, size_t payload_len) { if (data->state || payload_len <= 8) { ret->ignore = 1; eap_pwd_state(data, 5); } else { ...
static void eap_pwd_perform_id_exchange(struct eap_sm *sm, struct eap_pwd_data *data, struct eap_method_ret *ret, const struct wpabuf *reqData, const u8 *payloa...
eap_pwd_perform_id_exchange
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_pwd_process(eap_sm *sm, void *priv, eap_method_ret *ret, const wpabuf *reqData) { const char *v4; size_t v6; u8 id; size_t out_frag_pos; const char *v9; size_t in_frag_pos; int v11; u8 v12; int v13; u8 v14; u8 v15; char lm_exch; char lm_excha; u16 tot_len;...
static struct wpabuf *eap_pwd_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData) { struct eap_pwd_data *data = priv; struct wpabuf *resp = NULL; const u8 *pos, *buf; size_t len; u16 tot_le...
eap_pwd_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_pwd_state(eap_pwd_data *data, int state) { const char *v2; const char *v3; v2 = eap_pwd_state_txt(state); v3 = eap_pwd_state_txt(data->state); wpa_printf(2, "EAP-PWD: %s -> %s", v3, v2); data->state = state; }
static void eap_pwd_state(struct eap_pwd_data *data, int state) { wpa_printf(MSG_DEBUG, "EAP-PWD: %s -> %s", eap_pwd_state_txt(data->state), eap_pwd_state_txt(state)); data->state = state; }
eap_pwd_state
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const char *eap_pwd_state_txt(int state) { const char *result; switch (state) { case 0: result = "PWD-ID-Req"; break; case 1: result = "PWD-Commit-Req"; break; case 2: result = "PWD-Confirm-Req"; break; case 3: result = "SUCCESS_ON_FRAG_COMPLETION"; break; case 4: resu...
static const char *eap_pwd_state_txt(int state) { switch (state) { case PWD_ID_Req: return "PWD-ID-Req"; case PWD_Commit_Req: return "PWD-Commit-Req"; case PWD_Confirm_Req: return "PWD-Confirm-Req"; case SUCCESS_ON_FRAG_COMPLETION: return "SUCCESS_ON_FRAG_COMPLETION"; case SUCCESS: retur...
eap_pwd_state_txt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_register_methods() { int ret; ret = eap_peer_md5_register(); if (!ret) ret = eap_peer_tls_register(); if (!ret) ret = eap_peer_wfa_unauth_tls_register(); if (!ret) ret = eap_peer_mschapv2_register(); if (!ret) ret = eap_peer_peap_register(); if (!ret) ret = eap_peer_ttls_regis...
int eap_register_methods(void) { int ret = 0; #ifdef EAP_MD5 if (ret == 0) ret = eap_peer_md5_register(); #endif #ifdef EAP_TLS if (ret == 0) ret = eap_peer_tls_register(); #endif #ifdef EAP_UNAUTH_TLS if (ret == 0) ret = eap_peer_unauth_tls_register(); #endif #ifdef EAP_TLS #ifdef CONFIG_HS20 ...
eap_register_methods
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_register_scard_ctx(eap_sm *sm, void *ctx) { if (sm) sm->scard_ctx = ctx; }
void eap_register_scard_ctx(struct eap_sm *sm, void *ctx) { if (sm) sm->scard_ctx = ctx; }
eap_register_scard_ctx
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_report_error(eap_sm *sm, int error_code) { wpa_printf(2, "EAP: Error notification: %d", error_code); if (sm->eapol_cb->notify_eap_error) sm->eapol_cb->notify_eap_error(sm->eapol_ctx, error_code); }
static void eap_report_error(struct eap_sm *sm, int error_code) { wpa_printf(MSG_DEBUG, "EAP: Error notification: %d", error_code); if (sm->eapol_cb->notify_eap_error) sm->eapol_cb->notify_eap_error(sm->eapol_ctx, error_code); }
eap_report_error
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_sake_add_attr(wpabuf *buf, u8 type, const u8 *data, size_t len) { void *v4; wpabuf_put_u8_25(buf, type); wpabuf_put_u8_25(buf, len + 2); if (data) { wpabuf_put_data_28(buf, data, len); } else { v4 = wpabuf_put(buf, len); memset(v4, 0, len); } }
void eap_sake_add_attr(struct wpabuf *buf, u8 type, const u8 *data, size_t len) { wpabuf_put_u8(buf, type); wpabuf_put_u8(buf, 2 + len); if (data) wpabuf_put_data(buf, data, len); else os_memset(wpabuf_put(buf, len), 0, len); }
eap_sake_add_attr
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_sake_build_msg(eap_sake_data *data, int id, size_t length, u8 subtype) { _BYTE *v5; wpabuf *msg; msg = eap_msg_alloc(0, eap_type_EAP_TYPE_SAKE, length + 3, 2u, id); if (msg) { v5 = wpabuf_put(msg, 3u); *v5 = 2; v5[1] = data->session_id; v5[2] = subtype; ...
static struct wpabuf *eap_sake_build_msg(struct eap_sake_data *data, int id, size_t length, u8 subtype) { struct eap_sake_hdr *sake; struct wpabuf *msg; size_t plen; plen = length + sizeof(struct eap_sake_hdr); msg = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_SAKE, plen...
eap_sake_build_msg
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_sake_deinit(eap_sm *sm, void *priv) { free(*((void **)priv + 32)); free(*((void **)priv + 30)); bin_clear_free(priv, 0x110u); }
static void eap_sake_deinit(struct eap_sm *sm, void *priv) { struct eap_sake_data *data = priv; os_free(data->serverid); os_free(data->peerid); bin_clear_free(data, sizeof(*data)); }
eap_sake_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_sake_getKey(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (*(_DWORD *)priv != 3) return 0; key = (u8 *)os_memdup((char *)priv + 100, 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_sake_getKey(struct eap_sm *sm, void *priv, size_t *len) { struct eap_sake_data *data = priv; u8 *key; if (data->state != SUCCESS) return NULL; key = os_memdup(data->msk, EAP_MSK_LEN); if (key == NULL) return NULL; *len = EAP_MSK_LEN; return key; }
eap_sake_getKey
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_sake_get_emsk(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (*(_DWORD *)priv != 3) return 0; key = (u8 *)os_memdup((char *)priv + 164, 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_sake_get_emsk(struct eap_sm *sm, void *priv, size_t *len) { struct eap_sake_data *data = priv; u8 *key; if (data->state != SUCCESS) return NULL; key = os_memdup(data->emsk, EAP_EMSK_LEN); if (key == NULL) return NULL; *len = EAP_EMSK_LEN; return key; }
eap_sake_get_emsk
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_sake_get_session_id(eap_sm *sm, void *priv, size_t *len) { long v4; long v5; u8 *id; if (*(_DWORD *)priv != 3) return 0; *len = 33; id = (u8 *)malloc(*len); if (!id) return 0; *id = 48; v4 = *(_QWORD *)((char *)priv + 44); *(_QWORD *)(id + 1) = *(_QWORD *)((char *)priv + 36); *(_Q...
static u8 *eap_sake_get_session_id(struct eap_sm *sm, void *priv, size_t *len) { struct eap_sake_data *data = priv; u8 *id; if (data->state != SUCCESS) return NULL; *len = 1 + 2 * EAP_SAKE_RAND_LEN; id = os_malloc(*len); if (id == NULL) return NULL; id[0] = EAP_TYPE_SAKE; os_memcpy(id + 1, da...
eap_sake_get_session_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *eap_sake_init(eap_sm *sm) { u8 *v2; u8 *root_secret_a; long v4; u8 *root_secret_b; long v6; size_t identity_len; size_t password_len; const u8 *password; eap_sake_data *data; const u8 *identity; unsigned long v12; v12 = __readfsqword(0x28u); password = eap_get_config_password(sm, &passw...
static void *eap_sake_init(struct eap_sm *sm) { struct eap_sake_data *data; const u8 *identity, *password; size_t identity_len, password_len; password = eap_get_config_password(sm, &password_len); if (!password || password_len != 2 * EAP_SAKE_ROOT_SECRET_LEN) { wpa_printf(MSG_INFO, "EAP-SAKE: No key of c...
eap_sake_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
bool eap_sake_isKeyAvailable(eap_sm *sm, void *priv) { return *(_DWORD *)priv == 3; }
static bool eap_sake_isKeyAvailable(struct eap_sm *sm, void *priv) { struct eap_sake_data *data = priv; return data->state == SUCCESS; }
eap_sake_isKeyAvailable
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_sake_process(eap_sm *sm, void *priv, eap_method_ret *ret, const wpabuf *reqData) { u8 id; u8 subtype; u8 session_id; size_t len; wpabuf *resp; eap_sake_data *data; const u8 *pos; const eap_sake_hdr *req; const u8 *end; unsigned long v16; v16 = __readfsqword(0x...
static struct wpabuf *eap_sake_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData) { struct eap_sake_data *data = priv; const struct eap_sake_hdr *req; struct wpabuf *resp; const u8 *pos, *...
eap_sake_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_sake_process_challenge(eap_sm *sm, eap_sake_data *data, eap_method_ret *ret, u8 id, const u8 *payload, size_t payload_len) { long v7; size_t v8; const u8 *v9; size_t rlen; wpabuf *resp; u8 *rpos; eap_sake_parse_attr attr; ...
static struct wpabuf *eap_sake_process_challenge(struct eap_sm *sm, struct eap_sake_data *data, struct eap_method_ret *ret, u8 id, const u8 *payload, ...
eap_sake_process_challenge
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_sake_process_confirm(eap_sm *sm, eap_sake_data *data, eap_method_ret *ret, u8 id, const wpabuf *reqData, const u8 *payload, size_t payload_len) { const u8 *v8; size_t v9; const u8 *v10; size_t v11; c...
static struct wpabuf * eap_sake_process_confirm(struct eap_sm *sm, struct eap_sake_data *data, struct eap_method_ret *ret, u8 id, const struct wpabuf *reqData, const u8 *payload, size_t payload_len) { struct eap_sake_parse_attr attr; u8 mic_...
eap_sake_process_confirm
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_sake_process_identity(eap_sm *sm, eap_sake_data *data, eap_method_ret *ret, u8 id, const u8 *payload, size_t payload_len) { wpabuf *resp; eap_sake_parse_attr attr; unsigned long v12; v12 = __readfsqword(0x28u); if (data->state) {...
static struct wpabuf *eap_sake_process_identity(struct eap_sm *sm, struct eap_sake_data *data, struct eap_method_ret *ret, u8 id, const u8 *payload, ...
eap_sake_process_identity
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_server_clear_identity(eap_sm *sm) { free(sm->peer_challenge); sm->peer_challenge = 0; }
void eap_server_clear_identity(struct eap_sm *sm) { os_free(sm->identity); sm->identity = NULL; }
eap_server_clear_identity
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_server_erp_init(eap_sm *sm) { ; }
static void eap_server_erp_init(struct eap_sm *sm) { #ifdef CONFIG_ERP u8 *emsk = NULL; size_t emsk_len = 0; u8 EMSKname[EAP_EMSK_NAME_LEN]; u8 len[2], ctx[3]; const char *domain; size_t domain_len, nai_buf_len; struct eap_server_erp_key *erp = NULL; int pos; domain = eap_get_erp_domain(sm); if (!d...
eap_server_erp_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const eap_method *eap_server_get_eap_method(int vendor, eap_type method) { eap_method *m; for (m = eap_methods_0; m; m = m->next) { if (vendor == m->vendor && method == m->method) return m; } return 0; }
const struct eap_method *eap_server_get_eap_method(int vendor, enum eap_type method) { struct eap_method *m; for (m = eap_methods; m; m = m->next) { if (m->vendor == vendor && m->method == method) return m; } return NULL; }
eap_server_get_eap_method
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0