aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilip Tricca <philip.b.tricca@intel.com>2018-02-23 18:21:48 -0800
committerAndreas Fuchs <andreas.fuchs@sit.fraunhofer.de>2018-02-28 22:01:12 +0100
commitdc11b4f8500ce2b2eb1ce20a0b5fe9feb86dc670 (patch)
tree40b82604324456a6707bc69dedac3ba34c93745d /include
parent49d33d76310d22a0f4a3bc89aaf6adf0c44199c6 (diff)
downloadtpm2-tss-dc11b4f8500ce2b2eb1ce20a0b5fe9feb86dc670.tar.gz
tcti: Generalize version struct and add to INFO struct as first member.
This addresses feedback from TSS2 WG: The INFO structure should be versioned just like we do the context structure. The two version structures must be identical for both structures. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/sapi/tss2_tcti.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sapi/tss2_tcti.h b/include/sapi/tss2_tcti.h
index 78878617..3b4b7bc8 100644
--- a/include/sapi/tss2_tcti.h
+++ b/include/sapi/tss2_tcti.h
@@ -151,7 +151,9 @@ typedef TSS2_RC (*TSS2_TCTI_SET_LOCALITY_FCN) (
typedef struct {
uint64_t magic;
uint32_t version;
-} TSS2_TCTI_CONTEXT_VERSION ;
+} TSS2_TCTI_VERSION ;
+
+typedef TSS2_TCTI_VERSION TSS2_TCTI_CONTEXT_VERSION;
/* current version #1 known to this implementation */
typedef struct {
@@ -176,6 +178,7 @@ typedef TSS2_RC (*TSS2_TCTI_INIT_FUNC) (
);
typedef struct {
+ TSS2_TCTI_VERSION version;
const char *name;
const char *description;
const char *config_help;