commit | 05c064f12078dde94744f026f52e85598c6e4666 | [log] [tgz] |
---|---|---|
author | Philip Tricca <philip.b.tricca@intel.com> | Mon Apr 24 10:23:00 2017 -0700 |
committer | Philip Tricca <philip.b.tricca@intel.com> | Wed May 03 08:43:01 2017 -0700 |
tree | 698432ce333b55593797f3838e83d5f34e957f7e | |
parent | b7cd1deaa9c3151d7501ffcb1b507679b1cc6855 [diff] |
tss2_tcti.h: Align return types from TCTI invocation macros with spec. The spec is a inconsistent w/r to the return type for a NULL context. The inconsistency is between the example macro to invoke a function pointer from those in the context structure in section 7.3.2 and the description of these functions in 7.3.3.2.1 through 7.3.3.2.6. This patch aligns with the "normative" text in the descriptions of the functions and now returns BAD_REFERENCE instead of BAD_CONTEXT for NULL contexts provided said functions. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
This stack consists of the following layers from top to bottom:
Since the FAPI and ESAPI haven't been implemented yet, this repository only contains the SAPI and layers below it, plus a test application for exercising the SAPI.
The test application, tpmclient, tests many of the commands against the TPM 2.0 simulator. The tpmclient application can be altered and used as a sandbox to test and develop any TPM 2.0 command sequences, and provides an excellent development and learning vehicle.
TPM 2.0 specifications can be found at Trusted Computing Group.