Home GnuPG
Diffusion GnuPG 88042821d81b

wkd: Restrict gpg-wks-client --mirror to the given domains.

Description

wkd: Restrict gpg-wks-client --mirror to the given domains.

* tools/gpg-wks-client.c (domain_matches_mbox): New.
(mirror_one_key): Skip non-matching domains.
(command_mirror): Change args to allow for several domains.

Although dirmngr returns only the keys matching a certain domain,
those keys still may have user ids from other domains. Now we publish
only the user-ids as specified on the command line.

(cherry picked from commit 0a151548b623813d48516a4629b7c3884875a384)

Details

Provenance
wernerAuthored on Oct 7 2022, 3:59 PM
Parents
rGb18b9b972e2d: wkd: Silence gpg-wks-client diagnostics from gpg.
Branches
Unknown
Tags
Unknown
Tasks
T6224: Mirror internal LDAP to a WKD