diff options
Diffstat (limited to 'g10/trustdb.c')
-rw-r--r-- | g10/trustdb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c index 1222f49ca..ca4c4209d 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -495,17 +495,18 @@ trust_letter (unsigned int value) properly. The value "10" should be the length of the strings you choose to translate to. This is the length in printable columns. It gets passed to atoi() so everything after the number is - essentially a comment and need not be translated. */ + essentially a comment and need not be translated. Either key and + uid are both NULL, or neither are NULL. */ const char * uid_trust_string_fixed(PKT_public_key *key,PKT_user_id *uid) { if(!key && !uid) return _("10 translator see trustdb.c:uid_trust_string_fixed"); - else if(uid->is_revoked) + else if(uid->is_revoked || key->is_revoked) return _("[ revoked]"); else if(uid->is_expired) return _("[ expired]"); - else if(key) + else switch(get_validity(key,uid)&TRUST_MASK) { case TRUST_UNKNOWN: return _("[ unknown]"); |