Home GnuPG
Diffusion GnuPG 7f765a98fd66

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
rG21d5323f5d02: gpg: Fix recent commit for weak digest algos and smartcards.
Branches
Unknown
Tags
Unknown