aboutsummaryrefslogtreecommitdiffstats
path: root/tpm2d/intel-tss.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-05-28tpm: Improve error handling and check returned lengths.Werner Koch1-9/+14
* tpm2d/command.c (cmd_pkdecrypt): Handle unknown algo. Also slightly rework error handling. * tpm2d/tpm2.c (sexp_to_tpm2_public_ecc): Check length before checking for 0x04. Rework error handling. (tpm2_ObjectPublic_GetName): Check the return value of TSS_GetDigestSize before use. Erro handling rework. (tpm2_SensitiveToDuplicate): Ditto. (tpm2_import_key): Ditto. * tpm2d/intel-tss.h (TSS_Hash_Generate): Check passed length for negative values. Check return value of TSS_GetDigestSize. Use dedicated 16 bit length variable. -- These are reworked and improved fixes as reported in GnuPG-bug-id: 7129
2024-05-28tpm: Do not use fprintf for logging.Werner Koch1-7/+6
* tpm2d/intel-tss.h (TSS_Create): Replace fprintf logging by log_error.
2023-10-06tpm2d: Check SWTPM environment variable for swtpm support.NIIBE Yutaka1-3/+9
* tpm2d/intel-tss.h (TSS_Create): Check SWTPM. -- Cherry-picked from master commit of: 1da40db03eba4aa056f7cdf8ef90292272a4147d Signed-off-by: James Bottomley <[email protected]>
2023-09-28tpm2d: Check SWTPM environment variable for swtpm support.NIIBE Yutaka1-3/+9
* tpm2d/intel-tss.h (TSS_Create): Check SWTPM. -- Signed-off-by: James Bottomley <[email protected]>
2021-03-11tpmd2: Add Support for the Intel TSSJames Bottomley via Gnupg-devel1-0/+684
* 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]>