mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-07-12 02:00:42 +02:00
Create alternative tpm2_pcr_read() that uses IBM TSS
Use the IBM TSS to implement the functions as an alternative to the command line tools. The algorithm_string_to_algid() function supports only the digest algorithms in use. The table has place holders for other algorithms as they are needed and the C strings are defined. The table can also be used for an algorithm ID to string function if it's ever needed. When using the IBM TSS, link in its library. Signed-off-by: Ken Goldman <kgoldman@us.ibm.com> [zohar@linux.ibm.com: updated configure.ac, replaced license with SPDX, added comment before TSS_Delete and modified rc1 testing.] Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
@ -22,10 +22,21 @@ evmctl_CPPFLAGS = $(AM_CPPFLAGS) $(LIBCRYPTO_CFLAGS)
|
||||
evmctl_LDFLAGS = $(LDFLAGS_READLINE)
|
||||
evmctl_LDADD = $(LIBCRYPTO_LIBS) -lkeyutils libimaevm.la
|
||||
|
||||
# USE_PCRTSS uses the Intel TSS
|
||||
if USE_PCRTSS
|
||||
evmctl_SOURCES += pcr_tss.c
|
||||
evmctl_SOURCES += pcr_tss.c
|
||||
|
||||
# USE_IBMTSS uses the IBM TSS
|
||||
else
|
||||
evmctl_SOURCES += pcr_tsspcrread.c
|
||||
if USE_IBMTSS
|
||||
evmctl_SOURCES += pcr_ibmtss.c
|
||||
evmctl_LDADD += -libmtss
|
||||
|
||||
# uses the IBM TSS command line utilities
|
||||
else
|
||||
evmctl_SOURCES += pcr_tsspcrread.c
|
||||
|
||||
endif
|
||||
endif
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir) -include config.h
|
||||
|
Reference in New Issue
Block a user