Initialize conftest with the same plugins as charon
authorMartin Willi <martin@revosec.ch>
Fri, 6 Jul 2012 12:05:49 +0000 (14:05 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 16 Jul 2012 12:53:37 +0000 (14:53 +0200)
src/conftest/Makefile.am
src/conftest/conftest.c

index 7eab0df..64a2cc6 100644 (file)
@@ -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 \
index 6123972..00decdd 100644 (file)
@@ -488,7 +488,7 @@ int main(int argc, char *argv[])
        {
                return 1;
        }
-       if (!charon->initialize(charon))
+       if (!charon->initialize(charon, PLUGINS))
        {
                return 1;
        }