diff options
author | Philip Tricca <philip.b.tricca@intel.com> | 2018-02-21 15:37:23 -0800 |
---|---|---|
committer | Philip Tricca <philip.b.tricca@intel.com> | 2018-02-23 12:22:56 -0800 |
commit | ddf42b20a6b379f4ebff53c20e23be8ea739b42f (patch) | |
tree | 9e7d8a89adcd5c2c401b5697b6a4536245927f29 /include | |
parent | d42e7231c2440f9c5b04df833c1c1855fb424a7d (diff) | |
download | tpm2-tss-ddf42b20a6b379f4ebff53c20e23be8ea739b42f.tar.gz |
tcti: Fix API compatibility with TCTI transmit function.
The spec has the 3rd parameter to the transmit function with the 'const'
qualifier. We were missing this and this patch resolves the API
breakage.
Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sapi/tss2_tcti.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sapi/tss2_tcti.h b/include/sapi/tss2_tcti.h index c9ae94e5..7baba67e 100644 --- a/include/sapi/tss2_tcti.h +++ b/include/sapi/tss2_tcti.h @@ -155,8 +155,9 @@ typedef struct { typedef struct { uint64_t magic; uint32_t version; - TSS2_RC (*transmit)( TSS2_TCTI_CONTEXT *tctiContext, size_t size, -uint8_t *command); + TSS2_RC (*transmit) (TSS2_TCTI_CONTEXT *tctiContext, + size_t size, + const uint8_t *command); TSS2_RC (*receive) (TSS2_TCTI_CONTEXT *tctiContext, size_t *size, uint8_t *response, int32_t timeout); void (*finalize) (TSS2_TCTI_CONTEXT *tctiContext); |