diff options
author | James Bottomley via Gnupg-devel <[email protected]> | 2021-03-09 21:50:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-03-11 07:49:45 +0000 |
commit | b9c560e3a400da83073b232ee12fae090b21d20c (patch) | |
tree | ffb97091a148dfe8fd3335ddb3503ad4db47e729 /tpm2d/tpm2.h | |
parent | tpmd2: Add copyright blurbs. (diff) | |
download | gnupg-b9c560e3a400da83073b232ee12fae090b21d20c.tar.gz gnupg-b9c560e3a400da83073b232ee12fae090b21d20c.zip |
tpmd2: Add Support for the Intel TSS
* configure.ac: Check for Intel TSS.
* tpm2d/intel-tss.h: New.
* tpm2d/tpm2.h (HAVE_INTEL_TSS): Use the Intel code.
--
The Intel TSS is somewhat of a moving target, so this wraps support
for this TSS into tpm2daemon. Unfortunately this wrapper uses some
APIs that are only present in a relatively recent Intel TSS, so it
looks like it will only work with version 2.4.0 or higher.
Signed-off-by: James Bottomley <[email protected]>
- Add header blurb; see previous patch.
- Add new file to the Makefile
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | tpm2d/tpm2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tpm2d/tpm2.h b/tpm2d/tpm2.h index f2fa89ed9..db79ade64 100644 --- a/tpm2d/tpm2.h +++ b/tpm2d/tpm2.h @@ -22,7 +22,11 @@ #define _GNUPG_TPM2_H #include "../common/util.h" +#ifdef HAVE_INTEL_TSS +#include "intel-tss.h" +#else #include "ibm-tss.h" +#endif int tpm2_start (TSS_CONTEXT **tssc); void tpm2_end (TSS_CONTEXT *tssc); |