summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-29 19:02:33 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-29 19:02:33 +0000
commit91f83cfc2d380aa76fd049d13cf9fb097fecaab6 (patch)
tree701aff2f074b775754f191537f52a011fbb4e989 /doc
parent4266039c195ebf5ed38d02fbe31770fb6a03e254 (diff)
downloadtor-91f83cfc2d380aa76fd049d13cf9fb097fecaab6.tar.gz
tor-91f83cfc2d380aa76fd049d13cf9fb097fecaab6.zip
r14830@catbus: nickm | 2007-08-29 13:50:10 -0400
Make controllers accept LF as well as CRLF. Update spec to reflect this. Remove now-dead code. Make controller warning about v0 protocol more accurate. svn:r11299
Diffstat (limited to 'doc')
-rw-r--r--doc/TODO5
-rw-r--r--doc/spec/control-spec.txt4
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/TODO b/doc/TODO
index d25d8fdfb6..2af02f1a84 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -144,7 +144,10 @@ N - Design/implement the "local-status" or something like it, from the
- Write a proposal; make this part of 105.
- Audit how much RAM we're using for buffers and cell pools; try to
trim down a lot.
- - Accept \n as end of lines in the control protocol in addition to \r\n.
+ o Accept \n as end of lines in the control protocol in addition to \r\n.
+ o Use fetch_from_buf_line_lf in control.c instead of fetch_from_buf_line.
+ o Fix up read escaped_data to accept LF instead of CRLF, and to
+ always translate_newlines (since that's the only way it's called).
- Base relative control socket paths on datadir.
- We should ship with a list of stable dir mirrors -- they're not
trusted like the authorities, but they'll provide more robustness
diff --git a/doc/spec/control-spec.txt b/doc/spec/control-spec.txt
index fc9d3188d1..4d8946b93c 100644
--- a/doc/spec/control-spec.txt
+++ b/doc/spec/control-spec.txt
@@ -52,6 +52,10 @@ $Id$
There are explicitly no limits on line length. All 8-bit characters are
permitted unless explicitly disallowed.
+ Wherever CRLF is specified to be accepted from the controller, Tor MAY also
+ accept LF. Tor, however, MUST NOT generate LF instead of CRLF.
+ Controllers SHOULD always send CRLF.
+
2.2. Commands from controller to Tor
Command = Keyword Arguments CRLF / "+" Keyword Arguments CRLF Data