diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2018-04-20 18:58:15 +0000 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2018-04-28 01:26:50 +0300 |
commit | d634c1ba6b3b5b4773ee2bc7095a004818431541 (patch) | |
tree | 9126904cf95136aaf466c8f124715dc3adcc6e37 /src/or/entrynodes.h | |
parent | d8ac7d557c0af199d21639a52a8c8c9dd201f555 (diff) | |
download | tor-d634c1ba6b3b5b4773ee2bc7095a004818431541.tar.gz tor-d634c1ba6b3b5b4773ee2bc7095a004818431541.zip |
Bug 25870: Allow the last hop in a vanguard circuit to be our guard.
The last hop in vanguard circuits can be an RP/IP/HSDir.
Since vanguard circuits are at least 3 hops (sometimes 4) before this node,
this change will not cause A - B - A paths.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r-- | src/or/entrynodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index d562498313..e8c91da41b 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -322,6 +322,7 @@ struct circuit_guard_state_t { /* Common entry points for old and new guard code */ int guards_update_all(void); const node_t *guards_choose_guard(cpath_build_state_t *state, + uint8_t purpose, circuit_guard_state_t **guard_state_out); const node_t *guards_choose_dirguard(uint8_t dir_purpose, circuit_guard_state_t **guard_state_out); |