summaryrefslogtreecommitdiff
path: root/src/feature/rend/rendclient.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-07-12 09:21:52 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-28 16:01:57 -0400
commitf661d856fd83cb978320bf55ba5dfdee55a666b8 (patch)
tree019a18c86d19e5ebd87cd739fa71684f646b973f /src/feature/rend/rendclient.c
parent67cd67611c7d0756d04eab4a04ed913bf3421ae1 (diff)
downloadtor-f661d856fd83cb978320bf55ba5dfdee55a666b8.tar.gz
tor-f661d856fd83cb978320bf55ba5dfdee55a666b8.zip
hs: Remove rend_client_allow_non_anonymous_connection
By removing Tor2Web, there is no way a client can be non anonymous so we remove that function and the callsites. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/rend/rendclient.c')
-rw-r--r--src/feature/rend/rendclient.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/feature/rend/rendclient.c b/src/feature/rend/rendclient.c
index 0b7d602d98..485ffa8be3 100644
--- a/src/feature/rend/rendclient.c
+++ b/src/feature/rend/rendclient.c
@@ -1219,20 +1219,6 @@ rend_parse_service_authorization(const or_options_t *options,
return res;
}
-/* 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. */
-int
-rend_client_allow_non_anonymous_connection(const or_options_t *options)
-{
-#ifdef NON_ANONYMOUS_MODE_ENABLED
- return 1;
-#else
- (void)options;
- return 0;
-#endif /* defined(NON_ANONYMOUS_MODE_ENABLED) */
-}
-
/* At compile-time, was non-anonymous mode enabled via
* NON_ANONYMOUS_MODE_ENABLED ? */
int