Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 1 | // This file was extracted from the TCG Published |
| 2 | // Trusted Platform Module Library |
| 3 | // Part 3: Commands |
| 4 | // Family "2.0" |
| 5 | // Level 00 Revision 01.16 |
| 6 | // October 30, 2014 |
| 7 | |
| 8 | #include "InternalRoutines.h" |
| 9 | #include "GetTestResult_fp.h" |
| 10 | // |
| 11 | // In the reference implementation, this function is only reachable if the TPM is not in failure mode meaning |
| 12 | // that all tests that have been run have completed successfully. There is not test data and the test result is |
| 13 | // TPM_RC_SUCCESS. |
| 14 | // |
| 15 | TPM_RC |
| 16 | TPM2_GetTestResult( |
| 17 | GetTestResult_Out *out // OUT: output parameter list |
| 18 | ) |
| 19 | { |
| 20 | // Command Output |
| 21 | |
| 22 | // Call incremental self test function in crypt module |
| 23 | out->testResult = CryptGetTestResult(&out->outData); |
| 24 | |
| 25 | return TPM_RC_SUCCESS; |
| 26 | } |