Home GnuPG
Diffusion GnuPG 2e5459457473

gpg: Avoid asking by fpr and then by keyid during auto-key-retrieve.

Description

gpg: Avoid asking by fpr and then by keyid during auto-key-retrieve.

* g10/mainproc.c (check_sig_and_print): Track key server request via
fingerprint.

New signatures carry the fingerprint and thus --auto-key-retrieve tries
to lookup the key by fingerprint. If that failed it used to also ask
the same thing by KEYID - but the keyid is part of the fingerprint and
thus it will either get no response or the wrong key back. We can
easily avoid this.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 19 2017, 1:03 PM
Parents
rGda91d2106a17: dirmngr: Implement TLS over http proxies.
Branches
Unknown
Tags
Unknown