[Rpm-maint] [rpm-software-management/rpm] Add a rpmKeyring iterator (PR #3365)

Florian Festi notifications at github.com
Fri Oct 11 06:55:04 UTC 2024


@ffesti commented on this pull request.



> +	keyring->keys.cbegin(),
+	NULL,
+    };
+}
+
+rpmPubkey rpmKeyringIteratorNext(rpmKeyringIterator iterator)
+{
+    rpmPubkey next = NULL;
+
+    if (!iterator)
+	return NULL;
+
+    while (iterator->iterator != iterator->keyring->keys.end()) {
+	next = iterator->iterator->second;
+	iterator->iterator++;
+	rdlock lock(next->mutex);

Yeah, that was may be a bit too conservative.

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

Message ID: <rpm-software-management/rpm/pull/3365/review/2362079005 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241010/92359b21/attachment.html>


More information about the Rpm-maint mailing list