ifapi_json_serialize.h
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
******************************************************************************/
#ifndef IFAPI_JSON_SERIALIZE_H
#define IFAPI_JSON_SERIALIZE_H
#include <stdbool.h>
#include <json-c/json.h>
#include <json-c/json_util.h>
#include "tss2_tpm2_types.h"
#include "fapi_int.h"
#include "ifapi_keystore.h"
#define YES 1
#define NO 0
TSS2_RC
ifapi_json_UINT8_ARY_serialize(const UINT8_ARY *in, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_OBJECT_TYPE_CONSTANT_serialize(const IFAPI_OBJECT_TYPE_CONSTANT
in, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_KEY_serialize(const IFAPI_KEY *in, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_EXT_PUB_KEY_serialize(const IFAPI_EXT_PUB_KEY *in,
json_object **jso);
TSS2_RC
ifapi_json_IFAPI_NV_serialize(const IFAPI_NV *in, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_HIERARCHY_serialize(const IFAPI_HIERARCHY *in, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_OBJECT_serialize(const IFAPI_OBJECT *in,
json_object **jso);
TSS2_RC
ifapi_json_FAPI_QUOTE_INFO_serialize(const FAPI_QUOTE_INFO *in,
json_object **jso);
TSS2_RC
ifapi_json_IFAPI_DUPLICATE_serialize(const IFAPI_DUPLICATE *in,
json_object **jso);
TSS2_RC
ifapi_json_IFAPI_CAP_INFO_serialize(const IFAPI_CAP_INFO *in, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_INFO_serialize(const IFAPI_INFO *in, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_EVENT_TYPE_serialize(const IFAPI_EVENT_TYPE in,
json_object **jso);
TSS2_RC
ifapi_json_IFAPI_EVENT_TYPE_serialize_txt(const IFAPI_EVENT_TYPE in,
json_object **jso);
TSS2_RC
ifapi_json_IFAPI_TSS_EVENT_serialize(const IFAPI_TSS_EVENT *in,
json_object **jso);
TSS2_RC
ifapi_json_IFAPI_IMA_EVENT_serialize(const IFAPI_IMA_EVENT *in,
json_object **jso);
TSS2_RC
ifapi_json_IFAPI_EVENT_UNION_serialize(const IFAPI_EVENT_UNION *in,
UINT32 selector, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_EVENT_serialize(const IFAPI_EVENT *in, json_object **jso);
TSS2_RC
ifapi_json_IFAPI_CONFIG_serialize(const IFAPI_CONFIG *in, json_object **jso);
TSS2_RC
ifapi_json_TPMS_EVENT_CELMGT_serialize(const TPMS_EVENT_CELMGT *in, json_object **jso);
#endif /* IFAPI_JSON_SERIALIZE_H */
ifapi_json_IFAPI_EVENT_TYPE_serialize
TSS2_RC ifapi_json_IFAPI_EVENT_TYPE_serialize(const IFAPI_EVENT_TYPE in, json_object **jso)
Definition ifapi_json_serialize.c:774
ifapi_json_IFAPI_OBJECT_TYPE_CONSTANT_serialize
TSS2_RC ifapi_json_IFAPI_OBJECT_TYPE_CONSTANT_serialize(const IFAPI_OBJECT_TYPE_CONSTANT in, json_object **jso)
Definition ifapi_json_serialize.c:571
ifapi_json_IFAPI_INFO_serialize
TSS2_RC ifapi_json_IFAPI_INFO_serialize(const IFAPI_INFO *in, json_object **jso)
Definition ifapi_json_serialize.c:721
ifapi_json_IFAPI_CAP_INFO_serialize
TSS2_RC ifapi_json_IFAPI_CAP_INFO_serialize(const IFAPI_CAP_INFO *in, json_object **jso)
Definition ifapi_json_serialize.c:683
ifapi_json_IFAPI_HIERARCHY_serialize
TSS2_RC ifapi_json_IFAPI_HIERARCHY_serialize(const IFAPI_HIERARCHY *in, json_object **jso)
Definition ifapi_json_serialize.c:409
ifapi_json_IFAPI_EVENT_serialize
TSS2_RC ifapi_json_IFAPI_EVENT_serialize(const IFAPI_EVENT *in, json_object **jso)
Definition ifapi_json_serialize.c:935
ifapi_json_IFAPI_IMA_EVENT_serialize
TSS2_RC ifapi_json_IFAPI_IMA_EVENT_serialize(const IFAPI_IMA_EVENT *in, json_object **jso)
Definition ifapi_json_serialize.c:872
ifapi_json_IFAPI_NV_serialize
TSS2_RC ifapi_json_IFAPI_NV_serialize(const IFAPI_NV *in, json_object **jso)
Definition ifapi_json_serialize.c:319
ifapi_json_FAPI_QUOTE_INFO_serialize
TSS2_RC ifapi_json_FAPI_QUOTE_INFO_serialize(const FAPI_QUOTE_INFO *in, json_object **jso)
Definition ifapi_json_serialize.c:463
ifapi_json_IFAPI_EXT_PUB_KEY_serialize
TSS2_RC ifapi_json_IFAPI_EXT_PUB_KEY_serialize(const IFAPI_EXT_PUB_KEY *in, json_object **jso)
Definition ifapi_json_serialize.c:270
ifapi_json_IFAPI_CONFIG_serialize
TSS2_RC ifapi_json_IFAPI_CONFIG_serialize(const IFAPI_CONFIG *in, json_object **jso)
Definition ifapi_json_serialize.c:1010
ifapi_json_UINT8_ARY_serialize
TSS2_RC ifapi_json_UINT8_ARY_serialize(const UINT8_ARY *in, json_object **jso)
Definition ifapi_json_serialize.c:58
ifapi_json_IFAPI_EVENT_TYPE_serialize_txt
TSS2_RC ifapi_json_IFAPI_EVENT_TYPE_serialize_txt(const IFAPI_EVENT_TYPE in, json_object **jso)
Definition ifapi_json_serialize.c:801
ifapi_json_IFAPI_DUPLICATE_serialize
TSS2_RC ifapi_json_IFAPI_DUPLICATE_serialize(const IFAPI_DUPLICATE *in, json_object **jso)
Definition ifapi_json_serialize.c:501
ifapi_json_IFAPI_KEY_serialize
TSS2_RC ifapi_json_IFAPI_KEY_serialize(const IFAPI_KEY *in, json_object **jso)
Definition ifapi_json_serialize.c:95
ifapi_json_IFAPI_EVENT_UNION_serialize
TSS2_RC ifapi_json_IFAPI_EVENT_UNION_serialize(const IFAPI_EVENT_UNION *in, UINT32 selector, json_object **jso)
Definition ifapi_json_serialize.c:904
ifapi_json_IFAPI_OBJECT_serialize
TSS2_RC ifapi_json_IFAPI_OBJECT_serialize(const IFAPI_OBJECT *in, json_object **jso)
Definition ifapi_json_serialize.c:593
ifapi_json_IFAPI_TSS_EVENT_serialize
TSS2_RC ifapi_json_IFAPI_TSS_EVENT_serialize(const IFAPI_TSS_EVENT *in, json_object **jso)
Definition ifapi_json_serialize.c:829
FAPI_QUOTE_INFO
Definition ifapi_eventlog.h:89
IFAPI_CAP_INFO
Definition fapi_int.h:165
IFAPI_CONFIG
Definition ifapi_config.h:20
IFAPI_DUPLICATE
Definition ifapi_keystore.h:85
IFAPI_EVENT
Definition ifapi_eventlog.h:77
IFAPI_EXT_PUB_KEY
Definition ifapi_keystore.h:53
IFAPI_HIERARCHY
Definition ifapi_keystore.h:61
IFAPI_IMA_EVENT
Definition ifapi_ima_eventlog.h:50
IFAPI_INFO
Definition fapi_int.h:170
IFAPI_KEY
Definition ifapi_keystore.h:29
IFAPI_NV
Definition ifapi_keystore.h:72
IFAPI_TSS_EVENT
Definition ifapi_eventlog.h:60
TPMS_EVENT_CELMGT
Definition ifapi_eventlog.h:53
UINT8_ARY
Definition fapi_types.h:15
IFAPI_EVENT_UNION
Definition ifapi_eventlog.h:67