mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
f986b23e13
commit
b4bc1c8b10
3 changed files with 22 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue