summaryrefslogtreecommitdiff
path: root/firmware/lib/include/vboot_ui_common.h
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/lib/include/vboot_ui_common.h
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/lib/include/vboot_ui_common.h')
-rw-r--r--firmware/lib/include/vboot_ui_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/lib/include/vboot_ui_common.h b/firmware/lib/include/vboot_ui_common.h
index cc130a67..8998229d 100644
--- a/firmware/lib/include/vboot_ui_common.h
+++ b/firmware/lib/include/vboot_ui_common.h
@@ -38,7 +38,7 @@ void vb2_error_notify(const char *print_msg,
*
* @altfw_num Number of bootloader to start (0=any, 1=first, etc.)
*/
-void vb2_run_altfw(int altfw_num);
+void vb2_run_altfw(enum VbAltFwIndex_t altfw_num);
/** Display an error and beep to indicate that altfw is not available */
void vb2_error_no_altfw(void);
@@ -55,6 +55,6 @@ void vb2_error_no_altfw(void);
* @allowed 1 if allowed, 0 if not allowed
* @altfw_num Number of bootloader to start (0=any, 1=first, etc.)
*/
-void vb2_try_alt_fw(int allowed, int altfw_num);
+void vb2_try_alt_fw(int allowed, enum VbAltFwIndex_t altfw_num);
#endif /* VBOOT_REFERENCE_VBOOT_UI_COMMON_H_ */