gpg: Try Signer's User ID sub-packet with --auto-key-retrieve.
authorWerner Koch <wk@gnupg.org>
Mon, 13 Jun 2016 08:40:34 +0000 (10:40 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 13 Jun 2016 08:40:34 +0000 (10:40 +0200)
commit08c82b1b55d28ffd09b859205b7686bcefae5011
treedbdd0375fa3102066139e0a6eeb5410cb624ff10
parent18b03e756b0f16a055a4bc5b919bd911f571d74f
gpg: Try Signer's User ID sub-packet with --auto-key-retrieve.

* g10/packet.h (PKT_signature): Add field 'signers_uid'.
* g10/parse-packet.c (parse_signature): Set this field.
* g10/free-packet.c (free_seckey_enc): Free field.
(copy_signature): Copy field.
* g10/mainproc.c (akl_has_wkd_method): New.
(check_sig_and_print): Extend NEWSIG status.  If WKD is enabled try to
locate a missing key via the signature's Signer's User ID sub-packet.
Do this right before trying a keyserver lookup.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/DETAILS
g10/free-packet.c
g10/mainproc.c
g10/packet.h
g10/parse-packet.c