mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-30 07:33:37 +02:00

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>
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
lib_LTLIBRARIES = libimaevm.la
|
|
|
|
libimaevm_la_SOURCES = libimaevm.c
|
|
libimaevm_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBCRYPTO_CFLAGS)
|
|
# current[:revision[:age]]
|
|
# result: [current-age].age.revision
|
|
libimaevm_la_LDFLAGS = -version-info 2:0:0
|
|
libimaevm_la_LIBADD = $(LIBCRYPTO_LIBS)
|
|
|
|
include_HEADERS = imaevm.h
|
|
|
|
nodist_libimaevm_la_SOURCES = hash_info.h
|
|
BUILT_SOURCES = hash_info.h
|
|
EXTRA_DIST = hash_info.gen
|
|
hash_info.h: Makefile
|
|
$(srcdir)/hash_info.gen $(KERNEL_HEADERS) >$@
|
|
|
|
bin_PROGRAMS = evmctl
|
|
|
|
evmctl_SOURCES = evmctl.c utils.c
|
|
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
|
|
|
|
# USE_IBMTSS uses the IBM TSS
|
|
else
|
|
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
|
|
|
|
CLEANFILES = hash_info.h tmp_hash_info.h
|
|
DISTCLEANFILES = @DISTCLEANFILES@
|