aboutsummaryrefslogtreecommitdiffstats
path: root/src/scepclient/scepclient.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-01-19 12:27:56 +0100
committerTobias Brunner <tobias@strongswan.org>2012-01-19 12:37:42 +0100
commitf1ba06c1c6eff3e7c6a5666bcb68d3f3e2e8a373 (patch)
treecf82f97e848a47f9d45ca1db048ca81c082d2c95 /src/scepclient/scepclient.c
parentfdf1f239ef33d9bb69a49138956c6fd52c74a053 (diff)
downloadstrongswan-f1ba06c1c6eff3e7c6a5666bcb68d3f3e2e8a373.tar.bz2
strongswan-f1ba06c1c6eff3e7c6a5666bcb68d3f3e2e8a373.tar.xz
Cache list of plugin names to further simplify its usage.
Also helpful for ipsec statusall to avoid having to enumerate plugins.
Diffstat (limited to 'src/scepclient/scepclient.c')
-rw-r--r--src/scepclient/scepclient.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c
index efe13c264..0b54eeee3 100644
--- a/src/scepclient/scepclient.c
+++ b/src/scepclient/scepclient.c
@@ -276,18 +276,6 @@ usage(const char *message)
}
/**
- * Log loaded plugins
- */
-static void print_plugins()
-{
- char *plugins;
-
- plugins = lib->plugins->loaded_plugins(lib->plugins);
- DBG1(DBG_LIB, " loaded plugins: %s", plugins);
- free(plugins);
-}
-
-/**
* @brief main of scepclient
*
* @param argc number of arguments
@@ -752,7 +740,8 @@ int main(int argc, char **argv)
{
exit_scepclient("plugin loading failed");
}
- print_plugins();
+ DBG1(DBG_LIB, " loaded plugins: %s",
+ lib->plugins->loaded_plugins(lib->plugins));
if ((filetype_out == 0) && (!request_ca_certificate))
{