libtpmtss: Use pkconfig to configure TSS 2.0 includes and libraries

This commit is contained in:
Andreas Steffen
2016-07-20 11:26:07 +02:00
parent 60d0f52fd6
commit 0274163674
4 changed files with 11 additions and 7 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/libstrongswan
AM_CFLAGS = \
$(tss2_CFLAGS)
AM_LDFLAGS = \
-no-undefined
@@ -16,7 +19,7 @@ libtpmtss_la_LIBADD = \
$(top_builddir)/src/libstrongswan/libstrongswan.la
if USE_TSS2
libtpmtss_la_LIBADD += -ltctisocket -ltss2
libtpmtss_la_LIBADD += $(tss2_LIBS)
endif
if USE_TROUSERS
+2 -2
View File
@@ -22,8 +22,8 @@
#include <asn1/oid.h>
#include <bio/bio_reader.h>
#include <tss2/tpm20.h>
#include <tcti/tcti_socket.h>
#include <tpm20.h>
#include <tcti_socket.h>
#define LABEL "TPM 2.0 -"
+1 -1
View File
@@ -17,7 +17,7 @@
#ifdef TSS_TSS2
#include <tss2/tpm20.h>
#include <tpm20.h>
#ifndef TPM_ALG_ECMQV
#define TPM_ALG_ECMQV (TPM_ALG_ID)0x001D