summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/tpm2_tlcl_structures.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tpm2_tlcl_structures.h b/src/lib/tpm2_tlcl_structures.h
index fad9c0d7bd..1bf3abc09e 100644
--- a/src/lib/tpm2_tlcl_structures.h
+++ b/src/lib/tpm2_tlcl_structures.h
@@ -198,7 +198,7 @@ typedef struct {
typedef union {
struct {
uint16_t size;
- uint8_t buffer[sizeof(TPMU_HA)];
+ const uint8_t *buffer;
} t;
TPM2B b;
} TPM2B_DIGEST;