]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Log list of loaded plugins in main PKI help output.
authorTobias Brunner <tobias@strongswan.org>
Thu, 19 Jan 2012 10:56:43 +0000 (11:56 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 19 Jan 2012 10:56:43 +0000 (11:56 +0100)
src/pki/command.c

index 0142b4ab70e4e3d0d8040ff3a12afa8cacb124e0..e74072f9e12c2eee8046c077a2cff18c67a026e5 100644 (file)
@@ -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)
        {