aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_common.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2016-11-07 10:49:10 -0500
committerDavid Goulet <dgoulet@torproject.org>2016-11-07 10:49:10 -0500
commit3ee9a6d6fdde3a05620e6c0e14eea6a1957616f4 (patch)
tree1062320838ca64b95f49f4871c38b6b429563a31 /src/or/hs_common.c
parent800dff13080111b1ce1c2f5e28d9ba326299f62a (diff)
downloadtor-3ee9a6d6fdde3a05620e6c0e14eea6a1957616f4.tar.gz
tor-3ee9a6d6fdde3a05620e6c0e14eea6a1957616f4.zip
hs: Remove EnableOnionServiceV3 consensus param
As of #19899, we decided to allow any relay understanding the onion service version 3 protocol to be able to use it. The service and client will be the one controlled by a consensus parameter (different one for both of them) but if you are a relay and you can understand a protocol, basically you should use the feature. Closes #19899 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_common.c')
-rw-r--r--src/or/hs_common.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/or/hs_common.c b/src/or/hs_common.c
index b7ee888842..07fd27445f 100644
--- a/src/or/hs_common.c
+++ b/src/or/hs_common.c
@@ -264,18 +264,3 @@ rend_data_get_pk_digest(const rend_data_t *rend_data, size_t *len_out)
tor_assert(0);
}
}
-
-/* Return true iff the Onion Services protocol version 3 is enabled. This only
- * considers the consensus parameter. If the parameter is not found, the
- * default is that it's enabled. */
-int
-hs_v3_protocol_is_enabled(void)
-{
- /* This consensus param controls if the the onion services version 3 is
- * enabled or not which is the first version of the next generation
- * (proposal 224). If this option is set to 0, the tor daemon won't support
- * the protocol as either a relay, directory, service or client. By default,
- * it's enabled if the parameter is not found. */
- return networkstatus_get_param(NULL, "EnableOnionServicesV3", 1, 0, 1);
-}
-