The first patch in this series introduces a function for better handling the error paths of functions where commands to the TPM do not work as expected. It temporairly disables the device.
The other 4 patches refactor some of the code to get rid of local buffers and to make function easier to call. Some of the internal functions had to build up the same data structures as the BIOS interface expected, which was cumbersome.
Regards, Stefan
Stefan Berger (5): Temporarily deactivate the TPM in case of failure Refactor function building TPM commands Refactor the parameters being passed to tpm_extend_acpi_log Refactor hash_log_event BIOS interface function Refactor hash_log_extend_event
src/tcgbios.c | 273 ++++++++++++++++++++++++++++++++++------------------------ src/tcgbios.h | 3 +- 2 files changed, 163 insertions(+), 113 deletions(-)