diff options
author | David Goulet <dgoulet@torproject.org> | 2018-07-09 16:11:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-28 16:01:57 -0400 |
commit | 4976eca8261015dd2a214c4f4722dcdbcfed9c64 (patch) | |
tree | d7d46d07510bbedc1846bf633691ed43ab8bdbb1 /src/feature/rend/rendclient.c | |
parent | f8766e887879214297175b0548e3ba4235879df3 (diff) | |
download | tor-4976eca8261015dd2a214c4f4722dcdbcfed9c64.tar.gz tor-4976eca8261015dd2a214c4f4722dcdbcfed9c64.zip |
hs: Render obsolete Tor2web
Remove support for Tor2web in the code and build system. At this commit, tor
doesn't have Tor2web support anymore.
Ref: https://lists.torproject.org/pipermail/tor-dev/2018-July/013295.html
Close #26367
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/rend/rendclient.c')
-rw-r--r-- | src/feature/rend/rendclient.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/feature/rend/rendclient.c b/src/feature/rend/rendclient.c index 9f62156eb9..0b7d602d98 100644 --- a/src/feature/rend/rendclient.c +++ b/src/feature/rend/rendclient.c @@ -449,12 +449,7 @@ directory_get_from_hs_dir(const char *desc_id, char desc_id_base32[REND_DESC_ID_V2_LEN_BASE32 + 1]; char descriptor_cookie_base64[3*REND_DESC_COOKIE_LEN_BASE64]; const rend_data_v2_t *rend_data; -#ifdef ENABLE_TOR2WEB_MODE - const int tor2web_mode = get_options()->Tor2webMode; - const int how_to_fetch = tor2web_mode ? DIRIND_ONEHOP : DIRIND_ANONYMOUS; -#else const int how_to_fetch = DIRIND_ANONYMOUS; -#endif /* defined(ENABLE_TOR2WEB_MODE) */ tor_assert(desc_id); tor_assert(rend_query); @@ -1226,15 +1221,12 @@ rend_parse_service_authorization(const or_options_t *options, /* Can Tor client code make direct (non-anonymous) connections to introduction * or rendezvous points? - * Returns true if tor was compiled with NON_ANONYMOUS_MODE_ENABLED, and is - * configured in Tor2web mode. */ + * Returns true if tor was compiled with NON_ANONYMOUS_MODE_ENABLED. */ int rend_client_allow_non_anonymous_connection(const or_options_t *options) { - /* Tor2web support needs to be compiled in to a tor binary. */ #ifdef NON_ANONYMOUS_MODE_ENABLED - /* Tor2web */ - return options->Tor2webMode ? 1 : 0; + return 1; #else (void)options; return 0; @@ -1247,9 +1239,7 @@ int rend_client_non_anonymous_mode_enabled(const or_options_t *options) { (void)options; - /* Tor2web support needs to be compiled in to a tor binary. */ #ifdef NON_ANONYMOUS_MODE_ENABLED - /* Tor2web */ return 1; #else return 0; |