mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
8fb0d5e3c7
commit
12fd10791f
4 changed files with 57 additions and 12 deletions
|
@ -974,8 +974,9 @@ agent_scd_keypairinfo (ctrl_t ctrl, const char *keyref, keypair_info_t *r_list)
|
|||
|
||||
|
||||
/* Send an APDU to the current card. On success the status word is
|
||||
* stored at R_SW. With HEXAPDU being NULL only a RESET command is
|
||||
* send to scd. HEXAPDU may also be one of these special strings:
|
||||
* stored at R_SW unless R_SQ is NULL. With HEXAPDU being NULL only a
|
||||
* RESET command is send to scd. HEXAPDU may also be one of theseo
|
||||
* special strings:
|
||||
*
|
||||
* "undefined" :: Send the command "SCD SERIALNO undefined"
|
||||
* "lock" :: Send the command "SCD LOCK --wait"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue