Skip to content

Support Changed Library names and Functions

In this commit, the names of key libraries in the TPM2 TSS changed names.

New names:

  • libtss2-tcti-device.so
  • libtss2-tcti-mssim.so
  • libtss2-tcti-swtpm.so
  • libtss2-sys.so

Additionally, in this commit all references to tcti-socket where renamed to tcti-mssim.

New names:

  • Tss2_Tcti_Mssim_Init

Additionally, in this commit the older init interface methods were removed in favor of the dlopen-style interfaces. You don't have to use dlopen, but the new method arguments are serialized in strings in the same way as the dlopen-style interface.

New arguments:

  • TSS2_TCTI_CONTEXT *tctiContext
  • size_t *size
  • const char *conf

Additionally, although I can't find the commits where they happened, the following renames occurred:

  • TSS2_RC_LEVEL_SHIFT has been replaced with TSS2_RC_LAYER_SHIFT
  • TPM_RS_PW has been replaced with TPM2_RS_PW
  • TPMA_NV_TPMA_NV_* have been replaced with TPMA_NV_* (did manage to find this one, but the new names are not picked up by bindgen.)
  • RC_FMT1 has been replaced with TPM2_RC_FMT1
  • RC_VER1 has been replaced with TPM2_RC_VER1
  • TPM_RC_* have been replaced with either TSS2_RC_* or TPM2_RC_*, as appropriate.
Edited by mwberry