summaryrefslogtreecommitdiffstats
path: root/g10/call-agent.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-04-15 16:40:48 +0200
committerWerner Koch <wk@gnupg.org>2014-04-15 19:44:50 +0200
commitdb3b528239c9d56bc71fd2283e07a3f1d91e4fd0 (patch)
tree905f77e255d5f32f01590c37a6802dc773de96e6 /g10/call-agent.h
parentgpg: Re-indent a file. (diff)
downloadgnupg2-db3b528239c9d56bc71fd2283e07a3f1d91e4fd0.tar.xz
gnupg2-db3b528239c9d56bc71fd2283e07a3f1d91e4fd0.zip
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.
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r--g10/call-agent.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h
index 2b944d21b..1deb8548a 100644
--- a/g10/call-agent.h
+++ b/g10/call-agent.h
@@ -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);