From 2b237501077d9dcdb9c9ba8cd7aaabdd4a531e80 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 7 Jan 2016 12:02:46 -0500 Subject: tpm: Copy digest into HashLogExentEvent response Copy the digest into the response of a HashLogExtendEvent API call. Signed-off-by: Stefan Berger --- src/tcgbios.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tcgbios.c b/src/tcgbios.c index 1a247df..8716600 100644 --- a/src/tcgbios.c +++ b/src/tcgbios.c @@ -660,6 +660,7 @@ hash_log_extend_event_int(const struct hleei_short *hleei_s, hleeo->opblength = sizeof(struct hleeo); hleeo->reserved = 0; hleeo->eventnumber = hleo.eventnumber; + memcpy(hleeo->digest, pcpes->digest, sizeof(hleeo->digest)); err_exit: if (rc != 0) { -- cgit v1.1