[SeaBIOS] [PATCH v3 1/6] tpm: Copy digest into HashLogExentEvent response

Stefan Berger stefanb at us.ibm.com
Thu Jan 7 18:02:46 CET 2016


From: Stefan Berger <stefanb at linux.vnet.ibm.com>

Copy the digest into the response of a HashLogExtendEvent API call.

Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
---
 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) {
-- 
2.4.3




More information about the SeaBIOS mailing list