[git] GnuPG - branch, master, updated. gnupg-2.1.0beta3-102-g7602d9e

by David Shaw cvs at cvs.gnupg.org
Thu Nov 29 20:40:42 CET 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  7602d9e3edda99b0b65ba928eef435dab04ecd09 (commit)
      from  3d2da6c82163ffbc2e827abc4144dc3197ed53db (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7602d9e3edda99b0b65ba928eef435dab04ecd09
Author: David Shaw <dshaw at jabberwocky.com>
Date:   Thu Nov 29 12:00:46 2012 -0500

    The keyserver search menu should honor --keyid-format
    
    * keyserver.c (print_keyrec): Honor --keyid-format when getting back
      full fingerprints from the keyserver (the comment in the code was
      correct, the code was not).

diff --git a/g10/keyserver.c b/g10/keyserver.c
index 0e6bcf6..0be1e3f 100644
--- a/g10/keyserver.c
+++ b/g10/keyserver.c
@@ -1,6 +1,6 @@
 /* keyserver.c - generic keyserver code
  * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
- *               2009, 2011 Free Software Foundation, Inc.
+ *               2009, 2011, 2012 Free Software Foundation, Inc.
  *
  * This file is part of GnuPG.
  *
@@ -529,21 +529,27 @@ print_keyrec(int number,struct keyrec *keyrec)
       break;
 
       /* However, if it gave us a long keyid, we can honor
-	 --keyid-format */
+	 --keyid-format via keystr(). */
     case KEYDB_SEARCH_MODE_LONG_KID:
       es_printf ("key %s",keystr(keyrec->desc.u.kid));
       break;
 
+      /* If it gave us a PGP 2.x fingerprint, not much we can do
+	 beyond displaying it. */
     case KEYDB_SEARCH_MODE_FPR16:
       es_printf ("key ");
       for(i=0;i<16;i++)
 	es_printf ("%02X",keyrec->desc.u.fpr[i]);
       break;
 
+      /* If we get a modern fingerprint, we have the most
+	 flexibility. */
     case KEYDB_SEARCH_MODE_FPR20:
-      es_printf ("key ");
-      for(i=0;i<20;i++)
-	es_printf ("%02X", keyrec->desc.u.fpr[i]);
+      {
+	u32 kid[2];
+	keyid_from_fingerprint(keyrec->desc.u.fpr,20,kid);
+	es_printf("key %s",keystr(kid));
+      }
       break;
 
     default:

-----------------------------------------------------------------------

Summary of changes:
 g10/keyserver.c |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list