ifapi_policy_json_deserialize.h
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
******************************************************************************/
#ifndef IFAPI_POLICY_JSON_DESERIALIZE_H
#define IFAPI_POLICY_JSON_DESERIALIZE_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_deserialize(json_object *jso, TPMI_POLICYTYPE *out);
TSS2_RC
ifapi_json_TPMI_POLICYTYPE_deserialize_txt(json_object *jso,
TPMI_POLICYTYPE *out);
TSS2_RC
ifapi_json_TPMS_POLICYSIGNED_deserialize(json_object *jso,
TPMS_POLICYSIGNED *out);
TSS2_RC
ifapi_json_TPMS_POLICYSECRET_deserialize(json_object *jso,
TPMS_POLICYSECRET *out);
TSS2_RC
ifapi_json_TPMS_POLICYLOCALITY_deserialize(json_object *jso,
TPMS_POLICYLOCALITY *out);
TSS2_RC
ifapi_json_TPMS_POLICYNV_deserialize(json_object *jso, TPMS_POLICYNV *out);
TSS2_RC
ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize(json_object *jso,
TPMS_POLICYCOUNTERTIMER *out);
TSS2_RC
ifapi_json_TPMS_POLICYCOMMANDCODE_deserialize(json_object *jso,
TPMS_POLICYCOMMANDCODE *out);
TSS2_RC
ifapi_json_TPMS_POLICYPHYSICALPRESENCE_deserialize(json_object *jso,
TPMS_POLICYPHYSICALPRESENCE *out);
TSS2_RC
ifapi_json_TPMS_POLICYCPHASH_deserialize(json_object *jso,
TPMS_POLICYCPHASH *out);
TSS2_RC
ifapi_json_TPMS_POLICYNAMEHASH_deserialize(json_object *jso,
TPMS_POLICYNAMEHASH *out);
TSS2_RC
ifapi_json_TPMS_POLICYDUPLICATIONSELECT_deserialize(json_object *jso,
TPMS_POLICYDUPLICATIONSELECT *out);
TSS2_RC
ifapi_json_TPMS_POLICYAUTHORIZE_deserialize(json_object *jso,
TPMS_POLICYAUTHORIZE *out);
TSS2_RC
ifapi_json_TPMS_POLICYAUTHVALUE_deserialize(json_object *jso,
TPMS_POLICYAUTHVALUE *out);
TSS2_RC
ifapi_json_TPMS_POLICYPASSWORD_deserialize(json_object *jso,
TPMS_POLICYPASSWORD *out);
TSS2_RC
ifapi_json_TPMS_POLICYNVWRITTEN_deserialize(json_object *jso,
TPMS_POLICYNVWRITTEN *out);
TSS2_RC
ifapi_json_TPMS_POLICYTEMPLATE_deserialize(json_object *jso,
TPMS_POLICYTEMPLATE *out);
TSS2_RC
ifapi_json_TPMS_POLICYAUTHORIZENV_deserialize(json_object *jso,
TPMS_POLICYAUTHORIZENV *out);
TSS2_RC
ifapi_json_TPMS_POLICYACTION_deserialize(json_object *jso,
TPMS_POLICYACTION *out);
TSS2_RC
ifapi_json_TPMS_PCRVALUE_deserialize(json_object *jso, TPMS_PCRVALUE *out);
TSS2_RC
ifapi_json_TPML_PCRVALUES_deserialize(json_object *jso, TPML_PCRVALUES **out);
TSS2_RC
ifapi_json_TPMS_POLICYPCR_deserialize(json_object *jso, TPMS_POLICYPCR *out);
TSS2_RC
ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize(json_object *jso,
TPMS_POLICYAUTHORIZATION *out);
TSS2_RC
ifapi_json_TPML_POLICYAUTHORIZATIONS_deserialize(json_object *jso,
TPML_POLICYAUTHORIZATIONS **out);
TSS2_RC
ifapi_json_TPMS_POLICYBRANCH_deserialize(json_object *jso,
TPMS_POLICYBRANCH *out);
TSS2_RC
ifapi_json_TPML_POLICYBRANCHES_deserialize(json_object *jso,
TPML_POLICYBRANCHES **out);
TSS2_RC
ifapi_json_TPMS_POLICYOR_deserialize(json_object *jso, TPMS_POLICYOR *out);
TSS2_RC
ifapi_json_TPMU_POLICYELEMENT_deserialize(UINT32 selector, json_object *jso,
TPMU_POLICYELEMENT *out);
TSS2_RC
ifapi_json_TPMT_POLICYELEMENT_deserialize(json_object *jso,
TPMT_POLICYELEMENT *out);
TSS2_RC
ifapi_json_TPML_POLICYELEMENTS_deserialize(json_object *jso,
TPML_POLICYELEMENTS **out);
TSS2_RC
ifapi_json_TPMS_POLICY_deserialize(json_object *jso,
TPMS_POLICY *out);
#endif /* IFAPI_POLICY_JSON_DESERIALIZE_H */
ifapi_json_TPMS_POLICYAUTHORIZENV_deserialize
TSS2_RC ifapi_json_TPMS_POLICYAUTHORIZENV_deserialize(json_object *jso, TPMS_POLICYAUTHORIZENV *out)
Definition ifapi_policy_json_deserialize.c:1095
ifapi_json_TPMS_POLICYPCR_deserialize
TSS2_RC ifapi_json_TPMS_POLICYPCR_deserialize(json_object *jso, TPMS_POLICYPCR *out)
Definition ifapi_policy_json_deserialize.c:1278
ifapi_json_TPMS_POLICYNV_deserialize
TSS2_RC ifapi_json_TPMS_POLICYNV_deserialize(json_object *jso, TPMS_POLICYNV *out)
Definition ifapi_policy_json_deserialize.c:426
ifapi_json_TPMS_POLICYLOCALITY_deserialize
TSS2_RC ifapi_json_TPMS_POLICYLOCALITY_deserialize(json_object *jso, TPMS_POLICYLOCALITY *out)
Definition ifapi_policy_json_deserialize.c:379
ifapi_json_TPMS_POLICYPASSWORD_deserialize
TSS2_RC ifapi_json_TPMS_POLICYPASSWORD_deserialize(json_object *jso, TPMS_POLICYPASSWORD *out)
Definition ifapi_policy_json_deserialize.c:962
ifapi_json_TPMS_POLICYCPHASH_deserialize
TSS2_RC ifapi_json_TPMS_POLICYCPHASH_deserialize(json_object *jso, TPMS_POLICYCPHASH *out)
Definition ifapi_policy_json_deserialize.c:620
ifapi_json_TPMS_POLICYNAMEHASH_deserialize
TSS2_RC ifapi_json_TPMS_POLICYNAMEHASH_deserialize(json_object *jso, TPMS_POLICYNAMEHASH *out)
Definition ifapi_policy_json_deserialize.c:663
ifapi_json_TPMT_POLICYELEMENT_deserialize
TSS2_RC ifapi_json_TPMT_POLICYELEMENT_deserialize(json_object *jso, TPMT_POLICYELEMENT *out)
Definition ifapi_policy_json_deserialize.c:1677
ifapi_json_TPMS_POLICYSECRET_deserialize
TSS2_RC ifapi_json_TPMS_POLICYSECRET_deserialize(json_object *jso, TPMS_POLICYSECRET *out)
Definition ifapi_policy_json_deserialize.c:312
ifapi_json_TPMI_POLICYTYPE_deserialize_txt
TSS2_RC ifapi_json_TPMI_POLICYTYPE_deserialize_txt(json_object *jso, TPMI_POLICYTYPE *out)
Definition ifapi_policy_json_deserialize.c:126
ifapi_json_TPMS_POLICYDUPLICATIONSELECT_deserialize
TSS2_RC ifapi_json_TPMS_POLICYDUPLICATIONSELECT_deserialize(json_object *jso, TPMS_POLICYDUPLICATIONSELECT *out)
Definition ifapi_policy_json_deserialize.c:771
ifapi_json_TPMS_POLICYAUTHVALUE_deserialize
TSS2_RC ifapi_json_TPMS_POLICYAUTHVALUE_deserialize(json_object *jso, TPMS_POLICYAUTHVALUE *out)
Definition ifapi_policy_json_deserialize.c:943
ifapi_json_TPML_PCRVALUES_deserialize
TSS2_RC ifapi_json_TPML_PCRVALUES_deserialize(json_object *jso, TPML_PCRVALUES **out)
Definition ifapi_policy_json_deserialize.c:1231
ifapi_json_TPMS_POLICYAUTHORIZE_deserialize
TSS2_RC ifapi_json_TPMS_POLICYAUTHORIZE_deserialize(json_object *jso, TPMS_POLICYAUTHORIZE *out)
Definition ifapi_policy_json_deserialize.c:855
ifapi_json_TPMU_POLICYELEMENT_deserialize
TSS2_RC ifapi_json_TPMU_POLICYELEMENT_deserialize(UINT32 selector, json_object *jso, TPMU_POLICYELEMENT *out)
Definition ifapi_policy_json_deserialize.c:1611
ifapi_json_TPMS_POLICY_deserialize
TSS2_RC ifapi_json_TPMS_POLICY_deserialize(json_object *jso, TPMS_POLICY *out)
Definition ifapi_policy_json_deserialize.c:1765
ifapi_json_TPMS_POLICYPHYSICALPRESENCE_deserialize
TSS2_RC ifapi_json_TPMS_POLICYPHYSICALPRESENCE_deserialize(json_object *jso, TPMS_POLICYPHYSICALPRESENCE *out)
Definition ifapi_policy_json_deserialize.c:591
ifapi_json_TPMS_POLICYTEMPLATE_deserialize
TSS2_RC ifapi_json_TPMS_POLICYTEMPLATE_deserialize(json_object *jso, TPMS_POLICYTEMPLATE *out)
Definition ifapi_policy_json_deserialize.c:1034
ifapi_json_TPMS_PCRVALUE_deserialize
TSS2_RC ifapi_json_TPMS_PCRVALUE_deserialize(json_object *jso, TPMS_PCRVALUE *out)
Definition ifapi_policy_json_deserialize.c:1187
ifapi_json_TPML_POLICYELEMENTS_deserialize
TSS2_RC ifapi_json_TPML_POLICYELEMENTS_deserialize(json_object *jso, TPML_POLICYELEMENTS **out)
Definition ifapi_policy_json_deserialize.c:1716
ifapi_json_TPMI_POLICYTYPE_deserialize
TSS2_RC ifapi_json_TPMI_POLICYTYPE_deserialize(json_object *jso, TPMI_POLICYTYPE *out)
Definition ifapi_policy_json_deserialize.c:85
ifapi_json_TPMS_POLICYCOMMANDCODE_deserialize
TSS2_RC ifapi_json_TPMS_POLICYCOMMANDCODE_deserialize(json_object *jso, TPMS_POLICYCOMMANDCODE *out)
Definition ifapi_policy_json_deserialize.c:563
ifapi_json_TPMS_POLICYSIGNED_deserialize
TSS2_RC ifapi_json_TPMS_POLICYSIGNED_deserialize(json_object *jso, TPMS_POLICYSIGNED *out)
Definition ifapi_policy_json_deserialize.c:196
ifapi_json_TPML_POLICYBRANCHES_deserialize
TSS2_RC ifapi_json_TPML_POLICYBRANCHES_deserialize(json_object *jso, TPML_POLICYBRANCHES **out)
Definition ifapi_policy_json_deserialize.c:1536
ifapi_json_TPMS_POLICYOR_deserialize
TSS2_RC ifapi_json_TPMS_POLICYOR_deserialize(json_object *jso, TPMS_POLICYOR *out)
Definition ifapi_policy_json_deserialize.c:1580
ifapi_json_TPML_POLICYAUTHORIZATIONS_deserialize
TSS2_RC ifapi_json_TPML_POLICYAUTHORIZATIONS_deserialize(json_object *jso, TPML_POLICYAUTHORIZATIONS **out)
Definition ifapi_policy_json_deserialize.c:1435
ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize
TSS2_RC ifapi_json_TPMS_POLICYAUTHORIZATION_deserialize(json_object *jso, TPMS_POLICYAUTHORIZATION *out)
Definition ifapi_policy_json_deserialize.c:1351
ifapi_json_TPMS_POLICYBRANCH_deserialize
TSS2_RC ifapi_json_TPMS_POLICYBRANCH_deserialize(json_object *jso, TPMS_POLICYBRANCH *out)
Definition ifapi_policy_json_deserialize.c:1483
ifapi_json_TPMS_POLICYACTION_deserialize
TSS2_RC ifapi_json_TPMS_POLICYACTION_deserialize(json_object *jso, TPMS_POLICYACTION *out)
Definition ifapi_policy_json_deserialize.c:1148
ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize
TSS2_RC ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize(json_object *jso, TPMS_POLICYCOUNTERTIMER *out)
Definition ifapi_policy_json_deserialize.c:512
ifapi_json_TPMS_POLICYNVWRITTEN_deserialize
TSS2_RC ifapi_json_TPMS_POLICYNVWRITTEN_deserialize(json_object *jso, TPMS_POLICYNVWRITTEN *out)
Definition ifapi_policy_json_deserialize.c:991
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