libtpmtss: Added to integrity checks
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 26 Jun 2016 14:00:43 +0000 (16:00 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 26 Jun 2016 16:19:05 +0000 (18:19 +0200)
src/checksum/Makefile.am
src/libpttls/pt_tls.c
src/libtpmtss/tpm_tss.c
src/libtpmtss/tpm_tss.h

index 9cc5fb6..87bbf9f 100644 (file)
@@ -53,6 +53,11 @@ if USE_LIBPTTLS
   libs += $(DESTDIR)$(ipseclibdir)/libpttls.so
 endif
 
+if USE_LIBTPMTSS
+  deps += $(top_builddir)/src/libtpmtss/libtpmtss.la
+  libs += $(DESTDIR)$(ipseclibdir)/libtpmtss.so
+endif
+
 if USE_LIBTNCCS
   deps += $(top_builddir)/src/libtnccs/libtnccs.la
   libs += $(DESTDIR)$(ipseclibdir)/libtnccs.so
index 1b136a7..01493f4 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <utils/debug.h>
 #include <pen/pen.h>
+
 /**
  * Described in header.
  */
index 687f9f3..b7b970c 100644 (file)
 #include "tpm_tss_tss2.h"
 #include "tpm_tss_trousers.h"
 
+/**
+ * Described in header.
+ */
+void libtpmtss_init(void)
+{
+       /* empty */
+}
+
 typedef tpm_tss_t*(*tpm_tss_create)();
 
 /**
index 9f95f4d..9295b29 100644 (file)
@@ -130,4 +130,9 @@ struct tpm_tss_t {
  */
 tpm_tss_t *tpm_tss_probe(tpm_version_t version);
 
+/**
+ * Dummy libtpmtss initialization function needed for integrity test
+ */
+void libtpmtss_init(void);
+
 #endif /** TPM_TSS_H_ @}*/