Home GnuPG
Diffusion GnuPG 8fb0d5e3c775

card: Run factory-reset in locked stated.

Description

card: Run factory-reset in locked stated.

* scd/command.c (reset_notify): Add option --keep-lock.
(do_reset): Add arg keep_lock.
(cmd_lock): Send progress status.
* g10/call-agent.c (agent_scd_apdu): Add more pseudo APDUs.
* g10/card-util.c (send_apdu): Ditto.
(factory_reset): Use lock commands.

This is required so that for example Kleopatra does not detect the
RESET and issues a SERIALNO of its own, thus conflicting with our
SERIALNO undefined.

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

Details

Provenance
wernerAuthored on Nov 9 2020, 1:04 PM
Parents
rGe08e1d62d089: gpg: Do not print rejected digest algo notes with --quiet.
Branches
Unknown
Tags
Unknown