[Rpm-maint] [rpm-software-management/rpm] Pass rpmPubkey instance to rpmtxnDeletePubkey (PR #3374)
Panu Matilainen
notifications at github.com
Tue Oct 15 06:15:21 UTC 2024
@pmatilai commented on this pull request.
> @@ -359,7 +360,18 @@ rpmRC rpmtxnImportPubkey(rpmtxn txn, const unsigned char * pkt, size_t pktlen);
* RPMRC_NOKEY on invalid keyid
* RPMRC_FAIL on other failure
*/
-rpmRC rpmtxnDeletePubkey(rpmtxn txn, const char *keyid);
+rpmRC rpmtxnDeletePubkeyByID(rpmtxn txn, const char *keyid);
+
+/** \ingroup rpmts
+ * Delete public key from transaction keystore.
+ * @param txn transaction handle
+ * @param key public key
+ * @return RPMRC_OK on success
+ * RPMRC_NOTFOUND if key not found
+ * RPMRC_NOKEY on invalid keyid
You can drop the NOKEY return, if it takes a pubkey then we already know it's a key.
Getting rid of that ugly kludge NOKEY == INVALID mapping is actually another reason to just drop the ByID variant.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3374#pullrequestreview-2368265750
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3374/review/2368265750 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241014/5960445a/attachment-0001.html>
More information about the Rpm-maint
mailing list