The tpm plugin can be used to derive true random numbers from a TPM 2.0 device. The get_random method must be explicitly enabled in strongswan.conf with the plugin.tpm.use_rng = yes option.
22 lines
481 B
Makefile
22 lines
481 B
Makefile
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/src/libstrongswan \
|
|
-I$(top_srcdir)/src/libtpmtss
|
|
|
|
AM_CFLAGS = \
|
|
$(PLUGIN_CFLAGS)
|
|
|
|
if MONOLITHIC
|
|
noinst_LTLIBRARIES = libstrongswan-tpm.la
|
|
else
|
|
plugin_LTLIBRARIES = libstrongswan-tpm.la
|
|
libstrongswan_tpm_la_LIBADD = \
|
|
$(top_builddir)/src/libtpmtss/libtpmtss.la
|
|
endif
|
|
|
|
libstrongswan_tpm_la_SOURCES = \
|
|
tpm_plugin.h tpm_plugin.c \
|
|
tpm_private_key.h tpm_private_key.c \
|
|
tpm_rng.h tpm_rng.c
|
|
|
|
libstrongswan_tpm_la_LDFLAGS = -module -avoid-version
|