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 ieee802_1x_learn_identity(hostapd_data *hapd, eapol_state_machine *sm,
const u8 *eap, size_t len) {
size_t identity_len;
const eap_hdr *hdr;
const u8 *identity;
unsigned long v7;
v7 = __readfsqword(0x28u);
hdr = (const eap_hdr *)eap;
if (len > 4 && (hdr->code != 2 || e... | static void ieee802_1x_learn_identity(struct hostapd_data *hapd,
struct eapol_state_machine *sm,
const u8 *eap, size_t len) {
const u8 *identity;
size_t identity_len;
const struct eap_hdr *hdr = (const struct eap_hdr *)eap;
if (len <= ... | ieee802_1x_learn_identity | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_logger(void *ctx, const u8 *addr, eapol_logger_level level,
const char *txt) {
if (level == EAPOL_LOGGER_INFO) {
hostapd_logger(ctx, addr, 2u, 2, "%s", txt);
} else if (level == EAPOL_LOGGER_WARNING) {
hostapd_logger(ctx, addr, 2u, 4, "%s", txt);
} else {
hostapd... | static void ieee802_1x_logger(void *ctx, const u8 *addr,
eapol_logger_level level, const char *txt) {
#ifndef CONFIG_NO_HOSTAPD_LOGGER
struct hostapd_data *hapd = ctx;
int hlevel;
switch (level) {
case EAPOL_LOGGER_WARNING:
hlevel = HOSTAPD_LEVEL_WARNING;
break;
case EAP... | ieee802_1x_logger | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_new_station(hostapd_data *hapd, sta_info *sta) {
int reassoc;
int force_1x;
int key_mgmt;
rsn_pmksa_cache_entry *pmksa;
reassoc = 1;
force_1x = 0;
if (hapd->conf->wps_state && (hapd->conf->wpa && (sta->flags & 0x2000) != 0 ||
(sta->flags & 0x1000) != 0))
... | void ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta) {
struct rsn_pmksa_cache_entry *pmksa;
int reassoc = 1;
int force_1x = 0;
int key_mgmt;
#ifdef CONFIG_WPS
if (hapd->conf->wps_state &&
((hapd->conf->wpa && (sta->flags & WLAN_STA_MAYBE_WPS)) ||
(sta->flags & WLAN_STA_WP... | ieee802_1x_new_station | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_notify_port_enabled(eapol_state_machine *sm, bool enabled) {
if (sm) {
sm->eap_if->portEnabled = enabled;
eapol_auth_step(sm);
}
} | void ieee802_1x_notify_port_enabled(struct eapol_state_machine *sm,
bool enabled) {
if (!sm)
return;
sm->eap_if->portEnabled = enabled;
eapol_auth_step(sm);
} | ieee802_1x_notify_port_enabled | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_notify_port_valid(eapol_state_machine *sm, bool valid) {
if (sm) {
sm->portValid = valid;
eapol_auth_step(sm);
}
} | void ieee802_1x_notify_port_valid(struct eapol_state_machine *sm, bool valid) {
if (!sm)
return;
sm->portValid = valid;
eapol_auth_step(sm);
} | ieee802_1x_notify_port_valid | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_notify_pre_auth(eapol_state_machine *sm, bool pre_auth) {
int v2;
if (sm) {
if (pre_auth)
v2 = sm->flags | 1;
else
v2 = sm->flags & 0xFFFFFFFE;
sm->flags = v2;
}
} | void ieee802_1x_notify_pre_auth(struct eapol_state_machine *sm, bool pre_auth) {
if (!sm)
return;
if (pre_auth)
sm->flags |= EAPOL_SM_PREAUTH;
else
sm->flags &= ~EAPOL_SM_PREAUTH;
} | ieee802_1x_notify_pre_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_receive(hostapd_data *hapd, const u8 *sa, const u8 *buf,
size_t len) {
u16 datalen;
int key_mgmt;
u32 wflags;
sta_info *sta;
ieee802_1x_eapol_key *key;
rsn_pmksa_cache_entry *pmksa;
if (hapd->conf->ieee802_1x || hapd->conf->wpa || hapd->conf->osen ||
hapd->co... | void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf,
size_t len) {
struct sta_info *sta;
struct ieee802_1x_hdr *hdr;
struct ieee802_1x_eapol_key *key;
u16 datalen;
struct rsn_pmksa_cache_entry *pmksa;
int key_mgmt;
if (!hapd->conf->ieee802_1x && !hapd->c... | ieee802_1x_receive | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
RadiusRxResult ieee802_1x_receive_auth(radius_msg *msg, radius_msg *req,
const u8 *shared_secret,
size_t shared_secret_len, void *data) {
int code;
u32 v7;
u32 session_timeout;
u32 termination_action;
u32 acct_interim_interval;
u3... | static RadiusRxResult ieee802_1x_receive_auth(struct radius_msg *msg,
struct radius_msg *req,
const u8 *shared_secret,
size_t shared_secret_len,
... | ieee802_1x_receive_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_save_eapol(sta_info *sta, const u8 *buf, size_t len) {
pending_eapol_rx *pending_eapol_rx;
if (sta->pending_eapol_rx) {
wpabuf_free(sta->pending_eapol_rx->buf);
} else {
sta->pending_eapol_rx = (pending_eapol_rx *)malloc(0x18u);
if (!sta->pending_eapol_rx)
return;
}
pending_... | static void ieee802_1x_save_eapol(struct sta_info *sta, const u8 *buf,
size_t len) {
if (sta->pending_eapol_rx) {
wpabuf_free(sta->pending_eapol_rx->buf);
} else {
sta->pending_eapol_rx = os_malloc(sizeof(*sta->pending_eapol_rx));
if (!sta->pending_eapol_rx)
retur... | ieee802_1x_save_eapol | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
eapol_state_machine *ieee802_1x_search_radius_identifier(hostapd_data *hapd,
u8 identifier) {
sta_id_search id_search;
unsigned long v4;
v4 = __readfsqword(0x28u);
id_search.identifier = identifier;
id_search.sm = 0;
ap_for_each_sta(hapd,
... | static struct eapol_state_machine *
ieee802_1x_search_radius_identifier(struct hostapd_data *hapd, u8 identifier) {
struct sta_id_search id_search;
id_search.identifier = identifier;
id_search.sm = NULL;
ap_for_each_sta(hapd, ieee802_1x_select_radius_identifier, &id_search);
return id_search.sm;
} | ieee802_1x_search_radius_identifier | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ieee802_1x_select_radius_identifier(hostapd_data *hapd, sta_info *sta,
void *ctx) {
eapol_state_machine *sm;
sm = sta->eapol_sm;
if (!sm || sm->radius_identifier < 0 ||
sm->radius_identifier != *(unsigned char *)ctx)
return 0;
*((_QWORD *)ctx + 1) = sm;
r... | static int ieee802_1x_select_radius_identifier(struct hostapd_data *hapd,
struct sta_info *sta,
void *ctx) {
struct sta_id_search *id_search = ctx;
struct eapol_state_machine *sm = sta->eapol_sm;
if (sm && sm->radius_id... | ieee802_1x_select_radius_identifier | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_send(hostapd_data *hapd, sta_info *sta, u8 type, const u8 *data,
size_t datalen) {
u32 v5;
int encrypt;
size_t len;
u8 *buf;
encrypt = 0;
len = datalen + 4;
buf = (u8 *)os_zalloc(datalen + 4);
if (buf) {
*buf = hapd->conf->eapol_version;
buf[1] = type;
*... | static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta,
u8 type, const u8 *data, size_t datalen) {
u8 *buf;
struct ieee802_1x_hdr *xhdr;
size_t len;
int encrypt = 0;
len = sizeof(*xhdr) + datalen;
buf = os_zalloc(len);
if (!buf) {
wpa_printf(MSG_ERROR,... | ieee802_1x_send | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_set_port_authorized(void *ctx, void *sta_ctx, int authorized) {
ieee802_1x_set_sta_authorized((hostapd_data *)ctx, (sta_info *)sta_ctx,
authorized);
} | static void ieee802_1x_set_port_authorized(void *ctx, void *sta_ctx,
int authorized) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta = sta_ctx;
ieee802_1x_set_sta_authorized(hapd, sta, authorized);
} | ieee802_1x_set_port_authorized | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_set_sta_authorized(hostapd_data *hapd, sta_info *sta,
int authorized) {
int *v3;
int res;
if ((sta->flags & 0x100) == 0) {
if (authorized) {
ap_sta_set_authorized(hapd, sta, 1);
res = hostapd_set_authorized(hapd, sta, 1);
hostapd_logger(hap... | void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd,
struct sta_info *sta, int authorized) {
int res;
if (sta->flags & WLAN_STA_PREAUTH)
return;
if (authorized) {
ap_sta_set_authorized(hapd, sta, 1);
res = hostapd_set_authorized(hapd, sta, 1);
hostapd_... | ieee802_1x_set_sta_authorized | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ieee802_1x_sta_entry_alive(void *ctx, const u8 *addr) {
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, addr);
return sta && sta->eapol_sm;
} | static int ieee802_1x_sta_entry_alive(void *ctx, const u8 *addr) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, addr);
if (!sta || !sta->eapol_sm)
return 0;
return 1;
} | ieee802_1x_sta_entry_alive | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_store_radius_class(hostapd_data *hapd, sta_info *sta,
radius_msg *msg) {
radius_attr_data *v3;
int i;
int count;
u8 *attr_class;
size_t class_len;
size_t nclass_count;
eapol_state_machine *sm;
radius_attr_data *nclass;
unsigned long v12;
v12 = __re... | static void ieee802_1x_store_radius_class(struct hostapd_data *hapd,
struct sta_info *sta,
struct radius_msg *msg) {
u8 *attr_class;
size_t class_len;
struct eapol_state_machine *sm = sta->eapol_sm;
int count, i;
struct radius... | ieee802_1x_store_radius_class | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ieee802_1x_tx_status(hostapd_data *hapd, sta_info *sta, const u8 *buf,
size_t len, int ack) {
int lena;
int bufa;
u8 *pos;
u8 *posa;
unsigned char rfc1042_hdr[6];
unsigned long v12;
bufa = (int)buf;
lena = len;
v12 = __readfsqword(0x28u);
*(_DWORD *)rfc1042_hdr = 240298... | int ieee802_1x_tx_status(struct hostapd_data *hapd, struct sta_info *sta,
const u8 *buf, size_t len, int ack) {
struct ieee80211_hdr *hdr;
u8 *pos;
const unsigned char rfc1042_hdr[ETH_ALEN] = {0xaa, 0xaa, 0x03,
0x00, 0x00, 0x00};
if (!sta)... | ieee802_1x_tx_status | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_update_sta_cui(hostapd_data *hapd, sta_info *sta,
radius_msg *msg) {
u8 *buf;
size_t len;
eapol_state_machine *sm;
wpabuf *cui;
unsigned long v7;
v7 = __readfsqword(0x28u);
sm = sta->eapol_sm;
if (sm && radius_msg_get_attr_ptr(msg, 0x59u, &buf, &len, 0) >=... | static void ieee802_1x_update_sta_cui(struct hostapd_data *hapd,
struct sta_info *sta,
struct radius_msg *msg) {
struct eapol_state_machine *sm = sta->eapol_sm;
struct wpabuf *cui;
u8 *buf;
size_t len;
if (!sm)
return;
if (rad... | ieee802_1x_update_sta_cui | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_update_sta_identity(hostapd_data *hapd, sta_info *sta,
radius_msg *msg) {
const char *v3;
u8 *buf;
size_t len;
eapol_state_machine *sm;
u8 *identity;
unsigned long v8;
v8 = __readfsqword(0x28u);
sm = sta->eapol_sm;
if (sm) {
if (radius_msg_get_a... | static void ieee802_1x_update_sta_identity(struct hostapd_data *hapd,
struct sta_info *sta,
struct radius_msg *msg) {
u8 *buf, *identity;
size_t len;
struct eapol_state_machine *sm = sta->eapol_sm;
if (!sm)
return;
if ... | ieee802_1x_update_sta_identity | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ieee802_1x_update_vlan(radius_msg *msg, hostapd_data *hapd, sta_info *sta) {
int vlanid;
const char *v4;
vlan_description vlan_desc;
unsigned long v8;
v8 = __readfsqword(0x28u);
memset(&vlan_desc, 0, sizeof(vlan_desc));
vlanid =
radius_msg_get_vlanid(msg, &vlan_desc.untagged, 32, vlan_desc.tagg... | static int ieee802_1x_update_vlan(struct radius_msg *msg,
struct hostapd_data *hapd,
struct sta_info *sta) {
struct vlan_description vlan_desc;
os_memset(&vlan_desc, 0, sizeof(vlan_desc));
vlan_desc.notempty = !!radius_msg_get_vlanid(
msg,... | ieee802_1x_update_vlan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ieee802_1x_wnm_notif_send(void *eloop_ctx, void *timeout_ctx) {
if ((*((_BYTE *)timeout_ctx + 98) & 2) != 0) {
wpa_printf(2,
"HS 2.0: Send WNM-Notification to %02x:%02x:%02x:%02x:%02x:%02x "
"to indicate Subscription Remediation",
*((unsigned char *)timeout_ctx + ... | static void ieee802_1x_wnm_notif_send(void *eloop_ctx, void *timeout_ctx) {
struct hostapd_data *hapd = eloop_ctx;
struct sta_info *sta = timeout_ctx;
if (sta->remediation) {
wpa_printf(MSG_DEBUG,
"HS 2.0: Send WNM-Notification to " MACSTR
" to indicate Subscription Remediation"... | ieee802_1x_wnm_notif_send | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ieee802_edmg_is_allowed(ieee80211_edmg_config allowed,
ieee80211_edmg_config requested) {
return (allowed.channels & requested.channels) == requested.channels &&
(requested.bw_config & 3u) <= (allowed.bw_config & 3u) &&
requested.bw_config <= (unsigned int)allowed.bw_... | int ieee802_edmg_is_allowed(struct ieee80211_edmg_config allowed,
struct ieee80211_edmg_config requested) {
if (((requested.channels & allowed.channels) != requested.channels) ||
((requested.bw_config % 4) > (allowed.bw_config % 4)) ||
requested.bw_config > allowed.bw_config)
... | ieee802_edmg_is_allowed | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int iface_exists(const char *ifname) { return if_nametoindex(ifname); } | int iface_exists(const char *ifname) { return if_nametoindex(ifname); } | iface_exists | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int iface_peers(const char *group_id, char *buf, size_t buflen) {
size_t v4;
unsigned int found;
int ret;
int res;
fst_get_peer_ctx *ctx;
fst_iface *f;
const u8 *addr;
fst_group *g;
const char *ifname;
const char *in;
unsigned long v15;
v15 = __readfsqword(0x28u);
found = 0;
ret = 0;
g = ... | static int iface_peers(const char *group_id, char *buf, size_t buflen) {
const char *ifname;
struct fst_group *g;
struct fst_iface *f;
struct fst_get_peer_ctx *ctx;
const u8 *addr;
unsigned found = 0;
int ret = 0;
g = get_fst_group_by_id(group_id);
if (!g) {
fst_printf(MSG_WARNING, "CTRL: Cannot ... | iface_peers | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ifconfig_down(const char *if_name) {
wpa_printf(2, "VLAN: Set interface %s down", if_name);
return ifconfig_helper(if_name, 0);
} | static int ifconfig_down(const char *if_name) {
wpa_printf(MSG_DEBUG, "VLAN: Set interface %s down", if_name);
return ifconfig_helper(if_name, 0);
} | ifconfig_down | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ifconfig_helper(const char *if_name, int up) {
int *v2;
char *v3;
int *v5;
char *v6;
int *v7;
char *v8;
int fd;
ifreq ifr;
unsigned long v11;
v11 = __readfsqword(0x28u);
fd = socket(2, 1, 0);
if (fd >= 0) {
memset(&ifr, 0, sizeof(ifr));
os_strlcpy(ifr.ifr_ifrn.ifrn_name, if_name, 0x... | int ifconfig_helper(const char *if_name, int up) {
int fd;
struct ifreq ifr;
if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
wpa_printf(MSG_ERROR,
"VLAN: %s: socket(AF_INET,SOCK_STREAM) "
"failed: %s",
__func__, strerror(errno));
return -1;
}
os_memset(... | ifconfig_helper | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ifconfig_up(const char *if_name) {
wpa_printf(2, "VLAN: Set interface %s up", if_name);
return ifconfig_helper(if_name, 1);
} | int ifconfig_up(const char *if_name) {
wpa_printf(MSG_DEBUG, "VLAN: Set interface %s up", if_name);
return ifconfig_helper(if_name, 1);
} | ifconfig_up | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ifname_in_use(hapd_interfaces *interfaces, const char *ifname) {
size_t i;
size_t j;
hostapd_iface *iface;
for (i = 0; i < interfaces->count; ++i) {
iface = interfaces->iface[i];
for (j = 0; j < iface->num_bss; ++j) {
if (!strcmp(ifname, iface->bss[j]->conf->iface))
return 1;
}
... | static int ifname_in_use(struct hapd_interfaces *interfaces,
const char *ifname) {
size_t i, j;
for (i = 0; i < interfaces->count; i++) {
struct hostapd_iface *iface = interfaces->iface[i];
for (j = 0; j < iface->num_bss; j++) {
struct hostapd_data *hapd = iface->bss[j];
... | ifname_in_use | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_build_auth(ikev2_initiator_data *data, wpabuf *msg, u8 next_payload) {
u8 *v4;
unsigned short v5;
const ikev2_prf_alg *prf;
ikev2_payload_hdr *phdr;
wpa_printf(2, "IKEV2: Adding AUTH payload");
prf = ikev2_get_prf(data->proposal.prf);
if (!prf)
return -1;
phdr = (ikev2_payload_hdr *)wpabu... | static int ikev2_build_auth(struct ikev2_initiator_data *data,
struct wpabuf *msg, u8 next_payload) {
struct ikev2_payload_hdr *phdr;
size_t plen;
const struct ikev2_prf_alg *prf;
wpa_printf(MSG_DEBUG, "IKEV2: Adding AUTH payload");
prf = ikev2_get_prf(data->proposal.prf);
if (... | ikev2_build_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_build_encrypted(int encr_id, int integ_id, ikev2_keys *keys,
int initiator, wpabuf *msg, wpabuf *plain,
u8 next_payload) {
u8 *SK_ei;
u8 *SK_ai;
size_t v10;
size_t v11;
u8 *v12;
const u8 *v13;
unsigned short v14;
size_t v15;
const u8 *v16;
... | int ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys,
int initiator, struct wpabuf *msg,
struct wpabuf *plain, u8 next_payload) {
struct ikev2_payload_hdr *phdr;
size_t plen;
size_t iv_len, pad_len;
u8 *icv, *iv;
const struct ikev2_in... | ikev2_build_encrypted | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ikev2_build_hdr(ikev2_initiator_data *data, wpabuf *msg, u8 exchange_type,
u8 next_payload, u32 message_id) {
ikev2_hdr *hdr;
wpa_printf(2, "IKEV2: Adding HDR");
hdr = (ikev2_hdr *)wpabuf_put(msg, 0x1Cu);
*(_QWORD *)hdr->i_spi = *(_QWORD *)data->i_spi;
*(_QWORD *)hdr->r_spi = *(_QWO... | static void ikev2_build_hdr(struct ikev2_initiator_data *data,
struct wpabuf *msg, u8 exchange_type,
u8 next_payload, u32 message_id) {
struct ikev2_hdr *hdr;
wpa_printf(MSG_DEBUG, "IKEV2: Adding HDR");
hdr = wpabuf_put(msg, sizeof(*hdr));
os_memcpy(hdr-... | ikev2_build_hdr | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_build_idi(ikev2_initiator_data *data, wpabuf *msg, u8 next_payload) {
unsigned short v4;
ikev2_payload_hdr *phdr;
wpa_printf(2, "IKEV2: Adding IDi payload");
if (data->IDi) {
phdr = (ikev2_payload_hdr *)wpabuf_put(msg, 4u);
phdr->next_payload = next_payload;
phdr->flags = 0;
wpabuf_pu... | static int ikev2_build_idi(struct ikev2_initiator_data *data,
struct wpabuf *msg, u8 next_payload) {
struct ikev2_payload_hdr *phdr;
size_t plen;
wpa_printf(MSG_DEBUG, "IKEV2: Adding IDi payload");
if (data->IDi == NULL) {
wpa_printf(MSG_INFO, "IKEV2: No IDi available");
ret... | ikev2_build_idi | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_build_kei(ikev2_initiator_data *data, wpabuf *msg, u8 next_payload) {
size_t prime_len;
size_t v5;
unsigned short v6;
wpabuf *pv;
ikev2_payload_hdr *phdr;
wpa_printf(2, "IKEV2: Adding KEi payload");
data->dh = dh_groups_get(data->proposal.dh);
pv = dh_init(data->dh, &data->i_dh_private);
if... | static int ikev2_build_kei(struct ikev2_initiator_data *data,
struct wpabuf *msg, u8 next_payload) {
struct ikev2_payload_hdr *phdr;
size_t plen;
struct wpabuf *pv;
wpa_printf(MSG_DEBUG, "IKEV2: Adding KEi payload");
data->dh = dh_groups_get(data->proposal.dh);
pv = dh_init(data... | ikev2_build_kei | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_build_ni(ikev2_initiator_data *data, wpabuf *msg, u8 next_payload) {
unsigned short v3;
ikev2_payload_hdr *phdr;
wpa_printf(2, "IKEV2: Adding Ni payload");
phdr = (ikev2_payload_hdr *)wpabuf_put(msg, 4u);
phdr->next_payload = next_payload;
phdr->flags = 0;
wpabuf_put_data_42(msg, data->i_nonce,... | static int ikev2_build_ni(struct ikev2_initiator_data *data, struct wpabuf *msg,
u8 next_payload) {
struct ikev2_payload_hdr *phdr;
size_t plen;
wpa_printf(MSG_DEBUG, "IKEV2: Adding Ni payload");
phdr = wpabuf_put(msg, sizeof(*phdr));
phdr->next_payload = next_payload;
phdr->flag... | ikev2_build_ni | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
wpabuf *ikev2_build_sa_auth(ikev2_initiator_data *data) {
size_t secret_len;
const u8 *secret;
wpabuf *msg;
wpabuf *plain;
unsigned long v6;
v6 = __readfsqword(0x28u);
secret = data->get_shared_secret(data->cb_ctx, data->IDr, data->IDr_len,
&secret_len);
if (secret) {... | static struct wpabuf *ikev2_build_sa_auth(struct ikev2_initiator_data *data) {
struct wpabuf *msg, *plain;
const u8 *secret;
size_t secret_len;
secret = data->get_shared_secret(data->cb_ctx, data->IDr, data->IDr_len,
&secret_len);
if (secret == NULL) {
wpa_printf(MSG_IN... | ikev2_build_sa_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
wpabuf *ikev2_build_sa_init(ikev2_initiator_data *data) {
wpabuf *msg;
if (os_get_random(data->i_spi, 8u))
return 0;
wpa_hexdump(2, "IKEV2: IKE_SA Initiator's SPI", data->i_spi, 8u);
data->i_nonce_len = 16;
if (random_get_bytes(data->i_nonce, data->i_nonce_len))
return 0;
wpa_hexdump(2, "IKEV2: Ni"... | static struct wpabuf *ikev2_build_sa_init(struct ikev2_initiator_data *data) {
struct wpabuf *msg;
if (os_get_random(data->i_spi, IKEV2_SPI_LEN))
return NULL;
wpa_hexdump(MSG_DEBUG, "IKEV2: IKE_SA Initiator's SPI", data->i_spi,
IKEV2_SPI_LEN);
data->i_nonce_len = IKEV2_NONCE_MIN_LEN;
if (r... | ikev2_build_sa_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_build_sai(ikev2_initiator_data *data, wpabuf *msg, u8 next_payload) {
unsigned short v3;
unsigned short v4;
unsigned short v5;
ikev2_payload_hdr *phdr;
ikev2_proposal *p;
ikev2_transform *t;
ikev2_transform *ta;
ikev2_transform *tb;
ikev2_transform *tc;
wpa_printf(2, "IKEV2: Adding SAi pa... | static int ikev2_build_sai(struct ikev2_initiator_data *data,
struct wpabuf *msg, u8 next_payload) {
struct ikev2_payload_hdr *phdr;
size_t plen;
struct ikev2_proposal *p;
struct ikev2_transform *t;
wpa_printf(MSG_DEBUG, "IKEV2: Adding SAi payload");
phdr = wpabuf_put(msg, sizeo... | ikev2_build_sai | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *ikev2_decrypt_payload(int encr_id, int integ_id, ikev2_keys *keys,
int initiator, const ikev2_hdr *hdr,
const u8 *encrypted, size_t encrypted_len,
size_t *res_len) {
u8 *SK_ei;
u8 *SK_ai;
const u8 *SK_e;
const u8 *SK_a;
const ik... | u8 *ikev2_decrypt_payload(int encr_id, int integ_id, struct ikev2_keys *keys,
int initiator, const struct ikev2_hdr *hdr,
const u8 *encrypted, size_t encrypted_len,
size_t *res_len) {
size_t iv_len;
const u8 *pos, *end, *iv, *integ;
u8 ... | ikev2_decrypt_payload | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_derive_auth_data(int prf_alg, const wpabuf *sign_msg, const u8 *ID,
size_t ID_len, u8 ID_type, ikev2_keys *keys,
int initiator, const u8 *shared_secret,
size_t shared_secret_len, const u8 *nonce,
size_t... | int ikev2_derive_auth_data(int prf_alg, const struct wpabuf *sign_msg,
const u8 *ID, size_t ID_len, u8 ID_type,
struct ikev2_keys *keys, int initiator,
const u8 *shared_secret, size_t shared_secret_len,
const u8 ... | ikev2_derive_auth_data | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_derive_keys(ikev2_initiator_data *data) {
size_t prime_len;
size_t v3;
int ret;
const ikev2_integ_alg *integ;
const ikev2_prf_alg *prf;
const ikev2_encr_alg *encr;
wpabuf *shared;
size_t buf_len;
u8 *buf;
u8 *pos;
u8 *posa;
size_t pad_len;
u8 *pad;
const u8 *addr[2];
size_t len[2... | static int ikev2_derive_keys(struct ikev2_initiator_data *data) {
u8 *buf, *pos, *pad, skeyseed[IKEV2_MAX_HASH_LEN];
size_t buf_len, pad_len;
struct wpabuf *shared;
const struct ikev2_integ_alg *integ;
const struct ikev2_prf_alg *prf;
const struct ikev2_encr_alg *encr;
int ret;
const u8 *addr[2];
size... | ikev2_derive_keys | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_derive_sk_keys(const ikev2_prf_alg *prf, const ikev2_integ_alg *integ,
const ikev2_encr_alg *encr, const u8 *skeyseed,
const u8 *data, size_t data_len, ikev2_keys *keys) {
size_t keybuf_len;
u8 *keybuf;
u8 *pos;
u8 *posa;
u8 *posb;
u8 *posc;
u8 *... | int ikev2_derive_sk_keys(const struct ikev2_prf_alg *prf,
const struct ikev2_integ_alg *integ,
const struct ikev2_encr_alg *encr, const u8 *skeyseed,
const u8 *data, size_t data_len,
struct ikev2_keys *keys) {
u8 *keyb... | ikev2_derive_sk_keys | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_encr_decrypt(int alg, const u8 *key, size_t key_len, const u8 *iv,
const u8 *crypt, u8 *plain, size_t len) {
crypto_cipher *v7;
crypto_cipher *cipher;
if (alg == 3) {
v7 = crypto_cipher_init(crypto_cipher_alg_CRYPTO_CIPHER_ALG_3DES, iv, key,
key_le... | int ikev2_encr_decrypt(int alg, const u8 *key, size_t key_len, const u8 *iv,
const u8 *crypt, u8 *plain, size_t len) {
struct crypto_cipher *cipher;
int encr_alg;
switch (alg) {
case ENCR_3DES:
encr_alg = CRYPTO_CIPHER_ALG_3DES;
break;
case ENCR_AES_CBC:
encr_alg = CRYPTO_C... | ikev2_encr_decrypt | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_encr_encrypt(int alg, const u8 *key, size_t key_len, const u8 *iv,
const u8 *plain, u8 *crypt, size_t len) {
crypto_cipher *v7;
crypto_cipher *cipher;
if (alg == 3) {
v7 = crypto_cipher_init(crypto_cipher_alg_CRYPTO_CIPHER_ALG_3DES, iv, key,
key_le... | int ikev2_encr_encrypt(int alg, const u8 *key, size_t key_len, const u8 *iv,
const u8 *plain, u8 *crypt, size_t len) {
struct crypto_cipher *cipher;
int encr_alg;
switch (alg) {
case ENCR_3DES:
encr_alg = CRYPTO_CIPHER_ALG_3DES;
break;
case ENCR_AES_CBC:
encr_alg = CRYPTO_C... | ikev2_encr_encrypt | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ikev2_free_keys(ikev2_keys *keys) {
free(keys->SK_d);
free(keys->SK_ai);
free(keys->SK_ar);
free(keys->SK_ei);
free(keys->SK_er);
free(keys->SK_pi);
free(keys->SK_pr);
keys->SK_pr = 0;
keys->SK_pi = keys->SK_pr;
keys->SK_er = keys->SK_pi;
keys->SK_ei = keys->SK_er;
keys->SK_ar = keys->SK_ei... | void ikev2_free_keys(struct ikev2_keys *keys) {
os_free(keys->SK_d);
os_free(keys->SK_ai);
os_free(keys->SK_ar);
os_free(keys->SK_ei);
os_free(keys->SK_er);
os_free(keys->SK_pi);
os_free(keys->SK_pr);
keys->SK_d = keys->SK_ai = keys->SK_ar = keys->SK_ei = keys->SK_er =
keys->SK_pi = keys->SK_pr = ... | ikev2_free_keys | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const ikev2_encr_alg *ikev2_get_encr(int id) {
size_t i;
for (i = 0; i <= 1; ++i) {
if (id == ikev2_encr_algs[i].id)
return &ikev2_encr_algs[i];
}
return 0;
} | const struct ikev2_encr_alg *ikev2_get_encr(int id) {
size_t i;
for (i = 0; i < NUM_ENCR_ALGS; i++) {
if (ikev2_encr_algs[i].id == id)
return &ikev2_encr_algs[i];
}
return NULL;
} | ikev2_get_encr | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const ikev2_integ_alg *ikev2_get_integ(int id) {
size_t i;
for (i = 0; i <= 1; ++i) {
if (id == ikev2_integ_algs[i].id)
return &ikev2_integ_algs[i];
}
return 0;
} | const struct ikev2_integ_alg *ikev2_get_integ(int id) {
size_t i;
for (i = 0; i < NUM_INTEG_ALGS; i++) {
if (ikev2_integ_algs[i].id == id)
return &ikev2_integ_algs[i];
}
return NULL;
} | ikev2_get_integ | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const ikev2_prf_alg *ikev2_get_prf(int id) {
size_t i;
for (i = 0; i <= 1; ++i) {
if (id == ikev2_prf_algs[i].id)
return &ikev2_prf_algs[i];
}
return 0;
} | const struct ikev2_prf_alg *ikev2_get_prf(int id) {
size_t i;
for (i = 0; i < NUM_PRF_ALGS; i++) {
if (ikev2_prf_algs[i].id == id)
return &ikev2_prf_algs[i];
}
return NULL;
} | ikev2_get_prf | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
wpabuf *ikev2_initiator_build(ikev2_initiator_data *data) {
ikev2_initiator_data_$FCF22A2D182DE13F53D6669E2D7BABBA state;
state = data->state;
if (data->state == IKEV2_DONE)
return 0;
if ((unsigned int)state > IKEV2_DONE)
return 0;
if (state == CHILD_SA)
return 0;
if ((unsigned int)state > CHIL... | struct wpabuf *ikev2_initiator_build(struct ikev2_initiator_data *data) {
switch (data->state) {
case SA_INIT:
return ikev2_build_sa_init(data);
case SA_AUTH:
return ikev2_build_sa_auth(data);
case CHILD_SA:
return NULL;
case IKEV2_DONE:
return NULL;
}
return NULL;
} | ikev2_initiator_build | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ikev2_initiator_deinit(ikev2_initiator_data *data) {
ikev2_free_keys(&data->keys);
wpabuf_free(data->r_dh_public);
wpabuf_free(data->i_dh_private);
free(data->IDi);
free(data->IDr);
free(data->shared_secret);
wpabuf_free(data->i_sign_msg);
wpabuf_free(data->r_sign_msg);
free(data->key_pad);
} | void ikev2_initiator_deinit(struct ikev2_initiator_data *data) {
ikev2_free_keys(&data->keys);
wpabuf_free(data->r_dh_public);
wpabuf_free(data->i_dh_private);
os_free(data->IDi);
os_free(data->IDr);
os_free(data->shared_secret);
wpabuf_free(data->i_sign_msg);
wpabuf_free(data->r_sign_msg);
os_free(da... | ikev2_initiator_deinit | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_initiator_process(ikev2_initiator_data *data, const wpabuf *buf) {
size_t v2;
const u8 *v4;
size_t v5;
ikev2_initiator_data_$FCF22A2D182DE13F53D6669E2D7BABBA state;
u32 message_id;
u32 length;
const ikev2_hdr *hdr;
const u8 *end;
ikev2_payloads pl;
unsigned long v12;
v12 = __readfsqword... | int ikev2_initiator_process(struct ikev2_initiator_data *data,
const struct wpabuf *buf) {
const struct ikev2_hdr *hdr;
u32 length, message_id;
const u8 *pos, *end;
struct ikev2_payloads pl;
wpa_printf(MSG_MSGDUMP, "IKEV2: Received message (len %lu)",
(unsigned long)w... | ikev2_initiator_process | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_integ_hash(int alg, const u8 *key, size_t key_len, const u8 *data,
size_t data_len, u8 *hash) {
u8 tmphash[24];
unsigned long v9;
v9 = __readfsqword(0x28u);
if (alg == 1) {
if (key_len == 16) {
if (hmac_md5(key, 0x10u, data, data_len, tmphash) >= 0) {
LABEL_7:
... | int ikev2_integ_hash(int alg, const u8 *key, size_t key_len, const u8 *data,
size_t data_len, u8 *hash) {
u8 tmphash[IKEV2_MAX_HASH_LEN];
switch (alg) {
case AUTH_HMAC_SHA1_96:
if (key_len != 20)
return -1;
if (hmac_sha1(key, key_len, data, data_len, tmphash) < 0)
return ... | ikev2_integ_hash | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_keys_set(ikev2_keys *keys) {
return keys->SK_d && keys->SK_ai && keys->SK_ar && keys->SK_ei &&
keys->SK_er && keys->SK_pi && keys->SK_pr;
} | int ikev2_keys_set(struct ikev2_keys *keys) {
return keys->SK_d && keys->SK_ai && keys->SK_ar && keys->SK_ei &&
keys->SK_er && keys->SK_pi && keys->SK_pr;
} | ikev2_keys_set | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_parse_payloads(ikev2_payloads *payloads, u8 next_payload,
const u8 *pos, const u8 *end) {
unsigned int plen;
unsigned int pdatalen;
const u8 *pdata;
memset(payloads, 0, sizeof(ikev2_payloads));
while (next_payload) {
wpa_printf(2, "IKEV2: Processing payload %u", next_pa... | int ikev2_parse_payloads(struct ikev2_payloads *payloads, u8 next_payload,
const u8 *pos, const u8 *end) {
const struct ikev2_payload_hdr *phdr;
os_memset(payloads, 0, sizeof(*payloads));
while (next_payload != IKEV2_PAYLOAD_NO_NEXT_PAYLOAD) {
unsigned int plen, pdatalen, left;
... | ikev2_parse_payloads | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_parse_proposal(ikev2_initiator_data *data, ikev2_proposal_data *prop,
const u8 *pos, const u8 *end) {
int i;
signed int proposal_len;
int tlen;
const u8 *ppos;
const u8 *pend;
if (end - pos <= 7) {
wpa_printf(3, "IKEV2: Too short proposal");
return -1;
}
propo... | static int ikev2_parse_proposal(struct ikev2_initiator_data *data,
struct ikev2_proposal_data *prop, const u8 *pos,
const u8 *end) {
const u8 *pend, *ppos;
int proposal_len, i;
const struct ikev2_proposal *p;
if (end - pos < (int)sizeof(*p)) {
... | ikev2_parse_proposal | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_parse_transform(ikev2_initiator_data *data, ikev2_proposal_data *prop,
const u8 *pos, const u8 *end) {
int v5;
u16 v6;
const u8 *posb;
u16 transform_id;
unsigned int transform_len;
const u8 *tend;
if (end - pos <= 7) {
wpa_printf(3, "IKEV2: Too short transform");
... | static int ikev2_parse_transform(struct ikev2_initiator_data *data,
struct ikev2_proposal_data *prop,
const u8 *pos, const u8 *end) {
int transform_len;
const struct ikev2_transform *t;
u16 transform_id;
const u8 *tend;
if (end - pos < (int)si... | ikev2_parse_transform | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_prf_hash(int alg, const u8 *key, size_t key_len, size_t num_elem,
const u8 **addr, const size_t *len, u8 *hash) {
if (alg == 1)
return hmac_md5_vector(key, key_len, num_elem, addr, len, hash);
if (alg == 2)
return hmac_sha1_vector(key, key_len, num_elem, addr, len, hash);
retu... | int ikev2_prf_hash(int alg, const u8 *key, size_t key_len, size_t num_elem,
const u8 *addr[], const size_t *len, u8 *hash) {
switch (alg) {
case PRF_HMAC_SHA1:
return hmac_sha1_vector(key, key_len, num_elem, addr, len, hash);
case PRF_HMAC_MD5:
return hmac_md5_vector(key, key_len, num_e... | ikev2_prf_hash | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_prf_plus(int alg, const u8 *key, size_t key_len, const u8 *data,
size_t data_len, u8 *out, size_t out_len) {
u8 iter;
int res;
u8 *pos;
size_t clen;
const ikev2_prf_alg *prf;
size_t hash_len;
u8 *end;
const u8 *addr[3];
size_t len[4];
u8 hash[24];
unsigned long v22;
... | int ikev2_prf_plus(int alg, const u8 *key, size_t key_len, const u8 *data,
size_t data_len, u8 *out, size_t out_len) {
u8 hash[IKEV2_MAX_HASH_LEN];
size_t hash_len;
u8 iter, *pos, *end;
const u8 *addr[3];
size_t len[3];
const struct ikev2_prf_alg *prf;
int res;
prf = ikev2_get_prf(al... | ikev2_prf_plus | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_auth(ikev2_initiator_data *data, const u8 *auth,
size_t auth_len) {
ikev2_initiator_data_$1338765C29CDF0D11D96E6293B9185C4 peer_auth;
size_t auth_lena;
const u8 *autha;
u8 auth_method;
if (auth) {
if (auth_len > 3) {
auth_method = *auth;
autha = auth +... | static int ikev2_process_auth(struct ikev2_initiator_data *data, const u8 *auth,
size_t auth_len) {
u8 auth_method;
if (auth == NULL) {
wpa_printf(MSG_INFO, "IKEV2: No Authentication Payload");
return -1;
}
if (auth_len < 4) {
wpa_printf(MSG_INFO, "IKEV2: Too short Au... | ikev2_process_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_auth_cert(ikev2_initiator_data *data, u8 method,
const u8 *auth, size_t auth_len) {
if (method == 1)
return 0;
wpa_printf(3, "IKEV2: Unsupported authentication method %d", method);
return -1;
} | static int ikev2_process_auth_cert(struct ikev2_initiator_data *data, u8 method,
const u8 *auth, size_t auth_len) {
if (method != AUTH_RSA_SIGN) {
wpa_printf(MSG_INFO,
"IKEV2: Unsupported authentication "
"method %d",
method);
ret... | ikev2_process_auth_cert | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_auth_secret(ikev2_initiator_data *data, u8 method,
const u8 *auth, size_t auth_len) {
const ikev2_prf_alg *prf;
u8 auth_data[24];
unsigned long v9;
v9 = __readfsqword(0x28u);
if (method == 2) {
if (ikev2_derive_auth_data(data->proposal.prf, data->r_sign_msg... | static int ikev2_process_auth_secret(struct ikev2_initiator_data *data,
u8 method, const u8 *auth,
size_t auth_len) {
u8 auth_data[IKEV2_MAX_HASH_LEN];
const struct ikev2_prf_alg *prf;
if (method != AUTH_SHARED_KEY_MIC) {
wpa_printf(MS... | ikev2_process_auth_secret | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_cert(ikev2_initiator_data *data, const u8 *cert,
size_t cert_len) {
if (cert) {
if (cert_len) {
wpa_printf(2, "IKEV2: Cert Encoding %d", *cert);
wpa_hexdump(1, "IKEV2: Certificate Data", cert + 1, cert_len - 1);
return 0;
} else {
wpa_printf(3, ... | static int ikev2_process_cert(struct ikev2_initiator_data *data, const u8 *cert,
size_t cert_len) {
u8 cert_encoding;
if (cert == NULL) {
if (data->peer_auth == PEER_AUTH_CERT) {
wpa_printf(MSG_INFO, "IKEV2: No Certificate received");
return -1;
}
return 0;
}... | ikev2_process_cert | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_idr(ikev2_initiator_data *data, const u8 *idr,
size_t idr_len) {
size_t idr_lena;
const u8 *idra;
u8 id_type;
if (!idr) {
wpa_printf(3, "IKEV2: No IDr received");
return -1;
}
if (idr_len <= 3) {
wpa_printf(3, "IKEV2: Too short IDr payload");
return -... | static int ikev2_process_idr(struct ikev2_initiator_data *data, const u8 *idr,
size_t idr_len) {
u8 id_type;
if (idr == NULL) {
wpa_printf(MSG_INFO, "IKEV2: No IDr received");
return -1;
}
if (idr_len < 4) {
wpa_printf(MSG_INFO, "IKEV2: Too short IDr payload");
ret... | ikev2_process_idr | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_ker(ikev2_initiator_data *data, const u8 *ker,
size_t ker_len) {
u16 group;
if (ker) {
if (ker_len > 0x63) {
group = WPA_GET_BE16_19(ker);
wpa_printf(2, "IKEV2: KEr DH Group #%u", group);
if (group == data->proposal.dh) {
if (data->dh) {
... | static int ikev2_process_ker(struct ikev2_initiator_data *data, const u8 *ker,
size_t ker_len) {
u16 group;
if (ker == NULL) {
wpa_printf(MSG_INFO, "IKEV2: KEr not received");
return -1;
}
if (ker_len < 4 + 96) {
wpa_printf(MSG_INFO, "IKEV2: Too show Key Exchange Paylo... | ikev2_process_ker | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_nr(ikev2_initiator_data *data, const u8 *nr, size_t nr_len) {
if (nr) {
if (nr_len > 0xF && nr_len <= 0x100) {
data->r_nonce_len = nr_len;
memcpy(data->r_nonce, nr, nr_len);
wpa_hexdump(1, "IKEV2: Nr", data->r_nonce, data->r_nonce_len);
return 0;
} else {
wpa_pr... | static int ikev2_process_nr(struct ikev2_initiator_data *data, const u8 *nr,
size_t nr_len) {
if (nr == NULL) {
wpa_printf(MSG_INFO, "IKEV2: Nr not received");
return -1;
}
if (nr_len < IKEV2_NONCE_MIN_LEN || nr_len > IKEV2_NONCE_MAX_LEN) {
wpa_printf(MSG_INFO, "IKEV2: Inv... | ikev2_process_nr | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_sa_auth(ikev2_initiator_data *data, const ikev2_hdr *hdr,
ikev2_payloads *pl) {
int ret;
size_t decrypted_len;
u8 *decrypted;
unsigned long v8;
v8 = __readfsqword(0x28u);
decrypted = ikev2_decrypt_payload(data->proposal.encr, data->proposal.integ,
... | static int ikev2_process_sa_auth(struct ikev2_initiator_data *data,
const struct ikev2_hdr *hdr,
struct ikev2_payloads *pl) {
u8 *decrypted;
size_t decrypted_len;
int ret;
decrypted = ikev2_decrypt_payload(data->proposal.encr, data->proposal.int... | ikev2_process_sa_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_sa_auth_decrypted(ikev2_initiator_data *data, u8 next_payload,
u8 *payload, size_t payload_len) {
ikev2_payloads pl;
unsigned long v8;
v8 = __readfsqword(0x28u);
wpa_printf(2, "IKEV2: Processing decrypted payloads");
if (ikev2_parse_payloads(&pl, next_pay... | static int ikev2_process_sa_auth_decrypted(struct ikev2_initiator_data *data,
u8 next_payload, u8 *payload,
size_t payload_len) {
struct ikev2_payloads pl;
wpa_printf(MSG_DEBUG, "IKEV2: Processing decrypted payloads");
if (ike... | ikev2_process_sa_auth_decrypted | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_sa_init(ikev2_initiator_data *data, const ikev2_hdr *hdr,
ikev2_payloads *pl) {
if (ikev2_process_sar1(data, pl->sa, pl->sa_len) < 0 ||
ikev2_process_ker(data, pl->ke, pl->ke_len) < 0 ||
ikev2_process_nr(data, pl->nonce, pl->nonce_len) < 0) {
return -1;
}
... | static int ikev2_process_sa_init(struct ikev2_initiator_data *data,
const struct ikev2_hdr *hdr,
struct ikev2_payloads *pl) {
if (ikev2_process_sar1(data, pl->sa, pl->sa_len) < 0 ||
ikev2_process_ker(data, pl->ke, pl->ke_len) < 0 ||
ikev2_p... | ikev2_process_sa_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_sa_init_encr(ikev2_initiator_data *data, const ikev2_hdr *hdr,
const u8 *encrypted, size_t encrypted_len,
u8 next_payload) {
int ret;
size_t decrypted_len;
u8 *decrypted;
ikev2_payloads pl;
unsigned long v11;
v11 = __readfsqwor... | static int ikev2_process_sa_init_encr(struct ikev2_initiator_data *data,
const struct ikev2_hdr *hdr,
const u8 *encrypted, size_t encrypted_len,
u8 next_payload) {
u8 *decrypted;
size_t decrypted_len;
... | ikev2_process_sa_init_encr | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_process_sar1(ikev2_initiator_data *data, const u8 *sar1,
size_t sar1_len) {
_BOOL4 found;
int plen;
const u8 *pos;
const u8 *end;
ikev2_proposal_data prop;
unsigned long v10;
v10 = __readfsqword(0x28u);
found = 0;
if (!sar1) {
wpa_printf(3, "IKEV2: SAr1 not receiv... | static int ikev2_process_sar1(struct ikev2_initiator_data *data, const u8 *sar1,
size_t sar1_len) {
struct ikev2_proposal_data prop;
const u8 *pos, *end;
int found = 0;
if (sar1 == NULL) {
wpa_printf(MSG_INFO, "IKEV2: SAr1 not received");
return -1;
}
os_memset(&prop,... | ikev2_process_sar1 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void ikev2_update_hdr(wpabuf *msg) {
u32 v1;
ikev2_hdr *hdr;
hdr = (ikev2_hdr *)wpabuf_mhead_8(msg);
v1 = wpabuf_len_62(msg);
WPA_PUT_BE32_17(hdr->length, v1);
} | void ikev2_update_hdr(struct wpabuf *msg) {
struct ikev2_hdr *hdr;
hdr = wpabuf_mhead(msg);
WPA_PUT_BE32(hdr->length, wpabuf_len(msg));
} | ikev2_update_hdr | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int ikev2_validate_rx_state(ikev2_initiator_data *data, u8 exchange_type,
u32 message_id) {
ikev2_initiator_data_$FCF22A2D182DE13F53D6669E2D7BABBA state;
state = data->state;
if (data->state == IKEV2_DONE)
return -1;
if ((unsigned int)state <= IKEV2_DONE) {
if (state == CHIL... | static int ikev2_validate_rx_state(struct ikev2_initiator_data *data,
u8 exchange_type, u32 message_id) {
switch (data->state) {
case SA_INIT:
if (exchange_type != IKE_SA_INIT) {
wpa_printf(MSG_INFO,
"IKEV2: Unexpected Exchange Type "
"... | ikev2_validate_rx_state | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void int_array_add_unique(int **res, int a) {
size_t reslen;
int *n;
for (reslen = 0; *res && (*res)[reslen]; ++reslen) {
if (a == (*res)[reslen])
return;
}
if (reslen <= 0xFFFFFFFFFFFFFFFDLL &&
(n = (int *)os_realloc_array_5(*res, reslen + 2, 4u)) != 0) {
n[reslen] = a;
n[reslen + 1]... | void int_array_add_unique(int **res, int a) {
size_t reslen, max_size;
int *n;
for (reslen = 0; *res && (*res)[reslen]; reslen++) {
if ((*res)[reslen] == a)
return;
}
max_size = (size_t)-1;
if (reslen > max_size - 2) {
os_free(*res);
*res = NULL;
return;
}
n = os_realloc_array(*... | int_array_add_unique | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void int_array_concat(int **res, const int *a) {
size_t i;
size_t reslen;
unsigned long alen;
int *n;
reslen = int_array_len(*res);
alen = int_array_len(a);
if (alen < -1LL - reslen &&
(n = (int *)os_realloc_array_5(*res, reslen + alen + 1, 4u)) != 0) {
for (i = 0; i <= alen; ++i)
n[resle... | void int_array_concat(int **res, const int *a) {
size_t reslen, alen, i, max_size;
int *n;
reslen = int_array_len(*res);
alen = int_array_len(a);
max_size = (size_t)-1;
if (alen >= max_size - reslen) {
os_free(*res);
*res = NULL;
return;
}
n = os_realloc_array(*res, reslen + alen + 1, size... | int_array_concat | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int interface_count(hostapd_iface *iface) {
int count;
unsigned long v3;
v3 = __readfsqword(0x28u);
count = 0;
if (!iface->interfaces || !iface->interfaces->for_each_interface)
return 0;
iface->interfaces->for_each_interface(
iface->interfaces, (int (*)(hostapd_iface *, void *))count_interface_cb... | static int interface_count(struct hostapd_iface *iface) {
int count = 0;
if (iface->interfaces == NULL ||
iface->interfaces->for_each_interface == NULL)
return 0;
iface->interfaces->for_each_interface(iface->interfaces, count_interface_cb,
&count);
return count;... | interface_count | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const char *ipaddr_str(u32 addr) {
snprintf(buf_0, 0x11u, "%u.%u.%u.%u", HIBYTE(addr), BYTE2(addr), BYTE1(addr),
(unsigned char)addr);
return buf_0;
} | static const char *ipaddr_str(u32 addr) {
static char buf[17];
os_snprintf(buf, sizeof(buf), "%u.%u.%u.%u", (addr >> 24) & 0xff,
(addr >> 16) & 0xff, (addr >> 8) & 0xff, addr & 0xff);
return buf;
} | ipaddr_str | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_11b(u8 rate) {
return rate == 2 || rate == 4 || rate == 11 || rate == 22;
} | static int is_11b(u8 rate) {
return rate == 0x02 || rate == 0x04 || rate == 0x0b || rate == 0x16;
} | is_11b | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_24ghz_mode(hostapd_hw_mode mode) {
return (unsigned int)mode <= hostapd_hw_mode_HOSTAPD_MODE_IEEE80211G;
} | static int is_24ghz_mode(enum hostapd_hw_mode mode) {
return mode == HOSTAPD_MODE_IEEE80211B || mode == HOSTAPD_MODE_IEEE80211G;
} | is_24ghz_mode | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_40_allowed(hostapd_iface *iface, int channel) {
int sec_freq;
int pri;
int pri_freq;
int affected_start;
int affected_end;
pri = 5 * channel + 2407;
if (iface->current_mode->mode != hostapd_hw_mode_HOSTAPD_MODE_IEEE80211G)
return 1;
pri_freq = hostapd_hw_get_freq(*iface->bss, iface->conf->ch... | static int is_40_allowed(struct hostapd_iface *iface, int channel) {
int pri_freq, sec_freq;
int affected_start, affected_end;
int pri = 2407 + 5 * channel;
if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)
return 1;
pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel);
if (ifa... | is_40_allowed | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
bool is_6ghz_freq(int freq) {
if (freq <= 5934 || freq > 7115)
return 0;
if (freq == 5935)
return 1;
return center_idx_to_bw_6ghz((freq - 5950) / 5) >= 0;
} | bool is_6ghz_freq(int freq) {
if (freq < 5935 || freq > 7115)
return false;
if (freq == 5935)
return true;
if (center_idx_to_bw_6ghz((freq - 5950) / 5) < 0)
return false;
return true;
} | is_6ghz_freq | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
bool is_6ghz_op_class(u8 op_class) {
return op_class > 0x82u && op_class <= 0x88u;
} | bool is_6ghz_op_class(u8 op_class) {
return op_class >= 131 && op_class <= 136;
} | is_6ghz_op_class | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
bool is_6ghz_psc_frequency(int freq) {
int i;
if (!is_6ghz_freq(freq) || freq == 5935)
return 0;
if ((((char)(freq - 62) / 5) & 3) != 1)
return 0;
i = (freq - 5895) % 80;
if (!i)
i = (freq - 5895) / 80;
return i > 0 && i <= 15;
} | bool is_6ghz_psc_frequency(int freq) {
int i;
if (!is_6ghz_freq(freq) || freq == 5935)
return false;
if ((((freq - 5950) / 5) & 0x3) != 0x1)
return false;
i = (freq - 5950 + 55) % 80;
if (i == 0)
i = (freq - 5950 + 55) / 80;
if (i >= 1 && i <= 15)
return true;
return false;
} | is_6ghz_psc_frequency | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_ap_interface(nl80211_iftype nlmode) {
return nlmode == nl80211_iftype_NL80211_IFTYPE_AP ||
nlmode == nl80211_iftype_NL80211_IFTYPE_P2P_GO;
} | int is_ap_interface(enum nl80211_iftype nlmode) {
return nlmode == NL80211_IFTYPE_AP || nlmode == NL80211_IFTYPE_P2P_GO;
} | is_ap_interface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
bool is_cmd_with_nested_attrs(unsigned int vendor_id, unsigned int subcmd) {
if (vendor_id != 4980)
return 1;
if (subcmd <= 0x32)
return subcmd < 0xA || ((1LL << subcmd) & 0x4008000003400LL) == 0;
return subcmd != 161;
} | static bool is_cmd_with_nested_attrs(unsigned int vendor_id,
unsigned int subcmd) {
if (vendor_id != OUI_QCA)
return true;
switch (subcmd) {
case QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY:
case QCA_NL80211_VENDOR_SUBCMD_STATS_EXT:
case QCA_NL80211_VENDOR_SUBCMD_SCANNI... | is_cmd_with_nested_attrs | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_common_24ghz_chan(int chan) {
return chan == 1 || chan == 6 || chan == 11;
} | static int is_common_24ghz_chan(int chan) {
return chan == 1 || chan == 6 || chan == 11;
} | is_common_24ghz_chan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_dfs_global_op_class(u8 op_class) {
return op_class > 0x75u && op_class <= 0x7Bu;
} | int is_dfs_global_op_class(u8 op_class) {
return (op_class >= 118) && (op_class <= 123);
} | is_dfs_global_op_class | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_in_freqlist(hostapd_iface *iface, hostapd_channel_data *chan) {
if (iface->conf->acs_freq_list.num)
return freq_range_list_includes(&iface->conf->acs_freq_list, chan->freq);
else
return 1;
} | static int is_in_freqlist(struct hostapd_iface *iface,
struct hostapd_channel_data *chan) {
if (!iface->conf->acs_freq_list.num)
return 1;
return freq_range_list_includes(&iface->conf->acs_freq_list, chan->freq);
} | is_in_freqlist | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_mesh_interface(nl80211_iftype nlmode) {
return nlmode == nl80211_iftype_NL80211_IFTYPE_MESH_POINT;
} | static int is_mesh_interface(enum nl80211_iftype nlmode) {
return nlmode == NL80211_IFTYPE_MESH_POINT;
} | is_mesh_interface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_p2p_net_interface(nl80211_iftype nlmode) {
return nlmode == nl80211_iftype_NL80211_IFTYPE_P2P_CLIENT ||
nlmode == nl80211_iftype_NL80211_IFTYPE_P2P_GO;
} | static int is_p2p_net_interface(enum nl80211_iftype nlmode) {
return nlmode == NL80211_IFTYPE_P2P_CLIENT || nlmode == NL80211_IFTYPE_P2P_GO;
} | is_p2p_net_interface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_selected_pin_registrar(wps_parse_attr *attr) {
if (!attr->selected_registrar || !*attr->selected_registrar)
return 0;
return !attr->dev_password_id || WPA_GET_BE16_12(attr->dev_password_id) != 4;
} | static int is_selected_pin_registrar(struct wps_parse_attr *attr) {
if (!attr->selected_registrar || *attr->selected_registrar == 0)
return 0;
if (attr->dev_password_id != NULL &&
WPA_GET_BE16(attr->dev_password_id) == DEV_PW_PUSHBUTTON)
return 0;
#ifdef CONFIG_WPS_STRICT
if (!attr->sel_reg_confi... | is_selected_pin_registrar | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_sta_interface(nl80211_iftype nlmode) {
return nlmode == nl80211_iftype_NL80211_IFTYPE_STATION ||
nlmode == nl80211_iftype_NL80211_IFTYPE_P2P_CLIENT;
} | int is_sta_interface(enum nl80211_iftype nlmode) {
return nlmode == NL80211_IFTYPE_STATION ||
nlmode == NL80211_IFTYPE_P2P_CLIENT;
} | is_sta_interface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int is_tpm2_key(const char *path) {
return match_lines_in_file(path, tpm2_tags_3);
} | static int is_tpm2_key(const char *path) {
static const char *tpm2_tags[] = {"-----BEGIN TSS2 PRIVATE KEY-----",
"-----BEGIN TSS2 KEY BLOB-----", NULL};
return match_lines_in_file(path, tpm2_tags);
} | is_tpm2_key | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int json_add_base64(wpabuf *json, const char *name, const void *val,
size_t len) {
char *b64;
b64 = base64_encode_no_lf(val, len, 0);
if (!b64)
return -1;
json_add_string(json, name, b64);
free(b64);
return 0;
} | int json_add_base64(struct wpabuf *json, const char *name, const void *val,
size_t len) {
char *b64;
b64 = base64_encode_no_lf(val, len, NULL);
if (!b64)
return -1;
json_add_string(json, name, b64);
os_free(b64);
return 0;
} | json_add_base64 | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int json_add_base64url(wpabuf *json, const char *name, const void *val,
size_t len) {
char *b64;
b64 = base64_url_encode(val, len, 0);
if (!b64)
return -1;
json_add_string(json, name, b64);
free(b64);
return 0;
} | int json_add_base64url(struct wpabuf *json, const char *name, const void *val,
size_t len) {
char *b64;
b64 = base64_url_encode(val, len, NULL);
if (!b64)
return -1;
json_add_string(json, name, b64);
os_free(b64);
return 0;
} | json_add_base64url | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void json_add_int(wpabuf *json, const char *name, int val) {
wpabuf_printf(json, "\"%s\":%d", name, val);
} | void json_add_int(struct wpabuf *json, const char *name, int val) {
wpabuf_printf(json, "\"%s\":%d", name, val);
} | json_add_int | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void json_add_string(wpabuf *json, const char *name, const char *val) {
wpabuf_printf(json, "\"%s\":\"%s\"", name, val);
} | void json_add_string(struct wpabuf *json, const char *name, const char *val) {
wpabuf_printf(json, "\"%s\":\"%s\"", name, val);
} | json_add_string | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int json_add_string_escape(wpabuf *json, const char *name, const void *val,
size_t len) {
size_t tmp_len;
char *tmp;
tmp_len = 6 * len + 1;
tmp = (char *)malloc(tmp_len);
if (!tmp)
return -1;
json_escape_string(tmp, tmp_len, (const char *)val, len);
json_add_string(json, na... | int json_add_string_escape(struct wpabuf *json, const char *name,
const void *val, size_t len) {
char *tmp;
size_t tmp_len = 6 * len + 1;
tmp = os_malloc(tmp_len);
if (!tmp)
return -1;
json_escape_string(tmp, tmp_len, val, len);
json_add_string(json, name, tmp);
bin_clear_f... | json_add_string_escape | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
json_token *json_alloc_token(unsigned int *tokens) {
if (++*tokens <= 0x1F4) {
return (json_token *)os_zalloc(0x38u);
} else {
wpa_printf(2, "JSON: Maximum token limit exceeded");
return 0;
}
} | static struct json_token *json_alloc_token(unsigned int *tokens) {
(*tokens)++;
if (*tokens > JSON_MAX_TOKENS) {
wpa_printf(MSG_DEBUG, "JSON: Maximum token limit exceeded");
return NULL;
}
return os_zalloc(sizeof(struct json_token));
} | json_alloc_token | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int json_check_tree_state(json_token *token) {
char *name;
if (!token)
return 0;
if (json_check_tree_state(token->child) < 0 ||
json_check_tree_state(token->sibling) < 0)
return -1;
if (token->state == json_parsing_state_JSON_COMPLETED)
return 0;
if (token->name)
name = token->name;
e... | static int json_check_tree_state(struct json_token *token) {
if (!token)
return 0;
if (json_check_tree_state(token->child) < 0 ||
json_check_tree_state(token->sibling) < 0)
return -1;
if (token->state != JSON_COMPLETED) {
wpa_printf(MSG_DEBUG, "JSON: Unexpected token state %d (name=%s type=%d)",... | json_check_tree_state | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void json_end_array(wpabuf *json) { wpabuf_put_u8_39(json, 0x5Du); } | void json_end_array(struct wpabuf *json) { wpabuf_put_u8(json, ']'); } | json_end_array | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void json_end_object(wpabuf *json) { wpabuf_put_u8_39(json, 0x7Du); } | void json_end_object(struct wpabuf *json) { wpabuf_put_u8(json, '}'); } | json_end_object | 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.