[git] GnuPG - branch, STABLE-BRANCH-1-4, updated. gnupg-1.4.12-19-gd42dcbf
by David Shaw
cvs at cvs.gnupg.org
Thu Nov 29 19:30:41 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-1-4 has been updated
via d42dcbfa923cc2e97faf588b19c19f63c4db409d (commit)
from 95347cf950e2e26d1726791f9f4278af70dccce9 (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 d42dcbfa923cc2e97faf588b19c19f63c4db409d
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 80e934e..1eadff1 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.
*
@@ -492,21 +492,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