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/include/rollback_index.h

Issue 2735004: Uses TPM return codes. (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 | « tests/rollback_index_mock.c ('k') | vboot_firmware/lib/load_kernel_fw.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vboot_firmware/include/rollback_index.h
diff --git a/vboot_firmware/include/rollback_index.h b/vboot_firmware/include/rollback_index.h
index 2096474d55b9dfdb7bee796d85bb8ab7b7fb97ec..e0e9d27b3689b35814ff8cecbd6197f3f97e200b 100644
--- a/vboot_firmware/include/rollback_index.h
+++ b/vboot_firmware/include/rollback_index.h
@@ -27,11 +27,11 @@ extern uint16_t g_kernel_version;
#define KERNEL_VERSIONS_BACKUP_NV_INDEX 0x1004
#define KERNEL_BACKUP_IS_VALID_NV_INDEX 0x1005
-
-void SetupTPM(void);
-void GetStoredVersions(int type, uint16_t* key_version, uint16_t* version);
+/* All functions return 0 if successful, non-zero if error */
+int SetupTPM(void);
+int GetStoredVersions(int type, uint16_t* key_version, uint16_t* version);
int WriteStoredVersions(int type, uint16_t key_version, uint16_t version);
-void LockFirmwareVersions();
-void LockKernelVersionsByLockingPP();
+int LockFirmwareVersions();
+int LockKernelVersionsByLockingPP();
#endif /* VBOOT_REFERENCE_ROLLBACK_INDEX_H_ */
« no previous file with comments | « tests/rollback_index_mock.c ('k') | vboot_firmware/lib/load_kernel_fw.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698