ifapi_config.h
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifndef IFAPI_CONFIG_H
#define IFAPI_CONFIG_H
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "tss2_tpm2_types.h"
#include "ifapi_io.h"
#define ENV_FAPI_CONFIG "TSS2_FAPICONF"
typedef struct {
char *profile_dir;
char *user_dir;
char *keystore_dir;
char *profile_name;
char *tcti;
char *log_dir;
TPML_PCR_SELECTION system_pcrs;
TPMT_HA ek_fingerprint;
/* URL for EC certificate */
char *ek_cert_file;
/* Switch whether certificate validation will done */
TPMI_YES_NO ek_cert_less;
char *web_cert_service;
/* File with firmware measurements. */
char *firmware_log_file;
/* File with ima measurements. */
char *ima_log_file;
} IFAPI_CONFIG;
TSS2_RC
ifapi_config_initialize_async(
IFAPI_IO *io
);
TSS2_RC
ifapi_config_initialize_finish(
IFAPI_IO *io,
IFAPI_CONFIG *config
);
#endif /* IFAPI_CONFIG_H */
ifapi_config_initialize_finish
TSS2_RC ifapi_config_initialize_finish(IFAPI_IO *io, IFAPI_CONFIG *config)
Definition ifapi_config.c:238
ifapi_config_initialize_async
TSS2_RC ifapi_config_initialize_async(IFAPI_IO *io)
Definition ifapi_config.c:155
IFAPI_CONFIG
Definition ifapi_config.h:20
IFAPI_CONFIG::keystore_dir
char * keystore_dir
Definition ifapi_config.h:26
IFAPI_CONFIG::ek_fingerprint
TPMT_HA ek_fingerprint
Definition ifapi_config.h:36
IFAPI_CONFIG::profile_name
char * profile_name
Definition ifapi_config.h:28
IFAPI_CONFIG::system_pcrs
TPML_PCR_SELECTION system_pcrs
Definition ifapi_config.h:34
IFAPI_CONFIG::user_dir
char * user_dir
Definition ifapi_config.h:24
IFAPI_CONFIG::tcti
char * tcti
Definition ifapi_config.h:30
IFAPI_CONFIG::web_cert_service
char * web_cert_service
Definition ifapi_config.h:42
IFAPI_CONFIG::profile_dir
char * profile_dir
Definition ifapi_config.h:22
IFAPI_CONFIG::log_dir
char * log_dir
Definition ifapi_config.h:32
IFAPI_IO
Definition ifapi_io.h:15