aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-03-14 16:00:10 +0000
committerWerner Koch <[email protected]>2014-03-14 16:00:10 +0000
commit59b4fb5f4927908af06bb80ecd86adbf6e54ba14 (patch)
tree0dc9172d845c1de1124bdcbcb87ccfdd51fed529 /common/http.h
parentdirmngr: Do not use brackets around legacy IP addresses. (diff)
downloadgnupg-59b4fb5f4927908af06bb80ecd86adbf6e54ba14.tar.gz
gnupg-59b4fb5f4927908af06bb80ecd86adbf6e54ba14.zip
dirmngr: Make use of IPv4 and IPV6 more explicit.
* common/http.c (connect_server): Handle the new flags. * common/http.h (HTTP_FLAG_IGNORE_IPv4, HTTP_FLAG_IGNORE_IPv4): New. * dirmngr/ks-engine-hkp.c (map_host): Add arg r_httpflags. (make_host_part): Ditto. (send_request): Add arg httpflags. (ks_hkp_search, ks_hkp_get, ks_hkp_put): Handle httpflags.
Diffstat (limited to 'common/http.h')
-rw-r--r--common/http.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/common/http.h b/common/http.h
index bea9f07f1..224128b94 100644
--- a/common/http.h
+++ b/common/http.h
@@ -74,10 +74,12 @@ http_req_t;
/* We put the flag values into an enum, so that gdb can display them. */
enum
{
- HTTP_FLAG_TRY_PROXY = 1,
- HTTP_FLAG_SHUTDOWN = 2,
- HTTP_FLAG_LOG_RESP = 8,
- HTTP_FLAG_IGNORE_CL = 32
+ HTTP_FLAG_TRY_PROXY = 1, /* Try to use a proxy. */
+ HTTP_FLAG_SHUTDOWN = 2, /* Close sending end after the request. */
+ HTTP_FLAG_LOG_RESP = 8, /* Log the server respone. */
+ HTTP_FLAG_IGNORE_CL = 32, /* Ignore content-length. */
+ HTTP_FLAG_IGNORE_IPv4 = 64, /* Do not use IPv4. */
+ HTTP_FLAG_IGNORE_IPv6 = 128 /* Do not use IPv6. */
};
struct http_context_s;