STABLE-BRANCH-1-2 gnupg/g10 (ChangeLog getkey.c)

cvs user dshaw cvs at cvs.gnupg.org
Wed Dec 10 15:57:38 CET 2003


    Date: Wednesday, December 10, 2003 @ 15:57:38
  Author: dshaw
    Path: /cvs/gnupg/gnupg/g10
     Tag: STABLE-BRANCH-1-2

Modified: ChangeLog getkey.c

* 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 |   13 +++++++++++++
 getkey.c  |   17 ++++++++++++-----
 2 files changed, 25 insertions(+), 5 deletions(-)



More information about the Gnupg-commits mailing list