dirmngr: Add option --keyserver.
authorWerner Koch <wk@gnupg.org>
Mon, 5 Oct 2015 15:44:20 +0000 (17:44 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 5 Oct 2015 15:44:20 +0000 (17:44 +0200)
commita48e6de603c3a312f02b1b5fdb813032eeae9074
tree06e8dcee38c0cdf64ac914d430a4bcde0b4baca6
parent438730323a5d9bbf8dd5cd60d479b6c03f8721d0
dirmngr: Add option --keyserver.

* dirmngr/dirmngr.c (oKeyServer): New.
(opts): Add "keyserver".
(parse_rereadable_options): Parse that options
(main): Add option to the gpgconf list.
* dirmngr/dirmngr.h (opt): Add field "keyserver".
* dirmngr/server.c (ensure_keyserver): New.
(make_keyserver_item): New.  Factored out from
(cmd_keyserver): here.  Call ensure_keyserver.
(cmd_ks_search): Call ensure_keyserver.
(cmd_ks_get): Ditto.
(cmd_ks_fetch): Ditto.
(cmd_ks_put): Ditto.
--

This option specifies the keyserver to be used if the client does not
set another keyserver.  We want to fade out the use of --keyserver in
gpg.conf in favor of specifying it here.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/dirmngr.c
dirmngr/dirmngr.h
dirmngr/server.c
doc/dirmngr.texi