summaryrefslogtreecommitdiff
path: root/src/or/channeltls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-10-08 15:39:34 -0400
committerNick Mathewson <nickm@torproject.org>2015-05-28 10:41:50 -0400
commitb75361c5ed717cde787c1b4f36e8fb51ccfddc2b (patch)
treeab7eabd383a6b83ffcbdd6bf2f6e19d222ae4681 /src/or/channeltls.h
parentdf05e195ee64d7ed1b5a1b5d74c5868683788ba2 (diff)
downloadtor-b75361c5ed717cde787c1b4f36e8fb51ccfddc2b.tar.gz
tor-b75361c5ed717cde787c1b4f36e8fb51ccfddc2b.zip
Start testing cell encoders/processers for the v3 handshake.
An earlier version of these tests was broken; now they're a nicer, more robust, more black-box set of tests. The key is to have each test check a handshake message that is wrong in _one_ way.
Diffstat (limited to 'src/or/channeltls.h')
-rw-r--r--src/or/channeltls.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/channeltls.h b/src/or/channeltls.h
index 507429420b..69f6e629c4 100644
--- a/src/or/channeltls.h
+++ b/src/or/channeltls.h
@@ -52,5 +52,13 @@ void channel_tls_update_marks(or_connection_t *conn);
/* Cleanup at shutdown */
void channel_tls_free_all(void);
+#ifdef CHANNELTLS_PRIVATE
+STATIC void channel_tls_process_certs_cell(var_cell_t *cell,
+ channel_tls_t *tlschan);
+STATIC void channel_tls_process_auth_challenge_cell(var_cell_t *cell,
+ channel_tls_t *tlschan);
+STATIC void channel_tls_common_init(channel_tls_t *tlschan);
+#endif
+
#endif