OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010-2011 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 * Functions for querying, manipulating and locking rollback indices | 5 * Functions for querying, manipulating and locking rollback indices |
6 * stored in the TPM NVRAM. | 6 * stored in the TPM NVRAM. |
7 */ | 7 */ |
8 | 8 |
9 #include "rollback_index.h" | 9 #include "rollback_index.h" |
10 | 10 |
11 #include "tlcl.h" | 11 #include "tlcl.h" |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 | 438 |
439 uint32_t RollbackKernelLock(void) { | 439 uint32_t RollbackKernelLock(void) { |
440 if (g_rollback_recovery_mode) { | 440 if (g_rollback_recovery_mode) { |
441 return TPM_SUCCESS; | 441 return TPM_SUCCESS; |
442 } else { | 442 } else { |
443 return TlclLockPhysicalPresence(); | 443 return TlclLockPhysicalPresence(); |
444 } | 444 } |
445 } | 445 } |
446 | 446 |
447 #endif // DISABLE_ROLLBACK_TPM | 447 #endif // DISABLE_ROLLBACK_TPM |
OLD | NEW |