From 0dd62395788ae566d3adef967611bce214a04435 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Sun, 23 Dec 2018 14:11:00 +0100 Subject: trust: Propagate library verbosity to module through init_args Previously, even when the -v option is used with the 'trust' command, the messages from p11-kit-trust.so module were suppressed because the verbosity setting is not propagated to the module. --- trust/module.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'trust/module.c') diff --git a/trust/module.c b/trust/module.c index 24cda87..0c16a39 100644 --- a/trust/module.c +++ b/trust/module.c @@ -287,6 +287,11 @@ parse_argument (char *arg, free (gl.paths); gl.paths = value ? strdup (value) : NULL; + } else if (strcmp (arg, "verbose") == 0) { + if (strcmp (value, "yes") == 0) + p11_message_loud (); + else if (strcmp (value, "no") == 0) + p11_message_quiet (); } else { p11_message ("unrecognized module argument: %s", arg); } -- cgit v1.1