• Home
  • Raw
  • Download

Lines Matching refs:jso2

171     json_object *jso2;  in ifapi_json_TPMS_POLICYSIGNED_deserialize()  local
177 if (!ifapi_get_sub_object(jso, "cpHashA", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
180 r = ifapi_json_TPM2B_DIGEST_deserialize(jso2, &out->cpHashA); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
184 if (!ifapi_get_sub_object(jso, "policyRef", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
187 r = ifapi_json_TPM2B_NONCE_deserialize(jso2, &out->policyRef); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
193 if (!ifapi_get_sub_object(jso, "keyPath", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
197 r = ifapi_json_char_deserialize(jso2, &out->keyPath); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
201 if (!ifapi_get_sub_object(jso, "keyPublic", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
205 r = ifapi_json_TPMT_PUBLIC_deserialize(jso2, &out->keyPublic); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
209 if (!ifapi_get_sub_object(jso, "keyPEM", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
213 r = ifapi_json_char_deserialize(jso2, &out->keyPEM); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
217 if (!ifapi_get_sub_object(jso, "publicKeyHint", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
220 r = ifapi_json_char_deserialize(jso2, &out->publicKeyHint); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
224 if (!ifapi_get_sub_object(jso, "keyPEMhashAlg", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
227 r = ifapi_json_TPMI_ALG_HASH_deserialize(jso2, &out->keyPEMhashAlg); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
254 json_object *jso2; in ifapi_json_TPMS_POLICYSECRET_deserialize() local
261 if (!ifapi_get_sub_object(jso, "cpHashA", &jso2)) { in ifapi_json_TPMS_POLICYSECRET_deserialize()
264 r = ifapi_json_TPM2B_DIGEST_deserialize(jso2, &out->cpHashA); in ifapi_json_TPMS_POLICYSECRET_deserialize()
268 if (!ifapi_get_sub_object(jso, "policyRef", &jso2)) { in ifapi_json_TPMS_POLICYSECRET_deserialize()
271 r = ifapi_json_TPM2B_NONCE_deserialize(jso2, &out->policyRef); in ifapi_json_TPMS_POLICYSECRET_deserialize()
276 if (!ifapi_get_sub_object(jso, "objectPath", &jso2)) { in ifapi_json_TPMS_POLICYSECRET_deserialize()
280 r = ifapi_json_char_deserialize(jso2, &out->objectPath); in ifapi_json_TPMS_POLICYSECRET_deserialize()
284 if (!ifapi_get_sub_object(jso, "objectName", &jso2)) { in ifapi_json_TPMS_POLICYSECRET_deserialize()
288 r = ifapi_json_TPM2B_NAME_deserialize(jso2, &out->objectName); in ifapi_json_TPMS_POLICYSECRET_deserialize()
311 json_object *jso2; in ifapi_json_TPMS_POLICYLOCALITY_deserialize() local
316 if (!ifapi_get_sub_object(jso, "locality", &jso2)) { in ifapi_json_TPMS_POLICYLOCALITY_deserialize()
320 r = ifapi_json_TPMA_LOCALITY_deserialize(jso2, &out->locality); in ifapi_json_TPMS_POLICYLOCALITY_deserialize()
338 json_object *jso2; in ifapi_json_TPMS_POLICYNV_deserialize() local
345 if (!ifapi_get_sub_object(jso, "nvPath", &jso2)) { in ifapi_json_TPMS_POLICYNV_deserialize()
349 r = ifapi_json_char_deserialize(jso2, &out->nvPath); in ifapi_json_TPMS_POLICYNV_deserialize()
353 if (!ifapi_get_sub_object(jso, "nvIndex", &jso2)) { in ifapi_json_TPMS_POLICYNV_deserialize()
357 r = ifapi_json_TPMI_RH_NV_INDEX_deserialize(jso2, &out->nvIndex); in ifapi_json_TPMS_POLICYNV_deserialize()
361 if (!ifapi_get_sub_object(jso, "nvPublic", &jso2)) { in ifapi_json_TPMS_POLICYNV_deserialize()
364 r = ifapi_json_TPM2B_NV_PUBLIC_deserialize(jso2, &out->nvPublic); in ifapi_json_TPMS_POLICYNV_deserialize()
368 if (!ifapi_get_sub_object(jso, "operandB", &jso2)) { in ifapi_json_TPMS_POLICYNV_deserialize()
372 r = ifapi_json_TPM2B_OPERAND_deserialize(jso2, &out->operandB); in ifapi_json_TPMS_POLICYNV_deserialize()
375 if (!ifapi_get_sub_object(jso, "offset", &jso2)) { in ifapi_json_TPMS_POLICYNV_deserialize()
378 r = ifapi_json_UINT16_deserialize(jso2, &out->offset); in ifapi_json_TPMS_POLICYNV_deserialize()
382 if (!ifapi_get_sub_object(jso, "operation", &jso2)) { in ifapi_json_TPMS_POLICYNV_deserialize()
385 r = ifapi_json_TPM2_EO_deserialize(jso2, &out->operation); in ifapi_json_TPMS_POLICYNV_deserialize()
410 json_object *jso2; in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize() local
415 if (!ifapi_get_sub_object(jso, "operandB", &jso2)) { in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize()
419 r = ifapi_json_TPM2B_OPERAND_deserialize(jso2, &out->operandB); in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize()
422 if (!ifapi_get_sub_object(jso, "offset", &jso2)) { in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize()
425 r = ifapi_json_UINT16_deserialize(jso2, &out->offset); in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize()
429 if (!ifapi_get_sub_object(jso, "operation", &jso2)) { in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize()
433 r = ifapi_json_TPM2_EO_deserialize(jso2, &out->operation); in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize()
451 json_object *jso2; in ifapi_json_TPMS_POLICYCOMMANDCODE_deserialize() local
456 if (!ifapi_get_sub_object(jso, "code", &jso2)) { in ifapi_json_TPMS_POLICYCOMMANDCODE_deserialize()
460 r = ifapi_json_TPM2_CC_deserialize(jso2, &out->code); in ifapi_json_TPMS_POLICYCOMMANDCODE_deserialize()
497 json_object *jso2; in ifapi_json_TPMS_POLICYCPHASH_deserialize() local
502 if (!ifapi_get_sub_object(jso, "cpHash", &jso2)) { in ifapi_json_TPMS_POLICYCPHASH_deserialize()
506 r = ifapi_json_TPM2B_DIGEST_deserialize(jso2, &out->cpHash); in ifapi_json_TPMS_POLICYCPHASH_deserialize()
525 json_object *jso2, *jso3; in ifapi_json_TPMS_POLICYNAMEHASH_deserialize() local
534 if (ifapi_get_sub_object(jso, "nameHash", &jso2)) { in ifapi_json_TPMS_POLICYNAMEHASH_deserialize()
536 r = ifapi_json_TPM2B_DIGEST_deserialize(jso2, &out->nameHash); in ifapi_json_TPMS_POLICYNAMEHASH_deserialize()
544 if (ifapi_get_sub_object(jso, "namePaths", &jso2)) { in ifapi_json_TPMS_POLICYNAMEHASH_deserialize()
545 json_type jso_type = json_object_get_type(jso2); in ifapi_json_TPMS_POLICYNAMEHASH_deserialize()
548 n_paths = json_object_array_length(jso2); in ifapi_json_TPMS_POLICYNAMEHASH_deserialize()
554 jso3 = json_object_array_get_idx(jso2, i); in ifapi_json_TPMS_POLICYNAMEHASH_deserialize()
565 if (ifapi_get_sub_object(jso, "objectNames", &jso2)) { in ifapi_json_TPMS_POLICYNAMEHASH_deserialize()
568 n_names = json_object_array_length(jso2); in ifapi_json_TPMS_POLICYNAMEHASH_deserialize()
614 json_object *jso2; in ifapi_json_TPMS_POLICYDUPLICATIONSELECT_deserialize() local
625 if (ifapi_get_sub_object(jso, "includeObject", &jso2)) { in ifapi_json_TPMS_POLICYDUPLICATIONSELECT_deserialize()
626 r = ifapi_json_TPMI_YES_NO_deserialize(jso2, &out->includeObject); in ifapi_json_TPMS_POLICYDUPLICATIONSELECT_deserialize()
638 if (!ifapi_get_sub_object(jso, "newParentPath", &jso2)) { in ifapi_json_TPMS_POLICYDUPLICATIONSELECT_deserialize()
645 r = ifapi_json_char_deserialize(jso2, &out->newParentPath); in ifapi_json_TPMS_POLICYDUPLICATIONSELECT_deserialize()
671 json_object *jso2; in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize() local
678 if (!ifapi_get_sub_object(jso, "approvedPolicy", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
681 r = ifapi_json_TPM2B_DIGEST_deserialize(jso2, &out->approvedPolicy); in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
685 if (!ifapi_get_sub_object(jso, "policyRef", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
688 r = ifapi_json_TPM2B_NONCE_deserialize(jso2, &out->policyRef); in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
692 if (!ifapi_get_sub_object(jso, "keyName", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
695 r = ifapi_json_TPM2B_NAME_deserialize(jso2, &out->keyName); in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
699 if (!ifapi_get_sub_object(jso, "checkTicket", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
702 r = ifapi_json_TPMT_TK_VERIFIED_deserialize(jso2, &out->checkTicket); in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
706 if (ifapi_get_sub_object(jso, "keyPath", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
708 r = ifapi_json_char_deserialize(jso2, &out->keyPath); in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
714 if (!ifapi_get_sub_object(jso, "keyPublic", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
718 r = ifapi_json_TPMT_PUBLIC_deserialize(jso2, &out->keyPublic); in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
722 if (!ifapi_get_sub_object(jso, "keyPEM", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
726 r = ifapi_json_char_deserialize(jso2, &out->keyPEM); in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
730 if (!ifapi_get_sub_object(jso, "keyPEMhashAlg", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
733 r = ifapi_json_TPMI_ALG_HASH_deserialize(jso2, &out->keyPEMhashAlg); in ifapi_json_TPMS_POLICYAUTHORIZE_deserialize()
795 json_object *jso2; in ifapi_json_TPMS_POLICYNVWRITTEN_deserialize() local
800 if (!ifapi_get_sub_object(jso, "writtenSet", &jso2)) { in ifapi_json_TPMS_POLICYNVWRITTEN_deserialize()
804 r = ifapi_json_TPMI_YES_NO_deserialize(jso2, &out->writtenSet); in ifapi_json_TPMS_POLICYNVWRITTEN_deserialize()
823 json_object *jso2; in ifapi_json_TPMS_POLICYTEMPLATE_deserialize() local
830 if (!ifapi_get_sub_object(jso, "templateHash", &jso2)) { in ifapi_json_TPMS_POLICYTEMPLATE_deserialize()
834 r = ifapi_json_TPM2B_DIGEST_deserialize(jso2, &out->templateHash); in ifapi_json_TPMS_POLICYTEMPLATE_deserialize()
838 if (!ifapi_get_sub_object(jso, "templatePublic", &jso2)) { in ifapi_json_TPMS_POLICYTEMPLATE_deserialize()
842 r = ifapi_json_TPM2B_PUBLIC_deserialize(jso2, &out->templatePublic); in ifapi_json_TPMS_POLICYTEMPLATE_deserialize()
846 if (ifapi_get_sub_object(jso, "templateName", &jso2)) { in ifapi_json_TPMS_POLICYTEMPLATE_deserialize()
847 r = ifapi_json_char_deserialize(jso2, &out->templateName); in ifapi_json_TPMS_POLICYTEMPLATE_deserialize()
876 json_object *jso2; in ifapi_json_TPMS_POLICYAUTHORIZENV_deserialize() local
885 if (ifapi_get_sub_object(jso, "nvPath", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZENV_deserialize()
887 r = ifapi_json_char_deserialize(jso2, &out->nvPath); in ifapi_json_TPMS_POLICYAUTHORIZENV_deserialize()
893 if (!ifapi_get_sub_object(jso, "nvPublic", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZENV_deserialize()
897 r = ifapi_json_TPM2B_NV_PUBLIC_deserialize(jso2, &out->nvPublic); in ifapi_json_TPMS_POLICYAUTHORIZENV_deserialize()
923 json_object *jso2; in ifapi_json_TPMS_POLICYACTION_deserialize() local
930 if (!ifapi_get_sub_object(jso, "action", &jso2)) { in ifapi_json_TPMS_POLICYACTION_deserialize()
934 r = ifapi_json_char_deserialize(jso2, &out->action); in ifapi_json_TPMS_POLICYACTION_deserialize()
951 json_object *jso2; in ifapi_json_TPMS_PCRVALUE_deserialize() local
957 if (!ifapi_get_sub_object(jso, "pcr", &jso2)) { in ifapi_json_TPMS_PCRVALUE_deserialize()
961 r = ifapi_json_UINT32_deserialize(jso2, &out->pcr); in ifapi_json_TPMS_PCRVALUE_deserialize()
964 if (!ifapi_get_sub_object(jso, "hashAlg", &jso2)) { in ifapi_json_TPMS_PCRVALUE_deserialize()
968 r = ifapi_json_TPM2_ALG_ID_deserialize(jso2, &out->hashAlg); in ifapi_json_TPMS_PCRVALUE_deserialize()
970 if (!ifapi_get_sub_object(jso, "digest", &jso2)) { in ifapi_json_TPMS_PCRVALUE_deserialize()
974 r = ifapi_json_TPMU_HA_deserialize(out->hashAlg, jso2, &out->digest); in ifapi_json_TPMS_PCRVALUE_deserialize()
993 json_object *jso2; in ifapi_json_TPML_PCRVALUES_deserialize() local
1006 jso2 = json_object_array_get_idx(jso, i); in ifapi_json_TPML_PCRVALUES_deserialize()
1007 r = ifapi_json_TPMS_PCRVALUE_deserialize(jso2, &(*out)->pcrs[i]); in ifapi_json_TPML_PCRVALUES_deserialize()
1028 json_object *jso2; in ifapi_json_TPMS_POLICYPCR_deserialize() local
1035 if (ifapi_get_sub_object(jso, "pcrs", &jso2)) { in ifapi_json_TPMS_POLICYPCR_deserialize()
1037 r = ifapi_json_TPML_PCRVALUES_deserialize(jso2, &out->pcrs); in ifapi_json_TPMS_POLICYPCR_deserialize()
1043 if (ifapi_get_sub_object(jso, "currentPCRs", &jso2)) { in ifapi_json_TPMS_POLICYPCR_deserialize()
1045 r = ifapi_json_TPMS_PCR_SELECT_deserialize(jso2, &out->currentPCRs); in ifapi_json_TPMS_POLICYPCR_deserialize()
1051 if (ifapi_get_sub_object(jso, "currentPCRandBanks", &jso2)) { in ifapi_json_TPMS_POLICYPCR_deserialize()
1053 r = ifapi_json_TPML_PCR_SELECTION_deserialize(jso2, &out->currentPCRandBanks); in ifapi_json_TPMS_POLICYPCR_deserialize()
1082 json_object *jso2; in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize() local
1087 if (!ifapi_get_sub_object(jso, "type", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize()
1091 r = ifapi_json_char_deserialize(jso2, &out->type); in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize()
1094 if (!ifapi_get_sub_object(jso, "key", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize()
1098 r = ifapi_json_TPMT_PUBLIC_deserialize(jso2, &out->key); in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize()
1101 if (!ifapi_get_sub_object(jso, "policyRef", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize()
1105 r = ifapi_json_TPM2B_NONCE_deserialize(jso2, &out->policyRef); in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize()
1108 if (!ifapi_get_sub_object(jso, "signature", &jso2)) { in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize()
1112 r = ifapi_json_TPMT_SIGNATURE_deserialize(jso2, &out->signature); in ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize()
1131 json_object *jso2; in ifapi_json_TPML_POLICYAUTHORIZATIONS_deserialize() local
1144 jso2 = json_object_array_get_idx(jso, i); in ifapi_json_TPML_POLICYAUTHORIZATIONS_deserialize()
1145 r = ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize(jso2, in ifapi_json_TPML_POLICYAUTHORIZATIONS_deserialize()
1168 json_object *jso2; in ifapi_json_TPMS_POLICYBRANCH_deserialize() local
1173 if (!ifapi_get_sub_object(jso, "name", &jso2)) { in ifapi_json_TPMS_POLICYBRANCH_deserialize()
1177 r = ifapi_json_char_deserialize(jso2, &out->name); in ifapi_json_TPMS_POLICYBRANCH_deserialize()
1180 if (!ifapi_get_sub_object(jso, "description", &jso2)) { in ifapi_json_TPMS_POLICYBRANCH_deserialize()
1184 r = ifapi_json_char_deserialize(jso2, &out->description); in ifapi_json_TPMS_POLICYBRANCH_deserialize()
1187 if (!ifapi_get_sub_object(jso, "policy", &jso2)) { in ifapi_json_TPMS_POLICYBRANCH_deserialize()
1191 r = ifapi_json_TPML_POLICYELEMENTS_deserialize(jso2, &out->policy); in ifapi_json_TPMS_POLICYBRANCH_deserialize()
1194 if (!ifapi_get_sub_object(jso, "policyDigests", &jso2)) { in ifapi_json_TPMS_POLICYBRANCH_deserialize()
1197 r = ifapi_json_TPML_DIGEST_VALUES_deserialize(jso2, &out->policyDigests); in ifapi_json_TPMS_POLICYBRANCH_deserialize()
1219 json_object *jso2; in ifapi_json_TPML_POLICYBRANCHES_deserialize() local
1232 jso2 = json_object_array_get_idx(jso, i); in ifapi_json_TPML_POLICYBRANCHES_deserialize()
1233 r = ifapi_json_TPMS_POLICYBRANCH_deserialize(jso2, &(*out)->authorizations[i]); in ifapi_json_TPML_POLICYBRANCHES_deserialize()
1254 json_object *jso2; in ifapi_json_TPMS_POLICYOR_deserialize() local
1259 if (!ifapi_get_sub_object(jso, "branches", &jso2)) { in ifapi_json_TPMS_POLICYOR_deserialize()
1263 r = ifapi_json_TPML_POLICYBRANCHES_deserialize(jso2, &out->branches); in ifapi_json_TPMS_POLICYOR_deserialize()
1350 json_object *jso2; in ifapi_json_TPMT_POLICYELEMENT_deserialize() local
1355 if (!ifapi_get_sub_object(jso, "type", &jso2)) { in ifapi_json_TPMT_POLICYELEMENT_deserialize()
1359 r = ifapi_json_TPMI_POLICYTYPE_deserialize(jso2, &out->type); in ifapi_json_TPMT_POLICYELEMENT_deserialize()
1362 if (!ifapi_get_sub_object(jso, "policyDigests", &jso2)) { in ifapi_json_TPMT_POLICYELEMENT_deserialize()
1365 r = ifapi_json_TPML_DIGEST_VALUES_deserialize(jso2, &out->policyDigests); in ifapi_json_TPMT_POLICYELEMENT_deserialize()
1389 json_object *jso2; in ifapi_json_TPML_POLICYELEMENTS_deserialize() local
1402 jso2 = json_object_array_get_idx(jso, i); in ifapi_json_TPML_POLICYELEMENTS_deserialize()
1403 r = ifapi_json_TPMT_POLICYELEMENT_deserialize(jso2, &(*out)->elements[i]); in ifapi_json_TPML_POLICYELEMENTS_deserialize()
1425 json_object *jso2; in ifapi_json_TPMS_POLICY_deserialize() local
1430 if (!ifapi_get_sub_object(jso, "description", &jso2)) { in ifapi_json_TPMS_POLICY_deserialize()
1434 r = ifapi_json_char_deserialize(jso2, &out->description); in ifapi_json_TPMS_POLICY_deserialize()
1437 if (!ifapi_get_sub_object(jso, "policyDigests", &jso2)) { in ifapi_json_TPMS_POLICY_deserialize()
1440 r = ifapi_json_TPML_DIGEST_VALUES_deserialize(jso2, &out->policyDigests); in ifapi_json_TPMS_POLICY_deserialize()
1444 if (!ifapi_get_sub_object(jso, "policyAuthorizations", &jso2)) { in ifapi_json_TPMS_POLICY_deserialize()
1447 r = ifapi_json_TPML_POLICYAUTHORIZATIONS_deserialize(jso2, in ifapi_json_TPMS_POLICY_deserialize()
1452 if (!ifapi_get_sub_object(jso, "policy", &jso2)) { in ifapi_json_TPMS_POLICY_deserialize()
1456 r = ifapi_json_TPML_POLICYELEMENTS_deserialize(jso2, &out->policy); in ifapi_json_TPMS_POLICY_deserialize()