mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Re-enable secret key deletion.
* g10/call-agent.c (agent_delete_key): New. * g10/keydb.h (FORMAT_KEYDESC_DELKEY): New. * g10/passphrase.c (gpg_format_keydesc): Support new format. * g10/delkey.c (do_delete_key): Add secret key deletion.
This commit is contained in:
parent
d25d00b89e
commit
db3b528239
7 changed files with 121 additions and 6 deletions
|
@ -185,6 +185,10 @@ gpg_error_t agent_export_key (ctrl_t ctrl, const char *keygrip,
|
|||
const char *desc, char **cache_nonce_addr,
|
||||
unsigned char **r_result, size_t *r_resultlen);
|
||||
|
||||
/* Delete a key from the agent. */
|
||||
gpg_error_t agent_delete_key (ctrl_t ctrl, const char *hexkeygrip,
|
||||
const char *desc);
|
||||
|
||||
/* Change the passphrase of a key. */
|
||||
gpg_error_t agent_passwd (ctrl_t ctrl, const char *hexkeygrip, const char *desc,
|
||||
char **cache_nonce_addr, char **passwd_nonce_addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue