summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-01-24 09:01:25 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-24 09:01:25 -0500
commitfae4d3d9250ecc6cd34a70b642009bf8923a51f4 (patch)
tree5f5e1ee154cef6ec7e2937c9008cc283c55e41b5 /src/or/config.c
parentd95d9889463fcab0eac742b1634d64f1e8b4328a (diff)
parentb047d97b281ef7ab9a27069b876bceca3d5a002e (diff)
downloadtor-fae4d3d9250ecc6cd34a70b642009bf8923a51f4.tar.gz
tor-fae4d3d9250ecc6cd34a70b642009bf8923a51f4.zip
Merge remote-tracking branch 'asn/remove_legacy_guards'
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 7e380b9df7..e5078ad656 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -317,9 +317,6 @@ static config_var_t option_vars_[] = {
V(ExtraInfoStatistics, BOOL, "1"),
V(ExtendByEd25519ID, AUTOBOOL, "auto"),
V(FallbackDir, LINELIST, NULL),
- /* XXXX prop271 -- this has an ugly name to remind us to remove it. */
- VAR("UseDeprecatedGuardAlgorithm_", BOOL,
- UseDeprecatedGuardAlgorithm, "0"),
V(UseDefaultFallbackDirs, BOOL, "1"),
@@ -1587,7 +1584,6 @@ options_transition_affects_guards(const or_options_t *old,
return
(old->UseEntryGuards != new->UseEntryGuards ||
- old->UseDeprecatedGuardAlgorithm != new->UseDeprecatedGuardAlgorithm ||
old->UseBridges != new->UseBridges ||
old->UseEntryGuards != new->UseEntryGuards ||
old->ClientUseIPv4 != new->ClientUseIPv4 ||
@@ -2106,15 +2102,6 @@ options_act(const or_options_t *old_options)
!options->BridgeAuthoritativeDir)
rep_hist_desc_stats_term();
- /* Check if we need to parse and add the EntryNodes config option. */
-#ifdef ENABLE_LEGACY_GUARD_ALGORITHM
- if (options->EntryNodes &&
- (!old_options ||
- !routerset_equal(old_options->EntryNodes,options->EntryNodes) ||
- !routerset_equal(old_options->ExcludeNodes,options->ExcludeNodes)))
- entry_nodes_should_be_added();
-#endif
-
/* Since our options changed, we might need to regenerate and upload our
* server descriptor.
*/
@@ -3018,13 +3005,6 @@ options_validate(or_options_t *old_options, or_options_t *options,
warn_about_relative_paths(options);
-#ifndef ENABLE_LEGACY_GUARD_ALGORITHM
- if (options->UseDeprecatedGuardAlgorithm) {
- log_warn(LD_CONFIG, "DeprecatedGuardAlgorithm not supported.");
- return -1;
- }
-#endif
-
if (server_mode(options) &&
(!strcmpstart(uname, "Windows 95") ||
!strcmpstart(uname, "Windows 98") ||