Cache list of plugin names to further simplify its usage.

Also helpful for ipsec statusall to avoid having to enumerate plugins.
This commit is contained in:
Tobias Brunner
2012-01-19 12:37:42 +01:00
parent fdf1f239ef
commit f1ba06c1c6
8 changed files with 62 additions and 73 deletions
+2 -13
View File
@@ -275,18 +275,6 @@ usage(const char *message)
exit_scepclient(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
*
@@ -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))
{