Provide plugin list from charon, not internally in libcharon.
This commit is contained in:
@@ -168,8 +168,7 @@ LOCAL_C_INCLUDES += \
|
||||
$(strongswan_PATH)/src/libstrongswan \
|
||||
$(strongswan_PATH)/src/libtncif
|
||||
|
||||
LOCAL_CFLAGS := $(strongswan_CFLAGS) \
|
||||
-DPLUGINS='"$(strongswan_CHARON_PLUGINS)"'
|
||||
LOCAL_CFLAGS := $(strongswan_CFLAGS)
|
||||
|
||||
LOCAL_MODULE := libcharon
|
||||
|
||||
|
||||
@@ -133,8 +133,7 @@ INCLUDES = \
|
||||
|
||||
AM_CFLAGS = \
|
||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\" \
|
||||
-DPLUGINS=\""${libcharon_plugins}\""
|
||||
-DIPSEC_PIDDIR=\"${piddir}\"
|
||||
|
||||
libcharon_la_LIBADD = -lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB)
|
||||
|
||||
|
||||
+3
-15
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2006-2010 Tobias Brunner
|
||||
* Copyright (C) 2006-2012 Tobias Brunner
|
||||
* Copyright (C) 2005-2009 Martin Willi
|
||||
* Copyright (C) 2006 Daniel Roethlisberger
|
||||
* Copyright (C) 2005 Jan Hutter
|
||||
@@ -207,22 +207,10 @@ METHOD(daemon_t, start, void,
|
||||
}
|
||||
|
||||
METHOD(daemon_t, initialize, bool,
|
||||
private_daemon_t *this)
|
||||
private_daemon_t *this, char *plugins)
|
||||
{
|
||||
DBG1(DBG_DMN, "Starting IKEv2 charon daemon (strongSwan "VERSION")");
|
||||
|
||||
if (lib->integrity)
|
||||
{
|
||||
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");
|
||||
}
|
||||
|
||||
/* load plugins, further infrastructure may need it */
|
||||
if (!lib->plugins->load(lib->plugins, NULL,
|
||||
lib->settings->get_str(lib->settings, "charon.load", PLUGINS)))
|
||||
if (!lib->plugins->load(lib->plugins, NULL, plugins))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2006-2010 Tobias Brunner
|
||||
* Copyright (C) 2006-2012 Tobias Brunner
|
||||
* Copyright (C) 2005-2009 Martin Willi
|
||||
* Copyright (C) 2006 Daniel Roethlisberger
|
||||
* Copyright (C) 2005 Jan Hutter
|
||||
@@ -279,14 +279,17 @@ struct daemon_t {
|
||||
* This should be called after the initialization of the daemon because
|
||||
* some plugins require the process to keep additional capabilities.
|
||||
*
|
||||
* @return TRUE if successful, FALSE otherwise
|
||||
* @return TRUE, if successful
|
||||
*/
|
||||
bool (*drop_capabilities)(daemon_t *this);
|
||||
|
||||
/**
|
||||
* Initialize the daemon.
|
||||
*
|
||||
* @param plugins list of plugins to load
|
||||
* @return TRUE, if successful
|
||||
*/
|
||||
bool (*initialize)(daemon_t *this);
|
||||
bool (*initialize)(daemon_t *this, char *plugins);
|
||||
|
||||
/**
|
||||
* Starts the daemon, i.e. spawns the threads of the thread pool.
|
||||
|
||||
Reference in New Issue
Block a user