aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-03-24 08:02:02 +0000
committerWerner Koch <[email protected]>2017-03-24 08:02:30 +0000
commit6fab7bba879d7794e32112cf3eddd8d87130a5d7 (patch)
treefaeff933d8269d0ef5567190a2ef8bc88d9ee785 /agent/agent.h
parentcommon: Implicitly do a gpgconf --create-socketdir. (diff)
downloadgnupg-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.h3
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);