libtpmtss: Initialize library from all users

Previously, only the tpm plugin initialized the library, so in order
to use a TPM 2.0 (a required TCTI library is loaded via init), it was
necessary to load it even if none of its actual features were used.
This commit is contained in:
Tobias Brunner
2021-08-20 17:10:11 +02:00
parent 6c1210dcf6
commit 5126e7c0fc
5 changed files with 45 additions and 18 deletions
+9 -9
View File
@@ -192,22 +192,22 @@ struct tpm_tss_t {
};
/**
* Create a tpm_tss instance.
*
* @param version TPM version that must be supported by TSS
*/
tpm_tss_t *tpm_tss_probe(tpm_version_t version);
/**
* libtpmtss initialization function
* Initialize libtpmtss
*
* @return TRUE if initialization was successful
*/
bool libtpmtss_init(void);
/**
* libtpmtss de-initialization function
* Deinitialize libtpmtss
*/
void libtpmtss_deinit(void);
/**
* Create a tpm_tss instance.
*
* @param version TPM version that must be supported by TSS
*/
tpm_tss_t *tpm_tss_probe(tpm_version_t version);
#endif /** TPM_TSS_H_ @}*/