mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-02 06:03:54 +00:00
Change-Id: I4c9b7a937103f3978cbed6629ee4057018b80eae More cleanup. Also allow some tests to run even when TPM is already started. Change-Id: I23558b96a1de55bbeca42dbf2e44f6802a0ec85b Reorganize and standardize behavior of tests. Change-Id: Id32fd09211a72deaa66a3dd0f973d35506ff96f2 BUG=433 TEST=ran all the tests I could run without TPM-free BIOS Review URL: http://codereview.chromium.org/3389004
27 lines
579 B
C
27 lines
579 B
C
/* 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.
|
|
*/
|
|
|
|
/* Test of early use of TPM_Extend.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "tlcl.h"
|
|
#include "tlcl_tests.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
uint8_t value_in[20];
|
|
uint8_t value_out[20];
|
|
|
|
TlclLibInit();
|
|
TPM_CHECK(TlclStartup());
|
|
TPM_CHECK(TlclContinueSelfTest());
|
|
TPM_CHECK(TlclExtend(1, value_in, value_out));
|
|
printf("TEST SUCCEEDED\n");
|
|
exit(0);
|
|
}
|