summaryrefslogtreecommitdiff
path: root/src/p11tool.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-07-10 16:31:02 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-07-10 16:31:04 +0200
commite867aae1be191433186aad9d799c5de297b219a0 (patch)
treeefcde5fd89f3b529a24721f2b1de733479ec7f56 /src/p11tool.c
parent08fc29d30ade5ded03fe7defa65519f95a7ebbd9 (diff)
downloadgnutls-e867aae1be191433186aad9d799c5de297b219a0.tar.gz
p11tool: keep backwards compatibility by introducing --list-token-urls
That is, the output of --list-tokens remains the same.
Diffstat (limited to 'src/p11tool.c')
-rw-r--r--src/p11tool.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/p11tool.c b/src/p11tool.c
index 397b4c09fa..b647cbbcd9 100644
--- a/src/p11tool.c
+++ b/src/p11tool.c
@@ -178,9 +178,6 @@ static void cmd_parser(int argc, char **argv)
flags = opt_to_flags(&key_usage);
cinfo.key_usage = key_usage;
- if (HAVE_OPT(VERBOSE))
- cinfo.verbose = 1;
-
if (HAVE_OPT(SECRET_KEY))
cinfo.secret_key = OPT_ARG(SECRET_KEY);
@@ -243,7 +240,9 @@ static void cmd_parser(int argc, char **argv)
/* handle actions
*/
if (HAVE_OPT(LIST_TOKENS)) {
- pkcs11_token_list(outfile, detailed_url, &cinfo, !cinfo.verbose);
+ pkcs11_token_list(outfile, detailed_url, &cinfo, 0);
+ } else if (HAVE_OPT(LIST_TOKEN_URLS)) {
+ pkcs11_token_list(outfile, detailed_url, &cinfo, 1);
} else if (HAVE_OPT(LIST_MECHANISMS)) {
pkcs11_mechanism_list(outfile, url, flags, &cinfo);
} else if (HAVE_OPT(GENERATE_RANDOM)) {