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

Unified Diff: src/platform/vboot_reference/common/tlcl_stub.c

Issue 1241002: VBoot Reference: Add version checking to for preventing rollbacks. (Closed)
Patch Set: . Created 10 years, 9 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 | « src/platform/vboot_reference/common/Makefile ('k') | src/platform/vboot_reference/include/firmware_image.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/common/tlcl_stub.c
diff --git a/src/platform/vboot_reference/common/tlcl_stub.c b/src/platform/vboot_reference/common/tlcl_stub.c
new file mode 100644
index 0000000000000000000000000000000000000000..0b4625b343680ed4bf047c7b94b83e545bf31544
--- /dev/null
+++ b/src/platform/vboot_reference/common/tlcl_stub.c
@@ -0,0 +1,28 @@
+/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
+ * Stub implementations of TPM Lite Library.
+ */
+
+#include <tss/tcs.h>
+
+void TlclLibinit(void) { return; }
+void TlclStartup(void) { return; }
+void TlclSelftestfull(void) { return; }
+void TlclDefineSpace(uint32_t index, uint32_t perm, uint32_t size) { return; }
+uint32_t TlclWrite(uint32_t index, uint8_t *data, uint32_t length) {
+ return TPM_SUCCESS;
+}
+uint32_t TlclRead(uint32_t index, uint8_t *data, uint32_t length) {
+ return TPM_SUCCESS;
+}
+void TlclWriteLock(uint32_t index) { return; }
+void TlclReadLock(uint32_t index) { return; }
+void TlclAssertPhysicalPresence(void) { return; }
+void TlclSetNvLocked(void) { return; }
+int TlclIsOwned(void) { return 0; }
+void TlclForceClear(void) { return; }
+void TlclPhysicalEnable(void) { return; }
+int TlclPhysicalSetDeactivated(uint8_t flag) { return TPM_SUCCESS; }
+int TlclGetFlags(uint8_t* disable, uint8_t* deactivated) { return TPM_SUCCESS; }
« no previous file with comments | « src/platform/vboot_reference/common/Makefile ('k') | src/platform/vboot_reference/include/firmware_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698