diff options
author | Werner Koch <wk@gnupg.org> | 2022-10-07 17:35:44 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-10-07 17:35:44 +0200 |
commit | b0b4e24c4fa80c10d310a229f5a0c65a57ad9393 (patch) | |
tree | fae1c53e3e9735334b6543f5c8f6858f49d378b7 /doc/wks.texi | |
parent | wkd: Restrict gpg-wks-client --mirror to the given domains. (diff) | |
download | gnupg2-b0b4e24c4fa80c10d310a229f5a0c65a57ad9393.tar.xz gnupg2-b0b4e24c4fa80c10d310a229f5a0c65a57ad9393.zip |
wkd: Implement --blacklist option for gpg-wks-client
* tools/gpg-wks-client.c (blacklist_array, blacklist_array_len): New.
(parse_arguments): Install blacklist.
(read_file): New.
(cmp_blacklist, add_blacklist, is_in_blacklist): New.
(mirror_one_key): Check list.
* tools/gpg-wks.h (opt): Remove field blacklist.
--
GnuPG-bug-id: 6224
Diffstat (limited to 'doc/wks.texi')
-rw-r--r-- | doc/wks.texi | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/doc/wks.texi b/doc/wks.texi index 48e534b7d..73934fb54 100644 --- a/doc/wks.texi +++ b/doc/wks.texi @@ -53,6 +53,26 @@ Directory. .B gpg-wks-client .RI [ options ] .B \-\-read +.br +.B gpg-wks-client +.RI [ options ] +.B \-\-mirror +.br +.B gpg-wks-client +.RI [ options ] +.B \-\-install-key +.br +.B gpg-wks-client +.RI [ options ] +.B \-\-remove-key +.br +.B gpg-wks-client +.RI [ options ] +.B \-\-print-wkd-hash +.br +.B gpg-wks-client +.RI [ options ] +.B \-\-print-wkd-url @end ifset @mansect description @@ -101,6 +121,13 @@ fingerprint and the mailbox separated by a space. The command @option{--remove-key} removes a key from that directory, its only argument is a user-id. +The command @option{--mirror} is similar to @option{--install-key} but +takes the keys from the the LDAP server configured for Dirmngr. If no +arguments are given all keys and user ids are installed. If arguments +are given they are taken as domain names to limit the to be installed +keys. The option @option{--blacklist} may be used to further limit +the to be installed keys. + The command @option{--print-wkd-hash} prints the WKD user-id identifiers and the corresponding mailboxes from the user-ids given on the command line or via stdin (one user-id per line). @@ -175,8 +202,16 @@ easily get the return code of the process. @itemx --directory @var{dir} @opindex directory Use @var{dir} as top level directory for the commands -@option{--install-key} and @option{--remove-key}. The default is -@file{openpgpkey}. +@option{--mirror}, @option{--install-key} and @option{--remove-key}. +The default is @file{openpgpkey}. + + +@item --blacklist @var{file} +@opindex blacklist +This option is used to exclude certain mail addresses from a mirror +operation. The format of @var{file} is one mail address (just the +addrspec, e.g. "postel@@isi.edu") per line. Empty lines and lines +starting with a '#' are ignored. @item --verbose @opindex verbose |