summaryrefslogtreecommitdiff
path: root/src/or/buffers.h
diff options
context:
space:
mode:
authorRavi Chandra Padmala <neenaoffline@gmail.com>2012-02-21 08:52:03 +0530
committerNick Mathewson <nickm@torproject.org>2017-06-21 10:34:26 -0400
commit417d778652770a8f4b0b6f8e5d8e139e193b8b1e (patch)
tree18b468cfcda2991224a463850becf2de6f0447a9 /src/or/buffers.h
parent884c0ffe3b4266e66adbd6bb914c3b3b00401acb (diff)
downloadtor-417d778652770a8f4b0b6f8e5d8e139e193b8b1e.tar.gz
tor-417d778652770a8f4b0b6f8e5d8e139e193b8b1e.zip
Respond meaningfully to HTTP requests on the control port. Fix #1667
(Squashed with bufferevents portions removed, by nickm)
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r--src/or/buffers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h
index 23b58a571a..5650beabc6 100644
--- a/src/or/buffers.h
+++ b/src/or/buffers.h
@@ -53,6 +53,8 @@ int fetch_from_buf_socks_client(buf_t *buf, int state, char **reason);
int fetch_from_buf_line(buf_t *buf, char *data_out, size_t *data_len);
int peek_buf_has_control0_command(buf_t *buf);
+int peek_buf_startswith(buf_t *buf, const char *cmd);
+int peek_buf_has_http_command(buf_t *buf);
int fetch_ext_or_command_from_buf(buf_t *buf, ext_or_cmd_t **out);