ifapi_policy_store.h
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
******************************************************************************/
#ifndef IFAPI_POLICY_STORE_H
#define IFAPI_POLICY_STORE_H
#include <stdlib.h>
#include "tss2_common.h"
#include "tss2_tpm2_types.h"
#include "fapi_types.h"
#include "ifapi_policy_types.h"
typedef struct IFAPI_POLICY_STORE {
char *policydir;
} IFAPI_POLICY_STORE;
TSS2_RC
ifapi_policy_delete(
IFAPI_POLICY_STORE *pstore,
char *path);
TSS2_RC
ifapi_policy_store_initialize(
IFAPI_POLICY_STORE *pstore,
const char *config_policydir);
TSS2_RC
ifapi_policy_store_load_async(
IFAPI_POLICY_STORE *pstore,
IFAPI_IO *io,
const char *path);
TSS2_RC
ifapi_policy_store_load_finish(
IFAPI_POLICY_STORE *pstore,
IFAPI_IO *io,
TPMS_POLICY *policy);
TSS2_RC
ifapi_policy_store_store_async(
IFAPI_POLICY_STORE *pstore,
IFAPI_IO *io,
const char *path,
const TPMS_POLICY *policy);
TSS2_RC
ifapi_policy_store_store_finish(
IFAPI_POLICY_STORE *pstore,
IFAPI_IO *io);
TSS2_RC
ifapi_policystore_check_overwrite(
IFAPI_POLICY_STORE *pstore,
const char *path);
#endif /* IFAPI_POLICY_STORE_H */
ifapi_policy_store_initialize
TSS2_RC ifapi_policy_store_initialize(IFAPI_POLICY_STORE *pstore, const char *config_policydir)
Definition ifapi_policy_store.c:96
ifapi_policy_store_load_finish
TSS2_RC ifapi_policy_store_load_finish(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io, TPMS_POLICY *policy)
Definition ifapi_policy_store.c:199
ifapi_policy_delete
TSS2_RC ifapi_policy_delete(IFAPI_POLICY_STORE *pstore, char *path)
Definition ifapi_policy_store.c:56
ifapi_policy_store_store_async
TSS2_RC ifapi_policy_store_store_async(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io, const char *path, const TPMS_POLICY *policy)
Definition ifapi_policy_store.c:249
ifapi_policy_store_store_finish
TSS2_RC ifapi_policy_store_store_finish(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io)
Definition ifapi_policy_store.c:303
ifapi_policy_store_load_async
TSS2_RC ifapi_policy_store_load_async(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io, const char *path)
Definition ifapi_policy_store.c:139
IFAPI_IO
Definition ifapi_io.h:15
IFAPI_POLICY_STORE
Definition ifapi_policy_store.h:17
TPMS_POLICY
Definition ifapi_policy_types.h:275