aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/relay.h
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2018-08-23 20:31:16 +0000
committerGeorge Kadianakis <desnacked@riseup.net>2019-01-02 15:12:35 +0200
commitd62340018c8d363ea67ef01dc4a740e47fce2a10 (patch)
tree95ab4e3ae6070955f9c5a863c141d15382f89458 /src/core/or/relay.h
parent9aaf72ea58bd52d0af694411d16194ea15d612d1 (diff)
downloadtor-d62340018c8d363ea67ef01dc4a740e47fce2a10.tar.gz
tor-d62340018c8d363ea67ef01dc4a740e47fce2a10.zip
Add relay crypto mock points for tests.
Co-authored-by: George Kadianakis <desnacked@riseup.net>
Diffstat (limited to 'src/core/or/relay.h')
-rw-r--r--src/core/or/relay.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/or/relay.h b/src/core/or/relay.h
index db7f17b96c..e84727e373 100644
--- a/src/core/or/relay.h
+++ b/src/core/or/relay.h
@@ -78,6 +78,11 @@ void destroy_cell_queue_append(destroy_cell_queue_t *queue,
void channel_unlink_all_circuits(channel_t *chan, smartlist_t *detached_out);
MOCK_DECL(int, channel_flush_from_first_active_circuit,
(channel_t *chan, int max));
+MOCK_DECL(int, circuit_package_relay_cell, (cell_t *cell, circuit_t *circ,
+ cell_direction_t cell_direction,
+ crypt_path_t *layer_hint, streamid_t on_stream,
+ const char *filename, int lineno));
+
void update_circuit_on_cmux_(circuit_t *circ, cell_direction_t direction,
const char *file, int lineno);
#define update_circuit_on_cmux(circ, direction) \