[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:10:18 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)
It is yeah: "if counting subkeys and this is not a subkey, continue"
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3539#discussion_r1936831092
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3539/review/2585929509 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250131/dd3cbcb8/attachment.htm>
More information about the Rpm-maint
mailing list