gnupg/g10 (7 files)

cvs user dshaw cvs at
Thu Dec 11 02:07:43 CET 2003

    Date: Thursday, December 11, 2003 @ 02:07:43
  Author: dshaw
    Path: /cvs/gnupg/gnupg/g10

Modified: ChangeLog build-packet.c getkey.c import.c keydb.h keyid.c

* packet.h, build-packet.c (hash_public_key): Remove function ...

* keydb.h, keyid.c (hash_public_key, do_fingerprint_md): ... and make a
new one here that shares code with the fingerprint calculations.  This
removes some duplicated functionality, and is also around 14% faster.  
(Every bit helps).

* import.c (import_one): No longer need the Elgamal import warning.

* getkey.c (get_pubkey_fast): This one is sort of obscure. get_pubkey_fast
returns the primary key when requesting a subkey, so if a user has a key
signed by a subkey (we don't do this, but used to), AND that key is not
self-signed, AND the algorithm of the subkey in question is not present in
GnuPG, AND the algorithm of the primary key that owns the subkey in
question is present in GnuPG, then we will try and verify the subkey
signature using the primary key algorithm and hit a BUG().  The fix is to
not return a hit if the keyid is not the primary.  All other users of
get_pubkey_fast already expect a primary only.

 ChangeLog      |   23 ++++++++++
 build-packet.c |   79 -------------------------------------
 getkey.c       |   17 +++++---
 import.c       |    4 -
 keydb.h        |    5 --
 keyid.c        |  116 ++++++++++++++++++++++++++++++++-----------------------
 packet.h       |    5 --
 7 files changed, 107 insertions(+), 142 deletions(-)

More information about the Gnupg-commits mailing list