[Rpm-maint] [rpm-software-management/rpm] Implement merging of new key material when importing pubkeys (PR #3083)
Michael Schroeder
notifications at github.com
Wed May 22 12:40:35 UTC 2024
@mlschroe commented on this pull request.
> @@ -509,6 +509,19 @@ int pgpSignatureType(pgpDigParams sig);
*/
char *pgpIdentItem(pgpDigParams digp);
+/** \ingroup rpmpgp
+ * Merge the PGP packets of two public keys
+ * @param pkts1 OpenPGP pointer to a buffer of first certificates
+ * @param pkts1len length of the buffer with first certificates
+ * @param pkts2 OpenPGP pointer to a buffer of second certificates
+ * @param pkts2len length of the buffer with second certificates
+ * @param pktsm[out] merged certificates (malloced)
+ * @param pktsmlen[out] length of merged certificates
+ * @param flags merge flags (currently not implemented)
+ * @return RPMRC_OK on success
The pgp backend MUST return an error if a buffer contains multiple certificates or is invalid.
How the merging is done is up to the backend implementer. It SHOULD build the union of all pgp packets in some sane order and remove all duplicates.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3083#discussion_r1609877474
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3083/review/2071073496 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240522/3abdfca1/attachment-0001.html>
More information about the Rpm-maint
mailing list