aboutsummaryrefslogtreecommitdiffstats
path: root/g10/call-agent.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-05-10 09:01:42 +0000
committerWerner Koch <[email protected]>2016-05-10 09:01:42 +0000
commitac9ff644b12c4dfa55d466af8ae6af54d1646893 (patch)
tree53c7e2f423de931b5f87bedc9850de115fa5bc8e /g10/call-agent.h
parentgpg: Fix buglet in the check_all_keysigs function. (diff)
downloadgnupg-ac9ff644b12c4dfa55d466af8ae6af54d1646893.tar.gz
gnupg-ac9ff644b12c4dfa55d466af8ae6af54d1646893.zip
gpg: Allow unattended deletion of secret keys.
* agent/command.c (cmd_delete_key): Make the --force option depend on --disallow-loopback-passphrase. * g10/call-agent.c (agent_delete_key): Add arg FORCE. * g10/delkey.c (do_delete_key): Pass opt.answer_yes to agent_delete_key. -- Unless the agent has been configured with --disallow-loopback-passpharse an unattended deletion of a secret key is now possible with gpg by using --batch _and_ --yes. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r--g10/call-agent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h
index 208b75b2d..06a19d47b 100644
--- a/g10/call-agent.h
+++ b/g10/call-agent.h
@@ -196,7 +196,7 @@ gpg_error_t agent_export_key (ctrl_t ctrl, const char *keygrip,
/* Delete a key from the agent. */
gpg_error_t agent_delete_key (ctrl_t ctrl, const char *hexkeygrip,
- const char *desc);
+ const char *desc, int force);
/* Change the passphrase of a key. */
gpg_error_t agent_passwd (ctrl_t ctrl, const char *hexkeygrip, const char *desc,