summaryrefslogtreecommitdiff
path: root/src/or/connection_or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-09-16 18:32:11 -0400
committerNick Mathewson <nickm@torproject.org>2011-10-10 23:14:17 -0400
commit3f22ec179c6f90b9c2af9483e2c8000132d2f33e (patch)
treeecf6d59933542aa8c840ad89cb5fb86ec881140c /src/or/connection_or.h
parent6c7f28454e80da733e3bfb4f71101faf09b7ac24 (diff)
downloadtor-3f22ec179c6f90b9c2af9483e2c8000132d2f33e.tar.gz
tor-3f22ec179c6f90b9c2af9483e2c8000132d2f33e.zip
New functions to record digests of cells during v3 handshake
Also, free all of the new fields in or_handshake_state_t
Diffstat (limited to 'src/or/connection_or.h')
-rw-r--r--src/or/connection_or.h7
1 files changed, 7 insertions, 0 deletions
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);