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
const char *eap_teap_parse_start(eap_teap_pac **pac) { if (*pac) return "START line without END"; *pac = (eap_teap_pac *)os_zalloc(0x90u); if (!*pac) return "No memory for PAC entry"; (*pac)->pac_type = 1; return 0; }
static const char *eap_teap_parse_start(struct eap_teap_pac **pac) { if (*pac) return "START line without END"; *pac = os_zalloc(sizeof(struct eap_teap_pac)); if (!(*pac)) return "No memory for PAC entry"; (*pac)->pac_type = PAC_TYPE_TUNNEL_PAC; return NULL; }
eap_teap_parse_start
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_parse_tlv(eap_teap_tlv_parse *tlv, int tlv_type, u8 *pos, size_t len) { const char *v5; const char *v6; switch (tlv_type) { case 2: if (len > 1) { tlv->identity_type = WPA_GET_BE16_9(pos); wpa_printf(2, "EAP-TEAP: Identity-Type: %u", tlv->identity_type); ...
int eap_teap_parse_tlv(struct eap_teap_tlv_parse *tlv, int tlv_type, u8 *pos, size_t len) { switch (tlv_type) { case TEAP_TLV_IDENTITY_TYPE: if (len < 2) { wpa_printf(MSG_INFO, "EAP-TEAP: Too short Identity-Type TLV"); tlv->result = TEAP_STATUS_FAILURE; break; } ...
eap_teap_parse_tlv
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_phase2_request(eap_sm *sm, eap_teap_data *data, eap_method_ret *ret, eap_hdr *hdr, wpabuf **resp) { u32 vendor; eap_type method; size_t len; eap_peer_config *config; eap_method_ret iret; wpabuf msg; unsigned long v15; v15 = __readfsqword(0x28u); len = _bswap_1...
static int eap_teap_phase2_request(struct eap_sm *sm, struct eap_teap_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) { size_t len = be_to_host16(hdr->length); u8 *pos; struc...
eap_teap_phase2_request
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_process(eap_sm *sm, void *priv, eap_method_ret *ret, const wpabuf *reqData) { u16 cipher_suite; u8 flags; u8 id; int res; size_t left; wpabuf *resp; eap_teap_data *data; const u8 *pos; const eap_hdr *req; eap_peer_config *config; wpabuf msg; char cipher[...
static struct wpabuf *eap_teap_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_teap_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_process_basic_auth_req(eap_sm *sm, eap_teap_data *data, u8 *basic_auth_req, size_t basic_auth_req_len, teap_identity_types req_id_type) { size_t identity_len; size_t password_len;...
static struct wpabuf * eap_teap_process_basic_auth_req(struct eap_sm *sm, struct eap_teap_data *data, u8 *basic_auth_req, size_t basic_auth_req_len, enum teap_identity_types req_id_type) { const u8 *identity, *password; size_t identity_len, password_le...
eap_teap_process_basic_auth_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_process_crypto_binding(eap_sm *sm, eap_teap_data *data, eap_method_ret *ret, const teap_tlv_crypto_binding *cb, size_t bind_len) { teap_tlv_crypto_binding *v6; u8 flags; int res...
static struct wpabuf *eap_teap_process_crypto_binding( struct eap_sm *sm, struct eap_teap_data *data, struct eap_method_ret *ret, const struct teap_tlv_crypto_binding *cb, size_t bind_len) { struct wpabuf *resp; u8 *pos; u8 cmk_msk[EAP_TEAP_CMK_LEN]; u8 cmk_emsk[EAP_TEAP_CMK_LEN]; const u8 *cmk_emsk_p...
eap_teap_process_crypto_binding
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_process_decrypted(eap_sm *sm, eap_teap_data *data, eap_method_ret *ret, u8 identifier, wpabuf *decrypted, wpabuf **out_data) { bool v7; int v8; int v9; int v10; int failed; teap_error_codes error; int iresult_added; wpabuf *resp;...
static int eap_teap_process_decrypted(struct eap_sm *sm, struct eap_teap_data *data, struct eap_method_ret *ret, u8 identifier, struct wpabuf *decrypted, struct wpabuf ...
eap_teap_process_decrypted
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_process_eap_payload_tlv(eap_sm *sm, eap_teap_data *data, eap_method_ret *ret, u8 *eap_payload_tlv, size_t eap_payload_tlv_len, teap_identit...
static struct wpabuf *eap_teap_process_eap_payload_tlv( struct eap_sm *sm, struct eap_teap_data *data, struct eap_method_ret *ret, u8 *eap_payload_tlv, size_t eap_payload_tlv_len, enum teap_identity_types req_id_type) { struct eap_hdr *hdr; struct wpabuf *resp = NULL; if (eap_payload_tlv_len < sizeof...
eap_teap_process_eap_payload_tlv
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_process_pac(eap_sm *sm, eap_teap_data *data, eap_method_ret *ret, u8 *pac, size_t pac_len) { const char *v6; eap_peer_config *config; eap_teap_pac entry; unsigned long v11; v11 = __readfsqword(0x28u); config = eap_get_config(sm); memset(&entry, 0, sizeof(entr...
static struct wpabuf *eap_teap_process_pac(struct eap_sm *sm, struct eap_teap_data *data, struct eap_method_ret *ret, u8 *pac, size_t pac_len) { struct eap_peer_config *config = eap_get_con...
eap_teap_process_pac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_process_pac_info(eap_teap_pac *entry) { int type; u8 *pos; u8 *posa; size_t left; size_t lefta; size_t len; entry->pac_type = 1; pos = entry->pac_info; for (left = entry->pac_info_len; left > 4; left = lefta - len) { type = _bswap_16_6(*(_WORD *)pos); len = _bswap_16_6(*((_WORD *...
static int eap_teap_process_pac_info(struct eap_teap_pac *entry) { struct pac_attr_hdr *hdr; u8 *pos; size_t left, len; int type; entry->pac_type = PAC_TYPE_TUNNEL_PAC; pos = entry->pac_info; left = entry->pac_info_len; while (left > sizeof(*hdr)) { hdr = (struct pac_attr_hdr *)pos; type = be_...
eap_teap_process_pac_info
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_process_pac_tlv(eap_teap_pac *entry, u8 *pac, size_t pac_len) { int pac_key_found; int type; u8 *pos; size_t left; pac_attr_hdr *hdr; size_t len; unsigned long v10; v10 = __readfsqword(0x28u); pac_key_found = 0; pos = pac; for (left = pac_len; left > 4; left -= len) { hdr = (pac_...
static int eap_teap_process_pac_tlv(struct eap_teap_pac *entry, u8 *pac, size_t pac_len) { struct pac_attr_hdr *hdr; u8 *pos; size_t left, len; int type, pac_key_found = 0; pos = pac; left = pac_len; while (left > sizeof(*hdr)) { hdr = (struct pac_attr_hdr *)pos; ...
eap_teap_process_pac_tlv
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_process_start(eap_sm *sm, eap_teap_data *data, u8 flags, const u8 *pos, size_t left) { size_t leftb; u16 tlv_typea; u16 tlv_type; u16 tlv_len; u32 outer_tlv_len; const u8 *a_id; size_t a_id_len; const u8 *outer_pos; const u8 *outer_posb; const u8 *outer_posa; ...
static int eap_teap_process_start(struct eap_sm *sm, struct eap_teap_data *data, u8 flags, const u8 *pos, size_t left) { const u8 *a_id = NULL; size_t a_id_len = 0; data->received_version = flags & EAP_TLS_VERSION_MASK; wpa_printf(MSG_DEBUG, "EAP-TEAP: Start (server ver=%u, ow...
eap_teap_process_start
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_teap_put_tlv(wpabuf *buf, u16 type, const void *data, u16 len) { eap_teap_put_tlv_hdr(buf, type, len); wpabuf_put_data_26(buf, data, len); }
void eap_teap_put_tlv(struct wpabuf *buf, u16 type, const void *data, u16 len) { eap_teap_put_tlv_hdr(buf, type, len); wpabuf_put_data(buf, data, len); }
eap_teap_put_tlv
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_teap_put_tlv_buf(wpabuf *buf, u16 type, const wpabuf *data) { u16 v3; v3 = wpabuf_len_29(data); eap_teap_put_tlv_hdr(buf, type, v3); wpabuf_put_buf_12(buf, data); }
void eap_teap_put_tlv_buf(struct wpabuf *buf, u16 type, const struct wpabuf *data) { eap_teap_put_tlv_hdr(buf, type, wpabuf_len(data)); wpabuf_put_buf(buf, data); }
eap_teap_put_tlv_buf
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_teap_put_tlv_hdr(wpabuf *buf, u16 type, u16 len) { teap_tlv_hdr hdr; unsigned long v5; v5 = __readfsqword(0x28u); hdr.tlv_type = _bswap_16_7(type); hdr.length = _bswap_16_7(len); wpabuf_put_data_26(buf, &hdr, 4u); }
void eap_teap_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len) { struct teap_tlv_hdr hdr; hdr.tlv_type = host_to_be16(type); hdr.length = host_to_be16(len); wpabuf_put_data(buf, &hdr, sizeof(hdr)); }
eap_teap_put_tlv_hdr
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_read_line(eap_teap_read_ctx *rc, char **value) { char *v3; char *pos; char *posa; const char *l_end; size_t len; ++rc->line; if (rc->f) { if (!fgets(rc->buf, rc->buf_len, rc->f)) return -1; } else { if (rc->pos >= rc->end) return -1; for (l_end = rc->pos; l_end < rc...
static int eap_teap_read_line(struct eap_teap_read_ctx *rc, char **value) { char *pos; rc->line++; if (rc->f) { if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) return -1; } else { const char *l_end; size_t len; if (rc->pos >= rc->end) return -1; l_end = rc->pos; while (l_en...
eap_teap_read_line
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_teap_remove_pac(eap_teap_pac **pac_root, eap_teap_pac **pac_current, const u8 *a_id, size_t a_id_len, u16 pac_type) { eap_teap_pac *pac; eap_teap_pac *prev; pac = *pac_root; prev = 0; while (pac) { if (pac_type == pac->pac_type && a_id_len == pac->a_id_len && !me...
static void eap_teap_remove_pac(struct eap_teap_pac **pac_root, struct eap_teap_pac **pac_current, const u8 *a_id, size_t a_id_len, u16 pac_type) { struct eap_teap_pac *pac, *prev; pac = *pac_root; prev = NULL; while (pac) { if (pac->pac_type...
eap_teap_remove_pac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_save_pac(eap_sm *sm, eap_teap_pac *pac_root, const char *pac_file) { int count; int ret; char *buf; char *pos; size_t buf_len; eap_teap_pac *pac; unsigned long v11; v11 = __readfsqword(0x28u); count = 0; if (!pac_file) return -1; buf_len = 1024; buf = (cha...
int eap_teap_save_pac(struct eap_sm *sm, struct eap_teap_pac *pac_root, const char *pac_file) { struct eap_teap_pac *pac; int ret, count = 0; char *buf, *pos; size_t buf_len; if (!pac_file) return -1; buf_len = 1024; pos = buf = os_malloc(buf_len); if (!buf) return -1; ...
eap_teap_save_pac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_save_pac_bin(eap_sm *sm, eap_teap_pac *pac_root, const char *pac_file) { size_t len; size_t count; eap_teap_pac *pac; eap_teap_pac *paca; u8 *pos; u8 *posa; u8 *posb; u8 *buf; count = 0; len = 6; for (pac = pac_root; pac; pac = pac->next) { if (pac->pac_...
int eap_teap_save_pac_bin(struct eap_sm *sm, struct eap_teap_pac *pac_root, const char *pac_file) { size_t len, count = 0; struct eap_teap_pac *pac; u8 *buf, *pos; len = 6; pac = pac_root; while (pac) { if (pac->pac_opaque_len > 65535 || pac->pac_info_len > 65535) return...
eap_teap_save_pac_bin
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_teap_select_pac(eap_teap_data *data, const u8 *a_id, size_t a_id_len) { if (a_id) { data->current_pac = eap_teap_get_pac(data->pac, a_id, a_id_len, 1u); if (data->current_pac) { wpa_printf(2, "EAP-TEAP: PAC found for this A-ID (PAC-Type %d)", data->current_pac->pac_type); ...
static void eap_teap_select_pac(struct eap_teap_data *data, const u8 *a_id, size_t a_id_len) { if (!a_id) return; data->current_pac = eap_teap_get_pac(data->pac, a_id, a_id_len, PAC_TYPE_TUNNEL_PAC); if (data->current_pac) { wpa_printf(MSG_DEBUG, "EAP-TEAP: PAC found ...
eap_teap_select_pac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_select_phase2_method(eap_teap_data *data, int vendor, eap_type type) { size_t i; if (!data->anon_provisioning || eap_teap_allowed_anon_prov_phase2_method(vendor, type)) { if (vendor || type != eap_type_EAP_TYPE_TNC) { for (i = 0; i < data->num_phase2_t...
static int eap_teap_select_phase2_method(struct eap_teap_data *data, int vendor, enum eap_type type) { size_t i; if (data->anon_provisioning && !eap_teap_allowed_anon_prov_phase2_method(vendor, type)) { wpa_printf(MSG_INFO, "EAP-TEAP: EAP type %u:%u...
eap_teap_select_phase2_method
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_session_id(eap_teap_data *data) { int res; free(data->session_id); data->session_id = (u8 *)malloc(0x64u); if (!data->session_id) return -1; *data->session_id = 55; res = tls_get_tls_unique(data->ssl.conn, data->session_id + 1, 0x63u); if (res >= 0) { data->id_len = res + 1; wpa_...
static int eap_teap_session_id(struct eap_teap_data *data) { const size_t max_id_len = 100; int res; os_free(data->session_id); data->session_id = os_malloc(max_id_len); if (!data->session_id) return -1; data->session_id[0] = EAP_TYPE_TEAP; res = tls_get_tls_unique(data->ssl.conn, data->sessio...
eap_teap_session_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_session_ticket_cb(void *ctx, const u8 *ticket, size_t len, const u8 *client_random, const u8 *server_random, u8 *master_secret) { wpa_printf(2, "EAP-TEAP: SessionTicket callback"); if (master_secret) { wpa_hexdump(2, "EAP-TEAP: SessionTi...
static int eap_teap_session_ticket_cb(void *ctx, const u8 *ticket, size_t len, const u8 *client_random, const u8 *server_random, u8 *master_secret) { struct eap_teap_data *data = ctx; wpa_printf(MSG_DE...
eap_teap_session_ticket_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_tls_mac(u16 tls_cs, const u8 *cmk, size_t cmk_len, const u8 *buffer, size_t buffer_len, u8 *mac, size_t mac_len) { int res; u8 tmp[56]; unsigned long v14; v14 = __readfsqword(0x28u); memset(tmp, 0, 0x30u); memset(mac, 0, mac_len); if (tls_cipher_suit...
static int eap_teap_tls_mac(u16 tls_cs, const u8 *cmk, size_t cmk_len, const u8 *buffer, size_t buffer_len, u8 *mac, size_t mac_len) { int res; u8 tmp[48]; os_memset(tmp, 0, sizeof(tmp)); os_memset(mac, 0, mac_len); if (tls_cipher_suite_mac_sha1(tls_cs...
eap_teap_tls_mac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_tls_prf(u16 tls_cs, const u8 *secret, size_t secret_len, const char *label, const u8 *seed, size_t seed_len, u8 *out, size_t outlen) { if (tls_cipher_suite_mac_sha384(tls_cs)) return tls_prf_sha384(secret, secret_len, label, seed, seed_len, out, ...
static int eap_teap_tls_prf(u16 tls_cs, const u8 *secret, size_t secret_len, const char *label, const u8 *seed, size_t seed_len, u8 *out, size_t outlen) { if (tls_cipher_suite_mac_sha384(tls_cs)) return tls_prf_sha384(secret, secret_len, label, seed, seed_l...
eap_teap_tls_prf
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_tlv_eap_payload(wpabuf *buf) { size_t v2; wpabuf *e; if (!buf) return 0; wpa_printf(2, "EAP-TEAP: Add EAP-Payload TLV"); v2 = wpabuf_len_29(buf); e = wpabuf_alloc(v2 + 4); if (e) { eap_teap_put_tlv_buf(e, 0x8009u, buf); wpabuf_free(buf); return e; } else { wpa_print...
struct wpabuf *eap_teap_tlv_eap_payload(struct wpabuf *buf) { struct wpabuf *e; if (!buf) return NULL; wpa_printf(MSG_DEBUG, "EAP-TEAP: Add EAP-Payload TLV"); e = wpabuf_alloc(sizeof(struct teap_tlv_hdr) + wpabuf_len(buf)); if (!e) { wpa_printf(MSG_ERROR, "EAP-TEAP: Failed to allocate...
eap_teap_tlv_eap_payload
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_tlv_error(teap_error_codes error) { wpabuf *buf; buf = wpabuf_alloc(8u); if (!buf) return 0; wpa_printf(2, "EAP-TEAP: Add Error TLV(Error Code=%d)", error); wpabuf_put_be16_1(buf, 0x8005u); wpabuf_put_be16_1(buf, 4u); wpabuf_put_be32_2(buf, error); return buf; }
struct wpabuf *eap_teap_tlv_error(enum teap_error_codes error) { struct wpabuf *buf; buf = wpabuf_alloc(4 + 4); if (!buf) return NULL; wpa_printf(MSG_DEBUG, "EAP-TEAP: Add Error TLV(Error Code=%d)", error); wpabuf_put_be16(buf, TEAP_TLV_MANDATORY | TEAP_TLV_ERROR); wpabuf_put_be16(buf, 4); wpabuf_put...
eap_teap_tlv_error
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_tlv_identity_type(teap_identity_types id) { wpabuf *buf; buf = wpabuf_alloc(6u); if (!buf) return 0; wpa_printf(2, "EAP-TEAP: Add Identity-Type TLV(Identity-Type=%d)", id); wpabuf_put_be16_1(buf, 2u); wpabuf_put_be16_1(buf, 2u); wpabuf_put_be16_1(buf, id); return buf; }
struct wpabuf *eap_teap_tlv_identity_type(enum teap_identity_types id) { struct wpabuf *buf; buf = wpabuf_alloc(4 + 2); if (!buf) return NULL; wpa_printf(MSG_DEBUG, "EAP-TEAP: Add Identity-Type TLV(Identity-Type=%d)", id); wpabuf_put_be16(buf, TEAP_TLV_IDENTITY_TYPE); wpabuf_put_be16(buf, ...
eap_teap_tlv_identity_type
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_tlv_nak(int vendor_id, int tlv_type) { wpabuf *buf; teap_tlv_nak *nak; wpa_printf(2, "EAP-TEAP: Add NAK TLV (Vendor-Id %u NAK-Type %u)", vendor_id, tlv_type); buf = wpabuf_alloc(0xAu); if (!buf) return 0; nak = (teap_tlv_nak *)wpabuf_put(buf, 0xAu); nak->tlv_type = _bswa...
static struct wpabuf *eap_teap_tlv_nak(int vendor_id, int tlv_type) { struct wpabuf *buf; struct teap_tlv_nak *nak; wpa_printf(MSG_DEBUG, "EAP-TEAP: Add NAK TLV (Vendor-Id %u NAK-Type %u)", vendor_id, tlv_type); buf = wpabuf_alloc(sizeof(*nak)); if (!buf) return NULL; nak = wpabuf_put(buf,...
eap_teap_tlv_nak
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_tlv_pac_ack() { wpabuf *buf; teap_tlv_pac_ack *ack; buf = wpabuf_alloc(0x10u); if (!buf) return 0; wpa_printf(2, "EAP-TEAP: Add PAC TLV (ack)"); ack = (teap_tlv_pac_ack *)wpabuf_put(buf, 0xAu); ack->tlv_type = _bswap_16_6(0x800Bu); ack->length = _bswap_16_6(6u); ack->pac_type = _...
static struct wpabuf *eap_teap_tlv_pac_ack(void) { struct wpabuf *buf; struct teap_tlv_result *res; struct teap_tlv_pac_ack *ack; buf = wpabuf_alloc(sizeof(*res) + sizeof(*ack)); if (!buf) return NULL; wpa_printf(MSG_DEBUG, "EAP-TEAP: Add PAC TLV (ack)"); ack = wpabuf_put(buf, sizeof(*ack)); ack->...
eap_teap_tlv_pac_ack
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_teap_tlv_result(int status, int intermediate) { const char *v3; const char *v4; __uint16_t v5; wpabuf *buf; teap_tlv_result *result; if (status != 2 && status != 1) return 0; buf = wpabuf_alloc(6u); if (!buf) return 0; if (status == 1) v3 = "Success"; else v3 = "Failure"...
struct wpabuf *eap_teap_tlv_result(int status, int intermediate) { struct wpabuf *buf; struct teap_tlv_result *result; if (status != TEAP_STATUS_FAILURE && status != TEAP_STATUS_SUCCESS) return NULL; buf = wpabuf_alloc(sizeof(*result)); if (!buf) return NULL; wpa_printf(MSG_DEBUG, "EAP-TEAP: Add %...
eap_teap_tlv_result
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const char *eap_teap_tlv_type_str(teap_tlv_types type) { const char *result; switch (type) { case teap_tlv_types_TEAP_TLV_AUTHORITY_ID: result = "Authority-ID"; break; case teap_tlv_types_TEAP_TLV_IDENTITY_TYPE: result = "Identity-Type"; break; case teap_tlv_types_TEAP_TLV_RESULT: result ...
const char *eap_teap_tlv_type_str(enum teap_tlv_types type) { switch (type) { case TEAP_TLV_AUTHORITY_ID: return "Authority-ID"; case TEAP_TLV_IDENTITY_TYPE: return "Identity-Type"; case TEAP_TLV_RESULT: return "Result"; case TEAP_TLV_NAK: return "NAK"; case TEAP_TLV_ERROR: return "Error...
eap_teap_tlv_type_str
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_use_pac_opaque(eap_sm *sm, eap_teap_data *data, eap_teap_pac *pac) { size_t olen; u8 *tlv; wpa_printf(2, "EAP-TEAP: Add PAC-Opaque TLS extension"); olen = pac->pac_opaque_len; tlv = (u8 *)malloc(olen + 4); if (tlv && (*(_WORD *)tlv = _bswap_16_6(2u), *((_WORD ...
static int eap_teap_use_pac_opaque(struct eap_sm *sm, struct eap_teap_data *data, struct eap_teap_pac *pac) { u8 *tlv; size_t tlv_len, olen; struct teap_tlv_hdr *ehdr; wpa_printf(MSG_DEBUG, "EAP-TEAP: Add PAC-Opaque TLS extension"); olen =...
eap_teap_use_pac_opaque
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_validate_crypto_binding(eap_teap_data *data, const teap_tlv_crypto_binding *cb) { u8 subtype; u8 flags; subtype = cb->subtype & 0xF; flags = cb->subtype >> 4; wpa_printf(2, "EAP-TEAP: Crypto-Binding TLV: Version %u Received Version %u " ...
static int eap_teap_validate_crypto_binding(struct eap_teap_data *data, const struct teap_tlv_crypto_binding *cb) { u8 flags, subtype; subtype = cb->subtype & 0x0f; flags = cb->subtype >> 4; wpa_printf(MSG_DEBUG, "EAP-TEAP: Crypto-Binding TLV: Version %u Received ...
eap_teap_validate_crypto_binding
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_teap_write(char **buf, char **pos, size_t *buf_len, const char *field, const u8 *data, size_t len, int txt) { int ret; int reta; int retb; int retc; int retd; size_t i; size_t need; char *nbuf; char *end; if (data && buf && *buf && pos && *pos && *pos >= *buf) { nee...
static void eap_teap_write(char **buf, char **pos, size_t *buf_len, const char *field, const u8 *data, size_t len, int txt) { size_t i, need; int ret; char *end; if (!data || !buf || !(*buf) || !pos || !(*pos) || *pos < *buf) return; need = os_strlen...
eap_teap_write
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_write_crypto_binding(eap_teap_data *data, teap_tlv_crypto_binding *rbind, const teap_tlv_crypto_binding *cb, const u8 *cmk_msk, const u8 *cmk_emsk) { char v5; u8 flags; rbind->tlv_type = _bswap_16_6...
static int eap_teap_write_crypto_binding(struct eap_teap_data *data, struct teap_tlv_crypto_binding *rbind, const struct teap_tlv_crypto_binding *cb, const u8 *cmk_msk, const u8 *cmk_emsk) { u8 subtype, flags; rbind->tlv_type...
eap_teap_write_crypto_binding
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_teap_write_pac(eap_sm *sm, const char *pac_file, char *buf, size_t len) { FILE *f; wpa_config_blob *blob; if (!strncmp(pac_file, "blob://", 7u)) { blob = (wpa_config_blob *)os_zalloc(0x20u); if (!blob) return -1; blob->data = (u8 *)buf; blob->len = len; bl...
static int eap_teap_write_pac(struct eap_sm *sm, const char *pac_file, char *buf, size_t len) { if (os_strncmp(pac_file, "blob://", 7) == 0) { struct wpa_config_blob *blob; blob = os_zalloc(sizeof(*blob)); if (!blob) return -1; blob->data = (u8 *)buf; blob->len...
eap_teap_write_pac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_cert_params_from_conf(tls_connection_params *params, eap_peer_cert_config *config) { unsigned int flags; params->ca_cert = config->ca_cert; params->ca_path = config->ca_path; params->client_cert = config->client_cert; params->private_key = config->private_key; ...
static void eap_tls_cert_params_from_conf(struct tls_connection_params *params, struct eap_peer_cert_config *config) { params->ca_cert = config->ca_cert; params->ca_path = config->ca_path; params->client_cert = config->client_cert; params->private_key = config->private_...
eap_tls_cert_params_from_conf
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tls_check_blob(eap_sm *sm, const char **name, const u8 **data, size_t *data_len) { const wpa_config_blob *blob; if (!*name || strncmp(*name, "blob://", 7u)) return 0; blob = eap_get_config_blob(sm, *name + 7); if (blob) { *name = 0; *data = blob->data; *data_len =...
static int eap_tls_check_blob(struct eap_sm *sm, const char **name, const u8 **data, size_t *data_len) { const struct wpa_config_blob *blob; if (*name == NULL || os_strncmp(*name, "blob://", 7) != 0) return 0; blob = eap_get_config_blob(sm, *name + 7); if (blob == NULL) { ...
eap_tls_check_blob
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_deinit(eap_sm *sm, void *priv) { if (priv) { eap_peer_tls_ssl_deinit(sm, (eap_ssl_data *)priv); eap_tls_free_key((eap_tls_data *)priv); free(*((void **)priv + 12)); wpabuf_free(*((wpabuf **)priv + 16)); free(priv); } }
static void eap_tls_deinit(struct eap_sm *sm, void *priv) { struct eap_tls_data *data = priv; if (data == NULL) return; eap_peer_tls_ssl_deinit(sm, &data->ssl); eap_tls_free_key(data); os_free(data->session_id); wpabuf_free(data->pending_resp); os_free(data); }
eap_tls_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_deinit_for_reauth(eap_sm *sm, void *priv) { wpabuf_free(*((wpabuf **)priv + 16)); *((_QWORD *)priv + 16) = 0; }
static void eap_tls_deinit_for_reauth(struct eap_sm *sm, void *priv) { struct eap_tls_data *data = priv; wpabuf_free(data->pending_resp); data->pending_resp = NULL; }
eap_tls_deinit_for_reauth
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tls_failure(eap_sm *sm, eap_tls_data *data, eap_method_ret *ret, int res, wpabuf *resp, u8 id) { wpa_printf(2, "EAP-TLS: TLS processing failed"); ret->methodState = METHOD_DONE; ret->decision = DECISION_FAIL; if (resp) return resp; else return eap_peer_tls_build_ack...
static struct wpabuf *eap_tls_failure(struct eap_sm *sm, struct eap_tls_data *data, struct eap_method_ret *ret, int res, struct wpabuf *resp, u8 id) { wpa_printf(MSG_DEBUG, "EAP-TLS: TLS processing failed...
eap_tls_failure
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_free_key(eap_tls_data *data) { if (data->key_data) { bin_clear_free(data->key_data, 0x80u); data->key_data = 0; } }
static void eap_tls_free_key(struct eap_tls_data *data) { if (data->key_data) { bin_clear_free(data->key_data, EAP_TLS_KEY_LEN + EAP_EMSK_LEN); data->key_data = NULL; } }
eap_tls_free_key
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_tls_getKey(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (!*((_QWORD *)priv + 11)) return 0; key = (u8 *)os_memdup(*((const void **)priv + 11), 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_tls_getKey(struct eap_sm *sm, void *priv, size_t *len) { struct eap_tls_data *data = priv; u8 *key; if (data->key_data == NULL) return NULL; key = os_memdup(data->key_data, EAP_TLS_KEY_LEN); if (key == NULL) return NULL; *len = EAP_TLS_KEY_LEN; return key; }
eap_tls_getKey
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_tls_get_emsk(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (!*((_QWORD *)priv + 11)) return 0; key = (u8 *)os_memdup((const void *)(*((_QWORD *)priv + 11) + 64LL), 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_tls_get_emsk(struct eap_sm *sm, void *priv, size_t *len) { struct eap_tls_data *data = priv; u8 *key; if (data->key_data == NULL) return NULL; key = os_memdup(data->key_data + EAP_TLS_KEY_LEN, EAP_EMSK_LEN); if (key == NULL) return NULL; *len = EAP_EMSK_LEN; return key; }
eap_tls_get_emsk
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_tls_get_session_id(eap_sm *sm, void *priv, size_t *len) { u8 *id; if (!*((_QWORD *)priv + 12)) return 0; id = (u8 *)os_memdup(*((const void **)priv + 12), *((_QWORD *)priv + 13)); if (!id) return 0; *len = *((_QWORD *)priv + 13); return id; }
static u8 *eap_tls_get_session_id(struct eap_sm *sm, void *priv, size_t *len) { struct eap_tls_data *data = priv; u8 *id; if (data->session_id == NULL) return NULL; id = os_memdup(data->session_id, data->id_len); if (id == NULL) return NULL; *len = data->id_len; return id; }
eap_tls_get_session_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tls_get_status(eap_sm *sm, void *priv, char *buf, size_t buflen, int verbose) { return eap_peer_tls_status(sm, (eap_ssl_data *)priv, buf, buflen, verbose); }
static int eap_tls_get_status(struct eap_sm *sm, void *priv, char *buf, size_t buflen, int verbose) { struct eap_tls_data *data = priv; return eap_peer_tls_status(sm, &data->ssl, buf, buflen, verbose); }
eap_tls_get_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
bool eap_tls_has_reauth_data(eap_sm *sm, void *priv) { return tls_connection_established(*((void **)priv + 14), *(tls_connection **)priv) != 0; }
static bool eap_tls_has_reauth_data(struct eap_sm *sm, void *priv) { struct eap_tls_data *data = priv; return tls_connection_established(data->ssl_ctx, data->ssl.conn); }
eap_tls_has_reauth_data
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *eap_tls_init(eap_sm *sm) { void *ssl_ctx2; eap_peer_cert_config *cert; eap_peer_config *config; eap_tls_data *data; config = eap_get_config(sm); if (!config) return 0; if (sm->init_phase2) { if ((*((_BYTE *)sm + 332) & 8) != 0) cert = &config->machine_cert; else cert = &conf...
static void *eap_tls_init(struct eap_sm *sm) { struct eap_tls_data *data; struct eap_peer_config *config = eap_get_config(sm); struct eap_peer_cert_config *cert; if (!config) return NULL; if (!sm->init_phase2) cert = &config->cert; else if (sm->use_machine_cred) cert = &config->machine_cert; ...
eap_tls_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tls_init_connection(eap_sm *sm, eap_ssl_data *data, eap_peer_config *config, tls_connection_params *params) { int res; data->conn = tls_connection_init(data->ssl_ctx); if (data->conn) { res = tls_connection_set_params(data->ssl_ctx, data->conn, ...
static int eap_tls_init_connection(struct eap_sm *sm, struct eap_ssl_data *data, struct eap_peer_config *config, struct tls_connection_params *params) { int res; data->conn = tls_connection_init(data->ssl_ctx); if (data->conn == NULL) { wp...
eap_tls_init_connection
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *eap_tls_init_for_reauth(eap_sm *sm, void *priv) { eap_tls_free_key((eap_tls_data *)priv); free(*((void **)priv + 12)); *((_QWORD *)priv + 12) = 0; if (!eap_peer_tls_reauth_init(sm, (eap_ssl_data *)priv)) return priv; free(priv); return 0; }
static void *eap_tls_init_for_reauth(struct eap_sm *sm, void *priv) { struct eap_tls_data *data = priv; eap_tls_free_key(data); os_free(data->session_id); data->session_id = NULL; if (eap_peer_tls_reauth_init(sm, &data->ssl)) { os_free(data); return NULL; } return priv; }
eap_tls_init_for_reauth
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
bool eap_tls_isKeyAvailable(eap_sm *sm, void *priv) { return *((_QWORD *)priv + 11) != 0; }
static bool eap_tls_isKeyAvailable(struct eap_sm *sm, void *priv) { struct eap_tls_data *data = priv; return data->key_data != NULL; }
eap_tls_isKeyAvailable
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tls_msg_alloc(eap_type type, size_t payload_len, u8 code, u8 identifier) { if (type == (eap_type_EAP_TYPE_EXPANDED | eap_type_EAP_TYPE_IDENTITY)) return eap_msg_alloc(39068, eap_type_EAP_TYPE_IDENTITY, payload_len, code, identifier); if (type == eap...
static struct wpabuf *eap_tls_msg_alloc(enum eap_type type, size_t payload_len, u8 code, u8 identifier) { if (type == EAP_UNAUTH_TLS_TYPE) return eap_msg_alloc(EAP_VENDOR_UNAUTH_TLS, EAP_VENDOR_TYPE_UNAUTH_TLS, payload_len, code, identifier); if (...
eap_tls_msg_alloc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_params_flags(tls_connection_params *params, const char *txt) { unsigned int flags; unsigned int v3; unsigned int v4; unsigned int v5; unsigned int v6; unsigned int v7; unsigned int v8; unsigned int v9; unsigned int v10; unsigned int v11; unsigned int v12; unsigned int v13; if (tx...
static void eap_tls_params_flags(struct tls_connection_params *params, const char *txt) { if (txt == NULL) return; if (os_strstr(txt, "tls_allow_md5=1")) params->flags |= TLS_CONN_ALLOW_SIGN_RSA_MD5; if (os_strstr(txt, "tls_disable_time_checks=1")) params->flags |= TLS...
eap_tls_params_flags
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tls_params_from_conf(eap_sm *sm, eap_ssl_data *data, tls_connection_params *params, eap_peer_config *config, int phase2) { unsigned int flags; unsigned int v6; unsigned int v7; memset(params, 0, sizeof(tls_connection_params)); if (sm->workarou...
static int eap_tls_params_from_conf(struct eap_sm *sm, struct eap_ssl_data *data, struct tls_connection_params *params, struct eap_peer_config *config, int phase2) { os_memse...
eap_tls_params_from_conf
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_params_from_conf1(tls_connection_params *params, eap_peer_config *config) { eap_tls_cert_params_from_conf(params, &config->cert); eap_tls_params_flags(params, config->phase1); }
static void eap_tls_params_from_conf1(struct tls_connection_params *params, struct eap_peer_config *config) { eap_tls_cert_params_from_conf(params, &config->cert); eap_tls_params_flags(params, config->phase1); }
eap_tls_params_from_conf1
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_params_from_conf2(tls_connection_params *params, eap_peer_config *config) { eap_tls_cert_params_from_conf(params, &config->phase2_cert); eap_tls_params_flags(params, config->phase2); }
static void eap_tls_params_from_conf2(struct tls_connection_params *params, struct eap_peer_config *config) { eap_tls_cert_params_from_conf(params, &config->phase2_cert); eap_tls_params_flags(params, config->phase2); }
eap_tls_params_from_conf2
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_params_from_conf2m(tls_connection_params *params, eap_peer_config *config) { eap_tls_cert_params_from_conf(params, &config->machine_cert); eap_tls_params_flags(params, config->machine_phase2); }
static void eap_tls_params_from_conf2m(struct tls_connection_params *params, struct eap_peer_config *config) { eap_tls_cert_params_from_conf(params, &config->machine_cert); eap_tls_params_flags(params, config->machine_phase2); }
eap_tls_params_from_conf2m
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tls_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_tls_data *data; eap_peer_config *config; const u8 *pos; wpabuf msg; unsigned long v16; v16 = __readfsqword(0x28u); data ...
static struct wpabuf *eap_tls_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData) { size_t left; int res; struct wpabuf *resp; u8 flags, id; const u8 *pos; struct eap_tls_data *data = pri...
eap_tls_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tls_process_input(eap_sm *sm, eap_ssl_data *data, const wpabuf *in_data, wpabuf **out_data) { int need_more_input; wpabuf *appl_data; const wpabuf *msg; unsigned long v9; v9 = __readfsqword(0x28u); msg = eap_peer_tls_data_reassemble(data, in_data, &need_more_input); if (...
static int eap_tls_process_input(struct eap_sm *sm, struct eap_ssl_data *data, const struct wpabuf *in_data, struct wpabuf **out_data) { const struct wpabuf *msg; int need_more_input; struct wpabuf *appl_data; msg = eap_peer_tls_data_reassemble(...
eap_tls_process_input
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tls_process_output(eap_ssl_data *data, eap_type eap_type, int peap_version, u8 id, int ret, wpabuf **out_data) { size_t v7; _BOOL4 v8; u32 v9; const u8 *v10; int more_fragments; _BOOL4 length_included; size_t len; u8 *flags; if (!data->tls...
static int eap_tls_process_output(struct eap_ssl_data *data, enum eap_type eap_type, int peap_version, u8 id, int ret, struct wpabuf **out_data) { size_t len; u8 *flags; int more_fragments, length_included; if (data->tls_out == NULL) retur...
eap_tls_process_output
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tls_success(eap_sm *sm, eap_tls_data *data, eap_method_ret *ret) { const char *label; u8 *context; size_t context_len; u8 eap_tls13_context[1]; unsigned long v8; v8 = __readfsqword(0x28u); eap_tls13_context[0] = 13; context = 0; context_len = 0; wpa_printf(2, "EAP-TLS: Done"); if (data->...
static void eap_tls_success(struct eap_sm *sm, struct eap_tls_data *data, struct eap_method_ret *ret) { const char *label; const u8 eap_tls13_context[] = {EAP_TYPE_TLS}; const u8 *context = NULL; size_t context_len = 0; wpa_printf(MSG_DEBUG, "EAP-TLS: Done"); if (data->ssl.tls_...
eap_tls_success
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tlv_add_cryptobinding(eap_sm *sm, eap_peap_data *data, wpabuf *buf) { u8 eap_type; u16 tlv_type; u8 *mac; const u8 *addr[2]; size_t len[3]; unsigned long v10; v10 = __readfsqword(0x28u); eap_type = 25; addr[0] = (const u8 *)wpabuf_put(buf, 0); len[0] = 60; addr[1] = &eap_type; len[1] = ...
static int eap_tlv_add_cryptobinding(struct eap_sm *sm, struct eap_peap_data *data, struct wpabuf *buf) { u8 *mac; u8 eap_type = EAP_TYPE_PEAP; const u8 *addr[2]; size_t len[2]; u16 tlv_type; addr[0] = wpabuf_put(buf, 0); len[0] = ...
eap_tlv_add_cryptobinding
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tlv_build_nak(int id, u16 nak_type) { wpabuf *msg; msg = eap_msg_alloc(0, eap_type_EAP_TYPE_TLV, 0xAu, 2u, id); if (!msg) return 0; wpabuf_put_u8_18(msg, 0x80u); wpabuf_put_u8_18(msg, 4u); wpabuf_put_be16_0(msg, 6u); wpabuf_put_be32_1(msg, 0); wpabuf_put_be16_0(msg, nak_type); return ...
static struct wpabuf *eap_tlv_build_nak(int id, u16 nak_type) { struct wpabuf *msg; msg = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TLV, 10, EAP_CODE_RESPONSE, id); if (msg == NULL) return NULL; wpabuf_put_u8(msg, 0x80); wpabuf_put_u8(msg, EAP_TLV_NAK_TLV); wpabuf_put_be16(msg, 6); wpabuf_put_be32(msg...
eap_tlv_build_nak
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tlv_build_result(eap_sm *sm, eap_peap_data *data, int crypto_tlv_used, int id, u16 status) { size_t len; wpabuf *msg; if (data->crypto_binding == NO_BINDING) crypto_tlv_used = 0; len = 6; if (crypto_tlv_used) len = 66; msg = eap_msg_alloc(0, eap_type_EAP_TYP...
static struct wpabuf *eap_tlv_build_result(struct eap_sm *sm, struct eap_peap_data *data, int crypto_tlv_used, int id, u16 status) { struct wpabuf *msg; size_t len; if (data->crypto_bi...
eap_tlv_build_result
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tlv_process(eap_sm *sm, eap_peap_data *data, eap_method_ret *ret, const wpabuf *req, wpabuf **resp, int force_failure) { const char *v7; u8 id; int v9; u16 resp_status; int status; int mandatory; int tlv_type; size_t left; const u8 *pos; const u8 *result_tlv; const u8 *...
static int eap_tlv_process(struct eap_sm *sm, struct eap_peap_data *data, struct eap_method_ret *ret, const struct wpabuf *req, struct wpabuf **resp, int force_failure) { size_t left, tlv_len; const u8 *pos; const u8 *result_tlv = NULL, *crypto_tlv = NULL; s...
eap_tlv_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tlv_validate_cryptobinding(eap_sm *sm, eap_peap_data *data, const u8 *crypto_tlv, size_t crypto_tlv_len) { u8 mac[32]; u8 buf[72]; unsigned long v9; v9 = __readfsqword(0x28u); if (eap_peap_derive_cmk(sm, data) >= 0) { if (crypt...
static int eap_tlv_validate_cryptobinding(struct eap_sm *sm, struct eap_peap_data *data, const u8 *crypto_tlv, size_t crypto_tlv_len) { u8 buf[61], mac[SHA1_MAC_LEN]; const u8 *pos; if (e...
eap_tlv_validate_cryptobinding
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tnc_build_frag_ack(u8 id, u8 code) { wpabuf *msg; msg = eap_msg_alloc(0, eap_type_EAP_TYPE_TNC, 1u, code, id); if (msg) { wpabuf_put_u8_31(msg, 1u); wpa_printf(2, "EAP-TNC: Send fragment ack"); return msg; } else { wpa_printf(5, "EAP-TNC: Failed to allocate memory for fragment ack")...
static struct wpabuf *eap_tnc_build_frag_ack(u8 id, u8 code) { struct wpabuf *msg; msg = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 1, code, id); if (msg == NULL) { wpa_printf(MSG_ERROR, "EAP-TNC: Failed to allocate memory " "for fragment ack"); return NULL; } wpabuf_put_u...
eap_tnc_build_frag_ack
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tnc_build_msg(eap_tnc_data *data, eap_method_ret *ret, u8 id) { u32 v4; const u8 *v5; size_t out_used; size_t v7; char flags; size_t send_len; size_t plen; wpabuf *resp; ret->ignore = 0; wpa_printf(2, "EAP-TNC: Generating Response"); ret->allowNotifications = 1; flags = 1; send_le...
static struct wpabuf *eap_tnc_build_msg(struct eap_tnc_data *data, struct eap_method_ret *ret, u8 id) { struct wpabuf *resp; u8 flags; size_t send_len, plen; ret->ignore = false; wpa_printf(MSG_DEBUG, "EAP-TNC: Generating Response"); ret->allowNotifications = true; ...
eap_tnc_build_msg
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_tnc_deinit(eap_sm *sm, void *priv) { wpabuf_free(*((wpabuf **)priv + 2)); wpabuf_free(*((wpabuf **)priv + 3)); tncc_deinit(*((tncc_data **)priv + 1)); free(priv); }
static void eap_tnc_deinit(struct eap_sm *sm, void *priv) { struct eap_tnc_data *data = priv; wpabuf_free(data->in_buf); wpabuf_free(data->out_buf); tncc_deinit(data->tncc); os_free(data); }
eap_tnc_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *eap_tnc_init(eap_sm *sm) { eap_peer_config *config; eap_tnc_data *data; config = eap_get_config(sm); data = (eap_tnc_data *)os_zalloc(0x30u); if (!data) return 0; data->state = WAIT_START; if (config && config->fragment_size) data->fragment_size = config->fragment_size; else data->fra...
static void *eap_tnc_init(struct eap_sm *sm) { struct eap_tnc_data *data; struct eap_peer_config *config = eap_get_config(sm); data = os_zalloc(sizeof(*data)); if (data == NULL) return NULL; data->state = WAIT_START; if (config && config->fragment_size) data->fragment_size = config->fragment_size; ...
eap_tnc_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tnc_process(eap_sm *sm, void *priv, eap_method_ret *ret, const wpabuf *reqData) { char *v5; size_t v6; const u8 *v7; u8 v8; size_t v9; const void *v10; char flags; u8 id; int tncs_done; unsigned int message_length; size_t len; const u8 *pos; eap_tnc_data *da...
static struct wpabuf *eap_tnc_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData) { struct eap_tnc_data *data = priv; struct wpabuf *resp; const u8 *pos, *end; u8 *rpos, *rpos1; size_t len,...
eap_tnc_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_tnc_process_cont(eap_tnc_data *data, const u8 *buf, size_t len) { size_t v4; if (len <= wpabuf_tailroom_2(data->in_buf)) { wpabuf_put_data_34(data->in_buf, buf, len); v4 = wpabuf_tailroom_2(data->in_buf); wpa_printf(2, "EAP-TNC: Received %lu bytes, waiting for %lu bytes more", le...
static int eap_tnc_process_cont(struct eap_tnc_data *data, const u8 *buf, size_t len) { if (len > wpabuf_tailroom(data->in_buf)) { wpa_printf(MSG_DEBUG, "EAP-TNC: Fragment overflow"); data->state = FAIL; return -1; } wpabuf_put_data(data->in_buf, buf, len); wpa_prin...
eap_tnc_process_cont
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *eap_tnc_process_fragment(eap_tnc_data *data, eap_method_ret *ret, u8 id, u8 flags, u32 message_length, const u8 *buf, size_t len) { size_t v8; if (!data->in_buf && (flags & 0x80u) == 0) { wpa_printf(2, "EAP-TNC: No Message Length field i...
static struct wpabuf *eap_tnc_process_fragment(struct eap_tnc_data *data, struct eap_method_ret *ret, u8 id, u8 flags, u32 message_length, ...
eap_tnc_process_fragment
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_ttls_avp_add(u8 *start, u8 *avphdr, u32 avp_code, u32 vendor_id, int mandatory, const u8 *data, size_t len) { u8 *pos; u8 *posa; pos = eap_ttls_avp_hdr(avphdr, avp_code, vendor_id, mandatory, len); memcpy(pos, data, len); posa = &pos[len]; memset(posa, 0, ((_DWORD)start - (_DWO...
static u8 *eap_ttls_avp_add(u8 *start, u8 *avphdr, u32 avp_code, u32 vendor_id, int mandatory, const u8 *data, size_t len) { u8 *pos; pos = eap_ttls_avp_hdr(avphdr, avp_code, vendor_id, mandatory, len); os_memcpy(pos, data, len); pos += len; AVP_PAD(start, pos); return pos; }
eap_ttls_avp_add
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_avp_encapsulate(wpabuf **resp, u32 avp_code, int mandatory) { size_t v3; size_t v5; size_t v6; const void *v7; wpabuf *msg; u8 *avp; u8 *pos; u8 *posa; v3 = wpabuf_len_24(*resp); msg = wpabuf_alloc(v3 + 12); if (msg) { avp = (u8 *)wpabuf_mhead_3(msg); v5 = wpabuf_len_24(*resp...
static int eap_ttls_avp_encapsulate(struct wpabuf **resp, u32 avp_code, int mandatory) { struct wpabuf *msg; u8 *avp, *pos; msg = wpabuf_alloc(sizeof(struct ttls_avp) + wpabuf_len(*resp) + 4); if (msg == NULL) { wpabuf_clear_free(*resp); *resp = NULL; return -1; ...
eap_ttls_avp_encapsulate
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_ttls_avp_hdr(u8 *avphdr, u32 avp_code, u32 vendor_id, int mandatory, size_t len) { char v5; int lena; u8 flags; size_t hdrlen; lena = len; if (mandatory) v5 = 64; else v5 = 0; flags = v5; if (vendor_id) { flags = v5 | 0x80; hdrlen = 12; *((_DWORD *)avp...
static u8 *eap_ttls_avp_hdr(u8 *avphdr, u32 avp_code, u32 vendor_id, int mandatory, size_t len) { struct ttls_avp_vendor *avp; u8 flags; size_t hdrlen; avp = (struct ttls_avp_vendor *)avphdr; flags = mandatory ? AVP_FLAGS_MANDATORY : 0; if (vendor_id) { flags |= AVP_FLAGS_VE...
eap_ttls_avp_hdr
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_ttls_check_auth_status(eap_sm *sm, eap_ttls_data *data, eap_method_ret *ret) { if (ret->methodState == METHOD_DONE) { ret->allowNotifications = 0; if (ret->decision == DECISION_UNCOND_SUCC || ret->decision == DECISION_COND_SUCC) { wpa_printf(2, "EAP-TTLS:...
static void eap_ttls_check_auth_status(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret) { if (ret->methodState == METHOD_DONE) { ret->allowNotifications = false; if (ret->decision == DECISION_UNCOND_SUCC ||...
eap_ttls_check_auth_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_decrypt(eap_sm *sm, eap_ttls_data *data, eap_method_ret *ret, u8 identifier, const wpabuf *in_data, wpabuf **out_data) { size_t v6; int retval; wpabuf *in_decrypted; ttls_parse_avp parse; unsigned long v15; v15 = __readfsqword(0x28u); in_decrypted = 0; memset(&parse, 0...
static int eap_ttls_decrypt(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, u8 identifier, const struct wpabuf *in_data, struct wpabuf **out_data) { struct wpabuf *in_decrypted = NULL; int retval = 0; st...
eap_ttls_decrypt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_ttls_deinit(eap_sm *sm, void *priv) { if (priv) { eap_ttls_phase2_eap_deinit(sm, (eap_ttls_data *)priv); free(*((void **)priv + 17)); eap_peer_tls_ssl_deinit(sm, (eap_ssl_data *)priv); eap_ttls_free_key((eap_ttls_data *)priv); free(*((void **)priv + 27)); wpabuf_clear_free(*((wpabuf *...
static void eap_ttls_deinit(struct eap_sm *sm, void *priv) { struct eap_ttls_data *data = priv; if (data == NULL) return; eap_ttls_phase2_eap_deinit(sm, data); os_free(data->phase2_eap_types); eap_peer_tls_ssl_deinit(sm, &data->ssl); eap_ttls_free_key(data); os_free(data->session_id); wpabuf_clear_f...
eap_ttls_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_ttls_deinit_for_reauth(eap_sm *sm, void *priv) { if (*((_QWORD *)priv + 13) && *((_QWORD *)priv + 12) && *(_QWORD *)(*((_QWORD *)priv + 12) + 72LL)) (*(void (**)(eap_sm *, _QWORD))(*((_QWORD *)priv + 12) + 72LL))( sm, *((_QWORD *)priv + 13)); wpabuf_clear_free(*((wpabuf **)priv + 29)); ...
static void eap_ttls_deinit_for_reauth(struct eap_sm *sm, void *priv) { struct eap_ttls_data *data = priv; if (data->phase2_priv && data->phase2_method && data->phase2_method->deinit_for_reauth) data->phase2_method->deinit_for_reauth(sm, data->phase2_priv); wpabuf_clear_free(data->pending_phase2_req); ...
eap_ttls_deinit_for_reauth
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_encrypt_response(eap_sm *sm, eap_ttls_data *data, wpabuf *resp, u8 identifier, wpabuf **out_data) { if (!resp) return 0; wpa_hexdump_buf_key_3(2, "EAP-TTLS: Encrypting Phase 2 data", resp); if (eap_peer_tls_encrypt(sm, &data->ssl, eap_type_EAP_TYPE_TTLS, ...
static int eap_ttls_encrypt_response(struct eap_sm *sm, struct eap_ttls_data *data, struct wpabuf *resp, u8 identifier, struct wpabuf **out_data) { if (resp == NULL) return 0; wpa_hexdump_buf_key(MSG_...
eap_ttls_encrypt_response
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_ttls_fake_identity_request() { u8 *buf; wpa_printf(2, "EAP-TTLS: empty data in beginning of Phase 2 - use fake " "EAP-Request Identity"); buf = (u8 *)malloc(5u); if (buf) { *buf = 1; buf[1] = 0; *((_WORD *)buf + 1) = _bswap_16_2(5u); buf[4] = 1; return buf; } else ...
static u8 *eap_ttls_fake_identity_request(void) { struct eap_hdr *hdr; u8 *buf; wpa_printf(MSG_DEBUG, "EAP-TTLS: empty data in beginning of " "Phase 2 - use fake EAP-Request Identity"); buf = os_malloc(sizeof(*hdr) + 1); if (buf == NULL) { wpa_printf(MSG_WARNING, "EAP-TTLS: failed...
eap_ttls_fake_identity_request
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_ttls_free_key(eap_ttls_data *data) { if (data->key_data) { bin_clear_free(data->key_data, 0x80u); data->key_data = 0; } }
static void eap_ttls_free_key(struct eap_ttls_data *data) { if (data->key_data) { bin_clear_free(data->key_data, EAP_TLS_KEY_LEN + EAP_EMSK_LEN); data->key_data = NULL; } }
eap_ttls_free_key
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_ttls_getKey(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (!*((_QWORD *)priv + 26) || !*((_DWORD *)priv + 28)) return 0; key = (u8 *)os_memdup(*((const void **)priv + 26), 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_ttls_getKey(struct eap_sm *sm, void *priv, size_t *len) { struct eap_ttls_data *data = priv; u8 *key; if (data->key_data == NULL || !data->phase2_success) return NULL; key = os_memdup(data->key_data, EAP_TLS_KEY_LEN); if (key == NULL) return NULL; *len = EAP_TLS_KEY_LEN; return ...
eap_ttls_getKey
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_ttls_get_emsk(eap_sm *sm, void *priv, size_t *len) { u8 *key; if (!*((_QWORD *)priv + 26)) return 0; key = (u8 *)os_memdup((const void *)(*((_QWORD *)priv + 26) + 64LL), 0x40u); if (!key) return 0; *len = 64; return key; }
static u8 *eap_ttls_get_emsk(struct eap_sm *sm, void *priv, size_t *len) { struct eap_ttls_data *data = priv; u8 *key; if (data->key_data == NULL) return NULL; key = os_memdup(data->key_data + EAP_TLS_KEY_LEN, EAP_EMSK_LEN); if (key == NULL) return NULL; *len = EAP_EMSK_LEN; return key; }
eap_ttls_get_emsk
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_ttls_get_session_id(eap_sm *sm, void *priv, size_t *len) { u8 *id; if (!*((_QWORD *)priv + 27) || !*((_DWORD *)priv + 28)) return 0; id = (u8 *)os_memdup(*((const void **)priv + 27), *((_QWORD *)priv + 28)); if (!id) return 0; *len = *((_QWORD *)priv + 28); return id; }
static u8 *eap_ttls_get_session_id(struct eap_sm *sm, void *priv, size_t *len) { struct eap_ttls_data *data = priv; u8 *id; if (data->session_id == NULL || !data->phase2_success) return NULL; id = os_memdup(data->session_id, data->id_len); if (id == NULL) return NULL; *len = data->id_len; retu...
eap_ttls_get_session_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_get_status(eap_sm *sm, void *priv, char *buf, size_t buflen, int verbose) { const char *v6; int v7; int ret; int reta; int len; int lena; len = eap_peer_tls_status(sm, (eap_ssl_data *)priv, buf, buflen, verbose); ret = snprintf(&buf[len], buflen - len, ...
static int eap_ttls_get_status(struct eap_sm *sm, void *priv, char *buf, size_t buflen, int verbose) { struct eap_ttls_data *data = priv; int len, ret; len = eap_peer_tls_status(sm, &data->ssl, buf, buflen, verbose); ret = os_snprintf(buf + len, buflen - len, ...
eap_ttls_get_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
bool eap_ttls_has_reauth_data(eap_sm *sm, void *priv) { return tls_connection_established(sm->ssl_ctx, *(tls_connection **)priv) && *((_DWORD *)priv + 28); }
static bool eap_ttls_has_reauth_data(struct eap_sm *sm, void *priv) { struct eap_ttls_data *data = priv; return tls_connection_established(sm->ssl_ctx, data->ssl.conn) && data->phase2_success; }
eap_ttls_has_reauth_data
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *eap_ttls_implicit_challenge(eap_sm *sm, eap_ttls_data *data, size_t len) { return eap_peer_tls_derive_key(sm, &data->ssl, "ttls challenge", 0, 0, len); }
static u8 *eap_ttls_implicit_challenge(struct eap_sm *sm, struct eap_ttls_data *data, size_t len) { return eap_peer_tls_derive_key(sm, &data->ssl, "ttls challenge", NULL, 0, len); }
eap_ttls_implicit_challenge
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_implicit_identity_request(eap_sm *sm, eap_ttls_data *data, eap_method_ret *ret, u8 identifier, wpabuf **out_data) { int retval; wpabuf *resp; eap_hdr *hdr; eap_peer_config *config; unsigned long v13; v13 = __readfsqw...
static int eap_ttls_implicit_identity_request(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, u8 identifier, ...
eap_ttls_implicit_identity_request
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *eap_ttls_init(eap_sm *sm) { int selected_non_eap; const char *last; char *selected; eap_peer_config *config; eap_ttls_data *data; const char *token; unsigned long v8; v8 = __readfsqword(0x28u); config = eap_get_config(sm); data = (eap_ttls_data *)os_zalloc(0x100u); if (!data) return 0; ...
static void *eap_ttls_init(struct eap_sm *sm) { struct eap_ttls_data *data; struct eap_peer_config *config = eap_get_config(sm); int selected_non_eap; char *selected; data = os_zalloc(sizeof(*data)); if (data == NULL) return NULL; data->ttls_version = EAP_TTLS_VERSION; selected = "EAP"; selected_...
eap_ttls_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *eap_ttls_init_for_reauth(eap_sm *sm, void *priv) { eap_ttls_free_key((eap_ttls_data *)priv); free(*((void **)priv + 27)); *((_QWORD *)priv + 27) = 0; if (eap_peer_tls_reauth_init(sm, (eap_ssl_data *)priv)) { free(priv); return 0; } else { if (*((_QWORD *)priv + 13) && *((_QWORD *)priv + 12))...
static void *eap_ttls_init_for_reauth(struct eap_sm *sm, void *priv) { struct eap_ttls_data *data = priv; eap_ttls_free_key(data); os_free(data->session_id); data->session_id = NULL; if (eap_peer_tls_reauth_init(sm, &data->ssl)) { os_free(data); return NULL; } if (data->phase2_priv && data->phase2...
eap_ttls_init_for_reauth
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
bool eap_ttls_isKeyAvailable(eap_sm *sm, void *priv) { return *((_QWORD *)priv + 26) && *((_DWORD *)priv + 28); }
static bool eap_ttls_isKeyAvailable(struct eap_sm *sm, void *priv) { struct eap_ttls_data *data = priv; return data->key_data != NULL && data->phase2_success; }
eap_ttls_isKeyAvailable
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_parse_attr_eap(const u8 *dpos, size_t dlen, ttls_parse_avp *parse) { u8 *neweap; wpa_printf(2, "EAP-TTLS: AVP - EAP Message"); if (parse->eapdata) { neweap = (u8 *)realloc(parse->eapdata, dlen + parse->eap_len); if (!neweap) goto LABEL_3; memcpy(&neweap[...
static int eap_ttls_parse_attr_eap(const u8 *dpos, size_t dlen, struct ttls_parse_avp *parse) { wpa_printf(MSG_DEBUG, "EAP-TTLS: AVP - EAP Message"); if (parse->eapdata == NULL) { parse->eapdata = os_memdup(dpos, dlen); if (parse->eapdata == NULL) { wpa_printf(MSG_WA...
eap_ttls_parse_attr_eap
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_parse_avp(u8 *pos, size_t left, ttls_parse_avp *parse) { __uint32_t v3; signed char avp_flags; u32 vendor_id; __uint32_t avp_code; u32 avp_length; u8 *dpos; unsigned long dlen; vendor_id = 0; avp_code = _bswap_32_0(*(_DWORD *)pos); v3 = _bswap_32_0(*((_DWORD *)pos + 1)); avp_flags = ...
static int eap_ttls_parse_avp(u8 *pos, size_t left, struct ttls_parse_avp *parse) { struct ttls_avp *avp; u32 avp_code, avp_length, vendor_id = 0; u8 avp_flags, *dpos; size_t dlen; avp = (struct ttls_avp *)pos; avp_code = be_to_host32(avp->avp_code); avp_length = be_to_host3...
eap_ttls_parse_avp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_parse_avps(wpabuf *in_decrypted, ttls_parse_avp *parse) { int avp_length; u8 *pos; unsigned long left; pos = (u8 *)wpabuf_mhead_3(in_decrypted); left = wpabuf_len_24(in_decrypted); wpa_hexdump(2, "EAP-TTLS: Decrypted Phase 2 AVPs", pos, left); if (left > 7) { memset(parse, 0, sizeof(ttls...
static int eap_ttls_parse_avps(struct wpabuf *in_decrypted, struct ttls_parse_avp *parse) { u8 *pos; size_t left, pad; int avp_length; pos = wpabuf_mhead(in_decrypted); left = wpabuf_len(in_decrypted); wpa_hexdump(MSG_DEBUG, "EAP-TTLS: Decrypted Phase 2 AVPs", pos, left); i...
eap_ttls_parse_avps
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void eap_ttls_phase2_eap_deinit(eap_sm *sm, eap_ttls_data *data) { if (data->phase2_priv) { if (data->phase2_method) { ((void (*)(eap_sm *, void *))data->phase2_method->initPickUp)( sm, data->phase2_priv); data->phase2_method = 0; data->phase2_priv = 0; } } }
static void eap_ttls_phase2_eap_deinit(struct eap_sm *sm, struct eap_ttls_data *data) { if (data->phase2_priv && data->phase2_method) { data->phase2_method->deinit(sm, data->phase2_priv); data->phase2_method = NULL; data->phase2_priv = NULL; } }
eap_ttls_phase2_eap_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int eap_ttls_phase2_eap_process(eap_sm *sm, eap_ttls_data *data, eap_method_ret *ret, eap_hdr *hdr, size_t len, wpabuf **resp) { eap_method_ret iret; wpabuf msg; unsigned long v13; v13 = __readfsqword(0x28u); memset(&iret, 0, sizeof(iret)); wp...
static int eap_ttls_phase2_eap_process(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, struct wpabuf **r...
eap_ttls_phase2_eap_process
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_sm *sm, eap_ttls_data *data, eap_method_ret *ret, eap_hdr *hdr, wpabuf **resp) { int res; phase2_types phase2_type; size_t len[2]; len[1] = __readfsqword(0x28u); phase2_type = data->phase2_type; if (data->tnc_started) { wpa_printf(2, "EAP-TTLS...
static int eap_ttls_phase2_request(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) { int res = 0; size_t len; enum phase2_types phase2_type...
eap_ttls_phase2_request
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0