From 853d5b7677ea01f65c9bc5160cd8509b62f486f7 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 17 Jan 2020 15:11:02 +0900 Subject: gpg: Prepare enhancement of agent_probe_secret_key. * g10/call-agent.c (agent_probe_secret_key): Change semantics of return value. * g10/call-agent.h (agent_probe_secret_key): Change comment. * g10/delkey.c (do_delete_key): Follow the change. * g10/getkey.c (get_seckey, parse_def_secret_key): Likewise. (finish_lookup, have_secret_key_with_kid): Likewise. * g10/gpgv.c (agent_probe_secret_key): Likewise. * g10/keyedit.c (keyedit_menu, quick_find_keyblock): Likewise. (show_key_with_all_names_colon): Likewise. * g10/revoke.c (gen_desig_revoke, gen_revoke): Likewise * g10/test-stubs.c (agent_probe_secret_key): Likewise. -- GnuPG-bug-id: 3416 Signed-off-by: NIIBE Yutaka --- g10/delkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/delkey.c') diff --git a/g10/delkey.c b/g10/delkey.c index 167a7bcaf..b89451089 100644 --- a/g10/delkey.c +++ b/g10/delkey.c @@ -232,7 +232,7 @@ do_delete_key (ctrl_t ctrl, const char *username, int secret, int force, if (thiskeyonly && targetnode != node) continue; - if (agent_probe_secret_key (NULL, node->pkt->pkt.public_key)) + if (!agent_probe_secret_key (NULL, node->pkt->pkt.public_key)) continue; /* No secret key for that public (sub)key. */ prompt = gpg_format_keydesc (ctrl, -- cgit v1.2.3