Home GnuPG
Diffusion GnuPG 12fd10791f1d

card: Run factory-reset in locked stated also in gpg-card.

Description

card: Run factory-reset in locked stated also in gpg-card.

* tools/card-call-scd.c (scd_apdu): Add more pseudo APDUs.
* tools/card-misc.c (send_apdu): Handle them.
* tools/gpg-card.c (cmd_factoryreset): Use lock commands.

This is port of the code used with gpg-card-edit. Note that the
command "apdu" now also understands some extra keywords.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 9 2020, 2:46 PM
Parents
rG8fb0d5e3c775: card: Run factory-reset in locked stated.
Branches
Unknown
Tags
Unknown