agent: allow removal of the shadowed key.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 16 Mar 2016 23:37:58 +0000 (08:37 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 16 Mar 2016 23:37:58 +0000 (08:37 +0900)
* agent/findkey.c (agent_delete_key): Remove the key when asked.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/findkey.c

index c5e7ae7..3cf8d0c 100644 (file)
@@ -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: