Home GnuPG
Diffusion GnuPG 706d557a6451

gpg: Delete secret key after "keytocard".

Description

gpg: Delete secret key after "keytocard".

* g10/card-util.c (card_store_subkey): Add arg processed_keys.
* g10/keyedit.c (keyedit_menu): Delete secret key.

This used to work using the gpg-agent: learn we called at "save" time.
However, the recent change inhibited the creation of a shadow key by
learn if a regular key still exists. Now we do an explicit delete key
at save time. This syncs the behaviour with the description of the
man page.

Details

Provenance
wernerAuthored on Mar 15 2023, 9:36 AM
Parents
rG2630872cff71: scd,openpgp: Switch key attributes between RSA and ECC in writekey.
Branches
Unknown
Tags
Unknown
Tasks
T6378: keytocard: invalid value