summaryrefslogtreecommitdiff
path: root/src/feature/control/control_fmt.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-03-25 14:03:49 -0400
committerNick Mathewson <nickm@torproject.org>2019-03-25 14:06:56 -0400
commit2917ecaa970c8fabcc0e9875b1e87c0d279ab1b3 (patch)
tree48f58753adae02b1e1c8957b48d5c143e87377a5 /src/feature/control/control_fmt.h
parent4754e9058b7521967dd92092e54483cec456bb2f (diff)
downloadtor-2917ecaa970c8fabcc0e9875b1e87c0d279ab1b3.tar.gz
tor-2917ecaa970c8fabcc0e9875b1e87c0d279ab1b3.zip
Split command-handling and authentication from control.c
Diffstat (limited to 'src/feature/control/control_fmt.h')
-rw-r--r--src/feature/control/control_fmt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/control/control_fmt.h b/src/feature/control/control_fmt.h
index 1b4534cc3b..e7ab6608a4 100644
--- a/src/feature/control/control_fmt.h
+++ b/src/feature/control/control_fmt.h
@@ -25,5 +25,10 @@ char *circuit_describe_status_for_controller(origin_circuit_t *circ);
size_t write_escaped_data(const char *data, size_t len, char **out);
size_t read_escaped_data(const char *data, size_t len, char **out);
+const char *extract_escaped_string(const char *start, size_t in_len_max,
+ char **out, size_t *out_len);
+const char *decode_escaped_string(const char *start, size_t in_len_max,
+ char **out, size_t *out_len);
+void send_control_done(control_connection_t *conn);
#endif /* !defined(TOR_CONTROL_FMT_H) */