tpm: Rename function grub_tpm_log_event() to grub_tpm_measure()
grub_tpm_log_event() and grub_tpm_measure() are two functions that have the same effect. So, keep grub_tpm_log_event() and rename it to grub_tpm_measure(). This way we get also a more clear semantics. Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
f39f1ec5d9
commit
c867185b81
3 changed files with 1 additions and 10 deletions
|
@ -319,7 +319,7 @@ grub_tpm2_log_event (grub_efi_handle_t tpm_handle, unsigned char *buf,
|
||||||
}
|
}
|
||||||
|
|
||||||
grub_err_t
|
grub_err_t
|
||||||
grub_tpm_log_event (unsigned char *buf, grub_size_t size, grub_uint8_t pcr,
|
grub_tpm_measure (unsigned char *buf, grub_size_t size, grub_uint8_t pcr,
|
||||||
const char *description)
|
const char *description)
|
||||||
{
|
{
|
||||||
grub_efi_handle_t tpm_handle;
|
grub_efi_handle_t tpm_handle;
|
||||||
|
|
|
@ -29,13 +29,6 @@
|
||||||
|
|
||||||
GRUB_MOD_LICENSE ("GPLv3+");
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
grub_err_t
|
|
||||||
grub_tpm_measure (unsigned char *buf, grub_size_t size, grub_uint8_t pcr,
|
|
||||||
const char *description)
|
|
||||||
{
|
|
||||||
return grub_tpm_log_event (buf, size, pcr, description);
|
|
||||||
}
|
|
||||||
|
|
||||||
static grub_err_t
|
static grub_err_t
|
||||||
grub_tpm_verify_init (grub_file_t io,
|
grub_tpm_verify_init (grub_file_t io,
|
||||||
enum grub_file_type type __attribute__ ((unused)),
|
enum grub_file_type type __attribute__ ((unused)),
|
||||||
|
|
|
@ -77,6 +77,4 @@ grub_err_t grub_tpm_measure (unsigned char *buf, grub_size_t size,
|
||||||
grub_err_t grub_tpm_init (void);
|
grub_err_t grub_tpm_init (void);
|
||||||
grub_err_t grub_tpm_execute (PassThroughToTPM_InputParamBlock *inbuf,
|
grub_err_t grub_tpm_execute (PassThroughToTPM_InputParamBlock *inbuf,
|
||||||
PassThroughToTPM_OutputParamBlock *outbuf);
|
PassThroughToTPM_OutputParamBlock *outbuf);
|
||||||
grub_err_t grub_tpm_log_event (unsigned char *buf, grub_size_t size,
|
|
||||||
grub_uint8_t pcr, const char *description);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue