From: Tobias Brunner Date: Thu, 19 Jan 2012 10:56:43 +0000 (+0100) Subject: Log list of loaded plugins in main PKI help output. X-Git-Tag: 4.6.2~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdf1f239ef33d9bb69a49138956c6fd52c74a053;p=thirdparty%2Fstrongswan.git Log list of loaded plugins in main PKI help output. --- diff --git a/src/pki/command.c b/src/pki/command.c index 0142b4ab70..e74072f9e1 100644 --- a/src/pki/command.c +++ b/src/pki/command.c @@ -176,6 +176,14 @@ int command_usage(char *error) fprintf(out, "Error: %s\n", error); } fprintf(out, "strongSwan %s PKI tool\n", VERSION); + + if (active == help_idx) + { + char *plugins = lib->plugins->loaded_plugins(lib->plugins); + fprintf(out, "loaded plugins: %s\n", plugins); + free(plugins); + } + fprintf(out, "usage:\n"); if (active == help_idx) {