From 3f22ec179c6f90b9c2af9483e2c8000132d2f33e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 16 Sep 2011 18:32:11 -0400 Subject: New functions to record digests of cells during v3 handshake Also, free all of the new fields in or_handshake_state_t --- src/or/connection_or.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/or/connection_or.h') diff --git a/src/or/connection_or.h b/src/or/connection_or.h index ba441c45df..a4d3be0922 100644 --- a/src/or/connection_or.h +++ b/src/or/connection_or.h @@ -42,6 +42,13 @@ int connection_tls_start_handshake(or_connection_t *conn, int receiving); int connection_tls_continue_handshake(or_connection_t *conn); void or_handshake_state_free(or_handshake_state_t *state); +void or_handshake_state_record_cell(or_handshake_state_t *state, + const cell_t *cell, + int incoming); +void or_handshake_state_record_var_cell(or_handshake_state_t *state, + const var_cell_t *cell, + int incoming); + int connection_or_set_state_open(or_connection_t *conn); void connection_or_write_cell_to_buf(const cell_t *cell, or_connection_t *conn); -- cgit v1.2.3-54-g00ecf