ifapi_policy_json_serialize.h
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
******************************************************************************/
#ifndef IFAPI_POLICY_JSON_SERIALIZE_H
#define IFAPI_POLICY_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"
TSS2_RC
ifapi_json_TPMI_POLICYTYPE_serialize(const TPMI_POLICYTYPE in,
json_object **jso);
TSS2_RC
ifapi_json_TPMI_POLICYTYPE_serialize_txt(const TPMI_POLICYTYPE in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYSIGNED_serialize(const TPMS_POLICYSIGNED *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYSECRET_serialize(const TPMS_POLICYSECRET *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYLOCALITY_serialize(const TPMS_POLICYLOCALITY *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYNV_serialize(const TPMS_POLICYNV *in, json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYCOUNTERTIMER_serialize(const TPMS_POLICYCOUNTERTIMER *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYCOMMANDCODE_serialize(const TPMS_POLICYCOMMANDCODE *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYPHYSICALPRESENCE_serialize(const
TPMS_POLICYPHYSICALPRESENCE *in, json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYCPHASH_serialize(const TPMS_POLICYCPHASH *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYNAMEHASH_serialize(const TPMS_POLICYNAMEHASH *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYDUPLICATIONSELECT_serialize(const
TPMS_POLICYDUPLICATIONSELECT *in, json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYAUTHORIZE_serialize(const TPMS_POLICYAUTHORIZE *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYAUTHVALUE_serialize(const TPMS_POLICYAUTHVALUE *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYPASSWORD_serialize(const TPMS_POLICYPASSWORD *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYNVWRITTEN_serialize(const TPMS_POLICYNVWRITTEN *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYTEMPLATE_serialize(const TPMS_POLICYTEMPLATE *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYAUTHORIZENV_serialize(const TPMS_POLICYAUTHORIZENV *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYACTION_serialize(const TPMS_POLICYACTION *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_PCRVALUE_serialize(const TPMS_PCRVALUE *in, json_object **jso);
TSS2_RC
ifapi_json_TPML_PCRVALUES_serialize(const TPML_PCRVALUES *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYPCR_serialize(const TPMS_POLICYPCR *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYAUTHORIZATION_serialize(const TPMS_POLICYAUTHORIZATION
*in, json_object **jso);
TSS2_RC
ifapi_json_TPML_POLICYAUTHORIZATIONS_serialize(const TPML_POLICYAUTHORIZATIONS
*in, json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYBRANCH_serialize(const TPMS_POLICYBRANCH *in,
json_object **jso);
TSS2_RC
ifapi_json_TPML_POLICYBRANCHES_serialize(const TPML_POLICYBRANCHES *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICYOR_serialize(const TPMS_POLICYOR *in, json_object **jso);
TSS2_RC
ifapi_json_TPMU_POLICYELEMENT_serialize(const TPMU_POLICYELEMENT *in,
UINT32 selector, json_object **jso);
TSS2_RC
ifapi_json_TPMT_POLICYELEMENT_serialize(const TPMT_POLICYELEMENT *in,
json_object **jso);
TSS2_RC
ifapi_json_TPML_POLICYELEMENTS_serialize(const TPML_POLICYELEMENTS *in,
json_object **jso);
TSS2_RC
ifapi_json_TPMS_POLICY_serialize(const TPMS_POLICY *in,
json_object **jso);
#endif /* IFAPI_POLICY_JSON_SERIALIZE_H */
ifapi_json_TPMT_POLICYELEMENT_serialize
TSS2_RC ifapi_json_TPMT_POLICYELEMENT_serialize(const TPMT_POLICYELEMENT *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1465
ifapi_json_TPMS_POLICYDUPLICATIONSELECT_serialize
TSS2_RC ifapi_json_TPMS_POLICYDUPLICATIONSELECT_serialize(const TPMS_POLICYDUPLICATIONSELECT *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:636
ifapi_json_TPML_PCRVALUES_serialize
TSS2_RC ifapi_json_TPML_PCRVALUES_serialize(const TPML_PCRVALUES *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1058
ifapi_json_TPMS_POLICYACTION_serialize
TSS2_RC ifapi_json_TPMS_POLICYACTION_serialize(const TPMS_POLICYACTION *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:985
ifapi_json_TPML_POLICYELEMENTS_serialize
TSS2_RC ifapi_json_TPML_POLICYELEMENTS_serialize(const TPML_POLICYELEMENTS *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1508
ifapi_json_TPMI_POLICYTYPE_serialize
TSS2_RC ifapi_json_TPMI_POLICYTYPE_serialize(const TPMI_POLICYTYPE in, json_object **jso)
Definition ifapi_policy_json_serialize.c:105
ifapi_json_TPMS_POLICYCPHASH_serialize
TSS2_RC ifapi_json_TPMS_POLICYCPHASH_serialize(const TPMS_POLICYCPHASH *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:525
ifapi_json_TPMS_POLICYAUTHORIZE_serialize
TSS2_RC ifapi_json_TPMS_POLICYAUTHORIZE_serialize(const TPMS_POLICYAUTHORIZE *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:714
ifapi_json_TPMS_POLICYSECRET_serialize
TSS2_RC ifapi_json_TPMS_POLICYSECRET_serialize(const TPMS_POLICYSECRET *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:234
ifapi_json_TPMS_POLICYAUTHORIZATION_serialize
TSS2_RC ifapi_json_TPMS_POLICYAUTHORIZATION_serialize(const TPMS_POLICYAUTHORIZATION *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1150
ifapi_json_TPMS_POLICYNVWRITTEN_serialize
TSS2_RC ifapi_json_TPMS_POLICYNVWRITTEN_serialize(const TPMS_POLICYNVWRITTEN *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:856
ifapi_json_TPMS_POLICYNV_serialize
TSS2_RC ifapi_json_TPMS_POLICYNV_serialize(const TPMS_POLICYNV *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:342
ifapi_json_TPMS_POLICYPHYSICALPRESENCE_serialize
TSS2_RC ifapi_json_TPMS_POLICYPHYSICALPRESENCE_serialize(const TPMS_POLICYPHYSICALPRESENCE *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:505
ifapi_json_TPMS_POLICYOR_serialize
TSS2_RC ifapi_json_TPMS_POLICYOR_serialize(const TPMS_POLICYOR *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1368
ifapi_json_TPMS_POLICYCOMMANDCODE_serialize
TSS2_RC ifapi_json_TPMS_POLICYCOMMANDCODE_serialize(const TPMS_POLICYCOMMANDCODE *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:475
ifapi_json_TPMS_POLICYBRANCH_serialize
TSS2_RC ifapi_json_TPMS_POLICYBRANCH_serialize(const TPMS_POLICYBRANCH *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1280
ifapi_json_TPMS_POLICYPCR_serialize
TSS2_RC ifapi_json_TPMS_POLICYPCR_serialize(const TPMS_POLICYPCR *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1090
ifapi_json_TPMS_POLICYPASSWORD_serialize
TSS2_RC ifapi_json_TPMS_POLICYPASSWORD_serialize(const TPMS_POLICYPASSWORD *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:836
ifapi_json_TPMS_POLICYSIGNED_serialize
TSS2_RC ifapi_json_TPMS_POLICYSIGNED_serialize(const TPMS_POLICYSIGNED *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:121
ifapi_json_TPMS_POLICYNAMEHASH_serialize
TSS2_RC ifapi_json_TPMS_POLICYNAMEHASH_serialize(const TPMS_POLICYNAMEHASH *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:555
ifapi_json_TPMS_POLICYAUTHVALUE_serialize
TSS2_RC ifapi_json_TPMS_POLICYAUTHVALUE_serialize(const TPMS_POLICYAUTHVALUE *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:816
ifapi_json_TPMS_POLICY_serialize
TSS2_RC ifapi_json_TPMS_POLICY_serialize(const TPMS_POLICY *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1543
ifapi_json_TPMS_POLICYTEMPLATE_serialize
TSS2_RC ifapi_json_TPMS_POLICYTEMPLATE_serialize(const TPMS_POLICYTEMPLATE *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:886
ifapi_json_TPMI_POLICYTYPE_serialize_txt
TSS2_RC ifapi_json_TPMI_POLICYTYPE_serialize_txt(const TPMI_POLICYTYPE in, json_object **jso)
Definition ifapi_policy_json_serialize.c:78
ifapi_json_TPMS_POLICYAUTHORIZENV_serialize
TSS2_RC ifapi_json_TPMS_POLICYAUTHORIZENV_serialize(const TPMS_POLICYAUTHORIZENV *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:936
ifapi_json_TPMS_POLICYCOUNTERTIMER_serialize
TSS2_RC ifapi_json_TPMS_POLICYCOUNTERTIMER_serialize(const TPMS_POLICYCOUNTERTIMER *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:429
ifapi_json_TPML_POLICYBRANCHES_serialize
TSS2_RC ifapi_json_TPML_POLICYBRANCHES_serialize(const TPML_POLICYBRANCHES *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1333
ifapi_json_TPMS_POLICYLOCALITY_serialize
TSS2_RC ifapi_json_TPMS_POLICYLOCALITY_serialize(const TPMS_POLICYLOCALITY *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:312
ifapi_json_TPMU_POLICYELEMENT_serialize
TSS2_RC ifapi_json_TPMU_POLICYELEMENT_serialize(const TPMU_POLICYELEMENT *in, UINT32 selector, json_object **jso)
Definition ifapi_policy_json_serialize.c:1399
ifapi_json_TPMS_PCRVALUE_serialize
TSS2_RC ifapi_json_TPMS_PCRVALUE_serialize(const TPMS_PCRVALUE *in, json_object **jso)
Definition ifapi_policy_json_serialize.c:1015
TPML_POLICYAUTHORIZATIONS
Definition ifapi_policy_types.h:205
TPML_POLICYBRANCHES
Definition ifapi_policy_types.h:223
TPML_POLICYELEMENTS
Definition ifapi_policy_types.h:268
TPMS_POLICYACTION
Definition ifapi_policy_types.h:191
TPMS_POLICYAUTHORIZATION
Definition ifapi_policy_types.h:128
TPMS_POLICYAUTHORIZE
Definition ifapi_policy_types.h:143
TPMS_POLICYAUTHORIZENV
Definition ifapi_policy_types.h:181
TPMS_POLICYAUTHVALUE
Definition ifapi_policy_types.h:158
TPMS_POLICYBRANCH
Definition ifapi_policy_types.h:214
TPMS_POLICYCOMMANDCODE
Definition ifapi_policy_types.h:91
TPMS_POLICYCOUNTERTIMER
Definition ifapi_policy_types.h:83
TPMS_POLICYCPHASH
Definition ifapi_policy_types.h:102
TPMS_POLICYDUPLICATIONSELECT
Definition ifapi_policy_types.h:118
TPMS_POLICY
Definition ifapi_policy_types.h:275
TPMS_POLICYLOCALITY
Definition ifapi_policy_types.h:65
TPMS_POLICYNAMEHASH
Definition ifapi_policy_types.h:108
TPMS_POLICYNV
Definition ifapi_policy_types.h:71
TPMS_POLICYNVWRITTEN
Definition ifapi_policy_types.h:168
TPMS_POLICYOR
Definition ifapi_policy_types.h:230
TPMS_POLICYPASSWORD
Definition ifapi_policy_types.h:163
TPMS_POLICYPCR
Definition ifapi_policy_types.h:197
TPMS_POLICYPHYSICALPRESENCE
Definition ifapi_policy_types.h:97
TPMS_POLICYSECRET
Definition ifapi_policy_types.h:54
TPMS_POLICYSIGNED
Definition ifapi_policy_types.h:36
TPMS_POLICYTEMPLATE
Definition ifapi_policy_types.h:174
TPMT_POLICYELEMENT
Definition ifapi_policy_types.h:260
TPMU_POLICYELEMENT
Definition ifapi_policy_types.h:236