use ./configured plugins in keyid scripts
authorMartin Willi <martin@strongswan.org>
Tue, 25 Aug 2009 09:31:08 +0000 (11:31 +0200)
committerMartin Willi <martin@strongswan.org>
Wed, 26 Aug 2009 09:23:55 +0000 (11:23 +0200)
scripts/Makefile.am
scripts/key2keyid.c
scripts/keyid2sql.c

index f8d62b3..6c28b94 100644 (file)
@@ -1,6 +1,7 @@
 INCLUDES = -I$(top_srcdir)/src/libstrongswan
 AM_CFLAGS = \
 -DIPSEC_PLUGINDIR=\"${plugindir}\" \
+-DPLUGINS="\"${libstrongswan_plugins}\"" \
 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
 
 noinst_PROGRAMS = bin2array bin2sql id2sql key2keyid keyid2sql \
index 3de69ff..e32c2ba 100644 (file)
@@ -17,7 +17,7 @@ int main(int argc, char *argv[])
        int read;
        
        library_init(NULL);
-       lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "gmp pubkey sha1");
+       lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, PLUGINS);
        atexit(library_deinit);
 
        read = fread(buf, 1, sizeof(buf), stdin);
index 25a29d6..2ec0119 100644 (file)
@@ -17,7 +17,7 @@ int main(int argc, char *argv[])
        int read, n;
        
        library_init(NULL);
-       lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "gmp pubkey sha1");
+       lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, PLUGINS);
        atexit(library_deinit);
 
        read = fread(buf, 1, sizeof(buf), stdin);