fold in next changes entries
[tor.git] / ChangeLog
blob25b3e558cc492f502bd7162e0ae7737e6f74b80a
1 Changes in version 0.2.2.22-alpha - 2011-01-25
2   o Major bugfixes:
3     - Fix a bounds-checking error that could allow an attacker to
4       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
5       Found by "piebeer".
6     - Don't assert when changing from bridge to relay or vice versa
7       via the controller. The assert happened because we didn't properly
8       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
9       bug 2433. Reported by bastik.
11   o Minor features:
12     - Adjust our TLS Diffie-Hellman parameters to match those used by
13       Apache's mod_ssl.
14     - Provide a log message stating which geoip file we're parsing
15       instead of just stating that we're parsing the geoip file.
16       Implements ticket 2432.
18   o Minor bugfixes:
19     - Check for and reject overly long directory certificates and
20       directory tokens before they have a chance to hit any assertions.
21       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
24 Changes in version 0.2.2.21-alpha - 2011-01-15
25   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
26   continues our recent code security audit work. The main fix resolves
27   a remote heap overflow vulnerability that can allow remote code
28   execution (CVE-2011-0427). Other fixes address a variety of assert
29   and crash bugs, most of which we think are hard to exploit remotely.
31   o Major bugfixes (security), also included in 0.2.1.29:
32     - Fix a heap overflow bug where an adversary could cause heap
33       corruption. This bug probably allows remote code execution
34       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
35       0.1.2.10-rc.
36     - Prevent a denial-of-service attack by disallowing any
37       zlib-compressed data whose compression factor is implausibly
38       high. Fixes part of bug 2324; reported by "doorss".
39     - Zero out a few more keys in memory before freeing them. Fixes
40       bug 2384 and part of bug 2385. These key instances found by
41       "cypherpunks", based on Andrew Case's report about being able
42       to find sensitive data in Tor's memory space if you have enough
43       permissions. Bugfix on 0.0.2pre9.
45   o Major bugfixes (crashes), also included in 0.2.1.29:
46     - Prevent calls to Libevent from inside Libevent log handlers.
47       This had potential to cause a nasty set of crashes, especially
48       if running Libevent with debug logging enabled, and running
49       Tor with a controller watching for low-severity log messages.
50       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
51     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
52       underflow errors there too. Fixes the other part of bug 2324.
53     - Fix a bug where we would assert if we ever had a
54       cached-descriptors.new file (or another file read directly into
55       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
56       on 0.2.1.25. Found by doorss.
57     - Fix some potential asserts and parsing issues with grossly
58       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
59       Found by doorss.
61   o Minor bugfixes (other), also included in 0.2.1.29:
62     - Fix a bug with handling misformed replies to reverse DNS lookup
63       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
64       bug reported by doorss.
65     - Fix compilation on mingw when a pthreads compatibility library
66       has been installed. (We don't want to use it, so we shouldn't
67       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
68     - Fix a bug where we would declare that we had run out of virtual
69       addresses when the address space was only half-exhausted. Bugfix
70       on 0.1.2.1-alpha.
71     - Correctly handle the case where AutomapHostsOnResolve is set but
72       no virtual addresses are available. Fixes bug 2328; bugfix on
73       0.1.2.1-alpha. Bug found by doorss.
74     - Correctly handle wrapping around when we run out of virtual
75       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
77   o Minor features, also included in 0.2.1.29:
78     - Update to the January 1 2011 Maxmind GeoLite Country database.
79     - Introduce output size checks on all of our decryption functions.
81   o Build changes, also included in 0.2.1.29:
82     - Tor does not build packages correctly with Automake 1.6 and earlier;
83       added a check to Makefile.am to make sure that we're building with
84       Automake 1.7 or later.
85     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
86       because we built it with a too-old version of automake. Thus that
87       release broke ./configure --enable-openbsd-malloc, which is popular
88       among really fast exit relays on Linux.
90   o Major bugfixes, new in 0.2.2.21-alpha:
91     - Prevent crash/heap corruption when the cbtnummodes consensus
92       parameter is set to 0 or large values. Fixes bug 2317; bugfix
93       on 0.2.2.14-alpha.
95   o Major features, new in 0.2.2.21-alpha:
96     - Introduce minimum/maximum values that clients will believe
97       from the consensus. Now we'll have a better chance to avoid crashes
98       or worse when a consensus param has a weird value.
100   o Minor features, new in 0.2.2.21-alpha:
101     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
102       used on bridges, and it makes bridge scanning somewhat easier.
103     - If writing the state file to disk fails, wait up to an hour before
104       retrying again, rather than trying again each second. Fixes bug
105       2346; bugfix on Tor 0.1.1.3-alpha.
106     - Make Libevent log messages get delivered to controllers later,
107       and not from inside the Libevent log handler. This prevents unsafe
108       reentrant Libevent calls while still letting the log messages
109       get through.
110     - Detect platforms that brokenly use a signed size_t, and refuse to
111       build there. Found and analyzed by doorss and rransom.
112     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
113       Resolves bug 2314.
115   o Minor bugfixes, new in 0.2.2.21-alpha:
116     - Handle SOCKS messages longer than 128 bytes long correctly, rather
117       than waiting forever for them to finish. Fixes bug 2330; bugfix
118       on 0.2.0.16-alpha. Found by doorss.
119     - Add assertions to check for overflow in arguments to
120       base32_encode() and base32_decode(); fix a signed-unsigned
121       comparison there too. These bugs are not actually reachable in Tor,
122       but it's good to prevent future errors too. Found by doorss.
123     - Correctly detect failures to create DNS requests when using Libevent
124       versions before v2. (Before Libevent 2, we used our own evdns
125       implementation. Its return values for Libevent's evdns_resolve_*()
126       functions are not consistent with those from Libevent.) Fixes bug
127       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
129   o Documentation, new in 0.2.2.21-alpha:
130     - Document the default socks host and port (127.0.0.1:9050) for
131       tor-resolve.
134 Changes in version 0.2.1.29 - 2011-01-15
135   Tor 0.2.1.29 continues our recent code security audit work. The main
136   fix resolves a remote heap overflow vulnerability that can allow remote
137   code execution. Other fixes address a variety of assert and crash bugs,
138   most of which we think are hard to exploit remotely.
140   o Major bugfixes (security):
141     - Fix a heap overflow bug where an adversary could cause heap
142       corruption. This bug probably allows remote code execution
143       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
144       0.1.2.10-rc.
145     - Prevent a denial-of-service attack by disallowing any
146       zlib-compressed data whose compression factor is implausibly
147       high. Fixes part of bug 2324; reported by "doorss".
148     - Zero out a few more keys in memory before freeing them. Fixes
149       bug 2384 and part of bug 2385. These key instances found by
150       "cypherpunks", based on Andrew Case's report about being able
151       to find sensitive data in Tor's memory space if you have enough
152       permissions. Bugfix on 0.0.2pre9.
154   o Major bugfixes (crashes):
155     - Prevent calls to Libevent from inside Libevent log handlers.
156       This had potential to cause a nasty set of crashes, especially
157       if running Libevent with debug logging enabled, and running
158       Tor with a controller watching for low-severity log messages.
159       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
160     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
161       underflow errors there too. Fixes the other part of bug 2324.
162     - Fix a bug where we would assert if we ever had a
163       cached-descriptors.new file (or another file read directly into
164       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
165       on 0.2.1.25. Found by doorss.
166     - Fix some potential asserts and parsing issues with grossly
167       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
168       Found by doorss.
170   o Minor bugfixes (other):
171     - Fix a bug with handling misformed replies to reverse DNS lookup
172       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
173       bug reported by doorss.
174     - Fix compilation on mingw when a pthreads compatibility library
175       has been installed. (We don't want to use it, so we shouldn't
176       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
177     - Fix a bug where we would declare that we had run out of virtual
178       addresses when the address space was only half-exhausted. Bugfix
179       on 0.1.2.1-alpha.
180     - Correctly handle the case where AutomapHostsOnResolve is set but
181       no virtual addresses are available. Fixes bug 2328; bugfix on
182       0.1.2.1-alpha. Bug found by doorss.
183     - Correctly handle wrapping around to when we run out of virtual
184       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
185     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
186       because we built it with a too-old version of automake. Thus that
187       release broke ./configure --enable-openbsd-malloc, which is popular
188       among really fast exit relays on Linux.
190   o Minor features:
191     - Update to the January 1 2011 Maxmind GeoLite Country database.
192     - Introduce output size checks on all of our decryption functions.
194   o Build changes:
195     - Tor does not build packages correctly with Automake 1.6 and earlier;
196       added a check to Makefile.am to make sure that we're building with
197       Automake 1.7 or later.
200 Changes in version 0.2.2.20-alpha - 2010-12-17
201   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
202   exploitable bugs. We also fix a variety of other significant bugs,
203   change the IP address for one of our directory authorities, and update
204   the minimum version that Tor relays must run to join the network.
206   o Major bugfixes:
207     - Fix a remotely exploitable bug that could be used to crash instances
208       of Tor remotely by overflowing on the heap. Remote-code execution
209       hasn't been confirmed, but can't be ruled out. Everyone should
210       upgrade. Bugfix on the 0.1.1 series and later.
211     - Fix a bug that could break accounting on 64-bit systems with large
212       time_t values, making them hibernate for impossibly long intervals.
213       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
214     - Fix a logic error in directory_fetches_from_authorities() that
215       would cause all _non_-exits refusing single-hop-like circuits
216       to fetch from authorities, when we wanted to have _exits_ fetch
217       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
218       fix by boboper.
219     - Fix a stream fairness bug that would cause newer streams on a given
220       circuit to get preference when reading bytes from the origin or
221       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
222       introduced before the first Tor release, in svn revision r152.
224   o Directory authority changes:
225     - Change IP address and ports for gabelmoo (v3 directory authority).
227   o Minor bugfixes:
228     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
229       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
230     - Fix an off-by-one error in calculating some controller command
231       argument lengths. Fortunately, this mistake is harmless since
232       the controller code does redundant NUL termination too. Found by
233       boboper. Bugfix on 0.1.1.1-alpha.
234     - Do not dereference NULL if a bridge fails to build its
235       extra-info descriptor. Found by an anonymous commenter on
236       Trac. Bugfix on 0.2.2.19-alpha.
238   o Minor features:
239     - Update to the December 1 2010 Maxmind GeoLite Country database.
240     - Directory authorities now reject relays running any versions of
241       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
242       known bugs that keep RELAY_EARLY cells from working on rendezvous
243       circuits. Followup to fix for bug 2081.
244     - Directory authorities now reject relays running any version of Tor
245       older than 0.2.0.26-rc. That version is the earliest that fetches
246       current directory information correctly. Fixes bug 2156.
247     - Report only the top 10 ports in exit-port stats in order not to
248       exceed the maximum extra-info descriptor length of 50 KB. Implements
249       task 2196.
252 Changes in version 0.2.1.28 - 2010-12-17
253   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
254   exploitable bugs. We also took this opportunity to change the IP address
255   for one of our directory authorities, and to update the geoip database
256   we ship.
258   o Major bugfixes:
259     - Fix a remotely exploitable bug that could be used to crash instances
260       of Tor remotely by overflowing on the heap. Remote-code execution
261       hasn't been confirmed, but can't be ruled out. Everyone should
262       upgrade. Bugfix on the 0.1.1 series and later.
264   o Directory authority changes:
265     - Change IP address and ports for gabelmoo (v3 directory authority).
267   o Minor features:
268     - Update to the December 1 2010 Maxmind GeoLite Country database.
271 Changes in version 0.2.1.27 - 2010-11-23
272   Yet another OpenSSL security patch broke its compatibility with Tor:
273   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
274   also took this opportunity to fix several crash bugs, integrate a new
275   directory authority, and update the bundled GeoIP database.
277   o Major bugfixes:
278     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
279       No longer set the tlsext_host_name extension on server SSL objects;
280       but continue to set it on client SSL objects. Our goal in setting
281       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
282       bugfix on 0.2.1.1-alpha.
283     - Do not log messages to the controller while shrinking buffer
284       freelists. Doing so would sometimes make the controller connection
285       try to allocate a buffer chunk, which would mess up the internals
286       of the freelist and cause an assertion failure. Fixes bug 1125;
287       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
288     - Learn our external IP address when we're a relay or bridge, even if
289       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
290       where we introduced bridge relays that don't need to publish to
291       be useful. Fixes bug 2050.
292     - Do even more to reject (and not just ignore) annotations on
293       router descriptors received anywhere but from the cache. Previously
294       we would ignore such annotations at first, but cache them to disk
295       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
296     - When you're using bridges and your network goes away and your
297       bridges get marked as down, recover when you attempt a new socks
298       connection (if the network is back), rather than waiting up to an
299       hour to try fetching new descriptors for your bridges. Bugfix on
300       0.2.0.3-alpha; fixes bug 1981.
302   o Major features:
303     - Move to the November 2010 Maxmind GeoLite country db (rather
304       than the June 2009 ip-to-country GeoIP db) for our statistics that
305       count how many users relays are seeing from each country. Now we'll
306       have more accurate data, especially for many African countries.
308   o New directory authorities:
309     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
310       authority.
312   o Minor bugfixes:
313     - Fix an assertion failure that could occur in directory caches or
314       bridge users when using a very short voting interval on a testing
315       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
316       0.2.0.8-alpha.
317     - Enforce multiplicity rules when parsing annotations. Bugfix on
318       0.2.0.8-alpha. Found by piebeer.
319     - Allow handshaking OR connections to take a full KeepalivePeriod
320       seconds to handshake. Previously, we would close them after
321       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
322       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
323       for analysis help.
324     - When building with --enable-gcc-warnings on OpenBSD, disable
325       warnings in system headers. This makes --enable-gcc-warnings
326       pass on OpenBSD 4.8.
328   o Minor features:
329     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
330       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
331       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
332       Servers can start sending this code when enough clients recognize
333       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
334     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
335       Patch from mingw-san.
337   o Removed files:
338     - Remove the old debian/ directory from the main Tor distribution.
339       The official Tor-for-debian git repository lives at the URL
340       https://git.torproject.org/debian/tor.git
341     - Stop shipping the old doc/website/ directory in the tarball. We
342       changed the website format in late 2010, and what we shipped in
343       0.2.1.26 really wasn't that useful anyway.
346 Changes in version 0.2.2.19-alpha - 2010-11-22
347   Yet another OpenSSL security patch broke its compatibility with Tor:
348   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
350   o Major bugfixes:
351     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
352       No longer set the tlsext_host_name extension on server SSL objects;
353       but continue to set it on client SSL objects. Our goal in setting
354       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
355       bugfix on 0.2.1.1-alpha.
357   o Minor bugfixes:
358     - Try harder not to exceed the maximum length of 50 KB when writing
359       statistics to extra-info descriptors. This bug was triggered by very
360       fast relays reporting exit-port, entry, and dirreq statistics.
361       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
362     - Publish a router descriptor even if generating an extra-info
363       descriptor fails. Previously we would not publish a router
364       descriptor without an extra-info descriptor; this can cause fast
365       exit relays collecting exit-port statistics to drop from the
366       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
369 Changes in version 0.2.2.18-alpha - 2010-11-16
370   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
371   us lately, makes unpublished bridge relays able to detect their IP
372   address, and fixes a wide variety of other bugs to get us much closer
373   to a stable release.
375   o Major bugfixes:
376     - Do even more to reject (and not just ignore) annotations on
377       router descriptors received anywhere but from the cache. Previously
378       we would ignore such annotations at first, but cache them to disk
379       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
380     - Do not log messages to the controller while shrinking buffer
381       freelists. Doing so would sometimes make the controller connection
382       try to allocate a buffer chunk, which would mess up the internals
383       of the freelist and cause an assertion failure. Fixes bug 1125;
384       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
385     - Learn our external IP address when we're a relay or bridge, even if
386       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
387       where we introduced bridge relays that don't need to publish to
388       be useful. Fixes bug 2050.
389     - Maintain separate TLS contexts and certificates for incoming and
390       outgoing connections in bridge relays. Previously we would use the
391       same TLS contexts and certs for incoming and outgoing connections.
392       Bugfix on 0.2.0.3-alpha; addresses bug 988.
393     - Maintain separate identity keys for incoming and outgoing TLS
394       contexts in bridge relays. Previously we would use the same
395       identity keys for incoming and outgoing TLS contexts. Bugfix on
396       0.2.0.3-alpha; addresses the other half of bug 988.
397     - Avoid an assertion failure when we as an authority receive a
398       duplicate upload of a router descriptor that we already have,
399       but which we previously considered an obsolete descriptor.
400       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
401     - Avoid a crash bug triggered by looking at a dangling pointer while
402       setting the network status consensus. Found by Robert Ransom.
403       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
404     - Fix a logic error where servers that _didn't_ act as exits would
405       try to keep their server lists more aggressively up to date than
406       exits, when it was supposed to be the other way around. Bugfix
407       on 0.2.2.17-alpha.
409   o Minor bugfixes (on Tor 0.2.1.x and earlier):
410     - When we're trying to guess whether we know our IP address as
411       a relay, we would log various ways that we failed to guess
412       our address, but never log that we ended up guessing it
413       successfully. Now add a log line to help confused and anxious
414       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
415     - Bring the logic that gathers routerinfos and assesses the
416       acceptability of circuits into line. This prevents a Tor OP from
417       getting locked in a cycle of choosing its local OR as an exit for a
418       path (due to a .exit request) and then rejecting the circuit because
419       its OR is not listed yet. It also prevents Tor clients from using an
420       OR running in the same instance as an exit (due to a .exit request)
421       if the OR does not meet the same requirements expected of an OR
422       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
423     - Correctly describe errors that occur when generating a TLS object.
424       Previously we would attribute them to a failure while generating a
425       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
426       bug 1994.
427     - Enforce multiplicity rules when parsing annotations. Bugfix on
428       0.2.0.8-alpha. Found by piebeer.
429     - Fix warnings that newer versions of autoconf produced during
430       ./autogen.sh. These warnings appear to be harmless in our case,
431       but they were extremely verbose. Fixes bug 2020.
433   o Minor bugfixes (on Tor 0.2.2.x):
434     - Enable protection of small arrays whenever we build with gcc
435       hardening features, not only when also building with warnings
436       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
438   o Minor features:
439     - Make hidden services work better in private Tor networks by not
440       requiring any uptime to join the hidden service descriptor
441       DHT. Implements ticket 2088.
442     - Rate-limit the "your application is giving Tor only an IP address"
443       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
444     - When AllowSingleHopExits is set, print a warning to explain to the
445       relay operator why most clients are avoiding her relay.
446     - Update to the November 1 2010 Maxmind GeoLite Country database.
448   o Code simplifications and refactoring:
449     - When we fixed bug 1038 we had to put in a restriction not to send
450       RELAY_EARLY cells on rend circuits. This was necessary as long
451       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
452       active. Now remove this obsolete check. Resolves bug 2081.
453     - Some options used different conventions for uppercasing of acronyms
454       when comparing manpage and source. Fix those in favor of the
455       manpage, as it makes sense to capitalize acronyms.
456     - Remove the torrc.complete file. It hasn't been kept up to date
457       and users will have better luck checking out the manpage.
458     - Remove the obsolete "NoPublish" option; it has been flagged
459       as obsolete and has produced a warning since 0.1.1.18-rc.
460     - Remove everything related to building the expert bundle for OS X.
461       It has confused many users, doesn't work right on OS X 10.6,
462       and is hard to get rid of once installed. Resolves bug 1274.
465 Changes in version 0.2.2.17-alpha - 2010-09-30
466   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
467   to use one-hop circuits (which can put the exit relays at higher risk,
468   plus unbalance the network); fixes a big bug in bandwidth accounting
469   for relays that want to limit their monthly bandwidth use; fixes a
470   big pile of bugs in how clients tolerate temporary network failure;
471   and makes our adaptive circuit build timeout feature (which improves
472   client performance if your network is fast while not breaking things
473   if your network is slow) better handle bad networks.
475   o Major features:
476     - Exit relays now try harder to block exit attempts from unknown
477       relays, to make it harder for people to use them as one-hop proxies
478       a la tortunnel. Controlled by the refuseunknownexits consensus
479       parameter (currently enabled), or you can override it on your
480       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
482   o Major bugfixes (0.2.1.x and earlier):
483     - Fix a bug in bandwidth accounting that could make us use twice
484       the intended bandwidth when our interval start changes due to
485       daylight saving time. Now we tolerate skew in stored vs computed
486       interval starts: if the start of the period changes by no more than
487       50% of the period's duration, we remember bytes that we transferred
488       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
489     - Always search the Windows system directory for system DLLs, and
490       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
491     - When you're using bridges and your network goes away and your
492       bridges get marked as down, recover when you attempt a new socks
493       connection (if the network is back), rather than waiting up to an
494       hour to try fetching new descriptors for your bridges. Bugfix on
495       0.2.0.3-alpha; fixes bug 1981.
497   o Major bugfixes (on 0.2.2.x):
498     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
499       bug 1797.
500     - Fix a segfault that could happen when operating a bridge relay with
501       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
502     - The consensus bandwidth-weights (used by clients to choose fast
503       relays) entered an unexpected edge case in September where
504       Exits were much scarcer than Guards, resulting in bad weight
505       recommendations. Now we compute them using new constraints that
506       should succeed in all cases. Also alter directory authorities to
507       not include the bandwidth-weights line if they fail to produce
508       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
509     - When weighting bridges during path selection, we used to trust
510       the bandwidths they provided in their descriptor, only capping them
511       at 10MB/s. This turned out to be problematic for two reasons:
512       Bridges could claim to handle a lot more traffic then they
513       actually would, thus making more clients pick them and have a
514       pretty effective DoS attack. The other issue is that new bridges
515       that might not have a good estimate for their bw capacity yet
516       would not get used at all unless no other bridges are available
517       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
519   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
520     - Ignore cannibalized circuits when recording circuit build times.
521       This should provide for a minor performance improvement for hidden
522       service users using 0.2.2.14-alpha, and should remove two spurious
523       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
524     - Simplify the logic that causes us to decide if the network is
525       unavailable for purposes of recording circuit build times. If we
526       receive no cells whatsoever for the entire duration of a circuit's
527       full measured lifetime, the network is probably down. Also ignore
528       one-hop directory fetching circuit timeouts when calculating our
529       circuit build times. These changes should hopefully reduce the
530       cases where we see ridiculous circuit build timeouts for people
531       with spotty wireless connections. Fixes part of bug 1772; bugfix
532       on 0.2.2.2-alpha.
533     - Prevent the circuit build timeout from becoming larger than
534       the maximum build time we have ever seen. Also, prevent the time
535       period for measurement circuits from becoming larger than twice that
536       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
538   o Minor features:
539     - When we run out of directory information such that we can't build
540       circuits, but then get enough that we can build circuits, log when
541       we actually construct a circuit, so the user has a better chance of
542       knowing what's going on. Fixes bug 1362.
543     - Be more generous with how much bandwidth we'd use up (with
544       accounting enabled) before entering "soft hibernation". Previously,
545       we'd refuse new connections and circuits once we'd used up 95% of
546       our allotment. Now, we use up 95% of our allotment, AND make sure
547       that we have no more than 500MB (or 3 hours of expected traffic,
548       whichever is lower) remaining before we enter soft hibernation.
549     - If we've configured EntryNodes and our network goes away and/or all
550       our entrynodes get marked down, optimistically retry them all when
551       a new socks application request appears. Fixes bug 1882.
552     - Add some more defensive programming for architectures that can't
553       handle unaligned integer accesses. We don't know of any actual bugs
554       right now, but that's the best time to fix them. Fixes bug 1943.
555     - Support line continuations in the torrc config file. If a line
556       ends with a single backslash character, the newline is ignored, and
557       the configuration value is treated as continuing on the next line.
558       Resolves bug 1929.
560   o Minor bugfixes (on 0.2.1.x and earlier):
561     - For bandwidth accounting, calculate our expected bandwidth rate
562       based on the time during which we were active and not in
563       soft-hibernation during the last interval. Previously, we were
564       also considering the time spent in soft-hibernation. If this
565       was a long time, we would wind up underestimating our bandwidth
566       by a lot, and skewing our wakeup time towards the start of the
567       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
569   o Minor bugfixes (on 0.2.2.x):
570     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
571       which were disabled by the circuit build timeout changes in
572       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
573     - Make sure we don't warn about missing bandwidth weights when
574       choosing bridges or other relays not in the consensus. Bugfix on
575       0.2.2.10-alpha; fixes bug 1805.
576     - In our logs, do not double-report signatures from unrecognized
577       authorities both as "from unknown authority" and "not
578       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
581 Changes in version 0.2.2.16-alpha - 2010-09-17
582   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
583   evident at exit relays), and also continues to resolve all the little
584   bugs that have been filling up trac lately.
586   o Major bugfixes (stream-level fairness):
587     - When receiving a circuit-level SENDME for a blocked circuit, try
588       to package cells fairly from all the streams that had previously
589       been blocked on that circuit. Previously, we had started with the
590       oldest stream, and allowed each stream to potentially exhaust
591       the circuit's package window. This gave older streams on any
592       given circuit priority over newer ones. Fixes bug 1937. Detected
593       originally by Camilo Viecco. This bug was introduced before the
594       first Tor release, in svn commit r152: it is the new winner of
595       the longest-lived bug prize.
596     - When the exit relay got a circuit-level sendme cell, it started
597       reading on the exit streams, even if had 500 cells queued in the
598       circuit queue already, so the circuit queue just grew and grew in
599       some cases. We fix this by not re-enabling reading on receipt of a
600       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
601       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
602       "yetonetime".
603     - Newly created streams were allowed to read cells onto circuits,
604       even if the circuit's cell queue was blocked and waiting to drain.
605       This created potential unfairness, as older streams would be
606       blocked, but newer streams would gladly fill the queue completely.
607       We add code to detect this situation and prevent any stream from
608       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
609       fixes bug 1298.
611   o Minor features:
612     - Update to the September 1 2010 Maxmind GeoLite Country database.
613     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
614       not. This would lead to a cookie that is still not group readable.
615       Closes bug 1843. Suggested by katmagic.
616     - When logging a rate-limited warning, we now mention how many messages
617       got suppressed since the last warning.
618     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
619       do individual connection-level rate limiting of clients. The torrc
620       config options with the same names trump the consensus params, if
621       both are present. Replaces the old "bwconnrate" and "bwconnburst"
622       consensus params which were broken from 0.2.2.7-alpha through
623       0.2.2.14-alpha. Closes bug 1947.
624     - When a router changes IP address or port, authorities now launch
625       a new reachability test for it. Implements ticket 1899.
626     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
627       2 no signature, 4 required" messages about consensus signatures
628       easier to read, and make sure they get logged at the same severity
629       as the messages explaining which keys are which. Fixes bug 1290.
630     - Don't warn when we have a consensus that we can't verify because
631       of missing certificates, unless those certificates are ones
632       that we have been trying and failing to download. Fixes bug 1145.
633     - If you configure your bridge with a known identity fingerprint,
634       and the bridge authority is unreachable (as it is in at least
635       one country now), fall back to directly requesting the descriptor
636       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
637       closes bug 1138.
638     - When building with --enable-gcc-warnings on OpenBSD, disable
639       warnings in system headers. This makes --enable-gcc-warnings
640       pass on OpenBSD 4.8.
642   o Minor bugfixes (on 0.2.1.x and earlier):
643     - Authorities will now attempt to download consensuses if their
644       own efforts to make a live consensus have failed. This change
645       means authorities that restart will fetch a valid consensus, and
646       it means authorities that didn't agree with the current consensus
647       will still fetch and serve it if it has enough signatures. Bugfix
648       on 0.2.0.9-alpha; fixes bug 1300.
649     - Ensure DNS requests launched by "RESOLVE" commands from the
650       controller respect the __LeaveStreamsUnattached setconf options. The
651       same goes for requests launched via DNSPort or transparent
652       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
653     - Allow handshaking OR connections to take a full KeepalivePeriod
654       seconds to handshake. Previously, we would close them after
655       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
656       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
657       for analysis help.
658     - Rate-limit "Failed to hand off onionskin" warnings.
659     - Never relay a cell for a circuit we have already destroyed.
660       Between marking a circuit as closeable and finally closing it,
661       it may have been possible for a few queued cells to get relayed,
662       even though they would have been immediately dropped by the next
663       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
664     - Never queue a cell for a circuit that's already been marked
665       for close.
666     - Never vote for a server as "Running" if we have a descriptor for
667       it claiming to be hibernating, and that descriptor was published
668       more recently than our last contact with the server. Bugfix on
669       0.2.0.3-alpha; fixes bug 911.
670     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
671       bug 1848.
673   o Minor bugfixes (on 0.2.2.x):
674     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
675       down if a directory fetch fails and you've configured either
676       bridges or EntryNodes. The intent was to mark the relay as down
677       _unless_ you're using bridges or EntryNodes, since if you are
678       then you could quickly run out of entry points.
679     - Fix the Windows directory-listing code. A bug introduced in
680       0.2.2.14-alpha could make Windows directory servers forget to load
681       some of their cached v2 networkstatus files.
682     - Really allow clients to use relays as bridges. Fixes bug 1776;
683       bugfix on 0.2.2.15-alpha.
684     - Demote a warn to info that happens when the CellStatistics option
685       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
686       Reported by Moritz Bartl.
687     - On Windows, build correctly either with or without Unicode support.
688       This is necessary so that Tor can support fringe platforms like
689       Windows 98 (which has no Unicode), or Windows CE (which has no
690       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
692   o Testing
693     - Add a unit test for cross-platform directory-listing code.
696 Changes in version 0.2.2.15-alpha - 2010-08-18
697   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
698   fixes a variety of other bugs that were preventing performance
699   experiments from moving forward, fixes several bothersome memory leaks,
700   and generally closes a lot of smaller bugs that have been filling up
701   trac lately.
703   o Major bugfixes:
704     - Stop assigning the HSDir flag to relays that disable their
705       DirPort (and thus will refuse to answer directory requests). This
706       fix should dramatically improve the reachability of hidden services:
707       hidden services and hidden service clients pick six HSDir relays
708       to store and retrieve the hidden service descriptor, and currently
709       about half of the HSDir relays will refuse to work. Bugfix on
710       0.2.0.10-alpha; fixes part of bug 1693.
711     - The PerConnBWRate and Burst config options, along with the
712       bwconnrate and bwconnburst consensus params, initialized each conn's
713       token bucket values only when the connection is established. Now we
714       update them if the config options change, and update them every time
715       we get a new consensus. Otherwise we can encounter an ugly edge
716       case where we initialize an OR conn to client-level bandwidth,
717       but then later the relay joins the consensus and we leave it
718       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
719     - Fix a regression that caused Tor to rebind its ports if it receives
720       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
722   o Major features:
723     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
724       should give us approximately 40-50% more Guard-flagged nodes,
725       improving the anonymity the Tor network can provide and also
726       decreasing the dropoff in throughput that relays experience when
727       they first get the Guard flag.
728     - Allow enabling or disabling the *Statistics config options while
729       Tor is running.
731   o Minor features:
732     - Update to the August 1 2010 Maxmind GeoLite Country database.
733     - Have the controller interface give a more useful message than
734       "Internal Error" in response to failed GETINFO requests.
735     - Warn when the same option is provided more than once in a torrc
736       file, on the command line, or in a single SETCONF statement, and
737       the option is one that only accepts a single line. Closes bug 1384.
738     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
739       Patch from mingw-san.
740     - Add support for the country code "{??}" in torrc options like
741       ExcludeNodes, to indicate all routers of unknown country. Closes
742       bug 1094.
743     - Relays report the number of bytes spent on answering directory
744       requests in extra-info descriptors similar to {read,write}-history.
745       Implements enhancement 1790.
747   o Minor bugfixes (on 0.2.1.x and earlier):
748     - Complain if PublishServerDescriptor is given multiple arguments that
749       include 0 or 1. This configuration will be rejected in the future.
750       Bugfix on 0.2.0.1-alpha; closes bug 1107.
751     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
752       Bugfix on 0.2.0.13-alpha; closes bug 928.
753     - Change "Application request when we're believed to be offline."
754       notice to "Application request when we haven't used client
755       functionality lately.", to clarify that it's not an error. Bugfix
756       on 0.0.9.3; fixes bug 1222.
757     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
758       would return "551 Internal error" rather than "552 Unrecognized key
759       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
760     - Users can't configure a regular relay to be their bridge. It didn't
761       work because when Tor fetched the bridge descriptor, it found
762       that it already had it, and didn't realize that the purpose of the
763       descriptor had changed. Now we replace routers with a purpose other
764       than bridge with bridge descriptors when fetching them. Bugfix on
765       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
766       refetch the descriptor with router purpose 'general', disabling
767       it as a bridge.
768     - Fix a rare bug in rend_fn unit tests: we would fail a test when
769       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
770       on 0.2.0.10-alpha; fixes bug 1808.
771     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
772       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
773       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
774       Servers can start sending this code when enough clients recognize
775       it. Also update the spec to reflect this new reason. Bugfix on
776       0.1.0.1-rc; fixes part of bug 1793.
777     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
778       when we switch from being a public relay to a bridge. Otherwise
779       there will still be clients that see the relay in their consensus,
780       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
781       932 even more.
782     - Instead of giving an assertion failure on an internal mismatch
783       on estimated freelist size, just log a BUG warning and try later.
784       Mitigates but does not fix bug 1125.
785     - Fix an assertion failure that could occur in caches or bridge users
786       when using a very short voting interval on a testing network.
787       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
789   o Minor bugfixes (on 0.2.2.x):
790     - Alter directory authorities to always consider Exit-flagged nodes
791       as potential Guard nodes in their votes. The actual decision to
792       use Exits as Guards is done in the consensus bandwidth weights.
793       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
794     - When the controller is reporting the purpose of circuits that
795       didn't finish building before the circuit build timeout, it was
796       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
797     - Our libevent version parsing code couldn't handle versions like
798       1.4.14b-stable and incorrectly warned the user about using an
799       old and broken version of libevent. Treat 1.4.14b-stable like
800       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
801       on 0.2.2.1-alpha.
802     - Don't use substitution references like $(VAR:MOD) when
803       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
804       '$(:x)' to 'x' rather than the empty string. This bites us in
805       doc/ when configured with --disable-asciidoc. Bugfix on
806       0.2.2.9-alpha; fixes bug 1773.
807     - Remove a spurious hidden service server-side log notice about
808       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
809       bug 1741.
810     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
811       fixes bug 1832.
812     - Correctly report written bytes on linked connections. Found while
813       implementing 1790. Bugfix on 0.2.2.4-alpha.
814     - Fix three memory leaks: one in circuit_build_times_parse_state(),
815       one in dirvote_add_signatures_to_pending_consensus(), and one every
816       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
817       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
819   o Code simplifications and refactoring:
820     - Take a first step towards making or.h smaller by splitting out
821       function definitions for all source files in src/or/. Leave
822       structures and defines in or.h for now.
823     - Remove a bunch of unused function declarations as well as a block of
824       #if 0'd code from the unit tests. Closes bug 1824.
825     - New unit tests for exit-port history statistics; refactored exit
826       statistics code to be more easily tested.
827     - Remove the old debian/ directory from the main Tor distribution.
828       The official Tor-for-debian git repository lives at the URL
829       https://git.torproject.org/debian/tor.git
832 Changes in version 0.2.2.14-alpha - 2010-07-12
833   Tor 0.2.2.14-alpha greatly improves client-side handling of
834   circuit build timeouts, which are used to estimate speed and improve
835   performance. We also move to a much better GeoIP database, port Tor to
836   Windows CE, introduce new compile flags that improve code security,
837   add an eighth v3 directory authority, and address a lot of more
838   minor issues.
840   o Major bugfixes:
841     - Tor directory authorities no longer crash when started with a
842       cached-microdesc-consensus file in their data directory. Bugfix
843       on 0.2.2.6-alpha; fixes bug 1532.
844     - Treat an unset $HOME like an empty $HOME rather than triggering an
845       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
846     - Ignore negative and large circuit build timeout values that can
847       happen during a suspend or hibernate. These values caused various
848       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
849     - Alter calculation of Pareto distribution parameter 'Xm' for
850       Circuit Build Timeout learning to use the weighted average of the
851       top N=3 modes (because we have three entry guards). Considering
852       multiple modes should improve the timeout calculation in some cases,
853       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
854       fixes bug 1335.
855     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
856       right censored distribution model. This approach improves over the
857       synthetic timeout generation approach that was producing insanely
858       high timeout values. Now we calculate build timeouts using truncated
859       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
860     - Do not close circuits that are under construction when they reach
861       the circuit build timeout. Instead, leave them building (but do not
862       use them) for up until the time corresponding to the 95th percentile
863       on the Pareto CDF or 60 seconds, whichever is greater. This is done
864       to provide better data for the new Pareto model. This percentile
865       can be controlled by the consensus.
867   o Major features:
868     - Move to the June 2010 Maxmind GeoLite country db (rather than the
869       June 2009 ip-to-country GeoIP db) for our statistics that count
870       how many users relays are seeing from each country. Now we have
871       more accurate data for many African countries.
872     - Port Tor to build and run correctly on Windows CE systems, using
873       the wcecompat library. Contributed by Valerio Lupi.
874     - New "--enable-gcc-hardening" ./configure flag (off by default)
875       to turn on gcc compile time hardening options. It ensures
876       that signed ints have defined behavior (-fwrapv), enables
877       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
878       with canaries (-fstack-protector-all), turns on ASLR protection if
879       supported by the kernel (-fPIE, -pie), and adds additional security
880       related warnings. Verified to work on Mac OS X and Debian Lenny.
881     - New "--enable-linker-hardening" ./configure flag (off by default)
882       to turn on ELF specific hardening features (relro, now). This does
883       not work with Mac OS X or any other non-ELF binary format.
885   o New directory authorities:
886     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
887       authority.
889   o Minor features:
890     - New config option "WarnUnsafeSocks 0" disables the warning that
891       occurs whenever Tor receives only an IP address instead of a
892       hostname. Setups that do DNS locally over Tor are fine, and we
893       shouldn't spam the logs in that case.
894     - Convert the HACKING file to asciidoc, and add a few new sections
895       to it, explaining how we use Git, how we make changelogs, and
896       what should go in a patch.
897     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
898       event, to give information on the current rate of circuit timeouts
899       over our stored history.
900     - Add ability to disable circuit build time learning via consensus
901       parameter and via a LearnCircuitBuildTimeout config option. Also
902       automatically disable circuit build time calculation if we are
903       either a AuthoritativeDirectory, or if we fail to write our state
904       file. Fixes bug 1296.
905     - More gracefully handle corrupt state files, removing asserts
906       in favor of saving a backup and resetting state.
907     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
908       system headers.
910   o Minor bugfixes:
911     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
912       enabled.
913     - When a2x fails, mention that the user could disable manpages instead
914       of trying to fix their asciidoc installation.
915     - Where available, use Libevent 2.0's periodic timers so that our
916       once-per-second cleanup code gets called even more closely to
917       once per second than it would otherwise. Fixes bug 943.
918     - If you run a bridge that listens on multiple IP addresses, and
919       some user configures a bridge address that uses a different IP
920       address than your bridge writes in its router descriptor, and the
921       user doesn't specify an identity key, their Tor would discard the
922       descriptor because "it isn't one of our configured bridges", and
923       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
924       Bugfix on 0.2.0.3-alpha.
925     - If OpenSSL fails to make a duplicate of a private or public key, log
926       an error message and try to exit cleanly. May help with debugging
927       if bug 1209 ever remanifests.
928     - Save a couple bytes in memory allocation every time we escape
929       certain characters in a string. Patch from Florian Zumbiehl.
930     - Make it explicit that we don't cannibalize one-hop circuits. This
931       happens in the wild, but doesn't turn out to be a problem because
932       we fortunately don't use those circuits. Many thanks to outofwords
933       for the initial analysis and to swissknife who confirmed that
934       two-hop circuits are actually created.
935     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
936       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
937     - Eliminate a case where a circuit build time warning was displayed
938       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
941 Changes in version 0.2.1.26 - 2010-05-02
942   Tor 0.2.1.26 addresses the recent connection and memory overload
943   problems we've been seeing on relays, especially relays with their
944   DirPort open. If your relay has been crashing, or you turned it off
945   because it used too many resources, give this release a try.
947   This release also fixes yet another instance of broken OpenSSL libraries
948   that was causing some relays to drop out of the consensus.
950   o Major bugfixes:
951     - Teach relays to defend themselves from connection overload. Relays
952       now close idle circuits early if it looks like they were intended
953       for directory fetches. Relays are also more aggressive about closing
954       TLS connections that have no circuits on them. Such circuits are
955       unlikely to be re-used, and tens of thousands of them were piling
956       up at the fast relays, causing the relays to run out of sockets
957       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
958       their directory fetches over TLS).
959     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
960       that claim to be earlier than 0.9.8m, but which have in reality
961       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
962       behavior. Possible fix for some cases of bug 1346.
963     - Directory mirrors were fetching relay descriptors only from v2
964       directory authorities, rather than v3 authorities like they should.
965       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
966       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
968   o Minor bugfixes:
969     - Finally get rid of the deprecated and now harmful notion of "clique
970       mode", where directory authorities maintain TLS connections to
971       every other relay.
973   o Testsuite fixes:
974     - In the util/threads test, no longer free the test_mutex before all
975       worker threads have finished. Bugfix on 0.2.1.6-alpha.
976     - The master thread could starve the worker threads quite badly on
977       certain systems, causing them to run only partially in the allowed
978       window. This resulted in test failures. Now the master thread sleeps
979       occasionally for a few microseconds while the two worker-threads
980       compete for the mutex. Bugfix on 0.2.0.1-alpha.
983 Changes in version 0.2.2.13-alpha - 2010-04-24
984   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
985   problems we've been seeing on relays, especially relays with their
986   DirPort open. If your relay has been crashing, or you turned it off
987   because it used too many resources, give this release a try.
989   o Major bugfixes:
990     - Teach relays to defend themselves from connection overload. Relays
991       now close idle circuits early if it looks like they were intended
992       for directory fetches. Relays are also more aggressive about closing
993       TLS connections that have no circuits on them. Such circuits are
994       unlikely to be re-used, and tens of thousands of them were piling
995       up at the fast relays, causing the relays to run out of sockets
996       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
997       their directory fetches over TLS).
999   o Minor features:
1000     - Finally get rid of the deprecated and now harmful notion of "clique
1001       mode", where directory authorities maintain TLS connections to
1002       every other relay.
1003     - Directory authorities now do an immediate reachability check as soon
1004       as they hear about a new relay. This change should slightly reduce
1005       the time between setting up a relay and getting listed as running
1006       in the consensus. It should also improve the time between setting
1007       up a bridge and seeing use by bridge users.
1008     - Directory authorities no longer launch a TLS connection to every
1009       relay as they startup. Now that we have 2k+ descriptors cached,
1010       the resulting network hiccup is becoming a burden. Besides,
1011       authorities already avoid voting about Running for the first half
1012       hour of their uptime.
1015 Changes in version 0.2.2.12-alpha - 2010-04-20
1016   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
1017   handle and vote on descriptors. It was causing relays to drop out of
1018   the consensus.
1020   o Major bugfixes:
1021     - Many relays have been falling out of the consensus lately because
1022       not enough authorities know about their descriptor for them to get
1023       a majority of votes. When we deprecated the v2 directory protocol,
1024       we got rid of the only way that v3 authorities can hear from each
1025       other about other descriptors. Now authorities examine every v3
1026       vote for new descriptors, and fetch them from that authority. Bugfix
1027       on 0.2.1.23.
1028     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
1029       and a warning in or.h related to bandwidth_weight_rule_t that
1030       prevented clean compile on OS X. Fixes bug 1363; bugfix on
1031       0.2.2.11-alpha.
1032     - Fix a segfault on relays when DirReqStatistics is enabled
1033       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
1034       0.2.2.11-alpha.
1036   o Minor bugfixes:
1037     - Demote a confusing TLS warning that relay operators might get when
1038       someone tries to talk to their OrPort. It is neither the operator's
1039       fault nor can they do anything about it. Fixes bug 1364; bugfix
1040       on 0.2.0.14-alpha.
1043 Changes in version 0.2.2.11-alpha - 2010-04-15
1044   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
1045   libraries that was causing some relays to drop out of the consensus.
1047   o Major bugfixes:
1048     - Directory mirrors were fetching relay descriptors only from v2
1049       directory authorities, rather than v3 authorities like they should.
1050       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
1051       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
1052     - Fix a parsing error that made every possible value of
1053       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
1054       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
1055       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
1056       about the option without breaking older ones.
1057     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
1058       that claim to be earlier than 0.9.8m, but which have in reality
1059       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
1060       behavior. Possible fix for some cases of bug 1346.
1062   o Minor features:
1063     - Experiment with a more aggressive approach to preventing clients
1064       from making one-hop exit streams. Exit relays who want to try it
1065       out can set "RefuseUnknownExits 1" in their torrc, and then look
1066       for "Attempt by %s to open a stream" log messages. Let us know
1067       how it goes!
1068     - Add support for statically linking zlib by specifying
1069       --enable-static-zlib, to go with our support for statically linking
1070       openssl and libevent. Resolves bug 1358.
1072   o Minor bugfixes:
1073     - Fix a segfault that happens whenever a Tor client that is using
1074       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
1075       fixes bug 1341.
1076     - When we cleaned up the contrib/tor-exit-notice.html file, we left
1077       out the first line. Fixes bug 1295.
1078     - When building the manpage from a tarball, we required asciidoc, but
1079       the asciidoc -> roff/html conversion was already done for the
1080       tarball. Make 'make' complain only when we need asciidoc (either
1081       because we're compiling directly from git, or because we altered
1082       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
1083     - When none of the directory authorities vote on any params, Tor
1084       segfaulted when trying to make the consensus from the votes. We
1085       didn't trigger the bug in practice, because authorities do include
1086       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
1088   o Testsuite fixes:
1089     - In the util/threads test, no longer free the test_mutex before all
1090       worker threads have finished. Bugfix on 0.2.1.6-alpha.
1091     - The master thread could starve the worker threads quite badly on
1092       certain systems, causing them to run only partially in the allowed
1093       window. This resulted in test failures. Now the master thread sleeps
1094       occasionally for a few microseconds while the two worker-threads
1095       compete for the mutex. Bugfix on 0.2.0.1-alpha.
1098 Changes in version 0.2.2.10-alpha - 2010-03-07
1099   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
1100   could prevent relays from guessing their IP address correctly. It also
1101   starts the groundwork for another client-side performance boost, since
1102   currently we're not making efficient use of relays that have both the
1103   Guard flag and the Exit flag.
1105   o Major bugfixes:
1106     - Fix a regression from our patch for bug 1244 that caused relays
1107       to guess their IP address incorrectly if they didn't set Address
1108       in their torrc and/or their address fails to resolve. Bugfix on
1109       0.2.2.9-alpha; fixes bug 1269.
1111   o Major features (performance):
1112     - Directory authorities now compute consensus weightings that instruct
1113       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
1114       and no flag. Clients that use these weightings will distribute
1115       network load more evenly across these different relay types. The
1116       weightings are in the consensus so we can change them globally in
1117       the future. Extra thanks to "outofwords" for finding some nasty
1118       security bugs in the first implementation of this feature.
1120   o Minor features (performance):
1121     - Always perform router selections using weighted relay bandwidth,
1122       even if we don't need a high capacity circuit at the time. Non-fast
1123       circuits now only differ from fast ones in that they can use relays
1124       not marked with the Fast flag. This "feature" could turn out to
1125       be a horrible bug; we should investigate more before it goes into
1126       a stable release.
1128   o Minor features:
1129     - Allow disabling building of the manpages. Skipping the manpage
1130       speeds up the build considerably.
1132   o Minor bugfixes (on 0.2.2.x):
1133     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
1134       Bugfix on 0.2.2.9-alpha.
1135     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
1136       config option. Bugfix on 0.2.2.7-alpha.
1137     - Ship the asciidoc-helper file in the tarball, so that people can
1138       build from source if they want to, and touching the .1.txt files
1139       doesn't break the build. Bugfix on 0.2.2.9-alpha.
1141   o Minor bugfixes (on 0.2.1.x or earlier):
1142     - Fix a dereference-then-NULL-check sequence when publishing
1143       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
1144       bug 1255.
1145     - Fix another dereference-then-NULL-check sequence. Bugfix on
1146       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
1147     - Make sure we treat potentially not NUL-terminated strings correctly.
1148       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
1150   o Code simplifications and refactoring:
1151     - Fix some urls in the exit notice file and make it XHTML1.1 strict
1152       compliant. Based on a patch from Christian Kujau.
1153     - Don't use sed in asciidoc-helper anymore.
1154     - Make the build process fail if asciidoc cannot be found and
1155       building with asciidoc isn't disabled.
1158 Changes in version 0.2.2.9-alpha - 2010-02-22
1159   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
1160   location of a directory authority, and cleans up a bunch of small bugs.
1162   o Directory authority changes:
1163     - Change IP address for dannenberg (v3 directory authority), and
1164       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
1165       service directory authority) from the list.
1167   o Major bugfixes:
1168     - Make Tor work again on the latest OS X: when deciding whether to
1169       use strange flags to turn TLS renegotiation on, detect the OpenSSL
1170       version at run-time, not compile time. We need to do this because
1171       Apple doesn't update its dev-tools headers when it updates its
1172       libraries in a security patch.
1173     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
1174       that could happen on 32-bit platforms with 64-bit time_t. Also fix
1175       a memory leak when requesting a hidden service descriptor we've
1176       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
1177       by aakova.
1178     - Authorities could be tricked into giving out the Exit flag to relays
1179       that didn't allow exiting to any ports. This bug could screw
1180       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
1181       1238. Bug discovered by Martin Kowalczyk.
1182     - When freeing a session key, zero it out completely. We only zeroed
1183       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
1184       patched by ekir. Fixes bug 1254.
1186   o Minor bugfixes:
1187     - Fix static compilation by listing the openssl libraries in the right
1188       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
1189     - Resume handling .exit hostnames in a special way: originally we
1190       stripped the .exit part and used the requested exit relay. In
1191       0.2.2.1-alpha we stopped treating them in any special way, meaning
1192       if you use a .exit address then Tor will pass it on to the exit
1193       relay. Now we reject the .exit stream outright, since that behavior
1194       might be more expected by the user. Found and diagnosed by Scott
1195       Bennett and Downie on or-talk.
1196     - Don't spam the controller with events when we have no file
1197       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
1198       for log messages was already solved from bug 748.)
1199     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
1200       "memcpyfail".
1201     - Make the DNSPort option work with libevent 2.x. Don't alter the
1202       behaviour for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
1203     - Emit a GUARD DROPPED controller event for a case we missed.
1204     - Make more fields in the controller protocol case-insensitive, since
1205       control-spec.txt said they were.
1206     - Refactor resolve_my_address() to not use gethostbyname() anymore.
1207       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
1208     - Fix a spec conformance issue: the network-status-version token
1209       must be the first token in a v3 consensus or vote. Discovered by
1210       parakeep. Bugfix on 0.2.0.3-alpha.
1212   o Code simplifications and refactoring:
1213     - Generate our manpage and HTML documentation using Asciidoc. This
1214       change should make it easier to maintain the documentation, and
1215       produce nicer HTML.
1216     - Remove the --enable-iphone option. According to reports from Marco
1217       Bonetti, Tor builds fine without any special tweaking on recent
1218       iPhone SDK versions.
1219     - Removed some unnecessary files from the source distribution. The
1220       AUTHORS file has now been merged into the people page on the
1221       website. The roadmaps and design doc can now be found in the
1222       projects directory in svn.
1223     - Enabled various circuit build timeout constants to be controlled
1224       by consensus parameters. Also set better defaults for these
1225       parameters based on experimentation on broadband and simulated
1226       high latency links.
1228   o Minor features:
1229     - The 'EXTENDCIRCUIT' control port command can now be used with
1230       a circ id of 0 and no path. This feature will cause Tor to build
1231       a new 'fast' general purpose circuit using its own path selection
1232       algorithms.
1233     - Added a BUILDTIMEOUT_SET controller event to describe changes
1234       to the circuit build timeout.
1235     - Future-proof the controller protocol a bit by ignoring keyword
1236       arguments we do not recognize.
1237     - Expand homedirs passed to tor-checkkey. This should silence a
1238       coverity complaint about passing a user-supplied string into
1239       open() without checking it.
1242 Changes in version 0.2.1.25 - 2010-03-16
1243   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
1244   prevent relays from guessing their IP address correctly. It also fixes
1245   several minor potential security bugs.
1247   o Major bugfixes:
1248     - Fix a regression from our patch for bug 1244 that caused relays
1249       to guess their IP address incorrectly if they didn't set Address
1250       in their torrc and/or their address fails to resolve. Bugfix on
1251       0.2.1.23; fixes bug 1269.
1252     - When freeing a session key, zero it out completely. We only zeroed
1253       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
1254       patched by ekir. Fixes bug 1254.
1256   o Minor bugfixes:
1257     - Fix a dereference-then-NULL-check sequence when publishing
1258       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
1259       bug 1255.
1260     - Fix another dereference-then-NULL-check sequence. Bugfix on
1261       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
1262     - Make sure we treat potentially not NUL-terminated strings correctly.
1263       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
1267 Changes in version 0.2.1.24 - 2010-02-21
1268   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
1269   for sure!
1271   o Minor bugfixes:
1272     - Work correctly out-of-the-box with even more vendor-patched versions
1273       of OpenSSL. In particular, make it so Debian and OS X don't need
1274       customized patches to run/build.
1277 Changes in version 0.2.1.23 - 2010-02-13
1278   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
1279   again on the latest OS X, and updates the location of a directory
1280   authority.
1282   o Major bugfixes (performance):
1283     - We were selecting our guards uniformly at random, and then weighting
1284       which of our guards we'd use uniformly at random. This imbalance
1285       meant that Tor clients were severely limited on throughput (and
1286       probably latency too) by the first hop in their circuit. Now we
1287       select guards weighted by currently advertised bandwidth. We also
1288       automatically discard guards picked using the old algorithm. Fixes
1289       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
1291   o Major bugfixes:
1292     - Make Tor work again on the latest OS X: when deciding whether to
1293       use strange flags to turn TLS renegotiation on, detect the OpenSSL
1294       version at run-time, not compile time. We need to do this because
1295       Apple doesn't update its dev-tools headers when it updates its
1296       libraries in a security patch.
1297     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
1298       that could happen on 32-bit platforms with 64-bit time_t. Also fix
1299       a memory leak when requesting a hidden service descriptor we've
1300       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
1301       by aakova.
1303   o Directory authority changes:
1304     - Change IP address for dannenberg (v3 directory authority), and
1305       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
1306       service directory authority) from the list.
1308   o Minor bugfixes:
1309     - Refactor resolve_my_address() to not use gethostbyname() anymore.
1310       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
1312   o Minor features:
1313     - Avoid a mad rush at the beginning of each month when each client
1314       rotates half of its guards. Instead we spread the rotation out
1315       throughout the month, but we still avoid leaving a precise timestamp
1316       in the state file about when we first picked the guard. Improves
1317       over the behavior introduced in 0.1.2.17.
1320 Changes in version 0.2.2.8-alpha - 2010-01-26
1321   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
1322   causing bridge relays to disappear. If you're running a bridge,
1323   please upgrade.
1325   o Major bugfixes:
1326     - Fix a memory corruption bug on bridges that occured during the
1327       inclusion of stats data in extra-info descriptors. Also fix the
1328       interface for geoip_get_bridge_stats* to prevent similar bugs in
1329       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
1330       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
1332   o Minor bugfixes:
1333     - Ignore OutboundBindAddress when connecting to localhost.
1334       Connections to localhost need to come _from_ localhost, or else
1335       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
1336       refuse to listen.
1339 Changes in version 0.2.2.7-alpha - 2010-01-19
1340   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
1341   as laying the groundwork for further relay-side performance fixes. It
1342   also starts cleaning up client behavior with respect to the EntryNodes,
1343   ExitNodes, and StrictNodes config options.
1345   This release also rotates two directory authority keys, due to a
1346   security breach of some of the Torproject servers.
1348   o Directory authority changes:
1349     - Rotate keys (both v3 identity and relay identity) for moria1
1350       and gabelmoo.
1352   o Major features (performance):
1353     - We were selecting our guards uniformly at random, and then weighting
1354       which of our guards we'd use uniformly at random. This imbalance
1355       meant that Tor clients were severely limited on throughput (and
1356       probably latency too) by the first hop in their circuit. Now we
1357       select guards weighted by currently advertised bandwidth. We also
1358       automatically discard guards picked using the old algorithm. Fixes
1359       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
1360     - When choosing which cells to relay first, relays can now favor
1361       circuits that have been quiet recently, to provide lower latency
1362       for low-volume circuits. By default, relays enable or disable this
1363       feature based on a setting in the consensus. You can override
1364       this default by using the new "CircuitPriorityHalflife" config
1365       option. Design and code by Ian Goldberg, Can Tang, and Chris
1366       Alexander.
1367     - Add separate per-conn write limiting to go with the per-conn read
1368       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
1369       but never per-conn write limits.
1370     - New consensus params "bwconnrate" and "bwconnburst" to let us
1371       rate-limit client connections as they enter the network. It's
1372       controlled in the consensus so we can turn it on and off for
1373       experiments. It's starting out off. Based on proposal 163.
1375   o Major features (relay selection options):
1376     - Switch to a StrictNodes config option, rather than the previous
1377       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
1378       "StrictExcludeNodes" option.
1379     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
1380       change during a config reload, mark and discard all our origin
1381       circuits. This fix should address edge cases where we change the
1382       config options and but then choose a circuit that we created before
1383       the change.
1384     - If EntryNodes or ExitNodes are set, be more willing to use an
1385       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
1386       they get it.
1387     - Make EntryNodes config option much more aggressive even when
1388       StrictNodes is not set. Before it would prepend your requested
1389       entrynodes to your list of guard nodes, but feel free to use others
1390       after that. Now it chooses only from your EntryNodes if any of
1391       those are available, and only falls back to others if a) they're
1392       all down and b) StrictNodes is not set.
1393     - Now we refresh your entry guards from EntryNodes at each consensus
1394       fetch -- rather than just at startup and then they slowly rot as
1395       the network changes.
1397   o Major bugfixes:
1398     - Stop bridge directory authorities from answering dbg-stability.txt
1399       directory queries, which would let people fetch a list of all
1400       bridge identities they track. Bugfix on 0.2.1.6-alpha.
1402   o Minor features:
1403     - Log a notice when we get a new control connection. Now it's easier
1404       for security-conscious users to recognize when a local application
1405       is knocking on their controller door. Suggested by bug 1196.
1406     - New config option "CircuitStreamTimeout" to override our internal
1407       timeout schedule for how many seconds until we detach a stream from
1408       a circuit and try a new circuit. If your network is particularly
1409       slow, you might want to set this to a number like 60.
1410     - New controller command "getinfo config-text". It returns the
1411       contents that Tor would write if you send it a SAVECONF command,
1412       so the controller can write the file to disk itself.
1413     - New options for SafeLogging to allow scrubbing only log messages
1414       generated while acting as a relay.
1415     - Ship the bridges spec file in the tarball too.
1416     - Avoid a mad rush at the beginning of each month when each client
1417       rotates half of its guards. Instead we spread the rotation out
1418       throughout the month, but we still avoid leaving a precise timestamp
1419       in the state file about when we first picked the guard. Improves
1420       over the behavior introduced in 0.1.2.17.
1422   o Minor bugfixes (compiling):
1423     - Fix compilation on OS X 10.3, which has a stub mlockall() but
1424       hides it. Bugfix on 0.2.2.6-alpha.
1425     - Fix compilation on Solaris by removing support for the
1426       DisableAllSwap config option. Solaris doesn't have an rlimit for
1427       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
1428       0.2.2.6-alpha.
1430   o Minor bugfixes (crashes):
1431     - Do not segfault when writing buffer stats when we haven't observed
1432       a single circuit to report about. Found by Fabian Lanze. Bugfix on
1433       0.2.2.1-alpha.
1434     - If we're in the pathological case where there's no exit bandwidth
1435       but there is non-exit bandwidth, or no guard bandwidth but there
1436       is non-guard bandwidth, don't crash during path selection. Bugfix
1437       on 0.2.0.3-alpha.
1438     - Fix an impossible-to-actually-trigger buffer overflow in relay
1439       descriptor generation. Bugfix on 0.1.0.15.
1441   o Minor bugfixes (privacy):
1442     - Fix an instance where a Tor directory mirror might accidentally
1443       log the IP address of a misbehaving Tor client. Bugfix on
1444       0.1.0.1-rc.
1445     - Don't list Windows capabilities in relay descriptors. We never made
1446       use of them, and maybe it's a bad idea to publish them. Bugfix
1447       on 0.1.1.8-alpha.
1449   o Minor bugfixes (other):
1450     - Resolve an edge case in path weighting that could make us misweight
1451       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
1452     - Fix statistics on client numbers by country as seen by bridges that
1453       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
1454       intervals instead of variable 12-to-48-hour intervals.
1455     - After we free an internal connection structure, overwrite it
1456       with a different memory value than we use for overwriting a freed
1457       internal circuit structure. Should help with debugging. Suggested
1458       by bug 1055.
1459     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
1460       too.
1462   o Removed features:
1463     - Remove the HSAuthorityRecordStats option that version 0 hidden
1464       service authorities could have used to track statistics of overall
1465       hidden service usage.
1468 Changes in version 0.2.1.22 - 2010-01-19
1469   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
1470   authorities -- it would tell you its whole history of bridge descriptors
1471   if you make the right directory request. This stable update also
1472   rotates two of the seven v3 directory authority keys and locations.
1474   o Directory authority changes:
1475     - Rotate keys (both v3 identity and relay identity) for moria1
1476       and gabelmoo.
1478   o Major bugfixes:
1479     - Stop bridge directory authorities from answering dbg-stability.txt
1480       directory queries, which would let people fetch a list of all
1481       bridge identities they track. Bugfix on 0.2.1.6-alpha.
1484 Changes in version 0.2.1.21 - 2009-12-21
1485   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
1486   library. If you use Tor on Linux / Unix and you're getting SSL
1487   renegotiation errors, upgrading should help. We also recommend an
1488   upgrade if you're an exit relay.
1490   o Major bugfixes:
1491     - Work around a security feature in OpenSSL 0.9.8l that prevents our
1492       handshake from working unless we explicitly tell OpenSSL that we
1493       are using SSL renegotiation safely. We are, of course, but OpenSSL
1494       0.9.8l won't work unless we say we are.
1495     - Avoid crashing if the client is trying to upload many bytes and the
1496       circuit gets torn down at the same time, or if the flip side
1497       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
1499   o Minor bugfixes:
1500     - Do not refuse to learn about authority certs and v2 networkstatus
1501       documents that are older than the latest consensus. This bug might
1502       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
1503       Spotted and fixed by xmux.
1504     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
1505       trigger platform-specific option misparsing case found by Coverity
1506       Scan.
1507     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
1508       trigger assert. Fixes bug 1173.
1511 Changes in version 0.2.2.6-alpha - 2009-11-19
1512   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
1513   support for the new lower-footprint "microdescriptor" directory design,
1514   future-proofing our consensus format against new hash functions or
1515   other changes, and an Android port. It also makes Tor compatible with
1516   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
1518   o Major features:
1519     - Directory authorities can now create, vote on, and serve multiple
1520       parallel formats of directory data as part of their voting process.
1521       Partially implements Proposal 162: "Publish the consensus in
1522       multiple flavors".
1523     - Directory authorities can now agree on and publish small summaries
1524       of router information that clients can use in place of regular
1525       server descriptors. This transition will eventually allow clients
1526       to use far less bandwidth for downloading information about the
1527       network. Begins the implementation of Proposal 158: "Clients
1528       download consensus + microdescriptors".
1529     - The directory voting system is now extensible to use multiple hash
1530       algorithms for signatures and resource selection. Newer formats
1531       are signed with SHA256, with a possibility for moving to a better
1532       hash algorithm in the future.
1533     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
1534       current and future memory pages via mlockall(). On supported
1535       platforms (modern Linux and probably BSD but not Windows or OS X),
1536       this should effectively disable any and all attempts to page out
1537       memory. This option requires that you start your Tor as root --
1538       if you use DisableAllSwap, please consider using the User option
1539       to properly reduce the privileges of your Tor.
1540     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
1541       to help Tor build correctly for Android phones.
1543   o Major bugfixes:
1544     - Work around a security feature in OpenSSL 0.9.8l that prevents our
1545       handshake from working unless we explicitly tell OpenSSL that we
1546       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
1547       won't work unless we say we are.
1549   o Minor bugfixes:
1550     - Fix a crash bug when trying to initialize the evdns module in
1551       Libevent 2. Bugfix on 0.2.1.16-rc.
1552     - Stop logging at severity 'warn' when some other Tor client tries
1553       to establish a circuit with us using weak DH keys. It's a protocol
1554       violation, but that doesn't mean ordinary users need to hear about
1555       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
1556     - Do not refuse to learn about authority certs and v2 networkstatus
1557       documents that are older than the latest consensus. This bug might
1558       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
1559       Spotted and fixed by xmux.
1560     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
1561     - If all authorities restart at once right before a consensus vote,
1562       nobody will vote about "Running", and clients will get a consensus
1563       with no usable relays. Instead, authorities refuse to build a
1564       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
1565     - If your relay can't keep up with the number of incoming create
1566       cells, it would log one warning per failure into your logs. Limit
1567       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
1568     - Bridges now use "reject *:*" as their default exit policy. Bugfix
1569       on 0.2.0.3-alpha; fixes bug 1113.
1570     - Fix a memory leak on directory authorities during voting that was
1571       introduced in 0.2.2.1-alpha. Found via valgrind.
1574 Changes in version 0.2.1.20 - 2009-10-15
1575   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
1576   services at once, prepares for more performance improvements, and
1577   fixes a bunch of smaller bugs.
1579   The Windows and OS X bundles also include a more recent Vidalia,
1580   and switch from Privoxy to Polipo.
1582   The OS X installers are now drag and drop. It's best to un-install
1583   Tor/Vidalia and then install this new bundle, rather than upgrade. If
1584   you want to upgrade, you'll need to update the paths for Tor and Polipo
1585   in the Vidalia Settings window.
1587   o Major bugfixes:
1588     - Send circuit or stream sendme cells when our window has decreased
1589       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
1590       by Karsten when testing the "reduce circuit window" performance
1591       patch. Bugfix on the 54th commit on Tor -- from July 2002,
1592       before the release of Tor 0.0.0. This is the new winner of the
1593       oldest-bug prize.
1594     - Fix a remotely triggerable memory leak when a consensus document
1595       contains more than one signature from the same voter. Bugfix on
1596       0.2.0.3-alpha.
1597     - Avoid segfault in rare cases when finishing an introduction circuit
1598       as a client and finding out that we don't have an introduction key
1599       for it. Fixes bug 1073. Reported by Aaron Swartz.
1601   o Major features:
1602     - Tor now reads the "circwindow" parameter out of the consensus,
1603       and uses that value for its circuit package window rather than the
1604       default of 1000 cells. Begins the implementation of proposal 168.
1606   o New directory authorities:
1607     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
1608       authority.
1609     - Move moria1 and tonga to alternate IP addresses.
1611   o Minor bugfixes:
1612     - Fix a signed/unsigned compile warning in 0.2.1.19.
1613     - Fix possible segmentation fault on directory authorities. Bugfix on
1614       0.2.1.14-rc.
1615     - Fix an extremely rare infinite recursion bug that could occur if
1616       we tried to log a message after shutting down the log subsystem.
1617       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
1618     - Fix an obscure bug where hidden services on 64-bit big-endian
1619       systems might mis-read the timestamp in v3 introduce cells, and
1620       refuse to connect back to the client. Discovered by "rotor".
1621       Bugfix on 0.2.1.6-alpha.
1622     - We were triggering a CLOCK_SKEW controller status event whenever
1623       we connect via the v2 connection protocol to any relay that has
1624       a wrong clock. Instead, we should only inform the controller when
1625       it's a trusted authority that claims our clock is wrong. Bugfix
1626       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
1627     - We were telling the controller about CHECKING_REACHABILITY and
1628       REACHABILITY_FAILED status events whenever we launch a testing
1629       circuit or notice that one has failed. Instead, only tell the
1630       controller when we want to inform the user of overall success or
1631       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
1632       by SwissTorExit.
1633     - Don't warn when we're using a circuit that ends with a node
1634       excluded in ExcludeExitNodes, but the circuit is not used to access
1635       the outside world. This should help fix bug 1090. Bugfix on
1636       0.2.1.6-alpha.
1637     - Work around a small memory leak in some versions of OpenSSL that
1638       stopped the memory used by the hostname TLS extension from being
1639       freed.
1641   o Minor features:
1642     - Add a "getinfo status/accepted-server-descriptor" controller
1643       command, which is the recommended way for controllers to learn
1644       whether our server descriptor has been successfully received by at
1645       least on directory authority. Un-recommend good-server-descriptor
1646       getinfo and status events until we have a better design for them.
1649 Changes in version 0.2.2.5-alpha - 2009-10-11
1650   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
1652   o Major bugfixes:
1653     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
1655   o New directory authorities:
1656     - Move dizum to an alternate IP address.
1659 Changes in version 0.2.2.4-alpha - 2009-10-10
1660   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
1661   introduces a new unit test framework, shifts directry authority
1662   addresses around to reduce the impact from recent blocking events,
1663   and fixes a few smaller bugs.
1665   o Major bugfixes:
1666     - Fix several more asserts in the circuit_build_times code, for
1667       example one that causes Tor to fail to start once we have
1668       accumulated 5000 build times in the state file. Bugfixes on
1669       0.2.2.2-alpha; fixes bug 1108.
1671   o New directory authorities:
1672     - Move moria1 and Tonga to alternate IP addresses.
1674   o Minor features:
1675     - Log SSL state transitions at debug level during handshake, and
1676       include SSL states in error messages. This may help debug future
1677       SSL handshake issues.
1678     - Add a new "Handshake" log domain for activities that happen
1679       during the TLS handshake.
1680     - Revert to the "June 3 2009" ip-to-country file. The September one
1681       seems to have removed most US IP addresses.
1682     - Directory authorities now reject Tor relays with versions less than
1683       0.1.2.14. This step cuts out four relays from the current network,
1684       none of which are very big.
1686   o Minor bugfixes:
1687     - Fix a couple of smaller issues with gathering statistics. Bugfixes
1688       on 0.2.2.1-alpha.
1689     - Fix two memory leaks in the error case of
1690       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
1691     - Don't count one-hop circuits when we're estimating how long it
1692       takes circuits to build on average. Otherwise we'll set our circuit
1693       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
1694     - Directory authorities no longer change their opinion of, or vote on,
1695       whether a router is Running, unless they have themselves been
1696       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
1697       Fixes bug 1023.
1699   o Code simplifications and refactoring:
1700     - Revise our unit tests to use the "tinytest" framework, so we
1701       can run tests in their own processes, have smarter setup/teardown
1702       code, and so on. The unit test code has moved to its own
1703       subdirectory, and has been split into multiple modules.
1706 Changes in version 0.2.2.3-alpha - 2009-09-23
1707   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
1709   o Major bugfixes:
1710     - Fix an overzealous assert in our new circuit build timeout code.
1711       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
1713   o Minor bugfixes:
1714     - If the networkstatus consensus tells us that we should use a
1715       negative circuit package window, ignore it. Otherwise we'll
1716       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
1719 Changes in version 0.2.2.2-alpha - 2009-09-21
1720   Tor 0.2.2.2-alpha introduces our latest performance improvement for
1721   clients: Tor tracks the average time it takes to build a circuit, and
1722   avoids using circuits that take too long to build. For fast connections,
1723   this feature can cut your expected latency in half. For slow or flaky
1724   connections, it could ruin your Tor experience. Let us know if it does!
1726   o Major features:
1727     - Tor now tracks how long it takes to build client-side circuits
1728       over time, and adapts its timeout to local network performance.
1729       Since a circuit that takes a long time to build will also provide
1730       bad performance, we get significant latency improvements by
1731       discarding the slowest 20% of circuits. Specifically, Tor creates
1732       circuits more aggressively than usual until it has enough data
1733       points for a good timeout estimate. Implements proposal 151.
1734       We are especially looking for reports (good and bad) from users with
1735       both EDGE and broadband connections that can move from broadband
1736       to EDGE and find out if the build-time data in the .tor/state gets
1737       reset without loss of Tor usability. You should also see a notice
1738       log message telling you that Tor has reset its timeout.
1739     - Directory authorities can now vote on arbitary integer values as
1740       part of the consensus process. This is designed to help set
1741       network-wide parameters. Implements proposal 167.
1742     - Tor now reads the "circwindow" parameter out of the consensus,
1743       and uses that value for its circuit package window rather than the
1744       default of 1000 cells. Begins the implementation of proposal 168.
1746   o Major bugfixes:
1747     - Fix a remotely triggerable memory leak when a consensus document
1748       contains more than one signature from the same voter. Bugfix on
1749       0.2.0.3-alpha.
1751   o Minor bugfixes:
1752     - Fix an extremely rare infinite recursion bug that could occur if
1753       we tried to log a message after shutting down the log subsystem.
1754       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
1755     - Fix parsing for memory or time units given without a space between
1756       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
1757     - A networkstatus vote must contain exactly one signature. Spec
1758       conformance issue. Bugfix on 0.2.0.3-alpha.
1759     - Fix an obscure bug where hidden services on 64-bit big-endian
1760       systems might mis-read the timestamp in v3 introduce cells, and
1761       refuse to connect back to the client. Discovered by "rotor".
1762       Bugfix on 0.2.1.6-alpha.
1763     - We were triggering a CLOCK_SKEW controller status event whenever
1764       we connect via the v2 connection protocol to any relay that has
1765       a wrong clock. Instead, we should only inform the controller when
1766       it's a trusted authority that claims our clock is wrong. Bugfix
1767       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
1768     - We were telling the controller about CHECKING_REACHABILITY and
1769       REACHABILITY_FAILED status events whenever we launch a testing
1770       circuit or notice that one has failed. Instead, only tell the
1771       controller when we want to inform the user of overall success or
1772       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
1773       by SwissTorExit.
1774     - Don't warn when we're using a circuit that ends with a node
1775       excluded in ExcludeExitNodes, but the circuit is not used to access
1776       the outside world. This should help fix bug 1090, but more problems
1777       remain. Bugfix on 0.2.1.6-alpha.
1778     - Work around a small memory leak in some versions of OpenSSL that
1779       stopped the memory used by the hostname TLS extension from being
1780       freed.
1781     - Make our 'torify' script more portable; if we have only one of
1782       'torsocks' or 'tsocks' installed, don't complain to the user;
1783       and explain our warning about tsocks better.
1785   o Minor features:
1786     - Add a "getinfo status/accepted-server-descriptor" controller
1787       command, which is the recommended way for controllers to learn
1788       whether our server descriptor has been successfully received by at
1789       least on directory authority. Un-recommend good-server-descriptor
1790       getinfo and status events until we have a better design for them.
1791     - Update to the "September 4 2009" ip-to-country file.
1794 Changes in version 0.2.2.1-alpha - 2009-08-26
1795   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
1796   Tor clients to bootstrap on networks where only port 80 is reachable,
1797   makes it more straightforward to support hardware crypto accelerators,
1798   and starts the groundwork for gathering stats safely at relays.
1800   o Security fixes:
1801     - Start the process of disabling ".exit" address notation, since it
1802       can be used for a variety of esoteric application-level attacks
1803       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
1804       on 0.0.9rc5.
1806   o New directory authorities:
1807     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
1808       authority.
1810   o Major features:
1811     - New AccelName and AccelDir options add support for dynamic OpenSSL
1812       hardware crypto acceleration engines.
1813     - Tor now supports tunneling all of its outgoing connections over
1814       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
1815       configuration options. Code by Christopher Davis.
1817   o Major bugfixes:
1818     - Send circuit or stream sendme cells when our window has decreased
1819       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
1820       by Karsten when testing the "reduce circuit window" performance
1821       patch. Bugfix on the 54th commit on Tor -- from July 2002,
1822       before the release of Tor 0.0.0. This is the new winner of the
1823       oldest-bug prize.
1825   o New options for gathering stats safely:
1826     - Directories that set "DirReqStatistics 1" write statistics on
1827       directory request to disk every 24 hours. As compared to the
1828       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
1829       1) stats are written to disk exactly every 24 hours; 2) estimated
1830       shares of v2 and v3 requests are determined as mean values, not at
1831       the end of a measurement period; 3) unresolved requests are listed
1832       with country code '??'; 4) directories also measure download times.
1833     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
1834       number of exit streams and transferred bytes per port to disk every
1835       24 hours.
1836     - Relays that set "CellStatistics 1" write statistics on how long
1837       cells spend in their circuit queues to disk every 24 hours.
1838     - Entry nodes that set "EntryStatistics 1" write statistics on the
1839       rough number and origins of connecting clients to disk every 24
1840       hours.
1841     - Relays that write any of the above statistics to disk and set
1842       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
1843       their extra-info documents.
1845   o Minor features:
1846     - New --digests command-line switch to output the digests of the
1847       source files Tor was built with.
1848     - The "torify" script now uses torsocks where available.
1849     - The memarea code now uses a sentinel value at the end of each area
1850       to make sure nothing writes beyond the end of an area. This might
1851       help debug some conceivable causes of bug 930.
1852     - Time and memory units in the configuration file can now be set to
1853       fractional units. For example, "2.5 GB" is now a valid value for
1854       AccountingMax.
1855     - Certain Tor clients (such as those behind check.torproject.org) may
1856       want to fetch the consensus in an extra early manner. To enable this
1857       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
1858       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
1859       as only certain clients who must have this information sooner should
1860       set this option.
1861     - Instead of adding the svn revision to the Tor version string, report
1862       the git commit (when we're building from a git checkout).
1864   o Minor bugfixes:
1865     - If any the v3 certs we download are unparseable, we should actually
1866       notice the failure so we don't retry indefinitely. Bugfix on
1867       0.2.0.x; reported by "rotator".
1868     - If the cached cert file is unparseable, warn but don't exit.
1869     - Fix possible segmentation fault on directory authorities. Bugfix on
1870       0.2.1.14-rc.
1871     - When Tor fails to parse a descriptor of any kind, dump it to disk.
1872       Might help diagnosing bug 1051.
1874   o Deprecated and removed features:
1875     - The controller no longer accepts the old obsolete "addr-mappings/"
1876       or "unregistered-servers-" GETINFO values.
1877     - Hidden services no longer publish version 0 descriptors, and clients
1878       do not request or use version 0 descriptors. However, the old hidden
1879       service authorities still accept and serve version 0 descriptors
1880       when contacted by older hidden services/clients.
1881     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
1882       always on; using them is necessary for correct forward-compatible
1883       controllers.
1884     - Remove support for .noconnect style addresses. Nobody was using
1885       them, and they provided another avenue for detecting Tor users
1886       via application-level web tricks.
1888   o Packaging changes:
1889     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
1890       installer bundles. See
1891       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
1892       for details of what's new in Vidalia 0.2.3.
1893     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
1894     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
1895       configuration file, rather than the old Privoxy.
1896     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
1897       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
1898     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
1899       better compatibility with OS X 10.6, aka Snow Leopard.
1900     - OS X Vidalia Bundle: The multi-package installer is now replaced
1901       by a simple drag and drop to the /Applications folder. This change
1902       occurred with the upgrade to Vidalia 0.2.3.
1905 Changes in version 0.2.1.19 - 2009-07-28
1906   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
1907   services on Tor 0.2.1.3-alpha through 0.2.1.18.
1909   o Major bugfixes:
1910     - Make accessing hidden services on 0.2.1.x work right again.
1911       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
1912       part of patch provided by "optimist".
1914   o Minor features:
1915     - When a relay/bridge is writing out its identity key fingerprint to
1916       the "fingerprint" file and to its logs, write it without spaces. Now
1917       it will look like the fingerprints in our bridges documentation,
1918       and confuse fewer users.
1920   o Minor bugfixes:
1921     - Relays no longer publish a new server descriptor if they change
1922       their MaxAdvertisedBandwidth config option but it doesn't end up
1923       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
1924       fixes bug 1026. Patch from Sebastian.
1925     - Avoid leaking memory every time we get a create cell but we have
1926       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
1927       fixes bug 1034. Reported by BarkerJr.
1930 Changes in version 0.2.1.18 - 2009-07-24
1931   Tor 0.2.1.18 lays the foundations for performance improvements,
1932   adds status events to help users diagnose bootstrap problems, adds
1933   optional authentication/authorization for hidden services, fixes a
1934   variety of potential anonymity problems, and includes a huge pile of
1935   other features and bug fixes.
1937   o Build fixes:
1938     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
1941 Changes in version 0.2.1.17-rc - 2009-07-07
1942   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
1943   candidate for the 0.2.1.x series. It lays the groundwork for further
1944   client performance improvements, and also fixes a big bug with directory
1945   authorities that were causing them to assign Guard and Stable flags
1946   poorly.
1948   The Windows bundles also finally include the geoip database that we
1949   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
1950   should actually install Torbutton rather than giving you a cryptic
1951   failure message (oops).
1953   o Major features:
1954     - Clients now use the bandwidth values in the consensus, rather than
1955       the bandwidth values in each relay descriptor. This approach opens
1956       the door to more accurate bandwidth estimates once the directory
1957       authorities start doing active measurements. Implements more of
1958       proposal 141.
1960   o Major bugfixes:
1961     - When Tor clients restart after 1-5 days, they discard all their
1962       cached descriptors as too old, but they still use the cached
1963       consensus document. This approach is good for robustness, but
1964       bad for performance: since they don't know any bandwidths, they
1965       end up choosing at random rather than weighting their choice by
1966       speed. Fixed by the above feature of putting bandwidths in the
1967       consensus. Bugfix on 0.2.0.x.
1968     - Directory authorities were neglecting to mark relays down in their
1969       internal histories if the relays fall off the routerlist without
1970       ever being found unreachable. So there were relays in the histories
1971       that haven't been seen for eight months, and are listed as being
1972       up for eight months. This wreaked havoc on the "median wfu"
1973       and "median mtbf" calculations, in turn making Guard and Stable
1974       flags very wrong, hurting network performance. Fixes bugs 696 and
1975       969. Bugfix on 0.2.0.6-alpha.
1977   o Minor bugfixes:
1978     - Serve the DirPortFrontPage page even when we have been approaching
1979       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
1980     - The control port would close the connection before flushing long
1981       replies, such as the network consensus, if a QUIT command was issued
1982       before the reply had completed. Now, the control port flushes all
1983       pending replies before closing the connection. Also fixed a spurious
1984       warning when a QUIT command is issued after a malformed or rejected
1985       AUTHENTICATE command, but before the connection was closed. Patch
1986       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
1987     - When we can't find an intro key for a v2 hidden service descriptor,
1988       fall back to the v0 hidden service descriptor and log a bug message.
1989       Workaround for bug 1024.
1990     - Fix a log message that did not respect the SafeLogging option.
1991       Resolves bug 1027.
1993   o Minor features:
1994     - If we're a relay and we change our IP address, be more verbose
1995       about the reason that made us change. Should help track down
1996       further bugs for relays on dynamic IP addresses.
1999 Changes in version 0.2.0.35 - 2009-06-24
2000   o Security fix:
2001     - Avoid crashing in the presence of certain malformed descriptors.
2002       Found by lark, and by automated fuzzing.
2003     - Fix an edge case where a malicious exit relay could convince a
2004       controller that the client's DNS question resolves to an internal IP
2005       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
2007   o Major bugfixes:
2008     - Finally fix the bug where dynamic-IP relays disappear when their
2009       IP address changes: directory mirrors were mistakenly telling
2010       them their old address if they asked via begin_dir, so they
2011       never got an accurate answer about their new address, so they
2012       just vanished after a day. For belt-and-suspenders, relays that
2013       don't set Address in their config now avoid using begin_dir for
2014       all direct connections. Should fix bugs 827, 883, and 900.
2015     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
2016       that would occur on some exit nodes when DNS failures and timeouts
2017       occurred in certain patterns. Fix for bug 957.
2019   o Minor bugfixes:
2020     - When starting with a cache over a few days old, do not leak
2021       memory for the obsolete router descriptors in it. Bugfix on
2022       0.2.0.33; fixes bug 672.
2023     - Hidden service clients didn't use a cached service descriptor that
2024       was older than 15 minutes, but wouldn't fetch a new one either,
2025       because there was already one in the cache. Now, fetch a v2
2026       descriptor unless the same descriptor was added to the cache within
2027       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
2030 Changes in version 0.2.1.16-rc - 2009-06-20
2031   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
2032   a bunch of minor bugs.
2034   o Security fixes:
2035     - Fix an edge case where a malicious exit relay could convince a
2036       controller that the client's DNS question resolves to an internal IP
2037       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
2039   o Major performance improvements (on 0.2.0.x):
2040     - Disable and refactor some debugging checks that forced a linear scan
2041       over the whole server-side DNS cache. These accounted for over 50%
2042       of CPU time on a relatively busy exit node's gprof profile. Found
2043       by Jacob.
2044     - Disable some debugging checks that appeared in exit node profile
2045       data.
2047   o Minor features:
2048     - Update to the "June 3 2009" ip-to-country file.
2049     - Do not have tor-resolve automatically refuse all .onion addresses;
2050       if AutomapHostsOnResolve is set in your torrc, this will work fine.
2052   o Minor bugfixes (on 0.2.0.x):
2053     - Log correct error messages for DNS-related network errors on
2054       Windows.
2055     - Fix a race condition that could cause crashes or memory corruption
2056       when running as a server with a controller listening for log
2057       messages.
2058     - Avoid crashing when we have a policy specified in a DirPolicy or
2059       SocksPolicy or ReachableAddresses option with ports set on it,
2060       and we re-load the policy. May fix bug 996.
2061     - Hidden service clients didn't use a cached service descriptor that
2062       was older than 15 minutes, but wouldn't fetch a new one either,
2063       because there was already one in the cache. Now, fetch a v2
2064       descriptor unless the same descriptor was added to the cache within
2065       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
2067   o Minor bugfixes (on 0.2.1.x):
2068     - Don't warn users about low port and hibernation mix when they
2069       provide a *ListenAddress directive to fix that. Bugfix on
2070       0.2.1.15-rc.
2071     - When switching back and forth between bridge mode, do not start
2072       gathering GeoIP data until two hours have passed.
2073     - Do not complain that the user has requested an excluded node as
2074       an exit when the node is not really an exit. This could happen
2075       because the circuit was for testing, or an introduction point.
2076       Fix for bug 984.
2079 Changes in version 0.2.1.15-rc - 2009-05-25
2080   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
2081   series. It fixes a major bug on fast exit relays, as well as a variety
2082   of more minor bugs.
2084   o Major bugfixes (on 0.2.0.x):
2085     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
2086       that would occur on some exit nodes when DNS failures and timeouts
2087       occurred in certain patterns. Fix for bug 957.
2089   o Minor bugfixes (on 0.2.0.x):
2090     - Actually return -1 in the error case for read_bandwidth_usage().
2091       Harmless bug, since we currently don't care about the return value
2092       anywhere. Bugfix on 0.2.0.9-alpha.
2093     - Provide a more useful log message if bug 977 (related to buffer
2094       freelists) ever reappears, and do not crash right away.
2095     - Fix an assertion failure on 64-bit platforms when we allocated
2096       memory right up to the end of a memarea, then realigned the memory
2097       one step beyond the end. Fixes a possible cause of bug 930.
2098     - Protect the count of open sockets with a mutex, so we can't
2099       corrupt it when two threads are closing or opening sockets at once.
2100       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
2101     - Don't allow a bridge to publish its router descriptor to a
2102       non-bridge directory authority. Fixes part of bug 932.
2103     - When we change to or from being a bridge, reset our counts of
2104       client usage by country. Fixes bug 932.
2105     - Fix a bug that made stream bandwidth get misreported to the
2106       controller.
2107     - Stop using malloc_usable_size() to use more area than we had
2108       actually allocated: it was safe, but made valgrind really unhappy.
2109     - Fix a memory leak when v3 directory authorities load their keys
2110       and cert from disk. Bugfix on 0.2.0.1-alpha.
2112   o Minor bugfixes (on 0.2.1.x):
2113     - Fix use of freed memory when deciding to mark a non-addable
2114       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
2117 Changes in version 0.2.1.14-rc - 2009-04-12
2118   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
2119   series. It begins fixing some major performance problems, and also
2120   finally addresses the bug that was causing relays on dynamic IP
2121   addresses to fall out of the directory.
2123   o Major features:
2124     - Clients replace entry guards that were chosen more than a few months
2125       ago. This change should significantly improve client performance,
2126       especially once more people upgrade, since relays that have been
2127       a guard for a long time are currently overloaded.
2129   o Major bugfixes (on 0.2.0):
2130     - Finally fix the bug where dynamic-IP relays disappear when their
2131       IP address changes: directory mirrors were mistakenly telling
2132       them their old address if they asked via begin_dir, so they
2133       never got an accurate answer about their new address, so they
2134       just vanished after a day. For belt-and-suspenders, relays that
2135       don't set Address in their config now avoid using begin_dir for
2136       all direct connections. Should fix bugs 827, 883, and 900.
2137     - Relays were falling out of the networkstatus consensus for
2138       part of a day if they changed their local config but the
2139       authorities discarded their new descriptor as "not sufficiently
2140       different". Now directory authorities accept a descriptor as changed
2141       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
2142       patch by Sebastian.
2143     - Avoid crashing in the presence of certain malformed descriptors.
2144       Found by lark, and by automated fuzzing.
2146   o Minor features:
2147     - When generating circuit events with verbose nicknames for
2148       controllers, try harder to look up nicknames for routers on a
2149       circuit. (Previously, we would look in the router descriptors we had
2150       for nicknames, but not in the consensus.) Partial fix for bug 941.
2151     - If the bridge config line doesn't specify a port, assume 443.
2152       This makes bridge lines a bit smaller and easier for users to
2153       understand.
2154     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
2155       bytes (aka 20KB/s), to match our documentation. Also update
2156       directory authorities so they always assign the Fast flag to relays
2157       with 20KB/s of capacity. Now people running relays won't suddenly
2158       find themselves not seeing any use, if the network gets faster
2159       on average.
2160     - Update to the "April 3 2009" ip-to-country file.
2162   o Minor bugfixes:
2163     - Avoid trying to print raw memory to the logs when we decide to
2164       give up on downloading a given relay descriptor. Bugfix on
2165       0.2.1.9-alpha.
2166     - In tor-resolve, when the Tor client to use is specified by
2167       <hostname>:<port>, actually use the specified port rather than
2168       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
2169     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
2170     - When starting with a cache over a few days old, do not leak
2171       memory for the obsolete router descriptors in it. Bugfix on
2172       0.2.0.33.
2173     - Avoid double-free on list of successfully uploaded hidden
2174       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
2175     - Change memarea_strndup() implementation to work even when
2176       duplicating a string at the end of a page. This bug was
2177       harmless for now, but could have meant crashes later. Fix by
2178       lark. Bugfix on 0.2.1.1-alpha.
2179     - Limit uploaded directory documents to be 16M rather than 500K.
2180       The directory authorities were refusing v3 consensus votes from
2181       other authorities, since the votes are now 504K. Fixes bug 959;
2182       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
2183     - Directory authorities should never send a 503 "busy" response to
2184       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
2185       bug 959.
2188 Changes in version 0.2.1.13-alpha - 2009-03-09
2189   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
2190   cleanups. We're finally getting close to a release candidate.
2192   o Major bugfixes:
2193     - Correctly update the list of which countries we exclude as
2194       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
2195       lark. Bugfix on 0.2.1.6-alpha.
2197   o Minor bugfixes (on 0.2.0.x and earlier):
2198     - Automatically detect MacOSX versions earlier than 10.4.0, and
2199       disable kqueue from inside Tor when running with these versions.
2200       We previously did this from the startup script, but that was no
2201       help to people who didn't use the startup script. Resolves bug 863.
2202     - When we had picked an exit node for a connection, but marked it as
2203       "optional", and it turned out we had no onion key for the exit,
2204       stop wanting that exit and try again. This situation may not
2205       be possible now, but will probably become feasible with proposal
2206       158. Spotted by rovv. Fixes another case of bug 752.
2207     - Clients no longer cache certificates for authorities they do not
2208       recognize. Bugfix on 0.2.0.9-alpha.
2209     - When we can't transmit a DNS request due to a network error, retry
2210       it after a while, and eventually transmit a failing response to
2211       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
2212     - If the controller claimed responsibility for a stream, but that
2213       stream never finished making its connection, it would live
2214       forever in circuit_wait state. Now we close it after SocksTimeout
2215       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
2216     - Drop begin cells to a hidden service if they come from the middle
2217       of a circuit. Patch from lark.
2218     - When we erroneously receive two EXTEND cells for the same circuit
2219       ID on the same connection, drop the second. Patch from lark.
2220     - Fix a crash that occurs on exit nodes when a nameserver request
2221       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
2222       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
2223       bug 929.
2224     - Do not assume that a stack-allocated character array will be
2225       64-bit aligned on platforms that demand that uint64_t access is
2226       aligned. Possible fix for bug 604.
2227     - Parse dates and IPv4 addresses in a locale- and libc-independent
2228       manner, to avoid platform-dependent behavior on malformed input.
2229     - Build correctly when configured to build outside the main source
2230       path. Patch from Michael Gold.
2231     - We were already rejecting relay begin cells with destination port
2232       of 0. Now also reject extend cells with destination port or address
2233       of 0. Suggested by lark.
2235   o Minor bugfixes (on 0.2.1.x):
2236     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
2237       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
2238     - If we're an exit node, scrub the IP address to which we are exiting
2239       in the logs. Bugfix on 0.2.1.8-alpha.
2241   o Minor features:
2242     - On Linux, use the prctl call to re-enable core dumps when the user
2243       is option is set.
2244     - New controller event NEWCONSENSUS that lists the networkstatus
2245       lines for every recommended relay. Now controllers like Torflow
2246       can keep up-to-date on which relays they should be using.
2247     - Update to the "February 26 2009" ip-to-country file.
2250 Changes in version 0.2.0.34 - 2009-02-08
2251   Tor 0.2.0.34 features several more security-related fixes. You should
2252   upgrade, especially if you run an exit relay (remote crash) or a
2253   directory authority (remote infinite loop), or you're on an older
2254   (pre-XP) or not-recently-patched Windows (remote exploit).
2256   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
2257   have many known flaws, and nobody should be using them. You should
2258   upgrade. If you're using a Linux or BSD and its packages are obsolete,
2259   stop using those packages and upgrade anyway.
2261   o Security fixes:
2262     - Fix an infinite-loop bug on handling corrupt votes under certain
2263       circumstances. Bugfix on 0.2.0.8-alpha.
2264     - Fix a temporary DoS vulnerability that could be performed by
2265       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
2266     - Avoid a potential crash on exit nodes when processing malformed
2267       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
2268     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
2269       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
2271   o Minor bugfixes:
2272     - Fix compilation on systems where time_t is a 64-bit integer.
2273       Patch from Matthias Drochner.
2274     - Don't consider expiring already-closed client connections. Fixes
2275       bug 893. Bugfix on 0.0.2pre20.
2278 Changes in version 0.2.1.12-alpha - 2009-02-08
2279   Tor 0.2.1.12-alpha features several more security-related fixes. You
2280   should upgrade, especially if you run an exit relay (remote crash) or
2281   a directory authority (remote infinite loop), or you're on an older
2282   (pre-XP) or not-recently-patched Windows (remote exploit). It also
2283   includes a big pile of minor bugfixes and cleanups.
2285   o Security fixes:
2286     - Fix an infinite-loop bug on handling corrupt votes under certain
2287       circumstances. Bugfix on 0.2.0.8-alpha.
2288     - Fix a temporary DoS vulnerability that could be performed by
2289       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
2290     - Avoid a potential crash on exit nodes when processing malformed
2291       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
2293   o Minor bugfixes:
2294     - Let controllers actually ask for the "clients_seen" event for
2295       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
2296       reported by Matt Edman.
2297     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
2298       0.2.1.11-alpha.
2299     - Fix a bug in address parsing that was preventing bridges or hidden
2300       service targets from being at IPv6 addresses.
2301     - Solve a bug that kept hardware crypto acceleration from getting
2302       enabled when accounting was turned on. Fixes bug 907. Bugfix on
2303       0.0.9pre6.
2304     - Remove a bash-ism from configure.in to build properly on non-Linux
2305       platforms. Bugfix on 0.2.1.1-alpha.
2306     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
2307       headers. Bugfix on 0.2.0.10-alpha.
2308     - Don't consider expiring already-closed client connections. Fixes
2309       bug 893. Bugfix on 0.0.2pre20.
2310     - Fix another interesting corner-case of bug 891 spotted by rovv:
2311       Previously, if two hosts had different amounts of clock drift, and
2312       one of them created a new connection with just the wrong timing,
2313       the other might decide to deprecate the new connection erroneously.
2314       Bugfix on 0.1.1.13-alpha.
2315     - Resolve a very rare crash bug that could occur when the user forced
2316       a nameserver reconfiguration during the middle of a nameserver
2317       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
2318     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
2319       Bugfix on 0.2.1.7-alpha.
2320     - If we're using bridges and our network goes away, be more willing
2321       to forgive our bridges and try again when we get an application
2322       request. Bugfix on 0.2.0.x.
2324   o Minor features:
2325     - Support platforms where time_t is 64 bits long. (Congratulations,
2326       NetBSD!) Patch from Matthias Drochner.
2327     - Add a 'getinfo status/clients-seen' controller command, in case
2328       controllers want to hear clients_seen events but connect late.
2330   o Build changes:
2331     - Disable GCC's strict alias optimization by default, to avoid the
2332       likelihood of its introducing subtle bugs whenever our code violates
2333       the letter of C99's alias rules.
2336 Changes in version 0.2.0.33 - 2009-01-21
2337   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
2338   useful to users. It also finally fixes a bug where a relay or client
2339   that's been off for many days would take a long time to bootstrap.
2341   This update also fixes an important security-related bug reported by
2342   Ilja van Sprundel. You should upgrade. (We'll send out more details
2343   about the bug once people have had some time to upgrade.)
2345   o Security fixes:
2346     - Fix a heap-corruption bug that may be remotely triggerable on
2347       some platforms. Reported by Ilja van Sprundel.
2349   o Major bugfixes:
2350     - When a stream at an exit relay is in state "resolving" or
2351       "connecting" and it receives an "end" relay cell, the exit relay
2352       would silently ignore the end cell and not close the stream. If
2353       the client never closes the circuit, then the exit relay never
2354       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
2355       reported by "wood".
2356     - When sending CREATED cells back for a given circuit, use a 64-bit
2357       connection ID to find the right connection, rather than an addr:port
2358       combination. Now that we can have multiple OR connections between
2359       the same ORs, it is no longer possible to use addr:port to uniquely
2360       identify a connection.
2361     - Bridge relays that had DirPort set to 0 would stop fetching
2362       descriptors shortly after startup, and then briefly resume
2363       after a new bandwidth test and/or after publishing a new bridge
2364       descriptor. Bridge users that try to bootstrap from them would
2365       get a recent networkstatus but would get descriptors from up to
2366       18 hours earlier, meaning most of the descriptors were obsolete
2367       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
2368     - Prevent bridge relays from serving their 'extrainfo' document
2369       to anybody who asks, now that extrainfo docs include potentially
2370       sensitive aggregated client geoip summaries. Bugfix on
2371       0.2.0.13-alpha.
2372     - If the cached networkstatus consensus is more than five days old,
2373       discard it rather than trying to use it. In theory it could be
2374       useful because it lists alternate directory mirrors, but in practice
2375       it just means we spend many minutes trying directory mirrors that
2376       are long gone from the network. Also discard router descriptors as
2377       we load them if they are more than five days old, since the onion
2378       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
2380   o Minor bugfixes:
2381     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
2382       could make gcc generate non-functional binary search code. Bugfix
2383       on 0.2.0.10-alpha.
2384     - Build correctly on platforms without socklen_t.
2385     - Compile without warnings on solaris.
2386     - Avoid potential crash on internal error during signature collection.
2387       Fixes bug 864. Patch from rovv.
2388     - Correct handling of possible malformed authority signing key
2389       certificates with internal signature types. Fixes bug 880.
2390       Bugfix on 0.2.0.3-alpha.
2391     - Fix a hard-to-trigger resource leak when logging credential status.
2392       CID 349.
2393     - When we can't initialize DNS because the network is down, do not
2394       automatically stop Tor from starting. Instead, we retry failed
2395       dns_init() every 10 minutes, and change the exit policy to reject
2396       *:* until one succeeds. Fixes bug 691.
2397     - Use 64 bits instead of 32 bits for connection identifiers used with
2398       the controller protocol, to greatly reduce risk of identifier reuse.
2399     - When we're choosing an exit node for a circuit, and we have
2400       no pending streams, choose a good general exit rather than one that
2401       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
2402     - Fix another case of assuming, when a specific exit is requested,
2403       that we know more than the user about what hosts it allows.
2404       Fixes one case of bug 752. Patch from rovv.
2405     - Clip the MaxCircuitDirtiness config option to a minimum of 10
2406       seconds. Warn the user if lower values are given in the
2407       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
2408     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
2409       user if lower values are given in the configuration. Bugfix on
2410       0.1.1.17-rc. Patch by Sebastian.
2411     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
2412       the cache because we already had a v0 descriptor with the same ID.
2413       Bugfix on 0.2.0.18-alpha.
2414     - Fix a race condition when freeing keys shared between main thread
2415       and CPU workers that could result in a memory leak. Bugfix on
2416       0.1.0.1-rc. Fixes bug 889.
2417     - Send a valid END cell back when a client tries to connect to a
2418       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
2419       840. Patch from rovv.
2420     - Check which hops rendezvous stream cells are associated with to
2421       prevent possible guess-the-streamid injection attacks from
2422       intermediate hops. Fixes another case of bug 446. Based on patch
2423       from rovv.
2424     - If a broken client asks a non-exit router to connect somewhere,
2425       do not even do the DNS lookup before rejecting the connection.
2426       Fixes another case of bug 619. Patch from rovv.
2427     - When a relay gets a create cell it can't decrypt (e.g. because it's
2428       using the wrong onion key), we were dropping it and letting the
2429       client time out. Now actually answer with a destroy cell. Fixes
2430       bug 904. Bugfix on 0.0.2pre8.
2432   o Minor bugfixes (hidden services):
2433     - Do not throw away existing introduction points on SIGHUP. Bugfix on
2434       0.0.6pre1. Patch by Karsten. Fixes bug 874.
2436   o Minor features:
2437     - Report the case where all signatures in a detached set are rejected
2438       differently than the case where there is an error handling the
2439       detached set.
2440     - When we realize that another process has modified our cached
2441       descriptors, print out a more useful error message rather than
2442       triggering an assertion. Fixes bug 885. Patch from Karsten.
2443     - Implement the 0x20 hack to better resist DNS poisoning: set the
2444       case on outgoing DNS requests randomly, and reject responses that do
2445       not match the case correctly. This logic can be disabled with the
2446       ServerDNSRamdomizeCase setting, if you are using one of the 0.3%
2447       of servers that do not reliably preserve case in replies. See
2448       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
2449       for more info.
2450     - Check DNS replies for more matching fields to better resist DNS
2451       poisoning.
2452     - Never use OpenSSL compression: it wastes RAM and CPU trying to
2453       compress cells, which are basically all encrypted, compressed, or
2454       both.
2457 Changes in version 0.2.1.11-alpha - 2009-01-20
2458   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
2459   week it will take a long time to bootstrap again" bug. It also fixes
2460   an important security-related bug reported by Ilja van Sprundel. You
2461   should upgrade. (We'll send out more details about the bug once people
2462   have had some time to upgrade.)
2464   o Security fixes:
2465     - Fix a heap-corruption bug that may be remotely triggerable on
2466       some platforms. Reported by Ilja van Sprundel.
2468   o Major bugfixes:
2469     - Discard router descriptors as we load them if they are more than
2470       five days old. Otherwise if Tor is off for a long time and then
2471       starts with cached descriptors, it will try to use the onion
2472       keys in those obsolete descriptors when building circuits. Bugfix
2473       on 0.2.0.x. Fixes bug 887.
2475   o Minor features:
2476     - Try to make sure that the version of Libevent we're running with
2477       is binary-compatible with the one we built with. May address bug
2478       897 and others.
2479     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
2480       for bug 905. Bugfix on 0.2.1.7-alpha.
2481     - Add a new --enable-local-appdata configuration switch to change
2482       the default location of the datadir on win32 from APPDATA to
2483       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
2484       entirely. Patch from coderman.
2486   o Minor bugfixes:
2487     - Make outbound DNS packets respect the OutboundBindAddress setting.
2488       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
2489     - When our circuit fails at the first hop (e.g. we get a destroy
2490       cell back), avoid using that OR connection anymore, and also
2491       tell all the one-hop directory requests waiting for it that they
2492       should fail. Bugfix on 0.2.1.3-alpha.
2493     - In the torify(1) manpage, mention that tsocks will leak your
2494       DNS requests.
2497 Changes in version 0.2.1.10-alpha - 2009-01-06
2498   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
2499   would make the bridge relay not so useful if it had DirPort set to 0,
2500   and one that could let an attacker learn a little bit of information
2501   about the bridge's users), and a bug that would cause your Tor relay
2502   to ignore a circuit create request it can't decrypt (rather than reply
2503   with an error). It also fixes a wide variety of other bugs.
2505   o Major bugfixes:
2506     - If the cached networkstatus consensus is more than five days old,
2507       discard it rather than trying to use it. In theory it could
2508       be useful because it lists alternate directory mirrors, but in
2509       practice it just means we spend many minutes trying directory
2510       mirrors that are long gone from the network. Helps bug 887 a bit;
2511       bugfix on 0.2.0.x.
2512     - Bridge relays that had DirPort set to 0 would stop fetching
2513       descriptors shortly after startup, and then briefly resume
2514       after a new bandwidth test and/or after publishing a new bridge
2515       descriptor. Bridge users that try to bootstrap from them would
2516       get a recent networkstatus but would get descriptors from up to
2517       18 hours earlier, meaning most of the descriptors were obsolete
2518       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
2519     - Prevent bridge relays from serving their 'extrainfo' document
2520       to anybody who asks, now that extrainfo docs include potentially
2521       sensitive aggregated client geoip summaries. Bugfix on
2522       0.2.0.13-alpha.
2524   o Minor features:
2525     - New controller event "clients_seen" to report a geoip-based summary
2526       of which countries we've seen clients from recently. Now controllers
2527       like Vidalia can show bridge operators that they're actually making
2528       a difference.
2529     - Build correctly against versions of OpenSSL 0.9.8 or later built
2530       without support for deprecated functions.
2531     - Update to the "December 19 2008" ip-to-country file.
2533   o Minor bugfixes (on 0.2.0.x):
2534     - Authorities now vote for the Stable flag for any router whose
2535       weighted MTBF is at least 5 days, regardless of the mean MTBF.
2536     - Do not remove routers as too old if we do not have any consensus
2537       document. Bugfix on 0.2.0.7-alpha.
2538     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
2539       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
2540     - When an exit relay resolves a stream address to a local IP address,
2541       do not just keep retrying that same exit relay over and
2542       over. Instead, just close the stream. Addresses bug 872. Bugfix
2543       on 0.2.0.32. Patch from rovv.
2544     - If a hidden service sends us an END cell, do not consider
2545       retrying the connection; just close it. Patch from rovv.
2546     - When we made bridge authorities stop serving bridge descriptors over
2547       unencrypted links, we also broke DirPort reachability testing for
2548       bridges. So bridges with a non-zero DirPort were printing spurious
2549       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
2550     - When a relay gets a create cell it can't decrypt (e.g. because it's
2551       using the wrong onion key), we were dropping it and letting the
2552       client time out. Now actually answer with a destroy cell. Fixes
2553       bug 904. Bugfix on 0.0.2pre8.
2554     - Squeeze 2-5% out of client performance (according to oprofile) by
2555       improving the implementation of some policy-manipulation functions.
2557   o Minor bugfixes (on 0.2.1.x):
2558     - Make get_interface_address() function work properly again; stop
2559       guessing the wrong parts of our address as our address.
2560     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
2561       send on that circuit. Otherwise we might violate the proposal-110
2562       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
2563       thanks to Karsten.
2564     - When we're sending non-EXTEND cells to the first hop in a circuit,
2565       for example to use an encrypted directory connection, we don't need
2566       to use RELAY_EARLY cells: the first hop knows what kind of cell
2567       it is, and nobody else can even see the cell type. Conserving
2568       RELAY_EARLY cells makes it easier to cannibalize circuits like
2569       this later.
2570     - Stop logging nameserver addresses in reverse order.
2571     - If we are retrying a directory download slowly over and over, do
2572       not automatically give up after the 254th failure. Bugfix on
2573       0.2.1.9-alpha.
2574     - Resume reporting accurate "stream end" reasons to the local control
2575       port. They were lost in the changes for Proposal 148. Bugfix on
2576       0.2.1.9-alpha.
2578   o Deprecated and removed features:
2579     - The old "tor --version --version" command, which would print out
2580       the subversion "Id" of most of the source files, is now removed. It
2581       turned out to be less useful than we'd expected, and harder to
2582       maintain.
2584   o Code simplifications and refactoring:
2585     - Change our header file guard macros to be less likely to conflict
2586       with system headers. Adam Langley noticed that we were conflicting
2587       with log.h on Android.
2588     - Tool-assisted documentation cleanup. Nearly every function or
2589       static variable in Tor should have its own documentation now.
2592 Changes in version 0.2.1.9-alpha - 2008-12-25
2593   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
2595   o New directory authorities:
2596     - gabelmoo (the authority run by Karsten Loesing) now has a new
2597       IP address.
2599   o Security fixes:
2600     - Never use a connection with a mismatched address to extend a
2601       circuit, unless that connection is canonical. A canonical
2602       connection is one whose address is authenticated by the router's
2603       identity key, either in a NETINFO cell or in a router descriptor.
2604     - Avoid a possible memory corruption bug when receiving hidden service
2605       descriptors. Bugfix on 0.2.1.6-alpha.
2607   o Major bugfixes:
2608     - Fix a logic error that would automatically reject all but the first
2609       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
2610       part of bug 813/868. Bug spotted by coderman.
2611     - When a stream at an exit relay is in state "resolving" or
2612       "connecting" and it receives an "end" relay cell, the exit relay
2613       would silently ignore the end cell and not close the stream. If
2614       the client never closes the circuit, then the exit relay never
2615       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
2616       reported by "wood".
2617     - When we can't initialize DNS because the network is down, do not
2618       automatically stop Tor from starting. Instead, retry failed
2619       dns_init() every 10 minutes, and change the exit policy to reject
2620       *:* until one succeeds. Fixes bug 691.
2622   o Minor features:
2623     - Give a better error message when an overzealous init script says
2624       "sudo -u username tor --user username". Makes Bug 882 easier for
2625       users to diagnose.
2626     - When a directory authority gives us a new guess for our IP address,
2627       log which authority we used. Hopefully this will help us debug
2628       the recent complaints about bad IP address guesses.
2629     - Detect svn revision properly when we're using git-svn.
2630     - Try not to open more than one descriptor-downloading connection
2631       to an authority at once. This should reduce load on directory
2632       authorities. Fixes bug 366.
2633     - Add cross-certification to newly generated certificates, so that
2634       a signing key is enough information to look up a certificate.
2635       Partial implementation of proposal 157.
2636     - Start serving certificates by <identity digest, signing key digest>
2637       pairs. Partial implementation of proposal 157.
2638     - Clients now never report any stream end reason except 'MISC'.
2639       Implements proposal 148.
2640     - On platforms with a maximum syslog string length, truncate syslog
2641       messages to that length ourselves, rather than relying on the
2642       system to do it for us.
2643     - Optimize out calls to time(NULL) that occur for every IO operation,
2644       or for every cell. On systems where time() is a slow syscall,
2645       this fix will be slightly helpful.
2646     - Exit servers can now answer resolve requests for ip6.arpa addresses.
2647     - When we download a descriptor that we then immediately (as
2648       a directory authority) reject, do not retry downloading it right
2649       away. Should save some bandwidth on authorities. Fix for bug
2650       888. Patch by Sebastian Hahn.
2651     - When a download gets us zero good descriptors, do not notify
2652       Tor that new directory information has arrived.
2653     - Avoid some nasty corner cases in the logic for marking connections
2654       as too old or obsolete or noncanonical for circuits.  Partial
2655       bugfix on bug 891.
2657   o Minor features (controller):
2658     - New CONSENSUS_ARRIVED event to note when a new consensus has
2659       been fetched and validated.
2660     - When we realize that another process has modified our cached
2661       descriptors file, print out a more useful error message rather
2662       than triggering an assertion. Fixes bug 885. Patch from Karsten.
2663     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
2664       controllers to prevent SIGHUP from reloading the
2665       configuration. Fixes bug 856.
2667   o Minor bugfixes:
2668     - Resume using the correct "REASON=" stream when telling the
2669       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
2670     - When a canonical connection appears later in our internal list
2671       than a noncanonical one for a given OR ID, always use the
2672       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
2673       Spotted by rovv.
2674     - Clip the MaxCircuitDirtiness config option to a minimum of 10
2675       seconds. Warn the user if lower values are given in the
2676       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
2677     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
2678       user if lower values are given in the configuration. Bugfix on
2679       0.1.1.17-rc. Patch by Sebastian.
2680     - Fix a race condition when freeing keys shared between main thread
2681       and CPU workers that could result in a memory leak. Bugfix on
2682       0.1.0.1-rc. Fixes bug 889.
2684   o Minor bugfixes (hidden services):
2685     - Do not throw away existing introduction points on SIGHUP (bugfix on
2686       0.0.6pre1); also, do not stall hidden services because we're
2687       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
2688       by John Brooks. Patch by Karsten. Fixes bug 874.
2689     - Fix a memory leak when we decline to add a v2 rendezvous
2690       descriptor to the cache because we already had a v0 descriptor
2691       with the same ID. Bugfix on 0.2.0.18-alpha.
2693   o Deprecated and removed features:
2694     - RedirectExits has been removed. It was deprecated since
2695       0.2.0.3-alpha.
2696     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
2697       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
2698     - Cell pools are now always enabled; --disable-cell-pools is ignored.
2700   o Code simplifications and refactoring:
2701     - Rename the confusing or_is_obsolete field to the more appropriate
2702       is_bad_for_new_circs, and move it to or_connection_t where it
2703       belongs.
2704     - Move edge-only flags from connection_t to edge_connection_t: not
2705       only is this better coding, but on machines of plausible alignment,
2706       it should save 4-8 bytes per connection_t. "Every little bit helps."
2707     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
2708       for consistency; keep old option working for backward compatibility.
2709     - Simplify the code for finding connections to use for a circuit.
2712 Changes in version 0.2.1.8-alpha - 2008-12-08
2713   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
2714   builds better on unusual platforms like Solaris and old OS X, and
2715   fixes a variety of other issues.
2717   o Major features:
2718     - New DirPortFrontPage option that takes an html file and publishes
2719       it as "/" on the DirPort. Now relay operators can provide a
2720       disclaimer without needing to set up a separate webserver. There's
2721       a sample disclaimer in contrib/tor-exit-notice.html.
2723   o Security fixes:
2724     - When the client is choosing entry guards, now it selects at most
2725       one guard from a given relay family. Otherwise we could end up with
2726       all of our entry points into the network run by the same operator.
2727       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
2729   o Major bugfixes:
2730     - Fix a DOS opportunity during the voting signature collection process
2731       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
2732     - Fix a possible segfault when establishing an exit connection. Bugfix
2733       on 0.2.1.5-alpha.
2735   o Minor bugfixes:
2736     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
2737       bug 859.
2738     - Made Tor a little less aggressive about deleting expired
2739       certificates. Partial fix for bug 854.
2740     - Stop doing unaligned memory access that generated bus errors on
2741       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
2742     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
2743       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
2744     - Make USR2 log-level switch take effect immediately. Bugfix on
2745       0.1.2.8-beta.
2746     - If one win32 nameserver fails to get added, continue adding the
2747       rest, and don't automatically fail.
2748     - Use fcntl() for locking when flock() is not available. Should fix
2749       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
2750     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
2751       could make gcc generate non-functional binary search code. Bugfix
2752       on 0.2.0.10-alpha.
2753     - Build correctly on platforms without socklen_t.
2754     - Avoid potential crash on internal error during signature collection.
2755       Fixes bug 864. Patch from rovv.
2756     - Do not use C's stdio library for writing to log files. This will
2757       improve logging performance by a minute amount, and will stop
2758       leaking fds when our disk is full. Fixes bug 861.
2759     - Stop erroneous use of O_APPEND in cases where we did not in fact
2760       want to re-seek to the end of a file before every last write().
2761     - Correct handling of possible malformed authority signing key
2762       certificates with internal signature types. Fixes bug 880. Bugfix
2763       on 0.2.0.3-alpha.
2764     - Fix a hard-to-trigger resource leak when logging credential status.
2765       CID 349.
2767   o Minor features:
2768     - Directory mirrors no longer fetch the v1 directory or
2769       running-routers files. They are obsolete, and nobody asks for them
2770       anymore. This is the first step to making v1 authorities obsolete.
2772   o Minor features (controller):
2773     - Return circuit purposes in response to GETINFO circuit-status. Fixes
2774       bug 858.
2777 Changes in version 0.2.0.32 - 2008-11-20
2778   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
2779   packages (and maybe other packages) noticed by Theo de Raadt, fixes
2780   a smaller security flaw that might allow an attacker to access local
2781   services, further improves hidden service performance, and fixes a
2782   variety of other issues.
2784   o Security fixes:
2785     - The "User" and "Group" config options did not clear the
2786       supplementary group entries for the Tor process. The "User" option
2787       is now more robust, and we now set the groups to the specified
2788       user's primary group. The "Group" option is now ignored. For more
2789       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
2790       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
2791       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
2792     - The "ClientDNSRejectInternalAddresses" config option wasn't being
2793       consistently obeyed: if an exit relay refuses a stream because its
2794       exit policy doesn't allow it, we would remember what IP address
2795       the relay said the destination address resolves to, even if it's
2796       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
2798   o Major bugfixes:
2799     - Fix a DOS opportunity during the voting signature collection process
2800       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
2802   o Major bugfixes (hidden services):
2803     - When fetching v0 and v2 rendezvous service descriptors in parallel,
2804       we were failing the whole hidden service request when the v0
2805       descriptor fetch fails, even if the v2 fetch is still pending and
2806       might succeed. Similarly, if the last v2 fetch fails, we were
2807       failing the whole hidden service request even if a v0 fetch is
2808       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
2809     - When extending a circuit to a hidden service directory to upload a
2810       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
2811       requests failed, because the router descriptor has not been
2812       downloaded yet. In these cases, do not attempt to upload the
2813       rendezvous descriptor, but wait until the router descriptor is
2814       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
2815       descriptor from a hidden service directory for which the router
2816       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
2817       on 0.2.0.10-alpha.
2819   o Minor bugfixes:
2820     - Fix several infrequent memory leaks spotted by Coverity.
2821     - When testing for libevent functions, set the LDFLAGS variable
2822       correctly. Found by Riastradh.
2823     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
2824       bootstrapping with tunneled directory connections. Bugfix on
2825       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
2826     - When asked to connect to A.B.exit:80, if we don't know the IP for A
2827       and we know that server B rejects most-but-not all connections to
2828       port 80, we would previously reject the connection. Now, we assume
2829       the user knows what they were asking for. Fixes bug 752. Bugfix
2830       on 0.0.9rc5. Diagnosed by BarkerJr.
2831     - If we overrun our per-second write limits a little, count this as
2832       having used up our write allocation for the second, and choke
2833       outgoing directory writes. Previously, we had only counted this when
2834       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
2835       Bugfix on 0.2.0.x (??).
2836     - Remove the old v2 directory authority 'lefkada' from the default
2837       list. It has been gone for many months.
2838     - Stop doing unaligned memory access that generated bus errors on
2839       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
2840     - Make USR2 log-level switch take effect immediately. Bugfix on
2841       0.1.2.8-beta.
2843   o Minor bugfixes (controller):
2844     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
2845       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
2848 Changes in version 0.2.1.7-alpha - 2008-11-08
2849   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
2850   packages (and maybe other packages) noticed by Theo de Raadt, fixes
2851   a smaller security flaw that might allow an attacker to access local
2852   services, adds better defense against DNS poisoning attacks on exit
2853   relays, further improves hidden service performance, and fixes a
2854   variety of other issues.
2856   o Security fixes:
2857     - The "ClientDNSRejectInternalAddresses" config option wasn't being
2858       consistently obeyed: if an exit relay refuses a stream because its
2859       exit policy doesn't allow it, we would remember what IP address
2860       the relay said the destination address resolves to, even if it's
2861       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
2862     - The "User" and "Group" config options did not clear the
2863       supplementary group entries for the Tor process. The "User" option
2864       is now more robust, and we now set the groups to the specified
2865       user's primary group. The "Group" option is now ignored. For more
2866       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
2867       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
2868       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
2869     - Do not use or believe expired v3 authority certificates. Patch
2870       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
2872   o Minor features:
2873     - Now NodeFamily and MyFamily config options allow spaces in
2874       identity fingerprints, so it's easier to paste them in.
2875       Suggested by Lucky Green.
2876     - Implement the 0x20 hack to better resist DNS poisoning: set the
2877       case on outgoing DNS requests randomly, and reject responses that do
2878       not match the case correctly. This logic can be disabled with the
2879       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
2880       of servers that do not reliably preserve case in replies. See
2881       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
2882       for more info.
2883     - Preserve case in replies to DNSPort requests in order to support
2884       the 0x20 hack for resisting DNS poisoning attacks.
2886   o Hidden service performance improvements:
2887     - When the client launches an introduction circuit, retry with a
2888       new circuit after 30 seconds rather than 60 seconds.
2889     - Launch a second client-side introduction circuit in parallel
2890       after a delay of 15 seconds (based on work by Christian Wilms).
2891     - Hidden services start out building five intro circuits rather
2892       than three, and when the first three finish they publish a service
2893       descriptor using those. Now we publish our service descriptor much
2894       faster after restart.
2896   o Minor bugfixes:
2897     - Minor fix in the warning messages when you're having problems
2898       bootstrapping; also, be more forgiving of bootstrap problems when
2899       we're still making incremental progress on a given bootstrap phase.
2900     - When we're choosing an exit node for a circuit, and we have
2901       no pending streams, choose a good general exit rather than one that
2902       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
2903     - Send a valid END cell back when a client tries to connect to a
2904       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
2905       840. Patch from rovv.
2906     - If a broken client asks a non-exit router to connect somewhere,
2907       do not even do the DNS lookup before rejecting the connection.
2908       Fixes another case of bug 619. Patch from rovv.
2909     - Fix another case of assuming, when a specific exit is requested,
2910       that we know more than the user about what hosts it allows.
2911       Fixes another case of bug 752. Patch from rovv.
2912     - Check which hops rendezvous stream cells are associated with to
2913       prevent possible guess-the-streamid injection attacks from
2914       intermediate hops. Fixes another case of bug 446. Based on patch
2915       from rovv.
2916     - Avoid using a negative right-shift when comparing 32-bit
2917       addresses. Possible fix for bug 845 and bug 811.
2918     - Make the assert_circuit_ok() function work correctly on circuits that
2919       have already been marked for close.
2920     - Fix read-off-the-end-of-string error in unit tests when decoding
2921       introduction points.
2922     - Fix uninitialized size field for memory area allocation: may improve
2923       memory performance during directory parsing.
2924     - Treat duplicate certificate fetches as failures, so that we do
2925       not try to re-fetch an expired certificate over and over and over.
2926     - Do not say we're fetching a certificate when we'll in fact skip it
2927       because of a pending download.
2930 Changes in version 0.2.1.6-alpha - 2008-09-30
2931   Tor 0.2.1.6-alpha further improves performance and robustness of
2932   hidden services, starts work on supporting per-country relay selection,
2933   and fixes a variety of smaller issues.
2935   o Major features:
2936     - Implement proposal 121: make it possible to build hidden services
2937       that only certain clients are allowed to connect to. This is
2938       enforced at several points, so that unauthorized clients are unable
2939       to send INTRODUCE cells to the service, or even (depending on the
2940       type of authentication) to learn introduction points. This feature
2941       raises the bar for certain kinds of active attacks against hidden
2942       services. Code by Karsten Loesing.
2943     - Relays now store and serve v2 hidden service descriptors by default,
2944       i.e., the new default value for HidServDirectoryV2 is 1. This is
2945       the last step in proposal 114, which aims to make hidden service
2946       lookups more reliable.
2947     - Start work to allow node restrictions to include country codes. The
2948       syntax to exclude nodes in a country with country code XX is
2949       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
2950       refinement to decide what config options should take priority if
2951       you ask to both use a particular node and exclude it.
2952     - Allow ExitNodes list to include IP ranges and country codes, just
2953       like the Exclude*Nodes lists. Patch from Robert Hogan.
2955   o Major bugfixes:
2956     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
2957       Tor to fail to start if you had it configured to use a bridge
2958       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
2959     - When extending a circuit to a hidden service directory to upload a
2960       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
2961       requests failed, because the router descriptor had not been
2962       downloaded yet. In these cases, we now wait until the router
2963       descriptor is downloaded, and then retry. Likewise, clients
2964       now skip over a hidden service directory if they don't yet have
2965       its router descriptor, rather than futilely requesting it and
2966       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
2967       on 0.2.0.10-alpha.
2968     - When fetching v0 and v2 rendezvous service descriptors in parallel,
2969       we were failing the whole hidden service request when the v0
2970       descriptor fetch fails, even if the v2 fetch is still pending and
2971       might succeed. Similarly, if the last v2 fetch fails, we were
2972       failing the whole hidden service request even if a v0 fetch is
2973       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
2974     - DNS replies need to have names matching their requests, but
2975       these names should be in the questions section, not necessarily
2976       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
2978   o Minor features:
2979     - Update to the "September 1 2008" ip-to-country file.
2980     - Allow ports 465 and 587 in the default exit policy again. We had
2981       rejected them in 0.1.0.15, because back in 2005 they were commonly
2982       misconfigured and ended up as spam targets. We hear they are better
2983       locked down these days.
2984     - Use a lockfile to make sure that two Tor processes are not
2985       simultaneously running with the same datadir.
2986     - Serve the latest v3 networkstatus consensus via the control
2987       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
2988     - Better logging about stability/reliability calculations on directory
2989       servers.
2990     - Drop the requirement to have an open dir port for storing and
2991       serving v2 hidden service descriptors.
2992     - Directory authorities now serve a /tor/dbg-stability.txt URL to
2993       help debug WFU and MTBF calculations.
2994     - Implement most of Proposal 152: allow specialized servers to permit
2995       single-hop circuits, and clients to use those servers to build
2996       single-hop circuits when using a specialized controller. Patch
2997       from Josh Albrecht. Resolves feature request 768.
2998     - Add a -p option to tor-resolve for specifying the SOCKS port: some
2999       people find host:port too confusing.
3000     - Make TrackHostExit mappings expire a while after their last use, not
3001       after their creation. Patch from Robert Hogan.
3002     - Provide circuit purposes along with circuit events to the controller.
3004   o Minor bugfixes:
3005     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
3006       Reported by Tas.
3007     - Fixed some memory leaks -- some quite frequent, some almost
3008       impossible to trigger -- based on results from Coverity.
3009     - When testing for libevent functions, set the LDFLAGS variable
3010       correctly. Found by Riastradh.
3011     - Fix an assertion bug in parsing policy-related options; possible fix
3012       for bug 811.
3013     - Catch and report a few more bootstrapping failure cases when Tor
3014       fails to establish a TCP connection. Cleanup on 0.2.1.x.
3015     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
3016       bootstrapping with tunneled directory connections. Bugfix on
3017       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
3018     - When asked to connect to A.B.exit:80, if we don't know the IP for A
3019       and we know that server B rejects most-but-not all connections to
3020       port 80, we would previously reject the connection. Now, we assume
3021       the user knows what they were asking for. Fixes bug 752. Bugfix
3022       on 0.0.9rc5. Diagnosed by BarkerJr.
3023     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
3024       service directories if they have no advertised dir port. Bugfix
3025       on 0.2.0.10-alpha.
3026     - If we overrun our per-second write limits a little, count this as
3027       having used up our write allocation for the second, and choke
3028       outgoing directory writes. Previously, we had only counted this when
3029       we had met our limits precisely. Fixes bug 824. Patch by rovv.
3030       Bugfix on 0.2.0.x (??).
3031     - Avoid a "0 divided by 0" calculation when calculating router uptime
3032       at directory authorities. Bugfix on 0.2.0.8-alpha.
3033     - Make DNS resolved controller events into "CLOSED", not
3034       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
3035       bug 807.
3036     - Fix a bug where an unreachable relay would establish enough
3037       reachability testing circuits to do a bandwidth test -- if
3038       we already have a connection to the middle hop of the testing
3039       circuit, then it could establish the last hop by using the existing
3040       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
3041       circuits no longer use entry guards in 0.2.1.3-alpha.
3042     - If we have correct permissions on $datadir, we complain to stdout
3043       and fail to start. But dangerous permissions on
3044       $datadir/cached-status/ would cause us to open a log and complain
3045       there. Now complain to stdout and fail to start in both cases. Fixes
3046       bug 820, reported by seeess.
3047     - Remove the old v2 directory authority 'lefkada' from the default
3048       list. It has been gone for many months.
3050   o Code simplifications and refactoring:
3051     - Revise the connection_new functions so that a more typesafe variant
3052       exists. This will work better with Coverity, and let us find any
3053       actual mistakes we're making here.
3054     - Refactor unit testing logic so that dmalloc can be used sensibly
3055       with unit tests to check for memory leaks.
3056     - Move all hidden-service related fields from connection and circuit
3057       structure to substructures: this way they won't eat so much memory.
3060 Changes in version 0.2.0.31 - 2008-09-03
3061   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
3062   a big bug we're seeing where in rare cases traffic from one Tor stream
3063   gets mixed into another stream, and fixes a variety of smaller issues.
3065   o Major bugfixes:
3066     - Make sure that two circuits can never exist on the same connection
3067       with the same circuit ID, even if one is marked for close. This
3068       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
3069     - Relays now reject risky extend cells: if the extend cell includes
3070       a digest of all zeroes, or asks to extend back to the relay that
3071       sent the extend cell, tear down the circuit. Ideas suggested
3072       by rovv.
3073     - If not enough of our entry guards are available so we add a new
3074       one, we might use the new one even if it overlapped with the
3075       current circuit's exit relay (or its family). Anonymity bugfix
3076       pointed out by rovv.
3078   o Minor bugfixes:
3079     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
3080       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
3081     - Correctly detect the presence of the linux/netfilter_ipv4.h header
3082       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
3083     - Pick size of default geoip filename string correctly on windows.
3084       Fixes bug 806. Bugfix on 0.2.0.30.
3085     - Make the autoconf script accept the obsolete --with-ssl-dir
3086       option as an alias for the actually-working --with-openssl-dir
3087       option. Fix the help documentation to recommend --with-openssl-dir.
3088       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
3089     - When using the TransPort option on OpenBSD, and using the User
3090       option to change UID and drop privileges, make sure to open
3091       /dev/pf before dropping privileges. Fixes bug 782. Patch from
3092       Christopher Davis. Bugfix on 0.1.2.1-alpha.
3093     - Try to attach connections immediately upon receiving a RENDEZVOUS2
3094       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
3095       on the client side when connecting to a hidden service. Bugfix
3096       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
3097     - When closing an application-side connection because its circuit is
3098       getting torn down, generate the stream event correctly. Bugfix on
3099       0.1.2.x. Anonymous patch.
3102 Changes in version 0.2.1.5-alpha - 2008-08-31
3103   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
3104   in a lot of the infrastructure for adding authorization to hidden
3105   services, lays the groundwork for having clients read their load
3106   balancing information out of the networkstatus consensus rather than
3107   the individual router descriptors, addresses two potential anonymity
3108   issues, and fixes a variety of smaller issues.
3110   o Major features:
3111     - Convert many internal address representations to optionally hold
3112       IPv6 addresses.
3113     - Generate and accept IPv6 addresses in many protocol elements.
3114     - Make resolver code handle nameservers located at ipv6 addresses.
3115     - Begin implementation of proposal 121 ("Client authorization for
3116       hidden services"): configure hidden services with client
3117       authorization, publish descriptors for them, and configure
3118       authorization data for hidden services at clients. The next
3119       step is to actually access hidden services that perform client
3120       authorization.
3121     - More progress toward proposal 141: Network status consensus
3122       documents and votes now contain bandwidth information for each
3123       router and a summary of that router's exit policy. Eventually this
3124       will be used by clients so that they do not have to download every
3125       known descriptor before building circuits.
3127   o Major bugfixes (on 0.2.0.x and before):
3128     - When sending CREATED cells back for a given circuit, use a 64-bit
3129       connection ID to find the right connection, rather than an addr:port
3130       combination. Now that we can have multiple OR connections between
3131       the same ORs, it is no longer possible to use addr:port to uniquely
3132       identify a connection.
3133     - Relays now reject risky extend cells: if the extend cell includes
3134       a digest of all zeroes, or asks to extend back to the relay that
3135       sent the extend cell, tear down the circuit. Ideas suggested
3136       by rovv.
3137     - If not enough of our entry guards are available so we add a new
3138       one, we might use the new one even if it overlapped with the
3139       current circuit's exit relay (or its family). Anonymity bugfix
3140       pointed out by rovv.
3142   o Minor bugfixes:
3143     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
3144       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
3145     - When using the TransPort option on OpenBSD, and using the User
3146       option to change UID and drop privileges, make sure to open /dev/pf
3147       before dropping privileges. Fixes bug 782. Patch from Christopher
3148       Davis. Bugfix on 0.1.2.1-alpha.
3149     - Correctly detect the presence of the linux/netfilter_ipv4.h header
3150       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
3151     - Add a missing safe_str() call for a debug log message.
3152     - Use 64 bits instead of 32 bits for connection identifiers used with
3153       the controller protocol, to greatly reduce risk of identifier reuse.
3154     - Make the autoconf script accept the obsolete --with-ssl-dir
3155       option as an alias for the actually-working --with-openssl-dir
3156       option. Fix the help documentation to recommend --with-openssl-dir.
3157       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
3159   o Minor features:
3160     - Rate-limit too-many-sockets messages: when they happen, they happen
3161       a lot. Resolves bug 748.
3162     - Resist DNS poisoning a little better by making sure that names in
3163       answer sections match.
3164     - Print the SOCKS5 error message string as well as the error code
3165       when a tor-resolve request fails. Patch from Jacob.
3168 Changes in version 0.2.1.4-alpha - 2008-08-04
3169   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
3171   o Major bugfixes:
3172     - The address part of exit policies was not correctly written
3173       to router descriptors. This generated router descriptors that failed
3174       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
3175       on 0.2.1.3-alpha.
3176     - Tor triggered a false assert when extending a circuit to a relay
3177       but we already have a connection open to that relay. Noticed by
3178       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
3180   o Minor bugfixes:
3181     - Fix a hidden service logging bug: in some edge cases, the router
3182       descriptor of a previously picked introduction point becomes
3183       obsolete and we need to give up on it rather than continually
3184       complaining that it has become obsolete. Observed by xiando. Bugfix
3185       on 0.2.1.3-alpha.
3187   o Removed features:
3188     - Take out the TestVia config option, since it was a workaround for
3189       a bug that was fixed in Tor 0.1.1.21.
3192 Changes in version 0.2.1.3-alpha - 2008-08-03
3193   Tor 0.2.1.3-alpha implements most of the pieces to prevent
3194   infinite-length circuit attacks (see proposal 110); fixes a bug that
3195   might cause exit relays to corrupt streams they send back; allows
3196   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
3197   ExcludeExitNodes config options; and fixes a big pile of bugs.
3199   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
3200     - Send a bootstrap problem "warn" event on the first problem if the
3201       reason is NO_ROUTE (that is, our network is down).
3203   o Major features:
3204     - Implement most of proposal 110: The first K cells to be sent
3205       along a circuit are marked as special "early" cells; only K "early"
3206       cells will be allowed. Once this code is universal, we can block
3207       certain kinds of DOS attack by requiring that EXTEND commands must
3208       be sent using an "early" cell.
3210   o Major bugfixes:
3211     - Try to attach connections immediately upon receiving a RENDEZVOUS2
3212       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
3213       on the client side when connecting to a hidden service. Bugfix
3214       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
3215     - Ensure that two circuits can never exist on the same connection
3216       with the same circuit ID, even if one is marked for close. This
3217       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
3219   o Minor features:
3220     - When relays do their initial bandwidth measurement, don't limit
3221       to just our entry guards for the test circuits. Otherwise we tend
3222       to have multiple test circuits going through a single entry guard,
3223       which makes our bandwidth test less accurate. Fixes part of bug 654;
3224       patch contributed by Josh Albrecht.
3225     - Add an ExcludeExitNodes option so users can list a set of nodes
3226       that should be be excluded from the exit node position, but
3227       allowed elsewhere. Implements proposal 151.
3228     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
3229       ExcludeNodes and ExcludeExitNodes lists.
3230     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
3231       be more efficient. Formerly it was quadratic in the number of
3232       servers; now it should be linear. Fixes bug 509.
3233     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
3234       and n_conn_id_digest fields into a separate structure that's
3235       only needed when the circuit has not yet attached to an n_conn.
3237   o Minor bugfixes:
3238     - Change the contrib/tor.logrotate script so it makes the new
3239       logs as "_tor:_tor" rather than the default, which is generally
3240       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
3241     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
3242       warnings (occasionally), but it can also cause the compiler to
3243       eliminate error-checking code. Suggested by Peter Gutmann.
3244     - When a hidden service is giving up on an introduction point candidate
3245       that was not included in the last published rendezvous descriptor,
3246       don't reschedule publication of the next descriptor. Fixes bug 763.
3247       Bugfix on 0.0.9.3.
3248     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
3249       HiddenServiceExcludeNodes as obsolete: they never worked properly,
3250       and nobody claims to be using them. Fixes bug 754. Bugfix on
3251       0.1.0.1-rc. Patch from Christian Wilms.
3252     - Fix a small alignment and memory-wasting bug on buffer chunks.
3253       Spotted by rovv.
3255   o Minor bugfixes (controller):
3256     - When closing an application-side connection because its circuit
3257       is getting torn down, generate the stream event correctly.
3258       Bugfix on 0.1.2.x. Anonymous patch.
3260   o Removed features:
3261     - Remove all backward-compatibility code to support relays running
3262       versions of Tor so old that they no longer work at all on the
3263       Tor network.
3266 Changes in version 0.2.0.30 - 2008-07-15
3267   o Minor bugfixes:
3268     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
3269       warnings (occasionally), but it can also cause the compiler to
3270       eliminate error-checking code. Suggested by Peter Gutmann.
3273 Changes in version 0.2.0.29-rc - 2008-07-08
3274   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
3275   hidden-service performance bugs, and fixes a bunch of smaller bugs.
3277   o Major bugfixes:
3278     - If you have more than one bridge but don't know their keys,
3279       you would only launch a request for the descriptor of the first one
3280       on your list. (Tor considered launching requests for the others, but
3281       found that it already had a connection on the way for $0000...0000
3282       so it didn't open another.) Bugfix on 0.2.0.x.
3283     - If you have more than one bridge but don't know their keys, and the
3284       connection to one of the bridges failed, you would cancel all
3285       pending bridge connections. (After all, they all have the same
3286       digest.) Bugfix on 0.2.0.x.
3287     - When a hidden service was trying to establish an introduction point,
3288       and Tor had built circuits preemptively for such purposes, we
3289       were ignoring all the preemptive circuits and launching a new one
3290       instead. Bugfix on 0.2.0.14-alpha.
3291     - When a hidden service was trying to establish an introduction point,
3292       and Tor *did* manage to reuse one of the preemptively built
3293       circuits, it didn't correctly remember which one it used,
3294       so it asked for another one soon after, until there were no
3295       more preemptive circuits, at which point it launched one from
3296       scratch. Bugfix on 0.0.9.x.
3297     - Make directory servers include the X-Your-Address-Is: http header in
3298       their responses even for begin_dir conns. Now clients who only
3299       ever use begin_dir connections still have a way to learn their IP
3300       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
3302   o Minor bugfixes:
3303     - Fix a macro/CPP interaction that was confusing some compilers:
3304       some GCCs don't like #if/#endif pairs inside macro arguments.
3305       Fixes bug 707.
3306     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
3307       Fixes bug 704; fix from Steven Murdoch.
3308     - When opening /dev/null in finish_daemonize(), do not pass the
3309       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
3310       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
3311     - Correctly detect transparent proxy support on Linux hosts that
3312       require in.h to be included before netfilter_ipv4.h. Patch
3313       from coderman.
3314     - Disallow session resumption attempts during the renegotiation
3315       stage of the v2 handshake protocol. Clients should never be trying
3316       session resumption at this point, but apparently some did, in
3317       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
3318       found by Geoff Goodell.
3321 Changes in version 0.2.1.2-alpha - 2008-06-20
3322   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
3323   make it easier to set up your own private Tor network; fixes several
3324   big bugs with using more than one bridge relay; fixes a big bug with
3325   offering hidden services quickly after Tor starts; and uses a better
3326   API for reporting potential bootstrapping problems to the controller.
3328   o Major features:
3329     - New TestingTorNetwork config option to allow adjustment of
3330       previously constant values that, while reasonable, could slow
3331       bootstrapping. Implements proposal 135. Patch from Karsten.
3333   o Major bugfixes:
3334     - If you have more than one bridge but don't know their digests,
3335       you would only learn a request for the descriptor of the first one
3336       on your list. (Tor considered launching requests for the others, but
3337       found that it already had a connection on the way for $0000...0000
3338       so it didn't open another.) Bugfix on 0.2.0.x.
3339     - If you have more than one bridge but don't know their digests,
3340       and the connection to one of the bridges failed, you would cancel
3341       all pending bridge connections. (After all, they all have the
3342       same digest.) Bugfix on 0.2.0.x.
3343     - When establishing a hidden service, introduction points that
3344       originate from cannibalized circuits are completely ignored and not
3345       included in rendezvous service descriptors. This might be another
3346       reason for delay in making a hidden service available. Bugfix
3347       from long ago (0.0.9.x?)
3349   o Minor features:
3350     - Allow OpenSSL to use dynamic locks if it wants.
3351     - When building a consensus, do not include routers that are down.
3352       This will cut down 30% to 40% on consensus size. Implements
3353       proposal 138.
3354     - In directory authorities' approved-routers files, allow
3355       fingerprints with or without space.
3356     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
3357       controller can query our current bootstrap state in case it attaches
3358       partway through and wants to catch up.
3359     - Send an initial "Starting" bootstrap status event, so we have a
3360       state to start out in.
3362   o Minor bugfixes:
3363     - Asking for a conditional consensus at .../consensus/<fingerprints>
3364       would crash a dirserver if it did not already have a
3365       consensus. Bugfix on 0.2.1.1-alpha.
3366     - Clean up some macro/CPP interactions: some GCC versions don't like
3367       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
3368       0.2.0.x.
3370   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
3371     - Directory authorities shouldn't complain about bootstrapping
3372       problems just because they do a lot of reachability testing and
3373       some of the connection attempts fail.
3374     - Start sending "count" and "recommendation" key/value pairs in
3375       bootstrap problem status events, so the controller can hear about
3376       problems even before Tor decides they're worth reporting for sure.
3377     - If you're using bridges, generate "bootstrap problem" warnings
3378       as soon as you run out of working bridges, rather than waiting
3379       for ten failures -- which will never happen if you have less than
3380       ten bridges.
3381     - If we close our OR connection because there's been a circuit
3382       pending on it for too long, we were telling our bootstrap status
3383       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
3386 Changes in version 0.2.1.1-alpha - 2008-06-13
3387   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
3388   were making the Tor process bloat especially on Linux; makes our TLS
3389   handshake blend in better; sends "bootstrap phase" status events to
3390   the controller, so it can keep the user informed of progress (and
3391   problems) fetching directory information and establishing circuits;
3392   and adds a variety of smaller features.
3394   o Major features:
3395     - More work on making our TLS handshake blend in: modify the list
3396       of ciphers advertised by OpenSSL in client mode to even more
3397       closely resemble a common web browser. We cheat a little so that
3398       we can advertise ciphers that the locally installed OpenSSL doesn't
3399       know about.
3400     - Start sending "bootstrap phase" status events to the controller,
3401       so it can keep the user informed of progress fetching directory
3402       information and establishing circuits. Also inform the controller
3403       if we think we're stuck at a particular bootstrap phase. Implements
3404       proposal 137.
3405     - Resume using OpenSSL's RAND_poll() for better (and more portable)
3406       cross-platform entropy collection again. We used to use it, then
3407       stopped using it because of a bug that could crash systems that
3408       called RAND_poll when they had a lot of fds open. It looks like the
3409       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
3410       at startup, and to call RAND_poll() when we reseed later only if
3411       we have a non-buggy OpenSSL version.
3413   o Major bugfixes:
3414     - When we choose to abandon a new entry guard because we think our
3415       older ones might be better, close any circuits pending on that
3416       new entry guard connection. This fix should make us recover much
3417       faster when our network is down and then comes back. Bugfix on
3418       0.1.2.8-beta; found by lodger.
3420   o Memory fixes and improvements:
3421     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
3422       to avoid unused RAM in buffer chunks and memory pools.
3423     - Speed up parsing and cut down on memory fragmentation by using
3424       stack-style allocations for parsing directory objects. Previously,
3425       this accounted for over 40% of allocations from within Tor's code
3426       on a typical directory cache.
3427     - Use a Bloom filter rather than a digest-based set to track which
3428       descriptors we need to keep around when we're cleaning out old
3429       router descriptors. This speeds up the computation significantly,
3430       and may reduce fragmentation.
3431     - Reduce the default smartlist size from 32 to 16; it turns out that
3432       most smartlists hold around 8-12 elements tops.
3433     - Make dumpstats() log the fullness and size of openssl-internal
3434       buffers.
3435     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
3436       patch to their OpenSSL, turn it on to save memory on servers. This
3437       patch will (with any luck) get included in a mainline distribution
3438       before too long.
3439     - Never use OpenSSL compression: it wastes RAM and CPU trying to
3440       compress cells, which are basically all encrypted, compressed,
3441       or both.
3443   o Minor bugfixes:
3444     - Stop reloading the router list from disk for no reason when we
3445       run out of reachable directory mirrors. Once upon a time reloading
3446       it would set the 'is_running' flag back to 1 for them. It hasn't
3447       done that for a long time.
3448     - In very rare situations new hidden service descriptors were
3449       published earlier than 30 seconds after the last change to the
3450       service. (We currently think that a hidden service descriptor
3451       that's been stable for 30 seconds is worth publishing.)
3453   o Minor features:
3454     - Allow separate log levels to be configured for different logging
3455       domains. For example, this allows one to log all notices, warnings,
3456       or errors, plus all memory management messages of level debug or
3457       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
3458     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
3459       and stop using a warning that had become unfixably verbose under
3460       GCC 4.3.
3461     - New --hush command-line option similar to --quiet. While --quiet
3462       disables all logging to the console on startup, --hush limits the
3463       output to messages of warning and error severity.
3464     - Servers support a new URL scheme for consensus downloads that
3465       allows the client to specify which authorities are trusted.
3466       The server then only sends the consensus if the client will trust
3467       it. Otherwise a 404 error is sent back. Clients use this
3468       new scheme when the server supports it (meaning it's running
3469       0.2.1.1-alpha or later). Implements proposal 134.
3470     - New configure/torrc options (--enable-geoip-stats,
3471       DirRecordUsageByCountry) to record how many IPs we've served
3472       directory info to in each country code, how many status documents
3473       total we've sent to each country code, and what share of the total
3474       directory requests we should expect to see.
3475     - Use the TLS1 hostname extension to more closely resemble browser
3476       behavior.
3477     - Lots of new unit tests.
3478     - Add a macro to implement the common pattern of iterating through
3479       two parallel lists in lockstep.
3482 Changes in version 0.2.0.28-rc - 2008-06-13
3483   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
3484   performance bug, and fixes a bunch of smaller bugs.
3486   o Anonymity fixes:
3487     - Fix a bug where, when we were choosing the 'end stream reason' to
3488       put in our relay end cell that we send to the exit relay, Tor
3489       clients on Windows were sometimes sending the wrong 'reason'. The
3490       anonymity problem is that exit relays may be able to guess whether
3491       the client is running Windows, thus helping partition the anonymity
3492       set. Down the road we should stop sending reasons to exit relays,
3493       or otherwise prevent future versions of this bug.
3495   o Major bugfixes:
3496     - While setting up a hidden service, some valid introduction circuits
3497       were overlooked and abandoned. This might be the reason for
3498       the long delay in making a hidden service available. Bugfix on
3499       0.2.0.14-alpha.
3501   o Minor features:
3502     - Update to the "June 9 2008" ip-to-country file.
3503     - Run 'make test' as part of 'make dist', so we stop releasing so
3504       many development snapshots that fail their unit tests.
3506   o Minor bugfixes:
3507     - When we're checking if we have enough dir info for each relay
3508       to begin establishing circuits, make sure that we actually have
3509       the descriptor listed in the consensus, not just any descriptor.
3510       Bugfix on 0.1.2.x.
3511     - Bridge relays no longer print "xx=0" in their extrainfo document
3512       for every single country code in the geoip db. Bugfix on
3513       0.2.0.27-rc.
3514     - Only warn when we fail to load the geoip file if we were planning to
3515       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
3516     - If we change our MaxAdvertisedBandwidth and then reload torrc,
3517       Tor won't realize it should publish a new relay descriptor. Fixes
3518       bug 688, reported by mfr. Bugfix on 0.1.2.x.
3519     - When we haven't had any application requests lately, don't bother
3520       logging that we have expired a bunch of descriptors. Bugfix
3521       on 0.1.2.x.
3522     - Make relay cells written on a connection count as non-padding when
3523       tracking how long a connection has been in use. Bugfix on
3524       0.2.0.1-alpha. Spotted by lodger.
3525     - Fix unit tests in 0.2.0.27-rc.
3526     - Fix compile on Windows.
3529 Changes in version 0.2.0.27-rc - 2008-06-03
3530   Tor 0.2.0.27-rc adds a few features we left out of the earlier
3531   release candidates. In particular, we now include an IP-to-country
3532   GeoIP database, so controllers can easily look up what country a
3533   given relay is in, and so bridge relays can give us some sanitized
3534   summaries about which countries are making use of bridges. (See proposal
3535   126-geoip-fetching.txt for details.)
3537   o Major features:
3538     - Include an IP-to-country GeoIP file in the tarball, so bridge
3539       relays can report sanitized summaries of the usage they're seeing.
3541   o Minor features:
3542     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
3543       Robert Hogan. Fixes the first part of bug 681.
3544     - Make bridge authorities never serve extrainfo docs.
3545     - Add support to detect Libevent versions in the 1.4.x series
3546       on mingw.
3547     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
3548     - Include a new contrib/tor-exit-notice.html file that exit relay
3549       operators can put on their website to help reduce abuse queries.
3551   o Minor bugfixes:
3552     - When tunneling an encrypted directory connection, and its first
3553       circuit fails, do not leave it unattached and ask the controller
3554       to deal. Fixes the second part of bug 681.
3555     - Make bridge authorities correctly expire old extrainfo documents
3556       from time to time.
3559 Changes in version 0.2.0.26-rc - 2008-05-13
3560   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
3561   in Debian's OpenSSL packages. All users running any 0.2.0.x version
3562   should upgrade, whether they're running Debian or not.
3564   o Major security fixes:
3565     - Use new V3 directory authority keys on the tor26, gabelmoo, and
3566       moria1 V3 directory authorities. The old keys were generated with
3567       a vulnerable version of Debian's OpenSSL package, and must be
3568       considered compromised. Other authorities' keys were not generated
3569       with an affected version of OpenSSL.
3571   o Major bugfixes:
3572     - List authority signatures as "unrecognized" based on DirServer
3573       lines, not on cert cache. Bugfix on 0.2.0.x.
3575   o Minor features:
3576     - Add a new V3AuthUseLegacyKey option to make it easier for
3577       authorities to change their identity keys if they have to.
3580 Changes in version 0.2.0.25-rc - 2008-04-23
3581   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
3583   o Major bugfixes:
3584     - Remember to initialize threading before initializing logging.
3585       Otherwise, many BSD-family implementations will crash hard on
3586       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
3588   o Minor bugfixes:
3589     - Authorities correctly free policies on bad servers on
3590       exit. Fixes bug 672. Bugfix on 0.2.0.x.
3593 Changes in version 0.2.0.24-rc - 2008-04-22
3594   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
3595   v3 directory authority, makes relays with dynamic IP addresses and no
3596   DirPort notice more quickly when their IP address changes, fixes a few
3597   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
3599   o New directory authorities:
3600     - Take lefkada out of the list of v3 directory authorities, since
3601       it has been down for months.
3602     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
3603       authority.
3605   o Major bugfixes:
3606     - Detect address changes more quickly on non-directory mirror
3607       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
3609   o Minor features (security):
3610     - Reject requests for reverse-dns lookup of names that are in
3611       a private address space. Patch from lodger.
3612     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
3613       from lodger.
3615   o Minor bugfixes (crashes):
3616     - Avoid a rare assert that can trigger when Tor doesn't have much
3617       directory information yet and it tries to fetch a v2 hidden
3618       service descriptor. Fixes bug 651, reported by nwf.
3619     - Initialize log mutex before initializing dmalloc. Otherwise,
3620       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
3621     - Use recursive pthread mutexes in order to avoid deadlock when
3622       logging debug-level messages to a controller. Bug spotted by nwf,
3623       bugfix on 0.2.0.16-alpha.
3625   o Minor bugfixes (resource management):
3626     - Keep address policies from leaking memory: start their refcount
3627       at 1, not 2. Bugfix on 0.2.0.16-alpha.
3628     - Free authority certificates on exit, so they don't look like memory
3629       leaks. Bugfix on 0.2.0.19-alpha.
3630     - Free static hashtables for policy maps and for TLS connections on
3631       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
3632     - Avoid allocating extra space when computing consensuses on 64-bit
3633       platforms. Bug spotted by aakova.
3635   o Minor bugfixes (misc):
3636     - Do not read the configuration file when we've only been told to
3637       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
3638       based on patch from Sebastian Hahn.
3639     - Exit relays that are used as a client can now reach themselves
3640       using the .exit notation, rather than just launching an infinite
3641       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
3642     - When attempting to open a logfile fails, tell us why.
3643     - Fix a dumb bug that was preventing us from knowing that we should
3644       preemptively build circuits to handle expected directory requests.
3645       Fixes bug 660. Bugfix on 0.1.2.x.
3646     - Warn less verbosely about clock skew from netinfo cells from
3647       untrusted sources. Fixes bug 663.
3648     - Make controller stream events for DNS requests more consistent,
3649       by adding "new stream" events for DNS requests, and removing
3650       spurious "stream closed" events" for cached reverse resolves.
3651       Patch from mwenge. Fixes bug 646.
3652     - Correctly notify one-hop connections when a circuit build has
3653       failed. Possible fix for bug 669. Found by lodger.
3656 Changes in version 0.2.0.23-rc - 2008-03-24
3657   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
3658   makes bootstrapping faster if the first directory mirror you contact
3659   is down. The bundles also include the new Vidalia 0.1.2 release.
3661   o Major bugfixes:
3662     - When a tunneled directory request is made to a directory server
3663       that's down, notice after 30 seconds rather than 120 seconds. Also,
3664       fail any begindir streams that are pending on it, so they can
3665       retry elsewhere. This was causing multi-minute delays on bootstrap.
3668 Changes in version 0.2.0.22-rc - 2008-03-18
3669   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
3670   enables encrypted directory connections by default for non-relays, fixes
3671   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
3672   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
3674   o Major features:
3675     - Enable encrypted directory connections by default for non-relays,
3676       so censor tools that block Tor directory connections based on their
3677       plaintext patterns will no longer work. This means Tor works in
3678       certain censored countries by default again.
3680   o Major bugfixes:
3681     - Make sure servers always request certificates from clients during
3682       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
3683     - Do not enter a CPU-eating loop when a connection is closed in
3684       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
3685       diagnosed by lodger; bugfix on 0.2.0.20-rc.
3686     - Fix assertion failure that could occur when a blocked circuit
3687       became unblocked, and it had pending client DNS requests. Bugfix
3688       on 0.2.0.1-alpha. Fixes bug 632.
3690   o Minor bugfixes (on 0.1.2.x):
3691     - Generate "STATUS_SERVER" events rather than misspelled
3692       "STATUS_SEVER" events. Caught by mwenge.
3693     - When counting the number of bytes written on a TLS connection,
3694       look at the BIO actually used for writing to the network, not
3695       at the BIO used (sometimes) to buffer data for the network.
3696       Looking at different BIOs could result in write counts on the
3697       order of ULONG_MAX. Fixes bug 614.
3698     - On Windows, correctly detect errors when listing the contents of
3699       a directory. Fix from lodger.
3701   o Minor bugfixes (on 0.2.0.x):
3702     - Downgrade "sslv3 alert handshake failure" message to INFO.
3703     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
3704       left BandwidthRate and BandwidthBurst at the default, we would be
3705       silently limited by those defaults. Now raise them to match the
3706       RelayBandwidth* values.
3707     - Fix the SVK version detection logic to work correctly on a branch.
3708     - Make --enable-openbsd-malloc work correctly on Linux with alpha
3709       CPUs. Fixes bug 625.
3710     - Logging functions now check that the passed severity is sane.
3711     - Use proper log levels in the testsuite call of
3712       get_interface_address6().
3713     - When using a nonstandard malloc, do not use the platform values for
3714       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
3715     - Make the openbsd malloc code use 8k pages on alpha CPUs and
3716       16k pages on ia64.
3717     - Detect mismatched page sizes when using --enable-openbsd-malloc.
3718     - Avoid double-marked-for-close warning when certain kinds of invalid
3719       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
3720       for bug 617. Bugfix on 0.2.0.1-alpha.
3721     - Make sure that the "NULL-means-reject *:*" convention is followed by
3722       all the policy manipulation functions, avoiding some possible crash
3723       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
3724     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
3725       actually works, and doesn't warn about every single reverse lookup.
3726       Fixes the other part of bug 617.  Bugfix on 0.2.0.1-alpha.
3728   o Minor features:
3729     - Only log guard node status when guard node status has changed.
3730     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
3731       make "INFO" 75% less verbose.
3734 Changes in version 0.2.0.21-rc - 2008-03-02
3735   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
3736   makes Tor work well with Vidalia again, fixes a rare assert bug,
3737   and fixes a pair of more minor bugs. The bundles also include Vidalia
3738   0.1.0 and Torbutton 1.1.16.
3740   o Major bugfixes:
3741     - The control port should declare that it requires password auth
3742       when HashedControlSessionPassword is set too. Patch from Matt Edman;
3743       bugfix on 0.2.0.20-rc. Fixes bug 615.
3744     - Downgrade assert in connection_buckets_decrement() to a log message.
3745       This may help us solve bug 614, and in any case will make its
3746       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
3747     - We were sometimes miscounting the number of bytes read from the
3748       network, causing our rate limiting to not be followed exactly.
3749       Bugfix on 0.2.0.16-alpha. Reported by lodger.
3751   o Minor bugfixes:
3752     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
3753       OpenSSL versions should have been working fine. Diagnosis and patch
3754       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
3755       Bugfix on 0.2.0.20-rc.
3758 Changes in version 0.2.0.20-rc - 2008-02-24
3759   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
3760   makes more progress towards normalizing Tor's TLS handshake, makes
3761   hidden services work better again, helps relays bootstrap if they don't
3762   know their IP address, adds optional support for linking in openbsd's
3763   allocator or tcmalloc, allows really fast relays to scale past 15000
3764   sockets, and fixes a bunch of minor bugs reported by Veracode.
3766   o Major features:
3767     - Enable the revised TLS handshake based on the one designed by
3768       Steven Murdoch in proposal 124, as revised in proposal 130. It
3769       includes version negotiation for OR connections as described in
3770       proposal 105. The new handshake is meant to be harder for censors
3771       to fingerprint, and it adds the ability to detect certain kinds of
3772       man-in-the-middle traffic analysis attacks. The version negotiation
3773       feature will allow us to improve Tor's link protocol more safely
3774       in the future.
3775     - Choose which bridge to use proportional to its advertised bandwidth,
3776       rather than uniformly at random. This should speed up Tor for
3777       bridge users. Also do this for people who set StrictEntryNodes.
3778     - When a TrackHostExits-chosen exit fails too many times in a row,
3779       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
3781   o Major bugfixes:
3782     - Resolved problems with (re-)fetching hidden service descriptors.
3783       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
3784       and 0.2.0.19-alpha.
3785     - If we only ever used Tor for hidden service lookups or posts, we
3786       would stop building circuits and start refusing connections after
3787       24 hours, since we falsely believed that Tor was dormant. Reported
3788       by nwf; bugfix on 0.1.2.x.
3789     - Servers that don't know their own IP address should go to the
3790       authorities for their first directory fetch, even if their DirPort
3791       is off or if they don't know they're reachable yet. This will help
3792       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
3793     - When counting the number of open sockets, count not only the number
3794       of sockets we have received from the socket() call, but also
3795       the number we've gotten from accept() and socketpair(). This bug
3796       made us fail to count all sockets that we were using for incoming
3797       connections. Bugfix on 0.2.0.x.
3798     - Fix code used to find strings within buffers, when those strings
3799       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
3800     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
3801     - Add a new __HashedControlSessionPassword option for controllers
3802       to use for one-off session password hashes that shouldn't get
3803       saved to disk by SAVECONF --- Vidalia users were accumulating a
3804       pile of HashedControlPassword lines in their torrc files, one for
3805       each time they had restarted Tor and then clicked Save. Make Tor
3806       automatically convert "HashedControlPassword" to this new option but
3807       only when it's given on the command line. Partial fix for bug 586.
3809   o Minor features (performance):
3810     - Tune parameters for cell pool allocation to minimize amount of
3811       RAM overhead used.
3812     - Add OpenBSD malloc code from phk as an optional malloc
3813       replacement on Linux: some glibc libraries do very poorly
3814       with Tor's memory allocation patterns. Pass
3815       --enable-openbsd-malloc to get the replacement malloc code.
3816     - Add a --with-tcmalloc option to the configure script to link
3817       against tcmalloc (if present). Does not yet search for
3818       non-system include paths.
3819     - Stop imposing an arbitrary maximum on the number of file descriptors
3820       used for busy servers. Bug reported by Olaf Selke; patch from
3821       Sebastian Hahn.
3823   o Minor features (other):
3824     - When SafeLogging is disabled, log addresses along with all TLS
3825       errors.
3826     - When building with --enable-gcc-warnings, check for whether Apple's
3827       warning "-Wshorten-64-to-32" is available.
3828     - Add a --passphrase-fd argument to the tor-gencert command for
3829       scriptability.
3831   o Minor bugfixes (memory leaks and code problems):
3832     - We were leaking a file descriptor if Tor started with a zero-length
3833       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
3834     - Detect size overflow in zlib code. Reported by Justin Ferguson and
3835       Dan Kaminsky.
3836     - We were comparing the raw BridgePassword entry with a base64'ed
3837       version of it, when handling a "/tor/networkstatus-bridges"
3838       directory request. Now compare correctly. Noticed by Veracode.
3839     - Recover from bad tracked-since value in MTBF-history file.
3840       Should fix bug 537.
3841     - Alter the code that tries to recover from unhandled write
3842       errors, to not try to flush onto a socket that's given us
3843       unhandled errors. Bugfix on 0.1.2.x.
3844     - Make Unix controlsockets work correctly on OpenBSD. Patch from
3845       tup. Bugfix on 0.2.0.3-alpha.
3847   o Minor bugfixes (other):
3848     - If we have an extra-info document for our server, always make
3849       it available on the control port, even if we haven't gotten
3850       a copy of it from an authority yet. Patch from mwenge.
3851     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
3852     - Directory mirrors no longer include a guess at the client's IP
3853       address if the connection appears to be coming from the same /24
3854       network; it was producing too many wrong guesses.
3855     - Make the new hidden service code respect the SafeLogging setting.
3856       Bugfix on 0.2.0.x. Patch from Karsten.
3857     - When starting as an authority, do not overwrite all certificates
3858       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
3859     - If we're trying to flush the last bytes on a connection (for
3860       example, when answering a directory request), reset the
3861       time-to-give-up timeout every time we manage to write something
3862       on the socket. Bugfix on 0.1.2.x.
3863     - Change the behavior of "getinfo status/good-server-descriptor"
3864       so it doesn't return failure when any authority disappears.
3865     - Even though the man page said that "TrackHostExits ." should
3866       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
3867     - Report TLS "zero return" case as a "clean close" and "IO error"
3868       as a "close". Stop calling closes "unexpected closes": existing
3869       Tors don't use SSL_close(), so having a connection close without
3870       the TLS shutdown handshake is hardly unexpected.
3871     - Send NAMESERVER_STATUS messages for a single failed nameserver
3872       correctly.
3874   o Code simplifications and refactoring:
3875     - Remove the tor_strpartition function: its logic was confused,
3876       and it was only used for one thing that could be implemented far
3877       more easily.
3880 Changes in version 0.2.0.19-alpha - 2008-02-09
3881   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
3882   handshake, makes path selection for relays more secure and IP address
3883   guessing more robust, and generally fixes a lot of bugs in preparation
3884   for calling the 0.2.0 branch stable.
3886   o Major features:
3887     - Do not include recognizeable strings in the commonname part of
3888       Tor's x509 certificates.
3890   o Major bugfixes:
3891     - If we're a relay, avoid picking ourselves as an introduction point,
3892       a rendezvous point, or as the final hop for internal circuits. Bug
3893       reported by taranis and lodger. Bugfix on 0.1.2.x.
3894     - Patch from "Andrew S. Lists" to catch when we contact a directory
3895       mirror at IP address X and he says we look like we're coming from
3896       IP address X. Bugfix on 0.1.2.x.
3898   o Minor features (security):
3899     - Be more paranoid about overwriting sensitive memory on free(),
3900       as a defensive programming tactic to ensure forward secrecy.
3902   o Minor features (directory authority):
3903     - Actually validate the options passed to AuthDirReject,
3904       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
3905     - Reject router descriptors with out-of-range bandwidthcapacity or
3906       bandwidthburst values.
3908   o Minor features (controller):
3909     - Reject controller commands over 1MB in length.  This keeps rogue
3910       processes from running us out of memory.
3912   o Minor features (misc):
3913     - Give more descriptive well-formedness errors for out-of-range
3914       hidden service descriptor/protocol versions.
3915     - Make memory debugging information describe more about history
3916       of cell allocation, so we can help reduce our memory use.
3918   o Deprecated features (controller):
3919     - The status/version/num-versioning and status/version/num-concurring
3920       GETINFO options are no longer useful in the v3 directory protocol:
3921       treat them as deprecated, and warn when they're used.
3923   o Minor bugfixes:
3924     - When our consensus networkstatus has been expired for a while, stop
3925       being willing to build circuits using it. Fixes bug 401. Bugfix
3926       on 0.1.2.x.
3927     - Directory caches now fetch certificates from all authorities
3928       listed in a networkstatus consensus, even when they do not
3929       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
3930     - When connecting to a bridge without specifying its key, insert
3931       the connection into the identity-to-connection map as soon as
3932       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
3933     - Detect versions of OS X where malloc_good_size() is present in the
3934       library but never actually declared. Resolves bug 587. Bugfix
3935       on 0.2.0.x.
3936     - Stop incorrectly truncating zlib responses to directory authority
3937       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
3938     - Stop recommending that every server operator send mail to tor-ops.
3939       Resolves bug 597. Bugfix on 0.1.2.x.
3940     - Don't trigger an assert if we start a directory authority with a
3941       private IP address (like 127.0.0.1).
3942     - Avoid possible failures when generating a directory with routers
3943       with over-long versions strings, or too many flags set. Bugfix
3944       on 0.1.2.x.
3945     - If an attempt to launch a DNS resolve request over the control
3946       port fails because we have overrun the limit on the number of
3947       connections, tell the controller that the request has failed.
3948     - Avoid using too little bandwidth when our clock skips a few
3949       seconds. Bugfix on 0.1.2.x.
3950     - Fix shell error when warning about missing packages in configure
3951       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
3952     - Do not become confused when receiving a spurious VERSIONS-like
3953       cell from a confused v1 client.  Bugfix on 0.2.0.x.
3954     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
3955       introduction points for a hidden service have failed. Patch from
3956       Karsten Loesing. Bugfix on 0.2.0.x.
3958   o Code simplifications and refactoring:
3959     - Remove some needless generality from cpuworker code, for improved
3960       type-safety.
3961     - Stop overloading the circuit_t.onionskin field for both "onionskin
3962       from a CREATE cell that we are waiting for a cpuworker to be
3963       assigned" and "onionskin from an EXTEND cell that we are going to
3964       send to an OR as soon as we are connected". Might help with bug 600.
3965     - Add an in-place version of aes_crypt() so that we can avoid doing a
3966       needless memcpy() call on each cell payload.
3969 Changes in version 0.2.0.18-alpha - 2008-01-25
3970   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
3971   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
3972   that can warn or reject connections to ports generally associated with
3973   vulnerable-plaintext protocols.
3975   o New directory authorities:
3976     - Set up dannenberg (run by CCC) as the sixth v3 directory
3977       authority.
3979   o Major bugfixes:
3980     - Fix a major memory leak when attempting to use the v2 TLS
3981       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
3982     - We accidentally enabled the under-development v2 TLS handshake
3983       code, which was causing log entries like "TLS error while
3984       renegotiating handshake". Disable it again. Resolves bug 590.
3985     - We were computing the wrong Content-Length: header for directory
3986       responses that need to be compressed on the fly, causing clients
3987       asking for those items to always fail. Bugfix on 0.2.0.x; partially
3988       fixes bug 593.
3990   o Major features:
3991     - Avoid going directly to the directory authorities even if you're a
3992       relay, if you haven't found yourself reachable yet or if you've
3993       decided not to advertise your dirport yet. Addresses bug 556.
3994     - If we've gone 12 hours since our last bandwidth check, and we
3995       estimate we have less than 50KB bandwidth capacity but we could
3996       handle more, do another bandwidth test.
3997     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
3998       Tor can warn and/or refuse connections to ports commonly used with
3999       vulnerable-plaintext protocols. Currently we warn on ports 23,
4000       109, 110, and 143, but we don't reject any.
4002   o Minor bugfixes:
4003     - When we setconf ClientOnly to 1, close any current OR and Dir
4004       listeners. Reported by mwenge.
4005     - When we get a consensus that's been signed by more people than
4006       we expect, don't log about it; it's not a big deal. Reported
4007       by Kyle Williams.
4009   o Minor features:
4010     - Don't answer "/tor/networkstatus-bridges" directory requests if
4011       the request isn't encrypted.
4012     - Make "ClientOnly 1" config option disable directory ports too.
4013     - Patches from Karsten Loesing to make v2 hidden services more
4014       robust: work even when there aren't enough HSDir relays available;
4015       retry when a v2 rend desc fetch fails; but don't retry if we
4016       already have a usable v0 rend desc.
4019 Changes in version 0.2.0.17-alpha - 2008-01-17
4020   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
4022   o Compile fixes:
4023     - Make the tor-gencert man page get included correctly in the tarball.
4026 Changes in version 0.2.0.16-alpha - 2008-01-17
4027   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
4028   Loesing, and generally cleans up a lot of features and minor bugs.
4030   o New directory authorities:
4031     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
4032       authority.
4034   o Major performance improvements:
4035     - Switch our old ring buffer implementation for one more like that
4036       used by free Unix kernels. The wasted space in a buffer with 1mb
4037       of data will now be more like 8k than 1mb. The new implementation
4038       also avoids realloc();realloc(); patterns that can contribute to
4039       memory fragmentation.
4041   o Minor features:
4042     - Configuration files now accept C-style strings as values. This
4043       helps encode characters not allowed in the current configuration
4044       file format, such as newline or #. Addresses bug 557.
4045     - Although we fixed bug 539 (where servers would send HTTP status 503
4046       responses _and_ send a body too), there are still servers out
4047       there that haven't upgraded. Therefore, make clients parse such
4048       bodies when they receive them.
4049     - When we're not serving v2 directory information, there is no reason
4050       to actually keep any around. Remove the obsolete files and directory
4051       on startup if they are very old and we aren't going to serve them.
4053   o Minor performance improvements:
4054     - Reference-count and share copies of address policy entries; only 5%
4055       of them were actually distinct.
4056     - Never walk through the list of logs if we know that no log is
4057       interested in a given message.
4059   o Minor bugfixes:
4060     - When an authority has not signed a consensus, do not try to
4061       download a nonexistent "certificate with key 00000000". Bugfix
4062       on 0.2.0.x. Fixes bug 569.
4063     - Fix a rare assert error when we're closing one of our threads:
4064       use a mutex to protect the list of logs, so we never write to the
4065       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
4066       bug 575, which is kind of the revenge of bug 222.
4067     - Patch from Karsten Loesing to complain less at both the client
4068       and the relay when a relay used to have the HSDir flag but doesn't
4069       anymore, and we try to upload a hidden service descriptor.
4070     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
4071       0.2.0.15-alpha.
4072     - Do not try to download missing certificates until we have tried
4073       to check our fallback consensus. Fixes bug 583.
4074     - Make bridges round reported GeoIP stats info up to the nearest
4075       estimate, not down. Now we can distinguish between "0 people from
4076       this country" and "1 person from this country".
4077     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
4078     - Avoid possible segfault if key generation fails in
4079       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
4080     - Avoid segfault in the case where a badly behaved v2 versioning
4081       directory sends a signed networkstatus with missing client-versions.
4082       Bugfix on 0.1.2.
4083     - Avoid segfaults on certain complex invocations of
4084       router_get_by_hexdigest(). Bugfix on 0.1.2.
4085     - Correct bad index on array access in parse_http_time(). Bugfix
4086       on 0.2.0.
4087     - Fix possible bug in vote generation when server versions are present
4088       but client versions are not.
4089     - Fix rare bug on REDIRECTSTREAM control command when called with no
4090       port set: it could erroneously report an error when none had
4091       happened.
4092     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
4093       compressing large objects and find ourselves with more than 4k
4094       left over. Bugfix on 0.2.0.
4095     - Fix a small memory leak when setting up a hidden service.
4096     - Fix a few memory leaks that could in theory happen under bizarre
4097       error conditions.
4098     - Fix an assert if we post a general-purpose descriptor via the
4099       control port but that descriptor isn't mentioned in our current
4100       network consensus. Bug reported by Jon McLachlan; bugfix on
4101       0.2.0.9-alpha.
4103   o Minor features (controller):
4104     - Get NS events working again. Patch from tup.
4105     - The GETCONF command now escapes and quotes configuration values
4106       that don't otherwise fit into the torrc file.
4107     - The SETCONF command now handles quoted values correctly.
4109   o Minor features (directory authorities):
4110     - New configuration options to override default maximum number of
4111       servers allowed on a single IP address. This is important for
4112       running a test network on a single host.
4113     - Actually implement the -s option to tor-gencert.
4114     - Add a manual page for tor-gencert.
4116   o Minor features (bridges):
4117     - Bridge authorities no longer serve bridge descriptors over
4118       unencrypted connections.
4120   o Minor features (other):
4121     - Add hidden services and DNSPorts to the list of things that make
4122       Tor accept that it has running ports. Change starting Tor with no
4123       ports from a fatal error to a warning; we might change it back if
4124       this turns out to confuse anybody. Fixes bug 579.
4127 Changes in version 0.1.2.19 - 2008-01-17
4128   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
4129   exit policy a little bit more conservative so it's safer to run an
4130   exit relay on a home system, and fixes a variety of smaller issues.
4132   o Security fixes:
4133     - Exit policies now reject connections that are addressed to a
4134       relay's public (external) IP address too, unless
4135       ExitPolicyRejectPrivate is turned off. We do this because too
4136       many relays are running nearby to services that trust them based
4137       on network address.
4139   o Major bugfixes:
4140     - When the clock jumps forward a lot, do not allow the bandwidth
4141       buckets to become negative. Fixes bug 544.
4142     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
4143       on every successful resolve. Reported by Mike Perry.
4144     - Purge old entries from the "rephist" database and the hidden
4145       service descriptor database even when DirPort is zero.
4146     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
4147       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
4148       crashing or mis-answering these requests.
4149     - When we decide to send a 503 response to a request for servers, do
4150       not then also send the server descriptors: this defeats the whole
4151       purpose. Fixes bug 539.
4153   o Minor bugfixes:
4154     - Changing the ExitPolicyRejectPrivate setting should cause us to
4155       rebuild our server descriptor.
4156     - Fix handling of hex nicknames when answering controller requests for
4157       networkstatus by name, or when deciding whether to warn about
4158       unknown routers in a config option. (Patch from mwenge.)
4159     - Fix a couple of hard-to-trigger autoconf problems that could result
4160       in really weird results on platforms whose sys/types.h files define
4161       nonstandard integer types.
4162     - Don't try to create the datadir when running --verify-config or
4163       --hash-password. Resolves bug 540.
4164     - If we were having problems getting a particular descriptor from the
4165       directory caches, and then we learned about a new descriptor for
4166       that router, we weren't resetting our failure count. Reported
4167       by lodger.
4168     - Although we fixed bug 539 (where servers would send HTTP status 503
4169       responses _and_ send a body too), there are still servers out there
4170       that haven't upgraded. Therefore, make clients parse such bodies
4171       when they receive them.
4172     - Run correctly on systems where rlim_t is larger than unsigned long.
4173       This includes some 64-bit systems.
4174     - Run correctly on platforms (like some versions of OS X 10.5) where
4175       the real limit for number of open files is OPEN_FILES, not rlim_max
4176       from getrlimit(RLIMIT_NOFILES).
4177     - Avoid a spurious free on base64 failure.
4178     - Avoid segfaults on certain complex invocations of
4179       router_get_by_hexdigest().
4180     - Fix rare bug on REDIRECTSTREAM control command when called with no
4181       port set: it could erroneously report an error when none had
4182       happened.
4185 Changes in version 0.2.0.15-alpha - 2007-12-25
4186   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
4187   features added in 0.2.0.13-alpha.
4189   o Major bugfixes:
4190     - Fix several remotely triggerable asserts based on DirPort requests
4191       for a v2 or v3 networkstatus object before we were prepared. This
4192       was particularly bad for 0.2.0.13 and later bridge relays, who
4193       would never have a v2 networkstatus and would thus always crash
4194       when used. Bugfixes on 0.2.0.x.
4195     - Estimate the v3 networkstatus size more accurately, rather than
4196       estimating it at zero bytes and giving it artificially high priority
4197       compared to other directory requests. Bugfix on 0.2.0.x.
4199   o Minor bugfixes:
4200     - Fix configure.in logic for cross-compilation.
4201     - When we load a bridge descriptor from the cache, and it was
4202       previously unreachable, mark it as retriable so we won't just
4203       ignore it. Also, try fetching a new copy immediately. Bugfixes
4204       on 0.2.0.13-alpha.
4205     - The bridge GeoIP stats were counting other relays, for example
4206       self-reachability and authority-reachability tests.
4208   o Minor features:
4209     - Support compilation to target iPhone; patch from cjacker huang.
4210       To build for iPhone, pass the --enable-iphone option to configure.
4213 Changes in version 0.2.0.14-alpha - 2007-12-23
4214   o Major bugfixes:
4215     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
4216       without a datadirectory from a previous Tor install. Reported
4217       by Zax.
4218     - Fix a crash when we fetch a descriptor that turns out to be
4219       unexpected (it used to be in our networkstatus when we started
4220       fetching it, but it isn't in our current networkstatus), and we
4221       aren't using bridges. Bugfix on 0.2.0.x.
4222     - Fix a crash when accessing hidden services: it would work the first
4223       time you use a given introduction point for your service, but
4224       on subsequent requests we'd be using garbage memory. Fixed by
4225       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
4226     - Fix a crash when we load a bridge descriptor from disk but we don't
4227       currently have a Bridge line for it in our torrc. Bugfix on
4228       0.2.0.13-alpha.
4230   o Major features:
4231     - If bridge authorities set BridgePassword, they will serve a
4232       snapshot of known bridge routerstatuses from their DirPort to
4233       anybody who knows that password. Unset by default.
4235   o Minor bugfixes:
4236     - Make the unit tests build again.
4237     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
4238     - Make PublishServerDescriptor default to 1, so the default doesn't
4239       have to change as we invent new directory protocol versions.
4240     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
4241       be included unless sys/time.h is already included.  Fixes
4242       bug 553.  Bugfix on 0.2.0.x.
4243     - If we receive a general-purpose descriptor and then receive an
4244       identical bridge-purpose descriptor soon after, don't discard
4245       the next one as a duplicate.
4247   o Minor features:
4248     - If BridgeRelay is set to 1, then the default for
4249       PublishServerDescriptor is now "bridge" rather than "v2,v3".
4250     - If the user sets RelayBandwidthRate but doesn't set
4251       RelayBandwidthBurst, then make them equal rather than erroring out.
4254 Changes in version 0.2.0.13-alpha - 2007-12-21
4255   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
4256   Goodell, fixes many more bugs, and adds a lot of infrastructure for
4257   upcoming features.
4259   o New directory authorities:
4260     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
4261       authority.
4263   o Major bugfixes:
4264     - Only update guard status (usable / not usable) once we have
4265       enough directory information. This was causing us to always pick
4266       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
4267       causing us to discard all our guards on startup if we hadn't been
4268       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
4269     - Purge old entries from the "rephist" database and the hidden
4270       service descriptor databases even when DirPort is zero. Bugfix
4271       on 0.1.2.x.
4272     - We were ignoring our RelayBandwidthRate for the first 30 seconds
4273       after opening a circuit -- even a relayed circuit. Bugfix on
4274       0.2.0.3-alpha.
4275     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
4276       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
4277       crashing or mis-answering these types of requests.
4278     - Relays were publishing their server descriptor to v1 and v2
4279       directory authorities, but they didn't try publishing to v3-only
4280       authorities. Fix this; and also stop publishing to v1 authorities.
4281       Bugfix on 0.2.0.x.
4282     - When we were reading router descriptors from cache, we were ignoring
4283       the annotations -- so for example we were reading in bridge-purpose
4284       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
4285     - When we decided to send a 503 response to a request for servers, we
4286       were then also sending the server descriptors: this defeats the
4287       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
4289   o Major features:
4290     - Bridge relays now behave like clients with respect to time
4291       intervals for downloading new consensus documents -- otherwise they
4292       stand out. Bridge users now wait until the end of the interval,
4293       so their bridge relay will be sure to have a new consensus document.
4294     - Three new config options (AlternateDirAuthority,
4295       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
4296       user selectively replace the default directory authorities by type,
4297       rather than the all-or-nothing replacement that DirServer offers.
4298     - Tor can now be configured to read a GeoIP file from disk in one
4299       of two formats. This can be used by controllers to map IP addresses
4300       to countries. Eventually, it may support exit-by-country.
4301     - When possible, bridge relays remember which countries users
4302       are coming from, and report aggregate information in their
4303       extra-info documents, so that the bridge authorities can learn
4304       where Tor is blocked.
4305     - Bridge directory authorities now do reachability testing on the
4306       bridges they know. They provide router status summaries to the
4307       controller via "getinfo ns/purpose/bridge", and also dump summaries
4308       to a file periodically.
4309     - Stop fetching directory info so aggressively if your DirPort is
4310       on but your ORPort is off; stop fetching v2 dir info entirely.
4311       You can override these choices with the new FetchDirInfoEarly
4312       config option.
4314   o Minor bugfixes:
4315     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
4316       consensus documents when there are too many relays at a single
4317       IP address. Now clear it in v2 network status documents too, and
4318       also clear it in routerinfo_t when the relay is no longer listed
4319       in the relevant networkstatus document.
4320     - Don't crash if we get an unexpected value for the
4321       PublishServerDescriptor config option. Reported by Matt Edman;
4322       bugfix on 0.2.0.9-alpha.
4323     - Our new v2 hidden service descriptor format allows descriptors
4324       that have no introduction points. But Tor crashed when we tried
4325       to build a descriptor with no intro points (and it would have
4326       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
4327       by Karsten Loesing.
4328     - Fix building with dmalloc 5.5.2 with glibc.
4329     - Reject uploaded descriptors and extrainfo documents if they're
4330       huge. Otherwise we'll cache them all over the network and it'll
4331       clog everything up. Reported by Aljosha Judmayer.
4332     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
4333       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
4334     - When the DANGEROUS_VERSION controller status event told us we're
4335       running an obsolete version, it used the string "OLD" to describe
4336       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
4337       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
4338     - If we can't expand our list of entry guards (e.g. because we're
4339       using bridges or we have StrictEntryNodes set), don't mark relays
4340       down when they fail a directory request. Otherwise we're too quick
4341       to mark all our entry points down. Bugfix on 0.1.2.x.
4342     - Fix handling of hex nicknames when answering controller requests for
4343       networkstatus by name, or when deciding whether to warn about unknown
4344       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
4345     - Fix a couple of hard-to-trigger autoconf problems that could result
4346       in really weird results on platforms whose sys/types.h files define
4347       nonstandard integer types. Bugfix on 0.1.2.x.
4348     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
4349     - Don't crash on name lookup when we have no current consensus.  Fixes
4350       bug 538; bugfix on 0.2.0.x.
4351     - Only Tors that want to mirror the v2 directory info should
4352       create the "cached-status" directory in their datadir. (All Tors
4353       used to create it.) Bugfix on 0.2.0.9-alpha.
4354     - Directory authorities should only automatically download Extra Info
4355       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
4357   o Minor features:
4358     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
4359       consumers. (We already do this on HUP.)
4360     - Authorities and caches fetch the v2 networkstatus documents
4361       less often, now that v3 is encouraged.
4362     - Add a new config option BridgeRelay that specifies you want to
4363       be a bridge relay. Right now the only difference is that it makes
4364       you answer begin_dir requests, and it makes you cache dir info,
4365       even if your DirPort isn't on.
4366     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
4367       ask about source, timestamp of arrival, purpose, etc. We need
4368       something like this to help Vidalia not do GeoIP lookups on bridge
4369       addresses.
4370     - Allow multiple HashedControlPassword config lines, to support
4371       multiple controller passwords.
4372     - Authorities now decide whether they're authoritative for a given
4373       router based on the router's purpose.
4374     - New config options AuthDirBadDir and AuthDirListBadDirs for
4375       authorities to mark certain relays as "bad directories" in the
4376       networkstatus documents. Also supports the "!baddir" directive in
4377       the approved-routers file.
4380 Changes in version 0.2.0.12-alpha - 2007-11-16
4381   This twelfth development snapshot fixes some more build problems as
4382   well as a few minor bugs.
4384   o Compile fixes:
4385     - Make it build on OpenBSD again. Patch from tup.
4386     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
4387       package-building for Red Hat, OS X, etc.
4389   o Minor bugfixes (on 0.1.2.x):
4390     - Changing the ExitPolicyRejectPrivate setting should cause us to
4391       rebuild our server descriptor.
4393   o Minor bugfixes (on 0.2.0.x):
4394     - When we're lacking a consensus, don't try to perform rendezvous
4395       operations. Reported by Karsten Loesing.
4396     - Fix a small memory leak whenever we decide against using a
4397       newly picked entry guard. Reported by Mike Perry.
4398     - When authorities detected more than two relays running on the same
4399       IP address, they were clearing all the status flags but forgetting
4400       to clear the "hsdir" flag. So clients were being told that a
4401       given relay was the right choice for a v2 hsdir lookup, yet they
4402       never had its descriptor because it was marked as 'not running'
4403       in the consensus.
4404     - If we're trying to fetch a bridge descriptor and there's no way
4405       the bridge authority could help us (for example, we don't know
4406       a digest, or there is no bridge authority), don't be so eager to
4407       fall back to asking the bridge authority.
4408     - If we're using bridges or have strictentrynodes set, and our
4409       chosen exit is in the same family as all our bridges/entry guards,
4410       then be flexible about families.
4412   o Minor features:
4413     - When we negotiate a v2 link-layer connection (not yet implemented),
4414       accept RELAY_EARLY cells and turn them into RELAY cells if we've
4415       negotiated a v1 connection for their next step. Initial code for
4416       proposal 110.
4419 Changes in version 0.2.0.11-alpha - 2007-11-12
4420   This eleventh development snapshot fixes some build problems with
4421   the previous snapshot. It also includes a more secure-by-default exit
4422   policy for relays, fixes an enormous memory leak for exit relays, and
4423   fixes another bug where servers were falling out of the directory list.
4425   o Security fixes:
4426     - Exit policies now reject connections that are addressed to a
4427       relay's public (external) IP address too, unless
4428       ExitPolicyRejectPrivate is turned off. We do this because too
4429       many relays are running nearby to services that trust them based
4430       on network address. Bugfix on 0.1.2.x.
4432   o Major bugfixes:
4433     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
4434       on every successful resolve. Reported by Mike Perry; bugfix
4435       on 0.1.2.x.
4436     - On authorities, never downgrade to old router descriptors simply
4437       because they're listed in the consensus. This created a catch-22
4438       where we wouldn't list a new descriptor because there was an
4439       old one in the consensus, and we couldn't get the new one in the
4440       consensus because we wouldn't list it. Possible fix for bug 548.
4441       Also, this might cause bug 543 to appear on authorities; if so,
4442       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
4444   o Packaging fixes on 0.2.0.10-alpha:
4445     - We were including instructions about what to do with the
4446       src/config/fallback-consensus file, but we weren't actually
4447       including it in the tarball. Disable all of that for now.
4449   o Minor features:
4450     - Allow people to say PreferTunnelledDirConns rather than
4451       PreferTunneledDirConns, for those alternate-spellers out there.
4453   o Minor bugfixes:
4454     - Don't reevaluate all the information from our consensus document
4455       just because we've downloaded a v2 networkstatus that we intend
4456       to cache. Fixes bug 545; bugfix on 0.2.0.x.
4459 Changes in version 0.2.0.10-alpha - 2007-11-10
4460   This tenth development snapshot adds a third v3 directory authority
4461   run by Mike Perry, adds most of Karsten Loesing's new hidden service
4462   descriptor format, fixes a bad crash bug and new bridge bugs introduced
4463   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
4464   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
4465   addresses many more minor issues.
4467   o New directory authorities:
4468     - Set up ides (run by Mike Perry) as the third v3 directory authority.
4470   o Major features:
4471     - Allow tunnelled directory connections to ask for an encrypted
4472       "begin_dir" connection or an anonymized "uses a full Tor circuit"
4473       connection independently. Now we can make anonymized begin_dir
4474       connections for (e.g.) more secure hidden service posting and
4475       fetching.
4476     - More progress on proposal 114: code from Karsten Loesing to
4477       implement new hidden service descriptor format.
4478     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
4479       accommodate the growing number of servers that use the default
4480       and are reaching it.
4481     - Directory authorities use a new formula for selecting which nodes
4482       to advertise as Guards: they must be in the top 7/8 in terms of
4483       how long we have known about them, and above the median of those
4484       nodes in terms of weighted fractional uptime.
4485     - Make "not enough dir info yet" warnings describe *why* Tor feels
4486       it doesn't have enough directory info yet.
4488   o Major bugfixes:
4489     - Stop servers from crashing if they set a Family option (or
4490       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
4491       by Fabian Keil.
4492     - Make bridge users work again -- the move to v3 directories in
4493       0.2.0.9-alpha had introduced a number of bugs that made bridges
4494       no longer work for clients.
4495     - When the clock jumps forward a lot, do not allow the bandwidth
4496       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
4498   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
4499     - When the consensus lists a router descriptor that we previously were
4500       mirroring, but that we considered non-canonical, reload the
4501       descriptor as canonical. This fixes bug 543 where Tor servers
4502       would start complaining after a few days that they don't have
4503       enough directory information to build a circuit.
4504     - Consider replacing the current consensus when certificates arrive
4505       that make the pending consensus valid. Previously, we were only
4506       considering replacement when the new certs _didn't_ help.
4507     - Fix an assert error on startup if we didn't already have the
4508       consensus and certs cached in our datadirectory: we were caching
4509       the consensus in consensus_waiting_for_certs but then free'ing it
4510       right after.
4511     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
4512       Request) if we need more v3 certs but we've already got pending
4513       requests for all of them.
4514     - Correctly back off from failing certificate downloads. Fixes
4515       bug 546.
4516     - Authorities don't vote on the Running flag if they have been running
4517       for less than 30 minutes themselves. Fixes bug 547, where a newly
4518       started authority would vote that everyone was down.
4520   o New requirements:
4521     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
4522       it, it had no AES, and it hasn't seen any security patches since
4523       2004.
4525   o Minor features:
4526     - Clients now hold circuitless TLS connections open for 1.5 times
4527       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
4528       rebuild a new circuit over them within that timeframe. Previously,
4529       they held them open only for KeepalivePeriod (5 minutes).
4530     - Use "If-Modified-Since" to avoid retrieving consensus
4531       networkstatuses that we already have.
4532     - When we have no consensus, check FallbackNetworkstatusFile (defaults
4533       to $PREFIX/share/tor/fallback-consensus) for a consensus.  This way
4534       we start knowing some directory caches.
4535     - When we receive a consensus from the future, warn about skew.
4536     - Improve skew reporting: try to give the user a better log message
4537       about how skewed they are, and how much this matters.
4538     - When we have a certificate for an authority, believe that
4539       certificate's claims about the authority's IP address.
4540     - New --quiet command-line option to suppress the default console log.
4541       Good in combination with --hash-password.
4542     - Authorities send back an X-Descriptor-Not-New header in response to
4543       an accepted-but-discarded descriptor upload.  Partially implements
4544       fix for bug 535.
4545     - Make the log message for "tls error. breaking." more useful.
4546     - Better log messages about certificate downloads, to attempt to
4547       track down the second incarnation of bug 546.
4549   o Minor features (bridges):
4550     - If bridge users set UpdateBridgesFromAuthority, but the digest
4551       they ask for is a 404 from the bridge authority, they now fall
4552       back to trying the bridge directly.
4553     - Bridges now use begin_dir to publish their server descriptor to
4554       the bridge authority, even when they haven't set TunnelDirConns.
4556   o Minor features (controller):
4557     - When reporting clock skew, and we know that the clock is _at least
4558       as skewed_ as some value, but we don't know the actual value,
4559       report the value as a "minimum skew."
4561   o Utilities:
4562     - Update linux-tor-prio.sh script to allow QoS based on the uid of
4563       the Tor process. Patch from Marco Bonetti with tweaks from Mike
4564       Perry.
4566   o Minor bugfixes:
4567     - Refuse to start if both ORPort and UseBridges are set. Bugfix
4568       on 0.2.0.x, suggested by Matt Edman.
4569     - Don't stop fetching descriptors when FetchUselessDescriptors is
4570       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
4571       reported by tup and ioerror.
4572     - Better log message on vote from unknown authority.
4573     - Don't log "Launching 0 request for 0 router" message.
4575   o Minor bugfixes (memory leaks):
4576     - Stop leaking memory every time we parse a v3 certificate. Bugfix
4577       on 0.2.0.1-alpha.
4578     - Stop leaking memory every time we load a v3 certificate. Bugfix
4579       on 0.2.0.1-alpha. Fixes bug 536.
4580     - Stop leaking a cached networkstatus on exit.  Bugfix on
4581       0.2.0.3-alpha.
4582     - Stop leaking voter information every time we free a consensus.
4583       Bugfix on 0.2.0.3-alpha.
4584     - Stop leaking signed data every time we check a voter signature.
4585       Bugfix on 0.2.0.3-alpha.
4586     - Stop leaking a signature every time we fail to parse a consensus or
4587       a vote.  Bugfix on 0.2.0.3-alpha.
4588     - Stop leaking v2_download_status_map on shutdown.  Bugfix on
4589       0.2.0.9-alpha.
4590     - Stop leaking conn->nickname every time we make a connection to a
4591       Tor relay without knowing its expected identity digest (e.g. when
4592       using bridges). Bugfix on 0.2.0.3-alpha.
4594   - Minor bugfixes (portability):
4595     - Run correctly on platforms where rlim_t is larger than unsigned
4596       long, and/or where the real limit for number of open files is
4597       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
4598       particular, these may be needed for OS X 10.5.
4601 Changes in version 0.1.2.18 - 2007-10-28
4602   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
4603   hidden service introduction that were causing huge delays, and a big
4604   bug that was causing some servers to disappear from the network status
4605   lists for a few hours each day.
4607   o Major bugfixes (crashes):
4608     - If a connection is shut down abruptly because of something that
4609       happened inside connection_flushed_some(), do not call
4610       connection_finished_flushing(). Should fix bug 451:
4611       "connection_stop_writing: Assertion conn->write_event failed"
4612       Bugfix on 0.1.2.7-alpha.
4613     - Fix possible segfaults in functions called from
4614       rend_process_relay_cell().
4616   o Major bugfixes (hidden services):
4617     - Hidden services were choosing introduction points uniquely by
4618       hexdigest, but when constructing the hidden service descriptor
4619       they merely wrote the (potentially ambiguous) nickname.
4620     - Clients now use the v2 intro format for hidden service
4621       connections: they specify their chosen rendezvous point by identity
4622       digest rather than by (potentially ambiguous) nickname. These
4623       changes could speed up hidden service connections dramatically.
4625   o Major bugfixes (other):
4626     - Stop publishing a new server descriptor just because we get a
4627       HUP signal. This led (in a roundabout way) to some servers getting
4628       dropped from the networkstatus lists for a few hours each day.
4629     - When looking for a circuit to cannibalize, consider family as well
4630       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
4631       circuit cannibalization).
4632     - When a router wasn't listed in a new networkstatus, we were leaving
4633       the flags for that router alone -- meaning it remained Named,
4634       Running, etc -- even though absence from the networkstatus means
4635       that it shouldn't be considered to exist at all anymore. Now we
4636       clear all the flags for routers that fall out of the networkstatus
4637       consensus. Fixes bug 529.
4639   o Minor bugfixes:
4640     - Don't try to access (or alter) the state file when running
4641       --list-fingerprint or --verify-config or --hash-password. Resolves
4642       bug 499.
4643     - When generating information telling us how to extend to a given
4644       router, do not try to include the nickname if it is
4645       absent. Resolves bug 467.
4646     - Fix a user-triggerable segfault in expand_filename(). (There isn't
4647       a way to trigger this remotely.)
4648     - When sending a status event to the controller telling it that an
4649       OR address is reachable, set the port correctly. (Previously we
4650       were reporting the dir port.)
4651     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
4652       command. Bugfix on 0.1.2.17.
4653     - When loading bandwidth history, do not believe any information in
4654       the future. Fixes bug 434.
4655     - When loading entry guard information, do not believe any information
4656       in the future.
4657     - When we have our clock set far in the future and generate an
4658       onion key, then re-set our clock to be correct, we should not stop
4659       the onion key from getting rotated.
4660     - On some platforms, accept() can return a broken address. Detect
4661       this more quietly, and deal accordingly. Fixes bug 483.
4662     - It's not actually an error to find a non-pending entry in the DNS
4663       cache when canceling a pending resolve. Don't log unless stuff
4664       is fishy. Resolves bug 463.
4665     - Don't reset trusted dir server list when we set a configuration
4666       option. Patch from Robert Hogan.
4667     - Don't try to create the datadir when running --verify-config or
4668       --hash-password. Resolves bug 540.
4671 Changes in version 0.2.0.9-alpha - 2007-10-24
4672   This ninth development snapshot switches clients to the new v3 directory
4673   system; allows servers to be listed in the network status even when they
4674   have the same nickname as a registered server; and fixes many other
4675   bugs including a big one that was causing some servers to disappear
4676   from the network status lists for a few hours each day.
4678   o Major features (directory system):
4679     - Clients now download v3 consensus networkstatus documents instead
4680       of v2 networkstatus documents. Clients and caches now base their
4681       opinions about routers on these consensus documents. Clients only
4682       download router descriptors listed in the consensus.
4683     - Authorities now list servers who have the same nickname as
4684       a different named server, but list them with a new flag,
4685       "Unnamed". Now we can list servers that happen to pick the same
4686       nickname as a server that registered two years ago and then
4687       disappeared. Partially implements proposal 122.
4688     - If the consensus lists a router as "Unnamed", the name is assigned
4689       to a different router: do not identify the router by that name.
4690       Partially implements proposal 122.
4691     - Authorities can now come to a consensus on which method to use to
4692       compute the consensus. This gives us forward compatibility.
4694   o Major bugfixes:
4695     - Stop publishing a new server descriptor just because we HUP or
4696       when we find our DirPort to be reachable but won't actually publish
4697       it. New descriptors without any real changes are dropped by the
4698       authorities, and can screw up our "publish every 18 hours" schedule.
4699       Bugfix on 0.1.2.x.
4700     - When a router wasn't listed in a new networkstatus, we were leaving
4701       the flags for that router alone -- meaning it remained Named,
4702       Running, etc -- even though absence from the networkstatus means
4703       that it shouldn't be considered to exist at all anymore. Now we
4704       clear all the flags for routers that fall out of the networkstatus
4705       consensus. Fixes bug 529; bugfix on 0.1.2.x.
4706     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
4707       extrainfo documents and then discard them immediately for not
4708       matching the latest router. Bugfix on 0.2.0.1-alpha.
4710   o Minor features (v3 directory protocol):
4711     - Allow tor-gencert to generate a new certificate without replacing
4712       the signing key.
4713     - Allow certificates to include an address.
4714     - When we change our directory-cache settings, reschedule all voting
4715       and download operations.
4716     - Reattempt certificate downloads immediately on failure, as long as
4717       we haven't failed a threshold number of times yet.
4718     - Delay retrying consensus downloads while we're downloading
4719       certificates to verify the one we just got.  Also, count getting a
4720       consensus that we already have (or one that isn't valid) as a failure,
4721       and count failing to get the certificates after 20 minutes as a
4722       failure.
4723     - Build circuits and download descriptors even if our consensus is a
4724       little expired. (This feature will go away once authorities are
4725       more reliable.)
4727   o Minor features (router descriptor cache):
4728     - If we find a cached-routers file that's been sitting around for more
4729       than 28 days unmodified, then most likely it's a leftover from
4730       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
4731       routers anyway.
4732     - When we (as a cache) download a descriptor because it was listed
4733       in a consensus, remember when the consensus was supposed to expire,
4734       and don't expire the descriptor until then.
4736   o Minor features (performance):
4737     - Call routerlist_remove_old_routers() much less often. This should
4738       speed startup, especially on directory caches.
4739     - Don't try to launch new descriptor downloads quite so often when we
4740       already have enough directory information to build circuits.
4741     - Base64 decoding was actually showing up on our profile when parsing
4742       the initial descriptor file; switch to an in-process all-at-once
4743       implementation that's about 3.5x times faster than calling out to
4744       OpenSSL.
4746   o Minor features (compilation):
4747     - Detect non-ASCII platforms (if any still exist) and refuse to
4748       build there: some of our code assumes that 'A' is 65 and so on.
4750   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
4751     - Make the "next period" votes into "current period" votes immediately
4752       after publishing the consensus; avoid a heisenbug that made them
4753       stick around indefinitely.
4754     - When we discard a vote as a duplicate, do not report this as
4755       an error.
4756     - Treat missing v3 keys or certificates as an error when running as a
4757       v3 directory authority.
4758     - When we're configured to be a v3 authority, but we're only listed
4759       as a non-v3 authority in our DirServer line for ourself, correct
4760       the listing.
4761     - If an authority doesn't have a qualified hostname, just put
4762       its address in the vote. This fixes the problem where we referred to
4763       "moria on moria:9031."
4764     - Distinguish between detached signatures for the wrong period, and
4765       detached signatures for a divergent vote.
4766     - Fix a small memory leak when computing a consensus.
4767     - When there's no concensus, we were forming a vote every 30
4768       minutes, but writing the "valid-after" line in our vote based
4769       on our configured V3AuthVotingInterval: so unless the intervals
4770       matched up, we immediately rejected our own vote because it didn't
4771       start at the voting interval that caused us to construct a vote.
4773   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
4774     - Delete unverified-consensus when the real consensus is set.
4775     - Consider retrying a consensus networkstatus fetch immediately
4776       after one fails: don't wait 60 seconds to notice.
4777     - When fetching a consensus as a cache, wait until a newer consensus
4778       should exist before trying to replace the current one.
4779     - Use a more forgiving schedule for retrying failed consensus
4780       downloads than for other types.
4782   o Minor bugfixes (other directory issues):
4783     - Correct the implementation of "download votes by digest." Bugfix on
4784       0.2.0.8-alpha.
4785     - Authorities no longer send back "400 you're unreachable please fix
4786       it" errors to Tor servers that aren't online all the time. We're
4787       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
4789   o Minor bugfixes (controller):
4790     - Don't reset trusted dir server list when we set a configuration
4791       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
4792     - Respond to INT and TERM SIGNAL commands before we execute the
4793       signal, in case the signal shuts us down. We had a patch in
4794       0.1.2.1-alpha that tried to do this by queueing the response on
4795       the connection's buffer before shutting down, but that really
4796       isn't the same thing at all. Bug located by Matt Edman.
4798   o Minor bugfixes (misc):
4799     - Correctly check for bad options to the "PublishServerDescriptor"
4800       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
4801     - Stop leaking memory on failing case of base32_decode, and make
4802       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
4803     - Don't try to download extrainfo documents when we're trying to
4804       fetch enough directory info to build a circuit: having enough
4805       info should get priority. Bugfix on 0.2.0.x.
4806     - Don't complain that "your server has not managed to confirm that its
4807       ports are reachable" if we haven't been able to build any circuits
4808       yet. Bug found by spending four hours without a v3 consensus. Bugfix
4809       on 0.1.2.x.
4810     - Detect the reason for failing to mmap a descriptor file we just
4811       wrote, and give a more useful log message.  Fixes bug 533. Bugfix
4812       on 0.1.2.x.
4814   o Code simplifications and refactoring:
4815     - Remove support for the old bw_accounting file: we've been storing
4816       bandwidth accounting information in the state file since
4817       0.1.2.5-alpha.  This may result in bandwidth accounting errors
4818       if you try to upgrade from 0.1.1.x or earlier, or if you try to
4819       downgrade to 0.1.1.x or earlier.
4820     - New convenience code to locate a file within the DataDirectory.
4821     - Move non-authority functionality out of dirvote.c.
4822     - Refactor the arguments for router_pick_{directory_|trusteddir}server
4823       so that they all take the same named flags.
4825   o Utilities
4826     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
4827       Unix users an easy way to script their Tor process (e.g. by
4828       adjusting bandwidth based on the time of the day).
4831 Changes in version 0.2.0.8-alpha - 2007-10-12
4832   This eighth development snapshot fixes a crash bug that's been bothering
4833   us since February 2007, lets bridge authorities store a list of bridge
4834   descriptors they've seen, gets v3 directory voting closer to working,
4835   starts caching v3 directory consensus documents on directory mirrors,
4836   and fixes a variety of smaller issues including some minor memory leaks.
4838   o Major features (router descriptor cache):
4839     - Store routers in a file called cached-descriptors instead of in
4840       cached-routers. Initialize cached-descriptors from cached-routers
4841       if the old format is around. The new format allows us to store
4842       annotations along with descriptors.
4843     - Use annotations to record the time we received each descriptor, its
4844       source, and its purpose.
4845     - Disable the SETROUTERPURPOSE controller command: it is now
4846       obsolete.
4847     - Controllers should now specify cache=no or cache=yes when using
4848       the +POSTDESCRIPTOR command.
4849     - Bridge authorities now write bridge descriptors to disk, meaning
4850       we can export them to other programs and begin distributing them
4851       to blocked users.
4853   o Major features (directory authorities):
4854     - When a v3 authority is missing votes or signatures, it now tries
4855       to fetch them.
4856     - Directory authorities track weighted fractional uptime as well as
4857       weighted mean-time-between failures.  WFU is suitable for deciding
4858       whether a node is "usually up", while MTBF is suitable for deciding
4859       whether a node is "likely to stay up."  We need both, because
4860       "usually up" is a good requirement for guards, while "likely to
4861       stay up" is a good requirement for long-lived connections.
4863   o Major features (v3 directory system):
4864     - Caches now download v3 network status documents as needed,
4865       and download the descriptors listed in them.
4866     - All hosts now attempt to download and keep fresh v3 authority
4867       certificates, and re-attempt after failures.
4868     - More internal-consistency checks for vote parsing.
4870   o Major bugfixes (crashes):
4871     - If a connection is shut down abruptly because of something that
4872       happened inside connection_flushed_some(), do not call
4873       connection_finished_flushing(). Should fix bug 451. Bugfix on
4874       0.1.2.7-alpha.
4876   o Major bugfixes (performance):
4877     - Fix really bad O(n^2) performance when parsing a long list of
4878       routers: Instead of searching the entire list for an "extra-info "
4879       string which usually wasn't there, once for every routerinfo
4880       we read, just scan lines forward until we find one we like.
4881       Bugfix on 0.2.0.1.
4882     - When we add data to a write buffer in response to the data on that
4883       write buffer getting low because of a flush, do not consider the
4884       newly added data as a candidate for immediate flushing, but rather
4885       make it wait until the next round of writing. Otherwise, we flush
4886       and refill recursively, and a single greedy TLS connection can
4887       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
4889   o Minor features (v3 authority system):
4890     - Add more ways for tools to download the votes that lead to the
4891       current consensus.
4892     - Send a 503 when low on bandwidth and a vote, consensus, or
4893       certificate is requested.
4894     - If-modified-since is now implemented properly for all kinds of
4895       certificate requests.
4897   o Minor bugfixes (network statuses):
4898     - Tweak the implementation of proposal 109 slightly: allow at most
4899       two Tor servers on the same IP address, except if it's the location
4900       of a directory authority, in which case allow five. Bugfix on
4901       0.2.0.3-alpha.
4903   o Minor bugfixes (controller):
4904     - When sending a status event to the controller telling it that an
4905       OR address is reachable, set the port correctly. (Previously we
4906       were reporting the dir port.) Bugfix on 0.1.2.x.
4908   o Minor bugfixes (v3 directory system):
4909     - Fix logic to look up a cert by its signing key digest. Bugfix on
4910       0.2.0.7-alpha.
4911     - Only change the reply to a vote to "OK" if it's not already
4912       set. This gets rid of annoying "400 OK" log messages, which may
4913       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
4914     - When we get a valid consensus, recompute the voting schedule.
4915     - Base the valid-after time of a vote on the consensus voting
4916       schedule, not on our preferred schedule.
4917     - Make the return values and messages from signature uploads and
4918       downloads more sensible.
4919     - Fix a memory leak when serving votes and consensus documents, and
4920       another when serving certificates.
4922   o Minor bugfixes (performance):
4923     - Use a slightly simpler string hashing algorithm (copying Python's
4924       instead of Java's) and optimize our digest hashing algorithm to take
4925       advantage of 64-bit platforms and to remove some possibly-costly
4926       voodoo.
4927     - Fix a minor memory leak whenever we parse guards from our state
4928       file. Bugfix on 0.2.0.7-alpha.
4929     - Fix a minor memory leak whenever we write out a file. Bugfix on
4930       0.2.0.7-alpha.
4931     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
4932       command. Bugfix on 0.2.0.5-alpha.
4934   o Minor bugfixes (portability):
4935     - On some platforms, accept() can return a broken address. Detect
4936       this more quietly, and deal accordingly. Fixes bug 483.
4937     - Stop calling tor_strlower() on uninitialized memory in some cases.
4938       Bugfix in 0.2.0.7-alpha.
4940   o Minor bugfixes (usability):
4941     - Treat some 403 responses from directory servers as INFO rather than
4942       WARN-severity events.
4943     - It's not actually an error to find a non-pending entry in the DNS
4944       cache when canceling a pending resolve. Don't log unless stuff is
4945       fishy. Resolves bug 463.
4947   o Minor bugfixes (anonymity):
4948     - Never report that we've used more bandwidth than we're willing to
4949       relay: it leaks how much non-relay traffic we're using. Resolves
4950       bug 516.
4951     - When looking for a circuit to cannibalize, consider family as well
4952       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
4953       circuit cannibalization).
4955   o Code simplifications and refactoring:
4956     - Make a bunch of functions static. Remove some dead code.
4957     - Pull out about a third of the really big routerlist.c; put it in a
4958       new module, networkstatus.c.
4959     - Merge the extra fields in local_routerstatus_t back into
4960       routerstatus_t: we used to need one routerstatus_t for each
4961       authority's opinion, plus a local_routerstatus_t for the locally
4962       computed consensus opinion. To save space, we put the locally
4963       modified fields into local_routerstatus_t, and only the common
4964       stuff into routerstatus_t. But once v3 directories are in use,
4965       clients and caches will no longer need to hold authority opinions;
4966       thus, the rationale for keeping the types separate is now gone.
4967     - Make the code used to reschedule and reattempt downloads more
4968       uniform.
4969     - Turn all 'Are we a directory server/mirror?' logic into a call to
4970       dirserver_mode().
4971     - Remove the code to generate the oldest (v1) directory format.
4972       The code has been disabled since 0.2.0.5-alpha.
4975 Changes in version 0.2.0.7-alpha - 2007-09-21
4976   This seventh development snapshot makes bridges work again, makes bridge
4977   authorities work for the first time, fixes two huge performance flaws
4978   in hidden services, and fixes a variety of minor issues.
4980   o New directory authorities:
4981     - Set up moria1 and tor26 as the first v3 directory authorities. See
4982       doc/spec/dir-spec.txt for details on the new directory design.
4984   o Major bugfixes (crashes):
4985     - Fix possible segfaults in functions called from
4986       rend_process_relay_cell(). Bugfix on 0.1.2.x.
4988   o Major bugfixes (bridges):
4989     - Fix a bug that made servers send a "404 Not found" in response to
4990       attempts to fetch their server descriptor. This caused Tor servers
4991       to take many minutes to establish reachability for their DirPort,
4992       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
4993     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
4994       users configure that and specify a bridge with an identity
4995       fingerprint, now they will lookup the bridge descriptor at the
4996       default bridge authority via a one-hop tunnel, but once circuits
4997       are established they will switch to a three-hop tunnel for later
4998       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
5000   o Major bugfixes (hidden services):
5001     - Hidden services were choosing introduction points uniquely by
5002       hexdigest, but when constructing the hidden service descriptor
5003       they merely wrote the (potentially ambiguous) nickname.
5004     - Clients now use the v2 intro format for hidden service
5005       connections: they specify their chosen rendezvous point by identity
5006       digest rather than by (potentially ambiguous) nickname. Both
5007       are bugfixes on 0.1.2.x, and they could speed up hidden service
5008       connections dramatically. Thanks to Karsten Loesing.
5010   o Minor features (security):
5011     - As a client, do not believe any server that tells us that an
5012       address maps to an internal address space.
5013     - Make it possible to enable HashedControlPassword and
5014       CookieAuthentication at the same time.
5016   o Minor features (guard nodes):
5017     - Tag every guard node in our state file with the version that
5018       we believe added it, or with our own version if we add it. This way,
5019       if a user temporarily runs an old version of Tor and then switches
5020       back to a new one, she doesn't automatically lose her guards.
5022   o Minor features (speed):
5023     - When implementing AES counter mode, update only the portions of the
5024       counter buffer that need to change, and don't keep separate
5025       network-order and host-order counters when they are the same (i.e.,
5026       on big-endian hosts.)
5028   o Minor features (controller):
5029     - Accept LF instead of CRLF on controller, since some software has a
5030       hard time generating real Internet newlines.
5031     - Add GETINFO values for the server status events
5032       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
5033       Robert Hogan.
5035   o Removed features:
5036      - Routers no longer include bandwidth-history lines in their
5037        descriptors; this information is already available in extra-info
5038        documents, and including it in router descriptors took up 60%
5039        (!) of compressed router descriptor downloads. Completes
5040        implementation of proposal 104.
5041      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
5042        and TorControl.py, as they use the old v0 controller protocol,
5043        and are obsoleted by TorFlow anyway.
5044      - Drop support for v1 rendezvous descriptors, since we never used
5045        them anyway, and the code has probably rotted by now. Based on
5046        patch from Karsten Loesing.
5047      - On OSX, stop warning the user that kqueue support in libevent is
5048       "experimental", since it seems to have worked fine for ages.
5050   o Minor bugfixes:
5051     - When generating information telling us how to extend to a given
5052       router, do not try to include the nickname if it is absent. Fixes
5053       bug 467. Bugfix on 0.2.0.3-alpha.
5054     - Fix a user-triggerable (but not remotely-triggerable) segfault
5055       in expand_filename(). Bugfix on 0.1.2.x.
5056     - Fix a memory leak when freeing incomplete requests from DNSPort.
5057       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
5058     - Don't try to access (or alter) the state file when running
5059       --list-fingerprint or --verify-config or --hash-password. (Resolves
5060       bug 499.) Bugfix on 0.1.2.x.
5061     - Servers used to decline to publish their DirPort if their
5062       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
5063       were below a threshold. Now they only look at BandwidthRate and
5064       RelayBandwidthRate. Bugfix on 0.1.2.x.
5065     - Remove an optimization in the AES counter-mode code that assumed
5066       that the counter never exceeded 2^68. When the counter can be set
5067       arbitrarily as an IV (as it is by Karsten's new hidden services
5068       code), this assumption no longer holds. Bugfix on 0.1.2.x.
5069     - Resume listing "AUTHORITY" flag for authorities in network status.
5070       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
5072   o Code simplifications and refactoring:
5073     - Revamp file-writing logic so we don't need to have the entire
5074       contents of a file in memory at once before we write to disk. Tor,
5075       meet stdio.
5076     - Turn "descriptor store" into a full-fledged type.
5077     - Move all NT services code into a separate source file.
5078     - Unify all code that computes medians, percentile elements, etc.
5079     - Get rid of a needless malloc when parsing address policies.
5082 Changes in version 0.1.2.17 - 2007-08-30
5083   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
5084   X bundles. Vidalia 0.0.14 makes authentication required for the
5085   ControlPort in the default configuration, which addresses important
5086   security risks. Everybody who uses Vidalia (or another controller)
5087   should upgrade.
5089   In addition, this Tor update fixes major load balancing problems with
5090   path selection, which should speed things up a lot once many people
5091   have upgraded.
5093   o Major bugfixes (security):
5094     - We removed support for the old (v0) control protocol. It has been
5095       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
5096       become more of a headache than it's worth.
5098   o Major bugfixes (load balancing):
5099     - When choosing nodes for non-guard positions, weight guards
5100       proportionally less, since they already have enough load. Patch
5101       from Mike Perry.
5102     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
5103       will allow fast Tor servers to get more attention.
5104     - When we're upgrading from an old Tor version, forget our current
5105       guards and pick new ones according to the new weightings. These
5106       three load balancing patches could raise effective network capacity
5107       by a factor of four. Thanks to Mike Perry for measurements.
5109   o Major bugfixes (stream expiration):
5110     - Expire not-yet-successful application streams in all cases if
5111       they've been around longer than SocksTimeout. Right now there are
5112       some cases where the stream will live forever, demanding a new
5113       circuit every 15 seconds. Fixes bug 454; reported by lodger.
5115   o Minor features (controller):
5116     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
5117       is valid before any authentication has been received. It tells
5118       a controller what kind of authentication is expected, and what
5119       protocol is spoken. Implements proposal 119.
5121   o Minor bugfixes (performance):
5122     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
5123       greatly speeding up loading cached-routers from disk on startup.
5124     - Disable sentinel-based debugging for buffer code: we squashed all
5125       the bugs that this was supposed to detect a long time ago, and now
5126       its only effect is to change our buffer sizes from nice powers of
5127       two (which platform mallocs tend to like) to values slightly over
5128       powers of two (which make some platform mallocs sad).
5130   o Minor bugfixes (misc):
5131     - If exit bandwidth ever exceeds one third of total bandwidth, then
5132       use the correct formula to weight exit nodes when choosing paths.
5133       Based on patch from Mike Perry.
5134     - Choose perfectly fairly among routers when choosing by bandwidth and
5135       weighting by fraction of bandwidth provided by exits. Previously, we
5136       would choose with only approximate fairness, and correct ourselves
5137       if we ran off the end of the list.
5138     - If we require CookieAuthentication but we fail to write the
5139       cookie file, we would warn but not exit, and end up in a state
5140       where no controller could authenticate. Now we exit.
5141     - If we require CookieAuthentication, stop generating a new cookie
5142       every time we change any piece of our config.
5143     - Refuse to start with certain directory authority keys, and
5144       encourage people using them to stop.
5145     - Terminate multi-line control events properly. Original patch
5146       from tup.
5147     - Fix a minor memory leak when we fail to find enough suitable
5148       servers to choose a circuit.
5149     - Stop leaking part of the descriptor when we run into a particularly
5150       unparseable piece of it.
5153 Changes in version 0.2.0.6-alpha - 2007-08-26
5154   This sixth development snapshot features a new Vidalia version in the
5155   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
5156   the ControlPort in the default configuration, which addresses important
5157   security risks.
5159   In addition, this snapshot fixes major load balancing problems
5160   with path selection, which should speed things up a lot once many
5161   people have upgraded. The directory authorities also use a new
5162   mean-time-between-failure approach to tracking which servers are stable,
5163   rather than just looking at the most recent uptime.
5165   o New directory authorities:
5166     - Set up Tonga as the default bridge directory authority.
5168   o Major features:
5169     - Directory authorities now track servers by weighted
5170       mean-times-between-failures. When we have 4 or more days of data,
5171       use measured MTBF rather than declared uptime to decide whether
5172       to call a router Stable. Implements proposal 108.
5174   o Major bugfixes (load balancing):
5175     - When choosing nodes for non-guard positions, weight guards
5176       proportionally less, since they already have enough load. Patch
5177       from Mike Perry.
5178     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
5179       will allow fast Tor servers to get more attention.
5180     - When we're upgrading from an old Tor version, forget our current
5181       guards and pick new ones according to the new weightings. These
5182       three load balancing patches could raise effective network capacity
5183       by a factor of four. Thanks to Mike Perry for measurements.
5185   o Major bugfixes (descriptor parsing):
5186     - Handle unexpected whitespace better in malformed descriptors. Bug
5187       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
5189   o Minor features:
5190     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
5191       GETINFO for Torstat to use until it can switch to using extrainfos.
5192     - Optionally (if built with -DEXPORTMALLINFO) export the output
5193       of mallinfo via http, as tor/mallinfo.txt. Only accessible
5194       from localhost.
5196   o Minor bugfixes:
5197     - Do not intermix bridge routers with controller-added
5198       routers. (Bugfix on 0.2.0.x)
5199     - Do not fail with an assert when accept() returns an unexpected
5200       address family. Addresses but does not wholly fix bug 483. (Bugfix
5201       on 0.2.0.x)
5202     - Let directory authorities startup even when they can't generate
5203       a descriptor immediately, e.g. because they don't know their
5204       address.
5205     - Stop putting the authentication cookie in a file called "0"
5206       in your working directory if you don't specify anything for the
5207       new CookieAuthFile option. Reported by Matt Edman.
5208     - Make it possible to read the PROTOCOLINFO response in a way that
5209       conforms to our control-spec. Reported by Matt Edman.
5210     - Fix a minor memory leak when we fail to find enough suitable
5211       servers to choose a circuit. Bugfix on 0.1.2.x.
5212     - Stop leaking part of the descriptor when we run into a particularly
5213       unparseable piece of it. Bugfix on 0.1.2.x.
5214     - Unmap the extrainfo cache file on exit.
5217 Changes in version 0.2.0.5-alpha - 2007-08-19
5218   This fifth development snapshot fixes compilation on Windows again;
5219   fixes an obnoxious client-side bug that slowed things down and put
5220   extra load on the network; gets us closer to using the v3 directory
5221   voting scheme; makes it easier for Tor controllers to use cookie-based
5222   authentication; and fixes a variety of other bugs.
5224   o Removed features:
5225     - Version 1 directories are no longer generated in full. Instead,
5226       authorities generate and serve "stub" v1 directories that list
5227       no servers. This will stop Tor versions 0.1.0.x and earlier from
5228       working, but (for security reasons) nobody should be running those
5229       versions anyway.
5231   o Major bugfixes (compilation, 0.2.0.x):
5232     - Try to fix Win32 compilation again: improve checking for IPv6 types.
5233     - Try to fix MSVC compilation: build correctly on platforms that do
5234       not define s6_addr16 or s6_addr32.
5235     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
5236       Zhou.
5238   o Major bugfixes (stream expiration):
5239     - Expire not-yet-successful application streams in all cases if
5240       they've been around longer than SocksTimeout. Right now there are
5241       some cases where the stream will live forever, demanding a new
5242       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
5243       reported by lodger.
5245   o Minor features (directory servers):
5246     - When somebody requests a list of statuses or servers, and we have
5247       none of those, return a 404 rather than an empty 200.
5249   o Minor features (directory voting):
5250     - Store v3 consensus status consensuses on disk, and reload them
5251       on startup.
5253   o Minor features (security):
5254     - Warn about unsafe ControlPort configurations.
5255     - Refuse to start with certain directory authority keys, and
5256       encourage people using them to stop.
5258   o Minor features (controller):
5259     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
5260       is valid before any authentication has been received. It tells
5261       a controller what kind of authentication is expected, and what
5262       protocol is spoken. Implements proposal 119.
5263     - New config option CookieAuthFile to choose a new location for the
5264       cookie authentication file, and config option
5265       CookieAuthFileGroupReadable to make it group-readable.
5267   o Minor features (unit testing):
5268     - Add command-line arguments to unit-test executable so that we can
5269       invoke any chosen test from the command line rather than having
5270       to run the whole test suite at once; and so that we can turn on
5271       logging for the unit tests.
5273   o Minor bugfixes (on 0.1.2.x):
5274     - If we require CookieAuthentication but we fail to write the
5275       cookie file, we would warn but not exit, and end up in a state
5276       where no controller could authenticate. Now we exit.
5277     - If we require CookieAuthentication, stop generating a new cookie
5278       every time we change any piece of our config.
5279     - When loading bandwidth history, do not believe any information in
5280       the future.  Fixes bug 434.
5281     - When loading entry guard information, do not believe any information
5282       in the future.
5283     - When we have our clock set far in the future and generate an
5284       onion key, then re-set our clock to be correct, we should not stop
5285       the onion key from getting rotated.
5286     - Clean up torrc sample config file.
5287     - Do not automatically run configure from autogen.sh. This
5288       non-standard behavior tended to annoy people who have built other
5289       programs.
5291   o Minor bugfixes (on 0.2.0.x):
5292     - Fix a bug with AutomapHostsOnResolve that would always cause
5293       the second request to fail. Bug reported by Kate. Bugfix on
5294       0.2.0.3-alpha.
5295     - Fix a bug in ADDRMAP controller replies that would sometimes
5296       try to print a NULL. Patch from tup.
5297     - Read v3 directory authority keys from the right location.
5298     - Numerous bugfixes to directory voting code.
5301 Changes in version 0.1.2.16 - 2007-08-01
5302   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
5303   remote attacker in certain situations to rewrite the user's torrc
5304   configuration file. This can completely compromise anonymity of users
5305   in most configurations, including those running the Vidalia bundles,
5306   TorK, etc. Or worse.
5308   o Major security fixes:
5309     - Close immediately after missing authentication on control port;
5310       do not allow multiple authentication attempts.
5313 Changes in version 0.2.0.4-alpha - 2007-08-01
5314   This fourth development snapshot fixes a critical security vulnerability
5315   for most users, specifically those running Vidalia, TorK, etc. Everybody
5316   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
5318   o Major security fixes:
5319     - Close immediately after missing authentication on control port;
5320       do not allow multiple authentication attempts.
5322   o Major bugfixes (compilation):
5323     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
5324       defined there.
5326   o Minor features (performance):
5327     - Be even more aggressive about releasing RAM from small
5328       empty buffers. Thanks to our free-list code, this shouldn't be too
5329       performance-intensive.
5330     - Disable sentinel-based debugging for buffer code: we squashed all
5331       the bugs that this was supposed to detect a long time ago, and
5332       now its only effect is to change our buffer sizes from nice
5333       powers of two (which platform mallocs tend to like) to values
5334       slightly over powers of two (which make some platform mallocs sad).
5335     - Log malloc statistics from mallinfo() on platforms where it
5336       exists.
5339 Changes in version 0.2.0.3-alpha - 2007-07-29
5340   This third development snapshot introduces new experimental
5341   blocking-resistance features and a preliminary version of the v3
5342   directory voting design, and includes many other smaller features
5343   and bugfixes.
5345   o Major features:
5346     - The first pieces of our "bridge" design for blocking-resistance
5347       are implemented. People can run bridge directory authorities;
5348       people can run bridges; and people can configure their Tor clients
5349       with a set of bridges to use as the first hop into the Tor network.
5350       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
5351       details.
5352     - Create listener connections before we setuid to the configured
5353       User and Group. Now non-Windows users can choose port values
5354       under 1024, start Tor as root, and have Tor bind those ports
5355       before it changes to another UID. (Windows users could already
5356       pick these ports.)
5357     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
5358       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
5359       on "vserver" accounts. (Patch from coderman.)
5360     - Be even more aggressive about separating local traffic from relayed
5361       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
5363   o Major features (experimental):
5364     - First cut of code for "v3 dir voting": directory authorities will
5365       vote on a common network status document rather than each publishing
5366       their own opinion. This code needs more testing and more corner-case
5367       handling before it's ready for use.
5369   o Security fixes:
5370     - Directory authorities now call routers Fast if their bandwidth is
5371       at least 100KB/s, and consider their bandwidth adequate to be a
5372       Guard if it is at least 250KB/s, no matter the medians. This fix
5373       complements proposal 107. [Bugfix on 0.1.2.x]
5374     - Directory authorities now never mark more than 3 servers per IP as
5375       Valid and Running. (Implements proposal 109, by Kevin Bauer and
5376       Damon McCoy.)
5377     - Minor change to organizationName and commonName generation
5378       procedures in TLS certificates during Tor handshakes, to invalidate
5379       some earlier censorware approaches. This is not a long-term
5380       solution, but applying it will give us a bit of time to look into
5381       the epidemiology of countermeasures as they spread.
5383   o Major bugfixes (directory):
5384     - Rewrite directory tokenization code to never run off the end of
5385       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
5387   o Minor features (controller):
5388     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
5389       match requests to applications. (Patch from Robert Hogan.)
5390     - Report address and port correctly on connections to DNSPort. (Patch
5391       from Robert Hogan.)
5392     - Add a RESOLVE command to launch hostname lookups. (Original patch
5393       from Robert Hogan.)
5394     - Add GETINFO status/enough-dir-info to let controllers tell whether
5395       Tor has downloaded sufficient directory information. (Patch
5396       from Tup.)
5397     - You can now use the ControlSocket option to tell Tor to listen for
5398       controller connections on Unix domain sockets on systems that
5399       support them. (Patch from Peter Palfrader.)
5400     - STREAM NEW events are generated for DNSPort requests and for
5401       tunneled directory connections. (Patch from Robert Hogan.)
5402     - New "GETINFO address-mappings/*" command to get address mappings
5403       with expiry information. "addr-mappings/*" is now deprecated.
5404       (Patch from Tup.)
5406   o Minor features (misc):
5407     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
5408       from croup.)
5409     - The tor-gencert tool for v3 directory authorities now creates all
5410       files as readable to the file creator only, and write-protects
5411       the authority identity key.
5412     - When dumping memory usage, list bytes used in buffer memory
5413       free-lists.
5414     - When running with dmalloc, dump more stats on hup and on exit.
5415     - Directory authorities now fail quickly and (relatively) harmlessly
5416       if they generate a network status document that is somehow
5417       malformed.
5419   o Traffic load balancing improvements:
5420     - If exit bandwidth ever exceeds one third of total bandwidth, then
5421       use the correct formula to weight exit nodes when choosing paths.
5422       (Based on patch from Mike Perry.)
5423     - Choose perfectly fairly among routers when choosing by bandwidth and
5424       weighting by fraction of bandwidth provided by exits. Previously, we
5425       would choose with only approximate fairness, and correct ourselves
5426       if we ran off the end of the list. [Bugfix on 0.1.2.x]
5428   o Performance improvements:
5429     - Be more aggressive with freeing buffer RAM or putting it on the
5430       memory free lists.
5431     - Use Critical Sections rather than Mutexes for synchronizing threads
5432       on win32; Mutexes are heavier-weight, and designed for synchronizing
5433       between processes.
5435   o Deprecated and removed features:
5436     - RedirectExits is now deprecated.
5437     - Stop allowing address masks that do not correspond to bit prefixes.
5438       We have warned about these for a really long time; now it's time
5439       to reject them. (Patch from croup.)
5441   o Minor bugfixes (directory):
5442     - Fix another crash bug related to extra-info caching. (Bug found by
5443       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
5444     - Directories no longer return a "304 not modified" when they don't
5445       have the networkstatus the client asked for. Also fix a memory
5446       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
5447     - We had accidentally labelled 0.1.2.x directory servers as not
5448       suitable for begin_dir requests, and had labelled no directory
5449       servers as suitable for uploading extra-info documents. [Bugfix
5450       on 0.2.0.1-alpha]
5452   o Minor bugfixes (dns):
5453     - Fix a crash when DNSPort is set more than once. (Patch from Robert
5454       Hogan.) [Bugfix on 0.2.0.2-alpha]
5455     - Add DNSPort connections to the global connection list, so that we
5456       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
5457       on 0.2.0.2-alpha]
5458     - Fix a dangling reference that could lead to a crash when DNSPort is
5459       changed or closed (Patch from Robert Hogan.) [Bugfix on
5460       0.2.0.2-alpha]
5462   o Minor bugfixes (controller):
5463     - Provide DNS expiry times in GMT, not in local time. For backward
5464       compatibility, ADDRMAP events only provide GMT expiry in an extended
5465       field. "GETINFO address-mappings" always does the right thing.
5466     - Use CRLF line endings properly in NS events.
5467     - Terminate multi-line control events properly. (Original patch
5468       from tup.) [Bugfix on 0.1.2.x-alpha]
5469     - Do not include spaces in SOURCE_ADDR fields in STREAM
5470       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
5473 Changes in version 0.1.2.15 - 2007-07-17
5474   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
5475   problems, fixes compilation on BSD, and fixes a variety of other
5476   bugs. Everybody should upgrade.
5478   o Major bugfixes (compilation):
5479     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
5481   o Major bugfixes (crashes):
5482     - Try even harder not to dereference the first character after
5483       an mmap(). Reported by lodger.
5484     - Fix a crash bug in directory authorities when we re-number the
5485       routerlist while inserting a new router.
5486     - When the cached-routers file is an even multiple of the page size,
5487       don't run off the end and crash. (Fixes bug 455; based on idea
5488       from croup.)
5489     - Fix eventdns.c behavior on Solaris: It is critical to include
5490       orconfig.h _before_ sys/types.h, so that we can get the expected
5491       definition of _FILE_OFFSET_BITS.
5493   o Major bugfixes (security):
5494     - Fix a possible buffer overrun when using BSD natd support. Bug
5495       found by croup.
5496     - When sending destroy cells from a circuit's origin, don't include
5497       the reason for tearing down the circuit. The spec says we didn't,
5498       and now we actually don't. Reported by lodger.
5499     - Keep streamids from different exits on a circuit separate. This
5500       bug may have allowed other routers on a given circuit to inject
5501       cells into streams. Reported by lodger; fixes bug 446.
5502     - If there's a never-before-connected-to guard node in our list,
5503       never choose any guards past it. This way we don't expand our
5504       guard list unless we need to.
5506   o Minor bugfixes (guard nodes):
5507     - Weight guard selection by bandwidth, so that low-bandwidth nodes
5508       don't get overused as guards.
5510   o Minor bugfixes (directory):
5511     - Correctly count the number of authorities that recommend each
5512       version. Previously, we were under-counting by 1.
5513     - Fix a potential crash bug when we load many server descriptors at
5514       once and some of them make others of them obsolete. Fixes bug 458.
5516   o Minor bugfixes (hidden services):
5517     - Stop tearing down the whole circuit when the user asks for a
5518       connection to a port that the hidden service didn't configure.
5519       Resolves bug 444.
5521   o Minor bugfixes (misc):
5522     - On Windows, we were preventing other processes from reading
5523       cached-routers while Tor was running. Reported by janbar.
5524     - Fix a possible (but very unlikely) bug in picking routers by
5525       bandwidth. Add a log message to confirm that it is in fact
5526       unlikely. Patch from lodger.
5527     - Backport a couple of memory leak fixes.
5528     - Backport miscellaneous cosmetic bugfixes.
5531 Changes in version 0.2.0.2-alpha - 2007-06-02
5532   o Major bugfixes on 0.2.0.1-alpha:
5533     - Fix an assertion failure related to servers without extra-info digests.
5534       Resolves bugs 441 and 442.
5536   o Minor features (directory):
5537     - Support "If-Modified-Since" when answering HTTP requests for
5538       directories, running-routers documents, and network-status documents.
5539       (There's no need to support it for router descriptors, since those
5540       are downloaded by descriptor digest.)
5542   o Minor build issues:
5543     - Clear up some MIPSPro compiler warnings.
5544     - When building from a tarball on a machine that happens to have SVK
5545       installed, report the micro-revision as whatever version existed
5546       in the tarball, not as "x".
5549 Changes in version 0.2.0.1-alpha - 2007-06-01
5550   This early development snapshot provides new features for people running
5551   Tor as both a client and a server (check out the new RelayBandwidth
5552   config options); lets Tor run as a DNS proxy; and generally moves us
5553   forward on a lot of fronts.
5555   o Major features, server usability:
5556     - New config options RelayBandwidthRate and RelayBandwidthBurst:
5557       a separate set of token buckets for relayed traffic. Right now
5558       relayed traffic is defined as answers to directory requests, and
5559       OR connections that don't have any local circuits on them.
5561   o Major features, client usability:
5562     - A client-side DNS proxy feature to replace the need for
5563       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
5564       for DNS requests on port 9999, use the Tor network to resolve them
5565       anonymously, and send the reply back like a regular DNS server.
5566       The code still only implements a subset of DNS.
5567     - Make PreferTunneledDirConns and TunnelDirConns work even when
5568       we have no cached directory info. This means Tor clients can now
5569       do all of their connections protected by TLS.
5571   o Major features, performance and efficiency:
5572     - Directory authorities accept and serve "extra info" documents for
5573       routers. These documents contain fields from router descriptors
5574       that aren't usually needed, and that use a lot of excess
5575       bandwidth. Once these fields are removed from router descriptors,
5576       the bandwidth savings should be about 60%. [Partially implements
5577       proposal 104.]
5578     - Servers upload extra-info documents to any authority that accepts
5579       them. Authorities (and caches that have been configured to download
5580       extra-info documents) download them as needed. [Partially implements
5581       proposal 104.]
5582     - Change the way that Tor buffers data that it is waiting to write.
5583       Instead of queueing data cells in an enormous ring buffer for each
5584       client->OR or OR->OR connection, we now queue cells on a separate
5585       queue for each circuit.  This lets us use less slack memory, and
5586       will eventually let us be smarter about prioritizing different kinds
5587       of traffic.
5588     - Use memory pools to allocate cells with better speed and memory
5589       efficiency, especially on platforms where malloc() is inefficient.
5590     - Stop reading on edge connections when their corresponding circuit
5591       buffers are full; start again as the circuits empty out.
5593   o Major features, other:
5594     - Add an HSAuthorityRecordStats option that hidden service authorities
5595       can use to track statistics of overall hidden service usage without
5596       logging information that would be very useful to an attacker.
5597     - Start work implementing multi-level keys for directory authorities:
5598       Add a standalone tool to generate key certificates. (Proposal 103.)
5600   o Security fixes:
5601     - Directory authorities now call routers Stable if they have an
5602       uptime of at least 30 days, even if that's not the median uptime
5603       in the network. Implements proposal 107, suggested by Kevin Bauer
5604       and Damon McCoy.
5606   o Minor fixes (resource management):
5607     - Count the number of open sockets separately from the number
5608       of active connection_t objects. This will let us avoid underusing
5609       our allocated connection limit.
5610     - We no longer use socket pairs to link an edge connection to an
5611       anonymous directory connection or a DirPort test connection.
5612       Instead, we track the link internally and transfer the data
5613       in-process. This saves two sockets per "linked" connection (at the
5614       client and at the server), and avoids the nasty Windows socketpair()
5615       workaround.
5616     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
5617       for every single inactive connection_t. Free items from the
5618       4k/16k-buffer free lists when they haven't been used for a while.
5620   o Minor features (build):
5621     - Make autoconf search for libevent, openssl, and zlib consistently.
5622     - Update deprecated macros in configure.in.
5623     - When warning about missing headers, tell the user to let us
5624       know if the compile succeeds anyway, so we can downgrade the
5625       warning.
5626     - Include the current subversion revision as part of the version
5627       string: either fetch it directly if we're in an SVN checkout, do
5628       some magic to guess it if we're in an SVK checkout, or use
5629       the last-detected version if we're building from a .tar.gz.
5630       Use this version consistently in log messages.
5632   o Minor features (logging):
5633     - Always prepend "Bug: " to any log message about a bug.
5634     - Put a platform string (e.g. "Linux i686") in the startup log
5635       message, so when people paste just their logs, we know if it's
5636       OpenBSD or Windows or what.
5637     - When logging memory usage, break down memory used in buffers by
5638       buffer type.
5640   o Minor features (directory system):
5641     - New config option V2AuthoritativeDirectory that all directory
5642       authorities should set. This will let future authorities choose
5643       not to serve V2 directory information.
5644     - Directory authorities allow multiple router descriptors and/or extra
5645       info documents to be uploaded in a single go.  This will make
5646       implementing proposal 104 simpler.
5648   o Minor features (controller):
5649     - Add a new config option __DisablePredictedCircuits designed for
5650       use by the controller, when we don't want Tor to build any circuits
5651       preemptively.
5652     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
5653       so we can exit from the middle of the circuit.
5654     - Implement "getinfo status/circuit-established".
5655     - Implement "getinfo status/version/..." so a controller can tell
5656       whether the current version is recommended, and whether any versions
5657       are good, and how many authorities agree. (Patch from shibz.)
5659   o Minor features (hidden services):
5660     - Allow multiple HiddenServicePort directives with the same virtual
5661       port; when they occur, the user is sent round-robin to one
5662       of the target ports chosen at random.  Partially fixes bug 393 by
5663       adding limited ad-hoc round-robining.
5665   o Minor features (other):
5666     - More unit tests.
5667     - Add a new AutomapHostsOnResolve option: when it is enabled, any
5668       resolve request for hosts matching a given pattern causes Tor to
5669       generate an internal virtual address mapping for that host.  This
5670       allows DNSPort to work sensibly with hidden service users.  By
5671       default, .exit and .onion addresses are remapped; the list of
5672       patterns can be reconfigured with AutomapHostsSuffixes.
5673     - Add an "-F" option to tor-resolve to force a resolve for a .onion
5674       address. Thanks to the AutomapHostsOnResolve option, this is no
5675       longer a completely silly thing to do.
5676     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
5677       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
5678     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
5679       minus 1 byte: the actual maximum declared bandwidth.
5681   o Removed features:
5682     - Removed support for the old binary "version 0" controller protocol.
5683       This has been deprecated since 0.1.1, and warnings have been issued
5684       since 0.1.2.  When we encounter a v0 control message, we now send
5685       back an error and close the connection.
5686     - Remove the old "dns worker" server DNS code: it hasn't been default
5687       since 0.1.2.2-alpha, and all the servers seem to be using the new
5688       eventdns code.
5690   o Minor bugfixes (portability):
5691     - Even though Windows is equally happy with / and \ as path separators,
5692       try to use \ consistently on Windows and / consistently on Unix: it
5693       makes the log messages nicer.
5694     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
5695     - Read resolv.conf files correctly on platforms where read() returns
5696       partial results on small file reads.
5698   o Minor bugfixes (directory):
5699     - Correctly enforce that elements of directory objects do not appear
5700       more often than they are allowed to appear.
5701     - When we are reporting the DirServer line we just parsed, we were
5702       logging the second stanza of the key fingerprint, not the first.
5704   o Minor bugfixes (logging):
5705     - When we hit an EOF on a log (probably because we're shutting down),
5706       don't try to remove the log from the list: just mark it as
5707       unusable.  (Bulletproofs against bug 222.)
5709   o Minor bugfixes (other):
5710     - In the exitlist script, only consider the most recently published
5711       server descriptor for each server. Also, when the user requests
5712       a list of servers that _reject_ connections to a given address,
5713       explicitly exclude the IPs that also have servers that accept
5714       connections to that address. (Resolves bug 405.)
5715     - Stop allowing hibernating servers to be "stable" or "fast".
5716     - On Windows, we were preventing other processes from reading
5717       cached-routers while Tor was running.  (Reported by janbar)
5718     - Make the NodeFamilies config option work. (Reported by
5719       lodger -- it has never actually worked, even though we added it
5720       in Oct 2004.)
5721     - Check return values from pthread_mutex functions.
5722     - Don't save non-general-purpose router descriptors to the disk cache,
5723       because we have no way of remembering what their purpose was when
5724       we restart.
5725     - Add even more asserts to hunt down bug 417.
5726     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
5727     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
5728       Add a log message to confirm that it is in fact unlikely.
5730   o Minor bugfixes (controller):
5731     - Make 'getinfo fingerprint' return a 551 error if we're not a
5732       server, so we match what the control spec claims we do. Reported
5733       by daejees.
5734     - Fix a typo in an error message when extendcircuit fails that
5735       caused us to not follow the \r\n-based delimiter protocol. Reported
5736       by daejees.
5738   o Code simplifications and refactoring:
5739     - Stop passing around circuit_t and crypt_path_t pointers that are
5740       implicit in other procedure arguments.
5741     - Drop the old code to choke directory connections when the
5742       corresponding OR connections got full: thanks to the cell queue
5743       feature, OR conns don't get full any more.
5744     - Make dns_resolve() handle attaching connections to circuits
5745       properly, so the caller doesn't have to.
5746     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
5747     - Keep the connection array as a dynamic smartlist_t, rather than as
5748       a fixed-sized array. This is important, as the number of connections
5749       is becoming increasingly decoupled from the number of sockets.
5752 Changes in version 0.1.2.14 - 2007-05-25
5753   Tor 0.1.2.14 changes the addresses of two directory authorities (this
5754   change especially affects those who serve or use hidden services),
5755   and fixes several other crash- and security-related bugs.
5757   o Directory authority changes:
5758     - Two directory authorities (moria1 and moria2) just moved to new
5759       IP addresses. This change will particularly affect those who serve
5760       or use hidden services.
5762   o Major bugfixes (crashes):
5763     - If a directory server runs out of space in the connection table
5764       as it's processing a begin_dir request, it will free the exit stream
5765       but leave it attached to the circuit, leading to unpredictable
5766       behavior. (Reported by seeess, fixes bug 425.)
5767     - Fix a bug in dirserv_remove_invalid() that would cause authorities
5768       to corrupt memory under some really unlikely scenarios.
5769     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
5770     - Avoid segfaults when reading from mmaped descriptor file. (Reported
5771       by lodger.)
5773   o Major bugfixes (security):
5774     - When choosing an entry guard for a circuit, avoid using guards
5775       that are in the same family as the chosen exit -- not just guards
5776       that are exactly the chosen exit. (Reported by lodger.)
5778   o Major bugfixes (resource management):
5779     - If a directory authority is down, skip it when deciding where to get
5780       networkstatus objects or descriptors. Otherwise we keep asking
5781       every 10 seconds forever. Fixes bug 384.
5782     - Count it as a failure if we fetch a valid network-status but we
5783       don't want to keep it. Otherwise we'll keep fetching it and keep
5784       not wanting to keep it. Fixes part of bug 422.
5785     - If all of our dirservers have given us bad or no networkstatuses
5786       lately, then stop hammering them once per minute even when we
5787       think they're failed. Fixes another part of bug 422.
5789   o Minor bugfixes:
5790     - Actually set the purpose correctly for descriptors inserted with
5791       purpose=controller.
5792     - When we have k non-v2 authorities in our DirServer config,
5793       we ignored the last k authorities in the list when updating our
5794       network-statuses.
5795     - Correctly back-off from requesting router descriptors that we are
5796       having a hard time downloading.
5797     - Read resolv.conf files correctly on platforms where read() returns
5798       partial results on small file reads.
5799     - Don't rebuild the entire router store every time we get 32K of
5800       routers: rebuild it when the journal gets very large, or when
5801       the gaps in the store get very large.
5803   o Minor features:
5804     - When routers publish SVN revisions in their router descriptors,
5805       authorities now include those versions correctly in networkstatus
5806       documents.
5807     - Warn when using a version of libevent before 1.3b to run a server on
5808       OSX or BSD: these versions interact badly with userspace threads.
5811 Changes in version 0.1.2.13 - 2007-04-24
5812   This release features some major anonymity fixes, such as safer path
5813   selection; better client performance; faster bootstrapping, better
5814   address detection, and better DNS support for servers; write limiting as
5815   well as read limiting to make servers easier to run; and a huge pile of
5816   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
5818   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
5819   of the Freenode IRC network, remembering his patience and vision for
5820   free speech on the Internet.
5822   o Minor fixes:
5823     - Fix a memory leak when we ask for "all" networkstatuses and we
5824       get one we don't recognize.
5825     - Add more asserts to hunt down bug 417.
5826     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
5829 Changes in version 0.1.2.12-rc - 2007-03-16
5830   o Major bugfixes:
5831     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
5832       directory information requested inside Tor connections (i.e. via
5833       begin_dir cells). It only triggered when the same connection was
5834       serving other data at the same time. Reported by seeess.
5836   o Minor bugfixes:
5837     - When creating a circuit via the controller, send a 'launched'
5838       event when we're done, so we follow the spec better.
5841 Changes in version 0.1.2.11-rc - 2007-03-15
5842   o Minor bugfixes (controller), reported by daejees:
5843     - Correct the control spec to match how the code actually responds
5844       to 'getinfo addr-mappings/*'.
5845     - The control spec described a GUARDS event, but the code
5846       implemented a GUARD event. Standardize on GUARD, but let people
5847       ask for GUARDS too.
5850 Changes in version 0.1.2.10-rc - 2007-03-07
5851   o Major bugfixes (Windows):
5852     - Do not load the NT services library functions (which may not exist)
5853       just to detect if we're a service trying to shut down. Now we run
5854       on Win98 and friends again.
5856   o Minor bugfixes (other):
5857     - Clarify a couple of log messages.
5858     - Fix a misleading socks5 error number.
5861 Changes in version 0.1.2.9-rc - 2007-03-02
5862   o Major bugfixes (Windows):
5863     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
5864       of the usual GCC "%llu". This prevents a bug when saving 64-bit
5865       int configuration values: the high-order 32 bits would get
5866       truncated. In particular, we were being bitten by the default
5867       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
5868       and maybe also bug 397.)
5870   o Minor bugfixes (performance):
5871     - Use OpenSSL's AES implementation on platforms where it's faster.
5872       This could save us as much as 10% CPU usage.
5874   o Minor bugfixes (server):
5875     - Do not rotate onion key immediately after setting it for the first
5876       time.
5878   o Minor bugfixes (directory authorities):
5879     - Stop calling servers that have been hibernating for a long time
5880       "stable". Also, stop letting hibernating or obsolete servers affect
5881       uptime and bandwidth cutoffs.
5882     - Stop listing hibernating servers in the v1 directory.
5884   o Minor bugfixes (hidden services):
5885     - Upload hidden service descriptors slightly less often, to reduce
5886       load on authorities.
5888   o Minor bugfixes (other):
5889     - Fix an assert that could trigger if a controller quickly set then
5890       cleared EntryNodes.  (Bug found by Udo van den Heuvel.)
5891     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
5892       to INT32_MAX.
5893     - Fix a potential race condition in the rpm installer.  Found by
5894       Stefan Nordhausen.
5895     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
5896       of 2 as indicating that the server is completely bad; it sometimes
5897       means that the server is just bad for the request in question. (may fix
5898       the last of bug 326.)
5899     - Disable encrypted directory connections when we don't have a server
5900       descriptor for the destination. We'll get this working again in
5901       the 0.2.0 branch.
5904 Changes in version 0.1.2.8-beta - 2007-02-26
5905   o Major bugfixes (crashes):
5906     - Stop crashing when the controller asks us to resetconf more than
5907       one config option at once. (Vidalia 0.0.11 does this.)
5908     - Fix a crash that happened on Win98 when we're given command-line
5909       arguments: don't try to load NT service functions from advapi32.dll
5910       except when we need them. (Bug introduced in 0.1.2.7-alpha;
5911       resolves bug 389.)
5912     - Fix a longstanding obscure crash bug that could occur when
5913       we run out of DNS worker processes. (Resolves bug 390.)
5915   o Major bugfixes (hidden services):
5916     - Correctly detect whether hidden service descriptor downloads are
5917       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
5919   o Major bugfixes (accounting):
5920     - When we start during an accounting interval before it's time to wake
5921       up, remember to wake up at the correct time. (May fix bug 342.)
5923   o Minor bugfixes (controller):
5924     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
5925       clear the corresponding on_circuit variable, and remember later
5926       that we don't need to send a redundant CLOSED event.  (Resolves part
5927       3 of bug 367.)
5928     - Report events where a resolve succeeded or where we got a socks
5929       protocol error correctly, rather than calling both of them
5930       "INTERNAL".
5931     - Change reported stream target addresses to IP consistently when
5932       we finally get the IP from an exit node.
5933     - Send log messages to the controller even if they happen to be very
5934       long.
5936   o Minor bugfixes (other):
5937     - Display correct results when reporting which versions are
5938       recommended, and how recommended they are. (Resolves bug 383.)
5939     - Improve our estimates for directory bandwidth to be less random:
5940       guess that an unrecognized directory will have the average bandwidth
5941       from all known directories, not that it will have the average
5942       bandwidth from those directories earlier than it on the list.
5943     - If we start a server with ClientOnly 1, then set ClientOnly to 0
5944       and hup, stop triggering an assert based on an empty onion_key.
5945     - On platforms with no working mmap() equivalent, don't warn the
5946       user when cached-routers doesn't exist.
5947     - Warn the user when mmap() [or its equivalent] fails for some reason
5948       other than file-not-found.
5949     - Don't warn the user when cached-routers.new doesn't exist: that's
5950       perfectly fine when starting up for the first time.
5951     - When EntryNodes are configured, rebuild the guard list to contain,
5952       in order: the EntryNodes that were guards before; the rest of the
5953       EntryNodes; the nodes that were guards before.
5954     - Mask out all signals in sub-threads; only the libevent signal
5955       handler should be processing them. This should prevent some crashes
5956       on some machines using pthreads. (Patch from coderman.)
5957     - Fix switched arguments on memset in the implementation of
5958       tor_munmap() for systems with no mmap() call.
5959     - When Tor receives a router descriptor that it asked for, but
5960       no longer wants (because it has received fresh networkstatuses
5961       in the meantime), do not warn the user.  Cache the descriptor if
5962       we're a cache; drop it if we aren't.
5963     - Make earlier entry guards _really_ get retried when the network
5964       comes back online.
5965     - On a malformed DNS reply, always give an error to the corresponding
5966       DNS request.
5967     - Build with recent libevents on platforms that do not define the
5968       nonstandard types "u_int8_t" and friends.
5970   o Minor features (controller):
5971     - Warn the user when an application uses the obsolete binary v0
5972       control protocol.  We're planning to remove support for it during
5973       the next development series, so it's good to give people some
5974       advance warning.
5975     - Add STREAM_BW events to report per-entry-stream bandwidth
5976       use. (Patch from Robert Hogan.)
5977     - Rate-limit SIGNEWNYM signals in response to controllers that
5978       impolitely generate them for every single stream. (Patch from
5979       mwenge; closes bug 394.)
5980     - Make REMAP stream events have a SOURCE (cache or exit), and
5981       make them generated in every case where we get a successful
5982       connected or resolved cell.
5984   o Minor bugfixes (performance):
5985     - Call router_have_min_dir_info half as often. (This is showing up in
5986       some profiles, but not others.)
5987     - When using GCC, make log_debug never get called at all, and its
5988       arguments never get evaluated, when no debug logs are configured.
5989       (This is showing up in some profiles, but not others.)
5991   o Minor features:
5992     - Remove some never-implemented options.  Mark PathlenCoinWeight as
5993       obsolete.
5994     - Implement proposal 106: Stop requiring clients to have well-formed
5995       certificates; stop checking nicknames in certificates. (Clients
5996       have certificates so that they can look like Tor servers, but in
5997       the future we might want to allow them to look like regular TLS
5998       clients instead. Nicknames in certificates serve no purpose other
5999       than making our protocol easier to recognize on the wire.)
6000     - Revise messages on handshake failure again to be even more clear about
6001       which are incoming connections and which are outgoing.
6002     - Discard any v1 directory info that's over 1 month old (for
6003       directories) or over 1 week old (for running-routers lists).
6004     - Do not warn when individual nodes in the configuration's EntryNodes,
6005       ExitNodes, etc are down: warn only when all possible nodes
6006       are down. (Fixes bug 348.)
6007     - Always remove expired routers and networkstatus docs before checking
6008       whether we have enough information to build circuits. (Fixes
6009       bug 373.)
6010     - Put a lower-bound on MaxAdvertisedBandwidth.
6013 Changes in version 0.1.2.7-alpha - 2007-02-06
6014   o Major bugfixes (rate limiting):
6015     - Servers decline directory requests much more aggressively when
6016       they're low on bandwidth. Otherwise they end up queueing more and
6017       more directory responses, which can't be good for latency.
6018     - But never refuse directory requests from local addresses.
6019     - Fix a memory leak when sending a 503 response for a networkstatus
6020       request.
6021     - Be willing to read or write on local connections (e.g. controller
6022       connections) even when the global rate limiting buckets are empty.
6023     - If our system clock jumps back in time, don't publish a negative
6024       uptime in the descriptor. Also, don't let the global rate limiting
6025       buckets go absurdly negative.
6026     - Flush local controller connection buffers periodically as we're
6027       writing to them, so we avoid queueing 4+ megabytes of data before
6028       trying to flush.
6030   o Major bugfixes (NT services):
6031     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
6032       command-line flag so that admins can override the default by saying
6033       "tor --service install --user "SomeUser"".  This will not affect
6034       existing installed services.  Also, warn the user that the service
6035       will look for its configuration file in the service user's
6036       %appdata% directory.  (We can't do the 'hardwire the user's appdata
6037       directory' trick any more, since we may not have read access to that
6038       directory.)
6040   o Major bugfixes (other):
6041     - Previously, we would cache up to 16 old networkstatus documents
6042       indefinitely, if they came from nontrusted authorities. Now we
6043       discard them if they are more than 10 days old.
6044     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
6045       Del Vecchio).
6046     - Detect and reject malformed DNS responses containing circular
6047       pointer loops.
6048     - If exits are rare enough that we're not marking exits as guards,
6049       ignore exit bandwidth when we're deciding the required bandwidth
6050       to become a guard.
6051     - When we're handling a directory connection tunneled over Tor,
6052       don't fill up internal memory buffers with all the data we want
6053       to tunnel; instead, only add it if the OR connection that will
6054       eventually receive it has some room for it. (This can lead to
6055       slowdowns in tunneled dir connections; a better solution will have
6056       to wait for 0.2.0.)
6058   o Minor bugfixes (dns):
6059     - Add some defensive programming to eventdns.c in an attempt to catch
6060       possible memory-stomping bugs.
6061     - Detect and reject DNS replies containing IPv4 or IPv6 records with
6062       an incorrect number of bytes. (Previously, we would ignore the
6063       extra bytes.)
6064     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
6065       in the correct order, and doesn't crash.
6066     - Free memory held in recently-completed DNS lookup attempts on exit.
6067       This was not a memory leak, but may have been hiding memory leaks.
6068     - Handle TTL values correctly on reverse DNS lookups.
6069     - Treat failure to parse resolv.conf as an error.
6071   o Minor bugfixes (other):
6072     - Fix crash with "tor --list-fingerprint" (reported by seeess).
6073     - When computing clock skew from directory HTTP headers, consider what
6074       time it was when we finished asking for the directory, not what
6075       time it is now.
6076     - Expire socks connections if they spend too long waiting for the
6077       handshake to finish. Previously we would let them sit around for
6078       days, if the connecting application didn't close them either.
6079     - And if the socks handshake hasn't started, don't send a
6080       "DNS resolve socks failed" handshake reply; just close it.
6081     - Stop using C functions that OpenBSD's linker doesn't like.
6082     - Don't launch requests for descriptors unless we have networkstatuses
6083       from at least half of the authorities.  This delays the first
6084       download slightly under pathological circumstances, but can prevent
6085       us from downloading a bunch of descriptors we don't need.
6086     - Do not log IPs with TLS failures for incoming TLS
6087       connections. (Fixes bug 382.)
6088     - If the user asks to use invalid exit nodes, be willing to use
6089       unstable ones.
6090     - Stop using the reserved ac_cv namespace in our configure script.
6091     - Call stat() slightly less often; use fstat() when possible.
6092     - Refactor the way we handle pending circuits when an OR connection
6093       completes or fails, in an attempt to fix a rare crash bug.
6094     - Only rewrite a conn's address based on X-Forwarded-For: headers
6095       if it's a parseable public IP address; and stop adding extra quotes
6096       to the resulting address.
6098   o Major features:
6099     - Weight directory requests by advertised bandwidth. Now we can
6100       let servers enable write limiting but still allow most clients to
6101       succeed at their directory requests. (We still ignore weights when
6102       choosing a directory authority; I hope this is a feature.)
6104   o Minor features:
6105     - Create a new file ReleaseNotes which was the old ChangeLog. The
6106       new ChangeLog file now includes the summaries for all development
6107       versions too.
6108     - Check for addresses with invalid characters at the exit as well
6109       as at the client, and warn less verbosely when they fail. You can
6110       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
6111     - Adapt a patch from goodell to let the contrib/exitlist script
6112       take arguments rather than require direct editing.
6113     - Inform the server operator when we decide not to advertise a
6114       DirPort due to AccountingMax enabled or a low BandwidthRate. It
6115       was confusing Zax, so now we're hopefully more helpful.
6116     - Bring us one step closer to being able to establish an encrypted
6117       directory tunnel without knowing a descriptor first. Still not
6118       ready yet. As part of the change, now assume we can use a
6119       create_fast cell if we don't know anything about a router.
6120     - Allow exit nodes to use nameservers running on ports other than 53.
6121     - Servers now cache reverse DNS replies.
6122     - Add an --ignore-missing-torrc command-line option so that we can
6123       get the "use sensible defaults if the configuration file doesn't
6124       exist" behavior even when specifying a torrc location on the command
6125       line.
6127   o Minor features (controller):
6128     - Track reasons for OR connection failure; make these reasons
6129       available via the controller interface. (Patch from Mike Perry.)
6130     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
6131       can learn when clients are sending malformed hostnames to Tor.
6132     - Clean up documentation for controller status events.
6133     - Add a REMAP status to stream events to note that a stream's
6134       address has changed because of a cached address or a MapAddress
6135       directive.
6138 Changes in version 0.1.2.6-alpha - 2007-01-09
6139   o Major bugfixes:
6140     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
6141       connection handles more than 4 gigs in either direction, we crash.
6142     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
6143       advertised exit node, somebody might try to exit from us when
6144       we're bootstrapping and before we've built our descriptor yet.
6145       Refuse the connection rather than crashing.
6147   o Minor bugfixes:
6148     - Warn if we (as a server) find that we've resolved an address that we
6149       weren't planning to resolve.
6150     - Warn that using select() on any libevent version before 1.1 will be
6151       unnecessarily slow (even for select()).
6152     - Flush ERR-level controller status events just like we currently
6153       flush ERR-level log events, so that a Tor shutdown doesn't prevent
6154       the controller from learning about current events.
6156   o Minor features (more controller status events):
6157     - Implement EXTERNAL_ADDRESS server status event so controllers can
6158       learn when our address changes.
6159     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
6160       can learn when directories reject our descriptor.
6161     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
6162       can learn when a client application is speaking a non-socks protocol
6163       to our SocksPort.
6164     - Implement DANGEROUS_SOCKS client status event so controllers
6165       can learn when a client application is leaking DNS addresses.
6166     - Implement BUG general status event so controllers can learn when
6167       Tor is unhappy about its internal invariants.
6168     - Implement CLOCK_SKEW general status event so controllers can learn
6169       when Tor thinks the system clock is set incorrectly.
6170     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
6171       server status events so controllers can learn when their descriptors
6172       are accepted by a directory.
6173     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
6174       server status events so controllers can learn about Tor's progress in
6175       deciding whether it's reachable from the outside.
6176     - Implement BAD_LIBEVENT general status event so controllers can learn
6177       when we have a version/method combination in libevent that needs to
6178       be changed.
6179     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
6180       and DNS_USELESS server status events so controllers can learn
6181       about changes to DNS server status.
6183   o Minor features (directory):
6184     - Authorities no longer recommend exits as guards if this would shift
6185       too much load to the exit nodes.
6188 Changes in version 0.1.2.5-alpha - 2007-01-06
6189   o Major features:
6190     - Enable write limiting as well as read limiting. Now we sacrifice
6191       capacity if we're pushing out lots of directory traffic, rather
6192       than overrunning the user's intended bandwidth limits.
6193     - Include TLS overhead when counting bandwidth usage; previously, we
6194       would count only the bytes sent over TLS, but not the bytes used
6195       to send them.
6196     - Support running the Tor service with a torrc not in the same
6197       directory as tor.exe and default to using the torrc located in
6198       the %appdata%\Tor\ of the user who installed the service. Patch
6199       from Matt Edman.
6200     - Servers now check for the case when common DNS requests are going to
6201       wildcarded addresses (i.e. all getting the same answer), and change
6202       their exit policy to reject *:* if it's happening.
6203     - Implement BEGIN_DIR cells, so we can connect to the directory
6204       server via TLS to do encrypted directory requests rather than
6205       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
6206       config options if you like.
6208   o Minor features (config and docs):
6209     - Start using the state file to store bandwidth accounting data:
6210       the bw_accounting file is now obsolete. We'll keep generating it
6211       for a while for people who are still using 0.1.2.4-alpha.
6212     - Try to batch changes to the state file so that we do as few
6213       disk writes as possible while still storing important things in
6214       a timely fashion.
6215     - The state file and the bw_accounting file get saved less often when
6216       the AvoidDiskWrites config option is set.
6217     - Make PIDFile work on Windows (untested).
6218     - Add internal descriptions for a bunch of configuration options:
6219       accessible via controller interface and in comments in saved
6220       options files.
6221     - Reject *:563 (NNTPS) in the default exit policy. We already reject
6222       NNTP by default, so this seems like a sensible addition.
6223     - Clients now reject hostnames with invalid characters. This should
6224       avoid some inadvertent info leaks. Add an option
6225       AllowNonRFC953Hostnames to disable this behavior, in case somebody
6226       is running a private network with hosts called @, !, and #.
6227     - Add a maintainer script to tell us which options are missing
6228       documentation: "make check-docs".
6229     - Add a new address-spec.txt document to describe our special-case
6230       addresses: .exit, .onion, and .noconnnect.
6232   o Minor features (DNS):
6233     - Ongoing work on eventdns infrastructure: now it has dns server
6234       and ipv6 support. One day Tor will make use of it.
6235     - Add client-side caching for reverse DNS lookups.
6236     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
6237     - When we change nameservers or IP addresses, reset and re-launch
6238       our tests for DNS hijacking.
6240   o Minor features (directory):
6241     - Authorities now specify server versions in networkstatus. This adds
6242       about 2% to the size of compressed networkstatus docs, and allows
6243       clients to tell which servers support BEGIN_DIR and which don't.
6244       The implementation is forward-compatible with a proposed future
6245       protocol version scheme not tied to Tor versions.
6246     - DirServer configuration lines now have an orport= option so
6247       clients can open encrypted tunnels to the authorities without
6248       having downloaded their descriptors yet. Enabled for moria1,
6249       moria2, tor26, and lefkada now in the default configuration.
6250     - Directory servers are more willing to send a 503 "busy" if they
6251       are near their write limit, especially for v1 directory requests.
6252       Now they can use their limited bandwidth for actual Tor traffic.
6253     - Clients track responses with status 503 from dirservers. After a
6254       dirserver has given us a 503, we try not to use it until an hour has
6255       gone by, or until we have no dirservers that haven't given us a 503.
6256     - When we get a 503 from a directory, and we're not a server, we don't
6257       count the failure against the total number of failures allowed
6258       for the thing we're trying to download.
6259     - Report X-Your-Address-Is correctly from tunneled directory
6260       connections; don't report X-Your-Address-Is when it's an internal
6261       address; and never believe reported remote addresses when they're
6262       internal.
6263     - Protect against an unlikely DoS attack on directory servers.
6264     - Add a BadDirectory flag to network status docs so that authorities
6265       can (eventually) tell clients about caches they believe to be
6266       broken.
6268   o Minor features (controller):
6269     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
6270     - Reimplement GETINFO so that info/names stays in sync with the
6271       actual keys.
6272     - Implement "GETINFO fingerprint".
6273     - Implement "SETEVENTS GUARD" so controllers can get updates on
6274       entry guard status as it changes.
6276   o Minor features (clean up obsolete pieces):
6277     - Remove some options that have been deprecated since at least
6278       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
6279       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
6280       to set log options.
6281     - We no longer look for identity and onion keys in "identity.key" and
6282       "onion.key" -- these were replaced by secret_id_key and
6283       secret_onion_key in 0.0.8pre1.
6284     - We no longer require unrecognized directory entries to be
6285       preceded by "opt".
6287   o Major bugfixes (security):
6288     - Stop sending the HttpProxyAuthenticator string to directory
6289       servers when directory connections are tunnelled through Tor.
6290     - Clients no longer store bandwidth history in the state file.
6291     - Do not log introduction points for hidden services if SafeLogging
6292       is set.
6293     - When generating bandwidth history, round down to the nearest
6294       1k. When storing accounting data, round up to the nearest 1k.
6295     - When we're running as a server, remember when we last rotated onion
6296       keys, so that we will rotate keys once they're a week old even if
6297       we never stay up for a week ourselves.
6299   o Major bugfixes (other):
6300     - Fix a longstanding bug in eventdns that prevented the count of
6301       timed-out resolves from ever being reset. This bug caused us to
6302       give up on a nameserver the third time it timed out, and try it
6303       10 seconds later... and to give up on it every time it timed out
6304       after that.
6305     - Take out the '5 second' timeout from the connection retry
6306       schedule. Now the first connect attempt will wait a full 10
6307       seconds before switching to a new circuit. Perhaps this will help
6308       a lot. Based on observations from Mike Perry.
6309     - Fix a bug on the Windows implementation of tor_mmap_file() that
6310       would prevent the cached-routers file from ever loading. Reported
6311       by John Kimble.
6313   o Minor bugfixes:
6314     - Fix an assert failure when a directory authority sets
6315       AuthDirRejectUnlisted and then receives a descriptor from an
6316       unlisted router. Reported by seeess.
6317     - Avoid a double-free when parsing malformed DirServer lines.
6318     - Fix a bug when a BSD-style PF socket is first used. Patch from
6319       Fabian Keil.
6320     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
6321       to resolve an address at a given exit node even when they ask for
6322       it by name.
6323     - Servers no longer ever list themselves in their "family" line,
6324       even if configured to do so. This makes it easier to configure
6325       family lists conveniently.
6326     - When running as a server, don't fall back to 127.0.0.1 when no
6327       nameservers are configured in /etc/resolv.conf; instead, make the
6328       user fix resolv.conf or specify nameservers explicitly. (Resolves
6329       bug 363.)
6330     - Stop accepting certain malformed ports in configured exit policies.
6331     - Don't re-write the fingerprint file every restart, unless it has
6332       changed.
6333     - Stop warning when a single nameserver fails: only warn when _all_ of
6334       our nameservers have failed. Also, when we only have one nameserver,
6335       raise the threshold for deciding that the nameserver is dead.
6336     - Directory authorities now only decide that routers are reachable
6337       if their identity keys are as expected.
6338     - When the user uses bad syntax in the Log config line, stop
6339       suggesting other bad syntax as a replacement.
6340     - Correctly detect ipv6 DNS capability on OpenBSD.
6342   o Minor bugfixes (controller):
6343     - Report the circuit number correctly in STREAM CLOSED events. Bug
6344       reported by Mike Perry.
6345     - Do not report bizarre values for results of accounting GETINFOs
6346       when the last second's write or read exceeds the allotted bandwidth.
6347     - Report "unrecognized key" rather than an empty string when the
6348       controller tries to fetch a networkstatus that doesn't exist.
6351 Changes in version 0.1.1.26 - 2006-12-14
6352   o Security bugfixes:
6353     - Stop sending the HttpProxyAuthenticator string to directory
6354       servers when directory connections are tunnelled through Tor.
6355     - Clients no longer store bandwidth history in the state file.
6356     - Do not log introduction points for hidden services if SafeLogging
6357       is set.
6359   o Minor bugfixes:
6360     - Fix an assert failure when a directory authority sets
6361       AuthDirRejectUnlisted and then receives a descriptor from an
6362       unlisted router (reported by seeess).
6365 Changes in version 0.1.2.4-alpha - 2006-12-03
6366   o Major features:
6367     - Add support for using natd; this allows FreeBSDs earlier than
6368       5.1.2 to have ipfw send connections through Tor without using
6369       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
6371   o Minor features:
6372     - Make all connections to addresses of the form ".noconnect"
6373       immediately get closed. This lets application/controller combos
6374       successfully test whether they're talking to the same Tor by
6375       watching for STREAM events.
6376     - Make cross.sh cross-compilation script work even when autogen.sh
6377       hasn't been run. (Patch from Michael Mohr.)
6378     - Statistics dumped by -USR2 now include a breakdown of public key
6379       operations, for profiling.
6381   o Major bugfixes:
6382     - Fix a major leak when directory authorities parse their
6383       approved-routers list, a minor memory leak when we fail to pick
6384       an exit node, and a few rare leaks on errors.
6385     - Handle TransPort connections even when the server sends data before
6386       the client sends data. Previously, the connection would just hang
6387       until the client sent data. (Patch from tup based on patch from
6388       Zajcev Evgeny.)
6389     - Avoid assert failure when our cached-routers file is empty on
6390       startup.
6392   o Minor bugfixes:
6393     - Don't log spurious warnings when we see a circuit close reason we
6394       don't recognize; it's probably just from a newer version of Tor.
6395     - Have directory authorities allow larger amounts of drift in uptime
6396       without replacing the server descriptor: previously, a server that
6397       restarted every 30 minutes could have 48 "interesting" descriptors
6398       per day.
6399     - Start linking to the Tor specification and Tor reference manual
6400       correctly in the Windows installer.
6401     - Add Vidalia to the OS X uninstaller script, so when we uninstall
6402       Tor/Privoxy we also uninstall Vidalia.
6403     - Resume building on Irix64, and fix a lot of warnings from its
6404       MIPSpro C compiler.
6405     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
6406       when we're running as a client.
6409 Changes in version 0.1.1.25 - 2006-11-04
6410   o Major bugfixes:
6411     - When a client asks us to resolve (rather than connect to)
6412       an address, and we have a cached answer, give them the cached
6413       answer. Previously, we would give them no answer at all.
6414     - We were building exactly the wrong circuits when we predict
6415       hidden service requirements, meaning Tor would have to build all
6416       its circuits on demand.
6417     - If none of our live entry guards have a high uptime, but we
6418       require a guard with a high uptime, try adding a new guard before
6419       we give up on the requirement. This patch should make long-lived
6420       connections more stable on average.
6421     - When testing reachability of our DirPort, don't launch new
6422       tests when there's already one in progress -- unreachable
6423       servers were stacking up dozens of testing streams.
6425   o Security bugfixes:
6426     - When the user sends a NEWNYM signal, clear the client-side DNS
6427       cache too. Otherwise we continue to act on previous information.
6429   o Minor bugfixes:
6430     - Avoid a memory corruption bug when creating a hash table for
6431       the first time.
6432     - Avoid possibility of controller-triggered crash when misusing
6433       certain commands from a v0 controller on platforms that do not
6434       handle printf("%s",NULL) gracefully.
6435     - Avoid infinite loop on unexpected controller input.
6436     - Don't log spurious warnings when we see a circuit close reason we
6437       don't recognize; it's probably just from a newer version of Tor.
6438     - Add Vidalia to the OS X uninstaller script, so when we uninstall
6439       Tor/Privoxy we also uninstall Vidalia.
6442 Changes in version 0.1.2.3-alpha - 2006-10-29
6443   o Minor features:
6444     - Prepare for servers to publish descriptors less often: never
6445       discard a descriptor simply for being too old until either it is
6446       recommended by no authorities, or until we get a better one for
6447       the same router. Make caches consider retaining old recommended
6448       routers for even longer.
6449     - If most authorities set a BadExit flag for a server, clients
6450       don't think of it as a general-purpose exit. Clients only consider
6451       authorities that advertise themselves as listing bad exits.
6452     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
6453       headers for content, so that we can work better in the presence of
6454       caching HTTP proxies.
6455     - Allow authorities to list nodes as bad exits by fingerprint or by
6456       address.
6458   o Minor features, controller:
6459     - Add a REASON field to CIRC events; for backward compatibility, this
6460       field is sent only to controllers that have enabled the extended
6461       event format.  Also, add additional reason codes to explain why
6462       a given circuit has been destroyed or truncated. (Patches from
6463       Mike Perry)
6464     - Add a REMOTE_REASON field to extended CIRC events to tell the
6465       controller about why a remote OR told us to close a circuit.
6466     - Stream events also now have REASON and REMOTE_REASON fields,
6467       working much like those for circuit events.
6468     - There's now a GETINFO ns/... field so that controllers can ask Tor
6469       about the current status of a router.
6470     - A new event type "NS" to inform a controller when our opinion of
6471       a router's status has changed.
6472     - Add a GETINFO events/names and GETINFO features/names so controllers
6473       can tell which events and features are supported.
6474     - A new CLEARDNSCACHE signal to allow controllers to clear the
6475       client-side DNS cache without expiring circuits.
6477   o Security bugfixes:
6478     - When the user sends a NEWNYM signal, clear the client-side DNS
6479       cache too. Otherwise we continue to act on previous information.
6481   o Minor bugfixes:
6482     - Avoid sending junk to controllers or segfaulting when a controller
6483       uses EVENT_NEW_DESC with verbose nicknames.
6484     - Stop triggering asserts if the controller tries to extend hidden
6485       service circuits (reported by mwenge).
6486     - Avoid infinite loop on unexpected controller input.
6487     - When the controller does a "GETINFO network-status", tell it
6488       about even those routers whose descriptors are very old, and use
6489       long nicknames where appropriate.
6490     - Change NT service functions to be loaded on demand.  This lets us
6491       build with MinGW without breaking Tor for Windows 98 users.
6492     - Do DirPort reachability tests less often, since a single test
6493       chews through many circuits before giving up.
6494     - In the hidden service example in torrc.sample, stop recommending
6495       esoteric and discouraged hidden service options.
6496     - When stopping an NT service, wait up to 10 sec for it to actually
6497       stop.  (Patch from Matt Edman; resolves bug 295.)
6498     - Fix handling of verbose nicknames with ORCONN controller events:
6499       make them show up exactly when requested, rather than exactly when
6500       not requested.
6501     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
6502       printing a duplicate "$" in the keys we send (reported by mwenge).
6503     - Correctly set maximum connection limit on Cygwin. (This time
6504       for sure!)
6505     - Try to detect Windows correctly when cross-compiling.
6506     - Detect the size of the routers file correctly even if it is
6507       corrupted (on systems without mmap) or not page-aligned (on systems
6508       with mmap). This bug was harmless.
6509     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
6510       to open a stream fails; now we do in more cases. This should
6511       make clients able to find a good exit faster in some cases, since
6512       unhandleable requests will now get an error rather than timing out.
6513     - Resolve two memory leaks when rebuilding the on-disk router cache
6514       (reported by fookoowa).
6515     - Clean up minor code warnings suggested by the MIPSpro C compiler,
6516       and reported by some Centos users.
6517     - Controller signals now work on non-Unix platforms that don't define
6518       SIGUSR1 and SIGUSR2 the way we expect.
6519     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
6520       values before failing, and always enables eventdns.
6521     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
6522       Try to fix this in configure.in by checking for most functions
6523       before we check for libevent.
6526 Changes in version 0.1.2.2-alpha - 2006-10-07
6527   o Major features:
6528     - Make our async eventdns library on-by-default for Tor servers,
6529       and plan to deprecate the separate dnsworker threads.
6530     - Add server-side support for "reverse" DNS lookups (using PTR
6531       records so clients can determine the canonical hostname for a given
6532       IPv4 address). Only supported by servers using eventdns; servers
6533       now announce in their descriptors whether they support eventdns.
6534     - Specify and implement client-side SOCKS5 interface for reverse DNS
6535       lookups (see doc/socks-extensions.txt).
6536     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
6537       connect to directory servers through Tor. Previously, clients needed
6538       to find Tor exits to make private connections to directory servers.
6539     - Avoid choosing Exit nodes for entry or middle hops when the
6540       total bandwidth available from non-Exit nodes is much higher than
6541       the total bandwidth available from Exit nodes.
6542     - Workaround for name servers (like Earthlink's) that hijack failing
6543       DNS requests and replace the no-such-server answer with a "helpful"
6544       redirect to an advertising-driven search portal. Also work around
6545       DNS hijackers who "helpfully" decline to hijack known-invalid
6546       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
6547       lets you turn it off.
6548     - Send out a burst of long-range padding cells once we've established
6549       that we're reachable. Spread them over 4 circuits, so hopefully
6550       a few will be fast. This exercises our bandwidth and bootstraps
6551       us into the directory more quickly.
6553   o New/improved config options:
6554     - Add new config option "ResolvConf" to let the server operator
6555       choose an alternate resolve.conf file when using eventdns.
6556     - Add an "EnforceDistinctSubnets" option to control our "exclude
6557       servers on the same /16" behavior. It's still on by default; this
6558       is mostly for people who want to operate private test networks with
6559       all the machines on the same subnet.
6560     - If one of our entry guards is on the ExcludeNodes list, or the
6561       directory authorities don't think it's a good guard, treat it as
6562       if it were unlisted: stop using it as a guard, and throw it off
6563       the guards list if it stays that way for a long time.
6564     - Allow directory authorities to be marked separately as authorities
6565       for the v1 directory protocol, the v2 directory protocol, and
6566       as hidden service directories, to make it easier to retire old
6567       authorities. V1 authorities should set "HSAuthoritativeDir 1"
6568       to continue being hidden service authorities too.
6569     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
6571   o Minor features, controller:
6572     - Fix CIRC controller events so that controllers can learn the
6573       identity digests of non-Named servers used in circuit paths.
6574     - Let controllers ask for more useful identifiers for servers. Instead
6575       of learning identity digests for un-Named servers and nicknames
6576       for Named servers, the new identifiers include digest, nickname,
6577       and indication of Named status. Off by default; see control-spec.txt
6578       for more information.
6579     - Add a "getinfo address" controller command so it can display Tor's
6580       best guess to the user.
6581     - New controller event to alert the controller when our server
6582       descriptor has changed.
6583     - Give more meaningful errors on controller authentication failure.
6585   o Minor features, other:
6586     - When asked to resolve a hostname, don't use non-exit servers unless
6587       requested to do so. This allows servers with broken DNS to be
6588       useful to the network.
6589     - Divide eventdns log messages into warn and info messages.
6590     - Reserve the nickname "Unnamed" for routers that can't pick
6591       a hostname: any router can call itself Unnamed; directory
6592       authorities will never allocate Unnamed to any particular router;
6593       clients won't believe that any router is the canonical Unnamed.
6594     - Only include function names in log messages for info/debug messages.
6595       For notice/warn/err, the content of the message should be clear on
6596       its own, and printing the function name only confuses users.
6597     - Avoid some false positives during reachability testing: don't try
6598       to test via a server that's on the same /24 as us.
6599     - If we fail to build a circuit to an intended enclave, and it's
6600       not mandatory that we use that enclave, stop wanting it.
6601     - When eventdns is enabled, allow multithreaded builds on NetBSD and
6602       OpenBSD. (We had previously disabled threads on these platforms
6603       because they didn't have working thread-safe resolver functions.)
6605   o Major bugfixes, anonymity/security:
6606     - If a client asked for a server by name, and there's a named server
6607       in our network-status but we don't have its descriptor yet, we
6608       could return an unnamed server instead.
6609     - Fix NetBSD bug that could allow someone to force uninitialized RAM
6610       to be sent to a server's DNS resolver. This only affects NetBSD
6611       and other platforms that do not bounds-check tolower().
6612     - Reject (most) attempts to use Tor circuits with length one. (If
6613       many people start using Tor as a one-hop proxy, exit nodes become
6614       a more attractive target for compromise.)
6615     - Just because your DirPort is open doesn't mean people should be
6616       able to remotely teach you about hidden service descriptors. Now
6617       only accept rendezvous posts if you've got HSAuthoritativeDir set.
6619   o Major bugfixes, other:
6620     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
6621     - When a client asks the server to resolve (not connect to)
6622       an address, and it has a cached answer, give them the cached answer.
6623       Previously, the server would give them no answer at all.
6624     - Allow really slow clients to not hang up five minutes into their
6625       directory downloads (suggested by Adam J. Richter).
6626     - We were building exactly the wrong circuits when we anticipated
6627       hidden service requirements, meaning Tor would have to build all
6628       its circuits on demand.
6629     - Avoid crashing when we mmap a router cache file of size 0.
6630     - When testing reachability of our DirPort, don't launch new
6631       tests when there's already one in progress -- unreachable
6632       servers were stacking up dozens of testing streams.
6634   o Minor bugfixes, correctness:
6635     - If we're a directory mirror and we ask for "all" network status
6636       documents, we would discard status documents from authorities
6637       we don't recognize.
6638     - Avoid a memory corruption bug when creating a hash table for
6639       the first time.
6640     - Avoid controller-triggered crash when misusing certain commands
6641       from a v0 controller on platforms that do not handle
6642       printf("%s",NULL) gracefully.
6643     - Don't crash when a controller sends a third argument to an
6644       "extendcircuit" request.
6645     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
6646       response; fix error code when "getinfo dir/status/" fails.
6647     - Avoid crash when telling controller stream-status and a stream
6648       is detached.
6649     - Patch from Adam Langley to fix assert() in eventdns.c.
6650     - Fix a debug log message in eventdns to say "X resolved to Y"
6651       instead of "X resolved to X".
6652     - Make eventdns give strings for DNS errors, not just error numbers.
6653     - Track unreachable entry guards correctly: don't conflate
6654       'unreachable by us right now' with 'listed as down by the directory
6655       authorities'. With the old code, if a guard was unreachable by
6656       us but listed as running, it would clog our guard list forever.
6657     - Behave correctly in case we ever have a network with more than
6658       2GB/s total advertised capacity.
6659     - Make TrackExitHosts case-insensitive, and fix the behavior of
6660       ".suffix" TrackExitHosts items to avoid matching in the middle of
6661       an address.
6662     - Finally fix the openssl warnings from newer gccs that believe that
6663       ignoring a return value is okay, but casting a return value and
6664       then ignoring it is a sign of madness.
6665     - Prevent the contrib/exitlist script from printing the same
6666       result more than once.
6667     - Patch from Steve Hildrey: Generate network status correctly on
6668       non-versioning dirservers.
6669     - Don't listen to the X-Your-Address-Is hint if you did the lookup
6670       via Tor; otherwise you'll think you're the exit node's IP address.
6672   o Minor bugfixes, performance:
6673     - Two small performance improvements on parsing descriptors.
6674     - Major performance improvement on inserting descriptors: change
6675       algorithm from O(n^2) to O(n).
6676     - Make the common memory allocation path faster on machines where
6677       malloc(0) returns a pointer.
6678     - Start remembering X-Your-Address-Is directory hints even if you're
6679       a client, so you can become a server more smoothly.
6680     - Avoid duplicate entries on MyFamily line in server descriptor.
6682   o Packaging, features:
6683     - Remove architecture from OS X builds. The official builds are
6684       now universal binaries.
6685     - The Debian package now uses --verify-config when (re)starting,
6686       to distinguish configuration errors from other errors.
6687     - Update RPMs to require libevent 1.1b.
6689   o Packaging, bugfixes:
6690     - Patches so Tor builds with MinGW on Windows.
6691     - Patches so Tor might run on Cygwin again.
6692     - Resume building on non-gcc compilers and ancient gcc. Resume
6693       building with the -O0 compile flag. Resume building cleanly on
6694       Debian woody.
6695     - Run correctly on OS X platforms with case-sensitive filesystems.
6696     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
6697     - Add autoconf checks so Tor can build on Solaris x86 again.
6699   o Documentation
6700     - Documented (and renamed) ServerDNSSearchDomains and
6701       ServerDNSResolvConfFile options.
6702     - Be clearer that the *ListenAddress directives can be repeated
6703       multiple times.
6706 Changes in version 0.1.1.24 - 2006-09-29
6707   o Major bugfixes:
6708     - Allow really slow clients to not hang up five minutes into their
6709       directory downloads (suggested by Adam J. Richter).
6710     - Fix major performance regression from 0.1.0.x: instead of checking
6711       whether we have enough directory information every time we want to
6712       do something, only check when the directory information has changed.
6713       This should improve client CPU usage by 25-50%.
6714     - Don't crash if, after a server has been running for a while,
6715       it can't resolve its hostname.
6717   o Minor bugfixes:
6718     - Allow Tor to start when RunAsDaemon is set but no logs are set.
6719     - Don't crash when the controller receives a third argument to an
6720       "extendcircuit" request.
6721     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
6722       response; fix error code when "getinfo dir/status/" fails.
6723     - Fix configure.in to not produce broken configure files with
6724       more recent versions of autoconf. Thanks to Clint for his auto*
6725       voodoo.
6726     - Fix security bug on NetBSD that could allow someone to force
6727       uninitialized RAM to be sent to a server's DNS resolver. This
6728       only affects NetBSD and other platforms that do not bounds-check
6729       tolower().
6730     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
6731       methods: these are known to be buggy.
6732     - If we're a directory mirror and we ask for "all" network status
6733       documents, we would discard status documents from authorities
6734       we don't recognize.
6737 Changes in version 0.1.2.1-alpha - 2006-08-27
6738   o Major features:
6739     - Add "eventdns" async dns library from Adam Langley, tweaked to
6740       build on OSX and Windows. Only enabled if you pass the
6741       --enable-eventdns argument to configure.
6742     - Allow servers with no hostname or IP address to learn their
6743       IP address by asking the directory authorities. This code only
6744       kicks in when you would normally have exited with a "no address"
6745       error. Nothing's authenticated, so use with care.
6746     - Rather than waiting a fixed amount of time between retrying
6747       application connections, we wait only 5 seconds for the first,
6748       10 seconds for the second, and 15 seconds for each retry after
6749       that. Hopefully this will improve the expected user experience.
6750     - Patch from Tup to add support for transparent AP connections:
6751       this basically bundles the functionality of trans-proxy-tor
6752       into the Tor mainline. Now hosts with compliant pf/netfilter
6753       implementations can redirect TCP connections straight to Tor
6754       without diverting through SOCKS. Needs docs.
6755     - Busy directory servers save lots of memory by spooling server
6756       descriptors, v1 directories, and v2 networkstatus docs to buffers
6757       as needed rather than en masse. Also mmap the cached-routers
6758       files, so we don't need to keep the whole thing in memory too.
6759     - Automatically avoid picking more than one node from the same
6760       /16 network when constructing a circuit.
6761     - Revise and clean up the torrc.sample that we ship with; add
6762       a section for BandwidthRate and BandwidthBurst.
6764   o Minor features:
6765     - Split circuit_t into origin_circuit_t and or_circuit_t, and
6766       split connection_t into edge, or, dir, control, and base structs.
6767       These will save quite a bit of memory on busy servers, and they'll
6768       also help us track down bugs in the code and bugs in the spec.
6769     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
6770       or later. Log when we are doing this, so we can diagnose it when
6771       it fails. (Also, recommend libevent 1.1b for kqueue and
6772       win32 methods; deprecate libevent 1.0b harder; make libevent
6773       recommendation system saner.)
6774     - Start being able to build universal binaries on OS X (thanks
6775       to Phobos).
6776     - Export the default exit policy via the control port, so controllers
6777       don't need to guess what it is / will be later.
6778     - Add a man page entry for ProtocolWarnings.
6779     - Add TestVia config option to the man page.
6780     - Remove even more protocol-related warnings from Tor server logs,
6781       such as bad TLS handshakes and malformed begin cells.
6782     - Stop fetching descriptors if you're not a dir mirror and you
6783       haven't tried to establish any circuits lately. [This currently
6784       causes some dangerous behavior, because when you start up again
6785       you'll use your ancient server descriptors.]
6786     - New DirPort behavior: if you have your dirport set, you download
6787       descriptors aggressively like a directory mirror, whether or not
6788       your ORPort is set.
6789     - Get rid of the router_retry_connections notion. Now routers
6790       no longer try to rebuild long-term connections to directory
6791       authorities, and directory authorities no longer try to rebuild
6792       long-term connections to all servers. We still don't hang up
6793       connections in these two cases though -- we need to look at it
6794       more carefully to avoid flapping, and we likely need to wait til
6795       0.1.1.x is obsolete.
6796     - Drop compatibility with obsolete Tors that permit create cells
6797       to have the wrong circ_id_type.
6798     - Re-enable per-connection rate limiting. Get rid of the "OP
6799       bandwidth" concept. Lay groundwork for "bandwidth classes" --
6800       separate global buckets that apply depending on what sort of conn
6801       it is.
6802     - Start publishing one minute or so after we find our ORPort
6803       to be reachable. This will help reduce the number of descriptors
6804       we have for ourselves floating around, since it's quite likely
6805       other things (e.g. DirPort) will change during that minute too.
6806     - Fork the v1 directory protocol into its own spec document,
6807       and mark dir-spec.txt as the currently correct (v2) spec.
6809   o Major bugfixes:
6810     - When we find our DirPort to be reachable, publish a new descriptor
6811       so we'll tell the world (reported by pnx).
6812     - Publish a new descriptor after we hup/reload. This is important
6813       if our config has changed such that we'll want to start advertising
6814       our DirPort now, etc.
6815     - Allow Tor to start when RunAsDaemon is set but no logs are set.
6816     - When we have a state file we cannot parse, tell the user and
6817       move it aside. Now we avoid situations where the user starts
6818       Tor in 1904, Tor writes a state file with that timestamp in it,
6819       the user fixes her clock, and Tor refuses to start.
6820     - Fix configure.in to not produce broken configure files with
6821       more recent versions of autoconf. Thanks to Clint for his auto*
6822       voodoo.
6823     - "tor --verify-config" now exits with -1(255) or 0 depending on
6824       whether the config options are bad or good.
6825     - Resolve bug 321 when using dnsworkers: append a period to every
6826       address we resolve at the exit node, so that we do not accidentally
6827       pick up local addresses, and so that failing searches are retried
6828       in the resolver search domains. (This is already solved for
6829       eventdns.) (This breaks Blossom servers for now.)
6830     - If we are using an exit enclave and we can't connect, e.g. because
6831       its webserver is misconfigured to not listen on localhost, then
6832       back off and try connecting from somewhere else before we fail.
6834   o Minor bugfixes:
6835     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
6836     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
6837     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
6838       when the IP address is mapped through MapAddress to a hostname.
6839     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
6840       useless IPv6 DNS resolves.
6841     - Patch suggested by Karsten Loesing: respond to SIGNAL command
6842       before we execute the signal, in case the signal shuts us down.
6843     - Clean up AllowInvalidNodes man page entry.
6844     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
6845     - Add more asserts to track down an assert error on a windows Tor
6846       server with connection_add being called with socket == -1.
6847     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
6848     - Fix misleading log messages: an entry guard that is "unlisted",
6849       as well as not known to be "down" (because we've never heard
6850       of it), is not therefore "up".
6851     - Remove code to special-case "-cvs" ending, since it has not
6852       actually mattered since 0.0.9.
6853     - Make our socks5 handling more robust to broken socks clients:
6854       throw out everything waiting on the buffer in between socks
6855       handshake phases, since they can't possibly (so the theory
6856       goes) have predicted what we plan to respond to them.
6859 Changes in version 0.1.1.23 - 2006-07-30
6860   o Major bugfixes:
6861     - Fast Tor servers, especially exit nodes, were triggering asserts
6862       due to a bug in handling the list of pending DNS resolves. Some
6863       bugs still remain here; we're hunting them.
6864     - Entry guards could crash clients by sending unexpected input.
6865     - More fixes on reachability testing: if you find yourself reachable,
6866       then don't ever make any client requests (so you stop predicting
6867       circuits), then hup or have your clock jump, then later your IP
6868       changes, you won't think circuits are working, so you won't try to
6869       test reachability, so you won't publish.
6871   o Minor bugfixes:
6872     - Avoid a crash if the controller does a resetconf firewallports
6873       and then a setconf fascistfirewall=1.
6874     - Avoid an integer underflow when the dir authority decides whether
6875       a router is stable: we might wrongly label it stable, and compute
6876       a slightly wrong median stability, when a descriptor is published
6877       later than now.
6878     - Fix a place where we might trigger an assert if we can't build our
6879       own server descriptor yet.
6882 Changes in version 0.1.1.22 - 2006-07-05
6883   o Major bugfixes:
6884     - Fix a big bug that was causing servers to not find themselves
6885       reachable if they changed IP addresses. Since only 0.1.1.22+
6886       servers can do reachability testing correctly, now we automatically
6887       make sure to test via one of these.
6888     - Fix to allow clients and mirrors to learn directory info from
6889       descriptor downloads that get cut off partway through.
6890     - Directory authorities had a bug in deciding if a newly published
6891       descriptor was novel enough to make everybody want a copy -- a few
6892       servers seem to be publishing new descriptors many times a minute.
6893   o Minor bugfixes:
6894     - Fix a rare bug that was causing some servers to complain about
6895       "closing wedged cpuworkers" and skip some circuit create requests.
6896     - Make the Exit flag in directory status documents actually work.
6899 Changes in version 0.1.1.21 - 2006-06-10
6900   o Crash and assert fixes from 0.1.1.20:
6901     - Fix a rare crash on Tor servers that have enabled hibernation.
6902     - Fix a seg fault on startup for Tor networks that use only one
6903       directory authority.
6904     - Fix an assert from a race condition that occurs on Tor servers
6905       while exiting, where various threads are trying to log that they're
6906       exiting, and delete the logs, at the same time.
6907     - Make our unit tests pass again on certain obscure platforms.
6909   o Other fixes:
6910     - Add support for building SUSE RPM packages.
6911     - Speed up initial bootstrapping for clients: if we are making our
6912       first ever connection to any entry guard, then don't mark it down
6913       right after that.
6914     - When only one Tor server in the network is labelled as a guard,
6915       and we've already picked him, we would cycle endlessly picking him
6916       again, being unhappy about it, etc. Now we specifically exclude
6917       current guards when picking a new guard.
6918     - Servers send create cells more reliably after the TLS connection
6919       is established: we were sometimes forgetting to send half of them
6920       when we had more than one pending.
6921     - If we get a create cell that asks us to extend somewhere, but the
6922       Tor server there doesn't match the expected digest, we now send
6923       a destroy cell back, rather than silently doing nothing.
6924     - Make options->RedirectExit work again.
6925     - Make cookie authentication for the controller work again.
6926     - Stop being picky about unusual characters in the arguments to
6927       mapaddress. It's none of our business.
6928     - Add a new config option "TestVia" that lets you specify preferred
6929       middle hops to use for test circuits. Perhaps this will let me
6930       debug the reachability problems better.
6932   o Log / documentation fixes:
6933     - If we're a server and some peer has a broken TLS certificate, don't
6934       log about it unless ProtocolWarnings is set, i.e., we want to hear
6935       about protocol violations by others.
6936     - Fix spelling of VirtualAddrNetwork in man page.
6937     - Add a better explanation at the top of the autogenerated torrc file
6938       about what happened to our old torrc.
6941 Changes in version 0.1.1.20 - 2006-05-23
6942   o Bugfixes:
6943     - Downgrade a log severity where servers complain that they're
6944       invalid.
6945     - Avoid a compile warning on FreeBSD.
6946     - Remove string size limit on NEWDESC messages; solve bug 291.
6947     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
6948       more thoroughly when we're running on windows.
6951 Changes in version 0.1.1.19-rc - 2006-05-03
6952   o Minor bugs:
6953     - Regenerate our local descriptor if it's dirty and we try to use
6954       it locally (e.g. if it changes during reachability detection).
6955     - If we setconf our ORPort to 0, we continued to listen on the
6956       old ORPort and receive connections.
6957     - Avoid a second warning about machine/limits.h on Debian
6958       GNU/kFreeBSD.
6959     - Be willing to add our own routerinfo into the routerlist.
6960       Now authorities will include themselves in their directories
6961       and network-statuses.
6962     - Stop trying to upload rendezvous descriptors to every
6963       directory authority: only try the v1 authorities.
6964     - Servers no longer complain when they think they're not
6965       registered with the directory authorities. There were too many
6966       false positives.
6967     - Backport dist-rpm changes so rpms can be built without errors.
6969   o Features:
6970     - Implement an option, VirtualAddrMask, to set which addresses
6971       get handed out in response to mapaddress requests. This works
6972       around a bug in tsocks where 127.0.0.0/8 is never socksified.
6975 Changes in version 0.1.1.18-rc - 2006-04-10
6976   o Major fixes:
6977     - Work harder to download live network-statuses from all the
6978       directory authorities we know about. Improve the threshold
6979       decision logic so we're more robust to edge cases.
6980     - When fetching rendezvous descriptors, we were willing to ask
6981       v2 authorities too, which would always return 404.
6983   o Minor fixes:
6984     - Stop listing down or invalid nodes in the v1 directory. This will
6985       reduce its bulk by about 1/3, and reduce load on directory
6986       mirrors.
6987     - When deciding whether a router is Fast or Guard-worthy, consider
6988       his advertised BandwidthRate and not just the BandwidthCapacity.
6989     - No longer ship INSTALL and README files -- they are useless now.
6990     - Force rpmbuild to behave and honor target_cpu.
6991     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
6992     - Start to include translated versions of the tor-doc-*.html
6993       files, along with the screenshots. Still needs more work.
6994     - Start sending back 512 and 451 errors if mapaddress fails,
6995       rather than not sending anything back at all.
6996     - When we fail to bind or listen on an incoming or outgoing
6997       socket, we should close it before failing. otherwise we just
6998       leak it. (thanks to weasel for finding.)
6999     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
7000       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
7001     - Make NoPublish (even though deprecated) work again.
7002     - Fix a minor security flaw where a versioning auth dirserver
7003       could list a recommended version many times in a row to make
7004       clients more convinced that it's recommended.
7005     - Fix crash bug if there are two unregistered servers running
7006       with the same nickname, one of them is down, and you ask for
7007       them by nickname in your EntryNodes or ExitNodes. Also, try
7008       to pick the one that's running rather than an arbitrary one.
7009     - Fix an infinite loop we could hit if we go offline for too long.
7010     - Complain when we hit WSAENOBUFS on recv() or write() too.
7011       Perhaps this will help us hunt the bug.
7012     - If you're not a versioning dirserver, don't put the string
7013       "client-versions \nserver-versions \n" in your network-status.
7014     - Lower the minimum required number of file descriptors to 1000,
7015       so we can have some overhead for Valgrind on Linux, where the
7016       default ulimit -n is 1024.
7018   o New features:
7019     - Add tor.dizum.com as the fifth authoritative directory server.
7020     - Add a new config option FetchUselessDescriptors, off by default,
7021       for when you plan to run "exitlist" on your client and you want
7022       to know about even the non-running descriptors.
7025 Changes in version 0.1.1.17-rc - 2006-03-28
7026   o Major fixes:
7027     - Clients and servers since 0.1.1.10-alpha have been expiring
7028       connections whenever they are idle for 5 minutes and they *do*
7029       have circuits on them. Oops. With this new version, clients will
7030       discard their previous entry guard choices and avoid choosing
7031       entry guards running these flawed versions.
7032     - Fix memory leak when uncompressing concatenated zlib streams. This
7033       was causing substantial leaks over time on Tor servers.
7034     - The v1 directory was including servers as much as 48 hours old,
7035       because that's how the new routerlist->routers works. Now only
7036       include them if they're 20 hours old or less.
7038   o Minor fixes:
7039     - Resume building on irix64, netbsd 2.0, etc.
7040     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
7041       "-Wall -g -O2".
7042     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
7043       and it is confusing some users.
7044     - Mirrors stop caching the v1 directory so often.
7045     - Make the max number of old descriptors that a cache will hold
7046       rise with the number of directory authorities, so we can scale.
7047     - Change our win32 uname() hack to be more forgiving about what
7048       win32 versions it thinks it's found.
7050   o New features:
7051     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
7052       server.
7053     - When the controller's *setconf commands fail, collect an error
7054       message in a string and hand it back to the controller.
7055     - Make the v2 dir's "Fast" flag based on relative capacity, just
7056       like "Stable" is based on median uptime. Name everything in the
7057       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
7058     - Log server fingerprint on startup, so new server operators don't
7059       have to go hunting around their filesystem for it.
7060     - Return a robots.txt on our dirport to discourage google indexing.
7061     - Let the controller ask for GETINFO dir/status/foo so it can ask
7062       directly rather than connecting to the dir port. Only works when
7063       dirport is set for now.
7065   o New config options rather than constants in the code:
7066     - SocksTimeout: How long do we let a socks connection wait
7067       unattached before we fail it?
7068     - CircuitBuildTimeout: Cull non-open circuits that were born
7069       at least this many seconds ago.
7070     - CircuitIdleTimeout: Cull open clean circuits that were born
7071       at least this many seconds ago.
7074 Changes in version 0.1.1.16-rc - 2006-03-18
7075   o Bugfixes on 0.1.1.15-rc:
7076     - Fix assert when the controller asks to attachstream a connect-wait
7077       or resolve-wait stream.
7078     - Now do address rewriting when the controller asks us to attach
7079       to a particular circuit too. This will let Blossom specify
7080       "moria2.exit" without having to learn what moria2's IP address is.
7081     - Make the "tor --verify-config" command-line work again, so people
7082       can automatically check if their torrc will parse.
7083     - Authoritative dirservers no longer require an open connection from
7084       a server to consider him "reachable". We need this change because
7085       when we add new auth dirservers, old servers won't know not to
7086       hang up on them.
7087     - Let Tor build on Sun CC again.
7088     - Fix an off-by-one buffer size in dirserv.c that magically never
7089       hit our three authorities but broke sjmurdoch's own tor network.
7090     - If we as a directory mirror don't know of any v1 directory
7091       authorities, then don't try to cache any v1 directories.
7092     - Stop warning about unknown servers in our family when they are
7093       given as hex digests.
7094     - Stop complaining as quickly to the server operator that he
7095       hasn't registered his nickname/key binding.
7096     - Various cleanups so we can add new V2 Auth Dirservers.
7097     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
7098       reflect the updated flags in our v2 dir protocol.
7099     - Resume allowing non-printable characters for exit streams (both
7100       for connecting and for resolving). Now we tolerate applications
7101       that don't follow the RFCs. But continue to block malformed names
7102       at the socks side.
7104   o Bugfixes on 0.1.0.x:
7105     - Fix assert bug in close_logs(): when we close and delete logs,
7106       remove them all from the global "logfiles" list.
7107     - Fix minor integer overflow in calculating when we expect to use up
7108       our bandwidth allocation before hibernating.
7109     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
7110       there are multiple SSLs installed with different versions.
7111     - When we try to be a server and Address is not explicitly set and
7112       our hostname resolves to a private IP address, try to use an
7113       interface address if it has a public address. Now Windows machines
7114       that think of themselves as localhost can work by default.
7116   o New features:
7117     - Let the controller ask for GETINFO dir/server/foo so it can ask
7118       directly rather than connecting to the dir port.
7119     - Let the controller tell us about certain router descriptors
7120       that it doesn't want Tor to use in circuits. Implement
7121       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
7122     - New config option SafeSocks to reject all application connections
7123       using unsafe socks protocols. Defaults to off.
7126 Changes in version 0.1.1.15-rc - 2006-03-11
7127   o Bugfixes and cleanups:
7128     - When we're printing strings from the network, don't try to print
7129       non-printable characters. This protects us against shell escape
7130       sequence exploits, and also against attacks to fool humans into
7131       misreading their logs.
7132     - Fix a bug where Tor would fail to establish any connections if you
7133       left it off for 24 hours and then started it: we were happy with
7134       the obsolete network statuses, but they all referred to router
7135       descriptors that were too old to fetch, so we ended up with no
7136       valid router descriptors.
7137     - Fix a seg fault in the controller's "getinfo orconn-status"
7138       command while listing status on incoming handshaking connections.
7139       Introduce a status name "NEW" for these connections.
7140     - If we get a linelist or linelist_s config option from the torrc
7141       (e.g. ExitPolicy) and it has no value, warn and skip rather than
7142       silently resetting it to its default.
7143     - Don't abandon entry guards until they've been down or gone for
7144       a whole month.
7145     - Cleaner and quieter log messages.
7147   o New features:
7148     - New controller signal NEWNYM that makes new application requests
7149       use clean circuits.
7150     - Add a new circuit purpose 'controller' to let the controller ask
7151       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
7152       controller command to let you specify the purpose if you're
7153       starting a new circuit.  Add a new SETCIRCUITPURPOSE controller
7154       command to let you change a circuit's purpose after it's been
7155       created.
7156     - Accept "private:*" in routerdesc exit policies; not generated yet
7157       because older Tors do not understand it.
7158     - Add BSD-style contributed startup script "rc.subr" from Peter
7159       Thoenen.
7162 Changes in version 0.1.1.14-alpha - 2006-02-20
7163   o Bugfixes on 0.1.1.x:
7164     - Don't die if we ask for a stdout or stderr log (even implicitly)
7165       and we're set to RunAsDaemon -- just warn.
7166     - We still had a few bugs in the OR connection rotation code that
7167       caused directory servers to slowly aggregate connections to other
7168       fast Tor servers. This time for sure!
7169     - Make log entries on Win32 include the name of the function again.
7170     - We were treating a pair of exit policies if they were equal even
7171       if one said accept and the other said reject -- causing us to
7172       not always publish a new descriptor since we thought nothing
7173       had changed.
7174     - Retry pending server downloads as well as pending networkstatus
7175       downloads when we unexpectedly get a socks request.
7176     - We were ignoring the IS_FAST flag in the directory status,
7177       meaning we were willing to pick trivial-bandwidth nodes for "fast"
7178       connections.
7179     - If the controller's SAVECONF command fails (e.g. due to file
7180       permissions), let the controller know that it failed.
7182   o Features:
7183     - If we're trying to be a Tor server and running Windows 95/98/ME
7184       as a server, explain that we'll likely crash.
7185     - When we're a server, a client asks for an old-style directory,
7186       and our write bucket is empty, don't give it to him. This way
7187       small servers can continue to serve the directory *sometimes*,
7188       without getting overloaded.
7189     - Compress exit policies even more -- look for duplicate lines
7190       and remove them.
7191     - Clients now honor the "guard" flag in the router status when
7192       picking entry guards, rather than looking at is_fast or is_stable.
7193     - Retain unrecognized lines in $DATADIR/state file, so that we can
7194       be forward-compatible.
7195     - Generate 18.0.0.0/8 address policy format in descs when we can;
7196       warn when the mask is not reducible to a bit-prefix.
7197     - Let the user set ControlListenAddress in the torrc.  This can be
7198       dangerous, but there are some cases (like a secured LAN) where it
7199       makes sense.
7200     - Split ReachableAddresses into ReachableDirAddresses and
7201       ReachableORAddresses, so we can restrict Dir conns to port 80
7202       and OR conns to port 443.
7203     - Now we can target arch and OS in rpm builds (contributed by
7204       Phobos). Also make the resulting dist-rpm filename match the
7205       target arch.
7206     - New config options to help controllers: FetchServerDescriptors
7207       and FetchHidServDescriptors for whether to fetch server
7208       info and hidserv info or let the controller do it, and
7209       PublishServerDescriptor and PublishHidServDescriptors.
7210     - Also let the controller set the __AllDirActionsPrivate config
7211       option if you want all directory fetches/publishes to happen via
7212       Tor (it assumes your controller bootstraps your circuits).
7215 Changes in version 0.1.0.17 - 2006-02-17
7216   o Crash bugfixes on 0.1.0.x:
7217     - When servers with a non-zero DirPort came out of hibernation,
7218       sometimes they would trigger an assert.
7220   o Other important bugfixes:
7221     - On platforms that don't have getrlimit (like Windows), we were
7222       artificially constraining ourselves to a max of 1024
7223       connections. Now just assume that we can handle as many as 15000
7224       connections. Hopefully this won't cause other problems.
7226   o Backported features:
7227     - When we're a server, a client asks for an old-style directory,
7228       and our write bucket is empty, don't give it to him. This way
7229       small servers can continue to serve the directory *sometimes*,
7230       without getting overloaded.
7231     - Whenever you get a 503 in response to a directory fetch, try
7232       once more. This will become important once servers start sending
7233       503's whenever they feel busy.
7234     - Fetch a new directory every 120 minutes, not every 40 minutes.
7235       Now that we have hundreds of thousands of users running the old
7236       directory algorithm, it's starting to hurt a lot.
7237     - Bump up the period for forcing a hidden service descriptor upload
7238       from 20 minutes to 1 hour.
7241 Changes in version 0.1.1.13-alpha - 2006-02-09
7242   o Crashes in 0.1.1.x:
7243     - When you tried to setconf ORPort via the controller, Tor would
7244       crash. So people using TorCP to become a server were sad.
7245     - Solve (I hope) the stack-smashing bug that we were seeing on fast
7246       servers. The problem appears to be something do with OpenSSL's
7247       random number generation, or how we call it, or something. Let me
7248       know if the crashes continue.
7249     - Turn crypto hardware acceleration off by default, until we find
7250       somebody smart who can test it for us. (It appears to produce
7251       seg faults in at least some cases.)
7252     - Fix a rare assert error when we've tried all intro points for
7253       a hidden service and we try fetching the service descriptor again:
7254       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
7256   o Major fixes:
7257     - Fix a major load balance bug: we were round-robining in 16 KB
7258       chunks, and servers with bandwidthrate of 20 KB, while downloading
7259       a 600 KB directory, would starve their other connections. Now we
7260       try to be a bit more fair.
7261     - Dir authorities and mirrors were never expiring the newest
7262       descriptor for each server, causing memory and directory bloat.
7263     - Fix memory-bloating and connection-bloating bug on servers: We
7264       were never closing any connection that had ever had a circuit on
7265       it, because we were checking conn->n_circuits == 0, yet we had a
7266       bug that let it go negative.
7267     - Make Tor work using squid as your http proxy again -- squid
7268       returns an error if you ask for a URL that's too long, and it uses
7269       a really generic error message. Plus, many people are behind a
7270       transparent squid so they don't even realize it.
7271     - On platforms that don't have getrlimit (like Windows), we were
7272       artificially constraining ourselves to a max of 1024
7273       connections. Now just assume that we can handle as many as 15000
7274       connections. Hopefully this won't cause other problems.
7275     - Add a new config option ExitPolicyRejectPrivate which defaults to
7276       1. This means all exit policies will begin with rejecting private
7277       addresses, unless the server operator explicitly turns it off.
7279   o Major features:
7280     - Clients no longer download descriptors for non-running
7281       descriptors.
7282     - Before we add new directory authorities, we should make it
7283       clear that only v1 authorities should receive/publish hidden
7284       service descriptors.
7286   o Minor features:
7287     - As soon as we've fetched some more directory info, immediately
7288       try to download more server descriptors. This way we don't have
7289       a 10 second pause during initial bootstrapping.
7290     - Remove even more loud log messages that the server operator can't
7291       do anything about.
7292     - When we're running an obsolete or un-recommended version, make
7293       the log message more clear about what the problem is and what
7294       versions *are* still recommended.
7295     - Provide a more useful warn message when our onion queue gets full:
7296       the CPU is too slow or the exit policy is too liberal.
7297     - Don't warn when we receive a 503 from a dirserver/cache -- this
7298       will pave the way for them being able to refuse if they're busy.
7299     - When we fail to bind a listener, try to provide a more useful
7300       log message: e.g., "Is Tor already running?"
7301     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
7302       Goldberg can prove things about our handshake protocol more
7303       easily.
7304     - MaxConn has been obsolete for a while now. Document the ConnLimit
7305       config option, which is a *minimum* number of file descriptors
7306       that must be available else Tor refuses to start.
7307     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
7308       if you log to syslog and want something other than LOG_DAEMON.
7309     - Make dirservers generate a separate "guard" flag to mean,
7310       "would make a good entry guard". Make clients parse it and vote
7311       on it. Not used by clients yet.
7312     - Implement --with-libevent-dir option to ./configure. Also, improve
7313       search techniques to find libevent, and use those for openssl too.
7314     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
7315     - Only start testing reachability once we've established a
7316       circuit. This will make startup on dirservers less noisy.
7317     - Don't try to upload hidden service descriptors until we have
7318       established a circuit.
7319     - Fix the controller's "attachstream 0" command to treat conn like
7320       it just connected, doing address remapping, handling .exit and
7321       .onion idioms, and so on. Now we're more uniform in making sure
7322       that the controller hears about new and closing connections.
7325 Changes in version 0.1.1.12-alpha - 2006-01-11
7326   o Bugfixes on 0.1.1.x:
7327     - The fix to close duplicate server connections was closing all
7328       Tor client connections if they didn't establish a circuit
7329       quickly enough. Oops.
7330     - Fix minor memory issue (double-free) that happened on exit.
7332   o Bugfixes on 0.1.0.x:
7333     - Tor didn't warn when it failed to open a log file.
7336 Changes in version 0.1.1.11-alpha - 2006-01-10
7337   o Crashes in 0.1.1.x:
7338     - Include all the assert/crash fixes from 0.1.0.16.
7339     - If you start Tor and then quit very quickly, there were some
7340       races that tried to free things that weren't allocated yet.
7341     - Fix a rare memory stomp if you're running hidden services.
7342     - Fix segfault when specifying DirServer in config without nickname.
7343     - Fix a seg fault when you finish connecting to a server but at
7344       that moment you dump his server descriptor.
7345     - Extendcircuit and Attachstream controller commands would
7346       assert/crash if you don't give them enough arguments.
7347     - Fix an assert error when we're out of space in the connection_list
7348       and we try to post a hidden service descriptor (reported by weasel).
7349     - If you specify a relative torrc path and you set RunAsDaemon in
7350       your torrc, then it chdir()'s to the new directory. If you HUP,
7351       it tries to load the new torrc location, fails, and exits.
7352       The fix: no longer allow a relative path to torrc using -f.
7354   o Major features:
7355     - Implement "entry guards": automatically choose a handful of entry
7356       nodes and stick with them for all circuits. Only pick new guards
7357       when the ones you have are unsuitable, and if the old guards
7358       become suitable again, switch back. This will increase security
7359       dramatically against certain end-point attacks. The EntryNodes
7360       config option now provides some hints about which entry guards you
7361       want to use most; and StrictEntryNodes means to only use those.
7362     - New directory logic: download by descriptor digest, not by
7363       fingerprint. Caches try to download all listed digests from
7364       authorities; clients try to download "best" digests from caches.
7365       This avoids partitioning and isolating attacks better.
7366     - Make the "stable" router flag in network-status be the median of
7367       the uptimes of running valid servers, and make clients pay
7368       attention to the network-status flags. Thus the cutoff adapts
7369       to the stability of the network as a whole, making IRC, IM, etc
7370       connections more reliable.
7372   o Major fixes:
7373     - Tor servers with dynamic IP addresses were needing to wait 18
7374       hours before they could start doing reachability testing using
7375       the new IP address and ports. This is because they were using
7376       the internal descriptor to learn what to test, yet they were only
7377       rebuilding the descriptor once they decided they were reachable.
7378     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
7379       to download certain server descriptors, throw them away, and then
7380       fetch them again after 30 minutes. Now mirrors throw away these
7381       server descriptors so clients can't get them.
7382     - We were leaving duplicate connections to other ORs open for a week,
7383       rather than closing them once we detect a duplicate. This only
7384       really affected authdirservers, but it affected them a lot.
7385     - Spread the authdirservers' reachability testing over the entire
7386       testing interval, so we don't try to do 500 TLS's at once every
7387       20 minutes.
7389   o Minor fixes:
7390     - If the network is down, and we try to connect to a conn because
7391       we have a circuit in mind, and we timeout (30 seconds) because the
7392       network never answers, we were expiring the circuit, but we weren't
7393       obsoleting the connection or telling the entry_guards functions.
7394     - Some Tor servers process billions of cells per day. These statistics
7395       need to be uint64_t's.
7396     - Check for integer overflows in more places, when adding elements
7397       to smartlists. This could possibly prevent a buffer overflow
7398       on malicious huge inputs. I don't see any, but I haven't looked
7399       carefully.
7400     - ReachableAddresses kept growing new "reject *:*" lines on every
7401       setconf/reload.
7402     - When you "setconf log" via the controller, it should remove all
7403       logs. We were automatically adding back in a "log notice stdout".
7404     - Newly bootstrapped Tor networks couldn't establish hidden service
7405       circuits until they had nodes with high uptime. Be more tolerant.
7406     - We were marking servers down when they could not answer every piece
7407       of the directory request we sent them. This was far too harsh.
7408     - Fix the torify (tsocks) config file to not use Tor for localhost
7409       connections.
7410     - Directory authorities now go to the proper authority when asking for
7411       a networkstatus, even when they want a compressed one.
7412     - Fix a harmless bug that was causing Tor servers to log
7413       "Got an end because of misc error, but we're not an AP. Closing."
7414     - Authorities were treating their own descriptor changes as cosmetic,
7415       meaning the descriptor available in the network-status and the
7416       descriptor that clients downloaded were different.
7417     - The OS X installer was adding a symlink for tor_resolve but
7418       the binary was called tor-resolve (reported by Thomas Hardly).
7419     - Workaround a problem with some http proxies where they refuse GET
7420       requests that specify "Content-Length: 0" (reported by Adrian).
7421     - Fix wrong log message when you add a "HiddenServiceNodes" config
7422       line without any HiddenServiceDir line (reported by Chris Thomas).
7424   o Minor features:
7425     - Write the TorVersion into the state file so we have a prayer of
7426       keeping forward and backward compatibility.
7427     - Revive the FascistFirewall config option rather than eliminating it:
7428       now it's a synonym for ReachableAddresses *:80,*:443.
7429     - Clients choose directory servers from the network status lists,
7430       not from their internal list of router descriptors. Now they can
7431       go to caches directly rather than needing to go to authorities
7432       to bootstrap.
7433     - Directory authorities ignore router descriptors that have only
7434       cosmetic differences: do this for 0.1.0.x servers now too.
7435     - Add a new flag to network-status indicating whether the server
7436       can answer v2 directory requests too.
7437     - Authdirs now stop whining so loudly about bad descriptors that
7438       they fetch from other dirservers. So when there's a log complaint,
7439       it's for sure from a freshly uploaded descriptor.
7440     - Reduce memory requirements in our structs by changing the order
7441       of fields.
7442     - There used to be two ways to specify your listening ports in a
7443       server descriptor: on the "router" line and with a separate "ports"
7444       line. Remove support for the "ports" line.
7445     - New config option "AuthDirRejectUnlisted" for auth dirservers as
7446       a panic button: if we get flooded with unusable servers we can
7447       revert to only listing servers in the approved-routers file.
7448     - Auth dir servers can now mark a fingerprint as "!reject" or
7449       "!invalid" in the approved-routers file (as its nickname), to
7450       refuse descriptors outright or include them but marked as invalid.
7451     - Servers store bandwidth history across restarts/crashes.
7452     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
7453       get a better idea of why their circuits failed. Not used yet.
7454     - Directory mirrors now cache up to 16 unrecognized network-status
7455       docs. Now we can add new authdirservers and they'll be cached too.
7456     - When picking a random directory, prefer non-authorities if any
7457       are known.
7458     - New controller option "getinfo desc/all-recent" to fetch the
7459       latest server descriptor for every router that Tor knows about.
7462 Changes in version 0.1.0.16 - 2006-01-02
7463   o Crash bugfixes on 0.1.0.x:
7464     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
7465       corrupting the heap, losing FDs, or crashing when we need to resize
7466       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
7467     - It turns out sparc64 platforms crash on unaligned memory access
7468       too -- so detect and avoid this.
7469     - Handle truncated compressed data correctly (by detecting it and
7470       giving an error).
7471     - Fix possible-but-unlikely free(NULL) in control.c.
7472     - When we were closing connections, there was a rare case that
7473       stomped on memory, triggering seg faults and asserts.
7474     - Avoid potential infinite recursion when building a descriptor. (We
7475       don't know that it ever happened, but better to fix it anyway.)
7476     - We were neglecting to unlink marked circuits from soon-to-close OR
7477       connections, which caused some rare scribbling on freed memory.
7478     - Fix a memory stomping race bug when closing the joining point of two
7479       rendezvous circuits.
7480     - Fix an assert in time parsing found by Steven Murdoch.
7482   o Other bugfixes on 0.1.0.x:
7483     - When we're doing reachability testing, provide more useful log
7484       messages so the operator knows what to expect.
7485     - Do not check whether DirPort is reachable when we are suppressing
7486       advertising it because of hibernation.
7487     - When building with -static or on Solaris, we sometimes needed -ldl.
7488     - When we're deciding whether a stream has enough circuits around
7489       that can handle it, count the freshly dirty ones and not the ones
7490       that are so dirty they won't be able to handle it.
7491     - When we're expiring old circuits, we had a logic error that caused
7492       us to close new rendezvous circuits rather than old ones.
7493     - Give a more helpful log message when you try to change ORPort via
7494       the controller: you should upgrade Tor if you want that to work.
7495     - We were failing to parse Tor versions that start with "Tor ".
7496     - Tolerate faulty streams better: when a stream fails for reason
7497       exitpolicy, stop assuming that the router is lying about his exit
7498       policy. When a stream fails for reason misc, allow it to retry just
7499       as if it was resolvefailed. When a stream has failed three times,
7500       reset its failure count so we can try again and get all three tries.
7503 Changes in version 0.1.1.10-alpha - 2005-12-11
7504   o Correctness bugfixes on 0.1.0.x:
7505     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
7506       corrupting the heap, losing FDs, or crashing when we need to resize
7507       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
7508     - Stop doing the complex voodoo overkill checking for insecure
7509       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
7510     - When we were closing connections, there was a rare case that
7511       stomped on memory, triggering seg faults and asserts.
7512     - We were neglecting to unlink marked circuits from soon-to-close OR
7513       connections, which caused some rare scribbling on freed memory.
7514     - When we're deciding whether a stream has enough circuits around
7515       that can handle it, count the freshly dirty ones and not the ones
7516       that are so dirty they won't be able to handle it.
7517     - Recover better from TCP connections to Tor servers that are
7518       broken but don't tell you (it happens!); and rotate TLS
7519       connections once a week.
7520     - When we're expiring old circuits, we had a logic error that caused
7521       us to close new rendezvous circuits rather than old ones.
7522     - Fix a scary-looking but apparently harmless bug where circuits
7523       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
7524       servers, and never switch to state CIRCUIT_STATE_OPEN.
7525     - When building with -static or on Solaris, we sometimes needed to
7526       build with -ldl.
7527     - Give a useful message when people run Tor as the wrong user,
7528       rather than telling them to start chowning random directories.
7529     - We were failing to inform the controller about new .onion streams.
7531   o Security bugfixes on 0.1.0.x:
7532     - Refuse server descriptors if the fingerprint line doesn't match
7533       the included identity key. Tor doesn't care, but other apps (and
7534       humans) might actually be trusting the fingerprint line.
7535     - We used to kill the circuit when we receive a relay command we
7536       don't recognize. Now we just drop it.
7537     - Start obeying our firewall options more rigorously:
7538       . If we can't get to a dirserver directly, try going via Tor.
7539       . Don't ever try to connect (as a client) to a place our
7540         firewall options forbid.
7541       . If we specify a proxy and also firewall options, obey the
7542         firewall options even when we're using the proxy: some proxies
7543         can only proxy to certain destinations.
7544     - Fix a bug found by Lasse Overlier: when we were making internal
7545       circuits (intended to be cannibalized later for rendezvous and
7546       introduction circuits), we were picking them so that they had
7547       useful exit nodes. There was no need for this, and it actually
7548       aids some statistical attacks.
7549     - Start treating internal circuits and exit circuits separately.
7550       It's important to keep them separate because internal circuits
7551       have their last hops picked like middle hops, rather than like
7552       exit hops. So exiting on them will break the user's expectations.
7554   o Bugfixes on 0.1.1.x:
7555     - Take out the mis-feature where we tried to detect IP address
7556       flapping for people with DynDNS, and chose not to upload a new
7557       server descriptor sometimes.
7558     - Try to be compatible with OpenSSL 0.9.6 again.
7559     - Log fix: when the controller is logging about .onion addresses,
7560       sometimes it didn't include the ".onion" part of the address.
7561     - Don't try to modify options->DirServers internally -- if the
7562       user didn't specify any, just add the default ones directly to
7563       the trusted dirserver list. This fixes a bug where people running
7564       controllers would use SETCONF on some totally unrelated config
7565       option, and Tor would start yelling at them about changing their
7566       DirServer lines.
7567     - Let the controller's redirectstream command specify a port, in
7568       case the controller wants to change that too.
7569     - When we requested a pile of server descriptors, we sometimes
7570       accidentally launched a duplicate request for the first one.
7571     - Bugfix for trackhostexits: write down the fingerprint of the
7572       chosen exit, not its nickname, because the chosen exit might not
7573       be verified.
7574     - When parsing foo.exit, if foo is unknown, and we are leaving
7575       circuits unattached, set the chosen_exit field and leave the
7576       address empty. This matters because controllers got confused
7577       otherwise.
7578     - Directory authorities no longer try to download server
7579       descriptors that they know they will reject.
7581   o Features and updates:
7582     - Replace balanced trees with hash tables: this should make stuff
7583       significantly faster.
7584     - Resume using the AES counter-mode implementation that we ship,
7585       rather than OpenSSL's. Ours is significantly faster.
7586     - Many other CPU and memory improvements.
7587     - Add a new config option FastFirstHopPK (on by default) so clients
7588       do a trivial crypto handshake for their first hop, since TLS has
7589       already taken care of confidentiality and authentication.
7590     - Add a new config option TestSocks so people can see if their
7591       applications are using socks4, socks4a, socks5-with-ip, or
7592       socks5-with-hostname. This way they don't have to keep mucking
7593       with tcpdump and wondering if something got cached somewhere.
7594     - Warn when listening on a public address for socks. I suspect a
7595       lot of people are setting themselves up as open socks proxies,
7596       and they have no idea that jerks on the Internet are using them,
7597       since they simply proxy the traffic into the Tor network.
7598     - Add "private:*" as an alias in configuration for policies. Now
7599       you can simplify your exit policy rather than needing to list
7600       every single internal or nonroutable network space.
7601     - Add a new controller event type that allows controllers to get
7602       all server descriptors that were uploaded to a router in its role
7603       as authoritative dirserver.
7604     - Start shipping socks-extensions.txt, tor-doc-unix.html,
7605       tor-doc-server.html, and stylesheet.css in the tarball.
7606     - Stop shipping tor-doc.html in the tarball.
7609 Changes in version 0.1.1.9-alpha - 2005-11-15
7610   o Usability improvements:
7611     - Start calling it FooListenAddress rather than FooBindAddress,
7612       since few of our users know what it means to bind an address
7613       or port.
7614     - Reduce clutter in server logs. We're going to try to make
7615       them actually usable now. New config option ProtocolWarnings that
7616       lets you hear about how _other Tors_ are breaking the protocol. Off
7617       by default.
7618     - Divide log messages into logging domains. Once we put some sort
7619       of interface on this, it will let people looking at more verbose
7620       log levels specify the topics they want to hear more about.
7621     - Make directory servers return better http 404 error messages
7622       instead of a generic "Servers unavailable".
7623     - Check for even more Windows version flags when writing the platform
7624       string in server descriptors, and note any we don't recognize.
7625     - Clean up more of the OpenSSL memory when exiting, so we can detect
7626       memory leaks better.
7627     - Make directory authorities be non-versioning, non-naming by
7628       default. Now we can add new directory servers without requiring
7629       their operators to pay close attention.
7630     - When logging via syslog, include the pid whenever we provide
7631       a log entry. Suggested by Todd Fries.
7633   o Performance improvements:
7634     - Directory servers now silently throw away new descriptors that
7635       haven't changed much if the timestamps are similar. We do this to
7636       tolerate older Tor servers that upload a new descriptor every 15
7637       minutes. (It seemed like a good idea at the time.)
7638     - Inline bottleneck smartlist functions; use fast versions by default.
7639     - Add a "Map from digest to void*" abstraction digestmap_t so we
7640       can do less hex encoding/decoding. Use it in router_get_by_digest()
7641       to resolve a performance bottleneck.
7642     - Allow tor_gzip_uncompress to extract as much as possible from
7643       truncated compressed data. Try to extract as many
7644       descriptors as possible from truncated http responses (when
7645       DIR_PURPOSE_FETCH_ROUTERDESC).
7646     - Make circ->onionskin a pointer, not a static array. moria2 was using
7647       125000 circuit_t's after it had been up for a few weeks, which
7648       translates to 20+ megs of wasted space.
7649     - The private half of our EDH handshake keys are now chosen out
7650       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
7652   o Security improvements:
7653     - Start making directory caches retain old routerinfos, so soon
7654       clients can start asking by digest of descriptor rather than by
7655       fingerprint of server.
7656     - Add half our entropy from RAND_poll in OpenSSL.  This knows how
7657       to use egd (if present), openbsd weirdness (if present), vms/os2
7658       weirdness (if we ever port there), and more in the future.
7660   o Bugfixes on 0.1.0.x:
7661     - Do round-robin writes of at most 16 kB per write. This might be
7662       more fair on loaded Tor servers, and it might resolve our Windows
7663       crash bug. It might also slow things down.
7664     - Our TLS handshakes were generating a single public/private
7665       keypair for the TLS context, rather than making a new one for
7666       each new connections. Oops. (But we were still rotating them
7667       periodically, so it's not so bad.)
7668     - When we were cannibalizing a circuit with a particular exit
7669       node in mind, we weren't checking to see if that exit node was
7670       already present earlier in the circuit. Oops.
7671     - When a Tor server's IP changes (e.g. from a dyndns address),
7672       upload a new descriptor so clients will learn too.
7673     - Really busy servers were keeping enough circuits open on stable
7674       connections that they were wrapping around the circuit_id
7675       space. (It's only two bytes.) This exposed a bug where we would
7676       feel free to reuse a circuit_id even if it still exists but has
7677       been marked for close. Try to fix this bug. Some bug remains.
7678     - If we would close a stream early (e.g. it asks for a .exit that
7679       we know would refuse it) but the LeaveStreamsUnattached config
7680       option is set by the controller, then don't close it.
7682   o Bugfixes on 0.1.1.8-alpha:
7683     - Fix a big pile of memory leaks, some of them serious.
7684     - Do not try to download a routerdesc if we would immediately reject
7685       it as obsolete.
7686     - Resume inserting a newline between all router descriptors when
7687       generating (old style) signed directories, since our spec says
7688       we do.
7689     - When providing content-type application/octet-stream for
7690       server descriptors using .z, we were leaving out the
7691       content-encoding header. Oops. (Everything tolerated this just
7692       fine, but that doesn't mean we need to be part of the problem.)
7693     - Fix a potential seg fault in getconf and getinfo using version 1
7694       of the controller protocol.
7695     - Avoid crash: do not check whether DirPort is reachable when we
7696       are suppressing it because of hibernation.
7697     - Make --hash-password not crash on exit.
7700 Changes in version 0.1.1.8-alpha - 2005-10-07
7701   o New features (major):
7702     - Clients don't download or use the directory anymore. Now they
7703       download and use network-statuses from the trusted dirservers,
7704       and fetch individual server descriptors as needed from mirrors.
7705       See dir-spec.txt for all the gory details.
7706     - Be more conservative about whether to advertise our DirPort.
7707       The main change is to not advertise if we're running at capacity
7708       and either a) we could hibernate or b) our capacity is low and
7709       we're using a default DirPort.
7710     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
7712   o New features (minor):
7713     - Try to be smart about when to retry network-status and
7714       server-descriptor fetches. Still needs some tuning.
7715     - Stop parsing, storing, or using running-routers output (but
7716       mirrors still cache and serve it).
7717     - Consider a threshold of versioning dirservers (dirservers who have
7718       an opinion about which Tor versions are still recommended) before
7719       deciding whether to warn the user that he's obsolete.
7720     - Dirservers can now reject/invalidate by key and IP, with the
7721       config options "AuthDirInvalid" and "AuthDirReject". This is
7722       useful since currently we automatically list servers as running
7723       and usable even if we know they're jerks.
7724     - Provide dire warnings to any users who set DirServer; move it out
7725       of torrc.sample and into torrc.complete.
7726     - Add MyFamily to torrc.sample in the server section.
7727     - Add nicknames to the DirServer line, so we can refer to them
7728       without requiring all our users to memorize their IP addresses.
7729     - When we get an EOF or a timeout on a directory connection, note
7730       how many bytes of serverdesc we are dropping. This will help
7731       us determine whether it is smart to parse incomplete serverdesc
7732       responses.
7733     - Add a new function to "change pseudonyms" -- that is, to stop
7734       using any currently-dirty circuits for new streams, so we don't
7735       link new actions to old actions. Currently it's only called on
7736       HUP (or SIGNAL RELOAD).
7737     - On sighup, if UseHelperNodes changed to 1, use new circuits.
7738     - Start using RAND_bytes rather than RAND_pseudo_bytes from
7739       OpenSSL. Also, reseed our entropy every hour, not just at
7740       startup. And entropy in 512-bit chunks, not 160-bit chunks.
7742   o Fixes on 0.1.1.7-alpha:
7743     - Nobody ever implemented EVENT_ADDRMAP for control protocol
7744       version 0, so don't let version 0 controllers ask for it.
7745     - If you requested something with too many newlines via the
7746       v1 controller protocol, you could crash tor.
7747     - Fix a number of memory leaks, including some pretty serious ones.
7748     - Re-enable DirPort testing again, so Tor servers will be willing
7749       to advertise their DirPort if it's reachable.
7750     - On TLS handshake, only check the other router's nickname against
7751       its expected nickname if is_named is set.
7753   o Fixes forward-ported from 0.1.0.15:
7754     - Don't crash when we don't have any spare file descriptors and we
7755       try to spawn a dns or cpu worker.
7756     - Make the numbers in read-history and write-history into uint64s,
7757       so they don't overflow and publish negatives in the descriptor.
7759   o Fixes on 0.1.0.x:
7760     - For the OS X package's modified privoxy config file, comment
7761       out the "logfile" line so we don't log everything passed
7762       through privoxy.
7763     - We were whining about using socks4 or socks5-with-local-lookup
7764       even when it's an IP in the "virtual" range we designed exactly
7765       for this case.
7766     - We were leaking some memory every time the client changes IPs.
7767     - Never call free() on tor_malloc()d memory. This will help us
7768       use dmalloc to detect memory leaks.
7769     - Check for named servers when looking them up by nickname;
7770       warn when we'recalling a non-named server by its nickname;
7771       don't warn twice about the same name.
7772     - Try to list MyFamily elements by key, not by nickname, and warn
7773       if we've not heard of the server.
7774     - Make windows platform detection (uname equivalent) smarter.
7775     - It turns out sparc64 doesn't like unaligned access either.
7778 Changes in version 0.1.0.15 - 2005-09-23
7779   o Bugfixes on 0.1.0.x:
7780     - Reject ports 465 and 587 (spam targets) in default exit policy.
7781     - Don't crash when we don't have any spare file descriptors and we
7782       try to spawn a dns or cpu worker.
7783     - Get rid of IgnoreVersion undocumented config option, and make us
7784       only warn, never exit, when we're running an obsolete version.
7785     - Don't try to print a null string when your server finds itself to
7786       be unreachable and the Address config option is empty.
7787     - Make the numbers in read-history and write-history into uint64s,
7788       so they don't overflow and publish negatives in the descriptor.
7789     - Fix a minor memory leak in smartlist_string_remove().
7790     - We were only allowing ourselves to upload a server descriptor at
7791       most every 20 minutes, even if it changed earlier than that.
7792     - Clean up log entries that pointed to old URLs.
7795 Changes in version 0.1.1.7-alpha - 2005-09-14
7796   o Fixes on 0.1.1.6-alpha:
7797     - Exit servers were crashing when people asked them to make a
7798       connection to an address not in their exit policy.
7799     - Looking up a non-existent stream for a v1 control connection would
7800       cause a segfault.
7801     - Fix a seg fault if we ask a dirserver for a descriptor by
7802       fingerprint but he doesn't know about him.
7803     - SETCONF was appending items to linelists, not clearing them.
7804     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
7805       out and refuse the setconf if it would fail.
7806     - Downgrade the dirserver log messages when whining about
7807       unreachability.
7809   o New features:
7810     - Add Peter Palfrader's check-tor script to tor/contrib/
7811       It lets you easily check whether a given server (referenced by
7812       nickname) is reachable by you.
7813     - Numerous changes to move towards client-side v2 directories. Not
7814       enabled yet.
7816   o Fixes on 0.1.0.x:
7817     - If the user gave tor an odd number of command-line arguments,
7818       we were silently ignoring the last one. Now we complain and fail.
7819       [This wins the oldest-bug prize -- this bug has been present since
7820        November 2002, as released in Tor 0.0.0.]
7821     - Do not use unaligned memory access on alpha, mips, or mipsel.
7822       It *works*, but is very slow, so we treat them as if it doesn't.
7823     - Retry directory requests if we fail to get an answer we like
7824       from a given dirserver (we were retrying before, but only if
7825       we fail to connect).
7826     - When writing the RecommendedVersions line, sort them first.
7827     - When the client asked for a rendezvous port that the hidden
7828       service didn't want to provide, we were sending an IP address
7829       back along with the end cell. Fortunately, it was zero. But stop
7830       that anyway.
7831     - Correct "your server is reachable" log entries to indicate that
7832       it was self-testing that told us so.
7835 Changes in version 0.1.1.6-alpha - 2005-09-09
7836   o Fixes on 0.1.1.5-alpha:
7837     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
7838     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
7839     - Fix bug with tor_memmem finding a match at the end of the string.
7840     - Make unit tests run without segfaulting.
7841     - Resolve some solaris x86 compile warnings.
7842     - Handle duplicate lines in approved-routers files without warning.
7843     - Fix bug where as soon as a server refused any requests due to his
7844       exit policy (e.g. when we ask for localhost and he tells us that's
7845       127.0.0.1 and he won't do it), we decided he wasn't obeying his
7846       exit policy using him for any exits.
7847     - Only do openssl hardware accelerator stuff if openssl version is
7848       at least 0.9.7.
7850   o New controller features/fixes:
7851     - Add a "RESETCONF" command so you can set config options like
7852       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
7853       a config option in the torrc with no value, then it clears it
7854       entirely (rather than setting it to its default).
7855     - Add a "GETINFO config-file" to tell us where torrc is.
7856     - Avoid sending blank lines when GETINFO replies should be empty.
7857     - Add a QUIT command for the controller (for using it manually).
7858     - Fix a bug in SAVECONF that was adding default dirservers and
7859       other redundant entries to the torrc file.
7861   o Start on the new directory design:
7862     - Generate, publish, cache, serve new network-status format.
7863     - Publish individual descriptors (by fingerprint, by "all", and by
7864       "tell me yours").
7865     - Publish client and server recommended versions separately.
7866     - Allow tor_gzip_uncompress() to handle multiple concatenated
7867       compressed strings. Serve compressed groups of router
7868       descriptors. The compression logic here could be more
7869       memory-efficient.
7870     - Distinguish v1 authorities (all currently trusted directories)
7871       from v2 authorities (all trusted directories).
7872     - Change DirServers config line to note which dirs are v1 authorities.
7873     - Add configuration option "V1AuthoritativeDirectory 1" which
7874       moria1, moria2, and tor26 should set.
7875     - Remove option when getting directory cache to see whether they
7876       support running-routers; they all do now. Replace it with one
7877       to see whether caches support v2 stuff.
7879   o New features:
7880     - Dirservers now do their own external reachability testing of each
7881       Tor server, and only list them as running if they've been found to
7882       be reachable. We also send back warnings to the server's logs if
7883       it uploads a descriptor that we already believe is unreachable.
7884     - Implement exit enclaves: if we know an IP address for the
7885       destination, and there's a running Tor server at that address
7886       which allows exit to the destination, then extend the circuit to
7887       that exit first. This provides end-to-end encryption and end-to-end
7888       authentication. Also, if the user wants a .exit address or enclave,
7889       use 4 hops rather than 3, and cannibalize a general circ for it
7890       if you can.
7891     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
7892       controller. Also, rotate dns and cpu workers if the controller
7893       changes options that will affect them; and initialize the dns
7894       worker cache tree whether or not we start out as a server.
7895     - Only upload a new server descriptor when options change, 18
7896       hours have passed, uptime is reset, or bandwidth changes a lot.
7897     - Check [X-]Forwarded-For headers in HTTP requests when generating
7898       log messages. This lets people run dirservers (and caches) behind
7899       Apache but still know which IP addresses are causing warnings.
7901   o Config option changes:
7902     - Replace (Fascist)Firewall* config options with a new
7903       ReachableAddresses option that understands address policies.
7904       For example, "ReachableAddresses *:80,*:443"
7905     - Get rid of IgnoreVersion undocumented config option, and make us
7906       only warn, never exit, when we're running an obsolete version.
7907     - Make MonthlyAccountingStart config option truly obsolete now.
7909   o Fixes on 0.1.0.x:
7910     - Reject ports 465 and 587 in the default exit policy, since
7911       people have started using them for spam too.
7912     - It turns out we couldn't bootstrap a network since we added
7913       reachability detection in 0.1.0.1-rc. Good thing the Tor network
7914       has never gone down. Add an AssumeReachable config option to let
7915       servers and dirservers bootstrap. When we're trying to build a
7916       high-uptime or high-bandwidth circuit but there aren't enough
7917       suitable servers, try being less picky rather than simply failing.
7918     - Our logic to decide if the OR we connected to was the right guy
7919       was brittle and maybe open to a mitm for unverified routers.
7920     - We weren't cannibalizing circuits correctly for
7921       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
7922       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
7923       build those from scratch. This should make hidden services faster.
7924     - Predict required circuits better, with an eye toward making hidden
7925       services faster on the service end.
7926     - Retry streams if the exit node sends back a 'misc' failure. This
7927       should result in fewer random failures. Also, after failing
7928       from resolve failed or misc, reset the num failures, so we give
7929       it a fair shake next time we try.
7930     - Clean up the rendezvous warn log msgs, and downgrade some to info.
7931     - Reduce severity on logs about dns worker spawning and culling.
7932     - When we're shutting down and we do something like try to post a
7933       server descriptor or rendezvous descriptor, don't complain that
7934       we seem to be unreachable. Of course we are, we're shutting down.
7935     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
7936       We don't use them yet, but maybe one day our DNS resolver will be
7937       able to discover them.
7938     - Make ContactInfo mandatory for authoritative directory servers.
7939     - Require server descriptors to list IPv4 addresses -- hostnames
7940       are no longer allowed. This also fixes some potential security
7941       problems with people providing hostnames as their address and then
7942       preferentially resolving them to partition users.
7943     - Change log line for unreachability to explicitly suggest /etc/hosts
7944       as the culprit. Also make it clearer what IP address and ports we're
7945       testing for reachability.
7946     - Put quotes around user-supplied strings when logging so users are
7947       more likely to realize if they add bad characters (like quotes)
7948       to the torrc.
7949     - Let auth dir servers start without specifying an Address config
7950       option.
7951     - Make unit tests (and other invocations that aren't the real Tor)
7952       run without launching listeners, creating subdirectories, and so on.
7955 Changes in version 0.1.1.5-alpha - 2005-08-08
7956   o Bugfixes included in 0.1.0.14.
7958   o Bugfixes on 0.1.0.x:
7959     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
7960       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
7961       it would silently using ignore the 6668.
7964 Changes in version 0.1.0.14 - 2005-08-08
7965   o Bugfixes on 0.1.0.x:
7966       - Fix the other half of the bug with crypto handshakes
7967         (CVE-2005-2643).
7968       - Fix an assert trigger if you send a 'signal term' via the
7969         controller when it's listening for 'event info' messages.
7972 Changes in version 0.1.1.4-alpha - 2005-08-04
7973   o Bugfixes included in 0.1.0.13.
7975   o Features:
7976     - Improve tor_gettimeofday() granularity on windows.
7977     - Make clients regenerate their keys when their IP address changes.
7978     - Implement some more GETINFO goodness: expose helper nodes, config
7979       options, getinfo keys.
7982 Changes in version 0.1.0.13 - 2005-08-04
7983   o Bugfixes on 0.1.0.x:
7984     - Fix a critical bug in the security of our crypto handshakes.
7985     - Fix a size_t underflow in smartlist_join_strings2() that made
7986       it do bad things when you hand it an empty smartlist.
7987     - Fix Windows installer to ship Tor license (thanks to Aphex for
7988       pointing out this oversight) and put a link to the doc directory
7989       in the start menu.
7990     - Explicitly set no-unaligned-access for sparc: it turns out the
7991       new gcc's let you compile broken code, but that doesn't make it
7992       not-broken.
7995 Changes in version 0.1.1.3-alpha - 2005-07-23
7996   o Bugfixes on 0.1.1.2-alpha:
7997     - Fix a bug in handling the controller's "post descriptor"
7998       function.
7999     - Fix several bugs in handling the controller's "extend circuit"
8000       function.
8001     - Fix a bug in handling the controller's "stream status" event.
8002     - Fix an assert failure if we have a controller listening for
8003       circuit events and we go offline.
8004     - Re-allow hidden service descriptors to publish 0 intro points.
8005     - Fix a crash when generating your hidden service descriptor if
8006       you don't have enough intro points already.
8008   o New features on 0.1.1.2-alpha:
8009     - New controller function "getinfo accounting", to ask how
8010       many bytes we've used in this time period.
8011     - Experimental support for helper nodes: a lot of the risk from
8012       a small static adversary comes because users pick new random
8013       nodes every time they rebuild a circuit. Now users will try to
8014       stick to the same small set of entry nodes if they can. Not
8015       enabled by default yet.
8017   o Bugfixes on 0.1.0.12:
8018     - If you're an auth dir server, always publish your dirport,
8019       even if you haven't yet found yourself to be reachable.
8020     - Fix a size_t underflow in smartlist_join_strings2() that made
8021       it do bad things when you hand it an empty smartlist.
8024 Changes in version 0.1.0.12 - 2005-07-18
8025   o New directory servers:
8026       - tor26 has changed IP address.
8028   o Bugfixes on 0.1.0.x:
8029     - Fix a possible double-free in tor_gzip_uncompress().
8030     - When --disable-threads is set, do not search for or link against
8031       pthreads libraries.
8032     - Don't trigger an assert if an authoritative directory server
8033       claims its dirport is 0.
8034     - Fix bug with removing Tor as an NT service: some people were
8035       getting "The service did not return an error." Thanks to Matt
8036       Edman for the fix.
8039 Changes in version 0.1.1.2-alpha - 2005-07-15
8040   o New directory servers:
8041     - tor26 has changed IP address.
8043   o Bugfixes on 0.1.0.x, crashes/leaks:
8044     - Port the servers-not-obeying-their-exit-policies fix from
8045       0.1.0.11.
8046     - Fix an fd leak in start_daemon().
8047     - On Windows, you can't always reopen a port right after you've
8048       closed it. So change retry_listeners() to only close and re-open
8049       ports that have changed.
8050     - Fix a possible double-free in tor_gzip_uncompress().
8052   o Bugfixes on 0.1.0.x, usability:
8053     - When tor_socketpair() fails in Windows, give a reasonable
8054       Windows-style errno back.
8055     - Let people type "tor --install" as well as "tor -install" when
8056       they
8057       want to make it an NT service.
8058     - NT service patch from Matt Edman to improve error messages.
8059     - When the controller asks for a config option with an abbreviated
8060       name, give the full name in our response.
8061     - Correct the man page entry on TrackHostExitsExpire.
8062     - Looks like we were never delivering deflated (i.e. compressed)
8063       running-routers lists, even when asked. Oops.
8064     - When --disable-threads is set, do not search for or link against
8065       pthreads libraries.
8067   o Bugfixes on 0.1.1.x:
8068     - Fix a seg fault with autodetecting which controller version is
8069       being used.
8071   o Features:
8072     - New hidden service descriptor format: put a version in it, and
8073       let people specify introduction/rendezvous points that aren't
8074       in "the directory" (which is subjective anyway).
8075     - Allow the DEBUG controller event to work again. Mark certain log
8076       entries as "don't tell this to controllers", so we avoid cycles.
8079 Changes in version 0.1.0.11 - 2005-06-30
8080   o Bugfixes on 0.1.0.x:
8081     - Fix major security bug: servers were disregarding their
8082       exit policies if clients behaved unexpectedly.
8083     - Make OS X init script check for missing argument, so we don't
8084       confuse users who invoke it incorrectly.
8085     - Fix a seg fault in "tor --hash-password foo".
8086     - The MAPADDRESS control command was broken.
8089 Changes in version 0.1.1.1-alpha - 2005-06-29
8090   o Bugfixes:
8091     - Make OS X init script check for missing argument, so we don't
8092       confuse users who invoke it incorrectly.
8093     - Fix a seg fault in "tor --hash-password foo".
8094     - Fix a possible way to DoS dirservers.
8095     - When we complain that your exit policy implicitly allows local or
8096       private address spaces, name them explicitly so operators can
8097       fix it.
8098     - Make the log message less scary when all the dirservers are
8099       temporarily unreachable.
8100     - We were printing the number of idle dns workers incorrectly when
8101       culling them.
8103   o Features:
8104     - Revised controller protocol (version 1) that uses ascii rather
8105       than binary. Add supporting libraries in python and java so you
8106       can use the controller from your applications without caring how
8107       our protocol works.
8108     - Spiffy new support for crypto hardware accelerators. Can somebody
8109       test this?
8112 Changes in version 0.0.9.10 - 2005-06-16
8113   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
8114     - Refuse relay cells that claim to have a length larger than the
8115       maximum allowed. This prevents a potential attack that could read
8116       arbitrary memory (e.g. keys) from an exit server's process
8117       (CVE-2005-2050).
8120 Changes in version 0.1.0.10 - 2005-06-14
8121   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
8122     libevent before 1.1a.
8125 Changes in version 0.1.0.9-rc - 2005-06-09
8126   o Bugfixes:
8127     - Reset buf->highwater every time buf_shrink() is called, not just on
8128       a successful shrink. This was causing significant memory bloat.
8129     - Fix buffer overflow when checking hashed passwords.
8130     - Security fix: if seeding the RNG on Win32 fails, quit.
8131     - Allow seeding the RNG on Win32 even when you're not running as
8132       Administrator.
8133     - Disable threading on Solaris too. Something is wonky with it,
8134       cpuworkers, and reentrant libs.
8135     - Reenable the part of the code that tries to flush as soon as an
8136       OR outbuf has a full TLS record available. Perhaps this will make
8137       OR outbufs not grow as huge except in rare cases, thus saving lots
8138       of CPU time plus memory.
8139     - Reject malformed .onion addresses rather then passing them on as
8140       normal web requests.
8141     - Adapt patch from Adam Langley: fix possible memory leak in
8142       tor_lookup_hostname().
8143     - Initialize libevent later in the startup process, so the logs are
8144       already established by the time we start logging libevent warns.
8145     - Use correct errno on win32 if libevent fails.
8146     - Check and warn about known-bad/slow libevent versions.
8147     - Pay more attention to the ClientOnly config option.
8148     - Have torctl.in/tor.sh.in check for location of su binary (needed
8149       on FreeBSD)
8150     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
8151       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
8152       HttpProxyAuthenticator
8153     - Stop warning about sigpipes in the logs. We're going to
8154       pretend that getting these occassionally is normal and fine.
8155     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
8156       certain
8157       installer screens; and don't put stuff into StartupItems unless
8158       the user asks you to.
8159     - Require servers that use the default dirservers to have public IP
8160       addresses. We have too many servers that are configured with private
8161       IPs and their admins never notice the log entries complaining that
8162       their descriptors are being rejected.
8163     - Add OSX uninstall instructions. An actual uninstall script will
8164       come later.
8167 Changes in version 0.1.0.8-rc - 2005-05-23
8168   o Bugfixes:
8169     - It turns out that kqueue on OS X 10.3.9 was causing kernel
8170       panics. Disable kqueue on all OS X Tors.
8171     - Fix RPM: remove duplicate line accidentally added to the rpm
8172       spec file.
8173     - Disable threads on openbsd too, since its gethostaddr is not
8174       reentrant either.
8175     - Tolerate libevent 0.8 since it still works, even though it's
8176       ancient.
8177     - Enable building on Red Hat 9.0 again.
8178     - Allow the middle hop of the testing circuit to be running any
8179       version, now that most of them have the bugfix to let them connect
8180       to unknown servers. This will allow reachability testing to work
8181       even when 0.0.9.7-0.0.9.9 become obsolete.
8182     - Handle relay cells with rh.length too large. This prevents
8183       a potential attack that could read arbitrary memory (maybe even
8184       keys) from the exit server's process.
8185     - We screwed up the dirport reachability testing when we don't yet
8186       have a cached version of the directory. Hopefully now fixed.
8187     - Clean up router_load_single_router() (used by the controller),
8188       so it doesn't seg fault on error.
8189     - Fix a minor memory leak when somebody establishes an introduction
8190       point at your Tor server.
8191     - If a socks connection ends because read fails, don't warn that
8192       you're not sending a socks reply back.
8194   o Features:
8195     - Add HttpProxyAuthenticator config option too, that works like
8196       the HttpsProxyAuthenticator config option.
8197     - Encode hashed controller passwords in hex instead of base64,
8198       to make it easier to write controllers.
8201 Changes in version 0.1.0.7-rc - 2005-05-17
8202   o Bugfixes:
8203     - Fix a bug in the OS X package installer that prevented it from
8204       installing on Tiger.
8205     - Fix a script bug in the OS X package installer that made it
8206       complain during installation.
8207     - Find libevent even if it's hiding in /usr/local/ and your
8208       CFLAGS and LDFLAGS don't tell you to look there.
8209     - Be able to link with libevent as a shared library (the default
8210       after 1.0d), even if it's hiding in /usr/local/lib and even
8211       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
8212       assuming you're running gcc. Otherwise fail and give a useful
8213       error message.
8214     - Fix a bug in the RPM packager: set home directory for _tor to
8215       something more reasonable when first installing.
8216     - Free a minor amount of memory that is still reachable on exit.
8219 Changes in version 0.1.0.6-rc - 2005-05-14
8220   o Bugfixes:
8221     - Implement --disable-threads configure option. Disable threads on
8222       netbsd by default, because it appears to have no reentrant resolver
8223       functions.
8224     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
8225       release (1.1) detects and disables kqueue if it's broken.
8226     - Append default exit policy before checking for implicit internal
8227       addresses. Now we don't log a bunch of complaints on startup
8228       when using the default exit policy.
8229     - Some people were putting "Address  " in their torrc, and they had
8230       a buggy resolver that resolved " " to 0.0.0.0. Oops.
8231     - If DataDir is ~/.tor, and that expands to /.tor, then default to
8232       LOCALSTATEDIR/tor instead.
8233     - Fix fragmented-message bug in TorControl.py.
8234     - Resolve a minor bug which would prevent unreachable dirports
8235       from getting suppressed in the published descriptor.
8236     - When the controller gave us a new descriptor, we weren't resolving
8237       it immediately, so Tor would think its address was 0.0.0.0 until
8238       we fetched a new directory.
8239     - Fix an uppercase/lowercase case error in suppressing a bogus
8240       libevent warning on some Linuxes.
8242   o Features:
8243     - Begin scrubbing sensitive strings from logs by default. Turn off
8244       the config option SafeLogging if you need to do debugging.
8245     - Switch to a new buffer management algorithm, which tries to avoid
8246       reallocing and copying quite as much. In first tests it looks like
8247       it uses *more* memory on average, but less cpu.
8248     - First cut at support for "create-fast" cells. Clients can use
8249       these when extending to their first hop, since the TLS already
8250       provides forward secrecy and authentication. Not enabled on
8251       clients yet.
8252     - When dirservers refuse a router descriptor, we now log its
8253       contactinfo, platform, and the poster's IP address.
8254     - Call tor_free_all instead of connections_free_all after forking, to
8255       save memory on systems that need to fork.
8256     - Whine at you if you're a server and you don't set your contactinfo.
8257     - Implement --verify-config command-line option to check if your torrc
8258       is valid without actually launching Tor.
8259     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
8260       rather than just rejecting it.
8263 Changes in version 0.1.0.5-rc - 2005-04-27
8264   o Bugfixes:
8265     - Stop trying to print a null pointer if an OR conn fails because
8266       we didn't like its cert.
8267   o Features:
8268     - Switch our internal buffers implementation to use a ring buffer,
8269       to hopefully improve performance for fast servers a lot.
8270     - Add HttpsProxyAuthenticator support (basic auth only), based
8271       on patch from Adam Langley.
8272     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
8273       the fast servers that have been joining lately.
8274     - Give hidden service accesses extra time on the first attempt,
8275       since 60 seconds is often only barely enough. This might improve
8276       robustness more.
8277     - Improve performance for dirservers: stop re-parsing the whole
8278       directory every time you regenerate it.
8279     - Add more debugging info to help us find the weird dns freebsd
8280       pthreads bug; cleaner debug messages to help track future issues.
8283 Changes in version 0.0.9.9 - 2005-04-23
8284   o Bugfixes on 0.0.9.x:
8285     - If unofficial Tor clients connect and send weird TLS certs, our
8286       Tor server triggers an assert. This release contains a minimal
8287       backport from the broader fix that we put into 0.1.0.4-rc.
8290 Changes in version 0.1.0.4-rc - 2005-04-23
8291   o Bugfixes:
8292     - If unofficial Tor clients connect and send weird TLS certs, our
8293       Tor server triggers an assert. Stop asserting, and start handling
8294       TLS errors better in other situations too.
8295     - When the controller asks us to tell it about all the debug-level
8296       logs, it turns out we were generating debug-level logs while
8297       telling it about them, which turns into a bad loop. Now keep
8298       track of whether you're sending a debug log to the controller,
8299       and don't log when you are.
8300     - Fix the "postdescriptor" feature of the controller interface: on
8301       non-complete success, only say "done" once.
8302   o Features:
8303     - Clients are now willing to load balance over up to 2mB, not 1mB,
8304       of advertised bandwidth capacity.
8305     - Add a NoPublish config option, so you can be a server (e.g. for
8306       testing running Tor servers in other Tor networks) without
8307       publishing your descriptor to the primary dirservers.
8310 Changes in version 0.1.0.3-rc - 2005-04-08
8311   o Improvements on 0.1.0.2-rc:
8312     - Client now retries when streams end early for 'hibernating' or
8313       'resource limit' reasons, rather than failing them.
8314     - More automated handling for dirserver operators:
8315       - Automatically approve nodes running 0.1.0.2-rc or later,
8316         now that the the reachability detection stuff is working.
8317       - Now we allow two unverified servers with the same nickname
8318         but different keys. But if a nickname is verified, only that
8319         nickname+key are allowed.
8320       - If you're an authdirserver connecting to an address:port,
8321         and it's not the OR you were expecting, forget about that
8322         descriptor. If he *was* the one you were expecting, then forget
8323         about all other descriptors for that address:port.
8324       - Allow servers to publish descriptors from 12 hours in the future.
8325         Corollary: only whine about clock skew from the dirserver if
8326         he's a trusted dirserver (since now even verified servers could
8327         have quite wrong clocks).
8328     - Adjust maximum skew and age for rendezvous descriptors: let skew
8329       be 48 hours rather than 90 minutes.
8330     - Efficiency improvements:
8331       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
8332         it much faster to look up a circuit for each relay cell.
8333       - Remove most calls to assert_all_pending_dns_resolves_ok(),
8334         since they're eating our cpu on exit nodes.
8335       - Stop wasting time doing a case insensitive comparison for every
8336         dns name every time we do any lookup. Canonicalize the names to
8337         lowercase and be done with it.
8338     - Start sending 'truncated' cells back rather than destroy cells,
8339       if the circuit closes in front of you. This means we won't have
8340       to abandon partially built circuits.
8341     - Only warn once per nickname from add_nickname_list_to_smartlist
8342       per failure, so an entrynode or exitnode choice that's down won't
8343       yell so much.
8344     - Put a note in the torrc about abuse potential with the default
8345       exit policy.
8346     - Revise control spec and implementation to allow all log messages to
8347       be sent to controller with their severities intact (suggested by
8348       Matt Edman). Update TorControl to handle new log event types.
8349     - Provide better explanation messages when controller's POSTDESCRIPTOR
8350       fails.
8351     - Stop putting nodename in the Platform string in server descriptors.
8352       It doesn't actually help, and it is confusing/upsetting some people.
8354   o Bugfixes on 0.1.0.2-rc:
8355     - We were printing the host mask wrong in exit policies in server
8356       descriptors. This isn't a critical bug though, since we were still
8357       obeying the exit policy internally.
8358     - Fix Tor when compiled with libevent but without pthreads: move
8359       connection_unregister() from _connection_free() to
8360       connection_free().
8361     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
8362       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
8363       when we look through the connection array, we'll find any of the
8364       cpu/dnsworkers. This is no good.
8366   o Bugfixes on 0.0.9.8:
8367     - Fix possible bug on threading platforms (e.g. win32) which was
8368       leaking a file descriptor whenever a cpuworker or dnsworker died.
8369     - When using preferred entry or exit nodes, ignore whether the
8370       circuit wants uptime or capacity. They asked for the nodes, they
8371       get the nodes.
8372     - chdir() to your datadirectory at the *end* of the daemonize process,
8373       not the beginning. This was a problem because the first time you
8374       run tor, if your datadir isn't there, and you have runasdaemon set
8375       to 1, it will try to chdir to it before it tries to create it. Oops.
8376     - Handle changed router status correctly when dirserver reloads
8377       fingerprint file. We used to be dropping all unverified descriptors
8378       right then. The bug was hidden because we would immediately
8379       fetch a directory from another dirserver, which would include the
8380       descriptors we just dropped.
8381     - When we're connecting to an OR and he's got a different nickname/key
8382       than we were expecting, only complain loudly if we're an OP or a
8383       dirserver. Complaining loudly to the OR admins just confuses them.
8384     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
8385       artificially capped at 500kB.
8388 Changes in version 0.0.9.8 - 2005-04-07
8389   o Bugfixes on 0.0.9.x:
8390     - We have a bug that I haven't found yet. Sometimes, very rarely,
8391       cpuworkers get stuck in the 'busy' state, even though the cpuworker
8392       thinks of itself as idle. This meant that no new circuits ever got
8393       established. Here's a workaround to kill any cpuworker that's been
8394       busy for more than 100 seconds.
8397 Changes in version 0.1.0.2-rc - 2005-04-01
8398   o Bugfixes on 0.1.0.1-rc:
8399     - Fixes on reachability detection:
8400       - Don't check for reachability while hibernating.
8401       - If ORPort is reachable but DirPort isn't, still publish the
8402         descriptor, but zero out DirPort until it's found reachable.
8403       - When building testing circs for ORPort testing, use only
8404         high-bandwidth nodes, so fewer circuits fail.
8405       - Complain about unreachable ORPort separately from unreachable
8406         DirPort, so the user knows what's going on.
8407       - Make sure we only conclude ORPort reachability if we didn't
8408         initiate the conn. Otherwise we could falsely conclude that
8409         we're reachable just because we connected to the guy earlier
8410         and he used that same pipe to extend to us.
8411       - Authdirservers shouldn't do ORPort reachability detection,
8412         since they're in clique mode, so it will be rare to find a
8413         server not already connected to them.
8414       - When building testing circuits, always pick middle hops running
8415         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
8416         bug. (This is a kludge; it will go away when 0.0.9.x becomes
8417         obsolete.)
8418       - When we decide we're reachable, actually publish our descriptor
8419         right then.
8420     - Fix bug in redirectstream in the controller.
8421     - Fix the state descriptor strings so logs don't claim edge streams
8422       are in a different state than they actually are.
8423     - Use recent libevent features when possible (this only really affects
8424       win32 and osx right now, because the new libevent with these
8425       features hasn't been released yet). Add code to suppress spurious
8426       libevent log msgs.
8427     - Prevent possible segfault in connection_close_unattached_ap().
8428     - Fix newlines on torrc in win32.
8429     - Improve error msgs when tor-resolve fails.
8431   o Improvements on 0.0.9.x:
8432     - New experimental script tor/contrib/ExerciseServer.py (needs more
8433       work) that uses the controller interface to build circuits and
8434       fetch pages over them. This will help us bootstrap servers that
8435       have lots of capacity but haven't noticed it yet.
8436     - New experimental script tor/contrib/PathDemo.py (needs more work)
8437       that uses the controller interface to let you choose whole paths
8438       via addresses like
8439       "<hostname>.<path,separated by dots>.<length of path>.path"
8440     - When we've connected to an OR and handshaked but didn't like
8441       the result, we were closing the conn without sending destroy
8442       cells back for pending circuits. Now send those destroys.
8445 Changes in version 0.0.9.7 - 2005-04-01
8446   o Bugfixes on 0.0.9.x:
8447     - Fix another race crash bug (thanks to Glenn Fink for reporting).
8448     - Compare identity to identity, not to nickname, when extending to
8449       a router not already in the directory. This was preventing us from
8450       extending to unknown routers. Oops.
8451     - Make sure to create OS X Tor user in <500 range, so we aren't
8452       creating actual system users.
8453     - Note where connection-that-hasn't-sent-end was marked, and fix
8454       a few really loud instances of this harmless bug (it's fixed more
8455       in 0.1.0.x).
8458 Changes in version 0.1.0.1-rc - 2005-03-28
8459   o New features:
8460     - Add reachability testing. Your Tor server will automatically try
8461       to see if its ORPort and DirPort are reachable from the outside,
8462       and it won't upload its descriptor until it decides they are.
8463     - Handle unavailable hidden services better. Handle slow or busy
8464       hidden services better.
8465     - Add support for CONNECTing through https proxies, with "HttpsProxy"
8466       config option.
8467     - New exit policy: accept most low-numbered ports, rather than
8468       rejecting most low-numbered ports.
8469     - More Tor controller support (still experimental). See
8470       http://tor.eff.org/doc/control-spec.txt for all the new features,
8471       including signals to emulate unix signals from any platform;
8472       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
8473       closestream; closecircuit; etc.
8474     - Make nt services work and start on startup on win32 (based on
8475       patch by Matt Edman).
8476     - Add a new AddressMap config directive to rewrite incoming socks
8477       addresses. This lets you, for example, declare an implicit
8478       required exit node for certain sites.
8479     - Add a new TrackHostExits config directive to trigger addressmaps
8480       for certain incoming socks addresses -- for sites that break when
8481       your exit keeps changing (based on patch by Mike Perry).
8482     - Redo the client-side dns cache so it's just an addressmap too.
8483     - Notice when our IP changes, and reset stats/uptime/reachability.
8484     - When an application is using socks5, give him the whole variety of
8485       potential socks5 responses (connect refused, host unreachable, etc),
8486       rather than just "success" or "failure".
8487     - A more sane version numbering system. See
8488       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
8489     - New contributed script "exitlist": a simple python script to
8490       parse directories and find Tor nodes that exit to listed
8491       addresses/ports.
8492     - New contributed script "privoxy-tor-toggle" to toggle whether
8493       Privoxy uses Tor. Seems to be configured for Debian by default.
8494     - Report HTTP reasons to client when getting a response from directory
8495       servers -- so you can actually know what went wrong.
8496     - New config option MaxAdvertisedBandwidth which lets you advertise
8497       a low bandwidthrate (to not attract as many circuits) while still
8498       allowing a higher bandwidthrate in reality.
8500   o Robustness/stability fixes:
8501     - Make Tor use Niels Provos's libevent instead of its current
8502       poll-but-sometimes-select mess.  This will let us use faster async
8503       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
8504       on Windows too.
8505     - pthread support now too. This was forced because when we forked,
8506       we ended up wasting a lot of duplicate ram over time. Also switch
8507       to foo_r versions of some library calls to allow reentry and
8508       threadsafeness.
8509     - Better handling for heterogeneous / unreliable nodes:
8510       - Annotate circuits w/ whether they aim to contain high uptime nodes
8511         and/or high capacity nodes. When building circuits, choose
8512         appropriate nodes.
8513       - This means that every single node in an intro rend circuit,
8514         not just the last one, will have a minimum uptime.
8515       - New config option LongLivedPorts to indicate application streams
8516         that will want high uptime circuits.
8517       - Servers reset uptime when a dir fetch entirely fails. This
8518         hopefully reflects stability of the server's network connectivity.
8519       - If somebody starts his tor server in Jan 2004 and then fixes his
8520         clock, don't make his published uptime be a year.
8521       - Reset published uptime when you wake up from hibernation.
8522     - Introduce a notion of 'internal' circs, which are chosen without
8523       regard to the exit policy of the last hop. Intro and rendezvous
8524       circs must be internal circs, to avoid leaking information. Resolve
8525       and connect streams can use internal circs if they want.
8526     - New circuit pooling algorithm: make sure to have enough circs around
8527       to satisfy any predicted ports, and also make sure to have 2 internal
8528       circs around if we've required internal circs lately (and with high
8529       uptime if we've seen that lately too).
8530     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
8531       which describes how often we retry making new circuits if current
8532       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
8533       how long we're willing to make use of an already-dirty circuit.
8534     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
8535       circ as necessary, if there are any completed ones lying around
8536       when we try to launch one.
8537     - Make hidden services try to establish a rendezvous for 30 seconds,
8538       rather than for n (where n=3) attempts to build a circuit.
8539     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
8540       "ShutdownWaitLength".
8541     - Try to be more zealous about calling connection_edge_end when
8542       things go bad with edge conns in connection.c.
8543     - Revise tor-spec to add more/better stream end reasons.
8544     - Revise all calls to connection_edge_end to avoid sending "misc",
8545       and to take errno into account where possible.
8547   o Bug fixes:
8548     - Fix a race condition that can trigger an assert, when we have a
8549       pending create cell and an OR connection fails right then.
8550     - Fix several double-mark-for-close bugs, e.g. where we were finding
8551       a conn for a cell even if that conn is already marked for close.
8552     - Make sequence of log messages when starting on win32 with no config
8553       file more reasonable.
8554     - When choosing an exit node for a new non-internal circ, don't take
8555       into account whether it'll be useful for any pending x.onion
8556       addresses -- it won't.
8557     - Turn addr_policy_compare from a tristate to a quadstate; this should
8558       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
8559       for google.com" problem.
8560     - Make "platform" string in descriptor more accurate for Win32 servers,
8561       so it's not just "unknown platform".
8562     - Fix an edge case in parsing config options (thanks weasel).
8563       If they say "--" on the commandline, it's not an option.
8564     - Reject odd-looking addresses at the client (e.g. addresses that
8565       contain a colon), rather than having the server drop them because
8566       they're malformed.
8567     - tor-resolve requests were ignoring .exit if there was a working circuit
8568       they could use instead.
8569     - REUSEADDR on normal platforms means you can rebind to the port
8570       right after somebody else has let it go. But REUSEADDR on win32
8571       means to let you bind to the port _even when somebody else
8572       already has it bound_! So, don't do that on Win32.
8573     - Change version parsing logic: a version is "obsolete" if it is not
8574       recommended and (1) there is a newer recommended version in the
8575       same series, or (2) there are no recommended versions in the same
8576       series, but there are some recommended versions in a newer series.
8577       A version is "new" if it is newer than any recommended version in
8578       the same series.
8579     - Stop most cases of hanging up on a socks connection without sending
8580       the socks reject.
8582   o Helpful fixes:
8583     - Require BandwidthRate to be at least 20kB/s for servers.
8584     - When a dirserver causes you to give a warn, mention which dirserver
8585       it was.
8586     - New config option DirAllowPrivateAddresses for authdirservers.
8587       Now by default they refuse router descriptors that have non-IP or
8588       private-IP addresses.
8589     - Stop publishing socksport in the directory, since it's not
8590       actually meant to be public. For compatibility, publish a 0 there
8591       for now.
8592     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
8593       smart" value, that is low for servers and high for clients.
8594     - If our clock jumps forward by 100 seconds or more, assume something
8595       has gone wrong with our network and abandon all not-yet-used circs.
8596     - Warn when exit policy implicitly allows local addresses.
8597     - If we get an incredibly skewed timestamp from a dirserver mirror
8598       that isn't a verified OR, don't warn -- it's probably him that's
8599       wrong.
8600     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
8601       cookies to disk and doesn't log each web request to disk. (Thanks
8602       to Brett Carrington for pointing this out.)
8603     - When a client asks us for a dir mirror and we don't have one,
8604       launch an attempt to get a fresh one.
8605     - If we're hibernating and we get a SIGINT, exit immediately.
8606     - Add --with-dmalloc ./configure option, to track memory leaks.
8607     - And try to free all memory on closing, so we can detect what
8608       we're leaking.
8609     - Cache local dns resolves correctly even when they're .exit
8610       addresses.
8611     - Give a better warning when some other server advertises an
8612       ORPort that is actually an apache running ssl.
8613     - Add "opt hibernating 1" to server descriptor to make it clearer
8614       whether the server is hibernating.
8617 Changes in version 0.0.9.6 - 2005-03-24
8618   o Bugfixes on 0.0.9.x (crashes and asserts):
8619     - Add new end stream reasons to maintainance branch. Fix bug where
8620       reason (8) could trigger an assert.  Prevent bug from recurring.
8621     - Apparently win32 stat wants paths to not end with a slash.
8622     - Fix assert triggers in assert_cpath_layer_ok(), where we were
8623       blowing away the circuit that conn->cpath_layer points to, then
8624       checking to see if the circ is well-formed. Backport check to make
8625       sure we dont use the cpath on a closed connection.
8626     - Prevent circuit_resume_edge_reading_helper() from trying to package
8627       inbufs for marked-for-close streams.
8628     - Don't crash on hup if your options->address has become unresolvable.
8629     - Some systems (like OS X) sometimes accept() a connection and tell
8630       you the remote host is 0.0.0.0:0. If this happens, due to some
8631       other mis-features, we get confused; so refuse the conn for now.
8633   o Bugfixes on 0.0.9.x (other):
8634     - Fix harmless but scary "Unrecognized content encoding" warn message.
8635     - Add new stream error reason: TORPROTOCOL reason means "you are not
8636       speaking a version of Tor I understand; say bye-bye to your stream."
8637     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
8638       into the future, now that we are more tolerant of skew. This
8639       resolves a bug where a Tor server would refuse to cache a directory
8640       because all the directories it gets are too far in the future;
8641       yet the Tor server never logs any complaints about clock skew.
8642     - Mac packaging magic: make man pages useable, and do not overwrite
8643       existing torrc files.
8644     - Make OS X log happily to /var/log/tor/tor.log
8647 Changes in version 0.0.9.5 - 2005-02-22
8648   o Bugfixes on 0.0.9.x:
8649     - Fix an assert race at exit nodes when resolve requests fail.
8650     - Stop picking unverified dir mirrors--it only leads to misery.
8651     - Patch from Matt Edman to make NT services work better. Service
8652       support is still not compiled into the executable by default.
8653     - Patch from Dmitri Bely so the Tor service runs better under
8654       the win32 SYSTEM account.
8655     - Make tor-resolve actually work (?) on Win32.
8656     - Fix a sign bug when getrlimit claims to have 4+ billion
8657       file descriptors available.
8658     - Stop refusing to start when bandwidthburst == bandwidthrate.
8659     - When create cells have been on the onion queue more than five
8660       seconds, just send back a destroy and take them off the list.
8663 Changes in version 0.0.9.4 - 2005-02-03
8664   o Bugfixes on 0.0.9:
8665     - Fix an assert bug that took down most of our servers: when
8666       a server claims to have 1 GB of bandwidthburst, don't
8667       freak out.
8668     - Don't crash as badly if we have spawned the max allowed number
8669       of dnsworkers, or we're out of file descriptors.
8670     - Block more file-sharing ports in the default exit policy.
8671     - MaxConn is now automatically set to the hard limit of max
8672       file descriptors we're allowed (ulimit -n), minus a few for
8673       logs, etc.
8674     - Give a clearer message when servers need to raise their
8675       ulimit -n when they start running out of file descriptors.
8676     - SGI Compatibility patches from Jan Schaumann.
8677     - Tolerate a corrupt cached directory better.
8678     - When a dirserver hasn't approved your server, list which one.
8679     - Go into soft hibernation after 95% of the bandwidth is used,
8680       not 99%. This is especially important for daily hibernators who
8681       have a small accounting max. Hopefully it will result in fewer
8682       cut connections when the hard hibernation starts.
8683     - Load-balance better when using servers that claim more than
8684       800kB/s of capacity.
8685     - Make NT services work (experimental, only used if compiled in).
8688 Changes in version 0.0.9.3 - 2005-01-21
8689   o Bugfixes on 0.0.9:
8690     - Backport the cpu use fixes from main branch, so busy servers won't
8691       need as much processor time.
8692     - Work better when we go offline and then come back, or when we
8693       run Tor at boot before the network is up. We do this by
8694       optimistically trying to fetch a new directory whenever an
8695       application request comes in and we think we're offline -- the
8696       human is hopefully a good measure of when the network is back.
8697     - Backport some minimal hidserv bugfixes: keep rend circuits open as
8698       long as you keep using them; actually publish hidserv descriptors
8699       shortly after they change, rather than waiting 20-40 minutes.
8700     - Enable Mac startup script by default.
8701     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
8702     - When you update AllowUnverifiedNodes or FirewallPorts via the
8703       controller's setconf feature, we were always appending, never
8704       resetting.
8705     - When you update HiddenServiceDir via setconf, it was screwing up
8706       the order of reading the lines, making it fail.
8707     - Do not rewrite a cached directory back to the cache; otherwise we
8708       will think it is recent and not fetch a newer one on startup.
8709     - Workaround for webservers that lie about Content-Encoding: Tor
8710       now tries to autodetect compressed directories and compression
8711       itself. This lets us Proxypass dir fetches through apache.
8714 Changes in version 0.0.9.2 - 2005-01-04
8715   o Bugfixes on 0.0.9 (crashes and asserts):
8716     - Fix an assert on startup when the disk is full and you're logging
8717       to a file.
8718     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
8719       style address, then we'd crash.
8720     - Fix an assert trigger when the running-routers string we get from
8721       a dirserver is broken.
8722     - Make worker threads start and run on win32. Now win32 servers
8723       may work better.
8724     - Bandaid (not actually fix, but now it doesn't crash) an assert
8725       where the dns worker dies mysteriously and the main Tor process
8726       doesn't remember anything about the address it was resolving.
8728   o Bugfixes on 0.0.9 (Win32):
8729     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
8730       name out of the warning/assert messages.
8731     - Fix a superficial "unhandled error on read" bug on win32.
8732     - The win32 installer no longer requires a click-through for our
8733       license, since our Free Software license grants rights but does not
8734       take any away.
8735     - Win32: When connecting to a dirserver fails, try another one
8736       immediately. (This was already working for non-win32 Tors.)
8737     - Stop trying to parse $HOME on win32 when hunting for default
8738       DataDirectory.
8739     - Make tor-resolve.c work on win32 by calling network_init().
8741   o Bugfixes on 0.0.9 (other):
8742     - Make 0.0.9.x build on Solaris again.
8743     - Due to a fencepost error, we were blowing away the \n when reporting
8744       confvalue items in the controller. So asking for multiple config
8745       values at once couldn't work.
8746     - When listing circuits that are pending on an opening OR connection,
8747       if we're an OR we were listing circuits that *end* at us as
8748       being pending on every listener, dns/cpu worker, etc. Stop that.
8749     - Dirservers were failing to create 'running-routers' or 'directory'
8750       strings if we had more than some threshold of routers. Fix them so
8751       they can handle any number of routers.
8752     - Fix a superficial "Duplicate mark for close" bug.
8753     - Stop checking for clock skew for OR connections, even for servers.
8754     - Fix a fencepost error that was chopping off the last letter of any
8755       nickname that is the maximum allowed nickname length.
8756     - Update URLs in log messages so they point to the new website.
8757     - Fix a potential problem in mangling server private keys while
8758       writing to disk (not triggered yet, as far as we know).
8759     - Include the licenses for other free software we include in Tor,
8760       now that we're shipping binary distributions more regularly.
8763 Changes in version 0.0.9.1 - 2004-12-15
8764   o Bugfixes on 0.0.9:
8765     - Make hibernation actually work.
8766     - Make HashedControlPassword config option work.
8767     - When we're reporting event circuit status to a controller,
8768       don't use the stream status code.
8771 Changes in version 0.0.9 - 2004-12-12
8772   o Cleanups:
8773     - Clean up manpage and torrc.sample file.
8774     - Clean up severities and text of log warnings.
8775   o Mistakes:
8776     - Make servers trigger an assert when they enter hibernation.
8779 Changes in version 0.0.9rc7 - 2004-12-08
8780   o Bugfixes on 0.0.9rc:
8781     - Fix a stack-trashing crash when an exit node begins hibernating.
8782     - Avoid looking at unallocated memory while considering which
8783       ports we need to build circuits to cover.
8784     - Stop a sigpipe: when an 'end' cell races with eof from the app,
8785       we shouldn't hold-open-until-flush if the eof arrived first.
8786     - Fix a bug with init_cookie_authentication() in the controller.
8787     - When recommending new-format log lines, if the upper bound is
8788       LOG_ERR, leave it implicit.
8790   o Bugfixes on 0.0.8.1:
8791     - Fix a whole slew of memory leaks.
8792     - Fix isspace() and friends so they still make Solaris happy
8793       but also so they don't trigger asserts on win32.
8794     - Fix parse_iso_time on platforms without strptime (eg win32).
8795     - win32: tolerate extra "readable" events better.
8796     - win32: when being multithreaded, leave parent fdarray open.
8797     - Make unit tests work on win32.
8800 Changes in version 0.0.9rc6 - 2004-12-06
8801   o Bugfixes on 0.0.9pre:
8802     - Clean up some more integer underflow opportunities (not exploitable
8803       we think).
8804     - While hibernating, hup should not regrow our listeners.
8805     - Send an end to the streams we close when we hibernate, rather
8806       than just chopping them off.
8807     - React to eof immediately on non-open edge connections.
8809   o Bugfixes on 0.0.8.1:
8810     - Calculate timeout for waiting for a connected cell from the time
8811       we sent the begin cell, not from the time the stream started. If
8812       it took a long time to establish the circuit, we would time out
8813       right after sending the begin cell.
8814     - Fix router_compare_addr_to_addr_policy: it was not treating a port
8815       of * as always matching, so we were picking reject *:* nodes as
8816       exit nodes too. Oops.
8818   o Features:
8819     - New circuit building strategy: keep a list of ports that we've
8820       used in the past 6 hours, and always try to have 2 circuits open
8821       or on the way that will handle each such port. Seed us with port
8822       80 so web users won't complain that Tor is "slow to start up".
8823     - Make kill -USR1 dump more useful stats about circuits.
8824     - When warning about retrying or giving up, print the address, so
8825       the user knows which one it's talking about.
8826     - If you haven't used a clean circuit in an hour, throw it away,
8827       just to be on the safe side. (This means after 6 hours a totally
8828       unused Tor client will have no circuits open.)
8831 Changes in version 0.0.9rc5 - 2004-12-01
8832   o Bugfixes on 0.0.8.1:
8833     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
8834     - Let resolve conns retry/expire also, rather than sticking around
8835       forever.
8836     - If we are using select, make sure we stay within FD_SETSIZE.
8838   o Bugfixes on 0.0.9pre:
8839     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
8840       but doesn't seem to be currently; thanks to Ilja van Sprundel for
8841       finding it.
8842     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
8843       instead.  Impose minima and maxima for all *Period options; impose
8844       even tighter maxima for fetching if we are a caching dirserver.
8845       Clip rather than rejecting.
8846     - Fetch cached running-routers from servers that serve it (that is,
8847       authdirservers and servers running 0.0.9rc5-cvs or later.)
8849   o Features:
8850     - Accept *:706 (silc) in default exit policy.
8851     - Implement new versioning format for post 0.1.
8852     - Support "foo.nickname.exit" addresses, to let Alice request the
8853       address "foo" as viewed by exit node "nickname". Based on a patch
8854       by Geoff Goodell.
8855     - Make tor --version --version dump the cvs Id of every file.
8858 Changes in version 0.0.9rc4 - 2004-11-28
8859   o Bugfixes on 0.0.8.1:
8860     - Make windows sockets actually non-blocking (oops), and handle
8861       win32 socket errors better.
8863   o Bugfixes on 0.0.9rc1:
8864     - Actually catch the -USR2 signal.
8867 Changes in version 0.0.9rc3 - 2004-11-25
8868   o Bugfixes on 0.0.8.1:
8869     - Flush the log file descriptor after we print "Tor opening log file",
8870       so we don't see those messages days later.
8872   o Bugfixes on 0.0.9rc1:
8873     - Make tor-resolve work again.
8874     - Avoid infinite loop in tor-resolve if tor hangs up on it.
8875     - Fix an assert trigger for clients/servers handling resolves.
8878 Changes in version 0.0.9rc2 - 2004-11-24
8879   o Bugfixes on 0.0.9rc1:
8880     - I broke socks5 support while fixing the eof bug.
8881     - Allow unitless bandwidths and intervals; they default to bytes
8882       and seconds.
8883     - New servers don't start out hibernating; they are active until
8884       they run out of bytes, so they have a better estimate of how
8885       long it takes, and so their operators can know they're working.
8888 Changes in version 0.0.9rc1 - 2004-11-23
8889   o Bugfixes on 0.0.8.1:
8890     - Finally fix a bug that's been plaguing us for a year:
8891       With high load, circuit package window was reaching 0. Whenever
8892       we got a circuit-level sendme, we were reading a lot on each
8893       socket, but only writing out a bit. So we would eventually reach
8894       eof. This would be noticed and acted on even when there were still
8895       bytes sitting in the inbuf.
8896     - When poll() is interrupted, we shouldn't believe the revents values.
8898   o Bugfixes on 0.0.9pre6:
8899     - Fix hibernate bug that caused pre6 to be broken.
8900     - Don't keep rephist info for routers that haven't had activity for
8901       24 hours. (This matters now that clients have keys, since we track
8902       them too.)
8903     - Never call close_temp_logs while validating log options.
8904     - Fix backslash-escaping on tor.sh.in and torctl.in.
8906   o Features:
8907     - Implement weekly/monthly/daily accounting: now you specify your
8908       hibernation properties by
8909       AccountingMax N bytes|KB|MB|GB|TB
8910       AccountingStart day|week|month [day] HH:MM
8911         Defaults to "month 1 0:00".
8912     - Let bandwidth and interval config options be specified as 5 bytes,
8913       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
8914     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
8915       get back to normal.)
8916     - If your requested entry or exit node has advertised bandwidth 0,
8917       pick it anyway.
8918     - Be more greedy about filling up relay cells -- we try reading again
8919       once we've processed the stuff we read, in case enough has arrived
8920       to fill the last cell completely.
8921     - Apply NT service patch from Osamu Fujino. Still needs more work.
8924 Changes in version 0.0.9pre6 - 2004-11-15
8925   o Bugfixes on 0.0.8.1:
8926     - Fix assert failure on malformed socks4a requests.
8927     - Use identity comparison, not nickname comparison, to choose which
8928       half of circuit-ID-space each side gets to use. This is needed
8929       because sometimes we think of a router as a nickname, and sometimes
8930       as a hex ID, and we can't predict what the other side will do.
8931     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
8932       write() call will fail and we handle it there.
8933     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
8934       and smartlist_len, which are two major profiling offenders.
8936   o Bugfixes on 0.0.9pre5:
8937     - Fix a bug in read_all that was corrupting config files on windows.
8938     - When we're raising the max number of open file descriptors to
8939       'unlimited', don't log that we just raised it to '-1'.
8940     - Include event code with events, as required by control-spec.txt.
8941     - Don't give a fingerprint when clients do --list-fingerprint:
8942       it's misleading, because it will never be the same again.
8943     - Stop using strlcpy in tor_strndup, since it was slowing us
8944       down a lot.
8945     - Remove warn on startup about missing cached-directory file.
8946     - Make kill -USR1 work again.
8947     - Hibernate if we start tor during the "wait for wakeup-time" phase
8948       of an accounting interval. Log our hibernation plans better.
8949     - Authoritative dirservers now also cache their directory, so they
8950       have it on start-up.
8952   o Features:
8953     - Fetch running-routers; cache running-routers; compress
8954       running-routers; serve compressed running-routers.z
8955     - Add NSI installer script contributed by J Doe.
8956     - Commit VC6 and VC7 workspace/project files.
8957     - Commit a tor.spec for making RPM files, with help from jbash.
8958     - Add contrib/torctl.in contributed by Glenn Fink.
8959     - Implement the control-spec's SAVECONF command, to write your
8960       configuration to torrc.
8961     - Get cookie authentication for the controller closer to working.
8962     - Include control-spec.txt in the tarball.
8963     - When set_conf changes our server descriptor, upload a new copy.
8964       But don't upload it too often if there are frequent changes.
8965     - Document authentication config in man page, and document signals
8966       we catch.
8967     - Clean up confusing parts of man page and torrc.sample.
8968     - Make expand_filename handle ~ and ~username.
8969     - Use autoconf to enable largefile support where necessary. Use
8970       ftello where available, since ftell can fail at 2GB.
8971     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
8972       log more informatively.
8973     - Give a slightly more useful output for "tor -h".
8974     - Refuse application socks connections to port 0.
8975     - Check clock skew for verified servers, but allow unverified
8976       servers and clients to have any clock skew.
8977     - Break DirFetchPostPeriod into:
8978       - DirFetchPeriod for fetching full directory,
8979       - StatusFetchPeriod for fetching running-routers,
8980       - DirPostPeriod for posting server descriptor,
8981       - RendPostPeriod for posting hidden service descriptors.
8982     - Make sure the hidden service descriptors are at a random offset
8983       from each other, to hinder linkability.
8986 Changes in version 0.0.9pre5 - 2004-11-09
8987   o Bugfixes on 0.0.9pre4:
8988     - Fix a seg fault in unit tests (doesn't affect main program).
8989     - Fix an assert bug where a hidden service provider would fail if
8990       the first hop of his rendezvous circuit was down.
8991     - Hidden service operators now correctly handle version 1 style
8992       INTRODUCE1 cells (nobody generates them still, so not a critical
8993       bug).
8994     - If do_hup fails, actually notice.
8995     - Handle more errnos from accept() without closing the listener.
8996       Some OpenBSD machines were closing their listeners because
8997       they ran out of file descriptors.
8998     - Send resolve cells to exit routers that are running a new
8999       enough version of the resolve code to work right.
9000     - Better handling of winsock includes on non-MSV win32 compilers.
9001     - Some people had wrapped their tor client/server in a script
9002       that would restart it whenever it died. This did not play well
9003       with our "shut down if your version is obsolete" code. Now people
9004       don't fetch a new directory if their local cached version is
9005       recent enough.
9006     - Make our autogen.sh work on ksh as well as bash.
9008   o Major Features:
9009     - Hibernation: New config option "AccountingMaxKB" lets you
9010       set how many KBytes per month you want to allow your server to
9011       consume. Rather than spreading those bytes out evenly over the
9012       month, we instead hibernate for some of the month and pop up
9013       at a deterministic time, work until the bytes are consumed, then
9014       hibernate again. Config option "MonthlyAccountingStart" lets you
9015       specify which day of the month your billing cycle starts on.
9016     - Control interface: a separate program can now talk to your
9017       client/server over a socket, and get/set config options, receive
9018       notifications of circuits and streams starting/finishing/dying,
9019       bandwidth used, etc. The next step is to get some GUIs working.
9020       Let us know if you want to help out. See doc/control-spec.txt .
9021     - Ship a contrib/tor-control.py as an example script to interact
9022       with the control port.
9023     - "tor --hash-password zzyxz" will output a salted password for
9024       use in authenticating to the control interface.
9025     - New log format in config:
9026       "Log minsev[-maxsev] stdout|stderr|syslog" or
9027       "Log minsev[-maxsev] file /var/foo"
9029   o Minor Features:
9030     - DirPolicy config option, to let people reject incoming addresses
9031       from their dirserver.
9032     - "tor --list-fingerprint" will list your identity key fingerprint
9033       and then exit.
9034     - Add "pass" target for RedirectExit, to make it easier to break
9035       out of a sequence of RedirectExit rules.
9036     - Clients now generate a TLS cert too, in preparation for having
9037       them act more like real nodes.
9038     - Ship src/win32/ in the tarball, so people can use it to build.
9039     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
9040       is broken.
9041     - New "router-status" line in directory, to better bind each verified
9042       nickname to its identity key.
9043     - Deprecate unofficial config option abbreviations, and abbreviations
9044       not on the command line.
9045     - Add a pure-C tor-resolve implementation.
9046     - Use getrlimit and friends to ensure we can reach MaxConn (currently
9047       1024) file descriptors.
9049   o Code security improvements, inspired by Ilja:
9050     - Replace sprintf with snprintf. (I think they were all safe, but
9051       hey.)
9052     - Replace strcpy/strncpy with strlcpy in more places.
9053     - Avoid strcat; use snprintf or strlcat instead.
9054     - snprintf wrapper with consistent (though not C99) overflow behavior.
9057 Changes in version 0.0.9pre4 - 2004-10-17
9058   o Bugfixes on 0.0.9pre3:
9059     - If the server doesn't specify an exit policy, use the real default
9060       exit policy, not reject *:*.
9061     - Ignore fascistfirewall when uploading/downloading hidden service
9062       descriptors, since we go through Tor for those; and when using
9063       an HttpProxy, since we assume it can reach them all.
9064     - When looking for an authoritative dirserver, use only the ones
9065       configured at boot. Don't bother looking in the directory.
9066     - The rest of the fix for get_default_conf_file() on older win32.
9067     - Make 'Routerfile' config option obsolete.
9069   o Features:
9070     - New 'MyFamily nick1,...' config option for a server to
9071       specify other servers that shouldn't be used in the same circuit
9072       with it. Only believed if nick1 also specifies us.
9073     - New 'NodeFamily nick1,nick2,...' config option for a client to
9074       specify nodes that it doesn't want to use in the same circuit.
9075     - New 'Redirectexit pattern address:port' config option for a
9076       server to redirect exit connections, e.g. to a local squid.
9079 Changes in version 0.0.9pre3 - 2004-10-13
9080   o Bugfixes on 0.0.8.1:
9081     - Better torrc example lines for dirbindaddress and orbindaddress.
9082     - Improved bounds checking on parsed ints (e.g. config options and
9083       the ones we find in directories.)
9084     - Better handling of size_t vs int, so we're more robust on 64
9085       bit platforms.
9086     - Fix the rest of the bug where a newly started OR would appear
9087       as unverified even after we've added his fingerprint and hupped
9088       the dirserver.
9089     - Fix a bug from 0.0.7: when read() failed on a stream, we would
9090       close it without sending back an end. So 'connection refused'
9091       would simply be ignored and the user would get no response.
9093   o Bugfixes on 0.0.9pre2:
9094     - Serving the cached-on-disk directory to people is bad. We now
9095       provide no directory until we've fetched a fresh one.
9096     - Workaround for bug on windows where cached-directories get crlf
9097       corruption.
9098     - Make get_default_conf_file() work on older windows too.
9099     - If we write a *:* exit policy line in the descriptor, don't write
9100       any more exit policy lines.
9102   o Features:
9103     - Use only 0.0.9pre1 and later servers for resolve cells.
9104     - Make the dirservers file obsolete.
9105       - Include a dir-signing-key token in directories to tell the
9106         parsing entity which key is being used to sign.
9107       - Remove the built-in bulky default dirservers string.
9108       - New config option "Dirserver %s:%d [fingerprint]", which can be
9109         repeated as many times as needed. If no dirservers specified,
9110         default to moria1,moria2,tor26.
9111     - Make moria2 advertise a dirport of 80, so people behind firewalls
9112       will be able to get a directory.
9113     - Http proxy support
9114       - Dirservers translate requests for http://%s:%d/x to /x
9115       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
9116         be routed through this host.
9117       - Clients ask for /tor/x rather than /x for new enough dirservers.
9118         This way we can one day coexist peacefully with apache.
9119       - Clients specify a "Host: %s%d" http header, to be compatible
9120         with more proxies, and so running squid on an exit node can work.
9123 Changes in version 0.0.8.1 - 2004-10-13
9124   o Bugfixes:
9125     - Fix a seg fault that can be triggered remotely for Tor
9126       clients/servers with an open dirport.
9127     - Fix a rare assert trigger, where routerinfos for entries in
9128       our cpath would expire while we're building the path.
9129     - Fix a bug in OutboundBindAddress so it (hopefully) works.
9130     - Fix a rare seg fault for people running hidden services on
9131       intermittent connections.
9132     - Fix a bug in parsing opt keywords with objects.
9133     - Fix a stale pointer assert bug when a stream detaches and
9134       reattaches.
9135     - Fix a string format vulnerability (probably not exploitable)
9136       in reporting stats locally.
9137     - Fix an assert trigger: sometimes launching circuits can fail
9138       immediately, e.g. because too many circuits have failed recently.
9139     - Fix a compile warning on 64 bit platforms.
9142 Changes in version 0.0.9pre2 - 2004-10-03
9143   o Bugfixes:
9144     - Make fetching a cached directory work for 64-bit platforms too.
9145     - Make zlib.h a required header, not an optional header.
9148 Changes in version 0.0.9pre1 - 2004-10-01
9149   o Bugfixes:
9150     - Stop using separate defaults for no-config-file and
9151       empty-config-file. Now you have to explicitly turn off SocksPort,
9152       if you don't want it open.
9153     - Fix a bug in OutboundBindAddress so it (hopefully) works.
9154     - Improve man page to mention more of the 0.0.8 features.
9155     - Fix a rare seg fault for people running hidden services on
9156       intermittent connections.
9157     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
9158       happier.
9159     - Fix more dns related bugs: send back resolve_failed and end cells
9160       more reliably when the resolve fails, rather than closing the
9161       circuit and then trying to send the cell. Also attach dummy resolve
9162       connections to a circuit *before* calling dns_resolve(), to fix
9163       a bug where cached answers would never be sent in RESOLVED cells.
9164     - When we run out of disk space, or other log writing error, don't
9165       crash. Just stop logging to that log and continue.
9166     - We were starting to daemonize before we opened our logs, so if
9167       there were any problems opening logs, we would complain to stderr,
9168       which wouldn't work, and then mysteriously exit.
9169     - Fix a rare bug where sometimes a verified OR would connect to us
9170       before he'd uploaded his descriptor, which would cause us to
9171       assign conn->nickname as though he's unverified. Now we look through
9172       the fingerprint list to see if he's there.
9173     - Fix a rare assert trigger, where routerinfos for entries in
9174       our cpath would expire while we're building the path.
9176   o Features:
9177     - Clients can ask dirservers for /dir.z to get a compressed version
9178       of the directory. Only works for servers running 0.0.9, of course.
9179     - Make clients cache directories and use them to seed their router
9180       lists at startup. This means clients have a datadir again.
9181     - Configuration infrastructure support for warning on obsolete
9182       options.
9183     - Respond to content-encoding headers by trying to uncompress as
9184       appropriate.
9185     - Reply with a deflated directory when a client asks for "dir.z".
9186       We could use allow-encodings instead, but allow-encodings isn't
9187       specified in HTTP 1.0.
9188     - Raise the max dns workers from 50 to 100.
9189     - Discourage people from setting their dirfetchpostperiod more often
9190       than once per minute.
9191     - Protect dirservers from overzealous descriptor uploading -- wait
9192       10 seconds after directory gets dirty, before regenerating.
9195 Changes in version 0.0.8 - 2004-08-25
9196   o Port it to SunOS 5.9 / Athena
9199 Changes in version 0.0.8rc2 - 2004-08-20
9200   o Make it compile on cygwin again.
9201   o When picking unverified routers, skip those with low uptime and/or
9202     low bandwidth, depending on what properties you care about.
9205 Changes in version 0.0.8rc1 - 2004-08-18
9206   o Changes from 0.0.7.3:
9207     - Bugfixes:
9208       - Fix assert triggers: if the other side returns an address 0.0.0.0,
9209         don't put it into the client dns cache.
9210       - If a begin failed due to exit policy, but we believe the IP address
9211         should have been allowed, switch that router to exitpolicy reject *:*
9212         until we get our next directory.
9213     - Features:
9214       - Clients choose nodes proportional to advertised bandwidth.
9215       - Avoid using nodes with low uptime as introduction points.
9216       - Handle servers with dynamic IP addresses: don't replace
9217         options->Address with the resolved one at startup, and
9218         detect our address right before we make a routerinfo each time.
9219       - 'FascistFirewall' option to pick dirservers and ORs on specific
9220         ports; plus 'FirewallPorts' config option to tell FascistFirewall
9221         which ports are open. (Defaults to 80,443)
9222       - Be more aggressive about trying to make circuits when the network
9223         has changed (e.g. when you unsuspend your laptop).
9224       - Check for time skew on http headers; report date in response to
9225         "GET /".
9226       - If the entrynode config line has only one node, don't pick it as
9227         an exitnode.
9228       - Add strict{entry|exit}nodes config options. If set to 1, then
9229         we refuse to build circuits that don't include the specified entry
9230         or exit nodes.
9231       - OutboundBindAddress config option, to bind to a specific
9232         IP address for outgoing connect()s.
9233       - End truncated log entries (e.g. directories) with "[truncated]".
9235   o Patches to 0.0.8preX:
9236     - Bugfixes:
9237       - Patches to compile and run on win32 again (maybe)?
9238       - Fix crash when looking for ~/.torrc with no $HOME set.
9239       - Fix a race bug in the unit tests.
9240       - Handle verified/unverified name collisions better when new
9241         routerinfo's arrive in a directory.
9242       - Sometimes routers were getting entered into the stats before
9243         we'd assigned their identity_digest. Oops.
9244       - Only pick and establish intro points after we've gotten a
9245         directory.
9246     - Features:
9247       - AllowUnverifiedNodes config option to let circuits choose no-name
9248         routers in entry,middle,exit,introduction,rendezvous positions.
9249         Allow middle and rendezvous positions by default.
9250       - Add a man page for tor-resolve.
9253 Changes in version 0.0.7.3 - 2004-08-12
9254   o Stop dnsworkers from triggering an assert failure when you
9255     ask them to resolve the host "".
9258 Changes in version 0.0.8pre3 - 2004-08-09
9259   o Changes from 0.0.7.2:
9260     - Allow multiple ORs with same nickname in routerlist -- now when
9261       people give us one identity key for a nickname, then later
9262       another, we don't constantly complain until the first expires.
9263     - Remember used bandwidth (both in and out), and publish 15-minute
9264       snapshots for the past day into our descriptor.
9265     - You can now fetch $DIRURL/running-routers to get just the
9266       running-routers line, not the whole descriptor list. (But
9267       clients don't use this yet.)
9268     - When people mistakenly use Tor as an http proxy, point them
9269       at the tor-doc.html rather than the INSTALL.
9270     - Remove our mostly unused -- and broken -- hex_encode()
9271       function. Use base16_encode() instead. (Thanks to Timo Lindfors
9272       for pointing out this bug.)
9273     - Rotate onion keys every 12 hours, not every 2 hours, so we have
9274       fewer problems with people using the wrong key.
9275     - Change the default exit policy to reject the default edonkey,
9276       kazaa, gnutella ports.
9277     - Add replace_file() to util.[ch] to handle win32's rename().
9279   o Changes from 0.0.8preX:
9280     - Fix two bugs in saving onion keys to disk when rotating, so
9281       hopefully we'll get fewer people using old onion keys.
9282     - Fix an assert error that was making SocksPolicy not work.
9283     - Be willing to expire routers that have an open dirport -- it's
9284       just the authoritative dirservers we want to not forget.
9285     - Reject tor-resolve requests for .onion addresses early, so we
9286       don't build a whole rendezvous circuit and then fail.
9287     - When you're warning a server that he's unverified, don't cry
9288       wolf unpredictably.
9289     - Fix a race condition: don't try to extend onto a connection
9290       that's still handshaking.
9291     - For servers in clique mode, require the conn to be open before
9292       you'll choose it for your path.
9293     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
9294       end relay cell, etc.
9295     - Measure bandwidth capacity over the last 24 hours, not just 12
9296     - Bugfix: authoritative dirservers were making and signing a new
9297       directory for each client, rather than reusing the cached one.
9300 Changes in version 0.0.8pre2 - 2004-08-04
9301   o Changes from 0.0.7.2:
9302     - Security fixes:
9303       - Check directory signature _before_ you decide whether you're
9304         you're running an obsolete version and should exit.
9305       - Check directory signature _before_ you parse the running-routers
9306         list to decide who's running or verified.
9307     - Bugfixes and features:
9308       - Check return value of fclose while writing to disk, so we don't
9309         end up with broken files when servers run out of disk space.
9310       - Log a warning if the user uses an unsafe socks variant, so people
9311         are more likely to learn about privoxy or socat.
9312       - Dirservers now include RFC1123-style dates in the HTTP headers,
9313         which one day we will use to better detect clock skew.
9315   o Changes from 0.0.8pre1:
9316     - Make it compile without warnings again on win32.
9317     - Log a warning if you're running an unverified server, to let you
9318       know you might want to get it verified.
9319     - Only pick a default nickname if you plan to be a server.
9322 Changes in version 0.0.8pre1 - 2004-07-23
9323   o Bugfixes:
9324     - Made our unit tests compile again on OpenBSD 3.5, and tor
9325       itself compile again on OpenBSD on a sparc64.
9326     - We were neglecting milliseconds when logging on win32, so
9327       everything appeared to happen at the beginning of each second.
9329   o Protocol changes:
9330     - 'Extend' relay cell payloads now include the digest of the
9331       intended next hop's identity key. Now we can verify that we're
9332       extending to the right router, and also extend to routers we
9333       hadn't heard of before.
9335   o Features:
9336     - Tor nodes can now act as relays (with an advertised ORPort)
9337       without being manually verified by the dirserver operators.
9338       - Uploaded descriptors of unverified routers are now accepted
9339         by the dirservers, and included in the directory.
9340       - Verified routers are listed by nickname in the running-routers
9341         list; unverified routers are listed as "$<fingerprint>".
9342       - We now use hash-of-identity-key in most places rather than
9343         nickname or addr:port, for improved security/flexibility.
9344       - To avoid Sybil attacks, paths still use only verified servers.
9345         But now we have a chance to play around with hybrid approaches.
9346       - Nodes track bandwidth usage to estimate capacity (not used yet).
9347       - ClientOnly option for nodes that never want to become servers.
9348     - Directory caching.
9349       - "AuthoritativeDir 1" option for the official dirservers.
9350       - Now other nodes (clients and servers) will cache the latest
9351         directory they've pulled down.
9352       - They can enable their DirPort to serve it to others.
9353       - Clients will pull down a directory from any node with an open
9354         DirPort, and check the signature/timestamp correctly.
9355       - Authoritative dirservers now fetch directories from other
9356         authdirservers, to stay better synced.
9357       - Running-routers list tells who's down also, along with noting
9358         if they're verified (listed by nickname) or unverified (listed
9359         by hash-of-key).
9360       - Allow dirservers to serve running-router list separately.
9361         This isn't used yet.
9362     - ORs connect-on-demand to other ORs
9363       - If you get an extend cell to an OR you're not connected to,
9364         connect, handshake, and forward the create cell.
9365       - The authoritative dirservers stay connected to everybody,
9366         and everybody stays connected to 0.0.7 servers, but otherwise
9367         clients/servers expire unused connections after 5 minutes.
9368     - When servers get a sigint, they delay 30 seconds (refusing new
9369       connections) then exit. A second sigint causes immediate exit.
9370     - File and name management:
9371       - Look for .torrc if no CONFDIR "torrc" is found.
9372       - If no datadir is defined, then choose, make, and secure ~/.tor
9373         as datadir.
9374       - If torrc not found, exitpolicy reject *:*.
9375       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
9376       - If no nickname is defined, derive default from hostname.
9377       - Rename secret key files, e.g. identity.key -> secret_id_key,
9378         to discourage people from mailing their identity key to tor-ops.
9379     - Refuse to build a circuit before the directory has arrived --
9380       it won't work anyway, since you won't know the right onion keys
9381       to use.
9382     - Try other dirservers immediately if the one you try is down. This
9383       should tolerate down dirservers better now.
9384     - Parse tor version numbers so we can do an is-newer-than check
9385       rather than an is-in-the-list check.
9386     - New socks command 'resolve', to let us shim gethostbyname()
9387       locally.
9388       - A 'tor_resolve' script to access the socks resolve functionality.
9389       - A new socks-extensions.txt doc file to describe our
9390         interpretation and extensions to the socks protocols.
9391     - Add a ContactInfo option, which gets published in descriptor.
9392     - Publish OR uptime in descriptor (and thus in directory) too.
9393     - Write tor version at the top of each log file
9394     - New docs in the tarball:
9395       - tor-doc.html.
9396       - Document that you should proxy your SSL traffic too.
9399 Changes in version 0.0.7.2 - 2004-07-07
9400   o A better fix for the 0.0.0.0 problem, that will hopefully
9401     eliminate the remaining related assertion failures.
9404 Changes in version 0.0.7.1 - 2004-07-04
9405   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
9406     since internally we use 0.0.0.0 to signify "not yet resolved".
9409 Changes in version 0.0.7 - 2004-06-07
9410   o Updated the man page to reflect the new features.
9413 Changes in version 0.0.7rc2 - 2004-06-06
9414   o Changes from 0.0.7rc1:
9415     - Make it build on Win32 again.
9416   o Changes from 0.0.6.2:
9417     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
9418       settings too.
9421 Changes in version 0.0.7rc1 - 2004-06-02
9422   o Bugfixes:
9423     - On sighup, we were adding another log without removing the first
9424       one. So log messages would get duplicated n times for n sighups.
9425     - Several cases of using a connection after we'd freed it. The
9426       problem was that connections that are pending resolve are in both
9427       the pending_resolve tree, and also the circuit's resolving_streams
9428       list. When you want to remove one, you must remove it from both.
9429     - Fix a double-mark-for-close where an end cell arrived for a
9430       resolving stream, and then the resolve failed.
9431     - Check directory signatures based on name of signer, not on whom
9432       we got the directory from. This will let us cache directories more
9433       easily.
9434   o Features:
9435     - Crank up some of our constants to handle more users.
9438 Changes in version 0.0.7pre1 - 2004-06-02
9439   o Fixes for crashes and other obnoxious bugs:
9440     - Fix an epipe bug: sometimes when directory connections failed
9441       to connect, we would give them a chance to flush before closing
9442       them.
9443     - When we detached from a circuit because of resolvefailed, we
9444       would immediately try the same circuit twice more, and then
9445       give up on the resolve thinking we'd tried three different
9446       exit nodes.
9447     - Limit the number of intro circuits we'll attempt to build for a
9448       hidden service per 15-minute period.
9449     - Check recommended-software string *early*, before actually parsing
9450       the directory. Thus we can detect an obsolete version and exit,
9451       even if the new directory format doesn't parse.
9452   o Fixes for security bugs:
9453     - Remember which nodes are dirservers when you startup, and if a
9454       random OR enables his dirport, don't automatically assume he's
9455       a trusted dirserver.
9456   o Other bugfixes:
9457     - Directory connections were asking the wrong poll socket to
9458       start writing, and not asking themselves to start writing.
9459     - When we detached from a circuit because we sent a begin but
9460       didn't get a connected, we would use it again the first time;
9461       but after that we would correctly switch to a different one.
9462     - Stop warning when the first onion decrypt attempt fails; they
9463       will sometimes legitimately fail now that we rotate keys.
9464     - Override unaligned-access-ok check when $host_cpu is ia64 or
9465       arm. Apparently they allow it but the kernel whines.
9466     - Dirservers try to reconnect periodically too, in case connections
9467       have failed.
9468     - Fix some memory leaks in directory servers.
9469     - Allow backslash in Win32 filenames.
9470     - Made Tor build complain-free on FreeBSD, hopefully without
9471       breaking other BSD builds. We'll see.
9472   o Features:
9473     - Doxygen markup on all functions and global variables.
9474     - Make directory functions update routerlist, not replace it. So
9475       now directory disagreements are not so critical a problem.
9476     - Remove the upper limit on number of descriptors in a dirserver's
9477       directory (not that we were anywhere close).
9478     - Allow multiple logfiles at different severity ranges.
9479     - Allow *BindAddress to specify ":port" rather than setting *Port
9480       separately. Allow multiple instances of each BindAddress config
9481       option, so you can bind to multiple interfaces if you want.
9482     - Allow multiple exit policy lines, which are processed in order.
9483       Now we don't need that huge line with all the commas in it.
9484     - Enable accept/reject policies on SOCKS connections, so you can bind
9485       to 0.0.0.0 but still control who can use your OP.
9488 Changes in version 0.0.6.2 - 2004-05-16
9489   o Our integrity-checking digest was checking only the most recent cell,
9490     not the previous cells like we'd thought.
9491     Thanks to Stefan Mark for finding the flaw!
9494 Changes in version 0.0.6.1 - 2004-05-06
9495   o Fix two bugs in our AES counter-mode implementation (this affected
9496     onion-level stream encryption, but not TLS-level). It turns
9497     out we were doing something much more akin to a 16-character
9498     polyalphabetic cipher. Oops.
9499     Thanks to Stefan Mark for finding the flaw!
9500   o Retire moria3 as a directory server, and add tor26 as a directory
9501     server.
9504 Changes in version 0.0.6 - 2004-05-02
9505   [version bump only]
9508 Changes in version 0.0.6rc4 - 2004-05-01
9509   o Update the built-in dirservers list to use the new directory format
9510   o Fix a rare seg fault: if a node offering a hidden service attempts
9511     to build a circuit to Alice's rendezvous point and fails before it
9512     reaches the last hop, it retries with a different circuit, but
9513     then dies.
9514   o Handle windows socket errors correctly.
9517 Changes in version 0.0.6rc3 - 2004-04-28
9518   o Don't expire non-general excess circuits (if we had enough
9519     circuits open, we were expiring rendezvous circuits -- even
9520     when they had a stream attached. oops.)
9521   o Fetch randomness from /dev/urandom better (not via fopen/fread)
9522   o Better debugging for tls errors
9523   o Some versions of openssl have an SSL_pending function that erroneously
9524     returns bytes when there is a non-application record pending.
9525   o Set Content-Type on the directory and hidserv descriptor.
9526   o Remove IVs from cipher code, since AES-ctr has none.
9527   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
9528     o We were using an array of length zero in a few places.
9529     o win32's gethostbyname can't resolve an IP to an IP.
9530     o win32's close can't close a socket.
9533 Changes in version 0.0.6rc2 - 2004-04-26
9534   o Fix a bug where we were closing tls connections intermittently.
9535     It turns out openssl keeps its errors around -- so if an error
9536     happens, and you don't ask about it, and then another openssl
9537     operation happens and succeeds, and you ask if there was an error,
9538     it tells you about the first error. Fun fun.
9539   o Fix a bug that's been lurking since 27 may 03 (!)
9540     When passing back a destroy cell, we would use the wrong circ id.
9541     'Mostly harmless', but still worth fixing.
9542   o Since we don't support truncateds much, don't bother sending them;
9543     just close the circ.
9544   o check for <machine/limits.h> so we build on NetBSD again (I hope).
9545   o don't crash if a conn that sent a begin has suddenly lost its circuit
9546     (this was quite rare).
9549 Changes in version 0.0.6rc1 - 2004-04-25
9550   o We now rotate link (tls context) keys and onion keys.
9551   o CREATE cells now include oaep padding, so you can tell
9552     if you decrypted them correctly.
9553   o Add bandwidthburst to server descriptor.
9554   o Directories now say which dirserver signed them.
9555   o Use a tor_assert macro that logs failed assertions too.
9558 Changes in version 0.0.6pre5 - 2004-04-18
9559   o changes from 0.0.6pre4:
9560     - make tor build on broken freebsd 5.2 installs
9561     - fix a failed assert when you try an intro point, get a nack, and try
9562       a second one and it works.
9563     - when alice uses a port that the hidden service doesn't accept,
9564       it now sends back an end cell (denied by exit policy). otherwise
9565       alice would just have to wait to time out.
9566     - fix another rare bug: when we had tried all the intro
9567       points for a hidden service, we fetched the descriptor
9568       again, but we left our introcirc thinking it had already
9569       sent an intro, so it kept waiting for a response...
9570     - bugfix: when you sleep your hidden-service laptop, as soon
9571       as it wakes up it tries to upload a service descriptor, but
9572       socketpair fails for some reason (localhost not up yet?).
9573       now we simply give up on that upload, and we'll try again later.
9574       i'd still like to find the bug though.
9575     - if an intro circ waiting for an ack dies before getting one, then
9576       count it as a nack
9577     - we were reusing stale service descriptors and refetching usable
9578       ones. oops.
9581 Changes in version 0.0.6pre4 - 2004-04-14
9582   o changes from 0.0.6pre3:
9583     - when bob fails to connect to the rendezvous point, and his
9584       circ didn't fail because of the rendezvous point itself, then
9585       he retries a couple of times
9586     - we expire introduction and rendezvous circs more thoroughly
9587       (sometimes they were hanging around forever)
9588     - we expire unattached rendezvous streams that have been around
9589       too long (they were sticking around forever).
9590     - fix a measly fencepost error that was crashing everybody with
9591       a strict glibc.
9594 Changes in version 0.0.6pre3 - 2004-04-14
9595   o changes from 0.0.6pre2:
9596     - make hup work again
9597     - fix some memory leaks for dirservers
9598     - allow more skew in rendezvous descriptor timestamps, to help
9599       handle people like blanu who don't know what time it is
9600     - normal circs are 3 hops, but some rend/intro circs are 4, if
9601       the initiator doesn't get to choose the last hop
9602     - send acks for introductions, so alice can know whether to try
9603       again
9604     - bob publishes intro points more correctly
9605   o changes from 0.0.5:
9606     - fix an assert trigger that's been plaguing us since the days
9607       of 0.0.2prexx (thanks weasel!)
9608     - retry stream correctly when we fail to connect because of
9609       exit-policy-reject (should try another) or can't-resolve-address
9610       (also should try another, because dns on random internet servers
9611       is flaky).
9612     - when we hup a dirserver and we've *removed* a server from the
9613       approved-routers list, now we remove that server from the
9614       in-memory directories too
9617 Changes in version 0.0.6pre2 - 2004-04-08
9618   o We fixed our base32 implementation. Now it works on all architectures.
9621 Changes in version 0.0.6pre1 - 2004-04-08
9622   o Features:
9623     - Hidden services and rendezvous points are implemented. Go to
9624       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
9625       hidden services. (This only works via a socks4a proxy such as
9626       Privoxy, and currently it's quite slow.)
9629 Changes in version 0.0.5 - 2004-03-30
9630   [version bump only]
9633 Changes in version 0.0.5rc3 - 2004-03-29
9634   o Install torrc as torrc.sample -- we no longer clobber your
9635     torrc. (Woo!)
9636   o Re-enable recommendedversion checking (we broke it in rc2, oops)
9637   o Add in a 'notice' log level for things the operator should hear
9638     but that aren't warnings
9641 Changes in version 0.0.5rc2 - 2004-03-29
9642   o Hold socks connection open until reply is flushed (if possible)
9643   o Make exit nodes resolve IPs to IPs immediately, rather than asking
9644     the dns farm to do it.
9645   o Fix c99 aliasing warnings in rephist.c
9646   o Don't include server descriptors that are older than 24 hours in the
9647     directory.
9648   o Give socks 'reject' replies their whole 15s to attempt to flush,
9649     rather than seeing the 60s timeout and assuming the flush had failed.
9650   o Clean automake droppings from the cvs repository
9653 Changes in version 0.0.5rc1 - 2004-03-28
9654   o Fix mangled-state bug in directory fetching (was causing sigpipes).
9655   o Only build circuits after we've fetched the directory: clients were
9656     using only the directory servers before they'd fetched a directory.
9657     This also means longer startup time; so it goes.
9658   o Fix an assert trigger where an OP would fail to handshake, and we'd
9659     expect it to have a nickname.
9660   o Work around a tsocks bug: do a socks reject when AP connection dies
9661     early, else tsocks goes into an infinite loop.
9664 Changes in version 0.0.4 - 2004-03-26
9665   o When connecting to a dirserver or OR and the network is down,
9666     we would crash.
9669 Changes in version 0.0.3 - 2004-03-26
9670   o Warn and fail if server chose a nickname with illegal characters
9671   o Port to Solaris and Sparc:
9672     - include missing header fcntl.h
9673     - have autoconf find -lsocket -lnsl automatically
9674     - deal with hardware word alignment
9675     - make uname() work (solaris has a different return convention)
9676     - switch from using signal() to sigaction()
9677   o Preliminary work on reputation system:
9678     - Keep statistics on success/fail of connect attempts; they're published
9679       by kill -USR1 currently.
9680     - Add a RunTesting option to try to learn link state by creating test
9681       circuits, even when SocksPort is off.
9682     - Remove unused open circuits when there are too many.
9685 Changes in version 0.0.2 - 2004-03-19
9686     - Include strlcpy and strlcat for safer string ops
9687     - define INADDR_NONE so we compile (but still not run) on solaris
9690 Changes in version 0.0.2pre27 - 2004-03-14
9691   o Bugfixes:
9692     - Allow internal tor networks (we were rejecting internal IPs,
9693       now we allow them if they're set explicitly).
9694     - And fix a few endian issues.
9697 Changes in version 0.0.2pre26 - 2004-03-14
9698   o New features:
9699     - If a stream times out after 15s without a connected cell, don't
9700       try that circuit again: try a new one.
9701     - Retry streams at most 4 times. Then give up.
9702     - When a dirserver gets a descriptor from an unknown router, it
9703       logs its fingerprint (so the dirserver operator can choose to
9704       accept it even without mail from the server operator).
9705     - Inform unapproved servers when we reject their descriptors.
9706     - Make tor build on Windows again. It works as a client, who knows
9707       about as a server.
9708     - Clearer instructions in the torrc for how to set up a server.
9709     - Be more efficient about reading fd's when our global token bucket
9710       (used for rate limiting) becomes empty.
9711   o Bugfixes:
9712     - Stop asserting that computers always go forward in time. It's
9713       simply not true.
9714     - When we sent a cell (e.g. destroy) and then marked an OR connection
9715       expired, we might close it before finishing a flush if the other
9716       side isn't reading right then.
9717     - Don't allow dirservers to start if they haven't defined
9718       RecommendedVersions
9719     - We were caching transient dns failures. Oops.
9720     - Prevent servers from publishing an internal IP as their address.
9721     - Address a strcat vulnerability in circuit.c
9724 Changes in version 0.0.2pre25 - 2004-03-04
9725   o New features:
9726     - Put the OR's IP in its router descriptor, not its fqdn. That way
9727       we'll stop being stalled by gethostbyname for nodes with flaky dns,
9728       e.g. poblano.
9729   o Bugfixes:
9730     - If the user typed in an address that didn't resolve, the server
9731       crashed.
9734 Changes in version 0.0.2pre24 - 2004-03-03
9735   o Bugfixes:
9736     - Fix an assertion failure in dns.c, where we were trying to dequeue
9737       a pending dns resolve even if it wasn't pending
9738     - Fix a spurious socks5 warning about still trying to write after the
9739       connection is finished.
9740     - Hold certain marked_for_close connections open until they're finished
9741       flushing, rather than losing bytes by closing them too early.
9742     - Correctly report the reason for ending a stream
9743     - Remove some duplicate calls to connection_mark_for_close
9744     - Put switch_id and start_daemon earlier in the boot sequence, so it
9745       will actually try to chdir() to options.DataDirectory
9746     - Make 'make test' exit(1) if a test fails; fix some unit tests
9747     - Make tor fail when you use a config option it doesn't know about,
9748       rather than warn and continue.
9749     - Make --version work
9750     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
9753 Changes in version 0.0.2pre23 - 2004-02-29
9754   o New features:
9755     - Print a statement when the first circ is finished, so the user
9756       knows it's working.
9757     - If a relay cell is unrecognized at the end of the circuit,
9758       send back a destroy. (So attacks to mutate cells are more
9759       clearly thwarted.)
9760     - New config option 'excludenodes' to avoid certain nodes for circuits.
9761     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
9762       so you can collect coredumps there.
9763  o Bugfixes:
9764     - Fix a bug in tls flushing where sometimes data got wedged and
9765       didn't flush until more data got sent. Hopefully this bug was
9766       a big factor in the random delays we were seeing.
9767     - Make 'connected' cells include the resolved IP, so the client
9768       dns cache actually gets populated.
9769     - Disallow changing from ORPort=0 to ORPort>0 on hup.
9770     - When we time-out on a stream and detach from the circuit, send an
9771       end cell down it first.
9772     - Only warn about an unknown router (in exitnodes, entrynodes,
9773       excludenodes) after we've fetched a directory.
9776 Changes in version 0.0.2pre22 - 2004-02-26
9777   o New features:
9778     - Servers publish less revealing uname information in descriptors.
9779     - More memory tracking and assertions, to crash more usefully when
9780       errors happen.
9781     - If the default torrc isn't there, just use some default defaults.
9782       Plus provide an internal dirservers file if they don't have one.
9783     - When the user tries to use Tor as an http proxy, give them an http
9784       501 failure explaining that we're a socks proxy.
9785     - Dump a new router.desc on hup, to help confused people who change
9786       their exit policies and then wonder why router.desc doesn't reflect
9787       it.
9788     - Clean up the generic tor.sh init script that we ship with.
9789   o Bugfixes:
9790     - If the exit stream is pending on the resolve, and a destroy arrives,
9791       then the stream wasn't getting removed from the pending list. I
9792       think this was the one causing recent server crashes.
9793     - Use a more robust poll on OSX 10.3, since their poll is flaky.
9794     - When it couldn't resolve any dirservers, it was useless from then on.
9795       Now it reloads the RouterFile (or default dirservers) if it has no
9796       dirservers.
9797     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
9798       many users don't even *have* a /usr/local/sbin/.
9801 Changes in version 0.0.2pre21 - 2004-02-18
9802   o New features:
9803     - There's a ChangeLog file that actually reflects the changelog.
9804     - There's a 'torify' wrapper script, with an accompanying
9805       tor-tsocks.conf, that simplifies the process of using tsocks for
9806       tor. It even has a man page.
9807     - The tor binary gets installed to sbin rather than bin now.
9808     - Retry streams where the connected cell hasn't arrived in 15 seconds
9809     - Clean up exit policy handling -- get the default out of the torrc,
9810       so we can update it without forcing each server operator to fix
9811       his/her torrc.
9812     - Allow imaps and pop3s in default exit policy
9813   o Bugfixes:
9814     - Prevent picking middleman nodes as the last node in the circuit
9817 Changes in version 0.0.2pre20 - 2004-01-30
9818   o New features:
9819     - We now have a deb package, and it's in debian unstable. Go to
9820       it, apt-getters. :)
9821     - I've split the TotalBandwidth option into BandwidthRate (how many
9822       bytes per second you want to allow, long-term) and
9823       BandwidthBurst (how many bytes you will allow at once before the cap
9824       kicks in).  This better token bucket approach lets you, say, set
9825       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
9826       performance while not exceeding your monthly bandwidth quota.
9827     - Push out a tls record's worth of data once you've got it, rather
9828       than waiting until you've read everything waiting to be read. This
9829       may improve performance by pipelining better. We'll see.
9830     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
9831       from failed circuits (if they haven't been connected yet) and attach
9832       to new ones.
9833     - Expire old streams that haven't managed to connect. Some day we'll
9834       have them reattach to new circuits instead.
9836   o Bugfixes:
9837     - Fix several memory leaks that were causing servers to become bloated
9838       after a while.
9839     - Fix a few very rare assert triggers. A few more remain.
9840     - Setuid to User _before_ complaining about running as root.
9843 Changes in version 0.0.2pre19 - 2004-01-07
9844   o Bugfixes:
9845     - Fix deadlock condition in dns farm. We were telling a child to die by
9846       closing the parent's file descriptor to him. But newer children were
9847       inheriting the open file descriptor from the parent, and since they
9848       weren't closing it, the socket never closed, so the child never read
9849       eof, so he never knew to exit. Similarly, dns workers were holding
9850       open other sockets, leading to all sorts of chaos.
9851     - New cleaner daemon() code for forking and backgrounding.
9852     - If you log to a file, it now prints an entry at the top of the
9853       logfile so you know it's working.
9854     - The onionskin challenge length was 30 bytes longer than necessary.
9855     - Started to patch up the spec so it's not quite so out of date.
9858 Changes in version 0.0.2pre18 - 2004-01-02
9859   o Bugfixes:
9860     - Fix endian issues with the 'integrity' field in the relay header.
9861     - Fix a potential bug where connections in state
9862       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
9865 Changes in version 0.0.2pre17 - 2003-12-30
9866   o Bugfixes:
9867     - Made --debuglogfile (or any second log file, actually) work.
9868     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
9869       adversary could force us into an infinite loop.
9871   o Features:
9872     - Each onionskin handshake now includes a hash of the computed key,
9873       to prove the server's identity and help perfect forward secrecy.
9874     - Changed cell size from 256 to 512 bytes (working toward compatibility
9875       with MorphMix).
9876     - Changed cell length to 2 bytes, and moved it to the relay header.
9877     - Implemented end-to-end integrity checking for the payloads of
9878       relay cells.
9879     - Separated streamid from 'recognized' (otherwise circuits will get
9880       messed up when we try to have streams exit from the middle). We
9881       use the integrity-checking to confirm that a cell is addressed to
9882       this hop.
9883     - Randomize the initial circid and streamid values, so an adversary who
9884       breaks into a node can't learn how many circuits or streams have
9885       been made so far.
9888 Changes in version 0.0.2pre16 - 2003-12-14
9889   o Bugfixes:
9890     - Fixed a bug that made HUP trigger an assert
9891     - Fixed a bug where a circuit that immediately failed wasn't being
9892       counted as a failed circuit in counting retries.
9894   o Features:
9895     - Now we close the circuit when we get a truncated cell: otherwise we're
9896       open to an anonymity attack where a bad node in the path truncates
9897       the circuit and then we open streams at him.
9898     - Add port ranges to exit policies
9899     - Add a conservative default exit policy
9900     - Warn if you're running tor as root
9901     - on HUP, retry OR connections and close/rebind listeners
9902     - options.EntryNodes: try these nodes first when picking the first node
9903     - options.ExitNodes: if your best choices happen to include any of
9904       your preferred exit nodes, you choose among just those preferred
9905       exit nodes.
9906     - options.ExcludedNodes: nodes that are never picked in path building
9909 Changes in version 0.0.2pre15 - 2003-12-03
9910   o Robustness and bugfixes:
9911     - Sometimes clients would cache incorrect DNS resolves, which would
9912       really screw things up.
9913     - An OP that goes offline would slowly leak all its sockets and stop
9914       working.
9915     - A wide variety of bugfixes in exit node selection, exit policy
9916       handling, and processing pending streams when a new circuit is
9917       established.
9918     - Pick nodes for a path only from those the directory says are up
9919     - Choose randomly from all running dirservers, not always the first one
9920     - Increase allowed http header size for directory fetch.
9921     - Stop writing to stderr (if we're daemonized it will be closed).
9922     - Enable -g always, so cores will be more useful to me.
9923     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
9925   o Documentation:
9926     - Wrote a man page. It lists commonly used options.
9928   o Configuration:
9929     - Change default loglevel to warn.
9930     - Make PidFile default to null rather than littering in your CWD.
9931     - OnionRouter config option is now obsolete. Instead it just checks
9932       ORPort>0.
9933     - Moved to a single unified torrc file for both clients and servers.
9936 Changes in version 0.0.2pre14 - 2003-11-29
9937   o Robustness and bugfixes:
9938     - Force the admin to make the DataDirectory himself
9939       - to get ownership/permissions right
9940       - so clients no longer make a DataDirectory and then never use it
9941     - fix bug where a client who was offline for 45 minutes would never
9942       pull down a directory again
9943     - fix (or at least hide really well) the dns assert bug that was
9944       causing server crashes
9945     - warnings and improved robustness wrt clockskew for certs
9946     - use the native daemon(3) to daemonize, when available
9947     - exit if bind() fails
9948     - exit if neither socksport nor orport is defined
9949     - include our own tor_timegm (Win32 doesn't have its own)
9950     - bugfix for win32 with lots of connections
9951     - fix minor bias in PRNG
9952     - make dirserver more robust to corrupt cached directory
9954   o Documentation:
9955     - Wrote the design document (woo)
9957   o Circuit building and exit policies:
9958     - Circuits no longer try to use nodes that the directory has told them
9959       are down.
9960     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
9961       bitcounts (18.0.0.0/8).
9962     - Make AP connections standby for a circuit if no suitable circuit
9963       exists, rather than failing
9964     - Circuits choose exit node based on addr/port, exit policies, and
9965       which AP connections are standing by
9966     - Bump min pathlen from 2 to 3
9967     - Relay end cells have a payload to describe why the stream ended.
9968     - If the stream failed because of exit policy, try again with a new
9969       circuit.
9970     - Clients have a dns cache to remember resolved addresses.
9971     - Notice more quickly when we have no working circuits
9973   o Configuration:
9974     - APPort is now called SocksPort
9975     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
9976       where to bind
9977     - RecommendedVersions is now a config variable rather than
9978       hardcoded (for dirservers)
9979     - Reloads config on HUP
9980     - Usage info on -h or --help
9981     - If you set User and Group config vars, it'll setu/gid to them.
9984 Changes in version 0.0.2pre13 - 2003-10-19
9985   o General stability:
9986     - SSL_write no longer fails when it returns WANTWRITE and the number
9987       of bytes in the buf has changed by the next SSL_write call.
9988     - Fix segfault fetching directory when network is down
9989     - Fix a variety of minor memory leaks
9990     - Dirservers reload the fingerprints file on HUP, so I don't have
9991       to take down the network when I approve a new router
9992     - Default server config file has explicit Address line to specify fqdn
9994   o Buffers:
9995     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
9996     - Make listener connections not ever alloc bufs
9998   o Autoconf improvements:
9999     - don't clobber an external CFLAGS in ./configure
10000     - Make install now works
10001     - create var/lib/tor on make install
10002     - autocreate a tor.sh initscript to help distribs
10003     - autocreate the torrc and sample-server-torrc with correct paths
10005   o Log files and Daemonizing now work:
10006     - If --DebugLogFile is specified, log to it at -l debug
10007     - If --LogFile is specified, use it instead of commandline
10008     - If --RunAsDaemon is set, tor forks and backgrounds on startup