diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sapi/tss2_tpm2_types.h | 1 | ||||
-rw-r--r-- | include/tcti/tcti_device.h | 22 |
2 files changed, 5 insertions, 18 deletions
diff --git a/include/sapi/tss2_tpm2_types.h b/include/sapi/tss2_tpm2_types.h index b09879d5..a52e0fbb 100644 --- a/include/sapi/tss2_tpm2_types.h +++ b/include/sapi/tss2_tpm2_types.h @@ -34,6 +34,7 @@ #endif /* TSS2_API_VERSION_1_2_1_108 */ #include <stdint.h> +#include "tpmb.h" #define TPM2_MAX_COMMAND_SIZE 4096 /* maximum size of a command */ #define TPM2_MAX_RESPONSE_SIZE 4096 /* maximum size of a response */ diff --git a/include/tcti/tcti_device.h b/include/tcti/tcti_device.h index 3b845762..b6e96130 100644 --- a/include/tcti/tcti_device.h +++ b/include/tcti/tcti_device.h @@ -27,31 +27,17 @@ #ifndef TCTI_DEVICE_H #define TCTI_DEVICE_H +#include <sapi/tss2_tcti.h> +#include "common.h" + #ifdef __cplusplus extern "C" { #endif -#include "common.h" - -#include "sapi/tpm20.h" - -#define TCTI_DEVICE_DEFAULT "/dev/tpm0" - -typedef struct { - const char *device_path; -} TCTI_DEVICE_CONF; - -TSS2_RC InitDeviceTcti ( - TSS2_TCTI_CONTEXT *tctiContext, // OUT - size_t *contextSize, // IN/OUT - const TCTI_DEVICE_CONF *config // IN - ) COMPILER_ATTR (deprecated); - TSS2_RC Tss2_Tcti_Device_Init ( TSS2_TCTI_CONTEXT *tctiContext, size_t *size, - const char *conf - ); + const char *conf); #ifdef __cplusplus } |