[Rpm-maint] [rpm-software-management/rpm] Handle subkeys in rpmKeyringModify (PR #3403)
Panu Matilainen
notifications at github.com
Thu Oct 24 13:06:29 UTC 2024
@pmatilai commented on this pull request.
> rpmPubkeyFree(item->second);
keyring->keys.erase(item);
rc = 0;
- } else if (item != range.second && mode == RPMKEYRING_REPLACE) {
- rpmPubkeyFree(item->second);
- item->second = rpmPubkeyLink(key);
- rc = 0;
- } else if (item == range.second && (mode == RPMKEYRING_ADD || mode == RPMKEYRING_REPLACE) ) {
+ } else if ((item == range.second && mode == RPMKEYRING_ADD) || mode == RPMKEYRING_REPLACE) {
+ int subkeysCount = 0;
+ rpmPubkey *subkeys = rpmGetSubkeys(key, &subkeysCount);
This isn't a requirement, just noting that going forward we'll want to change the subkey fetch to an internal C++ native version with rpmGetSubkeys() becoming just a deprecated wrapper around it.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3403#pullrequestreview-2392443331
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3403/review/2392443331 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241024/f7464d5d/attachment.html>
More information about the Rpm-maint
mailing list