diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-27 19:53:38 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-27 19:53:38 +0000 |
commit | 95ae5e554613063d5d73b9fe1e35aeab088e88af (patch) | |
tree | 6050433a4c92ba2ee5adba659138c374a07f7671 /pgpkey.c | |
parent | 0baa541c90dab71d44960847d3ec6e3dd9483f38 (diff) |
Add $pgp_show_unusable.
Diffstat (limited to 'pgpkey.c')
-rw-r--r-- | pgpkey.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |