summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2016-09-27 15:30:09 +0200
committerDaiki Ueno <ueno@gnu.org>2016-11-28 10:35:06 +0100
commit9cb55d7357db929960dca26b9f22f488b756bac2 (patch)
treea35be18d4e50f842933f2ad3e6f4f3be612af8a6
parentd6d0dfd10e360fdcb974e74abe92bb0910bdf172 (diff)
trust: Clarify the error message of 'extract'
https://bugzilla.redhat.com/show_bug.cgi?id=1154693
-rw-r--r--trust/extract.c5
1 files changed, 4 insertions, 1 deletions
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=<output> <destination>" },
{ 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"