mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-24 22:09:57 +01:00
g10: Remove unused function have_any_secret_key.
* g10/getkey.c (have_any_secret_key): Remove function. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.
This commit is contained in:
parent
5e233e12f5
commit
7333e704ef
14
g10/getkey.c
14
g10/getkey.c
@ -2893,20 +2893,6 @@ parse_auto_key_locate (char *options)
|
||||
}
|
||||
|
||||
|
||||
/* Return true if a secret key or secret subkey is available for one
|
||||
of the public keys in KEYBLOCK. */
|
||||
int
|
||||
have_any_secret_key (ctrl_t ctrl, kbnode_t keyblock)
|
||||
{
|
||||
kbnode_t node;
|
||||
|
||||
for (node = keyblock; node; node = node->next)
|
||||
if ((node->pkt->pkttype == PKT_PUBLIC_KEY
|
||||
|| node->pkt->pkttype == PKT_PUBLIC_SUBKEY)
|
||||
&& !agent_probe_secret_key (ctrl, node->pkt->pkt.public_key))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* Return true if a secret key is available for the public key with
|
||||
|
Loading…
x
Reference in New Issue
Block a user