aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-card-tool.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-02-21 07:42:33 +0000
committerWerner Koch <[email protected]>2019-02-21 07:51:54 +0000
commit3384ba6c1c421cfa674dbd8294dc655d7320534e (patch)
treeb045ce1df128c5e6c8d44e996c0ce7b28ae4dd8d /tools/gpg-card-tool.c
parentscd: Don't let the "undefined" app cause a conflict error. (diff)
downloadgnupg-3384ba6c1c421cfa674dbd8294dc655d7320534e.tar.gz
gnupg-3384ba6c1c421cfa674dbd8294dc655d7320534e.zip
card: Print the keyref in the listing.
* tools/gpg-card-tool.c (list_one_kinfo): Print the keyref. -- The named keys are nice but knowing the actual keyref mapping to them is also useful. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/gpg-card-tool.c')
-rw-r--r--tools/gpg-card-tool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gpg-card-tool.c b/tools/gpg-card-tool.c
index 2bc2e5f90..a13a6bdaf 100644
--- a/tools/gpg-card-tool.c
+++ b/tools/gpg-card-tool.c
@@ -631,6 +631,7 @@ list_one_kinfo (key_info_t firstkinfo, key_info_t kinfo, estream_t fp)
goto leave;
}
print_keygrip (fp, kinfo->grip);
+ tty_fprintf (fp, " keyref .....: %s\n", kinfo->keyref);
if (!scd_readkey (kinfo->keyref, &s_pkey))
{
char *tmp = pubkey_algo_string (s_pkey);