diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-08 12:10:06 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-24 09:18:56 -0500 |
commit | 818b44cc7c22696a3206229e4e15eeb9f130e2c0 (patch) | |
tree | bf77c5a4144eaeef0a3be86a7d6f753e1dc30266 /src/or/entrynodes.h | |
parent | fae4d3d9250ecc6cd34a70b642009bf8923a51f4 (diff) | |
download | tor-818b44cc7c22696a3206229e4e15eeb9f130e2c0.tar.gz tor-818b44cc7c22696a3206229e4e15eeb9f130e2c0.zip |
Repair the (deprecated, ugly) DROPGUARDS controller function.
This actually is much easier to write now that guard_selection_t is
first-class.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r-- | src/or/entrynodes.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index 6bbdff1e66..bd501d001f 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -170,7 +170,8 @@ struct entry_guard_t { * we saw them in the state, even if we don't understand them. */ char *extra_state_fields; - /** Backpointer to the guard selection that this guard belongs to. */ + /** Backpointer to the guard selection that this guard belongs to. + * The entry_guard_t must never outlive its guard_selection. */ guard_selection_t *in_selection; /**@}*/ @@ -548,6 +549,9 @@ STATIC int entry_guard_has_higher_priority(entry_guard_t *a, entry_guard_t *b); STATIC char *getinfo_helper_format_single_entry_guard(const entry_guard_t *e); #endif +void remove_all_entry_guards_for_guard_selection(guard_selection_t *gs); +void remove_all_entry_guards(void); + struct bridge_info_t; void entry_guard_learned_bridge_identity(const tor_addr_port_t *addrport, const uint8_t *rsa_id_digest); |