plugin load configuration in strongswan.conf
some components accept a "component.load" option with a space separated list of plugins to load libcharon- plugins are now handled the same way as libstrongswan- plugins
This commit is contained in:
@@ -3,11 +3,11 @@ INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
|
||||
AM_CFLAGS = -rdynamic -DIPSEC_PLUGINDIR=\"${plugindir}\"
|
||||
|
||||
plugin_LTLIBRARIES = libcharon-sql.la
|
||||
libcharon_sql_la_SOURCES = sql_plugin.h sql_plugin.c \
|
||||
plugin_LTLIBRARIES = libstrongswan-sql.la
|
||||
libstrongswan_sql_la_SOURCES = sql_plugin.h sql_plugin.c \
|
||||
sql_config.h sql_config.c sql_cred.h sql_cred.c \
|
||||
sql_attribute.h sql_attribute.c sql_logger.h sql_logger.c
|
||||
libcharon_sql_la_LDFLAGS = -module
|
||||
libstrongswan_sql_la_LDFLAGS = -module
|
||||
|
||||
ipsec_PROGRAMS = pool
|
||||
pool_SOURCES = pool.c
|
||||
|
||||
@@ -358,8 +358,9 @@ int main(int argc, char *argv[])
|
||||
dbg = dbg_stderr;
|
||||
library_init(STRONGSWAN_CONF);
|
||||
atexit(library_deinit);
|
||||
|
||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
|
||||
lib->settings->get_str(lib->settings, "pool.load",
|
||||
"sqlite mysql"));
|
||||
|
||||
uri = lib->settings->get_str(lib->settings, "charon.plugins.sql.database", NULL);
|
||||
if (!uri)
|
||||
|
||||
Reference in New Issue
Block a user