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

Side by Side Diff: tests/tpm_lite/clear.c

Issue 2919010: Add tpm lite to vboot reference (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « tests/tpm_lite/Makefile ('k') | tests/tpm_lite/earlyextend.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 * found in the LICENSE file.
4 */
5
6 /* Testing: ownership testing code and ForceClear.
7 */
8
9 #include <stdio.h>
10
11 #include "tlcl.h"
12
13 int main(int argc, char** argv) {
14 int owned;
15
16 TlclLibInit();
17 TlclStartup();
18 TlclSelftestfull();
19 TlclAssertPhysicalPresence();
20
21 owned = TlclIsOwned();
22 printf("tpm is %sowned\n", owned? "" : "NOT ");
23 if (owned) {
24 TlclForceClear();
25 printf("tpm was cleared\n");
26 }
27
28 return 0;
29 }
OLDNEW
« no previous file with comments | « tests/tpm_lite/Makefile ('k') | tests/tpm_lite/earlyextend.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698