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

Unified Diff: firmware/lib/include/rollback_index.h

Issue 2857030: Exhaustive test for rollback code (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Fix write count handling and improve comments. Created 10 years, 5 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 | « firmware/include/tlcl.h ('k') | firmware/lib/include/tss_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/lib/include/rollback_index.h
diff --git a/firmware/lib/include/rollback_index.h b/firmware/lib/include/rollback_index.h
index e3399123b3f61b74c6dd9e710ef6fa91286563cd..fd5f72a2feeeed55b73a39f930333ca704c49813 100644
--- a/firmware/lib/include/rollback_index.h
+++ b/firmware/lib/include/rollback_index.h
@@ -95,4 +95,13 @@ uint32_t RollbackKernelWrite(uint16_t key_version, uint16_t version);
/* Lock must be called. Internally, it's ignored in recovery mode. */
uint32_t RollbackKernelLock(void);
+/* The following functions are here for testing only. */
+
+/* Store 1 in *|initialized| if the TPM NVRAM spaces have been initialized, 0
+ * otherwise. Return TPM errors. */
+uint32_t GetSpacesInitialized(int* initialized);
+
+/* Issue a TPM_Clear and reenable/reactivate the TPM. */
+uint32_t TPMClearAndReenable(void);
+
#endif /* VBOOT_REFERENCE_ROLLBACK_INDEX_H_ */
« no previous file with comments | « firmware/include/tlcl.h ('k') | firmware/lib/include/tss_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698