libtpmtss: Use pkconfig to configure TSS 2.0 includes and libraries
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 -"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user