dirmngr: New option --ldapserver
* dirmngr/dirmngr.c (opts): Add option --ldapserver. (ldapserver_list_needs_reset): New var. (parse_rereadable_options): Implement option. (main): Ignore dirmngr_ldapservers.conf if no --ldapserver is used. * dirmngr/server.c (cmd_ldapserver): Add option --clear and list configured servers if none are given.
This option allows to specify LDAP keyserver in dirmngr instead of
using gpgsm.conf.
(cherry picked from commit ff17aee5d10c8c5ab902253fb4332001c3fc3701)
- Signed-off-by: Werner Koch <wk@gnupg.org>