Lines Matching refs:jso2
89 json_object *jso2; in ifapi_json_IFAPI_KEY_serialize() local
93 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
94 r = ifapi_json_TPMI_YES_NO_serialize(in->with_auth, &jso2); in ifapi_json_IFAPI_KEY_serialize()
97 json_object_object_add(*jso, "with_auth", jso2); in ifapi_json_IFAPI_KEY_serialize()
98 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
99 r = ifapi_json_UINT32_serialize(in->persistent_handle, &jso2); in ifapi_json_IFAPI_KEY_serialize()
102 json_object_object_add(*jso, "persistent_handle", jso2); in ifapi_json_IFAPI_KEY_serialize()
103 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
104 r = ifapi_json_TPM2B_PUBLIC_serialize(&in->public, &jso2); in ifapi_json_IFAPI_KEY_serialize()
107 json_object_object_add(*jso, "public", jso2); in ifapi_json_IFAPI_KEY_serialize()
108 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
109 r = ifapi_json_UINT8_ARY_serialize(&in->serialization, &jso2); in ifapi_json_IFAPI_KEY_serialize()
112 json_object_object_add(*jso, "serialization", jso2); in ifapi_json_IFAPI_KEY_serialize()
114 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
115 r = ifapi_json_UINT8_ARY_serialize(&in->private, &jso2); in ifapi_json_IFAPI_KEY_serialize()
118 json_object_object_add(*jso, "private", jso2); in ifapi_json_IFAPI_KEY_serialize()
121 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
122 r = ifapi_json_UINT8_ARY_serialize(&in->appData, &jso2); in ifapi_json_IFAPI_KEY_serialize()
125 json_object_object_add(*jso, "appData", jso2); in ifapi_json_IFAPI_KEY_serialize()
127 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
128 r = ifapi_json_char_serialize(in->policyInstance, &jso2); in ifapi_json_IFAPI_KEY_serialize()
131 json_object_object_add(*jso, "policyInstance", jso2); in ifapi_json_IFAPI_KEY_serialize()
135 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
136 r = ifapi_json_TPM2B_CREATION_DATA_serialize(&in->creationData, &jso2); in ifapi_json_IFAPI_KEY_serialize()
139 json_object_object_add(*jso, "creationData", jso2); in ifapi_json_IFAPI_KEY_serialize()
143 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
144 r = ifapi_json_TPMT_TK_CREATION_serialize(&in->creationTicket, &jso2); in ifapi_json_IFAPI_KEY_serialize()
147 json_object_object_add(*jso, "creationTicket", jso2); in ifapi_json_IFAPI_KEY_serialize()
149 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
150 r = ifapi_json_char_serialize(in->description, &jso2); in ifapi_json_IFAPI_KEY_serialize()
153 json_object_object_add(*jso, "description", jso2); in ifapi_json_IFAPI_KEY_serialize()
154 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
155 r = ifapi_json_char_serialize(in->certificate, &jso2); in ifapi_json_IFAPI_KEY_serialize()
158 json_object_object_add(*jso, "certificate", jso2); in ifapi_json_IFAPI_KEY_serialize()
162 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
163 r = ifapi_json_TPMT_SIG_SCHEME_serialize(&in->signing_scheme, &jso2); in ifapi_json_IFAPI_KEY_serialize()
166 json_object_object_add(*jso, "signing_scheme", jso2); in ifapi_json_IFAPI_KEY_serialize()
168 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
169 r = ifapi_json_TPM2B_NAME_serialize(&in->name, &jso2); in ifapi_json_IFAPI_KEY_serialize()
172 json_object_object_add(*jso, "name", jso2); in ifapi_json_IFAPI_KEY_serialize()
192 json_object *jso2; in ifapi_json_IFAPI_EXT_PUB_KEY_serialize() local
196 jso2 = NULL; in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
197 r = ifapi_json_char_serialize(in->pem_ext_public, &jso2); in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
200 json_object_object_add(*jso, "pem_ext_public", jso2); in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
201 jso2 = NULL; in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
203 r = ifapi_json_char_serialize(in->certificate, &jso2); in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
206 json_object_object_add(*jso, "certificate", jso2); in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
210 jso2 = NULL; in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
211 r = ifapi_json_TPM2B_PUBLIC_serialize(&in->public, &jso2); in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
214 json_object_object_add(*jso, "public", jso2); in ifapi_json_IFAPI_EXT_PUB_KEY_serialize()
234 json_object *jso2; in ifapi_json_IFAPI_NV_serialize() local
238 jso2 = NULL; in ifapi_json_IFAPI_NV_serialize()
239 r = ifapi_json_TPMI_YES_NO_serialize(in->with_auth, &jso2); in ifapi_json_IFAPI_NV_serialize()
242 json_object_object_add(*jso, "with_auth", jso2); in ifapi_json_IFAPI_NV_serialize()
245 jso2 = json_object_new_boolean(true); in ifapi_json_IFAPI_NV_serialize()
246 json_object_object_add(*jso, "nv_object", jso2); in ifapi_json_IFAPI_NV_serialize()
248 jso2 = NULL; in ifapi_json_IFAPI_NV_serialize()
249 r = ifapi_json_TPM2B_NV_PUBLIC_serialize(&in->public, &jso2); in ifapi_json_IFAPI_NV_serialize()
252 json_object_object_add(*jso, "public", jso2); in ifapi_json_IFAPI_NV_serialize()
253 jso2 = NULL; in ifapi_json_IFAPI_NV_serialize()
254 r = ifapi_json_UINT8_ARY_serialize(&in->serialization, &jso2); in ifapi_json_IFAPI_NV_serialize()
257 json_object_object_add(*jso, "serialization", jso2); in ifapi_json_IFAPI_NV_serialize()
258 jso2 = NULL; in ifapi_json_IFAPI_NV_serialize()
259 r = ifapi_json_UINT32_serialize(in->hierarchy, &jso2); in ifapi_json_IFAPI_NV_serialize()
262 json_object_object_add(*jso, "hierarchy", jso2); in ifapi_json_IFAPI_NV_serialize()
263 jso2 = NULL; in ifapi_json_IFAPI_NV_serialize()
264 r = ifapi_json_char_serialize(in->policyInstance, &jso2); in ifapi_json_IFAPI_NV_serialize()
267 json_object_object_add(*jso, "policyInstance", jso2); in ifapi_json_IFAPI_NV_serialize()
268 jso2 = NULL; in ifapi_json_IFAPI_NV_serialize()
269 r = ifapi_json_char_serialize(in->description, &jso2); in ifapi_json_IFAPI_NV_serialize()
272 json_object_object_add(*jso, "description", jso2); in ifapi_json_IFAPI_NV_serialize()
275 jso2 = NULL; in ifapi_json_IFAPI_NV_serialize()
276 r = ifapi_json_UINT8_ARY_serialize(&in->appData, &jso2); in ifapi_json_IFAPI_NV_serialize()
279 json_object_object_add(*jso, "appData", jso2); in ifapi_json_IFAPI_NV_serialize()
281 jso2 = NULL; in ifapi_json_IFAPI_NV_serialize()
283 r = ifapi_json_char_serialize(in->event_log, &jso2); in ifapi_json_IFAPI_NV_serialize()
286 json_object_object_add(*jso, "event_log", jso2); in ifapi_json_IFAPI_NV_serialize()
306 json_object *jso2; in ifapi_json_IFAPI_HIERARCHY_serialize() local
310 jso2 = NULL; in ifapi_json_IFAPI_HIERARCHY_serialize()
311 r = ifapi_json_TPMI_YES_NO_serialize(in->with_auth, &jso2); in ifapi_json_IFAPI_HIERARCHY_serialize()
314 json_object_object_add(*jso, "with_auth", jso2); in ifapi_json_IFAPI_HIERARCHY_serialize()
316 jso2 = NULL; in ifapi_json_IFAPI_HIERARCHY_serialize()
317 r = ifapi_json_TPM2B_DIGEST_serialize(&in->authPolicy, &jso2); in ifapi_json_IFAPI_HIERARCHY_serialize()
320 json_object_object_add(*jso, "authPolicy", jso2); in ifapi_json_IFAPI_HIERARCHY_serialize()
322 jso2 = NULL; in ifapi_json_IFAPI_HIERARCHY_serialize()
323 r = ifapi_json_char_serialize(in->description, &jso2); in ifapi_json_IFAPI_HIERARCHY_serialize()
326 json_object_object_add(*jso, "description", jso2); in ifapi_json_IFAPI_HIERARCHY_serialize()
347 json_object *jso2; in ifapi_json_FAPI_QUOTE_INFO_serialize() local
351 jso2 = NULL; in ifapi_json_FAPI_QUOTE_INFO_serialize()
352 r = ifapi_json_TPMT_SIG_SCHEME_serialize(&in->sig_scheme, &jso2); in ifapi_json_FAPI_QUOTE_INFO_serialize()
355 json_object_object_add(*jso, "sig_scheme", jso2); in ifapi_json_FAPI_QUOTE_INFO_serialize()
356 jso2 = NULL; in ifapi_json_FAPI_QUOTE_INFO_serialize()
357 r = ifapi_json_TPMS_ATTEST_serialize(&in->attest, &jso2); in ifapi_json_FAPI_QUOTE_INFO_serialize()
360 json_object_object_add(*jso, "attest", jso2); in ifapi_json_FAPI_QUOTE_INFO_serialize()
381 json_object *jso2; in ifapi_json_IFAPI_DUPLICATE_serialize() local
385 jso2 = NULL; in ifapi_json_IFAPI_DUPLICATE_serialize()
386 r = ifapi_json_TPM2B_PRIVATE_serialize(&in->duplicate, &jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
389 json_object_object_add(*jso, "duplicate", jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
390 jso2 = NULL; in ifapi_json_IFAPI_DUPLICATE_serialize()
391 r = ifapi_json_TPM2B_ENCRYPTED_SECRET_serialize(&in->encrypted_seed, &jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
394 json_object_object_add(*jso, "encrypted_seed", jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
395 jso2 = NULL; in ifapi_json_IFAPI_DUPLICATE_serialize()
397 r = ifapi_json_char_serialize(in->certificate, &jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
400 json_object_object_add(*jso, "certificate", jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
402 jso2 = NULL; in ifapi_json_IFAPI_DUPLICATE_serialize()
403 r = ifapi_json_TPM2B_PUBLIC_serialize(&in->public, &jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
406 json_object_object_add(*jso, "public", jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
408 jso2 = NULL; in ifapi_json_IFAPI_DUPLICATE_serialize()
409 r = ifapi_json_TPM2B_PUBLIC_serialize(&in->public_parent, &jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
412 json_object_object_add(*jso, "public_parent", jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
414 jso2 = NULL; in ifapi_json_IFAPI_DUPLICATE_serialize()
415 r = ifapi_json_TPMS_POLICY_serialize(in->policy, &jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
418 json_object_object_add(*jso, "policy", jso2); in ifapi_json_IFAPI_DUPLICATE_serialize()
463 json_object *jso2; in ifapi_json_IFAPI_OBJECT_serialize() local
465 jso2 = NULL; in ifapi_json_IFAPI_OBJECT_serialize()
466 r = ifapi_json_IFAPI_OBJECT_TYPE_CONSTANT_serialize(in->objectType, &jso2); in ifapi_json_IFAPI_OBJECT_serialize()
469 json_object_object_add(*jso, "objectType", jso2); in ifapi_json_IFAPI_OBJECT_serialize()
470 jso2 = NULL; in ifapi_json_IFAPI_OBJECT_serialize()
471 r = ifapi_json_TPMI_YES_NO_serialize(in->system, &jso2); in ifapi_json_IFAPI_OBJECT_serialize()
474 json_object_object_add(*jso, "system", jso2); in ifapi_json_IFAPI_OBJECT_serialize()
510 jso2 = NULL; in ifapi_json_IFAPI_OBJECT_serialize()
511 r = ifapi_json_TPMS_POLICY_serialize(in->policy, &jso2); in ifapi_json_IFAPI_OBJECT_serialize()
514 json_object_object_add(*jso, "policy", jso2); in ifapi_json_IFAPI_OBJECT_serialize()
518 jso2 = NULL; in ifapi_json_IFAPI_OBJECT_serialize()
519 r = ifapi_json_TPMS_POLICY_serialize(in->policy, &jso2); in ifapi_json_IFAPI_OBJECT_serialize()
522 json_object_object_add(*jso, "policy", jso2); in ifapi_json_IFAPI_OBJECT_serialize()
542 json_object *jso2; in ifapi_json_IFAPI_CAP_INFO_serialize() local
546 jso2 = NULL; in ifapi_json_IFAPI_CAP_INFO_serialize()
547 r = ifapi_json_char_serialize(in->description, &jso2); in ifapi_json_IFAPI_CAP_INFO_serialize()
550 json_object_object_add(*jso, "description", jso2); in ifapi_json_IFAPI_CAP_INFO_serialize()
552 jso2 = NULL; in ifapi_json_IFAPI_CAP_INFO_serialize()
553 r = ifapi_json_TPMS_CAPABILITY_DATA_serialize(in->capability, &jso2); in ifapi_json_IFAPI_CAP_INFO_serialize()
556 json_object_object_add(*jso, "info", jso2); in ifapi_json_IFAPI_CAP_INFO_serialize()
576 json_object *jso2; in ifapi_json_IFAPI_INFO_serialize() local
582 jso2 = NULL; in ifapi_json_IFAPI_INFO_serialize()
583 r = ifapi_json_char_serialize(in->fapi_version, &jso2); in ifapi_json_IFAPI_INFO_serialize()
586 json_object_object_add(*jso, "version", jso2); in ifapi_json_IFAPI_INFO_serialize()
587 jso2 = NULL; in ifapi_json_IFAPI_INFO_serialize()
588 r = ifapi_json_char_serialize(in->fapi_config, &jso2); in ifapi_json_IFAPI_INFO_serialize()
591 json_object_object_add(*jso, "fapi_config", jso2); in ifapi_json_IFAPI_INFO_serialize()
595 jso2 = NULL; in ifapi_json_IFAPI_INFO_serialize()
596 r = ifapi_json_IFAPI_CAP_INFO_serialize(&in->cap[i], &jso2); in ifapi_json_IFAPI_INFO_serialize()
599 json_object_array_add(jso_cap_list, jso2); in ifapi_json_IFAPI_INFO_serialize()
675 json_object *jso2; in ifapi_json_IFAPI_TSS_EVENT_serialize() local
679 jso2 = NULL; in ifapi_json_IFAPI_TSS_EVENT_serialize()
680 r = ifapi_json_TPM2B_EVENT_serialize(&in->data, &jso2); in ifapi_json_IFAPI_TSS_EVENT_serialize()
683 json_object_object_add(*jso, "data", jso2); in ifapi_json_IFAPI_TSS_EVENT_serialize()
690 jso2 = json_tokener_parse(in->event); in ifapi_json_IFAPI_TSS_EVENT_serialize()
691 return_if_null(jso2, "Event is not valid JSON.", TSS2_FAPI_RC_BAD_VALUE); in ifapi_json_IFAPI_TSS_EVENT_serialize()
693 json_object_object_add(*jso, "event", jso2); in ifapi_json_IFAPI_TSS_EVENT_serialize()
714 json_object *jso2; in ifapi_json_IFAPI_IMA_EVENT_serialize() local
718 jso2 = NULL; in ifapi_json_IFAPI_IMA_EVENT_serialize()
719 r = ifapi_json_TPM2B_DIGEST_serialize(&in->eventData, &jso2); in ifapi_json_IFAPI_IMA_EVENT_serialize()
722 json_object_object_add(*jso, "eventData", jso2); in ifapi_json_IFAPI_IMA_EVENT_serialize()
723 jso2 = NULL; in ifapi_json_IFAPI_IMA_EVENT_serialize()
724 r = ifapi_json_char_serialize(in->eventName, &jso2); in ifapi_json_IFAPI_IMA_EVENT_serialize()
727 json_object_object_add(*jso, "eventName", jso2); in ifapi_json_IFAPI_IMA_EVENT_serialize()
777 json_object *jso2; in ifapi_json_IFAPI_EVENT_serialize() local
781 jso2 = NULL; in ifapi_json_IFAPI_EVENT_serialize()
782 r = ifapi_json_UINT32_serialize(in->recnum, &jso2); in ifapi_json_IFAPI_EVENT_serialize()
785 json_object_object_add(*jso, "recnum", jso2); in ifapi_json_IFAPI_EVENT_serialize()
786 jso2 = NULL; in ifapi_json_IFAPI_EVENT_serialize()
787 r = ifapi_json_TPM2_HANDLE_serialize(in->pcr, &jso2); in ifapi_json_IFAPI_EVENT_serialize()
790 json_object_object_add(*jso, "pcr", jso2); in ifapi_json_IFAPI_EVENT_serialize()
791 jso2 = NULL; in ifapi_json_IFAPI_EVENT_serialize()
792 r = ifapi_json_TPML_DIGEST_VALUES_serialize(&in->digests, &jso2); in ifapi_json_IFAPI_EVENT_serialize()
795 json_object_object_add(*jso, "digests", jso2); in ifapi_json_IFAPI_EVENT_serialize()
796 jso2 = NULL; in ifapi_json_IFAPI_EVENT_serialize()
797 r = ifapi_json_IFAPI_EVENT_TYPE_serialize(in->type, &jso2); in ifapi_json_IFAPI_EVENT_serialize()
800 json_object_object_add(*jso, "type", jso2); in ifapi_json_IFAPI_EVENT_serialize()
801 jso2 = NULL; in ifapi_json_IFAPI_EVENT_serialize()
802 r = ifapi_json_IFAPI_EVENT_UNION_serialize(&in->sub_event, in->type, &jso2); in ifapi_json_IFAPI_EVENT_serialize()
805 json_object_object_add(*jso, "sub_event", jso2); in ifapi_json_IFAPI_EVENT_serialize()