aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitpadding.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-07-23 13:17:37 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-08-05 18:03:23 +0300
commitce477da8a7969964810fb16502073d5f34e58692 (patch)
tree8c285de46394cecc6ab88b099c70cc2848a9b5d0 /src/core/or/circuitpadding.h
parent7a032c5e4838651b62b99938d56e94b4a6fc6197 (diff)
downloadtor-ce477da8a7969964810fb16502073d5f34e58692.tar.gz
tor-ce477da8a7969964810fb16502073d5f34e58692.zip
Ignore regular cells in padding circuits.
Padding circuits were regular cells that got closed before their padding machine could finish. This means that they can still receive regular cells from their past life, but they have no way or reason to answer them anymore. Hence let's ignore them before they even get to the proper subsystems.
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r--src/core/or/circuitpadding.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h
index fc2e595c0a..e9eb32c618 100644
--- a/src/core/or/circuitpadding.h
+++ b/src/core/or/circuitpadding.h
@@ -734,6 +734,10 @@ bool circpad_padding_negotiated(struct circuit_t *circ,
circpad_purpose_mask_t circpad_circ_purpose_to_mask(uint8_t circ_purpose);
+int circpad_check_received_cell(cell_t *cell, circuit_t *circ,
+ crypt_path_t *layer_hint,
+ const relay_header_t *rh);
+
MOCK_DECL(circpad_decision_t,
circpad_machine_schedule_padding,(circpad_machine_runtime_t *));