Home GnuPG
Diffusion GnuPG 06c0d7f28fa1

build: Make TPM2 support conditional
06c0d7f28fa1Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

build: Make TPM2 support conditional

* configure.ac (HAVE_LIBTSS): New acdefine and am_conditional.
* agent/Makefile.am: (gpg_agent_SOURCES): Move tpm files to ...
(gpg_agent_SOURCES) [HAVE_LIBTSS]: ... here.
* agent/agent.h (divert_tpm2_pksign, divert_tpm2_pkdecrypt)
(divert_tpm2_writekey) [!HAVE_LIBTSS]: Add stub functions.

This adds a configure stanza to check for the necessary libtss to
support TPM functions. If found, the library functions will be
dynamically loaded, meaning that a system built with TPM2 support will
still execute correctly (obviously minus TPM2 support) if installed
without libtss being present.

  • Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

Details

Provenance
James Bottomley <James.Bottomley@HansenPartnership.com>Authored on Mar 7 2018, 12:02 AM
wernerCommitted on Mar 12 2018, 10:06 AM
Parents
rGfb0470a9f583: agent: Minor cleanup of the TPM patches.
Branches
Unknown
Tags
Unknown
References
tpm-work

Event Timeline

werner committed rG06c0d7f28fa1: build: Make TPM2 support conditional (authored by James Bottomley <James.Bottomley@HansenPartnership.com>).Mar 12 2018, 10:06 AM