[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:42:09 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 
+ */
+rpmRC pgpPubkeyMerge(const uint8_t *pkts1, size_t pkts1len, const uint8_t *pkts2, size_t pkts2len, uint8_t **pktsm, size_t *pktsmlen, int flags);

All the other functions use buffers as well (e.g. pgpParsePkts, pgpPubKeyCertLen, ...)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3083#discussion_r1609879838
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3083/review/2071077132 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240522/bfb12ab1/attachment.html>


More information about the Rpm-maint mailing list