aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/http.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/http.c b/common/http.c
index c2cac169d..be5bd308a 100644
--- a/common/http.c
+++ b/common/http.c
@@ -747,6 +747,12 @@ http_raw_connect (http_t *r_hd, const char *server, unsigned short port,
*r_hd = NULL;
+ if ((flags & HTTP_FLAG_FORCE_TOR))
+ {
+ log_error ("TOR support is not yet available\n");
+ return gpg_err_make (default_errsource, GPG_ERR_NOT_IMPLEMENTED);
+ }
+
/* Create the handle. */
hd = xtrycalloc (1, sizeof *hd);
if (!hd)
@@ -1452,6 +1458,12 @@ send_request (http_t hd, const char *httphost, const char *auth,
}
#endif /*USE_TLS*/
+ if ((hd->flags & HTTP_FLAG_FORCE_TOR))
+ {
+ log_error ("TOR support is not yet available\n");
+ return gpg_err_make (default_errsource, GPG_ERR_NOT_IMPLEMENTED);
+ }
+
server = *hd->uri->host ? hd->uri->host : "localhost";
port = hd->uri->port ? hd->uri->port : 80;