diff options
author | David Goulet <dgoulet@torproject.org> | 2019-01-09 14:03:32 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-04-29 12:17:57 -0400 |
commit | 81706d84279f0a2870f8b1789403188fd933b32a (patch) | |
tree | 4873b8c0b0833815968800bd306c23819e1db4eb /src/core/or/sendme.h | |
parent | 023a70da841182fbbbe11389929c8fbbc7490365 (diff) | |
download | tor-81706d84279f0a2870f8b1789403188fd933b32a.tar.gz tor-81706d84279f0a2870f8b1789403188fd933b32a.zip |
prop289: Support SENDME v1 cell parsing
This commit makes tor able to parse and handle a SENDME version 1. It will
look at the consensus parameter "sendme_accept_min_version" to know what is
the minimum version it should look at.
IMPORTANT: At this commit, the validation of the cell is not fully
implemented. For this, we need #26839 to be completed that is to match the
SENDME digest with the last cell digest.
Closes #26841
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/sendme.h')
-rw-r--r-- | src/core/or/sendme.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/or/sendme.h b/src/core/or/sendme.h index ba01ecfaf8..033bc6ff75 100644 --- a/src/core/or/sendme.h +++ b/src/core/or/sendme.h @@ -21,7 +21,8 @@ void sendme_circuit_consider_sending(circuit_t *circ, /* Processing SENDME cell. */ int sendme_process_circuit_level(crypt_path_t *layer_hint, - circuit_t *circ, uint16_t cell_body_len); + circuit_t *circ, const uint8_t *cell_payload, + uint16_t cell_payload_len); int sendme_process_stream_level(edge_connection_t *conn, circuit_t *circ, uint16_t cell_body_len); |