summaryrefslogtreecommitdiff
path: root/trust/module.c
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-12-23 14:11:00 +0100
committerDaiki Ueno <ueno@gnu.org>2019-01-04 15:12:04 +0100
commit0dd62395788ae566d3adef967611bce214a04435 (patch)
tree4181770abf1ebf40ebeb2a58fad7a468912a434b /trust/module.c
parent95faa51a23fc416e718dbd740adfce31f642530b (diff)
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.
Diffstat (limited to 'trust/module.c')
-rw-r--r--trust/module.c5
1 files changed, 5 insertions, 0 deletions
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);
}