aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-03-15 08:36:36 +0000
committerWerner Koch <[email protected]>2023-03-15 08:42:12 +0000
commit5118beeec18f731fe3c0084b181eff9531181be6 (patch)
treeac534cd22f6012cdccffd3d4b4f2f29f7faa26a9 /g10/main.h
parentscd,openpgp: Switch key attributes between RSA and ECC in writekey. (diff)
downloadgnupg-5118beeec18f731fe3c0084b181eff9531181be6.tar.gz
gnupg-5118beeec18f731fe3c0084b181eff9531181be6.zip
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. GnuPG-bug-id: 6378
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h
index f66f3ef0c..dbaa0c6f3 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -516,7 +516,7 @@ void change_pin (int no, int allow_admin);
void card_status (ctrl_t ctrl, estream_t fp, const char *serialno);
void card_edit (ctrl_t ctrl, strlist_t commands);
gpg_error_t card_generate_subkey (ctrl_t ctrl, kbnode_t pub_keyblock);
-int card_store_subkey (KBNODE node, int use);
+int card_store_subkey (KBNODE node, int use, strlist_t *processed_keys);
#endif
/*-- migrate.c --*/