[git] GnuPG - branch, STABLE-BRANCH-2-0, updated. gnupg-2.0.19-41-g3d0c386
by David Shaw
cvs at cvs.gnupg.org
Thu Nov 29 20:40:40 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, STABLE-BRANCH-2-0 has been updated
via 3d0c386011efcf7064ff0e7bf0be3f0c2316be67 (commit)
from 978878b1be0be5bdce7b1bbc7dc9fa39ce8aa402 (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 3d0c386011efcf7064ff0e7bf0be3f0c2316be67
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 90e9000..f90467c 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 Free Software Foundation, Inc.
+ * 2009, 2012 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -505,21 +505,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:
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:
printf("key ");
for(i=0;i<16;i++)
printf("%02X",keyrec->desc.u.fpr[i]);
break;
+ /* If we get a modern fingerprint, we have the most
+ flexibility. */
case KEYDB_SEARCH_MODE_FPR20:
- printf("key ");
- for(i=0;i<20;i++)
- printf("%02X",keyrec->desc.u.fpr[i]);
+ {
+ u32 kid[2];
+ keyid_from_fingerprint(keyrec->desc.u.fpr,20,kid);
+ 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