charon-cmd: Print plugin list before parsing arguments
Helps debugging e.g. failures to load certs/keys.
This commit is contained in:
@@ -358,9 +358,6 @@ int main(int argc, char *argv[])
|
||||
creds = cmd_creds_create();
|
||||
atexit(cleanup_creds);
|
||||
|
||||
/* handle all arguments */
|
||||
handle_arguments(argc, argv, FALSE);
|
||||
|
||||
if (uname(&utsname) != 0)
|
||||
{
|
||||
memset(&utsname, 0, sizeof(utsname));
|
||||
@@ -369,6 +366,9 @@ int main(int argc, char *argv[])
|
||||
VERSION, utsname.sysname, utsname.release, utsname.machine);
|
||||
lib->plugins->status(lib->plugins, LEVEL_CTRL);
|
||||
|
||||
/* handle all arguments */
|
||||
handle_arguments(argc, argv, FALSE);
|
||||
|
||||
/* add handler for SEGV and ILL,
|
||||
* INT, TERM and HUP are handled by sigwaitinfo() in run() */
|
||||
action.sa_handler = segv_handler;
|
||||
|
||||
Reference in New Issue
Block a user