diff options
author | Werner Koch <[email protected]> | 2017-03-24 08:02:02 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-03-24 08:02:30 +0000 |
commit | 6fab7bba879d7794e32112cf3eddd8d87130a5d7 (patch) | |
tree | faeff933d8269d0ef5567190a2ef8bc88d9ee785 /agent/agent.h | |
parent | common: Implicitly do a gpgconf --create-socketdir. (diff) | |
download | gnupg-6fab7bba879d7794e32112cf3eddd8d87130a5d7.tar.gz gnupg-6fab7bba879d7794e32112cf3eddd8d87130a5d7.zip |
agent: New option --stub-only for DELETE_KEY
* agent/findkey.c (agent_delete_key): Add arg 'only_stubs'.
* agent/command.c (cmd_delete_key): Add option --stub-only.
--
This option can be used to savely remove stub keys.
Diffstat (limited to '')
-rw-r--r-- | agent/agent.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h index e98a24699..3b53ba45d 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -406,7 +406,8 @@ gpg_error_t agent_key_info_from_file (ctrl_t ctrl, const unsigned char *grip, int *r_keytype, unsigned char **r_shadow_info); gpg_error_t agent_delete_key (ctrl_t ctrl, const char *desc_text, - const unsigned char *grip, int force); + const unsigned char *grip, + int force, int only_stubs); /*-- call-pinentry.c --*/ void initialize_module_call_pinentry (void); |