Home
last modified time | relevance | path

Searched refs:rpos (Results 1 – 14 of 14) sorted by relevance

/hostap-3.7.0/hostapd/
Dhlr_auc_gw.c593 char *rpos, *rend; in sim_req_auth() local
609 rpos = resp; in sim_req_auth()
610 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); in sim_req_auth()
611 if (ret < 0 || ret >= rend - rpos) in sim_req_auth()
613 rpos += ret; in sim_req_auth()
622 *rpos++ = ' '; in sim_req_auth()
623 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in sim_req_auth()
624 *rpos++ = ':'; in sim_req_auth()
625 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4); in sim_req_auth()
626 *rpos++ = ':'; in sim_req_auth()
[all …]
Dconfig_file.c1464 char *pos, *end, *rpos; in parse_nai_realm() local
1576 rpos = realm->realm_buf; in parse_nai_realm()
1578 while (*rpos) { in parse_nai_realm()
1583 realm->realm[i++] = rpos; in parse_nai_realm()
1584 rpos = os_strchr(rpos, ';'); in parse_nai_realm()
1585 if (rpos == NULL) in parse_nai_realm()
1587 *rpos++ = '\0'; in parse_nai_realm()
/hostap-3.7.0/src/eap_peer/
Deap_pax.c122 u8 *rpos; in eap_pax_process_std_1() local
206 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); in eap_pax_process_std_1()
210 (u8 *) data->cid, data->cid_len, rpos); in eap_pax_process_std_1()
212 rpos, EAP_PAX_MAC_LEN); in eap_pax_process_std_1()
216 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_1()
219 NULL, 0, NULL, 0, rpos); in eap_pax_process_std_1()
220 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: ICV", rpos, EAP_PAX_ICV_LEN); in eap_pax_process_std_1()
237 u8 *rpos, mac[EAP_PAX_MAC_LEN]; in eap_pax_process_std_3() local
314 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_3()
317 NULL, 0, NULL, 0, rpos) < 0) { in eap_pax_process_std_3()
[all …]
Deap_md5.c35 u8 *rpos, id; in eap_md5_process() local
88 rpos = wpabuf_put(resp, CHAP_MD5_LEN); in eap_md5_process()
90 rpos)) { in eap_md5_process()
96 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Response", rpos, CHAP_MD5_LEN); in eap_md5_process()
Deap_sake.c192 u8 *rpos; in eap_sake_process_challenge() local
268 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_challenge()
272 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_challenge()
273 rpos)) { in eap_sake_process_challenge()
296 u8 *rpos; in eap_sake_process_confirm() local
350 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_confirm()
354 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_confirm()
355 rpos)) { in eap_sake_process_confirm()
Deap_leap.c66 u8 challenge_len, *rpos; in eap_leap_process_request() local
117 rpos = wpabuf_put(resp, LEAP_RESPONSE_LEN); in eap_leap_process_request()
118 if ((pwhash && challenge_response(challenge, password, rpos)) || in eap_leap_process_request()
120 nt_challenge_response(challenge, password, password_len, rpos))) { in eap_leap_process_request()
126 os_memcpy(data->peer_response, rpos, LEAP_RESPONSE_LEN); in eap_leap_process_request()
128 rpos, LEAP_RESPONSE_LEN); in eap_leap_process_request()
Deap_gpsk.c319 u8 *rpos, *start; in eap_gpsk_send_gpsk_2() local
396 rpos = wpabuf_put(resp, miclen); in eap_gpsk_send_gpsk_2()
398 data->specifier, start, rpos - start, rpos) < in eap_gpsk_send_gpsk_2()
631 u8 *rpos, *start; in eap_gpsk_send_gpsk_4() local
649 rpos = wpabuf_put(resp, mlen); in eap_gpsk_send_gpsk_4()
651 data->specifier, start, rpos - start, rpos) < in eap_gpsk_send_gpsk_4()
Deap_tnc.c208 u8 *rpos, *rpos1; in eap_tnc_process() local
390 rpos = tncc_copy_send_buf(data->tncc, rpos1); in eap_tnc_process()
391 wpabuf_put(resp, rpos - rpos1); in eap_tnc_process()
Deap_eke.c362 u8 *rpos; in eap_eke_process_commit() local
451 rpos = wpabuf_put(resp, data->sess.dhcomp_len); in eap_eke_process_commit()
452 if (eap_eke_dhcomp(&data->sess, key, pub, rpos) < 0) { in eap_eke_process_commit()
462 rpos, data->sess.dhcomp_len); in eap_eke_process_commit()
/hostap-3.7.0/src/common/
Dwpa_common.c2486 u8 *start, *end, *rpos, *rend; in wpa_insert_pmkid() local
2505 rpos = start + 2; in wpa_insert_pmkid()
2506 rend = rpos + start[1]; in wpa_insert_pmkid()
2509 rpos += 2 + 4; in wpa_insert_pmkid()
2511 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN; in wpa_insert_pmkid()
2513 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN; in wpa_insert_pmkid()
2515 if (rpos == rend) { in wpa_insert_pmkid()
2517 os_memmove(rpos + 2, rpos, end - rpos); in wpa_insert_pmkid()
2518 *rpos++ = 0; in wpa_insert_pmkid()
2519 *rpos++ = 0; in wpa_insert_pmkid()
[all …]
/hostap-3.7.0/src/ap/
Dfils_hlp.c164 const u8 *rpos; in fils_dhcp_handler() local
291 rpos = wpabuf_head(resp); in fils_dhcp_handler()
305 wpabuf_put_data(sta->fils_hlp_resp, rpos, len - 1); in fils_dhcp_handler()
306 rpos += len - 1; in fils_dhcp_handler()
312 wpabuf_put_data(sta->fils_hlp_resp, rpos, len); in fils_dhcp_handler()
313 rpos += len; in fils_dhcp_handler()
Dgas_serv.c486 const u8 *rpos, *rend; in hs20_add_nai_home_realm_matches() local
491 rpos = realm_name; in hs20_add_nai_home_realm_matches()
492 while (rpos < realm_name + realm_len && in hs20_add_nai_home_realm_matches()
494 for (rend = rpos; in hs20_add_nai_home_realm_matches()
503 rend - rpos || in hs20_add_nai_home_realm_matches()
504 os_strncmp((char *) rpos, in hs20_add_nai_home_realm_matches()
506 rend - rpos) != 0) in hs20_add_nai_home_realm_matches()
513 rpos = rend + 1; in hs20_add_nai_home_realm_matches()
Dwpa_auth_ft.c2477 const u8 *rpos, *start; in wpa_ft_process_ric() local
2482 rpos = ric; in wpa_ft_process_ric()
2483 while (rpos + sizeof(*rdie) < ric + ric_len) { in wpa_ft_process_ric()
2484 if (rpos[0] != WLAN_EID_RIC_DATA || rpos[1] < sizeof(*rdie) || in wpa_ft_process_ric()
2485 rpos + 2 + rpos[1] > ric + ric_len) in wpa_ft_process_ric()
2487 rdie = (const struct rsn_rdie *) (rpos + 2); in wpa_ft_process_ric()
2488 rpos += 2 + rpos[1]; in wpa_ft_process_ric()
2489 start = rpos; in wpa_ft_process_ric()
2491 while (rpos + 2 <= ric + ric_len && in wpa_ft_process_ric()
2492 rpos + 2 + rpos[1] <= ric + ric_len) { in wpa_ft_process_ric()
[all …]
/hostap-3.7.0/src/eap_server/
Deap_server_tnc.c130 u8 *rpos, *rpos1; in eap_tnc_build() local
161 rpos = tncs_copy_send_buf(data->tncs, rpos1); in eap_tnc_build()
162 wpabuf_put(req, rpos - rpos1); in eap_tnc_build()