diff options
author | Werner Koch <[email protected]> | 2017-01-24 15:36:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-01-24 19:52:24 +0000 |
commit | 72736af86a501592d974d46ff754a63959e183bd (patch) | |
tree | 9bbd9f0c97af90bd800ac6d734dbb6d0dfa66e17 /dirmngr/ocsp.c | |
parent | tools: Use platform abstraction for I/O. (diff) | |
download | gnupg-72736af86a501592d974d46ff754a63959e183bd.tar.gz gnupg-72736af86a501592d974d46ff754a63959e183bd.zip |
dirmngr: New option --disable-ipv4.
* dirmngr/dirmngr.c (oDisableIPv4): New const.
(opts): New option --disable-ipv4.
(parse_rereadable_options): Set that option.
* dirmngr/dirmngr.h (opt): New field 'disable_ipv4'.
* dirmngr/dns-stuff.c (opt_disable_ipv4): bew var.
(set_dns_disable_ipv4): New.
(resolve_name_standard): Skip v4 addresses when OPT_DISABLE_IPV4 is
set.
* dirmngr/ks-engine-hkp.c (map_host): Ditto.
(send_request): Pass HTTP_FLAG_IGNORE_IPv4 if opt.disable_v4 is set.
* dirmngr/crlfetch.c (crl_fetch): Ditto.
* dirmngr/ks-engine-finger.c (ks_finger_fetch): Ditto.
* dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
* dirmngr/ocsp.c (do_ocsp_request): Ditto.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/ocsp.c')
-rw-r--r-- | dirmngr/ocsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dirmngr/ocsp.c b/dirmngr/ocsp.c index 9127cf754..b46c78567 100644 --- a/dirmngr/ocsp.c +++ b/dirmngr/ocsp.c @@ -174,7 +174,8 @@ do_ocsp_request (ctrl_t ctrl, ksba_ocsp_t ocsp, gcry_md_hd_t md, once_more: err = http_open (&http, HTTP_REQ_POST, url, NULL, NULL, ((opt.honor_http_proxy? HTTP_FLAG_TRY_PROXY:0) - | (opt.use_tor? HTTP_FLAG_FORCE_TOR:0)), + | (opt.use_tor? HTTP_FLAG_FORCE_TOR:0) + | (opt.disable_ipv4? HTTP_FLAG_IGNORE_IPv4 : 0)), ctrl->http_proxy, NULL, NULL, NULL); if (err) { |