From 5a273f8ead8e495dcf9310744f2d8fe8f341d7ff Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 2 Nov 2017 09:22:49 -0400 Subject: [PATCH] tpm2: comment out _COMMAND_FLAGS_ since not needed Implement bitfield support for _COMMAND_FLAGS_ but comment it out since the structure is not used. Signed-off-by: Stefan Berger --- src/tpm2/Global.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tpm2/Global.h b/src/tpm2/Global.h index 441f87be..7d9307e7 100644 --- a/src/tpm2/Global.h +++ b/src/tpm2/Global.h @@ -951,13 +951,22 @@ extern STATE_RESET_DATA gr; GetClosestCommandIndex(). */ typedef UINT16 COMMAND_INDEX; #define UNIMPLEMENTED_COMMAND_INDEX ((COMMAND_INDEX)(~0)) +#if 0 typedef struct _COMMAND_FLAGS_ { +#if LITTLE_ENDIAN_TPM == YES unsigned trialPolicy : 1; //1) If SET, one of the handles references a // trial policy and authorization may be // skipped. This is only allowed for a policy // command. + unsigned reserved : 31; //2-31) +#endif +#if BIG_ENDIAN_TPM == YES + unsigned reserved : 31; //2-31) + unsigned trialPolicy : 1; //1) If SET, one of the handles references a +#endif } COMMAND_FLAGS; +#endif /* This structure is used to avoid having to manage a large number of parameters being passed through various levels of the command input processing. */ typedef struct _COMMAND_