diff options
author | Werner Koch <wk@gnupg.org> | 2017-04-03 20:56:12 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-04-03 20:56:12 +0200 |
commit | 3533b854408fa93734742b2ee12b62aa0d55ff28 (patch) | |
tree | 80e6b337fac1b54d7d3759913ff5aa931e4cdbd6 /dirmngr/crlfetch.c | |
parent | dirmngr,w32: Silence the 'certificate already cached' message. (diff) | |
download | gnupg2-3533b854408fa93734742b2ee12b62aa0d55ff28.tar.xz gnupg2-3533b854408fa93734742b2ee12b62aa0d55ff28.zip |
dirmngr: New option --disable-ipv6
* dirmngr/dirmngr.h (struct opt): Add field 'disable_ipv6'.
* dirmngr/dirmngr.c (oDisableIPv6): New const.
(opts): New option --disable-ipv6.
(parse_rereadable_options): Set that option.
* dirmngr/dns-stuff.c (opt_disable_ipv6): New var.
(set_dns_disable_ipv6): New.
(resolve_name_standard): Make use of it.
* dirmngr/ks-engine-finger.c (ks_finger_fetch): Take care of
OPT.DISABLE_IPV6.
* dirmngr/ks-engine-hkp.c (map_host): Ditto.
(send_request): Ditto.
* dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
* dirmngr/ocsp.c (do_ocsp_request): Ditto.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr/crlfetch.c')
-rw-r--r-- | dirmngr/crlfetch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dirmngr/crlfetch.c b/dirmngr/crlfetch.c index f7a23ffed..0892421e9 100644 --- a/dirmngr/crlfetch.c +++ b/dirmngr/crlfetch.c @@ -201,6 +201,7 @@ crl_fetch (ctrl_t ctrl, const char *url, ksba_reader_t *reader) |(DBG_LOOKUP? HTTP_FLAG_LOG_RESP:0) |(dirmngr_use_tor()? HTTP_FLAG_FORCE_TOR:0) |(opt.disable_ipv4? HTTP_FLAG_IGNORE_IPv4:0) + |(opt.disable_ipv6? HTTP_FLAG_IGNORE_IPv6:0) ), ctrl->http_proxy, NULL, NULL, NULL); |