mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* trustdb.c (uid_trust_string_fixed): Show uids as revoked if the key is
revoked. * keyedit.c (show_key_with_all_names): Don't show validity for secret key UIDs. * keyedit.c (parse_sign_type): New. Figure out the flags (local, nonrevoke, trust) for a signature. (keyedit_menu): Call it here so we can mix and match flags, and don't need "nrltsign", "ltsign", "tnrsign", etc, etc, etc.
This commit is contained in:
parent
3a6e319232
commit
7dd3fe2a79
3 changed files with 196 additions and 119 deletions
|
@ -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]");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue