summaryrefslogtreecommitdiff
path: root/firmware/stub
diff options
context:
space:
mode:
authorMatt Delco <delco@google.com>2019-02-13 11:13:27 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-13 21:04:59 -0700
commit3bfaab121cbafbd5c6d57004df6784866b8de5de (patch)
treee23a950730e73515c31375bf0b4aba5724f67737 /firmware/stub
parent98b9928b6aa2da5622cd84c5565a9debbf12be35 (diff)
downloadvboot-3bfaab121cbafbd5c6d57004df6784866b8de5de.tar.gz
vboot: changes to allow RW_LEGACY hash verification
This is largely a cherry-pick of CL:1133598 - Externalize vb2_digest_buffer function to vb2api_digest_buffer. - Change VbExLegacy()'s altfw_num parameter from int to enum so caller can specify which specific payload to run. BUG=b:124358784 BRANCH=None TEST=Local compile. Verified with subsequent change that legacy boot still works and new functionality can opt-in to and utilize payload verification. CQ-DEPEND=CL:1471053 Change-Id: I9700c2e38c3cfa255eeff72ce416295af9d076fb Signed-off-by: Matt Delco <delco@google.com> Reviewed-on: https://chromium-review.googlesource.com/1471051 Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'firmware/stub')
-rw-r--r--firmware/stub/vboot_api_stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/stub/vboot_api_stub.c b/firmware/stub/vboot_api_stub.c
index 3363aa4f..f62e9322 100644
--- a/firmware/stub/vboot_api_stub.c
+++ b/firmware/stub/vboot_api_stub.c
@@ -165,7 +165,7 @@ enum VbEcBootMode_t VbGetMode(void)
return vboot_mode;
}
-int VbExLegacy(int altfw_num)
+int VbExLegacy(enum VbAltFwIndex_t altfw_num)
{
return 1;
}