aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2019-10-09 14:43:46 -0700
committerTadeusz Struk <tadeusz.struk@intel.com>2019-10-15 14:56:54 -0700
commitece734f40413bf2995ebe9c496cbe169f90d8231 (patch)
tree1d7901677e852fb7b5782e7d7f6438b375f1aa50 /include
parent8b635f806f002fac0167fa730f4f761cb3ada724 (diff)
downloadtpm2-tss-ece734f40413bf2995ebe9c496cbe169f90d8231.tar.gz
esys: add a new function to retrieve sys context from esys
In some cases it can be necessary to call the underlining sys function before invoking esys function. One example would be to retrieve cpHash buffer of a command that needs to be fed to Esys_PolicySigned or Esys_PolicySecret calls. This can be done by using the Tss2_Sys_GetCpBuffer() sys call as long as the user can access the sys context. Fixes: #1533 Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/tss2/tss2_esys.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tss2/tss2_esys.h b/include/tss2/tss2_esys.h
index 880b829d..e70222e9 100644
--- a/include/tss2/tss2_esys.h
+++ b/include/tss2/tss2_esys.h
@@ -3228,6 +3228,11 @@ void
Esys_Free(
void *__ptr);
+TSS2_RC
+Esys_GetSysContext(
+ ESYS_CONTEXT *esys_context,
+ TSS2_SYS_CONTEXT **sys_context);
+
#ifdef __cplusplus
}
#endif