g10: Support specifying SERIALNO for --card-status.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 27 Mar 2017 05:02:01 +0000 (14:02 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 27 Mar 2017 05:02:01 +0000 (14:02 +0900)
commitc1e6302b347caf852a056b9c721469ccb51f44da
tree920546cd3c6c252c64e1d5c0c8981e1054a13d1c
parentd58275703f035e8cfd58cd1c2d0d5ac7dc59e110
g10: Support specifying SERIALNO for --card-status.

* g10/gpg.c (main): Allow an argument for --card-status.
* g10/card-util.c (current_card_status): Rename from card_status.
(card_status): New, which supports multiple cards.
(get_one_name): Use current_card_status.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/card-util.c
g10/gpg.c
g10/main.h