[Rpm-maint] [rpm-software-management/rpm] Check not configured keystore backends for keys (PR #3539)
Panu Matilainen
notifications at github.com
Fri Jan 31 08:12:59 UTC 2025
@pmatilai commented on this pull request.
> @@ -71,6 +71,19 @@ rpmKeyring rpmKeyringFree(rpmKeyring keyring)
return NULL;
}
+size_t rpmKeyringSize(rpmKeyring keyring, int count_subkeys)
+{
+ if (!keyring) return 0;
+ rdlock lock(keyring->mutex);
+
+ size_t size = 0;
+ for (auto &pair : keyring->keys) {
+ if (count_subkeys or !pair.second->primarykey)
...and now I'm wondering whether I actually got that logic right :laughing: Need more coffee...
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3539#discussion_r1936834170
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3539/review/2585934672 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250131/9a080734/attachment.htm>
More information about the Rpm-maint
mailing list