tpm2-tss 4.2.0
TPM Software stack 2.0 TCG spec compliant implementation
ifapi_policy_store.h
1/* SPDX-License-Identifier: BSD-2-Clause */
2/*******************************************************************************
3 * Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
4 * All rights reserved.
5 ******************************************************************************/
6
7#ifndef IFAPI_POLICY_STORE_H
8#define IFAPI_POLICY_STORE_H
9
10#include "ifapi_io.h" // for IFAPI_IO
11#include "ifapi_policy_types.h" // for TPMS_POLICY
12#include "tss2_common.h" // for TSS2_RC
13
14typedef struct IFAPI_POLICY_STORE {
15 char *policydir;
17
18TSS2_RC
19ifapi_policy_delete(IFAPI_POLICY_STORE *pstore, char *path);
20
21TSS2_RC
22ifapi_policy_store_initialize(IFAPI_POLICY_STORE *pstore, const char *config_policydir);
23
24TSS2_RC
25ifapi_policy_store_load_async(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io, const char *path);
26
27TSS2_RC
29
30TSS2_RC
32 IFAPI_IO *io,
33 const char *path,
34 const TPMS_POLICY *policy);
35
36TSS2_RC
38
39TSS2_RC
40ifapi_policystore_check_overwrite(IFAPI_POLICY_STORE *pstore, const char *path);
41
42#endif /* IFAPI_POLICY_STORE_H */
TSS2_RC ifapi_policy_store_initialize(IFAPI_POLICY_STORE *pstore, const char *config_policydir)
Definition ifapi_policy_store.c:93
TSS2_RC ifapi_policy_store_load_finish(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io, TPMS_POLICY *policy)
Definition ifapi_policy_store.c:195
TSS2_RC ifapi_policy_delete(IFAPI_POLICY_STORE *pstore, char *path)
Definition ifapi_policy_store.c:57
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:240
TSS2_RC ifapi_policy_store_store_finish(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io)
Definition ifapi_policy_store.c:290
TSS2_RC ifapi_policy_store_load_async(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io, const char *path)
Definition ifapi_policy_store.c:135
Definition ifapi_io.h:17
Definition ifapi_policy_store.h:14
Definition ifapi_policy_types.h:281