summaryrefslogtreecommitdiff
path: root/src/openac
diff options
context:
space:
mode:
Diffstat (limited to 'src/openac')
-rw-r--r--src/openac/Makefile.am2
-rw-r--r--src/openac/Makefile.in2
-rwxr-xr-xsrc/openac/openac.c13
3 files changed, 10 insertions, 7 deletions
diff --git a/src/openac/Makefile.am b/src/openac/Makefile.am
index ca6238258..a278cdd17 100644
--- a/src/openac/Makefile.am
+++ b/src/openac/Makefile.am
@@ -7,4 +7,4 @@ AM_CFLAGS = \
-DIPSEC_CONFDIR=\"${sysconfdir}\" \
-DPLUGINS=\""${libstrongswan_plugins}\""
openac_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
-
+openac.o : $(top_builddir)/config.status
diff --git a/src/openac/Makefile.in b/src/openac/Makefile.in
index 08f621395..9f0f96561 100644
--- a/src/openac/Makefile.in
+++ b/src/openac/Makefile.in
@@ -220,6 +220,7 @@ ipsecuid = @ipsecuid@
ipsecuser = @ipsecuser@
libdir = @libdir@
libexecdir = @libexecdir@
+libhydra_plugins = @libhydra_plugins@
libstrongswan_plugins = @libstrongswan_plugins@
linux_headers = @linux_headers@
localedir = @localedir@
@@ -633,6 +634,7 @@ uninstall-man: uninstall-man8
tags uninstall uninstall-am uninstall-ipsecPROGRAMS \
uninstall-man uninstall-man8
+openac.o : $(top_builddir)/config.status
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/src/openac/openac.c b/src/openac/openac.c
index 2b9270ff9..a280192c2 100755
--- a/src/openac/openac.c
+++ b/src/openac/openac.c
@@ -105,7 +105,8 @@ static chunk_t read_serial(void)
}
else
{
- DBG1(" file '%s' does not exist yet - serial number set to 01", OPENAC_SERIAL);
+ DBG1(DBG_LIB, " file '%s' does not exist yet - serial number "
+ "set to 01", OPENAC_SERIAL);
}
if (!serial.len)
{
@@ -129,7 +130,7 @@ static void write_serial(chunk_t serial)
{
chunk_t hex_serial;
- DBG1(" serial number is %#B", &serial);
+ DBG1(DBG_LIB, " serial number is %#B", &serial);
hex_serial = chunk_to_hex(serial, NULL, FALSE);
fprintf(fd, "%.*s\n", hex_serial.len, hex_serial.ptr);
fclose(fd);
@@ -137,7 +138,7 @@ static void write_serial(chunk_t serial)
}
else
{
- DBG1(" could not open file '%s' for writing", OPENAC_SERIAL);
+ DBG1(DBG_LIB, " could not open file '%s' for writing", OPENAC_SERIAL);
}
}
@@ -151,7 +152,7 @@ static bool stderr_quiet = FALSE;
/**
* openac dbg function
*/
-static void openac_dbg(int level, char *fmt, ...)
+static void openac_dbg(debug_t group, level_t level, char *fmt, ...)
{
int priority = LOG_INFO;
char buffer[8192];
@@ -431,7 +432,7 @@ int main(int argc, char **argv)
goto end;
}
- DBG1("starting openac (strongSwan Version %s)", VERSION);
+ DBG1(DBG_LIB, "starting openac (strongSwan Version %s)", VERSION);
/* load the signer's RSA private key */
if (keyfile != NULL)
@@ -444,7 +445,7 @@ int main(int argc, char **argv)
{
goto end;
}
- DBG1(" loaded private key file '%s'", keyfile);
+ DBG1(DBG_LIB, " loaded private key file '%s'", keyfile);
}
/* load the signer's X.509 certificate */