make IMC/IMV pairs independent of libcharon
This commit is contained in:
parent
91b9bc3e0f
commit
7c4d4d209d
|
@ -953,6 +953,7 @@ AM_CONDITIONAL(USE_CONFTEST, test x$conftest = xtrue)
|
|||
AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$pluto = xtrue -o x$tools = xtrue -o x$conftest = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBHYDRA, test x$charon = xtrue -o x$pluto = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBCHARON, test x$charon = xtrue -o x$conftest = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBTNCIF, test x$charon = xtrue -o x$conftest = xtrue -o x$imcv = xtrue)
|
||||
AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue)
|
||||
AM_CONDITIONAL(USE_IPSEC_SCRIPT, test x$pluto = xtrue -o x$stroke = xtrue -o x$tools = xtrue -o x$conftest = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBCAP, test x$capabilities = xlibcap)
|
||||
|
@ -1035,6 +1036,7 @@ AC_OUTPUT(
|
|||
src/libfreeswan/Makefile
|
||||
src/libsimaka/Makefile
|
||||
src/libtls/Makefile
|
||||
src/libtncif/Makefile
|
||||
src/libimcv/Makefile
|
||||
src/libimcv/plugins/imc_test/Makefile
|
||||
src/libimcv/plugins/imv_test/Makefile
|
||||
|
|
|
@ -16,6 +16,10 @@ if USE_TLS
|
|||
SUBDIRS += libtls
|
||||
endif
|
||||
|
||||
if USE_LIBTNCIF
|
||||
SUBDIRS += libtncif
|
||||
endif
|
||||
|
||||
if USE_IMCV
|
||||
SUBDIRS += libimcv
|
||||
endif
|
||||
|
|
|
@ -90,11 +90,9 @@ sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
|
|||
sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
|
||||
sa/tasks/ike_vendor.c sa/tasks/ike_vendor.h \
|
||||
sa/tasks/task.c sa/tasks/task.h \
|
||||
tnc/tncif.h tnc/tncif.c tnc/tncifimc.h tnc/tncifimv.h tnc/tncifimv.c \
|
||||
tnc/imc/imc.h tnc/imc/imc_manager.h \
|
||||
tnc/imv/imv.h tnc/imv/imv_manager.h \
|
||||
tnc/imv/imv_recommendations.c tnc/imv/imv_recommendations.h \
|
||||
tnc/pen/pen.h tnc/pen/pen.c \
|
||||
tnc/tnccs/tnccs.c tnc/tnccs/tnccs.h \
|
||||
tnc/tnccs/tnccs_manager.c tnc/tnccs/tnccs_manager.h
|
||||
|
||||
|
@ -104,7 +102,8 @@ INCLUDES = \
|
|||
-I${linux_headers} \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libtncif
|
||||
|
||||
AM_CFLAGS = \
|
||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
-I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libtncif
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
#include "tnc_imc_manager.h"
|
||||
|
||||
#include <tnc/imc/imc_manager.h>
|
||||
#include <tnc/tncifimc.h>
|
||||
|
||||
#include <tncifimc.h>
|
||||
|
||||
#include <debug.h>
|
||||
#include <library.h>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
-I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libtncif
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
|
@ -8,6 +8,7 @@ if MONOLITHIC
|
|||
noinst_LTLIBRARIES = libstrongswan-tnc-imv.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnc-imv.la
|
||||
libstrongswan_tnc_imv_la_LIBADD = $(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnc_imv_la_SOURCES = \
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
#include "tnc_imv_recommendations.h"
|
||||
|
||||
#include <tnc/imv/imv_manager.h>
|
||||
#include <tnc/tncifimv.h>
|
||||
|
||||
#include <tncifimv.h>
|
||||
|
||||
#include <debug.h>
|
||||
#include <daemon.h>
|
||||
|
|
|
@ -14,7 +14,9 @@
|
|||
|
||||
#include <debug.h>
|
||||
#include <daemon.h>
|
||||
#include <tnc/tncifimv.h>
|
||||
|
||||
#include <tncifimv.h>
|
||||
|
||||
#include <tnc/imv/imv.h>
|
||||
#include <tnc/imv/imv_recommendations.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libtls ${xml_CFLAGS}
|
||||
-I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libtls \
|
||||
-I$(top_srcdir)/src/libtncif ${xml_CFLAGS}
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
|
@ -10,6 +11,7 @@ if MONOLITHIC
|
|||
noinst_LTLIBRARIES = libstrongswan-tnccs-11.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnccs-11.la
|
||||
libstrongswan_tnccs_11_la_LIBADD += $(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnccs_11_la_SOURCES = \
|
||||
|
|
|
@ -25,7 +25,7 @@ typedef struct imc_imv_msg_t imc_imv_msg_t;
|
|||
|
||||
#include "tnccs_msg.h"
|
||||
|
||||
#include <tnc/tncif.h>
|
||||
#include <tncif.h>
|
||||
|
||||
/**
|
||||
* Classs representing the PB-PA message type.
|
||||
|
|
|
@ -25,7 +25,7 @@ typedef struct tnccs_preferred_language_msg_t tnccs_preferred_language_msg_t;
|
|||
|
||||
#include "tnccs_msg.h"
|
||||
|
||||
#include <tnc/tncif.h>
|
||||
#include <tncif.h>
|
||||
|
||||
/**
|
||||
* Class representing the TNCCS-PreferredLanguage message type
|
||||
|
|
|
@ -25,7 +25,7 @@ typedef struct tnccs_recommendation_msg_t tnccs_recommendation_msg_t;
|
|||
|
||||
#include "tnccs_msg.h"
|
||||
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <tncifimv.h>
|
||||
|
||||
/**
|
||||
* Class representing the TNCCS-Recommendation message type
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
#include <daemon.h>
|
||||
#include <debug.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <tnc/tncif.h>
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <tnc/tnccs/tnccs.h>
|
||||
|
||||
typedef struct private_tnccs_11_t private_tnccs_11_t;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libtls
|
||||
-I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libtls \
|
||||
-I$(top_srcdir)/src/libtncif
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
|
@ -8,6 +9,7 @@ if MONOLITHIC
|
|||
noinst_LTLIBRARIES = libstrongswan-tnccs-20.la
|
||||
else
|
||||
plugin_LTLIBRARIES = libstrongswan-tnccs-20.la
|
||||
libstrongswan_tnccs_20_la_LIBADD = $(top_builddir)/src/libtncif/libtncif.la
|
||||
endif
|
||||
|
||||
libstrongswan_tnccs_20_la_SOURCES = \
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <bio/bio_writer.h>
|
||||
#include <bio/bio_reader.h>
|
||||
#include <tnc/tnccs/tnccs.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
#include <pen/pen.h>
|
||||
|
||||
ENUM(pb_tnc_batch_type_names, PB_BATCH_CDATA, PB_BATCH_CLOSE,
|
||||
"CDATA",
|
||||
|
|
|
@ -15,9 +15,10 @@
|
|||
|
||||
#include "pb_assessment_result_msg.h"
|
||||
|
||||
#include <tncifimv.h>
|
||||
|
||||
#include <bio/bio_writer.h>
|
||||
#include <bio/bio_reader.h>
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <debug.h>
|
||||
|
||||
typedef struct private_pb_assessment_result_msg_t private_pb_assessment_result_msg_t;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <bio/bio_writer.h>
|
||||
#include <bio/bio_reader.h>
|
||||
#include <tnc/tnccs/tnccs.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
#include <pen/pen.h>
|
||||
|
||||
ENUM(pb_tnc_error_code_names, PB_ERROR_UNEXPECTED_BATCH_TYPE,
|
||||
PB_ERROR_VERSION_NOT_SUPPORTED,
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <bio/bio_writer.h>
|
||||
#include <bio/bio_reader.h>
|
||||
#include <tnc/tnccs/tnccs.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
#include <pen/pen.h>
|
||||
#include <debug.h>
|
||||
|
||||
ENUM(pa_tnc_subtype_names, PA_SUBTYPE_TESTING, PA_SUBTYPE_NEA_CLIENT,
|
||||
|
|
|
@ -29,10 +29,8 @@
|
|||
#include <debug.h>
|
||||
#include <daemon.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <tnc/tncif.h>
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <tnc/tnccs/tnccs.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
#include <pen/pen.h>
|
||||
|
||||
typedef struct private_tnccs_20_t private_tnccs_20_t;
|
||||
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
#ifndef IMC_H_
|
||||
#define IMC_H_
|
||||
|
||||
#include <tnc/tncifimc.h>
|
||||
#include <tncifimc.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imc_t imc_t;
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
#ifndef IMV_H_
|
||||
#define IMV_H_
|
||||
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <tncifimv.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imv_t imv_t;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#ifndef IMV_RECOMMENDATIONS_H_
|
||||
#define IMV_RECOMMENDATIONS_H_
|
||||
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <tncifimv.h>
|
||||
#include <library.h>
|
||||
|
||||
typedef enum recommendation_policy_t recommendation_policy_t;
|
||||
|
|
|
@ -24,9 +24,10 @@
|
|||
#ifndef TNCCS_H_
|
||||
#define TNCCS_H_
|
||||
|
||||
#include <tnc/tncif.h>
|
||||
#include <tnc/tncifimc.h>
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <tncif.h>
|
||||
#include <tncifimc.h>
|
||||
#include <tncifimv.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef enum tnccs_type_t tnccs_type_t;
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libtncif
|
||||
|
||||
noinst_LTLIBRARIES = libimcv.la
|
||||
|
||||
libimcv_la_LIBADD = $(top_builddir)/src/libtncif/libtncif.la
|
||||
|
||||
libimcv_la_SOURCES = \
|
||||
imc/imc_agent.h imc/imc_agent.c imc/imc_state.h \
|
||||
imv/imv_agent.h imv/imv_agent.c imv/imv_state.h \
|
||||
|
|
|
@ -23,8 +23,9 @@
|
|||
|
||||
#include "imc_state.h"
|
||||
|
||||
#include <tnc/tncifimc.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
#include <tncifimc.h>
|
||||
#include <pen/pen.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imc_agent_t imc_agent_t;
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
#ifndef IMC_STATE_H_
|
||||
#define IMC_STATE_H_
|
||||
|
||||
#include <tnc/tncif.h>
|
||||
#include <tncif.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imc_state_t imc_state_t;
|
||||
|
|
|
@ -23,8 +23,9 @@
|
|||
|
||||
#include "imv_state.h"
|
||||
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
#include <tncifimv.h>
|
||||
#include <pen/pen.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imv_agent_t imv_agent_t;
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
#ifndef IMV_STATE_H_
|
||||
#define IMV_STATE_H_
|
||||
|
||||
#include <tnc/tncifimv.h>
|
||||
#include <tncifimv.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imv_state_t imv_state_t;
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
|
||||
#include "ita_attr_command.h"
|
||||
|
||||
#include <tnc/pen/pen.h>
|
||||
#include <pen/pen.h>
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
typedef struct private_ita_attr_command_t private_ita_attr_command_t;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
typedef struct pa_tnc_attr_t pa_tnc_attr_t;
|
||||
|
||||
#include <library.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
#include <pen/pen.h>
|
||||
|
||||
/**
|
||||
* Interface for an RFC 5792 PA-TNC Posture Attribute.
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libimcv
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libtncif \
|
||||
-I$(top_srcdir)/src/libimcv
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
plugin_LTLIBRARIES = libstrongswan-imc-test.la
|
||||
|
||||
libstrongswan_imc_test_la_LIBADD = $(top_builddir)/src/libimcv/libimcv.la
|
||||
libstrongswan_imc_test_la_LIBADD = $(top_builddir)/src/libimcv/libimcv.la \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la
|
||||
|
||||
libstrongswan_imc_test_la_SOURCES = imc_test.c \
|
||||
imc_test_state.h imc_test_state.c
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
#include <imc/imc_agent.h>
|
||||
#include <pa_tnc/pa_tnc_msg.h>
|
||||
#include <ita/ita_attr_command.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
|
||||
#include <pen/pen.h>
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
/* IMC definitions */
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libimcv
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libtncif \
|
||||
-I$(top_srcdir)/src/libimcv
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
plugin_LTLIBRARIES = libstrongswan-imv-test.la
|
||||
|
||||
libstrongswan_imv_test_la_LIBADD = $(top_builddir)/src/libimcv/libimcv.la
|
||||
libstrongswan_imv_test_la_LIBADD = $(top_builddir)/src/libimcv/libimcv.la \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la
|
||||
|
||||
libstrongswan_imv_test_la_SOURCES = imv_test.c \
|
||||
imv_test_state.h imv_test_state.c
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
#include <imv/imv_agent.h>
|
||||
#include <pa_tnc/pa_tnc_msg.h>
|
||||
#include <ita/ita_attr_command.h>
|
||||
#include <tnc/pen/pen.h>
|
||||
|
||||
#include <pen/pen.h>
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
/* IMV definitions */
|
||||
|
|
|
@ -49,6 +49,7 @@ credentials/cert_validator.h \
|
|||
database/database.h database/database_factory.h database/database_factory.c \
|
||||
fetcher/fetcher.h fetcher/fetcher.c fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
|
||||
eap/eap.h eap/eap.c \
|
||||
pen/pen.h pen/pen.c \
|
||||
plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h \
|
||||
processing/jobs/job.h processing/jobs/job.c \
|
||||
processing/jobs/callback_job.c processing/jobs/callback_job.h \
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||
|
||||
noinst_LTLIBRARIES = libtncif.la
|
||||
|
||||
libtncif_la_SOURCES = tncif.h tncif.c tncifimc.h tncifimv.h tncifimv.c
|
||||
|
Loading…
Reference in New Issue