Lines Matching refs:pos2
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()
201 char *pos2 = *pos; in hostapd_config_eap_user_salted() local
203 while (*pos2 != '\0' && *pos2 != ' ' && *pos2 != '\t' && *pos2 != '#') in hostapd_config_eap_user_salted()
204 pos2++; in hostapd_config_eap_user_salted()
206 if (pos2 - *pos < (int) (2 * (len + 1))) { /* at least 1 byte of salt */ in hostapd_config_eap_user_salted()
230 user->salt_len = (pos2 - *pos) / 2; in hostapd_config_eap_user_salted()
246 *pos = pos2; in hostapd_config_eap_user_salted()
255 char buf[512], *pos, *start, *pos2; in hostapd_config_read_eap_user() local
479 pos2 = pos; in hostapd_config_read_eap_user()
480 while (*pos2 != '\0' && *pos2 != ' ' && in hostapd_config_read_eap_user()
481 *pos2 != '\t' && *pos2 != '#') in hostapd_config_read_eap_user()
482 pos2++; in hostapd_config_read_eap_user()
483 if (pos2 - pos != 32) { in hostapd_config_read_eap_user()
501 pos = pos2; in hostapd_config_read_eap_user()
521 pos2 = pos; in hostapd_config_read_eap_user()
522 while (*pos2 != '\0' && *pos2 != ' ' && in hostapd_config_read_eap_user()
523 *pos2 != '\t' && *pos2 != '#') in hostapd_config_read_eap_user()
524 pos2++; in hostapd_config_read_eap_user()
525 if ((pos2 - pos) & 1) { in hostapd_config_read_eap_user()
530 user->password = os_malloc((pos2 - pos) / 2); in hostapd_config_read_eap_user()
537 (pos2 - pos) / 2) < 0) { in hostapd_config_read_eap_user()
542 user->password_len = (pos2 - pos) / 2; in hostapd_config_read_eap_user()
543 pos = pos2; in hostapd_config_read_eap_user()
2238 const char *pos = val, *pos2, *end = NULL; in parse_sae_password() local
2245 pos2 = os_strstr(pos, "|mac="); in parse_sae_password()
2246 if (pos2) { in parse_sae_password()
2247 end = pos2; in parse_sae_password()
2248 pos2 += 5; in parse_sae_password()
2249 if (hwaddr_aton(pos2, pw->peer_addr) < 0) in parse_sae_password()
2251 pos = pos2 + ETH_ALEN * 3 - 1; in parse_sae_password()
2254 pos2 = os_strstr(pos, "|vlanid="); in parse_sae_password()
2255 if (pos2) { in parse_sae_password()
2257 end = pos2; in parse_sae_password()
2258 pos2 += 8; in parse_sae_password()
2259 pw->vlan_id = atoi(pos2); in parse_sae_password()
2263 pos2 = os_strstr(pos, "|pk="); in parse_sae_password()
2264 if (pos2) { in parse_sae_password()
2269 end = pos2; in parse_sae_password()
2270 pos2 += 4; in parse_sae_password()
2271 epos = os_strchr(pos2, '|'); in parse_sae_password()
2273 tmp = os_malloc(epos - pos2 + 1); in parse_sae_password()
2276 os_memcpy(tmp, pos2, epos - pos2); in parse_sae_password()
2277 tmp[epos - pos2] = '\0'; in parse_sae_password()
2279 tmp = os_strdup(pos2); in parse_sae_password()
2291 pos2 = os_strstr(pos, "|id="); in parse_sae_password()
2292 if (pos2) { in parse_sae_password()
2294 end = pos2; in parse_sae_password()
2295 pos2 += 4; in parse_sae_password()
2296 pw->identifier = os_strdup(pos2); in parse_sae_password()