aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/keyedit.c10
2 files changed, 12 insertions, 3 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 329283af1..06221be8b 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-29 David Shaw <[email protected]>
+
+ * keyedit.c (print_and_check_one_sig): Use list-option
+ show-long-keyid in --edit-key "check" function.
+
2003-08-28 David Shaw <[email protected]>
* passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 7b696c53b..bd6b5fcf2 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -133,7 +133,7 @@ print_and_check_one_sig( KBNODE keyblock, KBNODE node,
break;
}
if( sigrc != '?' || print_without_key ) {
- tty_printf("%s%c%c %c%c%c%c%c%c %08lX %s",
+ tty_printf("%s%c%c %c%c%c%c%c%c ",
is_rev? "rev":"sig",sigrc,
(sig->sig_class-0x10>0 &&
sig->sig_class-0x10<4)?'0'+sig->sig_class-0x10:' ',
@@ -143,8 +143,12 @@ print_and_check_one_sig( KBNODE keyblock, KBNODE node,
sig->flags.notation?'N':' ',
sig->flags.expired?'X':' ',
(sig->trust_depth>9)?'T':
- (sig->trust_depth>0)?'0'+sig->trust_depth:' ',
- (ulong)sig->keyid[1], datestr_from_sig(sig));
+ (sig->trust_depth>0)?'0'+sig->trust_depth:' ');
+ if(opt.list_options&LIST_SHOW_LONG_KEYID)
+ tty_printf("%08lX%08lX",(ulong)sig->keyid[0],(ulong)sig->keyid[1]);
+ else
+ tty_printf("%08lX",(ulong)sig->keyid[1]);
+ tty_printf(" %s", datestr_from_sig(sig));
if(opt.list_options&LIST_SHOW_SIG_EXPIRE)
tty_printf(" %s",expirestr_from_sig(sig));
tty_printf(" ");