From 71c41410fc0b3c9022f1fe59f7b988363b84abea Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 6 Jul 2012 14:05:49 +0200 Subject: [PATCH] Initialize conftest with the same plugins as charon --- src/conftest/Makefile.am | 3 ++- src/conftest/conftest.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/conftest/Makefile.am b/src/conftest/Makefile.am index 7eab0df27..64a2cc6d3 100644 --- a/src/conftest/Makefile.am +++ b/src/conftest/Makefile.am @@ -1,6 +1,7 @@ ipsec_PROGRAMS = conftest -AM_CFLAGS = -rdynamic +AM_CFLAGS = -rdynamic \ + -DPLUGINS=\""${charon_plugins}\"" conftest_SOURCES = conftest.c conftest.h config.c config.h actions.c actions.h \ hooks/hook.h hooks/ike_auth_fill.c hooks/unsort_message.c \ diff --git a/src/conftest/conftest.c b/src/conftest/conftest.c index 612397237..00decdd4b 100644 --- a/src/conftest/conftest.c +++ b/src/conftest/conftest.c @@ -488,7 +488,7 @@ int main(int argc, char *argv[]) { return 1; } - if (!charon->initialize(charon)) + if (!charon->initialize(charon, PLUGINS)) { return 1; }