aboutsummaryrefslogtreecommitdiffstats
path: root/g10/kbnode.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-10-28 07:29:30 +0000
committerWerner Koch <[email protected]>2022-10-28 07:30:49 +0000
commit7aaedfb10767c74f3e6868dd1563cbbf1282ab2f (patch)
treed84a6c0554e0ce44715ddf73694f8ba53c41e7bc /g10/kbnode.c
parentagent: Automatically convert to extended key format by KEYATTR. (diff)
downloadgnupg-7aaedfb10767c74f3e6868dd1563cbbf1282ab2f.tar.gz
gnupg-7aaedfb10767c74f3e6868dd1563cbbf1282ab2f.zip
gpg: Import stray revocation certificates.
* g10/kbnode.c (new_kbnode2): New. * g10/import.c (delete_inv_parts): New arg r_otherrevsigs to store misplaced revocations. (import_revoke_cert): Allow to pass an entire list. (import_one): Import revocations found by delete_inv_parts. -- It might be useful to distribute revocations of old keys along with new keys. This is in particicualrr useful for WKD stored keys. This patch allows to put unrelated standalone revocations into a key. For example they can simply appended to a keyblock. Right now it is a bit inaesthetic to see diagnostics about misplaced or bad revocation signatures.
Diffstat (limited to 'g10/kbnode.c')
-rw-r--r--g10/kbnode.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/g10/kbnode.c b/g10/kbnode.c
index 93035e8f6..1f2328d24 100644
--- a/g10/kbnode.c
+++ b/g10/kbnode.c
@@ -98,6 +98,19 @@ new_kbnode( PACKET *pkt )
}
+/* Same as new_kbnode but insert the new node in front of LIST. Returns
+ * the new list. */
+kbnode_t
+new_kbnode2 (kbnode_t list, PACKET *pkt)
+{
+ kbnode_t n;
+
+ n = new_kbnode (pkt);
+ n->next = list;
+ return n;
+}
+
+
KBNODE
clone_kbnode( KBNODE node )
{