mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
* keyedit.c, keylist.c, keyserver.c, mainproc.c: The
revoked/expired/expires string change of 2004-09-29 was too simple. Use two styles for each tag.
This commit is contained in:
parent
8c72ff9543
commit
8da1dfeed0
@ -1,3 +1,9 @@
|
||||
2004-10-06 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* keyedit.c, keylist.c, keyserver.c, mainproc.c: The
|
||||
revoked/expired/expires string change of 2004-09-29 was too
|
||||
simple. Use two styles for each tag.
|
||||
|
||||
2004-10-05 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* passphrase.c (agent_get_passphrase): Use keystrs for agent
|
||||
|
@ -2241,11 +2241,11 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
||||
tty_printf(_("created: %s"),datestr_from_pk(pk));
|
||||
tty_printf(" ");
|
||||
if(pk->is_revoked)
|
||||
tty_printf("%s: %s",_("revoked"),revokestr_from_pk(pk));
|
||||
tty_printf(_("revoked: %s"),revokestr_from_pk(pk));
|
||||
else if(pk->has_expired)
|
||||
tty_printf("%s: %s",_("expired"),expirestr_from_pk(pk));
|
||||
tty_printf(_("expired: %s"),expirestr_from_pk(pk));
|
||||
else
|
||||
tty_printf("%s: %s",_("expires"),expirestr_from_pk(pk));
|
||||
tty_printf(_("expires: %s"),expirestr_from_pk(pk));
|
||||
tty_printf(" ");
|
||||
tty_printf(_("usage: %s"),usagestr_from_pk(pk));
|
||||
tty_printf("\n");
|
||||
@ -2296,7 +2296,7 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
||||
keystr_from_sk(sk));
|
||||
tty_printf(_("created: %s"),datestr_from_sk(sk));
|
||||
tty_printf(" ");
|
||||
tty_printf("%s: %s",_("expires"),expirestr_from_sk(sk));
|
||||
tty_printf(_("expires: %s"),expirestr_from_sk(sk));
|
||||
tty_printf("\n");
|
||||
if (sk->is_protected && sk->protect.s2k.mode == 1002)
|
||||
{
|
||||
@ -2331,11 +2331,11 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
||||
++i;
|
||||
if( !only_marked || (only_marked && (node->flag & NODFLG_MARK_A))){
|
||||
if(uid->is_revoked)
|
||||
tty_printf("[%8.8s] ",_("revoked"));
|
||||
tty_printf(_("[%8.8s] "),_("revoked"));
|
||||
else if(uid->is_expired)
|
||||
tty_printf("[%8.8s] ",_("expired"));
|
||||
tty_printf(_("[%8.8s] "),_("expired"));
|
||||
else if(primary)
|
||||
tty_printf("[%8.8s] ",
|
||||
tty_printf(_("[%8.8s] "),
|
||||
trust_value_to_string(get_validity(primary,uid)));
|
||||
if( only_marked )
|
||||
tty_printf(" ");
|
||||
@ -2409,7 +2409,7 @@ show_basic_key_info ( KBNODE keyblock )
|
||||
keystr_from_pk(pk));
|
||||
tty_printf(_("created: %s"),datestr_from_pk(pk));
|
||||
tty_printf(" ");
|
||||
tty_printf("%s: %s",_("expires"),expirestr_from_pk(pk));
|
||||
tty_printf(_("expires: %s"),expirestr_from_pk(pk));
|
||||
tty_printf("\n");
|
||||
print_fingerprint ( pk, NULL, 3 );
|
||||
tty_printf("\n");
|
||||
@ -2424,7 +2424,7 @@ show_basic_key_info ( KBNODE keyblock )
|
||||
keystr_from_sk(sk));
|
||||
tty_printf(_("created: %s"),datestr_from_sk(sk));
|
||||
tty_printf(" ");
|
||||
tty_printf("%s: %s",_("expires"),expirestr_from_sk(sk));
|
||||
tty_printf(_("expires: %s"),expirestr_from_sk(sk));
|
||||
tty_printf("\n");
|
||||
print_fingerprint (NULL, sk, 3 );
|
||||
tty_printf("\n");
|
||||
|
@ -668,9 +668,17 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
|
||||
keystr_from_sk(sk),datestr_from_sk( sk ));
|
||||
|
||||
if(sk->has_expired)
|
||||
printf(" [%s: %s]",_("expired"),expirestr_from_sk( sk ) );
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("expired: %s"),expirestr_from_sk(sk));
|
||||
printf("]");
|
||||
}
|
||||
else if(sk->expiredate )
|
||||
printf(" [%s: %s]",_("expires"),expirestr_from_sk( sk ) );
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("expires: %s"),expirestr_from_sk(sk));
|
||||
printf("]");
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
@ -689,11 +697,23 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
|
||||
is room in the new format, so why not? */
|
||||
|
||||
if(pk->is_revoked)
|
||||
printf(" [%s: %s]",_("revoked"),revokestr_from_pk( pk ) );
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("revoked: %s"),revokestr_from_pk(pk));
|
||||
printf("]");
|
||||
}
|
||||
else if(pk->has_expired)
|
||||
printf(" [%s: %s]",_("expired"),expirestr_from_pk( pk ) );
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("expired: %s)"),expirestr_from_pk(pk));
|
||||
printf("]");
|
||||
}
|
||||
else if(pk->expiredate)
|
||||
printf(" [%s: %s]",_("expires"),expirestr_from_pk( pk ) );
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("expires: %s"),expirestr_from_pk(pk));
|
||||
printf("]");
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* I need to think about this some more. It's easy enough to
|
||||
@ -787,11 +807,23 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
|
||||
nbits_from_pk( pk2 ),pubkey_letter( pk2->pubkey_algo ),
|
||||
keystr_from_pk(pk2),datestr_from_pk(pk2));
|
||||
if( pk2->is_revoked )
|
||||
printf(" [%s: %s]",_("revoked"),revokestr_from_pk(pk2));
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("revoked: %s"),revokestr_from_pk(pk2));
|
||||
printf("]");
|
||||
}
|
||||
else if( pk2->has_expired )
|
||||
printf(" [%s: %s]",_("expired"),expirestr_from_pk(pk2));
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("expired: %s"),expirestr_from_pk(pk2));
|
||||
printf("]");
|
||||
}
|
||||
else if( pk2->expiredate )
|
||||
printf(" [%s: %s]",_("expires"),expirestr_from_pk(pk2));
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("expires: %s"),expirestr_from_pk(pk2));
|
||||
printf("]");
|
||||
}
|
||||
putchar('\n');
|
||||
if( fpr > 1 )
|
||||
print_fingerprint( pk2, NULL, 0 );
|
||||
@ -817,7 +849,11 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
|
||||
nbits_from_sk( sk2 ),pubkey_letter( sk2->pubkey_algo ),
|
||||
keystr_from_sk(sk2),datestr_from_sk( sk2 ) );
|
||||
if( sk2->expiredate )
|
||||
printf(" [%s: %s]",_("expires"), expirestr_from_sk( sk2 ) );
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("expires: %s"),expirestr_from_sk(sk2));
|
||||
printf("]");
|
||||
}
|
||||
putchar('\n');
|
||||
if( fpr > 1 )
|
||||
{
|
||||
|
@ -367,7 +367,10 @@ print_keyrec(int number,struct keyrec *keyrec)
|
||||
}
|
||||
|
||||
if(keyrec->expiretime>0)
|
||||
printf(", %s: %s",_("expires"),strtimestamp(keyrec->expiretime));
|
||||
{
|
||||
printf(", ");
|
||||
printf(_("expires: %s"),strtimestamp(keyrec->expiretime));
|
||||
}
|
||||
|
||||
if(keyrec->flags&1)
|
||||
printf(" (%s)",_("revoked"));
|
||||
|
@ -927,9 +927,17 @@ list_node( CTX c, KBNODE node )
|
||||
{
|
||||
/* of subkey */
|
||||
if( pk->is_revoked )
|
||||
printf(" [%s]",_("revoked"));
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("revoked: %s"),revokestr_from_pk(pk));
|
||||
printf("]");
|
||||
}
|
||||
else if( pk->expiredate )
|
||||
printf(" [%s:%s]",_("expires"), expirestr_from_pk( pk ) );
|
||||
{
|
||||
printf(" [");
|
||||
printf(_("expires: %s"),expirestr_from_pk(pk));
|
||||
printf("]");
|
||||
}
|
||||
}
|
||||
|
||||
if( !any )
|
||||
|
Loading…
x
Reference in New Issue
Block a user