implement first piece of hibernation
[tor.git] / ChangeLog
blob545c9d130b130c12512ffdfb03c321623df94592
1 Changes so far in 0.0.9:
2 pre4:
3   o Bugfixes on 0.0.9pre3:
4     - Ignore fascistfirewall when uploading/downloading hidden service
5       descriptors, since we go through Tor for those; and when using
6       an HttpProxy, since we assume it can reach them all.
7     - When looking for an authoritative dirserver, use only the ones
8       configured at boot. Don't bother looking in the directory.
9     - If the server doesn't specify an exit policy, use the real default
10       exit policy, not reject *:*.
11     - The rest of the fix for get_default_conf_file() on older win32.
12     - Make 'Routerfile' config option obsolete.
14   o Features:
15     - New 'MyFamily nick1,...' config option for a server to
16       specify other servers that shouldn't be used in the same circuit
17       with it. Only believed if nick1 also specifies us.
18     - New 'NodeFamily nick1,nick2,...' config option for a client to
19       specify nodes that it doesn't want to use in the same circuit.
20     - New 'Redirectexit pattern address:port' config option for a
21       server to redirect exit connections, e.g. to a local squid.
23 pre3:
24   o Bugfixes on 0.0.8.1:
25     - Better torrc example lines for dirbindaddress and orbindaddress.
26     - Improved bounds checking on parsed ints (e.g. config options and
27       the ones we find in directories.)
28     - Better handling of size_t vs int, so we're more robust on 64
29       bit platforms.
30     - Fix the rest of the bug where a newly started OR would appear
31       as unverified even after we've added his fingerprint and hupped
32       the dirserver.
33     - Fix a bug from 0.0.7: when read() failed on a stream, we would
34       close it without sending back an end. So 'connection refused'
35       would simply be ignored and the user would get no response.
37   o Bugfixes on 0.0.9pre2:
38     - Serving the cached-on-disk directory to people is bad. We now
39       provide no directory until we've fetched a fresh one.
40     - Workaround for bug on windows where cached-directories get crlf
41       corruption.
42     - Make get_default_conf_file() work on older windows too.
43     - If we write a *:* exit policy line in the descriptor, don't write
44       any more exit policy lines.
46   o Features:
47     - Use only 0.0.9pre1 and later servers for resolve cells.
48     - Make the dirservers file obsolete.
49       - Include a dir-signing-key token in directories to tell the
50         parsing entity which key is being used to sign.
51       - Remove the built-in bulky default dirservers string.
52       - New config option "Dirserver %s:%d [fingerprint]", which can be
53         repeated as many times as needed. If no dirservers specified,
54         default to moria1,moria2,tor26.
55     - Make moria2 advertise a dirport of 80, so people behind firewalls
56       will be able to get a directory.
57     - Http proxy support
58       - Dirservers translate requests for http://%s:%d/x to /x
59       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
60         be routed through this host.
61       - Clients ask for /tor/x rather than /x for new enough dirservers.
62         This way we can one day coexist peacefully with apache.
63       - Clients specify a "Host: %s%d" http header, to be compatible
64         with more proxies, and so running squid on an exit node can work.
66 pre2:
67   o Bugfixes on pre1:
68     - Make fetching a cached directory work for 64-bit platforms too.
69     - Make zlib.h a required header, not an optional header.
71 pre1:
72   o Bugfixes:
73     - Stop using separate defaults for no-config-file and
74       empty-config-file. Now you have to explicitly turn off SocksPort,
75       if you don't want it open.
76     - Improve man page to mention more of the 0.0.8 features.
77     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
78       happier.
79     - Fix more dns related bugs: send back resolve_failed and end cells
80       more reliably when the resolve fails, rather than closing the
81       circuit and then trying to send the cell. Also attach dummy resolve
82       connections to a circuit *before* calling dns_resolve(), to fix
83       a bug where cached answers would never be sent in RESOLVED cells.
84     - When we run out of disk space, or other log writing error, don't
85       crash. Just stop logging to that log and continue.
86     - We were starting to daemonize before we opened our logs, so if
87       there were any problems opening logs, we would complain to stderr,
88       which wouldn't work, and then mysteriously exit.
89     - Fix a rare bug where sometimes a verified OR would connect to us
90       before he'd uploaded his descriptor, which would cause us to
91       assign conn->nickname as though he's unverified. Now we look through
92       the fingerprint list to see if he's there.
94   o Features:
95     - Clients can ask dirservers for /dir.z to get a compressed version
96       of the directory. Only works for servers running 0.0.9, of course.
97     - Make clients cache directories and use them to seed their router
98       lists at startup. This means clients have a datadir again.
99     - Configuration infrastructure support for warning on obsolete
100       options.
101     - Respond to content-encoding headers by trying to uncompress as
102       appropriate.
103     - Reply with a deflated directory when a client asks for "dir.z".
104       We could use allow-encodings instead, but allow-encodings isn't
105       specified in HTTP 1.0.
106     - Raise the max dns workers from 50 to 100.
107     - Discourage people from setting their dirfetchpostperiod more often
108       than once per minute
109     - Protect dirservers from overzealous descriptor uploading -- wait
110       10 seconds after directory gets dirty, before regenerating.
113 Changes in version 0.0.8.1 - 2004-10-13
114   o Bugfixes:
115     - Fix a seg fault that can be triggered remotely for Tor
116       clients/servers with an open dirport.
117     - Fix a rare assert trigger, where routerinfos for entries in
118       our cpath would expire while we're building the path.
119     - Fix a bug in OutboundBindAddress so it (hopefully) works.
120     - Fix a rare seg fault for people running hidden services on
121       intermittent connections.
122     - Fix a bug in parsing opt keywords with objects.
123     - Fix a stale pointer assert bug when a stream detaches and
124       reattaches.
125     - Fix a string format vulnerability (probably not exploitable)
126       in reporting stats locally.
127     - Fix an assert trigger: sometimes launching circuits can fail
128       immediately, e.g. because too many circuits have failed recently.
129     - Fix a compile warning on 64 bit platforms.
132 Changes in version 0.0.8 - 2004-08-25
133   o Bugfixes:
134     - Made our unit tests compile again on OpenBSD 3.5, and tor
135       itself compile again on OpenBSD on a sparc64.
136     - We were neglecting milliseconds when logging on win32, so
137       everything appeared to happen at the beginning of each second.
138     - Check directory signature _before_ you decide whether you're
139       you're running an obsolete version and should exit.
140     - Check directory signature _before_ you parse the running-routers
141       list to decide who's running.
142     - Check return value of fclose while writing to disk, so we don't
143       end up with broken files when servers run out of disk space.
144     - Port it to SunOS 5.9 / Athena
145     - Fix two bugs in saving onion keys to disk when rotating, so
146       hopefully we'll get fewer people using old onion keys.
147     - Remove our mostly unused -- and broken -- hex_encode()
148       function. Use base16_encode() instead. (Thanks to Timo Lindfors
149       for pointing out this bug.)
150     - Only pick and establish intro points after we've gotten a
151       directory.
152     - Fix assert triggers: if the other side returns an address 0.0.0.0,
153       don't put it into the client dns cache.
154     - If a begin failed due to exit policy, but we believe the IP
155       address should have been allowed, switch that router to exitpolicy
156       reject *:* until we get our next directory.
158   o Protocol changes:
159     - 'Extend' relay cell payloads now include the digest of the
160       intended next hop's identity key. Now we can verify that we're
161       extending to the right router, and also extend to routers we
162       hadn't heard of before.
164   o Features:
165     - Tor nodes can now act as relays (with an advertised ORPort)
166       without being manually verified by the dirserver operators.
167       - Uploaded descriptors of unverified routers are now accepted
168         by the dirservers, and included in the directory.
169       - Verified routers are listed by nickname in the running-routers
170         list; unverified routers are listed as "$<fingerprint>".
171       - We now use hash-of-identity-key in most places rather than
172         nickname or addr:port, for improved security/flexibility.
173       - AllowUnverifiedNodes config option to let circuits choose no-name
174         routers in entry,middle,exit,introduction,rendezvous positions.
175         Allow middle and rendezvous positions by default.
176       - When picking unverified routers, skip those with low uptime and/or
177         low bandwidth, depending on what properties you care about.
178       - ClientOnly option for nodes that never want to become servers.
179     - Directory caching.
180       - "AuthoritativeDir 1" option for the official dirservers.
181       - Now other nodes (clients and servers) will cache the latest
182         directory they've pulled down.
183       - They can enable their DirPort to serve it to others.
184       - Clients will pull down a directory from any node with an open
185         DirPort, and check the signature/timestamp correctly.
186       - Authoritative dirservers now fetch directories from other
187         authdirservers, to stay better synced.
188       - Running-routers list tells who's down also, along with noting
189         if they're verified (listed by nickname) or unverified (listed
190         by hash-of-key).
191       - Allow dirservers to serve running-router list separately.
192         This isn't used yet.
193       - You can now fetch $DIRURL/running-routers to get just the
194         running-routers line, not the whole descriptor list. (But
195         clients don't use this yet.)
196     - Clients choose nodes proportional to advertised bandwidth.
197     - Clients avoid using nodes with low uptime as introduction points.
198     - Handle servers with dynamic IP addresses: don't just replace
199       options->Address with the resolved one at startup, and
200       detect our address right before we make a routerinfo each time.
201     - 'FascistFirewall' option to pick dirservers and ORs on specific
202       ports; plus 'FirewallPorts' config option to tell FascistFirewall
203       which ports are open. (Defaults to 80,443)
204     - Try other dirservers immediately if the one you try is down. This
205       should tolerate down dirservers better now.
206     - ORs connect-on-demand to other ORs
207       - If you get an extend cell to an OR you're not connected to,
208         connect, handshake, and forward the create cell.
209       - The authoritative dirservers stay connected to everybody,
210         and everybody stays connected to 0.0.7 servers, but otherwise
211         clients/servers expire unused connections after 5 minutes.
212     - When servers get a sigint, they delay 30 seconds (refusing new
213       connections) then exit. A second sigint causes immediate exit.
214     - File and name management:
215       - Look for .torrc if no CONFDIR "torrc" is found.
216       - If no datadir is defined, then choose, make, and secure ~/.tor
217         as datadir.
218       - If torrc not found, exitpolicy reject *:*.
219       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
220       - If no nickname is defined, derive default from hostname.
221       - Rename secret key files, e.g. identity.key -> secret_id_key,
222         to discourage people from mailing their identity key to tor-ops.
223     - Refuse to build a circuit before the directory has arrived --
224       it won't work anyway, since you won't know the right onion keys
225       to use.
226     - Parse tor version numbers so we can do an is-newer-than check
227       rather than an is-in-the-list check.
228     - New socks command 'resolve', to let us shim gethostbyname()
229       locally.
230       - A 'tor_resolve' script to access the socks resolve functionality.
231       - A new socks-extensions.txt doc file to describe our
232         interpretation and extensions to the socks protocols.
233     - Add a ContactInfo option, which gets published in descriptor.
234     - Write tor version at the top of each log file
235     - New docs in the tarball:
236       - tor-doc.html.
237       - Document that you should proxy your SSL traffic too.
238     - Log a warning if the user uses an unsafe socks variant, so people
239       are more likely to learn about privoxy or socat.
240     - Log a warning if you're running an unverified server, to let you
241       know you might want to get it verified.
242     - Change the default exit policy to reject the default edonkey,
243       kazaa, gnutella ports.
244     - Add replace_file() to util.[ch] to handle win32's rename().
245     - Publish OR uptime in descriptor (and thus in directory) too.
246     - Remember used bandwidth (both in and out), and publish 15-minute
247       snapshots for the past day into our descriptor.
248     - Be more aggressive about trying to make circuits when the network
249       has changed (e.g. when you unsuspend your laptop).
250     - Check for time skew on http headers; report date in response to
251       "GET /".
252     - If the entrynode config line has only one node, don't pick it as
253       an exitnode.
254     - Add strict{entry|exit}nodes config options. If set to 1, then
255       we refuse to build circuits that don't include the specified entry
256       or exit nodes.
257     - OutboundBindAddress config option, to bind to a specific
258       IP address for outgoing connect()s.
259     - End truncated log entries (e.g. directories) with "[truncated]".
262 Changes in version 0.0.7.3 - 2004-08-12
263   o Stop dnsworkers from triggering an assert failure when you
264     ask them to resolve the host "".
267 Changes in version 0.0.7.2 - 2004-07-07
268   o A better fix for the 0.0.0.0 problem, that will hopefully
269     eliminate the remaining related assertion failures.
272 Changes in version 0.0.7.1 - 2004-07-04
273   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
274     since internally we use 0.0.0.0 to signify "not yet resolved".
277 Changes in version 0.0.7 - 2004-06-07
278   o Fixes for crashes and other obnoxious bugs:
279     - Fix an epipe bug: sometimes when directory connections failed
280       to connect, we would give them a chance to flush before closing
281       them.
282     - When we detached from a circuit because of resolvefailed, we
283       would immediately try the same circuit twice more, and then
284       give up on the resolve thinking we'd tried three different
285       exit nodes.
286     - Limit the number of intro circuits we'll attempt to build for a
287       hidden service per 15-minute period.
288     - Check recommended-software string *early*, before actually parsing
289       the directory. Thus we can detect an obsolete version and exit,
290       even if the new directory format doesn't parse.
291   o Fixes for security bugs:
292     - Remember which nodes are dirservers when you startup, and if a
293       random OR enables his dirport, don't automatically assume he's
294       a trusted dirserver.
295   o Other bugfixes:
296     - Directory connections were asking the wrong poll socket to
297       start writing, and not asking themselves to start writing.
298     - When we detached from a circuit because we sent a begin but
299       didn't get a connected, we would use it again the first time;
300       but after that we would correctly switch to a different one.
301     - Stop warning when the first onion decrypt attempt fails; they
302       will sometimes legitimately fail now that we rotate keys.
303     - Override unaligned-access-ok check when $host_cpu is ia64 or
304       arm. Apparently they allow it but the kernel whines.
305     - Dirservers try to reconnect periodically too, in case connections
306       have failed.
307     - Fix some memory leaks in directory servers.
308     - Allow backslash in Win32 filenames.
309     - Made Tor build complain-free on FreeBSD, hopefully without
310       breaking other BSD builds. We'll see.
311     - Check directory signatures based on name of signer, not on whom
312       we got the directory from. This will let us cache directories more
313       easily.
314     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
315       settings too.
316   o Features:
317     - Doxygen markup on all functions and global variables.
318     - Make directory functions update routerlist, not replace it. So
319       now directory disagreements are not so critical a problem.
320     - Remove the upper limit on number of descriptors in a dirserver's
321       directory (not that we were anywhere close).
322     - Allow multiple logfiles at different severity ranges.
323     - Allow *BindAddress to specify ":port" rather than setting *Port
324       separately. Allow multiple instances of each BindAddress config
325       option, so you can bind to multiple interfaces if you want.
326     - Allow multiple exit policy lines, which are processed in order.
327       Now we don't need that huge line with all the commas in it.
328     - Enable accept/reject policies on SOCKS connections, so you can bind
329       to 0.0.0.0 but still control who can use your OP.
330     - Updated the man page to reflect these features.
333 Changes in version 0.0.6.2 - 2004-05-16
334   o Our integrity-checking digest was checking only the most recent cell,
335     not the previous cells like we'd thought.
336     Thanks to Stefan Mark for finding the flaw!
339 Changes in version 0.0.6.1 - 2004-05-06
340   o Fix two bugs in our AES counter-mode implementation (this affected
341     onion-level stream encryption, but not TLS-level). It turns
342     out we were doing something much more akin to a 16-character
343     polyalphabetic cipher. Oops.
344     Thanks to Stefan Mark for finding the flaw!
345   o Retire moria3 as a directory server, and add tor26 as a directory
346     server.
349 Changes in version 0.0.6 - 2004-05-02
350   o Features:
351     - Hidden services and rendezvous points are implemented. Go to
352       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
353       hidden services. (This only works via a socks4a proxy such as
354       Privoxy, and currently it's quite slow.)
355     - We now rotate link (tls context) keys and onion keys.
356     - CREATE cells now include oaep padding, so you can tell
357       if you decrypted them correctly.
358     - Retry stream correctly when we fail to connect because of
359       exit-policy-reject (should try another) or can't-resolve-address.
360     - When we hup a dirserver and we've *removed* a server from the
361       approved-routers list, now we remove that server from the
362       in-memory directories too.
363     - Add bandwidthburst to server descriptor.
364     - Directories now say which dirserver signed them.
365     - Use a tor_assert macro that logs failed assertions too.
366     - Since we don't support truncateds much, don't bother sending them;
367       just close the circ.
368     - Fetch randomness from /dev/urandom better (not via fopen/fread)
369     - Better debugging for tls errors
370     - Set Content-Type on the directory and hidserv descriptor.
371     - Remove IVs from cipher code, since AES-ctr has none.
372   o Bugfixes:
373     - Fix an assert trigger for exit nodes that's been plaguing us since
374       the days of 0.0.2prexx (thanks weasel!)
375     - Fix a bug where we were closing tls connections intermittently.
376       It turns out openssl keeps its errors around -- so if an error
377       happens, and you don't ask about it, and then another openssl
378       operation happens and succeeds, and you ask if there was an error,
379       it tells you about the first error.
380     - Fix a bug that's been lurking since 27 may 03 (!)
381       When passing back a destroy cell, we would use the wrong circ id.
382     - Don't crash if a conn that sent a begin has suddenly lost its circuit.
383     - Some versions of openssl have an SSL_pending function that erroneously
384       returns bytes when there is a non-application record pending.
385     - Win32 fixes. Tor now compiles on win32 with no warnings/errors.
386       o We were using an array of length zero in a few places.
387       o Win32's gethostbyname can't resolve an IP to an IP.
388       o Win32's close can't close a socket.
389       o Handle windows socket errors correctly.
390   o Portability:
391     - check for <sys/limits.h> so we build on FreeBSD again, and
392       <machine/limits.h> for NetBSD.
395 Changes in version 0.0.5 - 2004-03-30
396   o Install torrc as torrc.sample -- we no longer clobber your
397     torrc. (Woo!)
398   o Fix mangled-state bug in directory fetching (was causing sigpipes).
399   o Only build circuits after we've fetched the directory: clients were
400     using only the directory servers before they'd fetched a directory.
401     This also means longer startup time; so it goes.
402   o Fix an assert trigger where an OP would fail to handshake, and we'd
403     expect it to have a nickname.
404   o Work around a tsocks bug: do a socks reject when AP connection dies
405     early, else tsocks goes into an infinite loop.
406   o Hold socks connection open until reply is flushed (if possible)
407   o Make exit nodes resolve IPs to IPs immediately, rather than asking
408     the dns farm to do it.
409   o Fix c99 aliasing warnings in rephist.c
410   o Don't include server descriptors that are older than 24 hours in the
411     directory.
412   o Give socks 'reject' replies their whole 15s to attempt to flush,
413     rather than seeing the 60s timeout and assuming the flush had failed.
414   o Clean automake droppings from the cvs repository
415   o Add in a 'notice' log level for things the operator should hear
416     but that aren't warnings
419 Changes in version 0.0.4 - 2004-03-26
420   o When connecting to a dirserver or OR and the network is down,
421     we would crash.
424 Changes in version 0.0.3 - 2004-03-26
425   o Warn and fail if server chose a nickname with illegal characters
426   o Port to Solaris and Sparc:
427     - include missing header fcntl.h
428     - have autoconf find -lsocket -lnsl automatically
429     - deal with hardware word alignment
430     - make uname() work (solaris has a different return convention)
431     - switch from using signal() to sigaction()
432   o Preliminary work on reputation system:
433     - Keep statistics on success/fail of connect attempts; they're published
434       by kill -USR1 currently.
435     - Add a RunTesting option to try to learn link state by creating test
436       circuits, even when SocksPort is off.
437     - Remove unused open circuits when there are too many.
440 Changes in version 0.0.2 - 2004-03-19
441     - Include strlcpy and strlcat for safer string ops
442     - define INADDR_NONE so we compile (but still not run) on solaris
445 Changes in version 0.0.2pre27 - 2004-03-14
446   o Bugfixes:
447     - Allow internal tor networks (we were rejecting internal IPs,
448       now we allow them if they're set explicitly).
449     - And fix a few endian issues.
452 Changes in version 0.0.2pre26 - 2004-03-14
453   o New features:
454     - If a stream times out after 15s without a connected cell, don't
455       try that circuit again: try a new one.
456     - Retry streams at most 4 times. Then give up.
457     - When a dirserver gets a descriptor from an unknown router, it
458       logs its fingerprint (so the dirserver operator can choose to
459       accept it even without mail from the server operator).
460     - Inform unapproved servers when we reject their descriptors.
461     - Make tor build on Windows again. It works as a client, who knows
462       about as a server.
463     - Clearer instructions in the torrc for how to set up a server.
464     - Be more efficient about reading fd's when our global token bucket
465       (used for rate limiting) becomes empty.
466   o Bugfixes:
467     - Stop asserting that computers always go forward in time. It's
468       simply not true.
469     - When we sent a cell (e.g. destroy) and then marked an OR connection
470       expired, we might close it before finishing a flush if the other
471       side isn't reading right then.
472     - Don't allow dirservers to start if they haven't defined
473       RecommendedVersions
474     - We were caching transient dns failures. Oops.
475     - Prevent servers from publishing an internal IP as their address.
476     - Address a strcat vulnerability in circuit.c
479 Changes in version 0.0.2pre25 - 2004-03-04
480   o New features:
481     - Put the OR's IP in its router descriptor, not its fqdn. That way
482       we'll stop being stalled by gethostbyname for nodes with flaky dns,
483       e.g. poblano.
484   o Bugfixes:
485     - If the user typed in an address that didn't resolve, the server
486       crashed.
489 Changes in version 0.0.2pre24 - 2004-03-03
490   o Bugfixes:
491     - Fix an assertion failure in dns.c, where we were trying to dequeue
492       a pending dns resolve even if it wasn't pending
493     - Fix a spurious socks5 warning about still trying to write after the
494       connection is finished.
495     - Hold certain marked_for_close connections open until they're finished
496       flushing, rather than losing bytes by closing them too early.
497     - Correctly report the reason for ending a stream
498     - Remove some duplicate calls to connection_mark_for_close
499     - Put switch_id and start_daemon earlier in the boot sequence, so it
500       will actually try to chdir() to options.DataDirectory
501     - Make 'make test' exit(1) if a test fails; fix some unit tests
502     - Make tor fail when you use a config option it doesn't know about,
503       rather than warn and continue.
504     - Make --version work
505     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
508 Changes in version 0.0.2pre23 - 2004-02-29
509   o New features:
510     - Print a statement when the first circ is finished, so the user
511       knows it's working.
512     - If a relay cell is unrecognized at the end of the circuit,
513       send back a destroy. (So attacks to mutate cells are more
514       clearly thwarted.)
515     - New config option 'excludenodes' to avoid certain nodes for circuits.
516     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
517       so you can collect coredumps there.
518  o Bugfixes:
519     - Fix a bug in tls flushing where sometimes data got wedged and
520       didn't flush until more data got sent. Hopefully this bug was
521       a big factor in the random delays we were seeing.
522     - Make 'connected' cells include the resolved IP, so the client
523       dns cache actually gets populated.
524     - Disallow changing from ORPort=0 to ORPort>0 on hup.
525     - When we time-out on a stream and detach from the circuit, send an
526       end cell down it first.
527     - Only warn about an unknown router (in exitnodes, entrynodes,
528       excludenodes) after we've fetched a directory.
531 Changes in version 0.0.2pre22 - 2004-02-26
532   o New features:
533     - Servers publish less revealing uname information in descriptors.
534     - More memory tracking and assertions, to crash more usefully when
535       errors happen.
536     - If the default torrc isn't there, just use some default defaults.
537       Plus provide an internal dirservers file if they don't have one.
538     - When the user tries to use Tor as an http proxy, give them an http
539       501 failure explaining that we're a socks proxy.
540     - Dump a new router.desc on hup, to help confused people who change
541       their exit policies and then wonder why router.desc doesn't reflect
542       it.
543     - Clean up the generic tor.sh init script that we ship with.
544   o Bugfixes:
545     - If the exit stream is pending on the resolve, and a destroy arrives,
546       then the stream wasn't getting removed from the pending list. I
547       think this was the one causing recent server crashes.
548     - Use a more robust poll on OSX 10.3, since their poll is flaky.
549     - When it couldn't resolve any dirservers, it was useless from then on.
550       Now it reloads the RouterFile (or default dirservers) if it has no
551       dirservers.
552     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
553       many users don't even *have* a /usr/local/sbin/.
556 Changes in version 0.0.2pre21 - 2004-02-18
557   o New features:
558     - There's a ChangeLog file that actually reflects the changelog.
559     - There's a 'torify' wrapper script, with an accompanying
560       tor-tsocks.conf, that simplifies the process of using tsocks for
561       tor. It even has a man page.
562     - The tor binary gets installed to sbin rather than bin now.
563     - Retry streams where the connected cell hasn't arrived in 15 seconds
564     - Clean up exit policy handling -- get the default out of the torrc,
565       so we can update it without forcing each server operator to fix
566       his/her torrc.
567     - Allow imaps and pop3s in default exit policy
568   o Bugfixes:
569     - Prevent picking middleman nodes as the last node in the circuit
572 Changes in version 0.0.2pre20 - 2004-01-30
573   o New features:
574     - We now have a deb package, and it's in debian unstable. Go to
575       it, apt-getters. :)
576     - I've split the TotalBandwidth option into BandwidthRate (how many
577       bytes per second you want to allow, long-term) and
578       BandwidthBurst (how many bytes you will allow at once before the cap
579       kicks in).  This better token bucket approach lets you, say, set
580       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
581       performance while not exceeding your monthly bandwidth quota.
582     - Push out a tls record's worth of data once you've got it, rather
583       than waiting until you've read everything waiting to be read. This
584       may improve performance by pipelining better. We'll see.
585     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
586       from failed circuits (if they haven't been connected yet) and attach
587       to new ones.
588     - Expire old streams that haven't managed to connect. Some day we'll
589       have them reattach to new circuits instead.
591   o Bugfixes:
592     - Fix several memory leaks that were causing servers to become bloated
593       after a while.
594     - Fix a few very rare assert triggers. A few more remain.
595     - Setuid to User _before_ complaining about running as root.
598 Changes in version 0.0.2pre19 - 2004-01-07
599   o Bugfixes:
600     - Fix deadlock condition in dns farm. We were telling a child to die by
601       closing the parent's file descriptor to him. But newer children were
602       inheriting the open file descriptor from the parent, and since they
603       weren't closing it, the socket never closed, so the child never read
604       eof, so he never knew to exit. Similarly, dns workers were holding
605       open other sockets, leading to all sorts of chaos.
606     - New cleaner daemon() code for forking and backgrounding.
607     - If you log to a file, it now prints an entry at the top of the
608       logfile so you know it's working.
609     - The onionskin challenge length was 30 bytes longer than necessary.
610     - Started to patch up the spec so it's not quite so out of date.
613 Changes in version 0.0.2pre18 - 2004-01-02
614   o Bugfixes:
615     - Fix endian issues with the 'integrity' field in the relay header.
616     - Fix a potential bug where connections in state
617       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
620 Changes in version 0.0.2pre17 - 2003-12-30
621   o Bugfixes:
622     - Made --debuglogfile (or any second log file, actually) work.
623     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
624       adversary could force us into an infinite loop.
626   o Features:
627     - Each onionskin handshake now includes a hash of the computed key,
628       to prove the server's identity and help perfect forward secrecy.
629     - Changed cell size from 256 to 512 bytes (working toward compatibility
630       with MorphMix).
631     - Changed cell length to 2 bytes, and moved it to the relay header.
632     - Implemented end-to-end integrity checking for the payloads of
633       relay cells.
634     - Separated streamid from 'recognized' (otherwise circuits will get
635       messed up when we try to have streams exit from the middle). We
636       use the integrity-checking to confirm that a cell is addressed to
637       this hop.
638     - Randomize the initial circid and streamid values, so an adversary who
639       breaks into a node can't learn how many circuits or streams have
640       been made so far.
643 Changes in version 0.0.2pre16 - 2003-12-14
644   o Bugfixes:
645     - Fixed a bug that made HUP trigger an assert
646     - Fixed a bug where a circuit that immediately failed wasn't being
647       counted as a failed circuit in counting retries.
649   o Features:
650     - Now we close the circuit when we get a truncated cell: otherwise we're
651       open to an anonymity attack where a bad node in the path truncates
652       the circuit and then we open streams at him.
653     - Add port ranges to exit policies
654     - Add a conservative default exit policy
655     - Warn if you're running tor as root
656     - on HUP, retry OR connections and close/rebind listeners
657     - options.EntryNodes: try these nodes first when picking the first node
658     - options.ExitNodes: if your best choices happen to include any of
659       your preferred exit nodes, you choose among just those preferred
660       exit nodes.
661     - options.ExcludedNodes: nodes that are never picked in path building
664 Changes in version 0.0.2pre15 - 2003-12-03
665   o Robustness and bugfixes:
666     - Sometimes clients would cache incorrect DNS resolves, which would
667       really screw things up.
668     - An OP that goes offline would slowly leak all its sockets and stop
669       working.
670     - A wide variety of bugfixes in exit node selection, exit policy
671       handling, and processing pending streams when a new circuit is
672       established.
673     - Pick nodes for a path only from those the directory says are up
674     - Choose randomly from all running dirservers, not always the first one
675     - Increase allowed http header size for directory fetch.
676     - Stop writing to stderr (if we're daemonized it will be closed).
677     - Enable -g always, so cores will be more useful to me.
678     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
680   o Documentation:
681     - Wrote a man page. It lists commonly used options.
683   o Configuration:
684     - Change default loglevel to warn.
685     - Make PidFile default to null rather than littering in your CWD.
686     - OnionRouter config option is now obsolete. Instead it just checks
687       ORPort>0.
688     - Moved to a single unified torrc file for both clients and servers.
691 Changes in version 0.0.2pre14 - 2003-11-29
692   o Robustness and bugfixes:
693     - Force the admin to make the DataDirectory himself
694       - to get ownership/permissions right
695       - so clients no longer make a DataDirectory and then never use it
696     - fix bug where a client who was offline for 45 minutes would never
697       pull down a directory again
698     - fix (or at least hide really well) the dns assert bug that was
699       causing server crashes
700     - warnings and improved robustness wrt clockskew for certs
701     - use the native daemon(3) to daemonize, when available
702     - exit if bind() fails
703     - exit if neither socksport nor orport is defined
704     - include our own tor_timegm (Win32 doesn't have its own)
705     - bugfix for win32 with lots of connections
706     - fix minor bias in PRNG
707     - make dirserver more robust to corrupt cached directory
709   o Documentation:
710     - Wrote the design document (woo)
712   o Circuit building and exit policies:
713     - Circuits no longer try to use nodes that the directory has told them
714       are down.
715     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
716       bitcounts (18.0.0.0/8).
717     - Make AP connections standby for a circuit if no suitable circuit
718       exists, rather than failing
719     - Circuits choose exit node based on addr/port, exit policies, and
720       which AP connections are standing by
721     - Bump min pathlen from 2 to 3
722     - Relay end cells have a payload to describe why the stream ended.
723     - If the stream failed because of exit policy, try again with a new
724       circuit.
725     - Clients have a dns cache to remember resolved addresses.
726     - Notice more quickly when we have no working circuits
728   o Configuration:
729     - APPort is now called SocksPort
730     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
731       where to bind
732     - RecommendedVersions is now a config variable rather than
733       hardcoded (for dirservers)
734     - Reloads config on HUP
735     - Usage info on -h or --help
736     - If you set User and Group config vars, it'll setu/gid to them.
738 Changes in version 0.0.2pre13 - 2003-10-19
739   o General stability:
740     - SSL_write no longer fails when it returns WANTWRITE and the number
741       of bytes in the buf has changed by the next SSL_write call.
742     - Fix segfault fetching directory when network is down
743     - Fix a variety of minor memory leaks
744     - Dirservers reload the fingerprints file on HUP, so I don't have
745       to take down the network when I approve a new router
746     - Default server config file has explicit Address line to specify fqdn
748   o Buffers:
749     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
750     - Make listener connections not ever alloc bufs
752   o Autoconf improvements:
753     - don't clobber an external CFLAGS in ./configure
754     - Make install now works
755     - create var/lib/tor on make install
756     - autocreate a tor.sh initscript to help distribs
757     - autocreate the torrc and sample-server-torrc with correct paths
759   o Log files and Daemonizing now work:
760     - If --DebugLogFile is specified, log to it at -l debug
761     - If --LogFile is specified, use it instead of commandline
762     - If --RunAsDaemon is set, tor forks and backgrounds on startup