gpg: Allow unattended deletion of secret keys.
authorWerner Koch <wk@gnupg.org>
Tue, 10 May 2016 09:01:42 +0000 (11:01 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 10 May 2016 09:01:42 +0000 (11:01 +0200)
commitac9ff644b12c4dfa55d466af8ae6af54d1646893
tree53c7e2f423de931b5f87bedc9850de115fa5bc8e
parent693838f0125d5d0c963fa3771b1bd117702af697
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 <wk@gnupg.org>
agent/command.c
doc/gpg-agent.texi
doc/gpg.texi
g10/call-agent.c
g10/call-agent.h
g10/delkey.c