aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-09-29 03:21:05 +0000
committerDavid Shaw <[email protected]>2004-09-29 03:21:05 +0000
commitc48d5ebbb7d4a3ff0ee4e49e43c7fef57b57690b (patch)
tree294b871249fa617236b0a7831a4537d1b69f8d77 /g10/keyedit.c
parent* signal.c (got_fatal_signal): HAVE_DECL_SYS_SIGLIST is defined, but zero (diff)
downloadgnupg-c48d5ebbb7d4a3ff0ee4e49e43c7fef57b57690b.tar.gz
gnupg-c48d5ebbb7d4a3ff0ee4e49e43c7fef57b57690b.zip
* keyedit.c (print_and_check_one_sig): Account for the extra space that
show-sig-expire takes up so we do not wrap lines. (show_key_with_all_names): No need to show subkey revocations as a seperate line since we now show revocation date in the main subkey line.
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 5da2f822e..f4f4de1af 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -257,7 +257,8 @@ print_and_check_one_sig( KBNODE keyblock, KBNODE node,
{
size_t n;
char *p = get_user_id( sig->keyid, &n );
- tty_print_utf8_string2( p, n, opt.screen_columns-keystrlen()-26 );
+ tty_print_utf8_string2(p, n, opt.screen_columns-keystrlen()-26-
+ ((opt.list_options&LIST_SHOW_SIG_EXPIRE)?11:0));
m_free(p);
}
tty_printf("\n");
@@ -2164,7 +2165,7 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
int with_fpr, int with_subkeys, int with_prefs )
{
KBNODE node;
- int i, rc;
+ int i;
int do_warn = 0, indent=0;
byte pk_version=0;
PKT_public_key *primary=NULL;
@@ -2315,20 +2316,6 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
tty_printf ("\n");
}
}
- else if( with_subkeys && node->pkt->pkttype == PKT_SIGNATURE
- && node->pkt->pkt.signature->sig_class == 0x28 ) {
- PKT_signature *sig = node->pkt->pkt.signature;
-
- rc = check_key_signature( keyblock, node, NULL );
- if( !rc )
- tty_printf( _("rev! subkey has been revoked: %s\n"),
- datestr_from_sig( sig ) );
- else if( rc == G10ERR_BAD_SIGN )
- tty_printf( _("rev- faked revocation found\n") );
- else if( rc )
- tty_printf( _("rev? problem checking revocation: %s\n"),
- g10_errstr(rc) );
- }
}
/* the user ids */