diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/starter/Makefile.am | 1 | ||||
-rw-r--r-- | src/starter/confread.c | 2 | ||||
-rw-r--r-- | src/starter/starter.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/starter/Makefile.am b/src/starter/Makefile.am index 0c2d250f4..48110dd02 100644 --- a/src/starter/Makefile.am +++ b/src/starter/Makefile.am @@ -15,6 +15,7 @@ AM_CPPFLAGS = \ -DIPSEC_CONFDIR=\"${sysconfdir}\" \ -DIPSEC_PIDDIR=\"${piddir}\" \ -DIPSEC_EAPDIR=\"${eapdir}\" \ + -DIPSEC_SCRIPT=\"${ipsec_script}\" \ -DDEV_RANDOM=\"${random_device}\" \ -DDEV_URANDOM=\"${urandom_device}\" \ -DPLUGINS=\""${starter_plugins}\"" \ diff --git a/src/starter/confread.c b/src/starter/confread.c index f0f05b036..2fb022692 100644 --- a/src/starter/confread.c +++ b/src/starter/confread.c @@ -38,7 +38,7 @@ static const char ike_defaults[] = "aes128-sha1-modp2048,3des-sha1-modp1536"; static const char esp_defaults[] = "aes128-sha1,3des-sha1"; -static const char firewall_defaults[] = "ipsec _updown iptables"; +static const char firewall_defaults[] = IPSEC_SCRIPT " _updown iptables"; static bool daemon_exists(char *daemon, char *path) { diff --git a/src/starter/starter.c b/src/starter/starter.c index 9620fb63a..06eb142bd 100644 --- a/src/starter/starter.c +++ b/src/starter/starter.c @@ -295,7 +295,7 @@ static void generate_selfcert() #endif ignore_result(setegid(gid)); ignore_result(seteuid(uid)); - ignore_result(system("ipsec scepclient --out pkcs1 --out cert-self --quiet")); + ignore_result(system(IPSEC_SCRIPT " scepclient --out pkcs1 --out cert-self --quiet")); ignore_result(seteuid(0)); ignore_result(setegid(0)); |