From b55b642fc48b5a5cdbbf21e46397e5c8c2ecafcb Mon Sep 17 00:00:00 2001 From: Tadeusz Struk Date: Thu, 27 Jun 2019 17:17:21 -0700 Subject: sys: Add missing definition of TPMS_TAGGED_POLICY struc For whatever reson we don't have the definition of the TPMS_TAGGED_POLICY struct even though its size is used to calculate the TPM2_MAX_TAGGED_POLICIES value. Signed-off-by: Tadeusz Struk --- include/tss2/tss2_mu.h | 14 ++++++++++++++ include/tss2/tss2_tpm2_types.h | 6 ++++++ 2 files changed, 20 insertions(+) (limited to 'include/tss2') diff --git a/include/tss2/tss2_mu.h b/include/tss2/tss2_mu.h index a9c25e19..7adec599 100644 --- a/include/tss2/tss2_mu.h +++ b/include/tss2/tss2_mu.h @@ -790,6 +790,20 @@ Tss2_MU_TPMS_TAGGED_PROPERTY_Unmarshal( size_t *offset, TPMS_TAGGED_PROPERTY *dest); +TSS2_RC +Tss2_MU_TPMS_TAGGED_POLICY_Marshal( + TPMS_TAGGED_POLICY const *src, + uint8_t buffer[], + size_t buffer_size, + size_t *offset); + +TSS2_RC +Tss2_MU_TPMS_TAGGED_POLICY_Unmarshal( + uint8_t const buffer[], + size_t buffer_size, + size_t *offset, + TPMS_TAGGED_POLICY *dest); + TSS2_RC Tss2_MU_TPMS_CLOCK_INFO_Marshal( TPMS_CLOCK_INFO const *src, diff --git a/include/tss2/tss2_tpm2_types.h b/include/tss2/tss2_tpm2_types.h index c1e79878..51550530 100644 --- a/include/tss2/tss2_tpm2_types.h +++ b/include/tss2/tss2_tpm2_types.h @@ -999,6 +999,12 @@ typedef struct { BYTE pcrSelect[TPM2_PCR_SELECT_MAX]; /* the bit map of PCR with the identified property */ } TPMS_TAGGED_PCR_SELECT; +/* Definition of TPMS_TAGGED_POLICY Structure */ +typedef struct { + TPM2_HANDLE handle; + TPMT_HA policyHash; +} TPMS_TAGGED_POLICY; + /* Definition of TPML_CC Structure */ typedef struct { UINT32 count; /* number of commands in the commandCode list may be 0 */ -- cgit v1.2.3