aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-01-25 20:18:51 -0500
committerAndrea Shepard <andrea@torproject.org>2013-02-02 08:04:20 -0800
commita8297cdbd3324ac707165ae9922ecf478c4608a1 (patch)
tree921123e6fd3e8b2838c9256579c52f49ec084805 /src/or/entrynodes.h
parentacb43c0735af8a7cd9e8eb57bb8835b11a90a1be (diff)
downloadtor-a8297cdbd3324ac707165ae9922ecf478c4608a1.tar
tor-a8297cdbd3324ac707165ae9922ecf478c4608a1.tar.gz
use microdescriptors if *any* of our bridges can handle them
Now as we move into a future where most bridges can handle microdescs we will generally find ourselves using them, rather than holding back just because one of our bridges doesn't use them.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index e6c973c95..8ed429c8f 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -78,7 +78,8 @@ int entry_guard_register_connect_status(const char *digest, int succeeded,
int mark_relay_status, time_t now);
void entry_nodes_should_be_added(void);
int entry_list_is_constrained(const or_options_t *options);
-const node_t *choose_random_entry(cpath_build_state_t *state);
+const node_t *choose_random_entry(cpath_build_state_t *state,
+ int prefer_microdescs);
const node_t *choose_random_dirguard(dirinfo_type_t t);
int entry_guards_parse_state(or_state_t *state, int set, char **msg);
void entry_guards_update_state(or_state_t *state);
@@ -104,7 +105,7 @@ int any_pending_bridge_descriptor_fetches(void);
int entries_known_but_down(const or_options_t *options);
void entries_retry_all(const or_options_t *options);
-int any_bridges_dont_support_microdescriptors(void);
+int any_bridge_supports_microdescriptors(void);
void entry_guards_free_all(void);