From 08c82b1b55d28ffd09b859205b7686bcefae5011 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 13 Jun 2016 10:40:34 +0200 Subject: 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 --- doc/DETAILS | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/DETAILS b/doc/DETAILS index d2df9ace4..2fcdb2830 100644 --- a/doc/DETAILS +++ b/doc/DETAILS @@ -341,10 +341,12 @@ pkd:0:1024:B665B1435F4C2 .... FF26ABB: arguments in future versions. ** General status codes -*** NEWSIG +*** NEWSIG [] Is issued right before a signature verification starts. This is - useful to define a context for parsing ERROR status messages. No - arguments are currently defined. + useful to define a context for parsing ERROR status messages. + arguments are currently defined. If SIGNERS_UID is given and is + not "-" this is the percent escape value of the OpenPGP Signer's + User ID signature sub-packet. *** GOODSIG The signature with the keyid is good. For each signature only one -- cgit v1.2.3