Diffusion GnuPG 8d4af54ddd03

card: Print card version. Check for bad Yubikeys.

Authored by werner on Mar 5 2019, 5:40 PM.

Description

card: Print card version. Check for bad Yubikeys.

* scd/app.c (app_new_register): Set card version for Yubikeys.
(app_write_learn_status): Print CARDVERSION and APPVERSION.
* tools/card-call-scd.c (learn_status_cb): Detect them.
* tools/gpg-card.h (struct card_info_s): Add appversion and
cardversion.
* tools/gpg-card.c (list_openpgp): Remove version printing from serial
number.
(print_a_version): New.
(list_card): Print card and app version.
(cmd_generate): Do not allow broken Yubikeys.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Committed
wernerMar 5 2019, 5:40 PM
Parents
rG64caa6a08298: scd: Rename a shared info field name.
Branches
Unknown
Tags
Unknown