mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* keygen.c (keygen_set_std_prefs): Build the default preferences list at
runtime as it properly handles algorithms disabled at build or run time. * getkey.c (merge_selfsigs_main): Properly handle expired user IDs when the expired self-sig is not the only self-sig. * misc.c (compress_algo_to_string): Return NULL on failure like all of the other xxxx_algo_to_string() functions. * mainproc.c (list_node): Minor spacing tweak to match --list-keys output. * keylist.c (list_keyblock_print), mainproc.c (list_node): Mark revoked subkeys as revoked. Requested by Matthew Wilcox. Revoked overrides expiration when both apply. * keyedit.c (show_prefs): Use compress algo constants. (show_basic_key_info): Make revoked and expired tags translatable. * g10.c (rm_group): Properly ungroup from a list of groups.
This commit is contained in:
parent
74eadbf99b
commit
9842d84da0
8 changed files with 110 additions and 64 deletions
|
@ -750,8 +750,15 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
|
|||
else
|
||||
printf("%08lX",(ulong)keyid2[1]);
|
||||
printf(" %s",datestr_from_pk(pk2));
|
||||
if( pk2->expiredate )
|
||||
printf(_(" [expires: %s]"), expirestr_from_pk( pk2 ) );
|
||||
/* Yes, this is an odd way to print the revoked string,
|
||||
but we already have translations for "[revoked] " (with
|
||||
the trailing space) and this is a simple way to take
|
||||
advantage of it. In devel, this will be done rather
|
||||
more elegantly. */
|
||||
if( pk2->is_revoked )
|
||||
printf(" %s",_("[revoked] "));
|
||||
else if( pk2->expiredate )
|
||||
printf(_(" [expires: %s]"), expirestr_from_pk( pk2 ) );
|
||||
putchar('\n');
|
||||
if( fpr > 1 )
|
||||
print_fingerprint( pk2, NULL, 0 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue