libhydra: Remove empty unused library
This commit is contained in:
parent
8394ea2a42
commit
28649f6d91
|
@ -97,7 +97,6 @@ strongswan_CFLAGS += \
|
|||
strongswan_BUILD := \
|
||||
charon \
|
||||
libcharon \
|
||||
libhydra \
|
||||
libstrongswan \
|
||||
libtncif \
|
||||
libtnccs \
|
||||
|
|
|
@ -1601,7 +1601,6 @@ AM_CONDITIONAL(USE_SCEPCLIENT, test x$scepclient = xtrue)
|
|||
AM_CONDITIONAL(USE_SCRIPTS, test x$scripts = xtrue)
|
||||
AM_CONDITIONAL(USE_CONFTEST, test x$conftest = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$pki = xtrue -o x$scepclient = xtrue -o x$conftest = xtrue -o x$fast = xtrue -o x$imcv = xtrue -o x$nm = xtrue -o x$tkm = xtrue -o x$cmd = xtrue -o x$tls = xtrue -o x$tnc_tnccs = xtrue -o x$aikgen = xtrue -o x$svc = xtrue -o x$systemd = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBHYDRA, test x$charon = xtrue -o x$nm = xtrue -o x$tkm = xtrue -o x$cmd = xtrue -o x$svc = xtrue -o x$systemd = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBCHARON, test x$charon = xtrue -o x$conftest = xtrue -o x$nm = xtrue -o x$tkm = xtrue -o x$cmd = xtrue -o x$svc = xtrue -o x$systemd = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBIPSEC, test x$libipsec = xtrue)
|
||||
AM_CONDITIONAL(USE_LIBTNCIF, test x$tnc_tnccs = xtrue -o x$imcv = xtrue)
|
||||
|
@ -1744,8 +1743,6 @@ AC_CONFIG_FILES([
|
|||
src/libstrongswan/plugins/bliss/tests/Makefile
|
||||
src/libstrongswan/plugins/test_vectors/Makefile
|
||||
src/libstrongswan/tests/Makefile
|
||||
src/libhydra/Makefile
|
||||
src/libhydra/tests/Makefile
|
||||
src/libipsec/Makefile
|
||||
src/libipsec/tests/Makefile
|
||||
src/libsimaka/Makefile
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
etc
|
||||
# libraries
|
||||
usr/lib/ipsec/libstrongswan.so*
|
||||
usr/lib/ipsec/libhydra.so*
|
||||
usr/lib/ipsec/libcharon.so*
|
||||
# starter etc.
|
||||
usr/sbin/ipsec
|
||||
|
|
|
@ -2,7 +2,6 @@ etc/strongswan.conf etc/
|
|||
usr/lib/strongswan/libstrongswan.so* usr/lib/strongswan/
|
||||
usr/lib/strongswan/libcharon.so* usr/lib/strongswan/
|
||||
usr/lib/strongswan/libtls.so* usr/lib/strongswan/
|
||||
usr/lib/strongswan/libhydra.so* usr/lib/strongswan/
|
||||
usr/lib/strongswan/plugins/libstrongswan-x509.so* usr/lib/strongswan/plugins/
|
||||
usr/lib/strongswan/plugins/libstrongswan-pubkey.so* usr/lib/strongswan/plugins/
|
||||
usr/lib/strongswan/plugins/libstrongswan-xcbc.so* usr/lib/strongswan/plugins/
|
||||
|
|
|
@ -4,10 +4,6 @@ if USE_LIBSTRONGSWAN
|
|||
SUBDIRS += libstrongswan
|
||||
endif
|
||||
|
||||
if USE_LIBHYDRA
|
||||
SUBDIRS += libhydra
|
||||
endif
|
||||
|
||||
if USE_LIBIPSEC
|
||||
SUBDIRS += libipsec
|
||||
endif
|
||||
|
|
|
@ -12,7 +12,6 @@ charon-cmd.o : $(top_builddir)/config.status
|
|||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\" \
|
||||
|
@ -20,6 +19,5 @@ AM_CPPFLAGS = \
|
|||
|
||||
charon_cmd_LDADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
$(top_builddir)/src/libcharon/libcharon.la \
|
||||
-lm $(PTHREADLIB) $(DLLIB)
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include <errno.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
#include <utils/backtrace.h>
|
||||
#include <threading/thread.h>
|
||||
|
@ -330,11 +329,6 @@ int main(int argc, char *argv[])
|
|||
exit(SS_RC_DAEMON_INTEGRITY);
|
||||
}
|
||||
}
|
||||
atexit(libhydra_deinit);
|
||||
if (!libhydra_init())
|
||||
{
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
}
|
||||
atexit(libcharon_deinit);
|
||||
if (!libcharon_init())
|
||||
{
|
||||
|
|
|
@ -9,7 +9,6 @@ charon_nm_SOURCES = \
|
|||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\" \
|
||||
|
@ -21,6 +20,5 @@ AM_CFLAGS = \
|
|||
|
||||
charon_nm_LDADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
$(top_builddir)/src/libcharon/libcharon.la \
|
||||
-lm $(PTHREADLIB) $(DLLIB) ${nm_LIBS}
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
|
||||
#include <library.h>
|
||||
|
@ -177,14 +176,6 @@ int main(int argc, char *argv[])
|
|||
exit(SS_RC_DAEMON_INTEGRITY);
|
||||
}
|
||||
|
||||
if (!libhydra_init())
|
||||
{
|
||||
dbg_syslog(DBG_DMN, 1, "initialization failed - aborting charon-nm");
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
}
|
||||
|
||||
if (!libcharon_init())
|
||||
{
|
||||
dbg_syslog(DBG_DMN, 1, "initialization failed - aborting charon-nm");
|
||||
|
@ -212,7 +203,6 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
DBG1(DBG_DMN, "integrity tests enabled:");
|
||||
DBG1(DBG_DMN, "lib 'libstrongswan': passed file and segment integrity tests");
|
||||
DBG1(DBG_DMN, "lib 'libhydra': passed file and segment integrity tests");
|
||||
DBG1(DBG_DMN, "lib 'libcharon': passed file and segment integrity tests");
|
||||
DBG1(DBG_DMN, "daemon 'charon-nm': passed file integrity test");
|
||||
}
|
||||
|
@ -260,7 +250,6 @@ int main(int argc, char *argv[])
|
|||
|
||||
deinit:
|
||||
libcharon_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
return status;
|
||||
}
|
||||
|
|
|
@ -6,11 +6,9 @@ charon-svc.o : $(top_builddir)/config.status
|
|||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DPLUGINS=\""${charon_plugins}\""
|
||||
|
||||
charon_svc_LDADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
$(top_builddir)/src/libcharon/libcharon.la
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
*/
|
||||
|
||||
#include <library.h>
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
|
||||
#include <utils/backtrace.h>
|
||||
|
@ -210,28 +209,22 @@ static void init_and_run(DWORD dwArgc, LPTSTR *lpszArgv, int (*wait)())
|
|||
if (library_init(NULL, SERVICE_NAME))
|
||||
{
|
||||
update_status(SERVICE_START_PENDING);
|
||||
if (libhydra_init())
|
||||
if (libcharon_init())
|
||||
{
|
||||
charon->load_loggers(charon, levels, TRUE);
|
||||
print_version();
|
||||
update_status(SERVICE_START_PENDING);
|
||||
if (libcharon_init())
|
||||
if (charon->initialize(charon, PLUGINS))
|
||||
{
|
||||
charon->load_loggers(charon, levels, TRUE);
|
||||
print_version();
|
||||
update_status(SERVICE_START_PENDING);
|
||||
if (charon->initialize(charon, PLUGINS))
|
||||
{
|
||||
update_status(SERVICE_START_PENDING);
|
||||
lib->plugins->status(lib->plugins, LEVEL_CTRL);
|
||||
lib->plugins->status(lib->plugins, LEVEL_CTRL);
|
||||
|
||||
charon->start(charon);
|
||||
charon->start(charon);
|
||||
|
||||
status.dwWin32ExitCode = wait();
|
||||
}
|
||||
update_status(SERVICE_STOP_PENDING);
|
||||
libcharon_deinit();
|
||||
status.dwWin32ExitCode = wait();
|
||||
}
|
||||
update_status(SERVICE_STOP_PENDING);
|
||||
libhydra_deinit();
|
||||
libcharon_deinit();
|
||||
}
|
||||
update_status(SERVICE_STOP_PENDING);
|
||||
library_deinit();
|
||||
|
|
|
@ -7,13 +7,11 @@ charon-systemd.o : $(top_builddir)/config.status
|
|||
|
||||
charon_systemd_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
$(systemd_CFLAGS) $(systemd_daemon_CFLAGS) $(systemd_journal_CFLAGS) \
|
||||
-DPLUGINS=\""${charon_plugins}\""
|
||||
|
||||
charon_systemd_LDADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
$(top_builddir)/src/libcharon/libcharon.la \
|
||||
$(systemd_LIBS) $(systemd_daemon_LIBS) $(systemd_journal_LIBS) -lm $(PTHREADLIB) $(DLLIB)
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include <systemd/sd-daemon.h>
|
||||
#include <systemd/sd-journal.h>
|
||||
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
|
||||
#include <library.h>
|
||||
|
@ -355,12 +354,6 @@ int main(int argc, char *argv[])
|
|||
sd_notifyf(0, "STATUS=integrity check of charon-systemd failed");
|
||||
return SS_RC_INITIALIZATION_FAILED;
|
||||
}
|
||||
atexit(libhydra_deinit);
|
||||
if (!libhydra_init())
|
||||
{
|
||||
sd_notifyf(0, "STATUS=libhydra initialization failed");
|
||||
return SS_RC_INITIALIZATION_FAILED;
|
||||
}
|
||||
atexit(libcharon_deinit);
|
||||
if (!libcharon_init())
|
||||
{
|
||||
|
|
|
@ -4,15 +4,13 @@ OBJ = $(abs_top_builddir)/src
|
|||
AM_CPPFLAGS = \
|
||||
-include $(abs_top_builddir)/config.h \
|
||||
-I$(SRC)/libstrongswan \
|
||||
-I$(SRC)/libhydra \
|
||||
-I$(SRC)/libcharon
|
||||
|
||||
LIBLD = \
|
||||
-L$(OBJ)/libstrongswan/.libs \
|
||||
-L$(OBJ)/libhydra/.libs \
|
||||
-L$(OBJ)/libcharon/.libs
|
||||
LIBPT = $(OBJ)/libstrongswan/.libs:$(OBJ)/libhydra/.libs:$(OBJ)/libcharon/.libs
|
||||
LIBFL = -lstrongswan -lhydra -lcharon
|
||||
LIBPT = $(OBJ)/libstrongswan/.libs:$(OBJ)/libcharon/.libs
|
||||
LIBFL = -lstrongswan -lcharon
|
||||
|
||||
DEFS += -DPLUGINS=\""$(PLUGINS)\"" -DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include <libgen.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
#include <library.h>
|
||||
#include <utils/backtrace.h>
|
||||
|
@ -256,14 +255,6 @@ int main(int argc, char *argv[])
|
|||
exit(status);
|
||||
}
|
||||
|
||||
if (!libhydra_init())
|
||||
{
|
||||
dbg_syslog(DBG_DMN, 1, "initialization failed - aborting %s", dmn_name);
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
exit(status);
|
||||
}
|
||||
|
||||
if (!libcharon_init())
|
||||
{
|
||||
dbg_syslog(DBG_DMN, 1, "initialization failed - aborting %s", dmn_name);
|
||||
|
@ -391,7 +382,6 @@ int main(int argc, char *argv[])
|
|||
deinit:
|
||||
destroy_dh_mapping();
|
||||
libcharon_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
tkm_deinit();
|
||||
return status;
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include <tests/test_runner.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
|
||||
#include "tkm.h"
|
||||
|
@ -50,7 +49,6 @@ static bool test_runner_init(bool init)
|
|||
|
||||
if (init)
|
||||
{
|
||||
libhydra_init();
|
||||
libcharon_init();
|
||||
lib->settings->set_int(lib->settings,
|
||||
"test-runner.filelog.stdout.default", 0);
|
||||
|
@ -74,8 +72,6 @@ static bool test_runner_init(bool init)
|
|||
|
||||
plugin_loader_add_plugindirs(BUILDDIR "/src/libstrongswan/plugins",
|
||||
PLUGINS);
|
||||
plugin_loader_add_plugindirs(BUILDDIR "/src/libhydra/plugins",
|
||||
PLUGINS);
|
||||
plugin_loader_add_plugindirs(BUILDDIR "/src/libcharon/plugins",
|
||||
PLUGINS);
|
||||
if (charon->initialize(charon, PLUGINS))
|
||||
|
@ -95,7 +91,6 @@ static bool test_runner_init(bool init)
|
|||
|
||||
destroy_dh_mapping();
|
||||
libcharon_deinit();
|
||||
libhydra_deinit();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ charon.c
|
|||
# build charon -----------------------------------------------------------------
|
||||
|
||||
LOCAL_C_INCLUDES += \
|
||||
$(strongswan_PATH)/src/libhydra \
|
||||
$(strongswan_PATH)/src/libcharon \
|
||||
$(strongswan_PATH)/src/libstrongswan
|
||||
|
||||
|
@ -23,7 +22,7 @@ LOCAL_ARM_MODE := arm
|
|||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_SHARED_LIBRARIES += libstrongswan libhydra libcharon
|
||||
LOCAL_SHARED_LIBRARIES += libstrongswan libcharon
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ charon.o : $(top_builddir)/config.status
|
|||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\" \
|
||||
|
@ -15,7 +14,6 @@ AM_CPPFLAGS = \
|
|||
|
||||
charon_LDADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
$(top_builddir)/src/libcharon/libcharon.la \
|
||||
-lm $(PTHREADLIB) $(DLLIB)
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
|
||||
#include <library.h>
|
||||
|
@ -309,14 +308,6 @@ int main(int argc, char *argv[])
|
|||
exit(SS_RC_DAEMON_INTEGRITY);
|
||||
}
|
||||
|
||||
if (!libhydra_init())
|
||||
{
|
||||
dbg_stderr(DBG_DMN, 1, "initialization failed - aborting charon");
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
}
|
||||
|
||||
if (!libcharon_init())
|
||||
{
|
||||
dbg_stderr(DBG_DMN, 1, "initialization failed - aborting charon");
|
||||
|
@ -403,7 +394,6 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
DBG1(DBG_DMN, "integrity tests enabled:");
|
||||
DBG1(DBG_DMN, "lib 'libstrongswan': passed file and segment integrity tests");
|
||||
DBG1(DBG_DMN, "lib 'libhydra': passed file and segment integrity tests");
|
||||
DBG1(DBG_DMN, "lib 'libcharon': passed file and segment integrity tests");
|
||||
DBG1(DBG_DMN, "daemon 'charon': passed file integrity test");
|
||||
}
|
||||
|
@ -457,7 +447,6 @@ int main(int argc, char *argv[])
|
|||
|
||||
deinit:
|
||||
libcharon_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
return status;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ EXTRA_PROGRAMS = checksum_builder
|
|||
checksum_builder_SOURCES = checksum_builder.c
|
||||
checksum_builder_LDADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
$(top_builddir)/src/libcharon/libcharon.la \
|
||||
$(DLLIB)
|
||||
checksum_builder_LDFLAGS = -rpath '$(DESTDIR)$(ipseclibdir)'
|
||||
|
@ -17,7 +16,6 @@ CLEANFILES = checksum.c $(EXTRA_PROGRAMS)
|
|||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DPLUGINDIR=\"${DESTDIR}${plugindir}\"
|
||||
|
||||
|
@ -35,14 +33,6 @@ if !MONOLITHIC
|
|||
AM_CPPFLAGS += -DS_PLUGINS=\""${s_plugins}\""
|
||||
endif
|
||||
|
||||
if USE_LIBHYDRA
|
||||
deps += $(top_builddir)/src/libhydra/libhydra.la
|
||||
libs += $(DESTDIR)$(ipseclibdir)/libhydra.so
|
||||
if !MONOLITHIC
|
||||
AM_CPPFLAGS += -DH_PLUGINS=\""${h_plugins}\""
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_LIBIPSEC
|
||||
deps += $(top_builddir)/src/libipsec/libipsec.la
|
||||
libs += $(DESTDIR)$(ipseclibdir)/libipsec.so
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <dlfcn.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
|
@ -128,9 +127,8 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
int i;
|
||||
|
||||
/* forces link against libhydra/libcharon, imports symbols needed to
|
||||
/* forces link against libcharon, imports symbols needed to
|
||||
* dlopen plugins */
|
||||
hydra = NULL;
|
||||
charon = NULL;
|
||||
|
||||
/* avoid confusing leak reports in build process */
|
||||
|
@ -159,9 +157,6 @@ int main(int argc, char* argv[])
|
|||
#ifdef S_PLUGINS
|
||||
build_plugin_checksums(S_PLUGINS);
|
||||
#endif
|
||||
#ifdef H_PLUGINS
|
||||
build_plugin_checksums(H_PLUGINS);
|
||||
#endif
|
||||
#ifdef T_PLUGINS
|
||||
build_plugin_checksums(T_PLUGINS);
|
||||
#endif
|
||||
|
|
|
@ -2,7 +2,6 @@ ipsec_PROGRAMS = conftest
|
|||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DPLUGINS=\""${charon_plugins}\""
|
||||
|
||||
|
@ -20,7 +19,6 @@ conftest_SOURCES = conftest.c conftest.h config.c config.h actions.c actions.h \
|
|||
|
||||
conftest_LDADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
$(top_builddir)/src/libcharon/libcharon.la \
|
||||
-lm $(PTHREADLIB) $(DLLIB)
|
||||
|
||||
|
|
|
@ -356,7 +356,6 @@ static void cleanup()
|
|||
free(conftest->suite_dir);
|
||||
free(conftest);
|
||||
libcharon_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
}
|
||||
|
||||
|
@ -442,16 +441,9 @@ int main(int argc, char *argv[])
|
|||
library_deinit();
|
||||
return SS_RC_LIBSTRONGSWAN_INTEGRITY;
|
||||
}
|
||||
if (!libhydra_init())
|
||||
{
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
return SS_RC_INITIALIZATION_FAILED;
|
||||
}
|
||||
if (!libcharon_init())
|
||||
{
|
||||
libcharon_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
return SS_RC_INITIALIZATION_FAILED;
|
||||
}
|
||||
|
|
|
@ -848,7 +848,6 @@ public class CharonVpnService extends VpnService implements Runnable
|
|||
System.loadLibrary("imcv");
|
||||
}
|
||||
|
||||
System.loadLibrary("hydra");
|
||||
System.loadLibrary("charon");
|
||||
System.loadLibrary("ipsec");
|
||||
}
|
||||
|
|
|
@ -71,7 +71,6 @@ strongswan_BUILD := \
|
|||
libandroidbridge \
|
||||
strongswan/src/libipsec \
|
||||
strongswan/src/libcharon \
|
||||
strongswan/src/libhydra \
|
||||
strongswan/src/libstrongswan
|
||||
|
||||
ifneq ($(strongswan_USE_BYOD),)
|
||||
|
|
|
@ -25,7 +25,6 @@ endif
|
|||
|
||||
LOCAL_C_INCLUDES += \
|
||||
$(strongswan_PATH)/src/libipsec \
|
||||
$(strongswan_PATH)/src/libhydra \
|
||||
$(strongswan_PATH)/src/libcharon \
|
||||
$(strongswan_PATH)/src/libstrongswan
|
||||
|
||||
|
@ -54,7 +53,7 @@ LOCAL_PRELINK_MODULE := false
|
|||
|
||||
LOCAL_LDLIBS := -llog
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libstrongswan libhydra libipsec libcharon
|
||||
LOCAL_SHARED_LIBRARIES := libstrongswan libipsec libcharon
|
||||
|
||||
ifneq ($(strongswan_USE_BYOD),)
|
||||
LOCAL_SHARED_LIBRARIES += libimcv libtncif libtnccs
|
||||
|
|
|
@ -37,7 +37,6 @@ static struct {
|
|||
{ "libtnccs.so", NULL },
|
||||
{ "libimcv.so", NULL },
|
||||
#endif
|
||||
{ "libhydra.so", NULL },
|
||||
{ "libcharon.so", NULL },
|
||||
{ "libipsec.so", NULL },
|
||||
};
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#endif
|
||||
|
||||
#include <daemon.h>
|
||||
#include <hydra.h>
|
||||
#include <ipsec.h>
|
||||
#include <library.h>
|
||||
#include <threading/thread.h>
|
||||
|
@ -606,17 +605,9 @@ JNI_METHOD(CharonVpnService, initializeCharon, jboolean,
|
|||
set_options(logfile);
|
||||
free(logfile);
|
||||
|
||||
if (!libhydra_init())
|
||||
{
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!libipsec_init())
|
||||
{
|
||||
libipsec_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -625,7 +616,6 @@ JNI_METHOD(CharonVpnService, initializeCharon, jboolean,
|
|||
{
|
||||
libcharon_deinit();
|
||||
libipsec_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -657,7 +647,6 @@ JNI_METHOD(CharonVpnService, initializeCharon, jboolean,
|
|||
libcharon_deinit();
|
||||
charonservice_deinit(env);
|
||||
libipsec_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -687,7 +676,6 @@ JNI_METHOD(CharonVpnService, deinitializeCharon, void)
|
|||
libcharon_deinit();
|
||||
charonservice_deinit(env);
|
||||
libipsec_deinit();
|
||||
libhydra_deinit();
|
||||
library_deinit();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <errno.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
#include <threading/thread.h>
|
||||
#include <utils/backtrace.h>
|
||||
|
@ -170,11 +169,6 @@ int main(int argc, char *argv[])
|
|||
exit(SS_RC_DAEMON_INTEGRITY);
|
||||
}
|
||||
}
|
||||
atexit(libhydra_deinit);
|
||||
if (!libhydra_init())
|
||||
{
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
}
|
||||
atexit(libcharon_deinit);
|
||||
if (!libcharon_init())
|
||||
{
|
||||
|
|
|
@ -478,7 +478,6 @@
|
|||
/usr/include,
|
||||
../../libstrongswan,
|
||||
../../libcharon,
|
||||
../../libhydra,
|
||||
);
|
||||
INFOPLIST_FILE = "charon-xpc/charon-xpc-Info.plist";
|
||||
INSTALL_PATH = /;
|
||||
|
@ -486,7 +485,6 @@
|
|||
/usr/lib,
|
||||
../../libstrongswan/.libs,
|
||||
../../libcharon/.libs,
|
||||
../../libhydra/.libs,
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
OTHER_CFLAGS = (
|
||||
|
@ -500,8 +498,6 @@
|
|||
"-force_load",
|
||||
../../libipsec/.libs/libipsec.a,
|
||||
"-force_load",
|
||||
../../libhydra/.libs/libhydra.a,
|
||||
"-force_load",
|
||||
../../libcharon/.libs/libcharon.a,
|
||||
"-sectcreate",
|
||||
__TEXT,
|
||||
|
@ -531,7 +527,6 @@
|
|||
/usr/include,
|
||||
../../libstrongswan,
|
||||
../../libcharon,
|
||||
../../libhydra,
|
||||
);
|
||||
INFOPLIST_FILE = "charon-xpc/charon-xpc-Info.plist";
|
||||
INSTALL_PATH = /;
|
||||
|
@ -539,7 +534,6 @@
|
|||
/usr/lib,
|
||||
../../libstrongswan/.libs,
|
||||
../../libcharon/.libs,
|
||||
../../libhydra/.libs,
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
OTHER_CFLAGS = (
|
||||
|
@ -553,8 +547,6 @@
|
|||
"-force_load",
|
||||
../../libipsec/.libs/libipsec.a,
|
||||
"-force_load",
|
||||
../../libhydra/.libs/libhydra.a,
|
||||
"-force_load",
|
||||
../../libcharon/.libs/libcharon.a,
|
||||
"-sectcreate",
|
||||
__TEXT,
|
||||
|
|
|
@ -235,7 +235,6 @@ endif
|
|||
# build libcharon --------------------------------------------------------------
|
||||
|
||||
LOCAL_C_INCLUDES += \
|
||||
$(strongswan_PATH)/src/libhydra \
|
||||
$(strongswan_PATH)/src/libstrongswan
|
||||
|
||||
LOCAL_CFLAGS := $(strongswan_CFLAGS)
|
||||
|
@ -248,6 +247,6 @@ LOCAL_ARM_MODE := arm
|
|||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_SHARED_LIBRARIES += libstrongswan libhydra
|
||||
LOCAL_SHARED_LIBRARIES += libstrongswan
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
|
|
@ -146,7 +146,6 @@ daemon.lo : $(top_builddir)/config.status
|
|||
AM_CPPFLAGS = \
|
||||
-I${linux_headers} \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
@ -156,7 +155,6 @@ AM_LDFLAGS = \
|
|||
|
||||
libcharon_la_LIBADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
-lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB)
|
||||
|
||||
if USE_WINDOWS
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libsimaka
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libsimaka
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libtls
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libradius
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libsimaka
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libsimaka \
|
||||
-DIPSEC_CONFDIR=\"${sysconfdir}\"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libsimaka
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libsimaka
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libsimaka
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libsimaka \
|
||||
-DIPSEC_CONFDIR=\"${sysconfdir}\"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libtls
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libtls \
|
||||
-I$(top_srcdir)/src/libtncif \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libtls \
|
||||
-I$(top_srcdir)/src/libradius
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libipsec
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libradius
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DRESOLV_CONF=\"${resolv_conf}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I${linux_headers} \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I${linux_headers} \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I${linux_headers} \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/stroke \
|
||||
-DIPSEC_CONFDIR=\"${sysconfdir}\" \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
if MONOLITHIC
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libtls \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libradius \
|
||||
-I$(top_srcdir)/src/libtncif \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libstrongswan/plugins/pubkey \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libcharon
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
@ -10,7 +10,6 @@ libcharon_tests_SOURCES = \
|
|||
|
||||
libcharon_tests_CFLAGS = \
|
||||
-I$(top_srcdir)/src/libcharon \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libstrongswan/tests \
|
||||
-DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \
|
||||
|
@ -20,6 +19,5 @@ libcharon_tests_CFLAGS = \
|
|||
libcharon_tests_LDFLAGS = @COVERAGE_LDFLAGS@
|
||||
libcharon_tests_LDADD = \
|
||||
$(top_builddir)/src/libcharon/libcharon.la \
|
||||
$(top_builddir)/src/libhydra/libhydra.la \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libstrongswan/tests/libtest.la
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
*/
|
||||
|
||||
#include <test_runner.h>
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
|
||||
/* declare test suite constructors */
|
||||
|
@ -39,7 +38,6 @@ static bool test_runner_init(bool init)
|
|||
{
|
||||
char *plugins, *plugindir;
|
||||
|
||||
libhydra_init();
|
||||
libcharon_init();
|
||||
|
||||
plugins = getenv("TESTS_PLUGINS") ?:
|
||||
|
@ -59,7 +57,6 @@ static bool test_runner_init(bool init)
|
|||
lib->processor->cancel(lib->processor);
|
||||
lib->plugins->unload(lib->plugins);
|
||||
libcharon_deinit();
|
||||
libhydra_deinit();
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
# copy-n-paste from Makefile.am
|
||||
libhydra_la_SOURCES := \
|
||||
hydra.c hydra.h
|
||||
|
||||
LOCAL_SRC_FILES := $(filter %.c,$(libhydra_la_SOURCES))
|
||||
|
||||
# adding the plugin source files
|
||||
|
||||
# build libhydra ---------------------------------------------------------------
|
||||
|
||||
LOCAL_C_INCLUDES += \
|
||||
$(strongswan_PATH)/src/libstrongswan
|
||||
|
||||
LOCAL_CFLAGS := $(strongswan_CFLAGS)
|
||||
|
||||
LOCAL_MODULE := libhydra
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_SHARED_LIBRARIES += libstrongswan
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue