From 9cb55d7357db929960dca26b9f22f488b756bac2 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 27 Sep 2016 15:30:09 +0200 Subject: trust: Clarify the error message of 'extract' https://bugzilla.redhat.com/show_bug.cgi?id=1154693 --- trust/extract.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trust/extract.c b/trust/extract.c index 80b5e72..05273f9 100644 --- a/trust/extract.c +++ b/trust/extract.c @@ -147,6 +147,9 @@ validate_filter_and_format (p11_enumerate *ex, */ if (!ex->limit_to_purposes) { + p11_message ("format requires a purpose, specify it with --purpose; defaulting to 'server-auth'"); + p11_enumerate_opt_purpose (ex, "server-auth"); + } else if (p11_dict_size (ex->limit_to_purposes) > 1) { p11_message ("format does not support multiple purposes, defaulting to 'server-auth'"); p11_enumerate_opt_purpose (ex, "server-auth"); } @@ -191,7 +194,7 @@ p11_trust_extract (int argc, { 0, "usage: trust extract --format= " }, { opt_filter, "filter of what to export\n" - " ca-anchors certificate anchors (default)\n" + " ca-anchors certificate anchors\n" " blacklist blacklisted certificates\n" " trust-policy anchors and blacklist\n" " certificates all certificates\n" -- cgit v1.1