6#ifndef IFAPI_EVENTLOG_H
7#define IFAPI_EVENTLOG_H
13#include "ifapi_eventlog_system.h"
14#include "ifapi_ima_eventlog.h"
16#include "tss2_common.h"
17#include "tss2_tpm2_types.h"
19#define CONTENT_TYPE "content_type"
20#define CONTENT "content"
24typedef UINT32 IFAPI_EVENT_TYPE;
25#define IFAPI_TSS_EVENT_TAG 2
26#define IFAPI_IMA_EVENT_TAG 3
27#define IFAPI_IMA_NG_EVENT_TAG 4
28#define IFAPI_IMA_SIG_EVENT_TAG 5
29#define IFAPI_PC_CLIENT 6
30#define IFAPI_CEL_TAG \
34typedef UINT32 TPMI_CELMGTTYPE;
37#define CEL_TIMESTAMP 80
51 TPMS_EMPTY firmware_end;
97enum IFAPI_EVENTLOG_STATE {
98 IFAPI_EVENTLOG_STATE_INIT = 0,
99 IFAPI_EVENTLOG_STATE_READING,
100 IFAPI_EVENTLOG_STATE_APPENDING,
101 IFAPI_EVENTLOG_STATE_WRITING
105 enum IFAPI_EVENTLOG_STATE state;
107 const char *firmware_log_file;
108 const char *ima_log_file;
110 TPM2_HANDLE pcrList[TPM2_MAX_PCRS];
119 const char *firmware_log_file,
120 const char *ima_log_file);
125 const TPM2_HANDLE *pcrList,
TSS2_RC ifapi_eventlog_append_finish(IFAPI_EVENTLOG *eventlog, IFAPI_IO *io, const IFAPI_EVENT *event)
Definition ifapi_eventlog.c:399
void ifapi_cleanup_event(IFAPI_EVENT *event)
Definition ifapi_eventlog.c:481
TSS2_RC ifapi_eventlog_append_check(IFAPI_EVENTLOG *eventlog, IFAPI_IO *io)
Definition ifapi_eventlog.c:330
TSS2_RC ifapi_eventlog_get_async(IFAPI_EVENTLOG *eventlog, IFAPI_IO *io, const TPM2_HANDLE *pcrList, size_t pcrListSize)
Definition ifapi_eventlog.c:78
Definition ifapi_eventlog.h:92
TPMT_SIG_SCHEME sig_scheme
Definition ifapi_eventlog.h:93
TPMS_ATTEST attest
Definition ifapi_eventlog.h:94
Definition ifapi_eventlog.h:80
TPML_DIGEST_VALUES digests
Definition ifapi_eventlog.h:83
IFAPI_EVENT_TYPE content_type
Definition ifapi_eventlog.h:84
UINT32 recnum
Definition ifapi_eventlog.h:81
IFAPI_EVENT_UNION content
Definition ifapi_eventlog.h:85
bool verify
Definition ifapi_eventlog.h:86
TPM2_HANDLE pcr
Definition ifapi_eventlog.h:82
Definition ifapi_eventlog.h:104
Definition ifapi_eventlog_system.h:41
Definition ifapi_ima_eventlog.h:55
Definition ifapi_eventlog.h:63
TPM2B_EVENT data
Definition ifapi_eventlog.h:64
char * event
Definition ifapi_eventlog.h:65
Definition ifapi_eventlog.h:43
Definition ifapi_eventlog.h:56
Definition ifapi_eventlog.h:70
IFAPI_IMA_EVENT ima_event
Definition ifapi_eventlog.h:72
IFAPI_FIRMWARE_EVENT firmware_event
Definition ifapi_eventlog.h:73
IFAPI_TSS_EVENT tss_event
Definition ifapi_eventlog.h:71
TPMS_EVENT_CELMGT cel_event
Definition ifapi_eventlog.h:74
Definition ifapi_eventlog.h:49