card: Allow card selection with LIST.
authorWerner Koch <wk@gnupg.org>
Wed, 3 Apr 2019 08:27:08 +0000 (10:27 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 3 Apr 2019 08:27:08 +0000 (10:27 +0200)
commitbcca3acb87c36213fef9311236ea949d006f759c
tree56764c6a28d5fdd9c7730409dc0712848e90d46c
parent2d3392c147a24e49ee4658d4a50fafd68599fba3
card: Allow card selection with LIST.

* tools/card-call-scd.c (start_agent): Request serialno only whean
started.
(scd_serialno): Allow NULL for r_serialno.
* tools/gpg-card.c (cmd_factoryreset): Use changed scd_serialno.
(cmd_list): New.
(dispatch_command): Use cmd_list for cmdLIST.
(interactive_loop): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
tools/card-call-scd.c
tools/gpg-card.c