Home GnuPG
Diffusion GnuPG f2734381ae14

gpg: Fix get_best_pubkey_byname to consider the first match.

Description

gpg: Fix get_best_pubkey_byname to consider the first match.

* g10/getkey.c (get_best_pubkey_byname): Always use PK0 to search
by get_pubkey_byname.  Add initial call to pubkey_cmp to fill
BEST at first before the loop.

Details

Provenance
gniibeAuthored on Oct 16 2019, 8:58 AM
Parents
rGd1bc12d1b66e: gpg: Also delete key-binding signature when deleting a subkey.
Branches
Unknown
Tags
Unknown
Tasks
T4713: Bug in get_best_pubkey_byname