aboutsummaryrefslogtreecommitdiff
path: root/include/tss2
diff options
context:
space:
mode:
authorPhilip Tricca <philip.b.tricca@intel.com>2019-07-15 22:05:12 -0700
committerAndreas Fuchs <andreas.fuchs@sit.fraunhofer.de>2019-07-25 10:48:24 +0200
commitebb398e2d491b955ee80c1273919943b678084be (patch)
tree552b0a2321456a282e7ff54f170ce34491d70eea /include/tss2
parent0638906e2df27431bdfe321aa35ef5d83cceade0 (diff)
downloadtpm2-tss-ebb398e2d491b955ee80c1273919943b678084be.tar.gz
tctildr: Add alternative init function with combined name / conf string.
There are compelling use cases for an init function that takes the name / conf strings as a single string. This is how all command line parameters should be exposed by tools / daemons. The format comes from the tools & tabrmd where the TCTI command line parameter is encoded as "name:conf". This commit appends the '_Ex' suffix to the existing init function that takes name and conf as separate parameters following convention. The init function taking the combined string takes over the Tss2_TctiLdr_Initialize name. This new function is documented in the appropriate man page along with information about the format of the combined TCTI name / conf string. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Diffstat (limited to 'include/tss2')
-rw-r--r--include/tss2/tss2_tctildr.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/tss2/tss2_tctildr.h b/include/tss2/tss2_tctildr.h
index 32492db8..f589dff6 100644
--- a/include/tss2/tss2_tctildr.h
+++ b/include/tss2/tss2_tctildr.h
@@ -14,8 +14,11 @@
void
Tss2_TctiLdr_Finalize (TSS2_TCTI_CONTEXT **context);
TSS2_RC
-Tss2_TctiLdr_Initialize (const char *name,
- const char *conf,
+Tss2_TctiLdr_Initialize_Ex (const char *name,
+ const char *conf,
+ TSS2_TCTI_CONTEXT **context);
+TSS2_RC
+Tss2_TctiLdr_Initialize (const char *nameConf,
TSS2_TCTI_CONTEXT **context);
#endif /* TSS2_TCTILDR_H */