diff options
author | Jocelyn Bohr <bohr@chromium.org> | 2015-07-30 10:44:16 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-10 20:09:27 +0000 |
commit | a4ed3aa64664a1241ea982d685db744caaae3ffa (patch) | |
tree | 72d1ff6899d2321ca8f53d9d6665e46c8b6f1196 /HandleProcess_fp.h | |
parent | d02d5b7076ec51d855c61a67897286b80ef436c2 (diff) | |
download | tpm2-a4ed3aa64664a1241ea982d685db744caaae3ffa.tar.gz |
Implementation files for command marshaling.
Generated C source and header files which add functions to unmarshal command
requests, execute commands, and marshal command responses. This
(tenatively) adds all final missing parts of libtpm2. These files are
generated from command_generator.py in CL:290556.
TEST=$ sudo emerge tpm2
builds libtpm2.a
Locally I was able to call ExecCommand to execute TPM2_Startup with
success after software TPM initialization.
BUG=chromium:501639
CQ-DEPEND=CL:290556
Change-Id: Ieb3f208795a21a172dea25b35027c5aceba7ee08
Reviewed-on: https://chromium-review.googlesource.com/289813
Tested-by: Jocelyn Bohr <bohr@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Commit-Queue: Jocelyn Bohr <bohr@chromium.org>
Diffstat (limited to 'HandleProcess_fp.h')
-rw-r--r-- | HandleProcess_fp.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/HandleProcess_fp.h b/HandleProcess_fp.h index e0d94a8..239071e 100644 --- a/HandleProcess_fp.h +++ b/HandleProcess_fp.h @@ -5,18 +5,18 @@ // Level 00 Revision 01.16 // October 30, 2014 -#ifndef _TPM2_HANDLEPROCESS_FP_H_ -#define _TPM2_HANDLEPROCESS_FP_H_ +#ifndef TPM2_HANDLEPROCESS_FP_H_ +#define TPM2_HANDLEPROCESS_FP_H_ TPM_RC ParseHandleBuffer( - TPM_CC commandCode, // IN: Command being processed - BYTE **handleBufferStart, // IN/OUT: command buffer where handles are - // located. Updated as handles are unmarshaled - INT32 *bufferRemainingSize, // IN/OUT: indicates the amount of data left - // in the command buffer. Updated as handles - // are unmarshaled - TPM_HANDLE handles[], // OUT: Array that receives the handles - UINT32 *handleCount // OUT: Receives the count of handles + TPM_CC command_code, // IN: Command being processed + BYTE **req_handle_buffer_start, // IN/OUT: command buffer where handles are + // located. Updated as handles are unmarshaled + INT32 *req_buffer_remaining_size, // IN/OUT: indicates the amount of data left + // in the command buffer. Updated as handles + // are unmarshaled + TPM_HANDLE req_handles[], // OUT: Array that receives the handles + UINT32 *req_handles_num // OUT: Receives the count of handles ); #endif // _TPM2_HANDLEPROCESS_FP_H_ |