Print a note for revoked signing keys.
authorWerner Koch <wk@gnupg.org>
Thu, 8 May 2008 10:10:27 +0000 (10:10 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 8 May 2008 10:10:27 +0000 (10:10 +0000)
g10/ChangeLog
g10/sig-check.c

index 38b2b87..5e481bf 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-08  Werner Koch  <wk@g10code.com>
+
+       * sig-check.c (do_check_messages): Print a revocation diagnostic
+       in verbose mode.
+
 2008-05-07  Werner Koch  <wk@g10code.com>
 
        * gpg.c: New command --locate-keys.  New options --with-sig-list
index 55afde0..995821c 100644 (file)
@@ -220,8 +220,14 @@ do_check_messages( PKT_public_key *pk, PKT_signature *sig,
          *r_expired = 1;
     }
 
-    if(pk->is_revoked && r_revoked)
-      *r_revoked=1;
+    if (pk->is_revoked)
+      {
+        if (opt.verbose)
+         log_info (_("NOTE: signature key %s has been revoked\n"),
+                    keystr_from_pk(pk));
+        if (r_revoked)
+          *r_revoked=1;
+      }
 
     return 0;
 }