Home
last modified time | relevance | path

Searched refs:JSON_STRING (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/ntp/libjsmn/example/
H A Dsimple.c10 const char *JSON_STRING = variable
29 r = jsmn_parse(&p, JSON_STRING, strlen(JSON_STRING), t, sizeof(t)/sizeof(t[0])); in main()
43 if (jsoneq(JSON_STRING, &t[i], "user") == 0) { in main()
46 JSON_STRING + t[i+1].start); in main()
48 } else if (jsoneq(JSON_STRING, &t[i], "admin") == 0) { in main()
51 JSON_STRING + t[i+1].start); in main()
53 } else if (jsoneq(JSON_STRING, &t[i], "uid") == 0) { in main()
56 JSON_STRING + t[i+1].start); in main()
58 } else if (jsoneq(JSON_STRING, &t[i], "groups") == 0) { in main()
66 printf(" * %.*s\n", g->end - g->start, JSON_STRING + g->start); in main()
[all …]
/freebsd/contrib/wpa/src/utils/
H A Djson.c307 token->type = JSON_STRING; in json_parse()
316 curr_token->type = JSON_STRING; in json_parse()
327 curr_token->type = JSON_STRING; in json_parse()
517 if (!token || token->type != JSON_STRING) in json_get_member_base64url()
540 if (!token || token->type != JSON_STRING) in json_get_member_base64()
562 case JSON_STRING: in json_type_str()
H A Djson.h17 JSON_STRING, enumerator
/freebsd/contrib/file/src/
H A Dis_json.c60 #define JSON_STRING 4 macro
372 t = JSON_STRING; in json_parse()
456 P(JSON_OBJECT), P(JSON_ARRAY), P(JSON_STRING), P(JSON_CONSTANT), in file_is_json()
/freebsd/contrib/wpa/src/common/
H A Ddpp.c2416 if (!token || token->type != JSON_STRING) { in dpp_conf_req_rx()
2425 if (!token || token->type != JSON_STRING) { in dpp_conf_req_rx()
2438 if (!token || token->type != JSON_STRING) { in dpp_conf_req_rx()
2458 if (token && token->type == JSON_STRING) { in dpp_conf_req_rx()
2559 if (pass && pass->type == JSON_STRING) { in dpp_parse_cred_legacy()
2568 } else if (psk_hex && psk_hex->type == JSON_STRING) { in dpp_parse_cred_legacy()
2605 if (!token || token->type != JSON_STRING) { in dpp_parse_jwk()
2616 if (!token || token->type != JSON_STRING) { in dpp_parse_jwk()
2775 if (!id || id->type != JSON_STRING) { in dpp_parse_connector()
2781 if (!role || role->type != JSON_STRING) { in dpp_parse_connector()
[all …]
H A Ddpp_reconfig.c507 if (token && token->type == JSON_STRING && in dpp_reconfig_auth_req_rx()
H A Ddpp_crypto.c629 if (!token || token->type != JSON_STRING) { in dpp_parse_jws_prot_hdr()
643 if (!token || token->type != JSON_STRING) { in dpp_parse_jws_prot_hdr()