gpg: Make preferred keyservers work.
authorWerner Koch <wk@gnupg.org>
Tue, 21 Apr 2015 13:36:30 +0000 (15:36 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 21 Apr 2015 13:36:30 +0000 (15:36 +0200)
commitae0d65f86413a82a40cf68e08aaeca405eee8c78
treec51cdde4b074822cce9e4f4ebe3b31f01a93af97
parentda1990bac71f6447d8ebd169c3b3b186e9f287d9
gpg: Make preferred keyservers work.

* g10/call-dirmngr.c (dirmngr_local_s): Add field set_keyservers_done.
(create_context): Move keyserver setting to ...
(open_context): here.
(clear_context_flags): New.
(gpg_dirmngr_ks_get): Add arg override_keyserver.
* g10/keyserver.c (keyserver_refresh): Improve diagnostics.
(keyserver_get_chunk): Ditto.  Pass OVERRIDE_KEYSERVER to ks_get.
--

It used to ignore the given server but showed a diagnostics that it
will be used.
g10/call-dirmngr.c
g10/call-dirmngr.h
g10/keyserver.c