diff options
author | Werner Koch <wk@gnupg.org> | 2016-01-21 11:49:27 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-01-21 11:49:27 +0100 |
commit | 09117e769a093467cb47154f36d7dda613313e33 (patch) | |
tree | 91337ec1aa1669180aa685660caf247fef6d3fa5 /g10/gpgv.c | |
parent | gpg: Silence message about ignoring revoked user ids. (diff) | |
download | gnupg2-09117e769a093467cb47154f36d7dda613313e33.tar.xz gnupg2-09117e769a093467cb47154f36d7dda613313e33.zip |
gpg: Make --auto-key-retrieve work with dirmngr configured server.
* g10/call-dirmngr.c (gpg_dirmngr_ks_list): Make R_KEYSERVER optional.
* g10/keyserver.c (keyserver_any_configured): New.
(keyserver_put): Remove arg keyserver because this will always receive
opt.keyserver which is anyway used when connecting dirmngr. Do not
check opt.keyserver.
(keyserver_import_cert): Replace opt.keyserver by
keyserver_any_configured.
* g10/mainproc.c (check_sig_and_print): Ditto.
* g10/import.c (revocation_present): Ditto.
* g10/getkey.c (get_pubkey_byname): Ditto.
* g10/gpgv.c (keyserver_any_configured): Add stub.
* g10/test-stubs.c (keyserver_any_configured): Add stub.
--
The keyserver should be configured in dirmngr.conf and thus we can't
use opt.keyserver in gpg to decide whether a keyserver has been
configured.
GnuPG-bug-id: 2147
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/gpgv.c')
-rw-r--r-- | g10/gpgv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/gpgv.c b/g10/gpgv.c index 993275671..19a2ff6c7 100644 --- a/g10/gpgv.c +++ b/g10/gpgv.c @@ -345,6 +345,13 @@ keyserver_match (struct keyserver_spec *spec) } int +keyserver_any_configured (ctrl_t ctrl) +{ + (void)ctrl; + return 0; +} + +int keyserver_import_keyid (u32 *keyid, void *dummy) { (void)keyid; |