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

Side by Side Diff: src/platform/vboot_reference/tests/rollback_index_mock.c

Issue 2225005: New anti-rollback strategy (no TPM NVRAM write cycles for locking). (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: comment changes 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/platform/vboot_reference/vboot_firmware/include/rollback_index.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 * Mock rollback index library for testing. 5 * Mock rollback index library for testing.
6 */ 6 */
7 7
8 #include "rollback_index.h" 8 #include "rollback_index.h"
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 case KERNEL_VERSION: 53 case KERNEL_VERSION:
54 g_kernel_version = version; 54 g_kernel_version = version;
55 break; 55 break;
56 } 56 }
57 #ifndef NDEBUG 57 #ifndef NDEBUG
58 debug("Rollback Index Library Mock: Stored Version written.\n"); 58 debug("Rollback Index Library Mock: Stored Version written.\n");
59 #endif 59 #endif
60 return 1; 60 return 1;
61 } 61 }
62 62
63 void LockStoredVersion(int type) { 63 void LockFirmwareVersions() {
64 #ifndef NDEBUG 64 #ifndef NDEBUG
65 debug("Rollback Index Library Mock: Version Locked.\n"); 65 debug("Rollback Index Library Mock: Firmware Versions Locked.\n");
66 #endif 66 #endif
67 } 67 }
68 void LockKernelVersionsByLockingPP() {
69 #ifndef NDEBUG
70 debug("Rollback Index Library Mock: Kernel Versions Locked.\n");
71 #endif
72 }
OLDNEW
« no previous file with comments | « no previous file | src/platform/vboot_reference/vboot_firmware/include/rollback_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698