aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-11-04 14:13:34 +0100
committerMartin Willi <martin@revosec.ch>2015-02-20 13:34:54 +0100
commit6bfd1fbb71a4a3bd3079f9d26823f7bb12d9cd07 (patch)
treee31eb4316b12d3e120b32a72336ec0c6a1bab847
parenta75980c4aaa7a31dc1455a01abbf36547c9c8bf2 (diff)
downloadstrongswan-6bfd1fbb71a4a3bd3079f9d26823f7bb12d9cd07.tar.bz2
strongswan-6bfd1fbb71a4a3bd3079f9d26823f7bb12d9cd07.tar.xz
resolve: Move plugin back to libcharon
Since pluto is gone, all existing users build upon libcharon.
-rw-r--r--configure.ac6
-rw-r--r--src/libcharon/Makefile.am7
-rw-r--r--src/libcharon/plugins/resolve/Makefile.am (renamed from src/libhydra/plugins/resolve/Makefile.am)1
-rw-r--r--src/libcharon/plugins/resolve/resolve_handler.c (renamed from src/libhydra/plugins/resolve/resolve_handler.c)1
-rw-r--r--src/libcharon/plugins/resolve/resolve_handler.h (renamed from src/libhydra/plugins/resolve/resolve_handler.h)0
-rw-r--r--src/libcharon/plugins/resolve/resolve_plugin.c (renamed from src/libhydra/plugins/resolve/resolve_plugin.c)1
-rw-r--r--src/libcharon/plugins/resolve/resolve_plugin.h (renamed from src/libhydra/plugins/resolve/resolve_plugin.h)0
-rw-r--r--src/libhydra/Makefile.am7
8 files changed, 11 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac
index f9b235093..9d55b39fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1265,7 +1265,7 @@ ADD_PLUGIN([kernel-iph], [c charon])
ADD_PLUGIN([kernel-pfkey], [h charon starter nm cmd])
ADD_PLUGIN([kernel-pfroute], [h charon starter nm cmd])
ADD_PLUGIN([kernel-netlink], [h charon starter nm cmd])
-ADD_PLUGIN([resolve], [h charon cmd])
+ADD_PLUGIN([resolve], [c charon cmd])
ADD_PLUGIN([socket-default], [c charon nm cmd])
ADD_PLUGIN([socket-dynamic], [c charon cmd])
ADD_PLUGIN([socket-win], [c charon])
@@ -1481,6 +1481,7 @@ AM_CONDITIONAL(USE_SOCKET_WIN, test x$socket_win = xtrue)
AM_CONDITIONAL(USE_FARP, test x$farp = xtrue)
AM_CONDITIONAL(USE_ADDRBLOCK, test x$addrblock = xtrue)
AM_CONDITIONAL(USE_UNITY, test x$unity = xtrue)
+AM_CONDITIONAL(USE_RESOLVE, test x$resolve = xtrue)
# hydra plugins
# ---------------
@@ -1489,7 +1490,6 @@ AM_CONDITIONAL(USE_ATTR_SQL, test x$attr_sql = xtrue)
AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue)
AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue)
AM_CONDITIONAL(USE_KERNEL_PFROUTE, test x$kernel_pfroute = xtrue)
-AM_CONDITIONAL(USE_RESOLVE, test x$resolve = xtrue)
# other options
# ---------------
@@ -1654,7 +1654,6 @@ AC_CONFIG_FILES([
src/libhydra/plugins/kernel_netlink/Makefile
src/libhydra/plugins/kernel_pfkey/Makefile
src/libhydra/plugins/kernel_pfroute/Makefile
- src/libhydra/plugins/resolve/Makefile
src/libhydra/tests/Makefile
src/libipsec/Makefile
src/libsimaka/Makefile
@@ -1750,6 +1749,7 @@ AC_CONFIG_FILES([
src/libcharon/plugins/dhcp/Makefile
src/libcharon/plugins/unit_tester/Makefile
src/libcharon/plugins/load_tester/Makefile
+ src/libcharon/plugins/resolve/Makefile
src/stroke/Makefile
src/ipsec/Makefile
src/starter/Makefile
diff --git a/src/libcharon/Makefile.am b/src/libcharon/Makefile.am
index e666950f1..7f7e32155 100644
--- a/src/libcharon/Makefile.am
+++ b/src/libcharon/Makefile.am
@@ -630,3 +630,10 @@ if MONOLITHIC
libcharon_la_LIBADD += plugins/xauth_noauth/libstrongswan-xauth-noauth.la
endif
endif
+
+if USE_RESOLVE
+ SUBDIRS += plugins/resolve
+if MONOLITHIC
+ libcharon_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
+endif
+endif
diff --git a/src/libhydra/plugins/resolve/Makefile.am b/src/libcharon/plugins/resolve/Makefile.am
index 33c3e70fc..9cfc370c0 100644
--- a/src/libhydra/plugins/resolve/Makefile.am
+++ b/src/libcharon/plugins/resolve/Makefile.am
@@ -1,6 +1,7 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/libstrongswan \
-I$(top_srcdir)/src/libhydra \
+ -I$(top_srcdir)/src/libcharon \
-DRESOLV_CONF=\"${resolv_conf}\"
AM_CFLAGS = \
diff --git a/src/libhydra/plugins/resolve/resolve_handler.c b/src/libcharon/plugins/resolve/resolve_handler.c
index 069466ab5..1242ca6ff 100644
--- a/src/libhydra/plugins/resolve/resolve_handler.c
+++ b/src/libcharon/plugins/resolve/resolve_handler.c
@@ -374,4 +374,3 @@ resolve_handler_t *resolve_handler_create()
return &this->public;
}
-
diff --git a/src/libhydra/plugins/resolve/resolve_handler.h b/src/libcharon/plugins/resolve/resolve_handler.h
index 77bf9781c..77bf9781c 100644
--- a/src/libhydra/plugins/resolve/resolve_handler.h
+++ b/src/libcharon/plugins/resolve/resolve_handler.h
diff --git a/src/libhydra/plugins/resolve/resolve_plugin.c b/src/libcharon/plugins/resolve/resolve_plugin.c
index 2fef09a49..00c025f13 100644
--- a/src/libhydra/plugins/resolve/resolve_plugin.c
+++ b/src/libcharon/plugins/resolve/resolve_plugin.c
@@ -99,4 +99,3 @@ plugin_t *resolve_plugin_create()
return &this->public.plugin;
}
-
diff --git a/src/libhydra/plugins/resolve/resolve_plugin.h b/src/libcharon/plugins/resolve/resolve_plugin.h
index 0148b10d7..0148b10d7 100644
--- a/src/libhydra/plugins/resolve/resolve_plugin.h
+++ b/src/libcharon/plugins/resolve/resolve_plugin.h
diff --git a/src/libhydra/Makefile.am b/src/libhydra/Makefile.am
index 7334cdc2e..71c42c3de 100644
--- a/src/libhydra/Makefile.am
+++ b/src/libhydra/Makefile.am
@@ -72,13 +72,6 @@ if MONOLITHIC
endif
endif
-if USE_RESOLVE
- SUBDIRS += plugins/resolve
-if MONOLITHIC
- libhydra_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
-endif
-endif
-
if MONOLITHIC
SUBDIRS += .
endif