summarylogtreecommitdiffstats
path: root/gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch
diff options
context:
space:
mode:
authorMax Harmathy2022-01-31 23:44:00 +0200
committerMax Harmathy2022-01-31 23:44:00 +0200
commite30bf12e0466fb07481059737671bf937377f84f (patch)
tree9821de14416777fe07d9ea57d619fcb3bb0af854 /gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch
downloadaur-e30bf12e0466fb07481059737671bf937377f84f.tar.gz
Initial packaging of GnuPG with no-iud patches
Add no-uid patches The patches are taken directly from debian packaging: https://salsa.debian.org/debian/gnupg2/-/commit/f292beac1171c6c77faf41d1f88c2e0942ed4437
Diffstat (limited to 'gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch')
-rw-r--r--gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch b/gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch
new file mode 100644
index 000000000000..e448a0a44289
--- /dev/null
+++ b/gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch
@@ -0,0 +1,32 @@
+From: Vincent Breitmoser <look@my.amazin.horse>
+Date: Thu, 13 Jun 2019 21:27:43 +0200
+Subject: gpg: accept subkeys with a good revocation but no self-sig during
+ import
+
+* g10/import.c (chk_self_sigs): Set the NODE_GOOD_SELFSIG flag when we
+encounter a valid revocation signature. This allows import of subkey
+revocation signatures, even in the absence of a corresponding subkey
+binding signature.
+
+--
+
+This fixes the remaining test in import-incomplete.scm.
+
+GnuPG-Bug-id: 4393
+Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+---
+ g10/import.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/g10/import.c b/g10/import.c
+index 79104dc..20f4af5 100644
+--- a/g10/import.c
++++ b/g10/import.c
+@@ -3665,6 +3665,7 @@ chk_self_sigs (ctrl_t ctrl, kbnode_t keyblock, u32 *keyid, int *non_self)
+ /* It's valid, so is it newer? */
+ if (sig->timestamp >= rsdate)
+ {
++ knode->flag |= NODE_GOOD_SELFSIG; /* Subkey is valid. */
+ if (rsnode)
+ {
+ /* Delete the last revocation sig since