aboutsummaryrefslogtreecommitdiff
path: root/src/or/ext_orport.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2012-12-05 19:18:18 +0200
committerNick Mathewson <nickm@torproject.org>2013-07-18 14:59:56 -0400
commitd8f74cc439ad025cc52aea8495705096d6538029 (patch)
treebbd95cd281b56d257aaacad78fc46f82faee992d /src/or/ext_orport.h
parent2207525a69702a13ad0b3c0346b8c3fdb90824c0 (diff)
downloadtor-d8f74cc439ad025cc52aea8495705096d6538029.tar
tor-d8f74cc439ad025cc52aea8495705096d6538029.tar.gz
Move Extended ORPort code to its own module.
Move the code from the connection_or module to ext_orport. This commit only moves code: it shouldn't modify anything.
Diffstat (limited to 'src/or/ext_orport.h')
-rw-r--r--src/or/ext_orport.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/ext_orport.h b/src/or/ext_orport.h
new file mode 100644
index 000000000..fbd7ed653
--- /dev/null
+++ b/src/or/ext_orport.h
@@ -0,0 +1,14 @@
+int connection_ext_or_start_auth(or_connection_t *or_conn);
+
+ext_or_cmd_t *ext_or_cmd_new(uint16_t len);
+void ext_or_cmd_free(ext_or_cmd_t *cmd);
+void connection_or_set_ext_or_identifier(or_connection_t *conn);
+void connection_or_remove_from_ext_or_id_map(or_connection_t *conn);
+void connection_or_clear_ext_or_id_map(void);
+
+int connection_ext_or_finished_flushing(or_connection_t *conn);
+int connection_ext_or_process_inbuf(or_connection_t *or_conn);
+
+int init_ext_or_auth_cookie_authentication(int is_enabled);
+char *get_ext_or_auth_cookie_file(void);
+