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 withTSS2_RC_LAYER_SHIFT
-
TPM_RS_PW
has been replaced withTPM2_RS_PW
-
TPMA_NV_TPMA_NV_*
have been replaced withTPMA_NV_*
(did manage to find this one, but the new names are not picked up by bindgen.) -
RC_FMT1
has been replaced withTPM2_RC_FMT1
-
RC_VER1
has been replaced withTPM2_RC_VER1
-
TPM_RC_*
have been replaced with eitherTSS2_RC_*
orTPM2_RC_*
, as appropriate.
Edited by mwberry