Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: vboot_firmware/lib/include/vboot_common.h

Issue 2718012: More cleanup (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vboot_firmware/lib/cgptlib/include/cgptlib_internal.h ('k') | vboot_firmware/lib/include/vboot_kernel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vboot_firmware/lib/include/vboot_common.h
diff --git a/vboot_firmware/lib/include/vboot_common.h b/vboot_firmware/lib/include/vboot_common.h
index 41c6500b5540be92a359fea0b61eaa847762368d..407746b9537e9602eba74ce14a7e6913ae4ac52c 100644
--- a/vboot_firmware/lib/include/vboot_common.h
+++ b/vboot_firmware/lib/include/vboot_common.h
@@ -13,16 +13,20 @@
#include "cryptolib.h"
#include "vboot_struct.h"
-/* Error Codes for VerifyFirmware. */
-#define VBOOT_SUCCESS 0
-#define VBOOT_INVALID_IMAGE 1
-#define VBOOT_KEY_SIGNATURE_FAILED 2
-#define VBOOT_INVALID_ALGORITHM 3
-#define VBOOT_PREAMBLE_SIGNATURE_FAILED 4
-#define VBOOT_SIGNATURE_FAILED 5
-#define VBOOT_WRONG_MAGIC 6
-#define VBOOT_ERROR_MAX 7 /* Generic catch-all. */
-
+/* Error Codes for all common functions. */
+enum {
+ VBOOT_SUCCESS = 0,
+ VBOOT_KEY_BLOCK_INVALID, /* Key block internal structure is
+ * invalid, or not a key block */
+ VBOOT_KEY_BLOCK_SIGNATURE, /* Key block signature check failed */
+ VBOOT_KEY_BLOCK_HASH, /* Key block hash check failed */
+ VBOOT_PUBLIC_KEY_INVALID, /* Invalid public key passed to a
+ * signature verficiation function. */
+ VBOOT_PREAMBLE_INVALID, /* Preamble internal structure is
+ * invalid */
+ VBOOT_PREAMBLE_SIGNATURE, /* Preamble signature check failed */
+ VBOOT_ERROR_MAX,
+};
extern char* kVbootErrors[VBOOT_ERROR_MAX];
« no previous file with comments | « vboot_firmware/lib/cgptlib/include/cgptlib_internal.h ('k') | vboot_firmware/lib/include/vboot_kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698