/hostap-latest/tests/ |
D | test-aes.c | 336 char buf[15000], *pos, *pos2; in test_nist_key_wrap_ae() local 356 pos2 = pos - 1; in test_nist_key_wrap_ae() 357 while (pos2 >= buf && *pos2 == ' ') in test_nist_key_wrap_ae() 358 *pos2-- = '\0'; in test_nist_key_wrap_ae() 362 pos2 = os_strchr(pos, '\r'); in test_nist_key_wrap_ae() 363 if (!pos2) in test_nist_key_wrap_ae() 364 pos2 = os_strchr(pos, '\n'); in test_nist_key_wrap_ae() 365 if (pos2) in test_nist_key_wrap_ae() 366 *pos2 = '\0'; in test_nist_key_wrap_ae() 368 pos2 = pos + os_strlen(pos); in test_nist_key_wrap_ae() [all …]
|
D | test-sha1.c | 19 char buf[15000], *pos, *pos2; in cavp_shavs() local 38 pos2 = pos - 1; in cavp_shavs() 39 while (pos2 >= buf && *pos2 == ' ') in cavp_shavs() 40 *pos2-- = '\0'; in cavp_shavs() 44 pos2 = os_strchr(pos, '\r'); in cavp_shavs() 45 if (!pos2) in cavp_shavs() 46 pos2 = os_strchr(pos, '\n'); in cavp_shavs() 47 if (pos2) in cavp_shavs() 48 *pos2 = '\0'; in cavp_shavs() 50 pos2 = pos + os_strlen(pos); in cavp_shavs()
|
D | test-sha256.c | 19 char buf[15000], *pos, *pos2; in cavp_shavs() local 38 pos2 = pos - 1; in cavp_shavs() 39 while (pos2 >= buf && *pos2 == ' ') in cavp_shavs() 40 *pos2-- = '\0'; in cavp_shavs() 44 pos2 = os_strchr(pos, '\r'); in cavp_shavs() 45 if (!pos2) in cavp_shavs() 46 pos2 = os_strchr(pos, '\n'); in cavp_shavs() 47 if (pos2) in cavp_shavs() 48 *pos2 = '\0'; in cavp_shavs() 50 pos2 = pos + os_strlen(pos); in cavp_shavs()
|
D | test-rsa-sig-ver.c | 22 char buf[15000], *pos, *pos2; in cavp_rsa_sig_ver() local 42 pos2 = pos - 1; in cavp_rsa_sig_ver() 43 while (pos2 >= buf && *pos2 == ' ') in cavp_rsa_sig_ver() 44 *pos2-- = '\0'; in cavp_rsa_sig_ver() 48 pos2 = os_strchr(pos, '\r'); in cavp_rsa_sig_ver() 49 if (!pos2) in cavp_rsa_sig_ver() 50 pos2 = os_strchr(pos, '\n'); in cavp_rsa_sig_ver() 51 if (pos2) in cavp_rsa_sig_ver() 52 *pos2 = '\0'; in cavp_rsa_sig_ver() 54 pos2 = pos + os_strlen(pos); in cavp_rsa_sig_ver()
|
/hostap-latest/src/ap/ |
D | mbo_ap.c | 132 char *pos2 = pos; in mbo_ap_get_info() local 134 ret = os_snprintf(pos2, end - pos2, in mbo_ap_get_info() 139 if (os_snprintf_error(end - pos2, ret)) in mbo_ap_get_info() 141 pos2 += ret; in mbo_ap_get_info() 144 ret = os_snprintf(pos2, end - pos2, "%u%s", in mbo_ap_get_info() 148 if (os_snprintf_error(end - pos2, ret)) { in mbo_ap_get_info() 149 pos2 = NULL; in mbo_ap_get_info() 152 pos2 += ret; in mbo_ap_get_info() 155 if (!pos2) in mbo_ap_get_info() 157 ret = os_snprintf(pos2, end - pos2, "\n"); in mbo_ap_get_info() [all …]
|
D | ctrl_iface_ap.c | 1117 const char *pos2 = os_strstr(pos, " " #str "="); \ in hostapd_parse_csa_settings() 1118 if (pos2) { \ in hostapd_parse_csa_settings() 1119 pos2 += sizeof(" " #str "=") - 1; \ in hostapd_parse_csa_settings() 1120 settings->freq_params.str = atoi(pos2); \ in hostapd_parse_csa_settings() 1126 const char *pos2 = os_strstr(pos, " " #str "="); \ in hostapd_parse_csa_settings() 1127 if (pos2) { \ in hostapd_parse_csa_settings() 1128 pos2 += sizeof(" " #str "=") - 1; \ in hostapd_parse_csa_settings() 1129 settings->str = atoi(pos2); \ in hostapd_parse_csa_settings() 1175 char *pos, *pos2; in hostapd_ctrl_iface_pmksa_add() local 1199 pos2 = os_strchr(pos, ' '); in hostapd_ctrl_iface_pmksa_add() [all …]
|
/hostap-latest/src/wps/ |
D | wps_er_ssdp.c | 26 char buf[MULTICAST_MAX_READ], *pos, *pos2, *start; in wps_er_ssdp_rx() local 82 pos2 = os_strstr(start, "max-age="); in wps_er_ssdp_rx() 83 if (pos2 == NULL) in wps_er_ssdp_rx() 85 pos2 += 8; in wps_er_ssdp_rx() 86 max_age = atoi(pos2); in wps_er_ssdp_rx() 89 pos2 = os_strstr(start, "uuid:"); in wps_er_ssdp_rx() 90 if (pos2) { in wps_er_ssdp_rx() 91 pos2 += 5; in wps_er_ssdp_rx() 92 while (*pos2 == ' ') in wps_er_ssdp_rx() 93 pos2++; in wps_er_ssdp_rx() [all …]
|
/hostap-latest/wpa_supplicant/ |
D | hs20_supplicant.c | 864 const u8 *pos2; in hs20_osu_add_prov() local 897 pos2 = pos; in hs20_osu_add_prov() 901 while (pos - pos2 >= 4 && prov->friendly_name_count < OSU_MAX_ITEMS) { in hs20_osu_add_prov() 905 slen = pos2[0]; in hs20_osu_add_prov() 906 if (1 + slen > pos - pos2) { in hs20_osu_add_prov() 916 pos2++; in hs20_osu_add_prov() 917 os_memcpy(f->lang, pos2, 3); in hs20_osu_add_prov() 918 pos2 += 3; in hs20_osu_add_prov() 920 os_memcpy(f->text, pos2, slen); in hs20_osu_add_prov() 921 pos2 += slen; in hs20_osu_add_prov() [all …]
|
D | ctrl_iface.c | 1199 const char *pos2 = os_strstr(pos, " " #str "="); \ in wpa_supplicant_ctrl_iface_tdls_chan_switch() 1200 if (pos2) { \ in wpa_supplicant_ctrl_iface_tdls_chan_switch() 1201 pos2 += sizeof(" " #str "=") - 1; \ in wpa_supplicant_ctrl_iface_tdls_chan_switch() 1202 freq_params.str = atoi(pos2); \ in wpa_supplicant_ctrl_iface_tdls_chan_switch() 1783 char *pos, *pos2; in wpas_ctrl_nfc_get_handover_sel() local 1798 pos2 = os_strchr(pos, ' '); in wpas_ctrl_nfc_get_handover_sel() 1799 if (pos2) in wpas_ctrl_nfc_get_handover_sel() 1800 *pos2++ = '\0'; in wpas_ctrl_nfc_get_handover_sel() 1806 os_strcmp(pos, "WPS-CR") == 0, pos2); in wpas_ctrl_nfc_get_handover_sel() 1831 char *pos, *role, *type, *pos2; in wpas_ctrl_nfc_report_handover() local [all …]
|
D | config_file.c | 89 char buf[2000], *pos, *pos2; in wpa_config_read_network() local 107 pos2 = os_strchr(pos, '='); in wpa_config_read_network() 108 if (pos2 == NULL) { in wpa_config_read_network() 115 *pos2++ = '\0'; in wpa_config_read_network() 116 if (*pos2 == '"') { in wpa_config_read_network() 117 if (os_strchr(pos2 + 1, '"') == NULL) { in wpa_config_read_network() 119 "quotation '%s'.", *line, pos2); in wpa_config_read_network() 125 if (wpa_config_set(ssid, pos, pos2, *line) < 0) { in wpa_config_read_network() 164 char buf[256], *pos, *pos2; in wpa_config_read_cred() local 179 pos2 = os_strchr(pos, '='); in wpa_config_read_cred() [all …]
|
D | wpa_cli.c | 4325 char *copy = NULL, *id, *pos2; in wpa_cli_action_process() local 4365 pos2 = id = copy; in wpa_cli_action_process() 4366 while (*pos2 && *pos2 != ' ') in wpa_cli_action_process() 4367 pos2++; in wpa_cli_action_process() 4368 *pos2++ = '\0'; in wpa_cli_action_process() 4371 while (*pos2 && *pos2 != '=') in wpa_cli_action_process() 4372 pos2++; in wpa_cli_action_process() 4373 if (*pos2 == '=') in wpa_cli_action_process() 4374 pos2++; in wpa_cli_action_process() 4375 id = pos2; in wpa_cli_action_process() [all …]
|
/hostap-latest/src/utils/ |
D | ext_password_test.c | 47 char *pos, *pos2; in ext_password_test_get() local 61 pos2 = pos; in ext_password_test_get() 62 while (*pos2 != '|' && *pos2 != '\0') in ext_password_test_get() 63 pos2++; in ext_password_test_get() 64 buf = ext_password_alloc(pos2 - pos); in ext_password_test_get() 67 wpabuf_put_data(buf, pos, pos2 - pos); in ext_password_test_get()
|
D | common.c | 786 const char *pos, *pos2, *pos3; in freq_range_list_parse() local 806 pos2 = os_strchr(pos, '-'); in freq_range_list_parse() 808 if (pos2 && (!pos3 || pos2 < pos3)) { in freq_range_list_parse() 809 pos2++; in freq_range_list_parse() 810 freq[count].max = atoi(pos2); in freq_range_list_parse()
|
/hostap-latest/src/eap_server/ |
D | eap_server_gtc.c | 108 const u8 *pos2, *end; in eap_gtc_process() local 119 pos2 = pos; in eap_gtc_process() 120 while (pos2 < end && *pos2) in eap_gtc_process() 121 pos2++; in eap_gtc_process() 122 if (pos2 == end) { in eap_gtc_process() 130 pos, pos2 - pos); in eap_gtc_process() 132 (pos2 - pos != (int) sm->identity_len || in eap_gtc_process() 143 sm->identity_len = pos2 - pos; in eap_gtc_process() 160 pos = pos2 + 1; in eap_gtc_process()
|
D | tncs.c | 668 char *pos, *pos2; in tncs_get_base64() local 676 pos2 = os_strstr(pos, "</Base64>"); in tncs_get_base64() 677 if (pos2 == NULL) in tncs_get_base64() 679 *pos2 = '\0'; in tncs_get_base64() 682 *pos2 = '<'; in tncs_get_base64() 780 char *buf, *start, *end, *pos, *pos2, *payload; in tncs_process_if_tnccs() local 913 pos2 = os_strstr(pos, "</XML>"); in tncs_process_if_tnccs() 914 if (pos2 == NULL) { in tncs_process_if_tnccs() 919 xmlend = pos2; in tncs_process_if_tnccs() 962 char *pos, *pos2; in tncs_parse_imv() local [all …]
|
/hostap-latest/src/eap_peer/ |
D | tncc.c | 619 char *pos, *pos2; in tncc_get_base64() local 627 pos2 = os_strstr(pos, "</Base64>"); in tncc_get_base64() 628 if (pos2 == NULL) in tncc_get_base64() 630 *pos2 = '\0'; in tncc_get_base64() 633 *pos2 = '<'; in tncc_get_base64() 644 char *pos, *pos2, saved; in tncc_get_recommendation() local 660 pos2 = pos; in tncc_get_recommendation() 661 while (*pos2 != '\0' && *pos2 != '"' && *pos2 != '>') in tncc_get_recommendation() 662 pos2++; in tncc_get_recommendation() 664 if (*pos2 == '\0') in tncc_get_recommendation() [all …]
|
/hostap-latest/wpa_supplicant/wpa_gui-qt4/ |
D | userdatarequest.cpp | 39 char *tmp, *pos, *pos2; in setParams() local 51 pos2 = strchr(pos, ':'); in setParams() 52 if (pos2 == NULL) { in setParams() 56 *pos2++ = '\0'; in setParams() 59 queryInfo->setText(pos2); in setParams()
|
D | wpagui.cpp | 276 char buf[2048], *pos, *pos2; in openCtrlConnection() local 424 pos2 = strchr(pos, '\n'); in openCtrlConnection() 425 if (pos2) in openCtrlConnection() 426 *pos2 = '\0'; in openCtrlConnection() 429 if (pos2) in openCtrlConnection() 430 pos = pos2 + 1; in openCtrlConnection() 936 char *pos = msg, *pos2; in processMsg() local 961 pos2 = strchr(pos, str_match(pos, WPA_CTRL_REQ) ? ':' : ' '); in processMsg() 962 if (pos2) in processMsg() 963 pos2++; in processMsg() [all …]
|
/hostap-latest/hostapd/ |
D | hlr_auc_gw.c | 278 char buf[200], *pos, *pos2; in read_gsm_triplets() local 315 pos2 = NULL; in read_gsm_triplets() 316 pos = str_token(buf, ":", &pos2); in read_gsm_triplets() 325 pos = str_token(buf, ":", &pos2); in read_gsm_triplets() 333 pos = str_token(buf, ":", &pos2); in read_gsm_triplets() 342 pos = str_token(buf, ":", &pos2); in read_gsm_triplets() 390 char buf[200], *pos, *pos2; in read_milenage() local 427 pos2 = NULL; in read_milenage() 428 pos = str_token(buf, " ", &pos2); in read_milenage() 437 pos = str_token(buf, " ", &pos2); in read_milenage() [all …]
|
D | config_file.c | 34 char buf[128], *pos, *pos2, *pos3; in hostapd_config_read_vlan_file() local 76 pos2 = pos; in hostapd_config_read_vlan_file() 77 while (*pos2 != ' ' && *pos2 != '\t' && *pos2 != '\0') in hostapd_config_read_vlan_file() 78 pos2++; in hostapd_config_read_vlan_file() 80 if (*pos2 != '\0') in hostapd_config_read_vlan_file() 81 *(pos2++) = '\0'; in hostapd_config_read_vlan_file() 90 while (*pos2 == ' ' || *pos2 == '\t') in hostapd_config_read_vlan_file() 91 pos2++; in hostapd_config_read_vlan_file() 92 pos3 = pos2; in hostapd_config_read_vlan_file() 109 os_strlcpy(vlan->bridge, pos2, sizeof(vlan->bridge)); in hostapd_config_read_vlan_file() [all …]
|
/hostap-latest/src/common/ |
D | sae_pk.c | 455 const char *pos2; in sae_parse_pk() local 485 pos2 = os_strchr(pos, ':'); in sae_parse_pk() 486 if (pos2) { in sae_parse_pk() 487 b_len = pos2 - pos; in sae_parse_pk() 488 pos2++; in sae_parse_pk() 507 if (pos2) { in sae_parse_pk() 508 der = hostap_base64_decode(pos2, os_strlen(pos2), &der_len); in sae_parse_pk()
|
D | cli.c | 256 char *pos2 = os_strrchr(pos, '"'); in tokenize_cmd() local 257 if (pos2) in tokenize_cmd() 258 pos = pos2 + 1; in tokenize_cmd()
|
/hostap-latest/src/drivers/ |
D | driver_ndis.c | 2132 char *names, *pos, *pos2; in wpa_driver_ndis_get_names() 2170 pos2 = pos = names; in wpa_driver_ndis_get_names() 2171 while (pos2 < names + len) { in wpa_driver_ndis_get_names() 2172 if (pos2[0] == '\0' && pos2[1] == '\0' && in wpa_driver_ndis_get_names() 2173 pos2[2] == '\0' && pos2[3] == '\0') { in wpa_driver_ndis_get_names() 2174 pos2 += 4; in wpa_driver_ndis_get_names() 2177 *pos++ = pos2[0]; in wpa_driver_ndis_get_names() 2178 pos2 += 2; in wpa_driver_ndis_get_names() 3065 char *names, *pos, *pos2; in wpa_driver_ndis_get_interfaces() local 3101 pos2 = pos = names; in wpa_driver_ndis_get_interfaces() [all …]
|
/hostap-latest/src/pae/ |
D | ieee802_1x_kay.c | 4048 char *pos2 = pos; in ieee802_1x_kay_get_status() local 4050 res = os_snprintf(pos2, end - pos2, "participant_idx=%d\nckn=", in ieee802_1x_kay_get_status() 4054 pos2 += res; in ieee802_1x_kay_get_status() 4057 pos2 += wpa_snprintf_hex(pos2, end - pos2, p->ckn.name, in ieee802_1x_kay_get_status() 4060 res = os_snprintf(pos2, end - pos2, in ieee802_1x_kay_get_status() 4080 pos2 += res; in ieee802_1x_kay_get_status() 4081 pos = pos2; in ieee802_1x_kay_get_status() 4152 char *pos2 = pos; in ieee802_1x_kay_get_mib() local 4154 res = os_snprintf(pos2, end - pos2, "ieee8021XKayMkaPartCKN="); in ieee802_1x_kay_get_mib() 4157 pos2 += res; in ieee802_1x_kay_get_mib() [all …]
|
/hostap-latest/hs20/client/ |
D | spp_client.c | 269 char *pos2; in process_update_node() local 270 pos2 = os_strrchr(pos, '/'); in process_update_node() 271 if (pos2 == NULL) { in process_update_node() 274 *pos2 = '\0'; in process_update_node()
|