gpg: Use just the addrspec from the Signer's UID.
authorWerner Koch <wk@gnupg.org>
Fri, 3 May 2019 08:53:34 +0000 (10:53 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 1 Jul 2022 16:06:43 +0000 (17:06 +0100)
commitd78f67bbbd3f3cae1635b0e662d5df84f5e0ce55
treea6fecf7c69ca76ee3adfbeb4f5dc47fd3d5e8f8d
parent3c92c309fbf8bf0dfe0746e09917c56567f19b1e
gpg: Use just the addrspec from the Signer's UID.

* g10/parse-packet.c (parse_signature): Take only the addrspec from a
Signer's UID subpacket.
--

This is to address a problem in the currentr OpenKeychain which put
the entire UID into the subpacket.  For example our Tofu code can only
use the addrspec and not the entire UID.

Reported-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 05204b72497db093f5d2da4a2446c0264a946296)

Gbp-Pq: Topic from-2.2.16
Gbp-Pq: Name gpg-Use-just-the-addrspec-from-the-Signer-s-UID.patch
g10/parse-packet.c