summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2return_codes.h
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-08-30 16:19:35 +0800
committerCommit Bot <commit-bot@chromium.org>2019-10-23 16:28:21 +0000
commit1ed2dfff778285f36321d90f01d919b948182758 (patch)
tree1290fd08c018ab384e1033f5f9062b0f32da2ccd /firmware/2lib/include/2return_codes.h
parentc7a384c92d83eac81506e3898f2db741f14a17f1 (diff)
downloadvboot-1ed2dfff778285f36321d90f01d919b948182758.tar.gz
vboot: merge pre-vboot1 error codes into vb2_return_code
Since these pre-historic functions have already been updated to return vb2_error_t values, their error codes should be merged into vb2_return_code just like was done for vboot1 error codes in CL:1722913. BUG=b:124141368, chromium:988410 TEST=make clean && make runtests BRANCH=none Change-Id: I5c64eca088a5f130fa5b420f94c85d04955948d2 Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1776292 Tested-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2return_codes.h')
-rw-r--r--firmware/2lib/include/2return_codes.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index fa0ed3b7..49ee50ab 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -37,6 +37,19 @@ enum vb2_return_code {
VB2_ERROR_MOCK,
/**********************************************************************
+ * ancient pre-vboot1 errors
+ * TODO: deprecate these once they have all moved over to vboot2 style
+ */
+ /* Invalid public key passed to a signature verficiation function. */
+ VBOOT_PUBLIC_KEY_INVALID = 4,
+ /* Preamble internal structure is invalid */
+ VBOOT_PREAMBLE_INVALID = 5,
+ /* Shared data is invalid. */
+ VBOOT_SHARED_DATA_INVALID = 7,
+ /* Kernel Preamble does not contain flags */
+ VBOOT_KERNEL_PREAMBLE_NO_FLAGS = 8,
+
+ /**********************************************************************
* vboot1-style errors
* TODO: deprecate these once they have all moved over to vboot2 style
*/