summaryrefslogtreecommitdiff
path: root/src/starter/starter.c
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2010-08-09 08:09:54 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2010-08-09 08:09:54 +0000
commitb8064f4099997a9e2179f3ad4ace605f5ccac3a1 (patch)
tree81778e976b476374c48b4fe83d084b986b890421 /src/starter/starter.c
parent1ac70afcc1f7d6d2738a34308810719b0976d29f (diff)
downloadvyos-strongswan-b8064f4099997a9e2179f3ad4ace605f5ccac3a1.tar.gz
vyos-strongswan-b8064f4099997a9e2179f3ad4ace605f5ccac3a1.zip
[svn-upgrade] new version strongswan (4.4.1)
Diffstat (limited to 'src/starter/starter.c')
-rw-r--r--src/starter/starter.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c
index 50ef9c07b..c3ba54f1d 100644
--- a/src/starter/starter.c
+++ b/src/starter/starter.c
@@ -241,6 +241,7 @@ int main (int argc, char **argv)
time_t last_reload;
bool no_fork = FALSE;
bool attach_gdb = FALSE;
+ bool load_warning = FALSE;
/* global variables defined in log.h */
log_to_stderr = TRUE;
@@ -300,6 +301,21 @@ int main (int argc, char **argv)
plog("Starting strongSwan "VERSION" IPsec [starter]...");
+#ifdef LOAD_WARNING
+ load_warning = TRUE;
+#endif
+
+ if (lib->settings->get_bool(lib->settings, "starter.load_warning", load_warning))
+ {
+ if (lib->settings->get_str(lib->settings, "charon.load", NULL) ||
+ lib->settings->get_str(lib->settings, "pluto.load", NULL))
+ {
+ plog("!! Your strongswan.conf contains manual plugin load options for");
+ plog("!! pluto and/or charon. This is recommended for experts only, see");
+ plog("!! http://wiki.strongswan.org/projects/strongswan/wiki/PluginLoad");
+ }
+ }
+
/* verify that we can start */
if (getuid() != 0)
{