]> git.proxmox.com Git - efi-boot-shim.git/commit
shim/tpm: Remove magic numbers
authorJavier Martinez Canillas <javierm@redhat.com>
Thu, 15 Jun 2017 13:16:04 +0000 (15:16 +0200)
committerPeter Jones <pjones@redhat.com>
Thu, 15 Jun 2017 15:30:22 +0000 (11:30 -0400)
commit9c40fb7c0570430e28c8e5bc34223d6e3a59a929
tree71461485f8c526555b8c3389ce0bf965d207b720
parent6d4498fb3b66621992ef61f163befd1c8374781b
shim/tpm: Remove magic numbers

When measuring data into the TPM and generating events logs, the event
type is set to EV_IPL (0xd), and for TPM1.2 the algorithm will always
be set to SHA-1 (0x4).

So, add some macro-defined constants for these instead of having them
as magic numbers to make the code more readable.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
tpm.c
tpm.h