1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

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.

Backported-from-master: 7aaedfb107
This commit is contained in:
Werner Koch 2022-10-28 09:29:30 +02:00
parent b8e197318a
commit bd825ead36
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
3 changed files with 66 additions and 13 deletions

View file

@ -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 )
{