diff options
author | Werner Koch <[email protected]> | 2015-09-18 13:58:26 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-09-18 14:21:30 +0000 |
commit | b4bc1c8b10c7a794fa108678b80f76366a65c47d (patch) | |
tree | 6a6d0548876822bba89b19df36ad4d8fa38ef72a /common/http.h | |
parent | po: Update Japanese translation. (diff) | |
download | gnupg-b4bc1c8b10c7a794fa108678b80f76366a65c47d.tar.gz gnupg-b4bc1c8b10c7a794fa108678b80f76366a65c47d.zip |
http: Add flag to force use of TOR (part 1)
* common/http.h (HTTP_FLAG_FORCE_TOR): New.
* common/http.c (http_raw_connect, send_request): Detect flag and
return an error for now.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/http.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/http.h b/common/http.h index fcab12a23..73a423cd5 100644 --- a/common/http.h +++ b/common/http.h @@ -78,8 +78,9 @@ enum { HTTP_FLAG_TRY_PROXY = 1, /* Try to use a proxy. */ HTTP_FLAG_SHUTDOWN = 2, /* Close sending end after the request. */ + HTTP_FLAG_FORCE_TOR = 4, /* Force a TOR connection. */ HTTP_FLAG_LOG_RESP = 8, /* Log the server respone. */ - HTTP_FLAG_FORCE_TLS = 16, /* Force the use opf TLS. */ + HTTP_FLAG_FORCE_TLS = 16, /* Force the use of TLS. */ 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. */ |