diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-04-09 17:57:04 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-05-03 18:15:26 +0300 |
commit | 0ed5c6edf9c905276d462ed2402568216ecb1dee (patch) | |
tree | 63c2c46dd962acbe517acfa1b2147114ced74549 /src/core/or/circuitbuild.h | |
parent | 58fbbc1409f65bbb65c9da03a035a5767820146b (diff) | |
download | tor-0ed5c6edf9c905276d462ed2402568216ecb1dee.tar.gz tor-0ed5c6edf9c905276d462ed2402568216ecb1dee.zip |
Hiding crypt_path_t: Move some more crypt_path-specific functions.
- Move test-only cpath_get_n_hops() to crypt_path.c.
- Move onion_next_hop_in_cpath() and rename to cpath_get_next_non_open_hop().
The latter function was directly accessing cpath->state, and it's a first step
at hiding ->state.
Diffstat (limited to 'src/core/or/circuitbuild.h')
-rw-r--r-- | src/core/or/circuitbuild.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/or/circuitbuild.h b/src/core/or/circuitbuild.h index f6403955ba..ad7d032cd4 100644 --- a/src/core/or/circuitbuild.h +++ b/src/core/or/circuitbuild.h @@ -89,11 +89,6 @@ STATIC int onion_pick_cpath_exit(origin_circuit_t *circ, extend_info_t *exit_ei, int is_hs_v3_rp_circuit); -#if defined(TOR_UNIT_TESTS) -unsigned int cpath_get_n_hops(crypt_path_t **head_ptr); - -#endif /* defined(TOR_UNIT_TESTS) */ - #endif /* defined(CIRCUITBUILD_PRIVATE) */ #endif /* !defined(TOR_CIRCUITBUILD_H) */ |