diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-03-17 00:37:58 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-03-17 00:37:58 +0100 |
commit | 8588c2dbc4c4d1b53796f3dbe8489b932dca7a60 (patch) | |
tree | 319d485cfe104e9bdce79193ca4fab84f54f6812 /agent | |
parent | g10: Add const qualifier. (diff) | |
download | gnupg2-8588c2dbc4c4d1b53796f3dbe8489b932dca7a60.tar.xz gnupg2-8588c2dbc4c4d1b53796f3dbe8489b932dca7a60.zip |
agent: allow removal of the shadowed key.
* agent/findkey.c (agent_delete_key): Remove the key when asked.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'agent')
-rw-r--r-- | agent/findkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c index c5e7ae74e..3cf8d0cc1 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -1311,7 +1311,7 @@ agent_delete_key (ctrl_t ctrl, const char *desc_text, break; case PRIVATE_KEY_SHADOWED: - err = gpg_error (GPG_ERR_KEY_ON_CARD); + err = remove_key_file (grip); break; default: |