From c48d5ebbb7d4a3ff0ee4e49e43c7fef57b57690b Mon Sep 17 00:00:00 2001
From: David Shaw <dshaw@jabberwocky.com>
Date: Wed, 29 Sep 2004 03:21:05 +0000
Subject: [PATCH] * 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.

---
 g10/ChangeLog |  6 ++++++
 g10/keyedit.c | 19 +++----------------
 2 files changed, 9 insertions(+), 16 deletions(-)

diff --git a/g10/ChangeLog b/g10/ChangeLog
index d051aac02..59e830ba2 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,5 +1,11 @@
 2004-09-28  David Shaw  <dshaw@jabberwocky.com>
 
+	* 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.
+
 	* signal.c (got_fatal_signal): HAVE_DECL_SYS_SIGLIST is defined,
 	but zero if not found.  Noted by John Clizbe.
 
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 */