ifapi_policyutil_execute.h
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifndef FAPI_POLICYUTIL_EXECUTE_H
#define FAPI_POLICYUTIL_EXECUTE_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"
enum IFAPI_STATE_POLICY_UTIL_EXEC {
POLICY_UTIL_INIT,
POLICY_UTIL_EXEC_POLICY,
};
struct IFAPI_POLICYUTIL_STACK {
ESYS_TR policy_session;
IFAPI_POLICY_EXEC_CTX *pol_exec_ctx;
enum IFAPI_STATE_POLICY_UTIL_EXEC state;
IFAPI_POLICYUTIL_STACK *next;
IFAPI_POLICYUTIL_STACK *prev;
};
TSS2_RC
ifapi_policyutil_execute_prepare(
FAPI_CONTEXT *context,
TPMI_ALG_HASH hash_alg,
TPMS_POLICY *policy);
TSS2_RC
ifapi_policyutil_execute(
FAPI_CONTEXT *context,
ESYS_TR *session);
#endif /* FAPI_POLICYUTIL_EXECUTE_H */
ESYS_TR
uint32_t ESYS_TR
Definition tss2_esys.h:16
ifapi_policyutil_execute_prepare
TSS2_RC ifapi_policyutil_execute_prepare(FAPI_CONTEXT *context, TPMI_ALG_HASH hash_alg, TPMS_POLICY *policy)
Definition ifapi_policyutil_execute.c:195
ifapi_policyutil_execute
TSS2_RC ifapi_policyutil_execute(FAPI_CONTEXT *context, ESYS_TR *session)
Definition ifapi_policyutil_execute.c:259
FAPI_CONTEXT
Definition fapi_int.h:1164
IFAPI_POLICY_EXEC_CTX
Definition ifapi_policy_execute.h:67
IFAPI_POLICYUTIL_STACK
Definition ifapi_policyutil_execute.h:27
IFAPI_POLICYUTIL_STACK::next
IFAPI_POLICYUTIL_STACK * next
Definition ifapi_policyutil_execute.h:31
IFAPI_POLICYUTIL_STACK::pol_exec_ctx
IFAPI_POLICY_EXEC_CTX * pol_exec_ctx
Definition ifapi_policyutil_execute.h:29
IFAPI_POLICYUTIL_STACK::prev
IFAPI_POLICYUTIL_STACK * prev
Definition ifapi_policyutil_execute.h:32
IFAPI_POLICYUTIL_STACK::policy_session
ESYS_TR policy_session
Definition ifapi_policyutil_execute.h:28
TPMS_POLICY
Definition ifapi_policy_types.h:275