tpm2-tss  master
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 <stdlib.h>
11 
12 #include "tss2_common.h"
13 #include "tss2_tpm2_types.h"
14 #include "fapi_types.h"
15 #include "ifapi_policy_types.h"
16 
17 typedef struct IFAPI_POLICY_STORE {
18  char *policydir;
20 
21 TSS2_RC
23  IFAPI_POLICY_STORE *pstore,
24  char *path);
25 
26 TSS2_RC
28  IFAPI_POLICY_STORE *pstore,
29  const char *config_policydir);
30 
31 TSS2_RC
33  IFAPI_POLICY_STORE *pstore,
34  IFAPI_IO *io,
35  const char *path);
36 
37 TSS2_RC
39  IFAPI_POLICY_STORE *pstore,
40  IFAPI_IO *io,
41  TPMS_POLICY *policy);
42 
43 TSS2_RC
45  IFAPI_POLICY_STORE *pstore,
46  IFAPI_IO *io,
47  const char *path,
48  const TPMS_POLICY *policy);
49 
50 TSS2_RC
52  IFAPI_POLICY_STORE *pstore,
53  IFAPI_IO *io);
54 
55 TSS2_RC
56 ifapi_policystore_check_overwrite(
57  IFAPI_POLICY_STORE *pstore,
58  const char *path);
59 
60 #endif /* IFAPI_POLICY_STORE_H */
TSS2_RC ifapi_policy_store_initialize(IFAPI_POLICY_STORE *pstore, const char *config_policydir)
Definition: ifapi_policy_store.c:96
TSS2_RC ifapi_policy_store_load_finish(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io, TPMS_POLICY *policy)
Definition: ifapi_policy_store.c:199
TSS2_RC ifapi_policy_delete(IFAPI_POLICY_STORE *pstore, char *path)
Definition: ifapi_policy_store.c:56
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
TSS2_RC ifapi_policy_store_store_finish(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io)
Definition: ifapi_policy_store.c:303
TSS2_RC ifapi_policy_store_load_async(IFAPI_POLICY_STORE *pstore, IFAPI_IO *io, const char *path)
Definition: ifapi_policy_store.c:139
Definition: ifapi_io.h:15
Definition: ifapi_policy_store.h:17
Definition: ifapi_policy_types.h:275