added ./configure option --with-strongswan-conf=
defaults to /etc/strongswan.conf
This commit is contained in:
@@ -52,6 +52,13 @@ AC_ARG_WITH(
|
|||||||
[AC_DEFINE_UNQUOTED(RESOLV_CONF, "${sysconfdir}/resolv.conf")]
|
[AC_DEFINE_UNQUOTED(RESOLV_CONF, "${sysconfdir}/resolv.conf")]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
AC_ARG_WITH(
|
||||||
|
[strongswan-conf],
|
||||||
|
AS_HELP_STRING([--with-strongswan-conf=file],[strongswan.conf file other than "sysconfdir/strongswan.conf"]),
|
||||||
|
[AC_DEFINE_UNQUOTED(STRONGSWAN_CONF, "$withval")],
|
||||||
|
[AC_DEFINE_UNQUOTED(STRONGSWAN_CONF, "${sysconfdir}/strongswan.conf")]
|
||||||
|
)
|
||||||
|
|
||||||
AC_ARG_WITH(
|
AC_ARG_WITH(
|
||||||
[urandom-device],
|
[urandom-device],
|
||||||
AS_HELP_STRING([--with-urandom-device=dev],[set the device for pseudo random data other than "/dev/urandom"]),
|
AS_HELP_STRING([--with-urandom-device=dev],[set the device for pseudo random data other than "/dev/urandom"]),
|
||||||
|
|||||||
+1
-1
@@ -486,7 +486,7 @@ int main(int argc, char *argv[])
|
|||||||
dbg = dbg_silent;
|
dbg = dbg_silent;
|
||||||
|
|
||||||
/* initialize library */
|
/* initialize library */
|
||||||
library_init(IPSEC_DIR "/strongswan.conf");
|
library_init(STRONGSWAN_CONF);
|
||||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
||||||
lib->printf_hook->add_handler(lib->printf_hook, 'R',
|
lib->printf_hook->add_handler(lib->printf_hook, 'R',
|
||||||
traffic_selector_get_printf_hooks());
|
traffic_selector_get_printf_hooks());
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ int main(int argc, char* argv[])
|
|||||||
char hmac_signature[BUF_LEN];
|
char hmac_signature[BUF_LEN];
|
||||||
|
|
||||||
/* initialize library */
|
/* initialize library */
|
||||||
library_init(IPSEC_DIR "/strongswan.conf");
|
library_init(STRONGSWAN_CONF);
|
||||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
||||||
|
|
||||||
if (!fips_compute_hmac_signature(hmac_key, hmac_signature))
|
if (!fips_compute_hmac_signature(hmac_key, hmac_signature))
|
||||||
|
|||||||
+1
-1
@@ -36,7 +36,7 @@ int main (int arc, char *argv[])
|
|||||||
bool debug;
|
bool debug;
|
||||||
int threads, timeout;
|
int threads, timeout;
|
||||||
|
|
||||||
library_init(IPSECDIR "/strongswan.conf");
|
library_init(STRONGSWAN_CONF);
|
||||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
||||||
|
|
||||||
socket = lib->settings->get_str(lib->settings, "manager.socket", NULL);
|
socket = lib->settings->get_str(lib->settings, "manager.socket", NULL);
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ dist_man_MANS = openac.8
|
|||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||||
AM_CFLAGS = -DIPSEC_CONFDIR=\"${confdir}\" \
|
AM_CFLAGS = -DIPSEC_CONFDIR=\"${confdir}\" \
|
||||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
|
||||||
-DIPSEC_PLUGINDIR=\"${plugindir}\"
|
-DIPSEC_PLUGINDIR=\"${plugindir}\"
|
||||||
openac_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lgmp
|
openac_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lgmp
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -267,7 +267,7 @@ int main(int argc, char **argv)
|
|||||||
openlog("openac", 0, LOG_AUTHPRIV);
|
openlog("openac", 0, LOG_AUTHPRIV);
|
||||||
|
|
||||||
/* initialize library */
|
/* initialize library */
|
||||||
library_init(IPSEC_DIR "/strongswan.conf");
|
library_init(STRONGSWAN_CONF);
|
||||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "libstrongswan-");
|
||||||
|
|
||||||
/* initialize optionsfrom */
|
/* initialize optionsfrom */
|
||||||
|
|||||||
Reference in New Issue
Block a user