diff options
author | teor <teor@torproject.org> | 2020-04-01 21:37:47 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-09 11:00:04 +1000 |
commit | b10b2875898887f74e1018343c2c25ac376ff335 (patch) | |
tree | e67902cfab2adf2ba1233f5ec2df6475285a78df /src/feature/relay/circuitbuild_relay.h | |
parent | 44f634d0be41200fcaa99eb48599b4a0bb52f43a (diff) | |
download | tor-b10b2875898887f74e1018343c2c25ac376ff335.tar.gz tor-b10b2875898887f74e1018343c2c25ac376ff335.zip |
relay: Make circuitbuild functions STATIC
Allow the circuitbuild_relay functions to be accessed by the unit tests.
Part of 33633.
Diffstat (limited to 'src/feature/relay/circuitbuild_relay.h')
-rw-r--r-- | src/feature/relay/circuitbuild_relay.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/feature/relay/circuitbuild_relay.h b/src/feature/relay/circuitbuild_relay.h index 890b40dc20..19dbc4b943 100644 --- a/src/feature/relay/circuitbuild_relay.h +++ b/src/feature/relay/circuitbuild_relay.h @@ -22,6 +22,7 @@ struct created_cell_t; struct circuit_t; struct or_circuit_t; +struct extend_cell_t; /* Log a protocol warning about getting an extend cell on a client. */ static inline void @@ -68,4 +69,16 @@ onionskin_answer(struct or_circuit_t *circ, #endif +#ifdef TOR_UNIT_TESTS + +STATIC int circuit_extend_state_valid_helper(const struct circuit_t *circ); +STATIC int circuit_extend_add_ed25519_helper(struct extend_cell_t *ec); +STATIC int circuit_extend_lspec_valid_helper(const struct extend_cell_t *ec, + const struct circuit_t *circ); +STATIC void circuit_open_connection_for_extend(const struct extend_cell_t *ec, + struct circuit_t *circ, + int should_launch); + +#endif + #endif /* !defined(TOR_FEATURE_RELAY_CIRCUITBUILD_RELAY_H) */ |