Home
last modified time | relevance | path

Searched refs:json_variant_string (Results 1 – 25 of 32) sorted by relevance

12

/systemd-251/src/cryptsetup/cryptsetup-tokens/
Dcryptsetup-token-systemd-tpm2.c234 if (tpm2_pcr_bank_from_string(json_variant_string(w)) < 0) { in cryptsetup_token_validate()
235 … crypt_log_debug(cd, "TPM2 PCR bank invalid or not supported: %s.", json_variant_string(w)); in cryptsetup_token_validate()
251 if (tpm2_primary_alg_from_string(json_variant_string(w)) < 0) { in cryptsetup_token_validate()
252 …t_log_debug(cd, "TPM2 primary key algorithm invalid or not supported: %s", json_variant_string(w)); in cryptsetup_token_validate()
263 r = unbase64mem(json_variant_string(w), SIZE_MAX, NULL, NULL); in cryptsetup_token_validate()
273 r = unhexmem(json_variant_string(w), SIZE_MAX, NULL, NULL); in cryptsetup_token_validate()
Dluks2-tpm2.c122 r = tpm2_pcr_bank_from_string(json_variant_string(w)); in parse_luks2_tpm2_data()
136 r = tpm2_primary_alg_from_string(json_variant_string(w)); in parse_luks2_tpm2_data()
147 base64_blob = strdup(json_variant_string(w)); in parse_luks2_tpm2_data()
155 hex_policy_hash = strdup(json_variant_string(w)); in parse_luks2_tpm2_data()
Dluks2-fido2.c106 r = unbase64mem(json_variant_string(w), SIZE_MAX, &cid, &cid_size); in parse_luks2_fido2_data()
114 r = unbase64mem(json_variant_string(w), SIZE_MAX, &salt, &salt_size); in parse_luks2_fido2_data()
121 rp = strdup(json_variant_string(w)); in parse_luks2_fido2_data()
Dcryptsetup-token-systemd-pkcs11.c127 if (!pkcs11_uri_valid(json_variant_string(w))) { in cryptsetup_token_validate()
138 r = unbase64mem(json_variant_string(w), SIZE_MAX, NULL, NULL); in cryptsetup_token_validate()
Dcryptsetup-token-systemd-fido2.c181 r = unbase64mem(json_variant_string(w), SIZE_MAX, NULL, NULL); in cryptsetup_token_validate()
191 r = unbase64mem(json_variant_string(w), SIZE_MAX, NULL, NULL); in cryptsetup_token_validate()
Dluks2-pkcs11.c254 uri = strdup(json_variant_string(w)); in parse_luks2_pkcs11_data()
262 r = unbase64mem(json_variant_string(w), SIZE_MAX, &key, &key_size); in parse_luks2_pkcs11_data()
/systemd-251/src/cryptsetup/
Dcryptsetup-tpm2.c246 r = tpm2_pcr_bank_from_string(json_variant_string(w)); in find_tpm2_auto_data()
248 … return log_error_errno(r, "TPM2 PCR bank invalid or not supported: %s", json_variant_string(w)); in find_tpm2_auto_data()
263 r = tpm2_primary_alg_from_string(json_variant_string(w)); in find_tpm2_auto_data()
265 …_error_errno(r, "TPM2 primary key algorithm invalid or not supported: %s", json_variant_string(w)); in find_tpm2_auto_data()
276 r = unbase64mem(json_variant_string(w), SIZE_MAX, &blob, &blob_size); in find_tpm2_auto_data()
287 r = unhexmem(json_variant_string(w), SIZE_MAX, &policy_hash, &policy_hash_size); in find_tpm2_auto_data()
Dcryptsetup-fido2.c181 r = unbase64mem(json_variant_string(w), SIZE_MAX, &cid, &cid_size); in find_fido2_auto_data()
193 r = unbase64mem(json_variant_string(w), SIZE_MAX, &salt, &salt_size); in find_fido2_auto_data()
206 rp = strdup(json_variant_string(w)); in find_fido2_auto_data()
Dcryptsetup-pkcs11.c142 uri = strdup(json_variant_string(w)); in find_pkcs11_auto_data()
157 r = unbase64mem(json_variant_string(w), SIZE_MAX, &key, &key_size); in find_pkcs11_auto_data()
/systemd-251/src/nspawn/
Dnspawn-oci.c135 n = json_variant_string(v); in oci_absolute_path()
158 assert_se(n = json_variant_string(e)); in oci_env()
200 z = startswith(json_variant_string(v), "RLIMIT_"); in oci_rlimit_type()
204 json_variant_string(v)); in oci_rlimit_type()
209 "rlimit name unknown: %s", json_variant_string(v)); in oci_rlimit_type()
301 assert_se(n = json_variant_string(e)); in oci_capability_array()
479 assert_se(n = json_variant_string(v)); in oci_hostname()
610 assert_se(n = json_variant_string(v)); in oci_namespace_type()
789 assert_se(t = json_variant_string(v)); in oci_device_type()
944 assert_se(p = json_variant_string(v)); in oci_cgroups_path()
[all …]
/systemd-251/src/shared/
Duser-record.c210 n = json_variant_string(variant); in json_dispatch_realm()
236 n = json_variant_string(variant); in json_dispatch_gecos()
371 n = json_variant_string(variant); in json_dispatch_filename_or_path()
395 n = json_variant_string(variant); in json_dispatch_path()
421 n = json_variant_string(variant); in json_dispatch_home_directory()
445 n = json_variant_string(variant); in json_dispatch_image_path()
517 assert_se(a = json_variant_string(e)); in json_dispatch_environment()
541 k = user_disposition_from_string(json_variant_string(variant)); in json_dispatch_user_disposition()
543 …turn json_log(variant, flags, k, "Disposition type '%s' not known.", json_variant_string(variant)); in json_dispatch_user_disposition()
560 k = user_storage_from_string(json_variant_string(variant)); in json_dispatch_storage()
[all …]
Djson.c261 return isempty(json_variant_string(v)) ? JSON_VARIANT_MAGIC_EMPTY_STRING : v; in json_variant_formalize()
490 assert_se(s = json_variant_string(b)); in json_variant_set()
702 assert_se(k = json_variant_string(c)); in json_variant_new_object()
841 const char *json_variant_string(JsonVariant *v) { in json_variant_string() function
856 return json_variant_string(v->reference); in json_variant_string()
1239 assert_se(f = json_variant_string(p)); in json_variant_by_key_full()
1265 if (streq(json_variant_string(p), key)) { in json_variant_by_key_full()
1308 return streq(json_variant_string(a), json_variant_string(b)); in json_variant_equal()
1612 json_format_string(f, json_variant_string(v), flags); in json_format()
1825 if (strv_contains(to_remove, json_variant_string(p))) { in json_variant_filter()
[all …]
Dcryptsetup-util.c217 if (!streq_ptr(json_variant_string(w), verify_type)) in cryptsetup_get_token_as_json()
247 r = safe_atoi(json_variant_string(w), &keyslot); in cryptsetup_get_keyslot_from_token()
Djson.h95 const char *json_variant_string(JsonVariant *v);
175 ({ k = json_variant_string(json_variant_by_index(state.variant, state.idx)); \
Dvarlink.c710 error = json_variant_string(e); in varlink_dispatch_reply()
810 method = json_variant_string(e); in varlink_dispatch_method()
1510 *ret_error_id = json_variant_string(json_variant_by_key(v->reply, "error")); in varlink_call()
Dlogs-show.c925 assert_se(hashmap_update(h, json_variant_string(d->name), d) >= 0); in update_json_data()
937 r = hashmap_put(h, json_variant_string(n), d); in update_json_data()
/systemd-251/src/home/
Dhomectl-fido2.c150 fido_un = strjoina(json_variant_string(un), json_variant_string(realm)); in identity_add_fido2_parameters()
152 fido_un = json_variant_string(un); in identity_add_fido2_parameters()
165 /* user_display_name= */ rn ? json_variant_string(rn) : NULL, in identity_add_fido2_parameters()
/systemd-251/src/fuzz/
Dfuzz-bootspec.c15 const char *s = json_variant_string(variant); in json_dispatch_config()
42 id = json_variant_string(v); in json_dispatch_entries()
48 raw = json_variant_string(v); in json_dispatch_entries()
/systemd-251/src/cryptenroll/
Dcryptenroll-wipe.c121 t = luks2_token_type_from_string(json_variant_string(w)); in find_slots_by_mask()
137 r = safe_atoi(json_variant_string(z), &slot); in find_slots_by_mask()
230 r = safe_atoi(json_variant_string(z), &slot); in find_slot_tokens()
254 if (safe_atoi(json_variant_string(z), &slot) < 0) in find_slot_tokens()
Dcryptenroll-list.c60 et = luks2_token_type_from_string(json_variant_string(w)); in list_enrolled()
80 r = safe_atou(json_variant_string(z), &u); in list_enrolled()
Dcryptenroll-tpm2.c51 r = unhexmem(json_variant_string(w), SIZE_MAX, &thash, &thash_size); in search_policy_hash()
/systemd-251/src/analyze/
Danalyze-inspect-elf.c74 … TABLE_STRING, json_variant_string(module_json)); in analyze_elf()
111 … TABLE_STRING, json_variant_string(field)); in analyze_elf()
/systemd-251/src/test/
Dtest-json.c158 assert_se(streq(json_variant_string(p), "v")); in test_1()
203 … assert_se(q && json_variant_type(q) == JSON_VARIANT_STRING && streq(json_variant_string(q), "1")); in test_2()
220 … assert_se(q && json_variant_type(q) == JSON_VARIANT_STRING && streq(json_variant_string(q), "1")); in test_2()
506 assert_se(streq(json_variant_string(k), z)); in TEST()
Dtest-varlink.c160 … assert_se(streq_ptr(json_variant_string(json_variant_by_key(o, "method")), "io.test.IDontExist")); in thread()
/systemd-251/src/coredump/
Dcoredump.c881 … (void) iovw_put_string_field(iovw, "COREDUMP_PACKAGE_NAME=", json_variant_string(t)); in submit_coredump()
885 … (void) iovw_put_string_field(iovw, "COREDUMP_PACKAGE_VERSION=", json_variant_string(t)); in submit_coredump()

12