gpg: Print the keygrip with --card-status
authorWerner Koch <wk@gnupg.org>
Thu, 1 Mar 2018 18:03:23 +0000 (19:03 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 1 Mar 2018 18:03:23 +0000 (19:03 +0100)
commitfd595c9d3642dba437fbe0f6e25d7aaaae095f94
tree86372f98479b23ad7ad23069145222c31796a641
parente43844c3b0b9ec93b7f2a88752bcd6b6244aacfb
gpg: Print the keygrip with --card-status

* g10/call-agent.h (agent_card_info_s): Add fields grp1, grp2 and
grp3.
* g10/call-agent.c (unhexify_fpr): Allow for space as delimiter.
(learn_status_cb): Parse KEYPARIINFO int the grpX fields.
* g10/card-util.c (print_keygrip): New.
(current_card_status): Print "grp:" records or with --with-keygrip a
human readable keygrip.
--

Suggested-by: Peter Lebbing <peter@digitalbrains.com>
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/call-agent.c
g10/call-agent.h
g10/card-util.c