Home GnuPG
Diffusion GnuPG a70a3204c24a

dirmngr: Support paged LDAP mode for KS_GET

Description

dirmngr: Support paged LDAP mode for KS_GET

* dirmngr/ks-engine-ldap.c (PAGE_SIZE): New.
(struct ks_engine_ldap_local_s): Add several new fields.
(ks_ldap_clear_state): Release them.
(search_and_parse): Factored out from ks_ldap_get and extended to
support the paged mode.
(ks_ldap_get):  Implement the pages mode for --first and --next.
* dirmngr/server.c (cmd_ks_get): Provide a dummy passphrase in --first
mode.
* dirmngr/Makefile.am (dirmngr_LDADD): Add LBER_LIBS.

The paged mode allows to retrieve more items than the servers usually
limit (e.g. 1000 for an LDS). This patch also allows to use --first
without a patter to retrieve all keyblocks (except for disabled and
revoked keys).

Backported-from-master: 7a01e806eac4cd7a65eaf3e17dcd2f117ec2d327

Details

Provenance
wernerAuthored on Oct 5 2022, 3:15 PM
Parents
rG20cb9319d998: dirmngr: New options --first and --next for KS_GET.
Branches
Unknown
Tags
Unknown
Tasks
T6224: Mirror internal LDAP to a WKD