fixed integrity tests of plugins using libtls or libtnccs
This commit is contained in:
@@ -8,7 +8,6 @@ if MONOLITHIC
|
||||
noinst_LTLIBRARIES = libstrongswan-eap-peap.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-eap-peap.la
|
||||
libstrongswan_eap_peap_la_LIBADD = $(top_builddir)/src/libtls/libtls.la
|
||||
endif
|
||||
|
||||
libstrongswan_eap_peap_la_SOURCES = \
|
||||
|
||||
@@ -8,7 +8,6 @@ if MONOLITHIC
|
||||
noinst_LTLIBRARIES = libstrongswan-eap-tls.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-eap-tls.la
|
||||
libstrongswan_eap_tls_la_LIBADD = $(top_builddir)/src/libtls/libtls.la
|
||||
endif
|
||||
|
||||
libstrongswan_eap_tls_la_SOURCES = \
|
||||
|
||||
@@ -13,9 +13,6 @@ if MONOLITHIC
|
||||
noinst_LTLIBRARIES = libstrongswan-eap-tnc.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-eap-tnc.la
|
||||
libstrongswan_eap_tnc_la_LIBADD = \
|
||||
$(top_builddir)/src/libtls/libtls.la \
|
||||
$(top_builddir)/src/libtnccs/libtnccs.la
|
||||
endif
|
||||
|
||||
libstrongswan_eap_tnc_la_SOURCES = \
|
||||
|
||||
@@ -8,7 +8,6 @@ if MONOLITHIC
|
||||
noinst_LTLIBRARIES = libstrongswan-eap-ttls.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-eap-ttls.la
|
||||
libstrongswan_eap_ttls_la_LIBADD = $(top_builddir)/src/libtls/libtls.la
|
||||
endif
|
||||
|
||||
libstrongswan_eap_ttls_la_SOURCES = \
|
||||
|
||||
@@ -11,8 +11,7 @@ noinst_LTLIBRARIES = libstrongswan-tnc-imc.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnc-imc.la
|
||||
libstrongswan_tnc_imc_la_LIBADD = \
|
||||
$(top_builddir)/src/libtncif/libtncif.la \
|
||||
$(top_builddir)/src/libtnccs/libtnccs.la
|
||||
$(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnc_imc_la_SOURCES = \
|
||||
|
||||
@@ -13,8 +13,7 @@ noinst_LTLIBRARIES = libstrongswan-tnc-imv.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnc-imv.la
|
||||
libstrongswan_tnc_imv_la_LIBADD = \
|
||||
$(top_builddir)/src/libtncif/libtncif.la \
|
||||
$(top_builddir)/src/libtnccs/libtnccs.la
|
||||
$(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnc_imv_la_SOURCES = \
|
||||
|
||||
@@ -11,8 +11,7 @@ noinst_LTLIBRARIES = libstrongswan-tnc-tnccs.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnc-tnccs.la
|
||||
libstrongswan_tnc_tnccs_la_LIBADD = \
|
||||
$(top_builddir)/src/libtncif/libtncif.la \
|
||||
$(top_builddir)/src/libtnccs/libtnccs.la
|
||||
$(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnc_tnccs_la_SOURCES = \
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#include <tnc/tnc.h>
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
typedef struct private_tnc_tnccs_plugin_t private_tnc_tnccs_plugin_t;
|
||||
|
||||
/**
|
||||
@@ -64,6 +66,21 @@ plugin_t *tnc_tnccs_plugin_create(void)
|
||||
{
|
||||
private_tnc_tnccs_plugin_t *this;
|
||||
|
||||
if (lib->integrity)
|
||||
{
|
||||
if (lib->integrity->check(lib->integrity, "libtnccs", libtnccs_init))
|
||||
{
|
||||
DBG1(DBG_LIB,
|
||||
"lib 'libtnccs': passed file and segment integrity tests");
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG1(DBG_LIB,
|
||||
"lib 'libtnccs': failed integrity tests");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
INIT(this,
|
||||
.public = {
|
||||
.plugin = {
|
||||
|
||||
@@ -15,8 +15,7 @@ noinst_LTLIBRARIES = libstrongswan-tnccs-11.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnccs-11.la
|
||||
libstrongswan_tnccs_11_la_LIBADD += \
|
||||
$(top_builddir)/src/libtncif/libtncif.la \
|
||||
$(top_builddir)/src/libtnccs/libtnccs.la
|
||||
$(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnccs_11_la_SOURCES = \
|
||||
|
||||
@@ -12,8 +12,7 @@ noinst_LTLIBRARIES = libstrongswan-tnccs-20.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnccs-20.la
|
||||
libstrongswan_tnccs_20_la_LIBADD = \
|
||||
$(top_builddir)/src/libtncif/libtncif.la \
|
||||
$(top_builddir)/src/libtnccs/libtnccs.la
|
||||
$(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnccs_20_la_SOURCES = \
|
||||
|
||||
@@ -12,8 +12,7 @@ noinst_LTLIBRARIES = libstrongswan-tnccs-dynamic.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnccs-dynamic.la
|
||||
libstrongswan_tnccs_dynamic_la_LIBADD = \
|
||||
$(top_builddir)/src/libtncif/libtncif.la \
|
||||
$(top_builddir)/src/libtnccs/libtnccs.la
|
||||
$(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnccs_dynamic_la_SOURCES = \
|
||||
|
||||
Reference in New Issue
Block a user