microsoft / ms-tpm-20-ref

Reference implementation of the TCG Trusted Platform Module 2.0 specification.
Other
343 stars 133 forks source link

TPMCmd: Remove invalid CLOCK_UPDATE_MASK #36

Closed josephlr closed 5 years ago

josephlr commented 5 years ago

CLOCK_UPDATE_MASK was moved to TimeClockUpdate and its value was changed. However, during this move, the #define CLOCK_UPDATE_MASK was left in. Now it does nothing and has the wrong value.

It should be removed. Note that this will make the content of ClockSet.c differ from the code in the specification. However, the current code is already differs from the spec code, see RETURN_IF_NV_IS_NOT_AVAILABLE.

Signed-off-by: Joe Richey joerichey@google.com