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 |
|---|---|---|---|---|---|---|---|
void wpa_driver_nl80211_scan_timeout(void *eloop_ctx, void *timeout_ctx) {
wpa_printf(2, "nl80211: Scan timeout - try to abort it");
if (*((_QWORD *)eloop_ctx + 104) ||
nl80211_abort_scan(*((i802_bss **)eloop_ctx + 132))) {
wpa_printf(2, "nl80211: Failed to abort scan");
if (*((_DWORD *)eloop_ctx + 20... | void wpa_driver_nl80211_scan_timeout(void *eloop_ctx, void *timeout_ctx) {
struct wpa_driver_nl80211_data *drv = eloop_ctx;
wpa_printf(MSG_DEBUG, "nl80211: Scan timeout - try to abort it");
#ifdef CONFIG_DRIVER_NL80211_QCA
if (drv->vendor_scan_cookie &&
nl80211_abort_vendor_scan(drv, drv->vendor_scan_cooki... | wpa_driver_nl80211_scan_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_sched_scan(void *priv, wpa_driver_scan_params *params) {
const char *v3;
set_band relative_adjust_band;
char *v5;
nl80211_bss_select_rssi_adjust rssi_adjust;
int ret;
int pref_band_set;
nl_msg *msg;
size_t i;
i802_bss *bss;
wpa_driver_nl80211_data *drv;
nlattr *match_sets;
... | int wpa_driver_nl80211_sched_scan(void *priv,
struct wpa_driver_scan_params *params) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
int ret = -1;
struct nl_msg *msg;
size_t i;
wpa_dbg(drv->ctx, MSG_DEBUG, "nl80211: sched_scan request");
#if... | wpa_driver_nl80211_sched_scan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_send_action(i802_bss *bss, unsigned int freq,
unsigned int wait_time, const u8 *dst,
const u8 *src, const u8 *bssid,
const u8 *data, size_t data_len,
int no_... | static int wpa_driver_nl80211_send_action(struct i802_bss *bss,
unsigned int freq,
unsigned int wait_time, const u8 *dst,
const u8 *src, const u8 *bssid,
... | wpa_driver_nl80211_send_action | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_driver_nl80211_send_action_cancel_wait(void *priv) {
unsigned int i;
wpa_driver_nl80211_data *drv;
u64 cookie;
drv = *(wpa_driver_nl80211_data **)priv;
nl80211_frame_wait_cancel((i802_bss *)priv,
*(_QWORD *)(*(_QWORD *)priv + 848LL));
for (i = drv->num_send_frame_cookie... | static void wpa_driver_nl80211_send_action_cancel_wait(void *priv) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
unsigned int i;
u64 cookie;
nl80211_frame_wait_cancel(bss, drv->send_frame_cookie);
for (i = drv->num_send_frame_cookies; i > 0; i--) {
cookie = drv->send_f... | wpa_driver_nl80211_send_action_cancel_wait | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_send_mlme(i802_bss *bss, const u8 *data, size_t data_len,
int noack, unsigned int freq, int no_cck,
int offchanok, unsigned int wait_time,
const u16 *csa_offs, size_t csa_offs_len,
... | static int wpa_driver_nl80211_send_mlme(struct i802_bss *bss, const u8 *data,
size_t data_len, int noack,
unsigned int freq, int no_cck,
int offchanok, unsigned int wait_time,
... | wpa_driver_nl80211_send_mlme | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_driver_nl80211_send_rfkill(void *eloop_ctx, void *timeout_ctx) {
wpa_supplicant_event(timeout_ctx, wpa_event_type_EVENT_INTERFACE_DISABLED, 0);
} | static void wpa_driver_nl80211_send_rfkill(void *eloop_ctx, void *timeout_ctx) {
wpa_supplicant_event(timeout_ctx, EVENT_INTERFACE_DISABLED, NULL);
} | wpa_driver_nl80211_send_rfkill | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_acl(void *priv, hostapd_acl_params *params) {
const char *v3;
long v4;
long v5;
nl_msg *v6;
char *v7;
unsigned int i;
int ret;
wpa_driver_nl80211_data *drv;
unsigned int acl_nla_sz;
size_t acl_nlmsg_sz;
nl_msg *acl;
size_t nlmsg_sz;
nl_msg *msg;
drv = *(wpa_driver... | static int wpa_driver_nl80211_set_acl(void *priv,
struct hostapd_acl_params *params) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
struct nl_msg *msg;
struct nl_msg *acl;
unsigned int i;
int ret;
size_t acl_nla_sz, acl_nlmsg_sz, nla_sz... | wpa_driver_nl80211_set_acl | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_ap(void *priv, wpa_driver_ap_params *params) {
int v2;
const char *v4;
hide_ssid hide_ssid;
const void *v6;
unsigned int v7;
const void *v8;
unsigned int v9;
const void *v10;
unsigned int v11;
const void *v12;
unsigned int v13;
const void *v14;
unsigned int v15;
ch... | static int wpa_driver_nl80211_set_ap(void *priv,
struct wpa_driver_ap_params *params) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
struct nl_msg *msg;
u8 cmd = NL80211_CMD_NEW_BEACON;
int ret = -ENOBUFS;
int beacon_set;
int num_suites;... | wpa_driver_nl80211_set_ap | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_country(void *priv, const char *alpha2_arg) {
wpa_driver_nl80211_data *drv;
nl_msg *msg;
char alpha2[3];
unsigned long v6;
v6 = __readfsqword(0x28u);
drv = *(wpa_driver_nl80211_data **)priv;
msg = (nl_msg *)nlmsg_alloc(priv, alpha2_arg);
if (!msg)
return -12;
alpha2[0] ... | static int wpa_driver_nl80211_set_country(void *priv, const char *alpha2_arg) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
char alpha2[3];
struct nl_msg *msg;
msg = nlmsg_alloc();
if (!msg)
return -ENOMEM;
alpha2[0] = alpha2_arg[0];
alpha2[1] = alpha2_arg[1];
al... | wpa_driver_nl80211_set_country | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_key(i802_bss *bss,
wpa_driver_set_key_params *params) {
const char *v3;
int v4;
const char *v5;
int v6;
long v7;
char *v8;
unsigned int v9;
char *v10;
int v11;
int ret;
int reta;
int retb;
long skip_set_key;
int skip_set_keya;
wpa_a... | static int
wpa_driver_nl80211_set_key(struct i802_bss *bss,
struct wpa_driver_set_key_params *params) {
struct wpa_driver_nl80211_data *drv = bss->drv;
int ifindex;
struct nl_msg *msg;
struct nl_msg *key_msg;
int ret;
int skip_set_key = 1;
const char *ifname = params->ifname;
... | wpa_driver_nl80211_set_key | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_mode(i802_bss *bss, nl80211_iftype nlmode) {
return wpa_driver_nl80211_set_mode_impl(bss, nlmode, 0);
} | int wpa_driver_nl80211_set_mode(struct i802_bss *bss,
enum nl80211_iftype nlmode) {
return wpa_driver_nl80211_set_mode_impl(bss, nlmode, NULL);
} | wpa_driver_nl80211_set_mode | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_mode_ibss(i802_bss *bss, hostapd_freq_params *freq) {
return wpa_driver_nl80211_set_mode_impl(
bss, nl80211_iftype_NL80211_IFTYPE_ADHOC, freq);
} | static int wpa_driver_nl80211_set_mode_ibss(struct i802_bss *bss,
struct hostapd_freq_params *freq) {
return wpa_driver_nl80211_set_mode_impl(bss, NL80211_IFTYPE_ADHOC, freq);
} | wpa_driver_nl80211_set_mode_ibss | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_mode_impl(i802_bss *bss, nl80211_iftype nlmode,
hostapd_freq_params *desired_freq_params) {
int *v4;
char *v5;
int ret;
int i;
int mode_switch_res;
int mode_switch_resa;
int was_ap;
int res;
wpa_driver_nl80211_data *drv;
drv = bss->drv... | static int wpa_driver_nl80211_set_mode_impl(
struct i802_bss *bss, enum nl80211_iftype nlmode,
struct hostapd_freq_params *desired_freq_params) {
struct wpa_driver_nl80211_data *drv = bss->drv;
int ret = -1;
int i;
int was_ap = is_ap_interface(drv->nlmode);
int res;
int mode_switch_res;
if (TEST_... | wpa_driver_nl80211_set_mode_impl | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_operstate(void *priv, int state) {
const char *v2;
int v3;
wpa_driver_nl80211_data *drv;
drv = *(wpa_driver_nl80211_data **)priv;
if (state)
v2 = "UP";
else
v2 = "DORMANT";
wpa_printf(2, "nl80211: Set %s operstate %d->%d (%s)",
(const char *)priv + 32, drv-... | static int wpa_driver_nl80211_set_operstate(void *priv, int state) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
wpa_printf(MSG_DEBUG, "nl80211: Set %s operstate %d->%d (%s)", bss->ifname,
drv->operstate, state, state ? "UP" : "DORMANT");
drv->operstate = state;
... | wpa_driver_nl80211_set_operstate | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_set_supp_port(void *priv, int authorized) {
const char *v3;
char *v4;
int ret;
wpa_driver_nl80211_data *drv;
nl_msg *msg;
nl80211_sta_flag_update upd;
unsigned long v9;
v9 = __readfsqword(0x28u);
drv = *(wpa_driver_nl80211_data **)priv;
if (*(_DWORD *)(*(_QWORD *)priv + 752LL... | static int wpa_driver_nl80211_set_supp_port(void *priv, int authorized) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
struct nl_msg *msg;
struct nl80211_sta_flag_update upd;
int ret;
if (!drv->associated && is_zero_ether_addr(drv->bssid) && !authorized) {
wpa_printf(
... | wpa_driver_nl80211_set_supp_port | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_sta_add(void *priv, hostapd_sta_add_params *params) {
int v3;
const char *v4;
uint8_t v5;
const char *v6;
__u32 set;
__u32 v8;
__u32 mask;
char *v10;
const char *v11;
int ret;
nl_msg *msg;
wpa_driver_nl80211_data *drv;
nlattr *wme;
nl80211_sta_flag_update upd;
unsign... | static int wpa_driver_nl80211_sta_add(void *priv,
struct hostapd_sta_add_params *params) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
struct nl_msg *msg;
struct nl80211_sta_flag_update upd;
int ret = -ENOBUFS;
if ((params->flags & WPA_... | wpa_driver_nl80211_sta_add | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_sta_remove(i802_bss *bss, const u8 *addr, int deauth,
u16 reason_code) {
char *v5;
int ret;
wpa_driver_nl80211_data *drv;
nl_msg *msg;
drv = bss->drv;
msg = nl80211_bss_msg(bss, 0, 0x14u);
if (!msg || (unsigned int)nla_put(msg, 6, 6, addr) ||
... | static int wpa_driver_nl80211_sta_remove(struct i802_bss *bss, const u8 *addr,
int deauth, u16 reason_code) {
struct wpa_driver_nl80211_data *drv = bss->drv;
struct nl_msg *msg;
int ret;
if (!(msg = nl80211_bss_msg(bss, 0, NL80211_CMD_DEL_STATION)) ||
nla_put(msg,... | wpa_driver_nl80211_sta_remove | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_sta_set_flags(void *priv, const u8 *addr,
unsigned int total_flags,
unsigned int flags_or,
unsigned int flags_and) {
char total_flagsa;
nl_msg *msg;
nlattr *flags;
nl80211_sta_fl... | static int wpa_driver_nl80211_sta_set_flags(void *priv, const u8 *addr,
unsigned int total_flags,
unsigned int flags_or,
unsigned int flags_and) {
struct i802_bss *bss = priv;
struct n... | wpa_driver_nl80211_sta_set_flags | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_status(void *priv, char *buf, size_t buflen) {
const char *v3;
const char *v4;
const char *v5;
const char *v6;
const char *v7;
const char *v8;
const char *v10;
int v11;
int v12;
const char *v13;
unsigned long v14;
signed long v15;
int v16;
int v17;
int v18;
int v19... | static int wpa_driver_nl80211_status(void *priv, char *buf, size_t buflen) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
int res;
char *pos, *end;
struct nl_msg *msg;
char alpha2[3] = {0, 0, 0};
pos = buf;
end = buf + buflen;
res = os_snprintf(pos, end - pos,
... | wpa_driver_nl80211_status | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_stop_ap(void *priv) {
if (!is_ap_interface(*(nl80211_iftype *)(*(_QWORD *)priv + 800LL)))
return -1;
wpa_driver_nl80211_del_beacon((i802_bss *)priv);
*((_BYTE *)priv + 65) &= ~1u;
return 0;
} | static int wpa_driver_nl80211_stop_ap(void *priv) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
if (!is_ap_interface(drv->nlmode))
return -1;
wpa_driver_nl80211_del_beacon(bss);
bss->beacon_set = 0;
return 0;
} | wpa_driver_nl80211_stop_ap | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_stop_sched_scan(void *priv) {
nl_msg *v1;
char *v2;
int ret;
wpa_driver_nl80211_data *drv;
drv = *(wpa_driver_nl80211_data **)priv;
v1 = nl80211_drv_msg(*(wpa_driver_nl80211_data **)priv, 0, 0x4Cu);
ret = send_and_recv_msgs(drv, v1, 0, 0, 0, 0);
if (ret) {
v2 = strerror(-ret)... | int wpa_driver_nl80211_stop_sched_scan(void *priv) {
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
int ret;
struct nl_msg *msg;
#ifdef ANDROID
if (!drv->capa.sched_scan_supported)
return android_pno_stop(bss);
#endif
msg = nl80211_drv_msg(drv, 0, NL80211_CMD_STOP_SCHED_S... | wpa_driver_nl80211_stop_sched_scan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_try_connect(wpa_driver_nl80211_data *drv,
wpa_driver_associate_params *params,
i802_bss *bss) {
char *v4;
int ret;
int algs;
nl80211_auth_type type;
nl_msg *msg;
wpa_printf(2, "nl80211: Connect (ifindex=%d)", drv->... | static int
wpa_driver_nl80211_try_connect(struct wpa_driver_nl80211_data *drv,
struct wpa_driver_associate_params *params,
struct i802_bss *bss) {
struct nl_msg *msg;
enum nl80211_auth_type type;
int ret;
int algs;
#ifdef CONFIG_DRIVER_NL80211_QCA
... | wpa_driver_nl80211_try_connect | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_driver_nl80211_update_ft_ies(void *priv, const u8 *md, const u8 *ies,
size_t ies_len) {
char *v5;
unsigned int ies_lena;
u16 mdid;
int ret;
wpa_driver_nl80211_data *drv;
nl_msg *msg;
ies_lena = ies_len;
drv = *(wpa_driver_nl80211_data **)priv;
mdid = WPA_G... | static int wpa_driver_nl80211_update_ft_ies(void *priv, const u8 *md,
const u8 *ies, size_t ies_len) {
int ret;
struct nl_msg *msg;
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
u16 mdid = WPA_GET_LE16(md);
wpa_printf(MSG_DEBUG, "nl... | wpa_driver_nl80211_update_ft_ies | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_driver_wired_deinit(void *priv) {
driver_wired_deinit_common((driver_wired_common_data *)priv);
free(priv);
} | static void wpa_driver_wired_deinit(void *priv) {
struct wpa_driver_wired_data *drv = priv;
driver_wired_deinit_common(&drv->common);
os_free(drv);
} | wpa_driver_wired_deinit | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void *wpa_driver_wired_init(void *ctx, const char *ifname) {
wpa_driver_wired_data *drv;
drv = (wpa_driver_wired_data *)os_zalloc(0x40u);
if (!drv)
return 0;
if (driver_wired_init_common(&drv->common, ifname, ctx) >= 0)
return drv;
free(drv);
return 0;
} | static void *wpa_driver_wired_init(void *ctx, const char *ifname) {
struct wpa_driver_wired_data *drv;
drv = os_zalloc(sizeof(*drv));
if (drv == NULL)
return NULL;
if (driver_wired_init_common(&drv->common, ifname, ctx) < 0) {
os_free(drv);
return NULL;
}
return drv;
} | wpa_driver_wired_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_eapol_key_mic(const u8 *key, size_t key_len, int akmp, int ver,
const u8 *buf, size_t len, u8 *mic) {
long v8;
long v9;
u8 hash[64];
unsigned long v13;
v13 = __readfsqword(0x28u);
if (!key_len) {
wpa_printf(2, "WPA: KCK not set - cannot calculate MIC");
return -1;
}
... | int wpa_eapol_key_mic(const u8 *key, size_t key_len, int akmp, int ver,
const u8 *buf, size_t len, u8 *mic) {
u8 hash[SHA512_MAC_LEN];
if (key_len == 0) {
wpa_printf(MSG_DEBUG, "WPA: KCK not set - cannot calculate MIC");
return -1;
}
switch (ver) {
#ifndef CONFIG_FIPS
case WPA_... | wpa_eapol_key_mic | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_free_sta_sm(wpa_state_machine *sm) {
if (sm->GUpdateStationKeys) {
--sm->group->GKeyDoneStations;
sm->GUpdateStationKeys = 0;
}
free(sm->assoc_resp_ftie);
wpabuf_free(sm->ft_pending_req_ies);
free(sm->last_rx_eapol_key);
free(sm->wpa_ie);
free(sm->rsnxe);
wpa_group_put(sm->wpa_auth, sm-... | static void wpa_free_sta_sm(struct wpa_state_machine *sm) {
#ifdef CONFIG_P2P
if (WPA_GET_BE32(sm->ip_addr)) {
u32 start;
wpa_printf(MSG_DEBUG,
"P2P: Free assigned IP address %u.%u.%u.%u from " MACSTR,
sm->ip_addr[0], sm->ip_addr[1], sm->ip_addr[2], sm->ip_addr[3],
... | wpa_free_sta_sm | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_action_rx(wpa_state_machine *sm, const u8 *data, size_t len) {
const u8 *sta_addr;
const u8 *target_ap;
size_t ies_len;
ft_rrb_frame *frame;
if (!sm)
return -1;
if (len > 0xD) {
target_ap = data + 8;
ies_len = len - 14;
wpa_printf(
2,
"FT: Received FT Action frame... | int wpa_ft_action_rx(struct wpa_state_machine *sm, const u8 *data, size_t len) {
const u8 *sta_addr, *target_ap;
const u8 *ies;
size_t ies_len;
u8 action;
struct ft_rrb_frame *frame;
if (sm == NULL)
return -1;
if (len < 14) {
wpa_printf(MSG_DEBUG,
"FT: Too short FT Action frame "
... | wpa_ft_action_rx | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_action_send(wpa_authenticator *wpa_auth, const u8 *dst,
const u8 *data, size_t data_len) {
if (wpa_auth->cb->send_ft_action)
return wpa_auth->cb->send_ft_action(wpa_auth->cb_ctx, dst, data, data_len);
else
return -1;
} | static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, const u8 *dst,
const u8 *data, size_t data_len) {
if (wpa_auth->cb->send_ft_action == NULL)
return -1;
return wpa_auth->cb->send_ft_action(wpa_auth->cb_ctx, dst, data, data_len);
} | wpa_ft_action_send | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
wpa_state_machine *wpa_ft_add_sta(wpa_authenticator *wpa_auth,
const u8 *sta_addr) {
if (wpa_auth->cb->add_sta)
return wpa_auth->cb->add_sta(wpa_auth->cb_ctx, sta_addr);
else
return 0;
} | static struct wpa_state_machine *
wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, const u8 *sta_addr) {
if (wpa_auth->cb->add_sta == NULL)
return NULL;
return wpa_auth->cb->add_sta(wpa_auth->cb_ctx, sta_addr);
} | wpa_ft_add_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_add_tspec(wpa_authenticator *wpa_auth, const u8 *sta_addr,
u8 *tspec_ie, size_t tspec_ielen) {
if (wpa_auth->cb->add_tspec)
return wpa_auth->cb->add_tspec(wpa_auth->cb_ctx, sta_addr, tspec_ie,
tspec_ielen);
wpa_printf(2, "FT: add_tspec is not in... | static int wpa_ft_add_tspec(struct wpa_authenticator *wpa_auth,
const u8 *sta_addr, u8 *tspec_ie,
size_t tspec_ielen) {
if (wpa_auth->cb->add_tspec == NULL) {
wpa_printf(MSG_DEBUG, "FT: add_tspec is not initialized");
return -1;
}
return wpa_auth->cb... | wpa_ft_add_tspec | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *wpa_ft_bigtk_subelem(wpa_state_machine *sm, size_t *len) {
u8 *kek;
u8 *bigtk;
size_t kek_len;
wpa_group *gsm;
size_t bigtk_len;
u8 *subelem;
u8 stub_bigtk[32];
unsigned long v10;
v10 = __readfsqword(0x28u);
gsm = sm->group;
if (wpa_key_mgmt_fils_3(sm->wpa_key_mgmt)) {
kek = sm->PTK.kek2;... | static u8 *wpa_ft_bigtk_subelem(struct wpa_state_machine *sm, size_t *len) {
u8 *subelem, *pos;
struct wpa_group *gsm = sm->group;
size_t subelem_len;
const u8 *kek, *bigtk;
size_t kek_len;
size_t bigtk_len;
u8 stub_bigtk[WPA_IGTK_MAX_LEN];
if (wpa_key_mgmt_fils(sm->wpa_key_mgmt)) {
kek = sm->PTK.k... | wpa_ft_bigtk_subelem | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_block_r0kh(wpa_authenticator *wpa_auth, const u8 *f_r0kh_id,
size_t f_r0kh_id_len) {
ft_remote_r0kh *r0kh;
ft_remote_r0kh *r0kh_wildcard[2];
r0kh_wildcard[1] = (ft_remote_r0kh *)__readfsqword(0x28u);
if (wpa_auth->conf.rkh_neg_timeout) {
wpa_ft_rrb_lookup_r0kh(wpa_auth, f... | static void wpa_ft_block_r0kh(struct wpa_authenticator *wpa_auth,
const u8 *f_r0kh_id, size_t f_r0kh_id_len) {
struct ft_remote_r0kh *r0kh, *r0kh_wildcard;
if (!wpa_auth->conf.rkh_neg_timeout)
return;
wpa_ft_rrb_lookup_r0kh(wpa_auth, f_r0kh_id, f_r0kh_id_len, &r0kh,
... | wpa_ft_block_r0kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_deinit(wpa_authenticator *wpa_auth) {
wpa_ft_deinit_seq(wpa_auth);
wpa_ft_deinit_rkh_tmp(wpa_auth);
} | void wpa_ft_deinit(struct wpa_authenticator *wpa_auth) {
wpa_ft_deinit_seq(wpa_auth);
wpa_ft_deinit_rkh_tmp(wpa_auth);
} | wpa_ft_deinit | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_deinit_rkh_tmp(wpa_authenticator *wpa_auth) {
ft_remote_r0kh *r0kh;
ft_remote_r0kh *r0kh_prev;
ft_remote_r1kh *r1kh;
ft_remote_r1kh *r1kh_prev;
ft_remote_r1kh *r1kh_next;
ft_remote_r0kh *r0kh_next;
r0kh_prev = 0;
r1kh_prev = 0;
if (wpa_auth->conf.r0kh_list)
r0kh = *wpa_auth->conf.r0kh... | static void wpa_ft_deinit_rkh_tmp(struct wpa_authenticator *wpa_auth) {
struct ft_remote_r0kh *r0kh, *r0kh_next, *r0kh_prev = NULL;
struct ft_remote_r1kh *r1kh, *r1kh_next, *r1kh_prev = NULL;
if (wpa_auth->conf.r0kh_list)
r0kh = *wpa_auth->conf.r0kh_list;
else
r0kh = NULL;
while (r0kh) {
r0kh_nex... | wpa_ft_deinit_rkh_tmp | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_deinit_seq(wpa_authenticator *wpa_auth) {
ft_remote_r0kh *r0kh;
ft_remote_r1kh *r1kh;
eloop_cancel_timeout((eloop_timeout_handler)wpa_ft_rrb_seq_timeout, wpa_auth,
(void *)0xFFFFFFFFFFFFFFFFLL);
if (wpa_auth->conf.r0kh_list)
r0kh = *wpa_auth->conf.r0kh_list;
else
r0... | static void wpa_ft_deinit_seq(struct wpa_authenticator *wpa_auth) {
struct ft_remote_r0kh *r0kh;
struct ft_remote_r1kh *r1kh;
eloop_cancel_timeout(wpa_ft_rrb_seq_timeout, wpa_auth, ELOOP_ALL_CTX);
if (wpa_auth->conf.r0kh_list)
r0kh = *wpa_auth->conf.r0kh_list;
else
r0kh = NULL;
for (; r0kh; r0kh =... | wpa_ft_deinit_seq | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_expire_pmk_r0(void *eloop_ctx, void *timeout_ctx) {
int expires_in;
int session_timeout;
os_reltime now;
unsigned long v5;
v5 = __readfsqword(0x28u);
os_get_reltime(&now);
if (eloop_ctx) {
expires_in = *((_QWORD *)eloop_ctx + 16) - LODWORD(now.sec);
session_timeout = *((_QWORD *)eloop... | static void wpa_ft_expire_pmk_r0(void *eloop_ctx, void *timeout_ctx) {
struct wpa_ft_pmk_r0_sa *r0 = eloop_ctx;
struct os_reltime now;
int expires_in;
int session_timeout;
os_get_reltime(&now);
if (!r0)
return;
expires_in = r0->expiration - now.sec;
session_timeout = r0->session_timeout - now.sec... | wpa_ft_expire_pmk_r0 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_expire_pmk_r1(void *eloop_ctx, void *timeout_ctx) {
wpa_ft_free_pmk_r1((wpa_ft_pmk_r1_sa *)eloop_ctx);
} | static void wpa_ft_expire_pmk_r1(void *eloop_ctx, void *timeout_ctx) {
struct wpa_ft_pmk_r1_sa *r1 = eloop_ctx;
wpa_ft_free_pmk_r1(r1);
} | wpa_ft_expire_pmk_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_expire_pull(void *eloop_ctx, void *timeout_ctx) {
wpa_printf(
2, "FT: Timeout pending pull request for %02x:%02x:%02x:%02x:%02x:%02x",
*((unsigned char *)eloop_ctx + 16), *((unsigned char *)eloop_ctx + 17),
*((unsigned char *)eloop_ctx + 18), *((unsigned char *)eloop_ctx + 19),
*((... | static void wpa_ft_expire_pull(void *eloop_ctx, void *timeout_ctx) {
struct wpa_state_machine *sm = eloop_ctx;
wpa_printf(MSG_DEBUG, "FT: Timeout pending pull request for " MACSTR,
MAC2STR(sm->addr));
if (sm->ft_pending_pull_left_retries <= 0)
wpa_ft_block_r0kh(sm->wpa_auth, sm->r0kh_id, sm->r0k... | wpa_ft_expire_pull | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_fetch_pmk_r0(wpa_authenticator *wpa_auth, const u8 *spa,
const u8 *pmk_r0_name,
const wpa_ft_pmk_r0_sa **r0_out) {
wpa_ft_pmk_r0_sa *r0;
wpa_ft_pmk_cache *cache;
os_reltime now;
unsigned long v10;
v10 = __readfsqword(0x28u);
cache = wpa_auth->ft_pm... | static int wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth,
const u8 *spa, const u8 *pmk_r0_name,
const struct wpa_ft_pmk_r0_sa **r0_out) {
struct wpa_ft_pmk_cache *cache = wpa_auth->ft_pmk_cache;
struct wpa_ft_pmk_r0_sa *r0;
struct os_reltime n... | wpa_ft_fetch_pmk_r0 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_fetch_pmk_r1(wpa_authenticator *wpa_auth, const u8 *spa,
const u8 *pmk_r1_name, u8 *pmk_r1, size_t *pmk_r1_len,
int *pairwise, vlan_description *vlan,
const u8 **identity, size_t *identity_len,
const u8 **radius_c... | int wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa,
const u8 *pmk_r1_name, u8 *pmk_r1, size_t *pmk_r1_len,
int *pairwise, struct vlan_description *vlan,
const u8 **identity, size_t *identity_len,
const... | wpa_ft_fetch_pmk_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_free_pmk_r0(wpa_ft_pmk_r0_sa *r0) {
if (r0) {
dl_list_del_8(&r0->list);
eloop_cancel_timeout((eloop_timeout_handler)wpa_ft_expire_pmk_r0, r0, 0);
memset(r0->pmk_r0, 0, sizeof(r0->pmk_r0));
free(r0->vlan);
free(r0->identity);
free(r0->radius_cui);
free(r0);
}
} | static void wpa_ft_free_pmk_r0(struct wpa_ft_pmk_r0_sa *r0) {
if (!r0)
return;
dl_list_del(&r0->list);
eloop_cancel_timeout(wpa_ft_expire_pmk_r0, r0, NULL);
os_memset(r0->pmk_r0, 0, PMK_LEN_MAX);
os_free(r0->vlan);
os_free(r0->identity);
os_free(r0->radius_cui);
os_free(r0);
} | wpa_ft_free_pmk_r0 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_free_pmk_r1(wpa_ft_pmk_r1_sa *r1) {
if (r1) {
dl_list_del_8(&r1->list);
eloop_cancel_timeout((eloop_timeout_handler)wpa_ft_expire_pmk_r1, r1, 0);
memset(r1->pmk_r1, 0, sizeof(r1->pmk_r1));
free(r1->vlan);
free(r1->identity);
free(r1->radius_cui);
free(r1);
}
} | static void wpa_ft_free_pmk_r1(struct wpa_ft_pmk_r1_sa *r1) {
if (!r1)
return;
dl_list_del(&r1->list);
eloop_cancel_timeout(wpa_ft_expire_pmk_r1, r1, NULL);
os_memset(r1->pmk_r1, 0, PMK_LEN_MAX);
os_free(r1->vlan);
os_free(r1->identity);
os_free(r1->radius_cui);
os_free(r1);
} | wpa_ft_free_pmk_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_generate_pmk_r1(wpa_authenticator *wpa_auth,
wpa_ft_pmk_r0_sa *pmk_r0, ft_remote_r1kh *r1kh,
const u8 *s1kh_id) {
u8 *packet;
size_t packet_len;
ft_rrb_seq f_seq;
tlv_list push[3];
tlv_list push_auth[4];
unsigned long v12;
v12 = __readfsqwo... | static int wpa_ft_generate_pmk_r1(struct wpa_authenticator *wpa_auth,
struct wpa_ft_pmk_r0_sa *pmk_r0,
struct ft_remote_r1kh *r1kh,
const u8 *s1kh_id) {
u8 *packet;
size_t packet_len;
struct ft_rrb_seq f_seq;
s... | wpa_ft_generate_pmk_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
size_t wpa_ft_get_identity(wpa_authenticator *wpa_auth, const u8 *sta_addr,
const u8 **buf) {
*buf = 0;
if (wpa_auth->cb->get_identity)
return wpa_auth->cb->get_identity(wpa_auth->cb_ctx, sta_addr, buf);
else
return 0;
} | static size_t wpa_ft_get_identity(struct wpa_authenticator *wpa_auth,
const u8 *sta_addr, const u8 **buf) {
*buf = NULL;
if (!wpa_auth->cb->get_identity)
return 0;
return wpa_auth->cb->get_identity(wpa_auth->cb_ctx, sta_addr, buf);
} | wpa_ft_get_identity | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const u8 *wpa_ft_get_psk(wpa_authenticator *wpa_auth, const u8 *addr,
const u8 *p2p_dev_addr, const u8 *prev_psk) {
if (wpa_auth->cb->get_psk)
return wpa_auth->cb->get_psk(wpa_auth->cb_ctx, addr, p2p_dev_addr, prev_psk,
0, 0);
else
return 0;
} | static const u8 *wpa_ft_get_psk(struct wpa_authenticator *wpa_auth,
const u8 *addr, const u8 *p2p_dev_addr,
const u8 *prev_psk) {
if (wpa_auth->cb->get_psk == NULL)
return NULL;
return wpa_auth->cb->get_psk(wpa_auth->cb_ctx, addr, p2p_dev_addr, pre... | wpa_ft_get_psk | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
size_t wpa_ft_get_radius_cui(wpa_authenticator *wpa_auth, const u8 *sta_addr,
const u8 **buf) {
*buf = 0;
if (wpa_auth->cb->get_radius_cui)
return wpa_auth->cb->get_radius_cui(wpa_auth->cb_ctx, sta_addr, buf);
else
return 0;
} | static size_t wpa_ft_get_radius_cui(struct wpa_authenticator *wpa_auth,
const u8 *sta_addr, const u8 **buf) {
*buf = NULL;
if (!wpa_auth->cb->get_radius_cui)
return 0;
return wpa_auth->cb->get_radius_cui(wpa_auth->cb_ctx, sta_addr, buf);
} | wpa_ft_get_radius_cui | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_get_session_timeout(wpa_authenticator *wpa_auth,
const u8 *sta_addr) {
if (wpa_auth->cb->get_session_timeout)
return wpa_auth->cb->get_session_timeout(wpa_auth->cb_ctx, sta_addr);
else
return 0;
} | static int wpa_ft_get_session_timeout(struct wpa_authenticator *wpa_auth,
const u8 *sta_addr) {
if (!wpa_auth->cb->get_session_timeout)
return 0;
return wpa_auth->cb->get_session_timeout(wpa_auth->cb_ctx, sta_addr);
} | wpa_ft_get_session_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_get_vlan(wpa_authenticator *wpa_auth, const u8 *sta_addr,
vlan_description *vlan) {
if (wpa_auth->cb->get_vlan)
return wpa_auth->cb->get_vlan(wpa_auth->cb_ctx, sta_addr, vlan);
else
return -1;
} | static int wpa_ft_get_vlan(struct wpa_authenticator *wpa_auth,
const u8 *sta_addr, struct vlan_description *vlan) {
if (!wpa_auth->cb->get_vlan)
return -1;
return wpa_auth->cb->get_vlan(wpa_auth->cb_ctx, sta_addr, vlan);
} | wpa_ft_get_vlan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *wpa_ft_gtk_subelem(wpa_state_machine *sm, size_t *len) {
size_t pad_len;
u8 *key;
size_t key_len;
u8 *kek;
size_t kek_len;
wpa_auth_config *conf;
wpa_group *gsm;
u8 *subelem;
u8 keybuf[40];
unsigned long v12;
v12 = __readfsqword(0x28u);
conf = &sm->wpa_auth->conf;
gsm = sm->group;
if (w... | static u8 *wpa_ft_gtk_subelem(struct wpa_state_machine *sm, size_t *len) {
u8 *subelem;
struct wpa_auth_config *conf = &sm->wpa_auth->conf;
struct wpa_group *gsm = sm->group;
size_t subelem_len, pad_len;
const u8 *key;
size_t key_len;
u8 keybuf[WPA_GTK_MAX_LEN];
const u8 *kek;
size_t kek_len;
if (w... | wpa_ft_gtk_subelem | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *wpa_ft_igtk_subelem(wpa_state_machine *sm, size_t *len) {
u8 *kek;
u8 *igtk;
size_t kek_len;
wpa_auth_config *conf;
wpa_group *gsm;
size_t igtk_len;
u8 *subelem;
u8 stub_igtk[32];
unsigned long v11;
v11 = __readfsqword(0x28u);
conf = &sm->wpa_auth->conf;
gsm = sm->group;
if (wpa_key_mgmt_... | static u8 *wpa_ft_igtk_subelem(struct wpa_state_machine *sm, size_t *len) {
u8 *subelem, *pos;
struct wpa_auth_config *conf = &sm->wpa_auth->conf;
struct wpa_group *gsm = sm->group;
size_t subelem_len;
const u8 *kek, *igtk;
size_t kek_len;
size_t igtk_len;
u8 stub_igtk[WPA_IGTK_MAX_LEN];
if (wpa_key_... | wpa_ft_igtk_subelem | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_install_ptk(wpa_state_machine *sm, int retry) {
wpa_alg alg;
int klen;
alg = wpa_cipher_to_alg(sm->pairwise);
klen = wpa_cipher_key_len(sm->pairwise);
if (wpa_cipher_valid_pairwise(sm->pairwise)) {
if (sm->tk_already_set) {
wpa_printf(2, "FT: Do not re-install same PTK to the driver");
... | void wpa_ft_install_ptk(struct wpa_state_machine *sm, int retry) {
enum wpa_alg alg;
int klen;
alg = wpa_cipher_to_alg(sm->pairwise);
klen = wpa_cipher_key_len(sm->pairwise);
if (!wpa_cipher_valid_pairwise(sm->pairwise)) {
wpa_printf(MSG_DEBUG,
"FT: Unknown pairwise alg 0x%x - skip "
... | wpa_ft_install_ptk | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_local_derive_pmk_r1(wpa_authenticator *wpa_auth,
wpa_state_machine *sm, const u8 *r0kh_id,
size_t r0kh_id_len, const u8 *req_pmk_r0_name,
const u8 *req_pmk_r1_name, u8 *out_pmk_r1,
int ... | static int wpa_ft_local_derive_pmk_r1(
struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm,
const u8 *r0kh_id, size_t r0kh_id_len, const u8 *req_pmk_r0_name,
const u8 *req_pmk_r1_name, u8 *out_pmk_r1, int *out_pairwise,
struct vlan_description *vlan, const u8 **identity, size_t *identity_le... | wpa_ft_local_derive_pmk_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_mic(const u8 *kck, size_t kck_len, const u8 *sta_addr,
const u8 *ap_addr, u8 transaction_seqnum, const u8 *mdie,
size_t mdie_len, const u8 *ftie, size_t ftie_len,
const u8 *rsnie, size_t rsnie_len, const u8 *ric, size_t ric_len,
const u8 *rsnxe, siz... | int wpa_ft_mic(const u8 *kck, size_t kck_len, const u8 *sta_addr,
const u8 *ap_addr, u8 transaction_seqnum, const u8 *mdie,
size_t mdie_len, const u8 *ftie, size_t ftie_len,
const u8 *rsnie, size_t rsnie_len, const u8 *ric, size_t ric_len,
const u8 *rsnxe, siz... | wpa_ft_mic | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_new_seq(ft_remote_seq *rkh_seq, ft_rrb_seq *f_seq) {
os_reltime now;
unsigned long v4;
v4 = __readfsqword(0x28u);
if (os_get_reltime(&now) < 0)
return -1;
if (!rkh_seq->tx.dom) {
if (random_get_bytes(&rkh_seq->tx.seq, 4u)) {
wpa_printf(
5,
"FT: Failed to get rando... | static int wpa_ft_new_seq(struct ft_remote_seq *rkh_seq,
struct ft_rrb_seq *f_seq) {
struct os_reltime now;
if (os_get_reltime(&now) < 0)
return -1;
if (!rkh_seq->tx.dom) {
if (random_get_bytes((u8 *)&rkh_seq->tx.seq, sizeof(rkh_seq->tx.seq))) {
wpa_printf(
MSG_... | wpa_ft_new_seq | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_parse_ftie(const u8 *ie, size_t ie_len, wpa_ft_ies *parse,
int use_sha384) {
long v4;
u8 *v5;
u8 id;
u8 len;
const u8 *pos;
const u8 *posa;
const u8 *end;
parse->ftie = ie;
parse->ftie_len = ie_len;
if (use_sha384)
v4 = 90;
else
v4 = 82;
pos = &ie[v4];
... | static int wpa_ft_parse_ftie(const u8 *ie, size_t ie_len,
struct wpa_ft_ies *parse, int use_sha384) {
const u8 *end, *pos;
parse->ftie = ie;
parse->ftie_len = ie_len;
pos = ie +
(use_sha384 ? sizeof(struct rsn_ftie_sha384) : sizeof(struct rsn_ftie));
end = ie + ie_len;
... | wpa_ft_parse_ftie | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_parse_ies(const u8 *ies, size_t ies_len, wpa_ft_ies *parse,
int use_sha384) {
u8 *v5;
int use_sha384a;
u8 id;
u8 len;
int prot_ie_count;
int update_use_sha384;
int ret;
const u8 *pos;
const u8 *posa;
const u8 *posb;
const u8 *end;
wpa_ie_data data;
unsigned long... | int wpa_ft_parse_ies(const u8 *ies, size_t ies_len, struct wpa_ft_ies *parse,
int use_sha384) {
const u8 *end, *pos;
struct wpa_ie_data data;
int ret;
const struct rsn_ftie *ftie;
int prot_ie_count = 0;
int update_use_sha384 = 0;
if (use_sha384 < 0) {
use_sha384 = 0;
update_u... | wpa_ft_parse_ies | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_pmk_cache_deinit(wpa_ft_pmk_cache *cache) {
wpa_ft_pmk_r0_sa *r0;
wpa_ft_pmk_r0_sa *r0prev;
wpa_ft_pmk_r1_sa *r1;
wpa_ft_pmk_r1_sa *r1prev;
r0 = (wpa_ft_pmk_r0_sa *)cache->pmk_r0.next;
r0prev = (wpa_ft_pmk_r0_sa *)cache->pmk_r0.next->next;
while (r0 != (wpa_ft_pmk_r0_sa *)cache) {
wpa_ft_... | void wpa_ft_pmk_cache_deinit(struct wpa_ft_pmk_cache *cache) {
struct wpa_ft_pmk_r0_sa *r0, *r0prev;
struct wpa_ft_pmk_r1_sa *r1, *r1prev;
dl_list_for_each_safe(r0, r0prev, &cache->pmk_r0, struct wpa_ft_pmk_r0_sa,
list) wpa_ft_free_pmk_r0(r0);
dl_list_for_each_safe(r1, r1prev, &cache->... | wpa_ft_pmk_cache_deinit | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
wpa_ft_pmk_cache *wpa_ft_pmk_cache_init() {
wpa_ft_pmk_cache *cache;
cache = (wpa_ft_pmk_cache *)os_zalloc(0x20u);
if (cache) {
dl_list_init_6(&cache->pmk_r0);
dl_list_init_6(&cache->pmk_r1);
}
return cache;
} | struct wpa_ft_pmk_cache *wpa_ft_pmk_cache_init(void) {
struct wpa_ft_pmk_cache *cache;
cache = os_zalloc(sizeof(*cache));
if (cache) {
dl_list_init(&cache->pmk_r0);
dl_list_init(&cache->pmk_r1);
}
return cache;
} | wpa_ft_pmk_cache_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_process_auth(wpa_state_machine *sm, const u8 *bssid,
u16 auth_transaction, const u8 *ies, size_t ies_len,
void (*cb)(void *, const u8 *, const u8 *, u16, u16,
const u8 *, size_t),
void *ctx) {
co... | void wpa_ft_process_auth(struct wpa_state_machine *sm, const u8 *bssid,
u16 auth_transaction, const u8 *ies, size_t ies_len,
void (*cb)(void *ctx, const u8 *dst, const u8 *bssid,
u16 auth_transaction, u16 status,
... | wpa_ft_process_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_process_auth_req(wpa_state_machine *sm, const u8 *ies,
size_t ies_len, u8 **resp_ies,
size_t *resp_ies_len) {
size_t v6;
long v7;
int pairwise;
int session_timeout;
int use_sha384;
int ret;
const u8 *identity;
const u8 *radius_cui;
siz... | static int wpa_ft_process_auth_req(struct wpa_state_machine *sm, const u8 *ies,
size_t ies_len, u8 **resp_ies,
size_t *resp_ies_len) {
struct rsn_mdie *mdie;
u8 pmk_r1[PMK_LEN_MAX], pmk_r1_name[WPA_PMK_NAME_LEN];
u8 ptk_name[WPA_PMK_NAME_LEN];
... | wpa_ft_process_auth_req | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *wpa_ft_process_rdie(wpa_state_machine *sm, u8 *pos, u8 *end, u8 id,
u8 descr_count, const u8 *ies, size_t ies_len) {
wmm_tspec_element *posa;
int res;
int res_0;
ieee802_11_elems parse;
unsigned long v15;
v15 = __readfsqword(0x28u);
wpa_printf(2, "FT: Resource Request: id=%d d... | static u8 *wpa_ft_process_rdie(struct wpa_state_machine *sm, u8 *pos, u8 *end,
u8 id, u8 descr_count, const u8 *ies,
size_t ies_len) {
struct ieee802_11_elems parse;
struct rsn_rdie *rdie;
wpa_printf(MSG_DEBUG, "FT: Resource Request: id=%d descr_count... | wpa_ft_process_rdie | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *wpa_ft_process_ric(wpa_state_machine *sm, u8 *pos, u8 *end, const u8 *ric,
size_t ric_len) {
const u8 *rpos;
const rsn_rdie *rdie;
const u8 *start;
wpa_hexdump(1, "FT: RIC Request", ric, ric_len);
for (rpos = ric; rpos + 4 < &ric[ric_len] && *rpos == 57 && rpos[1] > 3u &&
... | static u8 *wpa_ft_process_ric(struct wpa_state_machine *sm, u8 *pos, u8 *end,
const u8 *ric, size_t ric_len) {
const u8 *rpos, *start;
const struct rsn_rdie *rdie;
wpa_hexdump(MSG_MSGDUMP, "FT: RIC Request", ric, ric_len);
rpos = ric;
while (rpos + sizeof(*rdie) < ric + ric_len... | wpa_ft_process_ric | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_psk_pmk_r1(wpa_state_machine *sm, const u8 *req_pmk_r1_name,
u8 *out_pmk_r1, int *out_pairwise,
vlan_description *out_vlan, const u8 **out_identity,
size_t *out_identity_len, const u8 **out_radius_cui,
size_t *out_radius_... | static int
wpa_ft_psk_pmk_r1(struct wpa_state_machine *sm, const u8 *req_pmk_r1_name,
u8 *out_pmk_r1, int *out_pairwise,
struct vlan_description *out_vlan, const u8 **out_identity,
size_t *out_identity_len, const u8 **out_radius_cui,
size_t *out_ra... | wpa_ft_psk_pmk_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_pull_pmk_r1(wpa_state_machine *sm, const u8 *ies, size_t ies_len,
const u8 *pmk_r0_name) {
long v5;
long v6;
int rkh_pull_timeout;
long v8;
size_t ies_lena;
const u8 *iesa;
_BOOL4 first;
int r0kh_timeout;
ft_remote_r0kh *r0kh;
ft_remote_r0kh *r0kh_wildcard;
u8 *pa... | static int wpa_ft_pull_pmk_r1(struct wpa_state_machine *sm, const u8 *ies,
size_t ies_len, const u8 *pmk_r0_name) {
struct ft_remote_r0kh *r0kh, *r0kh_wildcard;
u8 *packet = NULL;
const u8 *key, *f_r1kh_id = sm->wpa_auth->conf.r1_key_holder;
size_t packet_len, key_len;
struct ft_... | wpa_ft_pull_pmk_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_push_pmk_r1(wpa_authenticator *wpa_auth, const u8 *addr) {
wpa_ft_pmk_r0_sa *r0;
wpa_ft_pmk_r0_sa *r0found;
ft_remote_r1kh *r1kh;
wpa_ft_pmk_cache *cache;
cache = wpa_auth->ft_pmk_cache;
r0found = 0;
if (wpa_auth->conf.pmk_r1_push && wpa_auth->conf.r1kh_list) {
for (r0 = (wpa_ft_pmk_r0_sa... | void wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) {
struct wpa_ft_pmk_cache *cache = wpa_auth->ft_pmk_cache;
struct wpa_ft_pmk_r0_sa *r0, *r0found = NULL;
struct ft_remote_r1kh *r1kh;
if (!wpa_auth->conf.pmk_r1_push)
return;
if (!wpa_auth->conf.r1kh_list)
return;
dl_list_... | wpa_ft_push_pmk_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
ft_remote_r0kh *wpa_ft_rrb_add_r0kh(wpa_authenticator *wpa_auth,
ft_remote_r0kh *r0kh_wildcard,
const u8 *src_addr, const u8 *r0kh_id,
size_t id_len, int timeout) {
ft_remote_r0kh *r0kh;
if (!wpa_auth->conf.... | static struct ft_remote_r0kh *
wpa_ft_rrb_add_r0kh(struct wpa_authenticator *wpa_auth,
struct ft_remote_r0kh *r0kh_wildcard, const u8 *src_addr,
const u8 *r0kh_id, size_t id_len, int timeout) {
struct ft_remote_r0kh *r0kh;
if (!wpa_auth->conf.r0kh_list)
return NULL;
r... | wpa_ft_rrb_add_r0kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
ft_remote_r1kh *wpa_ft_rrb_add_r1kh(wpa_authenticator *wpa_auth,
ft_remote_r1kh *r1kh_wildcard,
const u8 *src_addr, const u8 *r1kh_id,
int timeout) {
ft_remote_r1kh *r1kh;
if (!wpa_auth->conf.r1kh_list)
... | static struct ft_remote_r1kh *
wpa_ft_rrb_add_r1kh(struct wpa_authenticator *wpa_auth,
struct ft_remote_r1kh *r1kh_wildcard, const u8 *src_addr,
const u8 *r1kh_id, int timeout) {
struct ft_remote_r1kh *r1kh;
if (!wpa_auth->conf.r1kh_list)
return NULL;
r1kh = os_zalloc... | wpa_ft_rrb_add_r1kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_build(const u8 *key, const size_t key_len,
const tlv_list *tlvs_enc0, const tlv_list *tlvs_enc1,
const tlv_list *tlvs_auth, const vlan_description *vlan,
const u8 *src_addr, u8 type, u8 **packet,
size_t *packet_len) {
i... | static int wpa_ft_rrb_build(const u8 *key, const size_t key_len,
const struct tlv_list *tlvs_enc0,
const struct tlv_list *tlvs_enc1,
const struct tlv_list *tlvs_auth,
const struct vlan_description *vlan,
... | wpa_ft_rrb_build | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_build_r0(const u8 *key, const size_t key_len,
const tlv_list *tlvs, const wpa_ft_pmk_r0_sa *pmk_r0,
const u8 *r1kh_id, const u8 *s1kh_id,
const tlv_list *tlv_auth, const u8 *src_addr, u8 type,
u8 **packet, siz... | static int wpa_ft_rrb_build_r0(const u8 *key, const size_t key_len,
const struct tlv_list *tlvs,
const struct wpa_ft_pmk_r0_sa *pmk_r0,
const u8 *r1kh_id, const u8 *s1kh_id,
const struct tlv_list ... | wpa_ft_rrb_build_r0 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_check_r0kh(wpa_authenticator *wpa_auth, const u8 *f_r0kh_id,
size_t f_r0kh_id_len) {
if (f_r0kh_id_len == wpa_auth->conf.r0_key_holder_len &&
!os_memcmp_const(f_r0kh_id, wpa_auth->conf.r0_key_holder,
f_r0kh_id_len)) {
return 0;
} else {
r... | static int wpa_ft_rrb_check_r0kh(struct wpa_authenticator *wpa_auth,
const u8 *f_r0kh_id, size_t f_r0kh_id_len) {
if (f_r0kh_id_len != wpa_auth->conf.r0_key_holder_len ||
os_memcmp_const(f_r0kh_id, wpa_auth->conf.r0_key_holder, f_r0kh_id_len) !=
0)
return -1;
re... | wpa_ft_rrb_check_r0kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_check_r1kh(wpa_authenticator *wpa_auth, const u8 *f_r1kh_id) {
if (os_memcmp_const(f_r1kh_id, wpa_auth->conf.r1_key_holder, 6u))
return -1;
else
return 0;
} | static int wpa_ft_rrb_check_r1kh(struct wpa_authenticator *wpa_auth,
const u8 *f_r1kh_id) {
if (os_memcmp_const(f_r1kh_id, wpa_auth->conf.r1_key_holder,
FT_R1KH_ID_LEN) != 0)
return -1;
return 0;
} | wpa_ft_rrb_check_r1kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_decrypt(const u8 *key, const size_t key_len, const u8 *enc,
size_t enc_len, const u8 *auth, const size_t auth_len,
const u8 *src_addr, u8 type, u8 **plain,
size_t *plain_size) {
u8 typea;
const u8 *src_addra;
size_t auth_lena;
c... | static int wpa_ft_rrb_decrypt(const u8 *key, const size_t key_len,
const u8 *enc, size_t enc_len, const u8 *auth,
const size_t auth_len, const u8 *src_addr,
u8 type, u8 **plain, size_t *plain_size) {
const u8 *ad[3] = {src_addr,... | wpa_ft_rrb_decrypt | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_del_r0kh(void *eloop_ctx, void *timeout_ctx) {
ft_remote_r0kh *r0kh;
ft_remote_r0kh *prev;
prev = 0;
if (*((_QWORD *)eloop_ctx + 40)) {
for (r0kh = (ft_remote_r0kh *)**((_QWORD **)eloop_ctx + 40);
r0kh && r0kh != timeout_ctx; r0kh = r0kh->next)
prev = r0kh;
if (r0kh) {
... | static void wpa_ft_rrb_del_r0kh(void *eloop_ctx, void *timeout_ctx) {
struct wpa_authenticator *wpa_auth = eloop_ctx;
struct ft_remote_r0kh *r0kh, *prev = NULL;
if (!wpa_auth->conf.r0kh_list)
return;
for (r0kh = *wpa_auth->conf.r0kh_list; r0kh; r0kh = r0kh->next) {
if (r0kh == timeout_ctx)
break... | wpa_ft_rrb_del_r0kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_del_r1kh(void *eloop_ctx, void *timeout_ctx) {
ft_remote_r1kh *r1kh;
ft_remote_r1kh *prev;
prev = 0;
if (*((_QWORD *)eloop_ctx + 41)) {
for (r1kh = (ft_remote_r1kh *)**((_QWORD **)eloop_ctx + 41);
r1kh && r1kh != timeout_ctx; r1kh = r1kh->next)
prev = r1kh;
if (r1kh) {
... | static void wpa_ft_rrb_del_r1kh(void *eloop_ctx, void *timeout_ctx) {
struct wpa_authenticator *wpa_auth = eloop_ctx;
struct ft_remote_r1kh *r1kh, *prev = NULL;
if (!wpa_auth->conf.r1kh_list)
return;
for (r1kh = *wpa_auth->conf.r1kh_list; r1kh; r1kh = r1kh->next) {
if (r1kh == timeout_ctx)
break... | wpa_ft_rrb_del_r1kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_dump(const u8 *plain, const size_t plain_len) {
const ft_rrb_tlv *f;
size_t len;
wpa_printf(2, "FT: RRB dump message");
while (plain_len > 3) {
f = (const ft_rrb_tlv *)plain;
plain_len -= 4LL;
plain += 4;
len = f->len;
wpa_printf(2, "FT: RRB TLV type = %d, len = %zu", f->typ... | static void wpa_ft_rrb_dump(const u8 *plain, const size_t plain_len) {
const struct ft_rrb_tlv *f;
size_t left;
size_t len;
left = plain_len;
wpa_printf(MSG_DEBUG, "FT: RRB dump message");
while (left >= sizeof(*f)) {
f = (const struct ft_rrb_tlv *)plain;
left -= sizeof(*f);
plain += sizeof(*... | wpa_ft_rrb_dump | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_encrypt(const u8 *key, const size_t key_len, const u8 *plain,
const size_t plain_len, const u8 *auth,
const size_t auth_len, const u8 *src_addr, u8 type,
u8 *enc) {
u8 typea;
const u8 *src_addra;
size_t auth_lena;
const u8 *auth... | static int wpa_ft_rrb_encrypt(const u8 *key, const size_t key_len,
const u8 *plain, const size_t plain_len,
const u8 *auth, const size_t auth_len,
const u8 *src_addr, u8 type, u8 *enc) {
const u8 *ad[3] = {src_addr, auth, &type}... | wpa_ft_rrb_encrypt | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_get_tlv(const u8 *plain, size_t plain_len, u16 type,
size_t *tlv_len, const u8 **tlv_data) {
const u8 *plainb;
size_t lefta;
const u8 *f;
size_t len;
while (plain_len > 3) {
f = plain;
lefta = plain_len - 4;
plainb = plain + 4;
len = *((unsigned short *)f... | static int wpa_ft_rrb_get_tlv(const u8 *plain, size_t plain_len, u16 type,
size_t *tlv_len, const u8 **tlv_data) {
const struct ft_rrb_tlv *f;
size_t left;
le16 type16;
size_t len;
left = plain_len;
type16 = host_to_le16(type);
while (left >= sizeof(*f)) {
f = (const st... | wpa_ft_rrb_get_tlv | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_get_tlv_vlan(const u8 *plain, const size_t plain_len,
vlan_description *vlan) {
u16 v4;
_BOOL4 v5;
const u8 *plainb;
int taggedidx;
int type;
size_t lefta;
size_t len;
ft_rrb_tlv *f;
taggedidx = 0;
memset(vlan, 0, sizeof(vlan_description));
while (plain_... | static int wpa_ft_rrb_get_tlv_vlan(const u8 *plain, const size_t plain_len,
struct vlan_description *vlan) {
struct ft_rrb_tlv *f;
size_t left;
size_t len;
int taggedidx;
int vlan_id;
int type;
left = plain_len;
taggedidx = 0;
os_memset(vlan, 0, sizeof(*vlan));
w... | wpa_ft_rrb_get_tlv_vlan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_init_r0kh_seq(ft_remote_r0kh *r0kh) {
if (r0kh->seq)
return 0;
r0kh->seq = (ft_remote_seq *)os_zalloc(0x78u);
if (r0kh->seq) {
dl_list_init_6(&r0kh->seq->rx.queue);
return 0;
} else {
wpa_printf(2, "FT: Failed to allocate r0kh->seq");
return -1;
}
} | static int wpa_ft_rrb_init_r0kh_seq(struct ft_remote_r0kh *r0kh) {
if (r0kh->seq)
return 0;
r0kh->seq = os_zalloc(sizeof(*r0kh->seq));
if (!r0kh->seq) {
wpa_printf(MSG_DEBUG, "FT: Failed to allocate r0kh->seq");
return -1;
}
dl_list_init(&r0kh->seq->rx.queue);
return 0;
} | wpa_ft_rrb_init_r0kh_seq | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_init_r1kh_seq(ft_remote_r1kh *r1kh) {
if (r1kh->seq)
return 0;
r1kh->seq = (ft_remote_seq *)os_zalloc(0x78u);
if (r1kh->seq) {
dl_list_init_6(&r1kh->seq->rx.queue);
return 0;
} else {
wpa_printf(2, "FT: Failed to allocate r1kh->seq");
return -1;
}
} | static int wpa_ft_rrb_init_r1kh_seq(struct ft_remote_r1kh *r1kh) {
if (r1kh->seq)
return 0;
r1kh->seq = os_zalloc(sizeof(*r1kh->seq));
if (!r1kh->seq) {
wpa_printf(MSG_DEBUG, "FT: Failed to allocate r1kh->seq");
return -1;
}
dl_list_init(&r1kh->seq->rx.queue);
return 0;
} | wpa_ft_rrb_init_r1kh_seq | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_lin(const tlv_list *tlvs1, const tlv_list *tlvs2,
const vlan_description *vlan, u8 **plain,
size_t *plain_len) {
size_t tlv_lena;
size_t tlv_lenb;
size_t tlv_len;
u8 *pos;
u8 *posa;
u8 *posb;
u8 *endpos;
tlv_lena = wpa_ft_tlv_len(tlvs1);
tlv_lenb =... | static int wpa_ft_rrb_lin(const struct tlv_list *tlvs1,
const struct tlv_list *tlvs2,
const struct vlan_description *vlan, u8 **plain,
size_t *plain_len) {
u8 *pos, *endpos;
size_t tlv_len;
tlv_len = wpa_ft_tlv_len(tlvs1);
tlv_len +=... | wpa_ft_rrb_lin | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_lookup_r0kh(wpa_authenticator *wpa_auth, const u8 *f_r0kh_id,
size_t f_r0kh_id_len, ft_remote_r0kh **r0kh_out,
ft_remote_r0kh **r0kh_wildcard) {
ft_remote_r0kh *r0kh;
*r0kh_wildcard = 0;
*r0kh_out = 0;
if (wpa_auth->conf.r0kh_list)
r0k... | static void wpa_ft_rrb_lookup_r0kh(struct wpa_authenticator *wpa_auth,
const u8 *f_r0kh_id, size_t f_r0kh_id_len,
struct ft_remote_r0kh **r0kh_out,
struct ft_remote_r0kh **r0kh_wildcard) {
struct ft_remote_r0kh *r... | wpa_ft_rrb_lookup_r0kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_lookup_r1kh(wpa_authenticator *wpa_auth, const u8 *f_r1kh_id,
ft_remote_r1kh **r1kh_out,
ft_remote_r1kh **r1kh_wildcard) {
ft_remote_r1kh *r1kh;
*r1kh_wildcard = 0;
*r1kh_out = 0;
if (wpa_auth->conf.r1kh_list)
r1kh = *wpa_auth->conf.r1... | static void wpa_ft_rrb_lookup_r1kh(struct wpa_authenticator *wpa_auth,
const u8 *f_r1kh_id,
struct ft_remote_r1kh **r1kh_out,
struct ft_remote_r1kh **r1kh_wildcard) {
struct ft_remote_r1kh *r1kh;
*r1kh_wildcard... | wpa_ft_rrb_lookup_r1kh | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_oui_rx(wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *dst_addr, u8 oui_suffix, const u8 *data,
size_t data_len) {
_BOOL4 no_defer;
size_t alen;
const u8 *auth;
const u8 *enc;
size_t elen;
wpa_printf(2,
"FT: RRB-OUI(%02x:... | void wpa_ft_rrb_oui_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *dst_addr, u8 oui_suffix, const u8 *data,
size_t data_len) {
const u8 *auth, *enc;
size_t alen, elen;
int no_defer = 0;
wpa_printf(MSG_DEBUG,
"FT: RRB-OUI(" MACSTR ... | wpa_ft_rrb_oui_rx | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_oui_send(wpa_authenticator *wpa_auth, const u8 *dst,
u8 oui_suffix, const u8 *data, size_t data_len) {
if (!wpa_auth->cb->send_oui)
return -1;
wpa_printf(
2, "FT: RRB-OUI type %u send to %02x:%02x:%02x:%02x:%02x:%02x (len=%u)",
oui_suffix, *dst, dst[1], dst[2],... | static int wpa_ft_rrb_oui_send(struct wpa_authenticator *wpa_auth,
const u8 *dst, u8 oui_suffix, const u8 *data,
size_t data_len) {
if (!wpa_auth->cb->send_oui)
return -1;
wpa_printf(MSG_DEBUG, "FT: RRB-OUI type %u send to " MACSTR " (len=%u)",
... | wpa_ft_rrb_oui_send | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_r0kh_replenish(wpa_authenticator *wpa_auth,
ft_remote_r0kh *r0kh, int timeout) {
if (timeout > 0)
eloop_replenish_timeout(
timeout, 0, (eloop_timeout_handler)wpa_ft_rrb_del_r0kh, wpa_auth, r0kh);
} | static void wpa_ft_rrb_r0kh_replenish(struct wpa_authenticator *wpa_auth,
struct ft_remote_r0kh *r0kh,
int timeout) {
if (timeout > 0)
eloop_replenish_timeout(timeout, 0, wpa_ft_rrb_del_r0kh, wpa_auth, r0kh);
} | wpa_ft_rrb_r0kh_replenish | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_r0kh_timeout(wpa_authenticator *wpa_auth, ft_remote_r0kh *r0kh,
int timeout) {
eloop_cancel_timeout((eloop_timeout_handler)wpa_ft_rrb_del_r0kh, wpa_auth,
r0kh);
if (timeout > 0)
eloop_register_timeout(
timeout, 0, (eloop_timeout_handler... | static void wpa_ft_rrb_r0kh_timeout(struct wpa_authenticator *wpa_auth,
struct ft_remote_r0kh *r0kh, int timeout) {
eloop_cancel_timeout(wpa_ft_rrb_del_r0kh, wpa_auth, r0kh);
if (timeout > 0)
eloop_register_timeout(timeout, 0, wpa_ft_rrb_del_r0kh, wpa_auth, r0kh);
} | wpa_ft_rrb_r0kh_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_r1kh_replenish(wpa_authenticator *wpa_auth,
ft_remote_r1kh *r1kh, int timeout) {
if (timeout > 0)
eloop_replenish_timeout(
timeout, 0, (eloop_timeout_handler)wpa_ft_rrb_del_r1kh, wpa_auth, r1kh);
} | static void wpa_ft_rrb_r1kh_replenish(struct wpa_authenticator *wpa_auth,
struct ft_remote_r1kh *r1kh,
int timeout) {
if (timeout > 0)
eloop_replenish_timeout(timeout, 0, wpa_ft_rrb_del_r1kh, wpa_auth, r1kh);
} | wpa_ft_rrb_r1kh_replenish | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx(wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *data, size_t data_len) {
u8 action;
u16 alen;
u16 status_code;
const u8 *pos;
const u8 *posa;
const u8 *end;
const u8 *sta_addr;
const u8 *target_ap_addr;
wpa_printf(
2, "FT: RRB received frame from r... | int wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *data, size_t data_len) {
struct ft_rrb_frame *frame;
u16 alen;
const u8 *pos, *end, *start;
u8 action;
const u8 *sta_addr, *target_ap_addr;
wpa_printf(MSG_DEBUG, "FT: RRB received frame from remote AP " MA... | wpa_ft_rrb_rx | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx_pull(wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *enc, size_t enc_len, const u8 *auth,
size_t auth_len, int no_defer) {
int seq_ret;
int ret;
u8 *plain;
u8 *packet;
size_t plain_len;
size_t packet_len;
ft_remote_r1kh *r1kh;
ft... | static int wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth,
const u8 *src_addr, const u8 *enc, size_t enc_len,
const u8 *auth, size_t auth_len, int no_defer) {
const char *msgtype = "pull request";
u8 *plain = NULL, *packet = NULL;
size_t plain_len... | wpa_ft_rrb_rx_pull | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx_push(wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *enc, size_t enc_len, const u8 *auth,
size_t auth_len, int no_defer) {
int (*v7)(wpa_authenticator *, const u8 *, const u8 *, size_t, const u8 *,
size_t, int);
wpa_printf(2, "F... | static int wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth,
const u8 *src_addr, const u8 *enc, size_t enc_len,
const u8 *auth, size_t auth_len, int no_defer) {
const char *msgtype = "push";
wpa_printf(MSG_DEBUG, "FT: Received PMK-R1 push");
if (w... | wpa_ft_rrb_rx_push | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx_r1(wpa_authenticator *wpa_auth, const u8 *src_addr, u8 type,
const u8 *enc, size_t enc_len, const u8 *auth,
size_t auth_len, const char *msgtype, u8 *s1kh_id_out,
int (*cb)(wpa_authenticator *, const u8 *, const u8 *,
... | static int
wpa_ft_rrb_rx_r1(struct wpa_authenticator *wpa_auth, const u8 *src_addr,
u8 type, const u8 *enc, size_t enc_len, const u8 *auth,
size_t auth_len, const char *msgtype, u8 *s1kh_id_out,
int (*cb)(struct wpa_authenticator *wpa_auth,
c... | wpa_ft_rrb_rx_r1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx_request(wpa_authenticator *wpa_auth, const u8 *current_ap,
const u8 *sta_addr, const u8 *body, size_t len) {
int res;
int resa;
u8 *resp_ies;
size_t resp_ies_len;
wpa_state_machine *sm;
unsigned long v14;
v14 = __readfsqword(0x28u);
sm = wpa_ft_add_sta(wpa_au... | static int wpa_ft_rrb_rx_request(struct wpa_authenticator *wpa_auth,
const u8 *current_ap, const u8 *sta_addr,
const u8 *body, size_t len) {
struct wpa_state_machine *sm;
u16 status;
u8 *resp_ies;
size_t resp_ies_len;
int res;
sm = wpa_ft_ad... | wpa_ft_rrb_rx_request | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void wpa_ft_rrb_rx_request_cb(void *ctx, const u8 *dst, const u8 *bssid,
u16 auth_transaction, u16 resp, const u8 *ies,
size_t ies_len) {
wpa_printf(2,
"FT: Over-the-DS RX request cb for %02x:%02x:%02x:%02x:%02x:%02x",
*((unsigned c... | static void wpa_ft_rrb_rx_request_cb(void *ctx, const u8 *dst, const u8 *bssid,
u16 auth_transaction, u16 resp,
const u8 *ies, size_t ies_len) {
struct wpa_state_machine *sm = ctx;
wpa_printf(MSG_DEBUG, "FT: Over-the-DS RX request cb for " MA... | wpa_ft_rrb_rx_request_cb | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx_resp(wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *enc, size_t enc_len, const u8 *auth,
size_t auth_len, int no_defer) {
int (*v8)(wpa_authenticator *, const u8 *, const u8 *, size_t, const u8 *,
size_t, int);
int nak;
int re... | static int wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth,
const u8 *src_addr, const u8 *enc, size_t enc_len,
const u8 *auth, size_t auth_len, int no_defer) {
const char *msgtype = "pull response";
int nak, ret = -1;
struct ft_get_sta_ctx ctx;
u... | wpa_ft_rrb_rx_resp | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx_seq(wpa_authenticator *wpa_auth, const u8 *src_addr, int type,
const u8 *enc, size_t enc_len, const u8 *auth,
size_t auth_len, ft_remote_seq **rkh_seq, u8 **key,
size_t *key_len, ft_remote_r0kh **r0kh_out,
ft_remot... | static int wpa_ft_rrb_rx_seq(struct wpa_authenticator *wpa_auth,
const u8 *src_addr, int type, const u8 *enc,
size_t enc_len, const u8 *auth, size_t auth_len,
struct ft_remote_seq **rkh_seq, u8 **key,
siz... | wpa_ft_rrb_rx_seq | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx_seq_req(wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *enc, size_t enc_len, const u8 *auth,
size_t auth_len, int no_defer) {
const u8 *f_nonce;
const u8 *f_r0kh_id;
const u8 *f_r1kh_id;
size_t f_nonce_len;
size_t f_r0kh_id_len;
... | static int wpa_ft_rrb_rx_seq_req(struct wpa_authenticator *wpa_auth,
const u8 *src_addr, const u8 *enc,
size_t enc_len, const u8 *auth,
size_t auth_len, int no_defer) {
int ret = -1;
struct ft_rrb_seq f_seq;
const u... | wpa_ft_rrb_rx_seq_req | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_rx_seq_resp(wpa_authenticator *wpa_auth, const u8 *src_addr,
const u8 *enc, size_t enc_len, const u8 *auth,
size_t auth_len, int no_defer) {
unsigned int v7;
int found;
u32 msg_dom;
u32 msg_seq;
u8 *key;
size_t key_len;
ft_remote_r0kh *r... | static int wpa_ft_rrb_rx_seq_resp(struct wpa_authenticator *wpa_auth,
const u8 *src_addr, const u8 *enc,
size_t enc_len, const u8 *auth,
size_t auth_len, int no_defer) {
u8 *key = NULL;
size_t key_len = 0;
struct... | wpa_ft_rrb_rx_seq_resp | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int wpa_ft_rrb_send(wpa_authenticator *wpa_auth, const u8 *dst, const u8 *data,
size_t data_len) {
if (!wpa_auth->cb->send_ether)
return -1;
wpa_printf(2, "FT: RRB send to %02x:%02x:%02x:%02x:%02x:%02x", *dst, dst[1],
dst[2], dst[3], dst[4], dst[5]);
return wpa_auth->cb->send_... | while (0)
#define RRB_GET_OPTIONAL(type, field, txt, checklength) \
RRB_GET_OPTIONAL_SRC(plain, type, field, txt, checklength)
#define RRB_GET_OPTIONAL_AUTH(type, field, txt, checklength) \
RRB_GET_OPTIONAL_SRC(auth, type, field, txt, checklength)
static int wpa_ft_rrb_s... | wpa_ft_rrb_send | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.