ifapi_policy_instantiate.h
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifndef FAPI_POLICY_INSTANTIATE_H
#define FAPI_POLICY_INSTANTIATE_H
#include <stdint.h>
#include <stdarg.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <json-c/json.h>
#include <json-c/json_util.h>
#include "tss2_esys.h"
#include "tss2_fapi.h"
#include "tss2_policy.h"
//#include "fapi_int.h"
//#include "fapi_policy.h"
//#include "ifapi_keystore.h"
typedef struct {
TPMS_POLICY *policy;
NODE_OBJECT_T *policy_elements;
TSS2_POLICY_CALC_CALLBACKS callbacks;
} IFAPI_POLICY_EVAL_INST_CTX;
TSS2_RC
ifapi_policyeval_instantiate_async(
IFAPI_POLICY_EVAL_INST_CTX *context, /* For re-entry after try_again for offsets and such */
TPMS_POLICY *policy); /* in */
TSS2_RC
ifapi_policyeval_instantiate_finish(
IFAPI_POLICY_EVAL_INST_CTX *context);
#endif /* FAPI_POLICY_INSTANTIATE_H */
ifapi_policyeval_instantiate_finish
TSS2_RC ifapi_policyeval_instantiate_finish(IFAPI_POLICY_EVAL_INST_CTX *context)
Definition ifapi_policy_instantiate.c:190
IFAPI_POLICY_EVAL_INST_CTX
Definition ifapi_policy_instantiate.h:25
IFAPI_POLICY_EVAL_INST_CTX::policy
TPMS_POLICY * policy
Definition ifapi_policy_instantiate.h:26
IFAPI_POLICY_EVAL_INST_CTX::callbacks
TSS2_POLICY_CALC_CALLBACKS callbacks
Definition ifapi_policy_instantiate.h:28
TPMS_POLICY
Definition ifapi_policy_types.h:275