Skip to content

Commit

Permalink
trust: Clarify the error message of 'extract'
Browse files Browse the repository at this point in the history
  • Loading branch information
ueno committed Nov 28, 2016
1 parent d6d0dfd commit 9cb55d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trust/extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 9cb55d7

Please sign in to comment.