summaryrefslogtreecommitdiffstats
path: root/pgpkey.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-27 19:53:38 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-27 19:53:38 +0000
commit95ae5e554613063d5d73b9fe1e35aeab088e88af (patch)
tree6050433a4c92ba2ee5adba659138c374a07f7671 /pgpkey.c
parent0baa541c90dab71d44960847d3ec6e3dd9483f38 (diff)
Add $pgp_show_unusable.
Diffstat (limited to 'pgpkey.c')
-rw-r--r--pgpkey.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pgpkey.c b/pgpkey.c
index f3bfd7c6..d1fc9182 100644
--- a/pgpkey.c
+++ b/pgpkey.c
@@ -146,6 +146,9 @@ static pgp_key_t *pgp_select_key (struct pgp_vinfo *pgp,
for (i = 0, kp = keys; kp; kp = kp->next)
{
+ if (!option (OPTPGPSHOWUNUSABLE) && (kp->flags & KEYFLAG_CANTUSE))
+ continue;
+
for (a = kp->address; a; i++, a = a->next)
;
}
@@ -158,6 +161,9 @@ static pgp_key_t *pgp_select_key (struct pgp_vinfo *pgp,
for (i = 0, kp = keys; kp; kp = kp->next)
{
+ if (!option (OPTPGPSHOWUNUSABLE) && (kp->flags & KEYFLAG_CANTUSE))
+ continue;
+
for (a = kp->address; a; i++, a = a->next)
KeyTable[i] = a;
}