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
u8 *owe_assoc_req_process(hostapd_data *hapd, sta_info *sta, const u8 *owe_dh, u8 owe_dh_len, u8 *owe_buf, size_t owe_buf_len, u16 *status) { u8 *result; u8 *v8; _BYTE *v9; size_t v10; const void *v11; u8 *owe_bufb; u8 *owe_bufc; wpabuf *pub; if (wp...
u8 *owe_assoc_req_process(struct hostapd_data *hapd, struct sta_info *sta, const u8 *owe_dh, u8 owe_dh_len, u8 *owe_buf, size_t owe_buf_len, u16 *status) { #ifdef CONFIG_TESTING_OPTIONS if (hapd->conf->own_ie_override) { wpa_printf(MSG_DEBUG, "OWE: Using IE over...
owe_assoc_req_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *owe_build_assoc_req(wpa_sm *sm, u16 group) { wpabuf *pubkey; size_t v4; u8 v5; wpabuf *pub; size_t prime_len; wpabuf *ie; pub = 0; switch (group) { case 0x13u: prime_len = 32; break; case 0x14u: prime_len = 48; break; case 0x15u: prime_len = 66; break; default: ...
struct wpabuf *owe_build_assoc_req(struct wpa_sm *sm, u16 group) { struct wpabuf *ie = NULL, *pub = NULL; size_t prime_len; if (group == 19) prime_len = 32; else if (group == 20) prime_len = 48; else if (group == 21) prime_len = 66; else return NULL; crypto_ecdh_deinit(sm->owe_ecdh); s...
owe_build_assoc_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u16 owe_process_assoc_req(hostapd_data *hapd, sta_info *sta, const u8 *owe_dh, u8 owe_dh_len) { wpabuf *v5; size_t v6; size_t v7; const u8 *v8; size_t v9; const u8 *v10; size_t v11; const u8 *v12; size_t v13; const u8 *v14; u8 *owe_pmk; size_t v16; u8 *v17; size_t v...
static u16 owe_process_assoc_req(struct hostapd_data *hapd, struct sta_info *sta, const u8 *owe_dh, u8 owe_dh_len) { struct wpabuf *secret, *pub, *hkey; int res; u8 prk[SHA512_MAC_LEN], pmkid[SHA512_MAC_LEN]; const char *info = "OWE Key Generatio...
owe_process_assoc_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int owe_process_assoc_resp(wpa_sm *sm, const u8 *bssid, const u8 *resp_ies, size_t resp_ies_len) { long v4; long v5; wpabuf *v7; size_t v8; size_t v9; const u8 *v10; size_t v11; const u8 *v12; size_t v13; const u8 *v14; size_t v15; const u8 *v16; size_t v17; size_t...
int owe_process_assoc_resp(struct wpa_sm *sm, const u8 *bssid, const u8 *resp_ies, size_t resp_ies_len) { struct ieee802_11_elems elems; u16 group; struct wpabuf *secret, *pub, *hkey; int res; u8 prk[SHA512_MAC_LEN], pmkid[SHA512_MAC_LEN]; const char *info = "OWE Key Generation"; ...
owe_process_assoc_resp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u16 owe_process_rsn_ie(hostapd_data *hapd, sta_info *sta, const u8 *rsn_ie, size_t rsn_ie_len, const u8 *owe_dh, size_t owe_dh_len) { u8 *v6; _BYTE *v7; size_t v8; const void *v9; u8 *v10; u16 status; wpa_validate_result res; u8 *owe_buf; u8 *owe_bufa; size_t ie_len; wpabuf ...
u16 owe_process_rsn_ie(struct hostapd_data *hapd, struct sta_info *sta, const u8 *rsn_ie, size_t rsn_ie_len, const u8 *owe_dh, size_t owe_dh_len) { u16 status; u8 *owe_buf, ie[256 * 2]; size_t ie_len = 0; enum wpa_validate_result res; if (!rsn_ie || rsn_ie_len < ...
owe_process_rsn_ie
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void owe_trans_ssid(wpa_supplicant_0 *wpa_s, wpa_bss *bss, const u8 **ret_ssid, size_t *ret_ssid_len) { const char *v4; unsigned int flags; const char *v6; const char *v7; unsigned int v8; u8 ssid_len; u8 ssid_lena; wpa_ssid *ssid; const u8 *owe; const u8 *owea; const u8 *pos; ...
static void owe_trans_ssid(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, const u8 **ret_ssid, size_t *ret_ssid_len) { #ifdef CONFIG_OWE const u8 *owe, *pos, *end, *bssid; u8 ssid_len; struct wpa_bss *open_bss; owe = wpa_bss_get_vendor_ie(bss, OWE_IE_VENDOR_TYPE); if (!owe || !...
owe_trans_ssid
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int owe_trans_ssid_match(wpa_supplicant *wpa_s, const u8 *bssid, const u8 *entry_ssid, size_t entry_ssid_len) { u8 ssid_len; const wpa_bss *bss; const u8 *owe; bss = wpa_bss_get_bssid_latest(wpa_s, bssid); if (!bss) return 0; owe = wpa_bss_get_vendor_ie(bss, 0x506F9A1Cu); if ...
static int owe_trans_ssid_match(struct wpa_supplicant *wpa_s, const u8 *bssid, const u8 *entry_ssid, size_t entry_ssid_len) { const u8 *owe, *pos, *end; u8 ssid_len; struct wpa_bss *bss; bss = wpa_bss_get_bssid_latest(wpa_s, bssid); if (!bss) return 0; owe = wpa_bss_get...
owe_trans_ssid_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int param_in_range(const char *name, long value, long min_val, long max_val) { if (value >= min_val && (max_val < 0 || value <= max_val)) return 1; wpa_printf(2, "WMM AC: param %s (%ld) is out of range (%ld-%ld)", name, value, min_val, max_val); return 0; }
static int param_in_range(const char *name, long value, long min_val, long max_val) { if (value < min_val || (max_val >= 0 && value > max_val)) { wpa_printf(MSG_DEBUG, "WMM AC: param %s (%ld) is out of range (%ld-%ld)", name, value, min_val, max_val); return 0; } ...
param_in_range
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int pcsc_reader_init(wpa_supplicant *wpa_s) { return 0; }
static int pcsc_reader_init(struct wpa_supplicant *wpa_s) { #ifdef PCSC_FUNCS size_t len; if (!wpa_s->conf->pcsc_reader) return 0; wpa_s->scard = scard_init(wpa_s->conf->pcsc_reader); if (!wpa_s->scard) return 1; if (wpa_s->conf->pcsc_pin && scard_set_pin(wpa_s->scard, wpa_s->conf->pcsc_pin) ...
pcsc_reader_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void peer_add_timer(void *eloop_ctx, void *user_data) { memset((void *)(**(_QWORD **)(*((_QWORD *)eloop_ctx + 403) + 72LL) + 2872LL), 0, 6u); }
static void peer_add_timer(void *eloop_ctx, void *user_data) { struct wpa_supplicant *wpa_s = eloop_ctx; struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; os_memset(hapd->mesh_required_peer, 0, ETH_ALEN); }
peer_add_timer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int phy_info_band(phy_info_arg *phy_info, nlattr *nl_band) { unsigned int v3; long v4; int rem_band; int ret; hostapd_hw_modes *mode; nlattr *nl_iftype; nlattr *tb_band[12]; unsigned long v10; v10 = __readfsqword(0x28u); if (phy_info->last_mode == nl_band->nla_type) { mode = &phy_info->modes[*p...
static int phy_info_band(struct phy_info_arg *phy_info, struct nlattr *nl_band) { struct nlattr *tb_band[NL80211_BAND_ATTR_MAX + 1]; struct hostapd_hw_modes *mode; int ret; if (phy_info->last_mode != nl_band->nla_type) { mode = os_realloc_array(phy_info->modes, *phy_info->num_modes...
phy_info_band
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int phy_info_freqs(phy_info_arg *phy_info, hostapd_hw_modes *mode, nlattr *tb) { unsigned int v4; long v5; unsigned int v6; long v7; int rem_freq; int new_channels; int idx; nlattr *nl_freq; hostapd_channel_data *channel; nlattr *tb_freq[26]; unsigned long v15; v15 = __readfsqword(0x28u); new...
static int phy_info_freqs(struct phy_info_arg *phy_info, struct hostapd_hw_modes *mode, struct nlattr *tb) { static struct nla_policy freq_policy[NL80211_FREQUENCY_ATTR_MAX + 1] = { [NL80211_FREQUENCY_ATTR_FREQ] = {.type = NLA_U32}, [NL80211_FREQUENCY_ATTR_DISABLED] = {.type = NL...
phy_info_freqs
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int phy_info_rates(hostapd_hw_modes *mode, nlattr *tb) { unsigned int v3; long v4; unsigned int v5; long v6; int u32; int rem_rate; int idx; nlattr *nl_rate; nlattr *tb_rate[3]; unsigned long v12; v12 = __readfsqword(0x28u); if (!tb) return 0; nl_rate = (nlattr *)nla_data(tb); for (rem_...
static int phy_info_rates(struct hostapd_hw_modes *mode, struct nlattr *tb) { static struct nla_policy rate_policy[NL80211_BITRATE_ATTR_MAX + 1] = { [NL80211_BITRATE_ATTR_RATE] = {.type = NLA_U32}, [NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE] = {.type = NLA_FLAG}, }; struct nlattr *tb_rate[NL80211_BITRAT...
phy_info_rates
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpa_bss *pick_best_roaming_partner(wpa_supplicant *wpa_s, wpa_bss *selected, wpa_cred *cred) { wpa_bss *selecteda; u8 best_prio; u8 prio; long bh1; int conn1; int bh2; int load2; int conn2; wpa_bss *bss; wpa_cred *cred2; selecteda = selected; best_prio = roami...
static struct wpa_bss *pick_best_roaming_partner(struct wpa_supplicant *wpa_s, struct wpa_bss *selected, struct wpa_cred *cred) { struct wpa_bss *bss; u8 best_prio, prio; struct wpa_cred *cred2; best_prio = roamin...
pick_best_roaming_partner
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int plink_free_count(hostapd_data *hapd) { if (hapd->max_plinks <= hapd->num_plinks) return 0; else return hapd->max_plinks - hapd->num_plinks; }
static int plink_free_count(struct hostapd_data *hapd) { if (hapd->max_plinks > hapd->num_plinks) return hapd->max_plinks - hapd->num_plinks; return 0; }
plink_free_count
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void plink_timer(void *eloop_ctx, void *user_data) { unsigned int v2; u16 reason; mesh_conf *conf; hostapd_data *hapd; reason = 0; conf = *(mesh_conf **)(*((_QWORD *)eloop_ctx + 403) + 56LL); hapd = **(hostapd_data ***)(*((_QWORD *)eloop_ctx + 403) + 72LL); v2 = *((_DWORD *)user_data + 25); if (v2 ==...
static void plink_timer(void *eloop_ctx, void *user_data) { struct wpa_supplicant *wpa_s = eloop_ctx; struct sta_info *sta = user_data; u16 reason = 0; struct mesh_conf *conf = wpa_s->ifmsh->mconf; struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; switch (sta->plink_state) { case PLINK_OPN_RCVD: case P...
plink_timer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry_0 *pmksa_cache_add(rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *kck, size_t kck_len, const u8 *aa, const u8 *spa, ...
struct rsn_pmksa_cache_entry *pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *kck, size_t kck_len, const u8 *aa, ...
pmksa_cache_add
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry_0 *pmksa_cache_add_entry(rsn_pmksa_cache *pmksa, rsn_pmksa_cache_entry_0 *entry) { rsn_pmksa_cache_entry *next; u8 *fils_cache_id; rsn_pmksa_cache_entry_0 *pos; rsn_pmksa_cache_entry_0 *posa; rsn_pmksa_cache_entry_0 *posb; rsn_pmksa_cache_...
struct rsn_pmksa_cache_entry * pmksa_cache_add_entry(struct rsn_pmksa_cache *pmksa, struct rsn_pmksa_cache_entry *entry) { struct rsn_pmksa_cache_entry *pos, *prev; pos = pmksa->pmksa; prev = NULL; while (pos) { if (os_memcmp(entry->aa, pos->aa, ETH_ALEN) == 0) { if (pos->pmk_le...
pmksa_cache_add_entry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry * pmksa_cache_add_okc(rsn_pmksa_cache *pmksa, const rsn_pmksa_cache_entry *old_entry, const u8 *aa, const u8 *pmkid) { long v5; vlan_description *vlan_desc; vlan_description *v7; long v8; long v9; long v10; long v11; long v12; long v13; l...
struct rsn_pmksa_cache_entry * pmksa_cache_add_okc(struct rsn_pmksa_cache *pmksa, const struct rsn_pmksa_cache_entry *old_entry, const u8 *aa, const u8 *pmkid) { struct rsn_pmksa_cache_entry *entry; entry = os_zalloc(sizeof(*entry)); if (entry == NULL) return NULL; o...
pmksa_cache_add_okc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int pmksa_cache_auth_add_entry(rsn_pmksa_cache *pmksa, rsn_pmksa_cache_entry *entry) { rsn_pmksa_cache_entry *pos; if (!entry) return -1; pos = pmksa_cache_auth_get(pmksa, entry->spa, 0); if (pos) pmksa_cache_free_entry_0(pmksa, pos); if (pmksa->pmksa_count >= 1024) { ...
int pmksa_cache_auth_add_entry(struct rsn_pmksa_cache *pmksa, struct rsn_pmksa_cache_entry *entry) { struct rsn_pmksa_cache_entry *pos; if (entry == NULL) return -1; pos = pmksa_cache_auth_get(pmksa, entry->spa, NULL); if (pos) pmksa_cache_free_entry(pmksa, pos); if (...
pmksa_cache_auth_add_entry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry * pmksa_cache_auth_create_entry(const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *kck, size_t kck_len, const u8 *aa, const u8 *spa, int session_timeout, eapol_state_machine *eapol, int akmp) { long ...
struct rsn_pmksa_cache_entry * pmksa_cache_auth_create_entry(const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *kck, size_t kck_len, const u8 *aa, const u8 *spa, int session_timeout, struct eapol_state_machine *eapol, int a...
pmksa_cache_auth_create_entry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_auth_deinit(rsn_pmksa_cache *pmksa) { int i; rsn_pmksa_cache_entry *entry; rsn_pmksa_cache_entry *prev; if (pmksa) { entry = pmksa->pmksa; while (entry) { prev = entry; entry = entry->next; pmksa_cache_free_entry_0(prev); } eloop_cancel_timeout((eloop_timeout_...
void pmksa_cache_auth_deinit(struct rsn_pmksa_cache *pmksa) { struct rsn_pmksa_cache_entry *entry, *prev; int i; if (pmksa == NULL) return; entry = pmksa->pmksa; while (entry) { prev = entry; entry = entry->next; _pmksa_cache_free_entry(prev); } eloop_cancel_timeout(pmksa_cache_expire, p...
pmksa_cache_auth_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_auth_flush(rsn_pmksa_cache *pmksa) { while (pmksa->pmksa) { wpa_printf( 2, "RSN: Flush PMKSA cache entry for %02x:%02x:%02x:%02x:%02x:%02x", pmksa->pmksa->spa[0], pmksa->pmksa->spa[1], pmksa->pmksa->spa[2], pmksa->pmksa->spa[3], pmksa->pmksa->spa[4], pmksa->pmksa->spa[5]);...
void pmksa_cache_auth_flush(struct rsn_pmksa_cache *pmksa) { while (pmksa->pmksa) { wpa_printf(MSG_DEBUG, "RSN: Flush PMKSA cache entry for " MACSTR, MAC2STR(pmksa->pmksa->spa)); pmksa_cache_free_entry(pmksa, pmksa->pmksa); } }
pmksa_cache_auth_flush
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int pmksa_cache_auth_list(rsn_pmksa_cache *pmksa, char *buf, size_t len) { int ret; int reta; int retb; char *pos; char *posa; rsn_pmksa_cache_entry *entry; os_reltime now; unsigned long v12; v12 = __readfsqword(0x28u); os_get_reltime(&now); ret = snprintf( buf, len, "Index / SPA / PM...
int pmksa_cache_auth_list(struct rsn_pmksa_cache *pmksa, char *buf, size_t len) { int i, ret; char *pos = buf; struct rsn_pmksa_cache_entry *entry; struct os_reltime now; os_get_reltime(&now); ret = os_snprintf( pos, buf + len - pos, "Index / SPA / PMKID / expiration (...
pmksa_cache_auth_list
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int pmksa_cache_auth_radius_das_disconnect(rsn_pmksa_cache *pmksa, radius_das_attrs *attr) { int found; rsn_pmksa_cache_entry *entry; rsn_pmksa_cache_entry *prev; found = 0; if (attr->acct_session_id) return -1; entry = pmksa->pmksa; while (entry) { if (...
int pmksa_cache_auth_radius_das_disconnect(struct rsn_pmksa_cache *pmksa, struct radius_das_attrs *attr) { int found = 0; struct rsn_pmksa_cache_entry *entry, *prev; if (attr->acct_session_id) return -1; entry = pmksa->pmksa; while (entry) { if (das_attr_ma...
pmksa_cache_auth_radius_das_disconnect
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_clear_current(wpa_sm *sm) { if (sm) { if (sm->cur_pmksa) wpa_printf(2, "RSN: Clear current PMKSA entry selection"); sm->cur_pmksa = 0; } }
void pmksa_cache_clear_current(struct wpa_sm *sm) { if (sm == NULL) return; if (sm->cur_pmksa) wpa_printf(MSG_DEBUG, "RSN: Clear current PMKSA entry selection"); sm->cur_pmksa = NULL; }
pmksa_cache_clear_current
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry_0 * pmksa_cache_clone_entry(rsn_pmksa_cache *pmksa, const rsn_pmksa_cache_entry_0 *old_entry, const u8 *aa) { u8 *fils_cache_id; u8 *pmkid; os_time_t old_expiration; os_time_t old_reauth_time; rsn_pmksa_cache_entry_0 *new_entry; old_expi...
static struct rsn_pmksa_cache_entry * pmksa_cache_clone_entry(struct rsn_pmksa_cache *pmksa, const struct rsn_pmksa_cache_entry *old_entry, const u8 *aa) { struct rsn_pmksa_cache_entry *new_entry; os_time_t old_expiration = old_entry->expiration; os_time_t old_reaut...
pmksa_cache_clone_entry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_deinit(rsn_pmksa_cache *pmksa) { rsn_pmksa_cache_entry_0 *entry; rsn_pmksa_cache_entry_0 *prev; if (pmksa) { entry = (rsn_pmksa_cache_entry_0 *)pmksa->pmkid[0]; pmksa->pmkid[0] = 0; while (entry) { prev = entry; entry = (rsn_pmksa_cache_entry_0 *)entry->next; free(p...
void pmksa_cache_deinit(struct rsn_pmksa_cache *pmksa) { struct rsn_pmksa_cache_entry *entry, *prev; if (pmksa == NULL) return; entry = pmksa->pmksa; pmksa->pmksa = NULL; while (entry) { prev = entry; entry = entry->next; os_free(prev); } pmksa_cache_set_expiration(pmksa); os_free(pmks...
pmksa_cache_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_flush(rsn_pmksa_cache *pmksa, void *network_ctx, const u8 *pmk, size_t pmk_len, bool external_only) { int removed; rsn_pmksa_cache_entry_0 *entry; rsn_pmksa_cache_entry_0 *prev; rsn_pmksa_cache_entry_0 *tmp; prev = 0; removed = 0; entry = (rsn_pmksa_cache_entry_0 *...
void pmksa_cache_flush(struct rsn_pmksa_cache *pmksa, void *network_ctx, const u8 *pmk, size_t pmk_len, bool external_only) { struct rsn_pmksa_cache_entry *entry, *prev = NULL, *tmp; int removed = 0; entry = pmksa->pmksa; while (entry) { if ((entry->network_ctx == network_ctx || netw...
pmksa_cache_flush
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_from_eapol_data(rsn_pmksa_cache_entry *entry, eapol_state_machine *eapol) { vlan_description *v2; long v3; long v4; long v5; long v6; long v7; long v8; long v9; long v10; vlan_description *vlan_desc; if (eapol) { if (eapol->identity) { e...
static void pmksa_cache_from_eapol_data(struct rsn_pmksa_cache_entry *entry, struct eapol_state_machine *eapol) { struct vlan_description *vlan_desc; if (eapol == NULL) return; if (eapol->identity) { entry->identity = os_malloc(eapol->identity_len); if (entry-...
pmksa_cache_from_eapol_data
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry_0 *pmksa_cache_get(rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *pmkid, const void *network_ctx, int akmp) { rsn_pmksa_cache_entry_0 *entry; for (entry = (rsn_pmksa_cache_entry_0 *)pmksa->pmkid[0]; entry; ...
struct rsn_pmksa_cache_entry *pmksa_cache_get(struct rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *pmkid, const void *network_ctx, int akmp) { struct rsn_pmksa_cache_entry *entry...
pmksa_cache_get
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry_0 *pmksa_cache_get_current(wpa_sm *sm) { if (sm) return (rsn_pmksa_cache_entry_0 *)sm->cur_pmksa; else return 0; }
struct rsn_pmksa_cache_entry *pmksa_cache_get_current(struct wpa_sm *sm) { if (sm == NULL) return NULL; return sm->cur_pmksa; }
pmksa_cache_get_current
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry_0 *pmksa_cache_get_fils_cache_id(rsn_pmksa_cache *pmksa, const void *network_ctx, const u8 *cache_id) { rsn_pmksa_cache_entry_0 *entry; for (entry = (rsn_pmksa_cache_entry_0 *)pmksa->...
static struct rsn_pmksa_cache_entry * pmksa_cache_get_fils_cache_id(struct rsn_pmksa_cache *pmksa, const void *network_ctx, const u8 *cache_id) { struct rsn_pmksa_cache_entry *entry; for (entry = pmksa->pmksa; entry; entry = entry->next) { if (network_ctx == entry->network_ctx && ...
pmksa_cache_get_fils_cache_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry *pmksa_cache_get_okc(rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *spa, const u8 *pmkid) { rsn_pmksa_cache_entry *entry; u8 new_pmkid[24]; unsigned long v9; v9 = __readfsqword(0x28u); for (entry = pmksa->pmksa; entry; entry = entry->next) { ...
struct rsn_pmksa_cache_entry *pmksa_cache_get_okc(struct rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *spa, const u8 *pmkid) { struct rsn_pmksa_cache_entry *entry; u8 new_pmkid[PMKID_LEN]; for (entry = pmksa->pm...
pmksa_cache_get_okc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry_0 *pmksa_cache_get_opportunistic(rsn_pmksa_cache *pmksa, void *network_ctx, const u8 *aa, int akmp) { rsn_pmksa_cache_entry_0 *entry; rsn_pmksa_cache_entry_0 *entrya; os_reltime now;...
struct rsn_pmksa_cache_entry * pmksa_cache_get_opportunistic(struct rsn_pmksa_cache *pmksa, void *network_ctx, const u8 *aa, int akmp) { struct rsn_pmksa_cache_entry *entry = pmksa->pmksa; wpa_printf(MSG_DEBUG, "RSN: Consider " MACSTR " for OKC", MAC2STR(aa)); if (network_ctx == NUL...
pmksa_cache_get_opportunistic
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache_entry_0 *pmksa_cache_head(rsn_pmksa_cache *pmksa) { return (rsn_pmksa_cache_entry_0 *)pmksa->pmkid[0]; }
struct rsn_pmksa_cache_entry *pmksa_cache_head(struct rsn_pmksa_cache *pmksa) { return pmksa->pmksa; }
pmksa_cache_head
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
rsn_pmksa_cache *pmksa_cache_init(void (*free_cb)(rsn_pmksa_cache_entry *, void *, pmksa_free_reason), bool (*is_current_cb)(rsn_pmksa_cache_entry *, void *), ...
struct rsn_pmksa_cache *pmksa_cache_init( void (*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx, enum pmksa_free_reason reason), bool (*is_current_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx), void *ctx, struct wpa_sm *sm) { struct rsn_pmksa_cache *pmksa; pmksa = os_...
pmksa_cache_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_link_entry(rsn_pmksa_cache *pmksa, rsn_pmksa_cache_entry *entry) { int hash; rsn_pmksa_cache_entry *pos; rsn_pmksa_cache_entry *prev; pos = pmksa->pmksa; prev = 0; while (pos && pos->expiration <= entry->expiration) { prev = pos; pos = pos->next; } i...
static void pmksa_cache_link_entry(struct rsn_pmksa_cache *pmksa, struct rsn_pmksa_cache_entry *entry) { struct rsn_pmksa_cache_entry *pos, *prev; int hash; pos = pmksa->pmksa; prev = NULL; while (pos) { if (pos->expiration > entry->expiration) break; prev = p...
pmksa_cache_link_entry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int pmksa_cache_list(rsn_pmksa_cache *pmksa, char *buf, size_t len) { const char *v3; int i; int cache_id_used; int ret; int reta; int retb; int retc; int retd; char *pos; char *posa; char *posb; rsn_pmksa_cache_entry_0 *entry; rsn_pmksa_cache_entry_0 *entrya; os_reltime now; unsigned long...
int pmksa_cache_list(struct rsn_pmksa_cache *pmksa, char *buf, size_t len) { int i, ret; char *pos = buf; struct rsn_pmksa_cache_entry *entry; struct os_reltime now; int cache_id_used = 0; for (entry = pmksa->pmksa; entry; entry = entry->next) { if (entry->fils_cache_id_set) { cache_id_used = 1; ...
pmksa_cache_list
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_reauth(void *eloop_ctx, void *timeout_ctx) { *(_QWORD *)(*((_QWORD *)eloop_ctx + 2) + 1056LL) = 0; eapol_sm_request_reauth(*(eapol_sm **)(*((_QWORD *)eloop_ctx + 2) + 1040LL)); }
static void pmksa_cache_reauth(void *eloop_ctx, void *timeout_ctx) { struct rsn_pmksa_cache *pmksa = eloop_ctx; pmksa->sm->cur_pmksa = NULL; eapol_sm_request_reauth(pmksa->sm->eapol); }
pmksa_cache_reauth
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_reconfig(rsn_pmksa_cache *pmksa) { const u8 *fils_cache_id; u8 reauth_threshold; u32 life_time; rsn_pmksa_cache_entry_0 *entry; os_reltime now; unsigned long v6; v6 = __readfsqword(0x28u); if (pmksa && pmksa->pmkid[0]) { os_get_reltime(&now); for (entry = (rsn_pmksa_cache_entry...
void pmksa_cache_reconfig(struct rsn_pmksa_cache *pmksa) { struct rsn_pmksa_cache_entry *entry; struct os_reltime now; if (!pmksa || !pmksa->pmksa) return; os_get_reltime(&now); for (entry = pmksa->pmksa; entry; entry = entry->next) { u32 life_time; u8 reauth_threshold; if (entry->expiratio...
pmksa_cache_reconfig
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int pmksa_cache_set_current(wpa_sm *sm, const u8 *pmkid, const u8 *bssid, void *network_ctx, int try_opportunistic, const u8 *fils_cache_id, int akmp) { rsn_pmksa_cache *pmksa; os_reltime now; unsigned long v14; v14 = __readfsqword(0x28u); pmksa = sm->p...
int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, const u8 *bssid, void *network_ctx, int try_opportunistic, const u8 *fils_cache_id, int akmp) { struct rsn_pmksa_cache *pmksa = sm->pmksa; wpa_printf(MSG_DEBUG, "RSN: PMKSA cache sear...
pmksa_cache_set_current
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_cache_to_eapol_data(hostapd_data *hapd, rsn_pmksa_cache_entry *entry, eapol_state_machine *eapol) { if (entry && eapol) { if (entry->identity) { free(eapol->identity); eapol->identity = (u8 *)malloc(entry->identity_len); if (eapol->identity) { ea...
void pmksa_cache_to_eapol_data(struct hostapd_data *hapd, struct rsn_pmksa_cache_entry *entry, struct eapol_state_machine *eapol) { if (entry == NULL || eapol == NULL) return; if (entry->identity) { os_free(eapol->identity); eapol->identity ...
pmksa_cache_to_eapol_data
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_candidate_add(wpa_sm *sm, const u8 *bssid, int prio, int preauth) { rsn_pmksa_candidate *cand; wpa_sm *pos; rsn_pmksa_candidate *posa; if (sm->network_ctx && sm->proactive_key_caching) pmksa_cache_get_opportunistic(sm->pmksa, sm->network_ctx, bssid, 0); if (!preauth) { wpa_printf(2, "RSN: ...
void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, int prio, int preauth) { struct rsn_pmksa_candidate *cand, *pos; if (sm->network_ctx && sm->proactive_key_caching) pmksa_cache_get_opportunistic(sm->pmksa, sm->network_ctx, bssid, 0); if (!preauth) { wpa_printf(MSG_DEB...
pmksa_candidate_add
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void pmksa_candidate_free(wpa_sm *sm) { rsn_pmksa_candidate *entry; rsn_pmksa_candidate *n; if (sm) { entry = (rsn_pmksa_candidate *)sm->pmksa_candidates.next; n = (rsn_pmksa_candidate *)entry->list.next; while (entry != (rsn_pmksa_candidate *)&sm->pmksa_candidates) { dl_list_del_5(&entry->list...
void pmksa_candidate_free(struct wpa_sm *sm) { struct rsn_pmksa_candidate *entry, *n; if (sm == NULL) return; dl_list_for_each_safe(entry, n, &sm->pmksa_candidates, struct rsn_pmksa_candidate, list) { dl_list_del(&entry->list); os_free(entry); } }
pmksa_candidate_free
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *prepare_auth_resp_fils(hostapd_data *hapd, sta_info *sta, u16 *resp, rsn_pmksa_cache_entry *pmksa, wpabuf *erp_resp, const u8 *msk, size_t msk_len, int *is_pub) { size_t v8; char v9; size_t v10; const u8 *v11; int v12; int v13; wpabuf *...
static struct wpabuf * prepare_auth_resp_fils(struct hostapd_data *hapd, struct sta_info *sta, u16 *resp, struct rsn_pmksa_cache_entry *pmksa, struct wpabuf *erp_resp, const u8 *msk, size_t msk_len, int *is_pub) { u8 fils_nonce[FILS_NONCE_LEN]; si...
prepare_auth_resp_fils
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int print_band(unsigned int num, fst_iface *iface, const u8 *addr, char *buf, size_t buflen) { mb_band_id v5; const char *v6; int v7; const char *name_3; int v9; int v10; size_t v11; const u8 *v12; int v13; int v14; const char *group_id; int v16; u8 priority_0; int v18; u32 ...
static int print_band(unsigned num, struct fst_iface *iface, const u8 *addr, char *buf, size_t buflen) { const struct wpabuf *wpabuf; enum hostapd_hw_mode hw_mode; u8 channel; int ret = 0; fst_iface_get_channel_info(iface, &hw_mode, &channel); ret += os_snprintf(buf + ret, buflen - r...
print_band
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int print_bss_info(wpa_supplicant *wpa_s, wpa_bss *bss, unsigned long mask, char *buf, size_t buflen) { unsigned char *v6; const char *v7; const char *v8; int v9; int v10; const char *v11; char *v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; char *v...
static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, unsigned long mask, char *buf, size_t buflen) { size_t i; int ret; char *pos, *end; const u8 *ie, *ie2, *osen_ie, *mesh, *owe, *rsnxe; pos = buf; end = buf + buflen; if (mask & WPA_BSS_MASK_ID) { r...
print_bss_info
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int print_fils_indication(wpa_bss *bss, char *pos, char *end) { char *posa; char *posb; u16 info; u16 realms; int ret; int reta; int retb; int retc; int retd; int rete; const u8 *ie; const u8 *iea; unsigned char *ieb; const u8 *ie_end; ie = wpa_bss_get_ie(bss, 0xF0u); if (!ie) retur...
static int print_fils_indication(struct wpa_bss *bss, char *pos, char *end) { char *start = pos; const u8 *ie, *ie_end; u16 info, realms; int ret; ie = wpa_bss_get_ie(bss, WLAN_EID_FILS_INDICATION); if (!ie) return 0; ie_end = ie + 2 + ie[1]; ie += 2; if (ie_end - ie < 2) return -1; info =...
print_fils_indication
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void process_timeout(void *eloop_ctx, void *sock_ctx) { dbus_timeout_handle(sock_ctx); }
static void process_timeout(void *eloop_ctx, void *sock_ctx) { DBusTimeout *timeout = sock_ctx; dbus_timeout_handle(timeout); }
process_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void process_wakeup_main(int sig, void *signal_ctx) { if (sig == 29 && *(_QWORD *)signal_ctx && !(unsigned int)dbus_connection_get_dispatch_status( *(_QWORD *)signal_ctx)) { dbus_connection_ref(*(_QWORD *)signal_ctx); dbus_connection_dispatch(*(_QWORD *)signal_ctx); dbus_connection_unref(*...
static void process_wakeup_main(int sig, void *signal_ctx) { struct wpas_dbus_priv *priv = signal_ctx; if (sig != SIGPOLL || !priv->con) return; if (dbus_connection_get_dispatch_status(priv->con) != DBUS_DISPATCH_DATA_REMAINS) return; dbus_connection_ref(priv->con); dbus_connection_dispatch(p...
process_wakeup_main
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void process_watch(wpas_dbus_priv *priv, DBusWatch *watch, eloop_event_type type) { dbus_connection_ref(priv->con); priv->should_dispatch = 0; if (type) { if (type == EVENT_TYPE_WRITE) { dbus_watch_handle(watch, 2); } else if (type == EVENT_TYPE_EXCEPTION) { dbus_watch_handl...
static void process_watch(struct wpas_dbus_priv *priv, DBusWatch *watch, eloop_event_type type) { dbus_connection_ref(priv->con); priv->should_dispatch = 0; if (type == EVENT_TYPE_READ) dbus_watch_handle(watch, DBUS_WATCH_READABLE); else if (type == EVENT_TYPE_WRITE) dbus_wat...
process_watch
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void process_watch_exception(int sock, void *eloop_ctx, void *sock_ctx) { process_watch((wpas_dbus_priv *)eloop_ctx, (DBusWatch *)sock_ctx, EVENT_TYPE_EXCEPTION); }
static void process_watch_exception(int sock, void *eloop_ctx, void *sock_ctx) { process_watch(eloop_ctx, sock_ctx, EVENT_TYPE_EXCEPTION); }
process_watch_exception
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void process_watch_read(int sock, void *eloop_ctx, void *sock_ctx) { process_watch((wpas_dbus_priv *)eloop_ctx, (DBusWatch *)sock_ctx, EVENT_TYPE_READ); }
static void process_watch_read(int sock, void *eloop_ctx, void *sock_ctx) { process_watch(eloop_ctx, sock_ctx, EVENT_TYPE_READ); }
process_watch_read
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void process_watch_write(int sock, void *eloop_ctx, void *sock_ctx) { process_watch((wpas_dbus_priv *)eloop_ctx, (DBusWatch *)sock_ctx, EVENT_TYPE_WRITE); }
static void process_watch_write(int sock, void *eloop_ctx, void *sock_ctx) { process_watch(eloop_ctx, sock_ctx, EVENT_TYPE_WRITE); }
process_watch_write
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
DBusMessage *properties_get(DBusMessage *message, const wpa_dbus_property_desc *dsc, void *user_data) { const char *signature; DBusMessage *reply; DBusError error; DBusMessageIter iter; unsigned long v9; v9 = __readfsqword(0x28u); signature = (const...
static DBusMessage *properties_get(DBusMessage *message, const struct wpa_dbus_property_desc *dsc, void *user_data) { DBusMessage *reply; DBusMessageIter iter; DBusError error; if (os_strcmp(dbus_message_get_signature(message), "ss")) { ...
properties_get
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
DBusMessage *properties_get_all(DBusMessage *message, char *interface, wpa_dbus_object_desc *obj_dsc) { const char *signature; signature = (const char *)dbus_message_get_signature(message); if (!strcmp(signature, "s")) return get_all_properties(message, interface, obj_dsc); ...
static DBusMessage *properties_get_all(DBusMessage *message, char *interface, struct wpa_dbus_object_desc *obj_dsc) { if (os_strcmp(dbus_message_get_signature(message), "s") != 0) return dbus_message_new_error(message, DBUS_ERROR_INVALID_ARGS, NULL); return get_all_proper...
properties_get_all
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
DBusMessage *properties_get_or_set(DBusMessage *message, DBusMessageIter *iter, char *interface, wpa_dbus_object_desc *obj_dsc) { const char *path; char *property; const wpa_dbus_property_desc *property_dsc; const char *method; unsigned lon...
static DBusMessage * properties_get_or_set(DBusMessage *message, DBusMessageIter *iter, char *interface, struct wpa_dbus_object_desc *obj_dsc) { const struct wpa_dbus_property_desc *property_dsc; char *property; const char *method; method = dbus_message_get_member(message); property_dsc...
properties_get_or_set
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
DBusMessage *properties_handler(DBusMessage *message, wpa_dbus_object_desc *obj_dsc) { char *interface; const char *method; DBusMessageIter iter; unsigned long v6; v6 = __readfsqword(0x28u); method = (const char *)dbus_message_get_member(message); dbus_message_iter_init(me...
static DBusMessage *properties_handler(DBusMessage *message, struct wpa_dbus_object_desc *obj_dsc) { DBusMessageIter iter; char *interface; const char *method; method = dbus_message_get_member(message); dbus_message_iter_init(message, &iter); if (!os_strncmp(WPA_DBUS...
properties_handler
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
DBusMessage *properties_set(DBusMessage *message, const wpa_dbus_property_desc *dsc, void *user_data) { const char *signature; DBusMessage *reply; DBusError error; DBusMessageIter iter; unsigned long v9; v9 = __readfsqword(0x28u); signature = (const...
static DBusMessage *properties_set(DBusMessage *message, const struct wpa_dbus_property_desc *dsc, void *user_data) { DBusMessage *reply; DBusMessageIter iter; DBusError error; if (os_strcmp(dbus_message_get_signature(message), "ssv")) { ...
properties_set
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int prune_associations(hostapd_iface *iface, void *ctx) { size_t j; hostapd_data *ohapd; sta_info *osta; for (j = 0; j < iface->num_bss; ++j) { ohapd = iface->bss[j]; if (ohapd != *(hostapd_data **)ctx && (!ohapd->iface->fst || !*(_QWORD *)(**(_QWORD **)ctx + 88LL) || !fst_are_ifaces_a...
static int prune_associations(struct hostapd_iface *iface, void *ctx) { struct prune_data *data = ctx; struct sta_info *osta; struct hostapd_data *ohapd; size_t j; for (j = 0; j < iface->num_bss; j++) { ohapd = iface->bss[j]; if (ohapd == data->hapd) continue; #ifdef CONFIG_TESTING_OPTIONS ...
prune_associations
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
dbus_bool_t put_changed_properties(const wpa_dbus_object_desc *obj_dsc, const char *interface, DBusMessageIter *dict_iter, int clear_changed) { int i; const wpa_dbus_property_desc *dsc; DBusError error; DBus...
static dbus_bool_t put_changed_properties(const struct wpa_dbus_object_desc *obj_dsc, const char *interface, DBusMessageIter *dict_iter, int clear_changed) { DBusMessageIter entry_iter; const struct wpa_dbus_property_desc *dsc; int i; DBusError error; for (dsc = ...
put_changed_properties
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpa_radio *radio_add_interface(wpa_supplicant *wpa_s, const char *rn) { const char *v3; wpa_supplicant *iface; wpa_radio *radio; wpa_radio *radioa; for (iface = wpa_s->global->ifaces; rn && iface; iface = iface->next) { radio = iface->radio; if (radio && !strcmp(rn, radio->name)) { wpa_printf(2...
static struct wpa_radio *radio_add_interface(struct wpa_supplicant *wpa_s, const char *rn) { struct wpa_supplicant *iface = wpa_s->global->ifaces; struct wpa_radio *radio; while (rn && iface) { radio = iface->radio; if (radio && os_strcmp(rn, radio->name) == 0...
radio_add_interface
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int radio_add_work(wpa_supplicant *wpa_s, unsigned int freq, const char *type, int next, void (*cb)(wpa_radio_work *, int), void *ctx) { int was_empty; wpa_radio *radio; wpa_radio_work *work; radio = wpa_s->radio; work = (wpa_radio_work *)os_zalloc(0x58u); if (!work) return -1; wpa...
int radio_add_work(struct wpa_supplicant *wpa_s, unsigned int freq, const char *type, int next, void (*cb)(struct wpa_radio_work *work, int deinit), void *ctx) { struct wpa_radio *radio = wpa_s->radio; struct wpa_radio_work *work; int was_empty; work = o...
radio_add_work
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void radio_remove_interface(wpa_supplicant *wpa_s) { wpa_radio *radio; radio = wpa_s->radio; if (radio) { wpa_printf(2, "Remove interface %s from radio %s", wpa_s->ifname, radio->name); dl_list_del_22(&wpa_s->radio_list); radio_remove_works(wpa_s, 0, 0); if (wpa_s == radio->externa...
static void radio_remove_interface(struct wpa_supplicant *wpa_s) { struct wpa_radio *radio = wpa_s->radio; if (!radio) return; wpa_printf(MSG_DEBUG, "Remove interface %s from radio %s", wpa_s->ifname, radio->name); dl_list_del(&wpa_s->radio_list); radio_remove_works(wpa_s, NULL, 0); if (...
radio_remove_interface
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void radio_remove_pending_work(wpa_supplicant *wpa_s, void *ctx) { const char *v2; wpa_radio_work *work; wpa_radio *radio; radio = wpa_s->radio; for (work = (wpa_radio_work *)radio->work.next; work != (wpa_radio_work *)&radio->work; work = (wpa_radio_work *)work->list.next) { if (ctx == wor...
void radio_remove_pending_work(struct wpa_supplicant *wpa_s, void *ctx) { struct wpa_radio_work *work; struct wpa_radio *radio = wpa_s->radio; dl_list_for_each(work, &radio->work, struct wpa_radio_work, list) { if (work->ctx != ctx) continue; wpa_dbg(wpa_s, MSG_DEBUG, "Free pending radio work '%s'@...
radio_remove_pending_work
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void radio_remove_works(wpa_supplicant *wpa_s, const char *type, int remove_all) { const char *v3; wpa_radio_work *work; wpa_radio_work *tmp; wpa_radio *radio; radio = wpa_s->radio; work = (wpa_radio_work *)radio->work.next; tmp = (wpa_radio_work *)work->list.next; while (work !...
void radio_remove_works(struct wpa_supplicant *wpa_s, const char *type, int remove_all) { struct wpa_radio_work *work, *tmp; struct wpa_radio *radio = wpa_s->radio; dl_list_for_each_safe(work, tmp, &radio->work, struct wpa_radio_work, list) { if (type && os_strcmp(type, work->type) !=...
radio_remove_works
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void radio_start_next_work(void *eloop_ctx, void *timeout_ctx) { wpa_radio_work *v2; long v3; os_time_t usec; wpa_radio_work *work; wpa_supplicant *wpa_s; os_reltime now; os_reltime diff; unsigned long v9; v9 = __readfsqword(0x28u); if (dl_list_empty_14((const dl_list *)eloop_ctx + 3)) v2 = 0; ...
static void radio_start_next_work(void *eloop_ctx, void *timeout_ctx) { struct wpa_radio *radio = eloop_ctx; struct wpa_radio_work *work; struct os_reltime now, diff; struct wpa_supplicant *wpa_s; work = dl_list_first(&radio->work, struct wpa_radio_work, list); if (work == NULL) { radio->num_active_wor...
radio_start_next_work
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void radio_work_check_next(wpa_supplicant *wpa_s) { wpa_radio *radio; radio = wpa_s->radio; if (!dl_list_empty_14(&radio->work)) { if ((*((_BYTE *)wpa_s + 3630) & 0x10) != 0) { wpa_printf( 2, "External radio work in progress - delay start of pending item"); } else { eloop_cancel_tim...
void radio_work_check_next(struct wpa_supplicant *wpa_s) { struct wpa_radio *radio = wpa_s->radio; if (dl_list_empty(&radio->work)) return; if (wpa_s->ext_work_in_progress) { wpa_printf(MSG_DEBUG, "External radio work in progress - delay start of pending item"); return; } eloop_can...
radio_work_check_next
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void radio_work_done(wpa_radio_work *work) { const char *v1; unsigned int started; wpa_supplicant *wpa_s; os_reltime now; os_reltime diff; unsigned long v6; v6 = __readfsqword(0x28u); wpa_s = work->wpa_s; started = *((_BYTE *)work + 56) & 1; os_get_reltime(&now); os_reltime_sub_22(&now, &work->ti...
void radio_work_done(struct wpa_radio_work *work) { struct wpa_supplicant *wpa_s = work->wpa_s; struct os_reltime now, diff; unsigned int started = work->started; os_get_reltime(&now); os_reltime_sub(&now, &work->time, &diff); wpa_dbg(wpa_s, MSG_DEBUG, "Radio work '%s'@%p %s in %ld.%06ld seconds", ...
radio_work_done
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void radio_work_free(wpa_radio_work *work) { if (work == work->wpa_s->scan_work) { wpa_msg( work->wpa_s, 3, "Freeing radio work '%s'@%p (started=%d) that is marked as scan_work", work->type, work, *((_BYTE *)work + 56) & 1); work->wpa_s->scan_work = 0; } if ((*((_BYTE *)work + 56) ...
static void radio_work_free(struct wpa_radio_work *work) { if (work->wpa_s->scan_work == work) { wpa_dbg( work->wpa_s, MSG_INFO, "Freeing radio work '%s'@%p (started=%d) that is marked as scan_work", work->type, work, work->started); work->wpa_s->scan_work = NULL; } #ifdef CONFIG_P...
radio_work_free
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpa_radio_work *radio_work_get_next_work(wpa_radio *radio) { wpa_radio_work *active_work; wpa_radio_work *tmp; wpa_radio_work *tmpa; wpa_radio_work *tmpb; active_work = 0; for (tmp = (wpa_radio_work *)radio->work.next; tmp != (wpa_radio_work *)&radio->work; tmp = (wpa_radio_work *)tmp->list.n...
static struct wpa_radio_work * radio_work_get_next_work(struct wpa_radio *radio) { struct wpa_radio_work *active_work = NULL; struct wpa_radio_work *tmp; dl_list_for_each(tmp, &radio->work, struct wpa_radio_work, list) { if (tmp->started) { active_work = tmp; break; } } if (!active_work)...
radio_work_get_next_work
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int radio_work_is_connect(wpa_radio_work *work) { return !strcmp(work->type, "sme-connect") || !strcmp(work->type, "connect"); }
static int radio_work_is_connect(struct wpa_radio_work *work) { return os_strcmp(work->type, "sme-connect") == 0 || os_strcmp(work->type, "connect") == 0; }
radio_work_is_connect
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int radio_work_is_scan(wpa_radio_work *work) { return !strcmp(work->type, "scan") || !strcmp(work->type, "p2p-scan"); }
static int radio_work_is_scan(struct wpa_radio_work *work) { return os_strcmp(work->type, "scan") == 0 || os_strcmp(work->type, "p2p-scan") == 0; }
radio_work_is_scan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpa_radio_work *radio_work_pending(wpa_supplicant *wpa_s, const char *type) { wpa_radio_work *work; wpa_radio *radio; radio = wpa_s->radio; for (work = (wpa_radio_work *)radio->work.next; work != (wpa_radio_work *)&radio->work; work = (wpa_radio_work *)work->list.next) { if (wpa_s == work->wp...
struct wpa_radio_work *radio_work_pending(struct wpa_supplicant *wpa_s, const char *type) { struct wpa_radio_work *work; struct wpa_radio *radio = wpa_s->radio; dl_list_for_each(work, &radio->work, struct wpa_radio_work, list) { if (work->wpa_s == wpa_s && os_strcmp(...
radio_work_pending
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void random_init(const char *entropy_file) { int *v1; char *v2; u8 stub; unsigned long v4; v4 = __readfsqword(0x28u); free(random_entropy_file); if (entropy_file) random_entropy_file = strdup(entropy_file); else random_entropy_file = 0; random_read_entropy(); if (random_fd < 0) { if (ge...
void random_init(const char *entropy_file) { os_free(random_entropy_file); if (entropy_file) random_entropy_file = os_strdup(entropy_file); else random_entropy_file = NULL; random_read_entropy(); #ifdef __linux__ if (random_fd >= 0) return; #ifdef CONFIG_GETRANDOM { u8 stub; if (getra...
random_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int random_pool_ready() { int *v1; char *v2; int *v3; char *v4; int *v5; char *v6; int fd; long res; if (stub_key_avail == 20) return 1; res = getrandom(&stub_key[stub_key_avail], 20 - stub_key_avail, 1); if (res < 0) { if (*__errno_location() == 38) { wpa_printf( 2, "rand...
int random_pool_ready(void) { #ifdef __linux__ int fd; ssize_t res; if (stub_key_avail == sizeof(stub_key)) return 1; #ifdef CONFIG_GETRANDOM res = getrandom(stub_key + stub_key_avail, sizeof(stub_key) - stub_key_avail, GRND_NONBLOCK); if (res < 0) { if (errno == ENOSYS) { wp...
random_pool_ready
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int rate_match(wpa_supplicant_0 *wpa_s, wpa_ssid *ssid, wpa_bss *bss, int debug_print) { int i; int ia; int j; int ja; int k; int r; const hostapd_hw_modes *mode; hostapd_hw_modes *modes; const u8 *rate_ie; u8 scan_ie[2]; unsigned long v17; v17 = __readfsqword(0x28u); mode = 0;...
static int rate_match(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, struct wpa_bss *bss, int debug_print) { const struct hostapd_hw_modes *mode = NULL, *modes; const u8 scan_ie[2] = {WLAN_EID_SUPP_RATES, WLAN_EID_EXT_SUPP_RATES}; const u8 *rate_ie; int i, j, k; if (bss->freq == 0...
rate_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void recursive_flush_changed_properties(DBusConnection *con, const char *path) { int i; char **objects; char subobj_path[152]; unsigned long v5; v5 = __readfsqword(0x28u); objects = 0; wpa_dbus_flush_object_changed_properties(con, path); if ((unsigned int)dbus_connection_list_registered(con, path, &obj...
static void recursive_flush_changed_properties(DBusConnection *con, const char *path) { char **objects = NULL; char subobj_path[WPAS_DBUS_OBJECT_PATH_MAX]; int i; wpa_dbus_flush_object_changed_properties(con, path); if (!dbus_connection_list_registered(con, pat...
recursive_flush_changed_properties
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const char *reg_init_str(reg_change_initiator init) { const char *result; switch (init) { case reg_change_initiator_REGDOM_SET_BY_CORE: result = "CORE"; break; case reg_change_initiator_REGDOM_SET_BY_USER: result = "USER"; break; case reg_change_initiator_REGDOM_SET_BY_DRIVER: result = "D...
static const char *reg_init_str(enum reg_change_initiator init) { switch (init) { case REGDOM_SET_BY_CORE: return "CORE"; case REGDOM_SET_BY_USER: return "USER"; case REGDOM_SET_BY_DRIVER: return "DRIVER"; case REGDOM_SET_BY_COUNTRY_IE: return "COUNTRY_IE"; case REGDOM_BEACON_HINT: retur...
reg_init_str
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const char *reg_type_str(reg_type type) { const char *result; switch (type) { case reg_type_REGDOM_TYPE_UNKNOWN: result = "UNKNOWN"; break; case reg_type_REGDOM_TYPE_COUNTRY: result = "COUNTRY"; break; case reg_type_REGDOM_TYPE_WORLD: result = "WORLD"; break; case reg_type_REGDOM_TY...
static const char *reg_type_str(enum reg_type type) { switch (type) { case REGDOM_TYPE_UNKNOWN: return "UNKNOWN"; case REGDOM_TYPE_COUNTRY: return "COUNTRY"; case REGDOM_TYPE_WORLD: return "WORLD"; case REGDOM_TYPE_CUSTOM_WORLD: return "CUSTOM_WORLD"; case REGDOM_TYPE_INTERSECTION: retur...
reg_type_str
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void remove_bss_tmp_disallowed_entry(wpa_supplicant *wpa_s, wpa_bss_tmp_disallowed *bss) { eloop_cancel_timeout((eloop_timeout_handler)wpa_bss_tmp_disallow_timeout, wpa_s, bss); dl_list_del_22(&bss->list); free(bss); }
static void remove_bss_tmp_disallowed_entry(struct wpa_supplicant *wpa_s, struct wpa_bss_tmp_disallowed *bss) { eloop_cancel_timeout(wpa_bss_tmp_disallow_timeout, wpa_s, bss); dl_list_del(&bss->list); os_free(bss); }
remove_bss_tmp_disallowed_entry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void remove_duplicate_network(wpa_supplicant *wpa_s, wpa_cred *cred, wpa_bss *bss) { wpa_ssid *ssid; for (ssid = wpa_s->conf->ssid; ssid && (cred != ssid->parent_cred || ssid->ssid_len != bss->ssid_len || memcmp(ssid->ssid, bss->ssid, bss->ssid_len)); ssi...
static void remove_duplicate_network(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) { struct wpa_ssid *ssid; for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { if (ssid->parent_cred != cred) contin...
remove_duplicate_network
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void remove_ie(u8 *buf, size_t *len, u8 eid) { u8 *pos; u8 *next; u8 *end; pos = (u8 *)get_ie(buf, *len, eid); if (pos) { next = &pos[pos[1] + 2]; end = &buf[*len]; *len -= pos[1] + 2; memmove(pos, next, end - next); } }
static void remove_ie(u8 *buf, size_t *len, u8 eid) { u8 *pos, *next, *end; pos = (u8 *)get_ie(buf, *len, eid); if (pos) { next = pos + 2 + pos[1]; end = buf + *len; *len -= 2 + pos[1]; os_memmove(pos, next, end - next); } }
remove_ie
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void remove_timeout(DBusTimeout *timeout, void *data) { eloop_cancel_timeout((eloop_timeout_handler)process_timeout, data, timeout); dbus_timeout_set_data(timeout, 0, 0); }
static void remove_timeout(DBusTimeout *timeout, void *data) { struct wpas_dbus_priv *priv = data; eloop_cancel_timeout(process_timeout, priv, timeout); dbus_timeout_set_data(timeout, NULL, NULL); }
remove_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void remove_watch(DBusWatch *watch, void *data) { char flags; int fd; flags = dbus_watch_get_flags(watch); fd = dbus_watch_get_unix_fd(watch); eloop_unregister_sock(fd, EVENT_TYPE_EXCEPTION); if ((flags & 1) != 0) eloop_unregister_sock(fd, EVENT_TYPE_READ); if ((flags & 2) != 0) eloop_unregister_...
static void remove_watch(DBusWatch *watch, void *data) { unsigned int flags; int fd; flags = dbus_watch_get_flags(watch); fd = dbus_watch_get_unix_fd(watch); eloop_unregister_sock(fd, EVENT_TYPE_EXCEPTION); if (flags & DBUS_WATCH_READABLE) eloop_unregister_sock(fd, EVENT_TYPE_READ); if (flags & DBU...
remove_watch
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const char *result_str(eapol_supp_result result) { if (result == eapol_supp_result_EAPOL_SUPP_RESULT_EXPECTED_FAILURE) return "EXPECTED_FAILURE"; if ((unsigned int)result > eapol_supp_result_EAPOL_SUPP_RESULT_EXPECTED_FAILURE) return "?"; if (result) return "SUCCESS"; return "FAILURE"; }
static const char *result_str(enum eapol_supp_result result) { switch (result) { case EAPOL_SUPP_RESULT_FAILURE: return "FAILURE"; case EAPOL_SUPP_RESULT_SUCCESS: return "SUCCESS"; case EAPOL_SUPP_RESULT_EXPECTED_FAILURE: return "EXPECTED_FAILURE"; } return "?"; }
result_str
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int roaming_consortium_anqp_match(const wpabuf *anqp, const u8 *rc_id, size_t rc_len) { u8 *v4; u8 len; const u8 *pos; const u8 *posa; const u8 *end; if (!anqp) return 0; pos = (const u8 *)wpabuf_head_21(anqp); end = &pos[wpabuf_len_21(anqp)]; while (pos < end) {...
static int roaming_consortium_anqp_match(const struct wpabuf *anqp, const u8 *rc_id, size_t rc_len) { const u8 *pos, *end; u8 len; if (anqp == NULL) return 0; pos = wpabuf_head(anqp); end = pos + wpabuf_len(anqp); while (pos < end) { len = *pos++; if (...
roaming_consortium_anqp_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int roaming_consortium_element_match(const u8 *ie, const u8 *rc_id, size_t rc_len) { u8 lens; const u8 *pos; const u8 *posa; const u8 *posb; const u8 *end; if (!ie) return 0; end = &ie[ie[1] + 2]; if (ie[1] <= 1uLL) return 0; pos = ie + 4; lens = ie[3]; ...
static int roaming_consortium_element_match(const u8 *ie, const u8 *rc_id, size_t rc_len) { const u8 *pos, *end; u8 lens; if (ie == NULL) return 0; pos = ie + 2; end = ie + 2 + ie[1]; if (end - pos < 2) return 0; pos++; lens = *pos++; if ((lens &...
roaming_consortium_element_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int roaming_consortium_match(const u8 *ie, const wpabuf *anqp, const u8 *rc_id, size_t rc_len) { return roaming_consortium_element_match(ie, rc_id, rc_len) || roaming_consortium_anqp_match(anqp, rc_id, rc_len); }
static int roaming_consortium_match(const u8 *ie, const struct wpabuf *anqp, const u8 *rc_id, size_t rc_len) { return roaming_consortium_element_match(ie, rc_id, rc_len) || roaming_consortium_anqp_match(anqp, rc_id, rc_len); }
roaming_consortium_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int roaming_partner_match(wpa_supplicant *wpa_s, roaming_partner *partner, wpabuf *domain_names) { size_t v3; const void *v4; wpa_printf(2, "Interworking: Comparing roaming_partner info fqdn='%s' " "exact_match=%d priority=%u country='%s'", partner...
static int roaming_partner_match(struct wpa_supplicant *wpa_s, struct roaming_partner *partner, struct wpabuf *domain_names) { wpa_printf(MSG_DEBUG, "Interworking: Comparing roaming_partner info fqdn='%s' " "exact_match=%d pri...
roaming_partner_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 roaming_prio(wpa_supplicant *wpa_s, wpa_cred *cred, wpa_bss *bss) { size_t i; if (bss->anqp && bss->anqp->domain_name) { if (interworking_home_sp_cred(wpa_s, cred, bss->anqp->domain_name) <= 0) { for (i = 0; i < cred->num_roaming_partner; ++i) { if (roaming_partner_match(wpa_s, &cred->roaming_...
static u8 roaming_prio(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) { size_t i; if (bss->anqp == NULL || bss->anqp->domain_name == NULL) { wpa_printf(MSG_DEBUG, "Interworking: No ANQP domain name info -> use " "default roaming partne...
roaming_prio
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int rsn_cipher_put_suites(u8 *start, int ciphers) { u8 *pos; pos = start; if ((ciphers & 0x200) != 0) { WPA_PUT_BE32_8(start, 0xFAC0Au); pos = start + 4; } if ((ciphers & 0x100) != 0) { WPA_PUT_BE32_8(pos, 0xFAC09u); pos += 4; } if ((ciphers & 0x10) != 0) { WPA_PUT_BE32_8(pos, (u32)&l...
int rsn_cipher_put_suites(u8 *start, int ciphers) { u8 *pos = start; if (ciphers & WPA_CIPHER_CCMP_256) { RSN_SELECTOR_PUT(pos, RSN_CIPHER_SUITE_CCMP_256); pos += RSN_SELECTOR_LEN; } if (ciphers & WPA_CIPHER_GCMP_256) { RSN_SELECTOR_PUT(pos, RSN_CIPHER_SUITE_GCMP_256); pos += RSN_SELECTOR_LEN; ...
rsn_cipher_put_suites
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int rsn_key_mgmt_to_bitfield(const u8 *s) { long v1; if (WPA_GET_BE32_3(s) == (_DWORD)&loc_FAC01) { LODWORD(v1) = 1; } else if (WPA_GET_BE32_3(s) == 1027074) { LODWORD(v1) = 2; } else if (WPA_GET_BE32_3(s) == 1027075) { LODWORD(v1) = 32; } else if (WPA_GET_BE32_3(s) == (_DWORD)&loc_FAC04) { L...
static int rsn_key_mgmt_to_bitfield(const u8 *s) { if (RSN_SELECTOR_GET(s) == RSN_AUTH_KEY_MGMT_UNSPEC_802_1X) return WPA_KEY_MGMT_IEEE8021X; if (RSN_SELECTOR_GET(s) == RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X) return WPA_KEY_MGMT_PSK; #ifdef CONFIG_IEEE80211R if (RSN_SELECTOR_GET(s) == RSN_AUTH_KEY_MGMT_FT_802_...
rsn_key_mgmt_to_bitfield
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, u8 *pmkid, int akmp) { long v6; const u8 *addr[3]; size_t len[4]; unsigned char hash[48]; unsigned long v12; v12 = __readfsqword(0x28u); len[0] = 8; len[1] = 6; len[2] = 6; addr[0] = (const u8 *)"PMK Name"; ...
void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, u8 *pmkid, int akmp) { char *title = "PMK Name"; const u8 *addr[3]; const size_t len[3] = {8, ETH_ALEN, ETH_ALEN}; unsigned char hash[SHA384_MAC_LEN]; addr[0] = (u8 *)title; addr[1] = aa; addr[2] = spa; if (0) { ...
rsn_pmkid
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void rsn_preauth_candidate_process(wpa_sm *sm) { wpa_sm *candidate; rsn_pmksa_candidate *n; rsn_pmksa_cache_entry *p; if (!dl_list_empty_4(&sm->pmksa_candidates)) { wpa_msg(sm->ctx->msg_ctx, 2, "RSN: processing PMKSA candidate list"); if (!sm->preauth_eapol && sm->proto == 2 && wpa_sm_get_state...
void rsn_preauth_candidate_process(struct wpa_sm *sm) { struct rsn_pmksa_candidate *candidate, *n; if (dl_list_empty(&sm->pmksa_candidates)) return; wpa_msg(sm->ctx->msg_ctx, MSG_DEBUG, "RSN: processing PMKSA candidate " "list"); if (sm->preauth_eapol || sm->proto != WPA_PROTO_RSN || ...
rsn_preauth_candidate_process
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void rsn_preauth_deinit(wpa_sm *sm) { if (sm && sm->preauth_eapol) { eloop_cancel_timeout((eloop_timeout_handler)rsn_preauth_timeout, sm, 0); eapol_sm_deinit(sm->preauth_eapol); sm->preauth_eapol = 0; memset(sm->preauth_bssid, 0, sizeof(sm->preauth_bssid)); l2_packet_deinit(sm->l2_preauth); sm...
void rsn_preauth_deinit(struct wpa_sm *sm) { if (sm == NULL || !sm->preauth_eapol) return; eloop_cancel_timeout(rsn_preauth_timeout, sm, NULL); eapol_sm_deinit(sm->preauth_eapol); sm->preauth_eapol = NULL; os_memset(sm->preauth_bssid, 0, ETH_ALEN); l2_packet_deinit(sm->l2_preauth); sm->l2_preauth = ...
rsn_preauth_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void rsn_preauth_eapol_cb(eapol_sm *eapol, eapol_supp_result result, void *ctx) { const char *v3; eapol_supp_result resulta; int res; int pmk_len; u8 pmk[40]; unsigned long v9; resulta = result; v9 = __readfsqword(0x28u); if (result == eapol_supp_result_EAPOL_SUPP_RESULT_SUC...
static void rsn_preauth_eapol_cb(struct eapol_sm *eapol, enum eapol_supp_result result, void *ctx) { struct wpa_sm *sm = ctx; u8 pmk[PMK_LEN]; if (result == EAPOL_SUPP_RESULT_SUCCESS) { int res, pmk_len; pmk_len = PMK_LEN; res = eapol_sm_get_key(eapol, pmk, PMK_LEN); ...
rsn_preauth_eapol_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int rsn_preauth_eapol_send(void *ctx, int type, const u8 *buf, size_t len) { int res; size_t msglen; wpa_sm *sm; u8 *msg; unsigned long v9; v9 = __readfsqword(0x28u); sm = (wpa_sm *)ctx; if (!*((_QWORD *)ctx + 135)) return -1; msg = wpa_sm_alloc_eapol_0(sm, type, buf, len, &msglen, 0); if (!msg...
static int rsn_preauth_eapol_send(void *ctx, int type, const u8 *buf, size_t len) { struct wpa_sm *sm = ctx; u8 *msg; size_t msglen; int res; if (sm->l2_preauth == NULL) return -1; msg = wpa_sm_alloc_eapol(sm, type, buf, len, &msglen, NULL); if (msg == NULL) ret...
rsn_preauth_eapol_send
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int rsn_preauth_get_status(wpa_sm *sm, char *buf, size_t buflen, int verbose) { int ret; int res; char *pos; char *end; LODWORD(pos) = (_DWORD)buf; end = &buf[buflen]; if (sm->preauth_eapol) { ret = snprintf(buf, buflen, "Pre-authentication EAPOL state machines:\n"); if (os_snprintf_error_7(end -...
int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) { char *pos = buf, *end = buf + buflen; int res, ret; if (sm->preauth_eapol) { ret = os_snprintf(pos, end - pos, "Pre-authentication " "EAPOL state machi...
rsn_preauth_get_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0