Lines Matching refs:token

4419 	struct json_token *root = NULL, *token;  in dpp_conf_req_rx()  local
4491 token = json_get_member(root, "name"); in dpp_conf_req_rx()
4492 if (!token || token->type != JSON_STRING) { in dpp_conf_req_rx()
4496 wpa_printf(MSG_DEBUG, "DPP: Enrollee name = '%s'", token->string); in dpp_conf_req_rx()
4498 token = json_get_member(root, "wi-fi_tech"); in dpp_conf_req_rx()
4499 if (!token || token->type != JSON_STRING) { in dpp_conf_req_rx()
4503 wpa_printf(MSG_DEBUG, "DPP: wi-fi_tech = '%s'", token->string); in dpp_conf_req_rx()
4504 if (os_strcmp(token->string, "infra") != 0) { in dpp_conf_req_rx()
4506 token->string); in dpp_conf_req_rx()
4511 token = json_get_member(root, "netRole"); in dpp_conf_req_rx()
4512 if (!token || token->type != JSON_STRING) { in dpp_conf_req_rx()
4516 wpa_printf(MSG_DEBUG, "DPP: netRole = '%s'", token->string); in dpp_conf_req_rx()
4517 if (os_strcmp(token->string, "sta") == 0) { in dpp_conf_req_rx()
4519 } else if (os_strcmp(token->string, "ap") == 0) { in dpp_conf_req_rx()
4521 } else if (os_strcmp(token->string, "configurator") == 0) { in dpp_conf_req_rx()
4525 token->string); in dpp_conf_req_rx()
4530 token = json_get_member(root, "mudurl"); in dpp_conf_req_rx()
4531 if (token && token->type == JSON_STRING) in dpp_conf_req_rx()
4532 wpa_printf(MSG_DEBUG, "DPP: mudurl = '%s'", token->string); in dpp_conf_req_rx()
4534 token = json_get_member(root, "bandSupport"); in dpp_conf_req_rx()
4535 if (token && token->type == JSON_ARRAY) { in dpp_conf_req_rx()
4537 token = token->child; in dpp_conf_req_rx()
4538 while (token) { in dpp_conf_req_rx()
4539 if (token->type != JSON_NUMBER) in dpp_conf_req_rx()
4545 token->number); in dpp_conf_req_rx()
4546 token = token->sibling; in dpp_conf_req_rx()
4562 struct json_token *root, *token; in dpp_parse_jws_prot_hdr() local
4578 token = json_get_member(root, "typ"); in dpp_parse_jws_prot_hdr()
4579 if (!token || token->type != JSON_STRING) { in dpp_parse_jws_prot_hdr()
4584 token->string); in dpp_parse_jws_prot_hdr()
4585 if (os_strcmp(token->string, "dppCon") != 0) { in dpp_parse_jws_prot_hdr()
4588 token->string); in dpp_parse_jws_prot_hdr()
4592 token = json_get_member(root, "alg"); in dpp_parse_jws_prot_hdr()
4593 if (!token || token->type != JSON_STRING) { in dpp_parse_jws_prot_hdr()
4598 token->string); in dpp_parse_jws_prot_hdr()
4599 if (os_strcmp(token->string, curve->jws_alg) != 0) { in dpp_parse_jws_prot_hdr()
4602 token->string, curve->jws_alg); in dpp_parse_jws_prot_hdr()
4670 struct json_token *token; in dpp_parse_jwk() local
4678 token = json_get_member(jwk, "kty"); in dpp_parse_jwk()
4679 if (!token || token->type != JSON_STRING) { in dpp_parse_jwk()
4683 if (os_strcmp(token->string, "EC") != 0) { in dpp_parse_jwk()
4685 token->string); in dpp_parse_jwk()
4689 token = json_get_member(jwk, "crv"); in dpp_parse_jwk()
4690 if (!token || token->type != JSON_STRING) { in dpp_parse_jwk()
4694 curve = dpp_get_curve_jwk_crv(token->string); in dpp_parse_jwk()
4697 token->string); in dpp_parse_jwk()
4837 struct json_token *root, *groups, *netkey, *token; in dpp_parse_connector() local
4854 for (token = groups->child; token; token = token->sibling) { in dpp_parse_connector()
4857 id = json_get_member(token, "groupId"); in dpp_parse_connector()
4863 role = json_get_member(token, "netRole"); in dpp_parse_connector()
4881 token = json_get_member(root, "expiry"); in dpp_parse_connector()
4882 if (!token || token->type != JSON_STRING) { in dpp_parse_connector()
4886 wpa_printf(MSG_DEBUG, "DPP: expiry = %s", token->string); in dpp_parse_connector()
4887 if (dpp_key_expired(token->string, in dpp_parse_connector()
5114 struct json_token *token, *csign; in dpp_parse_cred_dpp() local
5144 token = json_get_member(cred, "signedConnector"); in dpp_parse_cred_dpp()
5145 if (!token || token->type != JSON_STRING) { in dpp_parse_cred_dpp()
5150 (u8 *)token->string, os_strlen(token->string)); in dpp_parse_cred_dpp()
5151 signed_connector = token->string; in dpp_parse_cred_dpp()
5283 struct json_token *root, *token, *discovery, *cred; in dpp_parse_conf_obj() local
5295 token = json_get_member(root, "wi-fi_tech"); in dpp_parse_conf_obj()
5296 if (!token || token->type != JSON_STRING) { in dpp_parse_conf_obj()
5300 if (os_strcmp(token->string, "infra") != 0) { in dpp_parse_conf_obj()
5302 token->string); in dpp_parse_conf_obj()
5322 token = json_get_member(discovery, "ssid"); in dpp_parse_conf_obj()
5323 if (!token || token->type != JSON_STRING) { in dpp_parse_conf_obj()
5329 (u8 *)token->string, os_strlen(token->string)); in dpp_parse_conf_obj()
5330 if (os_strlen(token->string) > SSID_MAX_LEN) { in dpp_parse_conf_obj()
5349 conf->ssid_len = os_strlen(token->string); in dpp_parse_conf_obj()
5350 os_memcpy(conf->ssid, token->string, conf->ssid_len); in dpp_parse_conf_obj()
5353 token = json_get_member(discovery, "ssid_charset"); in dpp_parse_conf_obj()
5354 if (token && token->type == JSON_NUMBER) { in dpp_parse_conf_obj()
5355 conf->ssid_charset = token->number; in dpp_parse_conf_obj()
5366 token = json_get_member(cred, "akm"); in dpp_parse_conf_obj()
5367 if (!token || token->type != JSON_STRING) { in dpp_parse_conf_obj()
5371 conf->akm = dpp_akm_from_str(token->string); in dpp_parse_conf_obj()
5381 token->string); in dpp_parse_conf_obj()
5648 struct json_token *groups, *token; in dpp_connector_compatible_group() local
5654 for (token = groups->child; token; token = token->sibling) { in dpp_connector_compatible_group()
5657 id = json_get_member(token, "groupId"); in dpp_connector_compatible_group()
5661 role = json_get_member(token, "netRole"); in dpp_connector_compatible_group()
5680 struct json_token *groups, *token; in dpp_connector_match_groups() local
5688 for (token = groups->child; token; token = token->sibling) { in dpp_connector_match_groups()
5691 id = json_get_member(token, "groupId"); in dpp_connector_match_groups()
5698 role = json_get_member(token, "netRole"); in dpp_connector_match_groups()
5793 struct json_token *root = NULL, *netkey, *token; in dpp_peer_intro() local
5881 token = json_get_member(root, "expiry"); in dpp_peer_intro()
5882 if (!token || token->type != JSON_STRING) { in dpp_peer_intro()
5886 wpa_printf(MSG_DEBUG, "DPP: expiry = %s", token->string); in dpp_peer_intro()
5887 if (dpp_key_expired(token->string, expiry)) { in dpp_peer_intro()