Make an attempt to fix bug 1024.
[tor/rransom.git] / ChangeLog
blob55f0f2c95ac04f9a2e48b5f104565ae2d2a823df
1 Changes in version 0.2.1.17-?? - 2009-??-??
2   o Major bugfixes:
3     - Directory authorities were neglecting to mark relays down in their
4       internal histories if the relays fall off the routerlist without
5       ever being found unreachable. So there were relays in the histories
6       that haven't been seen for eight months, and are listed as being
7       up for eight months. This wreaked havoc on the "median wfu"
8       and "median mtbf" calculations, in turn making Guard and Stable
9       flags very wrong, hurting network performance. Fixes bugs 696 and
10       969. Bugfix on 0.2.0.6-alpha.
12   o Minor bugfixes:
13     - Serve the DirPortFrontPage page even when we have been approaching
14       our quotas recently.  Fixes bug 1013; bugfix on 0.2.1.8-alpha.
15     - Do not cap bandwidths reported by directory authorities; they are
16       already adjusted to reflect reality.
17     - When we can't find an intro key for a v2 hidden service descriptor,
18       fall back to the v0 hidden service descriptor and log a bug message.
19       Workaround for bug1024.
21   o Major features:
22     - Clients now use the bandwidth values in the consensus, rather than
23       the bandwidth values in each relay descriptor. This approach opens
24       the door to more accurate bandwidth estimates once the directory
25       authorities start doing active measurements. Implements more of
26       proposal 141.
28   o Minor bugfixes (on 0.2.0.x):
29     - Control port would close the connection before flushing long
30       replies, such as the network consensus, if a QUIT command was
31       issued before the reply had completed. Now, the control port
32       flushes all pending replies before closing the connection.
33       Also fixed a condition where a QUIT command issued after a
34       malformed or rejected AUTHENTICATE command, but before the
35       connection was closed would result in a warning in the logger
36       for a doubly-closed connection. Fixes bugs 1015 and 1016.
39 Changes in version 0.2.1.16-rc - 2009-06-20
40   o Security fixes:
41     - Fix an edge case where a malicious exit relay could convince a
42       controller that the client's DNS question resolves to an internal IP
43       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
45   o Major performance improvements (on 0.2.0.x):
46     - Disable and refactor some debugging checks that forced a linear scan
47       over the whole server-side DNS cache. These accounted for over 50%
48       of CPU time on a relatively busy exit node's gprof profile. Found
49       by Jacob.
50     - Disable some debugging checks that appeared in exit node profile
51       data.
53   o Minor features:
54     - Update to the "June 3 2009" ip-to-country file.
55     - Do not have tor-resolve automatically refuse all .onion addresses;
56       if AutomapHostsOnResolve is set in your torrc, this will work fine.
58   o Minor bugfixes (on 0.2.0.x):
59     - Log correct error messages for DNS-related network errors on
60       Windows.
61     - Fix a race condition that could cause crashes or memory corruption
62       when running as a server with a controller listening for log
63       messages.
64     - Avoid crashing when we have a policy specified in a DirPolicy or
65       SocksPolicy or ReachableAddresses option with ports set on it,
66       and we re-load the policy. May fix bug 996.
67     - Hidden service clients didn't use a cached service descriptor that
68       was older than 15 minutes, but wouldn't fetch a new one either,
69       because there was already one in the cache. Now, fetch a v2
70       descriptor unless the same descriptor was added to the cache within
71       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
73   o Minor bugfixes (on 0.2.1.x):
74     - Don't warn users about low port and hibernation mix when they
75       provide a *ListenAddress directive to fix that. Bugfix on
76       0.2.1.15-rc.
77     - When switching back and forth between bridge mode, do not start
78       gathering GeoIP data until two hours have passed.
79     - Do not complain that the user has requested an excluded node as
80       an exit when the node is not really an exit. This could happen
81       because the circuit was for testing, or an introduction point.
82       Fix for bug 984.
85 Changes in version 0.2.1.15-rc - 2009-05-25
86   o Major bugfixes (on 0.2.0.x):
87     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
88       that would occur on some exit nodes when DNS failures and timeouts
89       occurred in certain patterns. Fix for bug 957.
91   o Minor bugfixes (on 0.2.0.x):
92     - Actually return -1 in the error case for read_bandwidth_usage().
93       Harmless bug, since we currently don't care about the return value
94       anywhere. Bugfix on 0.2.0.9-alpha.
95     - Provide a more useful log message if bug 977 (related to buffer
96       freelists) ever reappears, and do not crash right away.
97     - Fix an assertion failure on 64-bit platforms when we allocated
98       memory right up to the end of a memarea, then realigned the memory
99       one step beyond the end. Fixes a possible cause of bug 930.
100     - Protect the count of open sockets with a mutex, so we can't
101       corrupt it when two threads are closing or opening sockets at once.
102       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
103     - Don't allow a bridge to publish its router descriptor to a
104       non-bridge directory authority. Fixes part of bug 932.
105     - When we change to or from being a bridge, reset our counts of
106       client usage by country. Fixes bug 932.
107     - Fix a bug that made stream bandwidth get misreported to the
108       controller.
109     - Stop using malloc_usable_size() to use more area than we had
110       actually allocated: it was safe, but made valgrind really unhappy.
111     - Fix a memory leak when v3 directory authorities load their keys
112       and cert from disk. Bugfix on 0.2.0.1-alpha.
114   o Minor bugfixes (on 0.2.1.x):
115     - Fix use of freed memory when deciding to mark a non-addable
116       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
119 Changes in version 0.2.1.14-rc - 2009-04-12
120   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
121   series. It begins fixing some major performance problems, and also
122   finally addresses the bug that was causing relays on dynamic IP
123   addresses to fall out of the directory.
125   o Major features:
126     - Clients replace entry guards that were chosen more than a few months
127       ago. This change should significantly improve client performance,
128       especially once more people upgrade, since relays that have been
129       a guard for a long time are currently overloaded.
131   o Major bugfixes (on 0.2.0):
132     - Finally fix the bug where dynamic-IP relays disappear when their
133       IP address changes: directory mirrors were mistakenly telling
134       them their old address if they asked via begin_dir, so they
135       never got an accurate answer about their new address, so they
136       just vanished after a day. For belt-and-suspenders, relays that
137       don't set Address in their config now avoid using begin_dir for
138       all direct connections. Should fix bugs 827, 883, and 900.
139     - Relays were falling out of the networkstatus consensus for
140       part of a day if they changed their local config but the
141       authorities discarded their new descriptor as "not sufficiently
142       different". Now directory authorities accept a descriptor as changed
143       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
144       patch by Sebastian.
145     - Avoid crashing in the presence of certain malformed descriptors.
146       Found by lark, and by automated fuzzing.
148   o Minor features:
149     - When generating circuit events with verbose nicknames for
150       controllers, try harder to look up nicknames for routers on a
151       circuit. (Previously, we would look in the router descriptors we had
152       for nicknames, but not in the consensus.) Partial fix for bug 941.
153     - If the bridge config line doesn't specify a port, assume 443.
154       This makes bridge lines a bit smaller and easier for users to
155       understand.
156     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
157       bytes (aka 20KB/s), to match our documentation. Also update
158       directory authorities so they always assign the Fast flag to relays
159       with 20KB/s of capacity. Now people running relays won't suddenly
160       find themselves not seeing any use, if the network gets faster
161       on average.
162     - Update to the "April 3 2009" ip-to-country file.
164   o Minor bugfixes:
165     - Avoid trying to print raw memory to the logs when we decide to
166       give up on downloading a given relay descriptor. Bugfix on
167       0.2.1.9-alpha.
168     - In tor-resolve, when the Tor client to use is specified by
169       <hostname>:<port>, actually use the specified port rather than
170       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
171     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
172     - When starting with a cache over a few days old, do not leak
173       memory for the obsolete router descriptors in it. Bugfix on
174       0.2.0.33.
175     - Avoid double-free on list of successfully uploaded hidden
176       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
177     - Change memarea_strndup() implementation to work even when
178       duplicating a string at the end of a page. This bug was
179       harmless for now, but could have meant crashes later. Fix by
180       lark. Bugfix on 0.2.1.1-alpha.
181     - Limit uploaded directory documents to be 16M rather than 500K.
182       The directory authorities were refusing v3 consensus votes from
183       other authorities, since the votes are now 504K. Fixes bug 959;
184       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
185     - Directory authorities should never send a 503 "busy" response to
186       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
187       bug 959.
190 Changes in version 0.2.1.13-alpha - 2009-03-09
191   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
192   cleanups. We're finally getting close to a release candidate.
194   o Major bugfixes:
195     - Correctly update the list of which countries we exclude as
196       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
197       lark. Bugfix on 0.2.1.6-alpha.
199   o Minor bugfixes (on 0.2.0.x and earlier):
200     - Automatically detect MacOSX versions earlier than 10.4.0, and
201       disable kqueue from inside Tor when running with these versions.
202       We previously did this from the startup script, but that was no
203       help to people who didn't use the startup script. Resolves bug 863.
204     - When we had picked an exit node for a connection, but marked it as
205       "optional", and it turned out we had no onion key for the exit,
206       stop wanting that exit and try again. This situation may not
207       be possible now, but will probably become feasible with proposal
208       158. Spotted by rovv. Fixes another case of bug 752.
209     - Clients no longer cache certificates for authorities they do not
210       recognize. Bugfix on 0.2.0.9-alpha.
211     - When we can't transmit a DNS request due to a network error, retry
212       it after a while, and eventually transmit a failing response to
213       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
214     - If the controller claimed responsibility for a stream, but that
215       stream never finished making its connection, it would live
216       forever in circuit_wait state. Now we close it after SocksTimeout
217       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
218     - Drop begin cells to a hidden service if they come from the middle
219       of a circuit. Patch from lark.
220     - When we erroneously receive two EXTEND cells for the same circuit
221       ID on the same connection, drop the second. Patch from lark.
222     - Fix a crash that occurs on exit nodes when a nameserver request
223       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
224       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
225       bug 929.
226     - Do not assume that a stack-allocated character array will be
227       64-bit aligned on platforms that demand that uint64_t access is
228       aligned. Possible fix for bug 604.
229     - Parse dates and IPv4 addresses in a locale- and libc-independent
230       manner, to avoid platform-dependent behavior on malformed input.
231     - Build correctly when configured to build outside the main source
232       path. Patch from Michael Gold.
233     - We were already rejecting relay begin cells with destination port
234       of 0. Now also reject extend cells with destination port or address
235       of 0. Suggested by lark.
237   o Minor bugfixes (on 0.2.1.x):
238     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
239       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
240     - If we're an exit node, scrub the IP address to which we are exiting
241       in the logs. Bugfix on 0.2.1.8-alpha.
243   o Minor features:
244     - On Linux, use the prctl call to re-enable core dumps when the user
245       is option is set.
246     - New controller event NEWCONSENSUS that lists the networkstatus
247       lines for every recommended relay. Now controllers like Torflow
248       can keep up-to-date on which relays they should be using.
249     - Update to the "February 26 2009" ip-to-country file.
252 Changes in version 0.2.0.34 - 2009-02-08
253   Tor 0.2.0.34 features several more security-related fixes. You should
254   upgrade, especially if you run an exit relay (remote crash) or a
255   directory authority (remote infinite loop), or you're on an older
256   (pre-XP) or not-recently-patched Windows (remote exploit).
258   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
259   have many known flaws, and nobody should be using them. You should
260   upgrade. If you're using a Linux or BSD and its packages are obsolete,
261   stop using those packages and upgrade anyway.
263   o Security fixes:
264     - Fix an infinite-loop bug on handling corrupt votes under certain
265       circumstances. Bugfix on 0.2.0.8-alpha.
266     - Fix a temporary DoS vulnerability that could be performed by
267       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
268     - Avoid a potential crash on exit nodes when processing malformed
269       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
270     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
271       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
273   o Minor bugfixes:
274     - Fix compilation on systems where time_t is a 64-bit integer.
275       Patch from Matthias Drochner.
276     - Don't consider expiring already-closed client connections. Fixes
277       bug 893. Bugfix on 0.0.2pre20.
280 Changes in version 0.2.1.12-alpha - 2009-02-08
281   Tor 0.2.1.12-alpha features several more security-related fixes. You
282   should upgrade, especially if you run an exit relay (remote crash) or
283   a directory authority (remote infinite loop), or you're on an older
284   (pre-XP) or not-recently-patched Windows (remote exploit). It also
285   includes a big pile of minor bugfixes and cleanups.
287   o Security fixes:
288     - Fix an infinite-loop bug on handling corrupt votes under certain
289       circumstances. Bugfix on 0.2.0.8-alpha.
290     - Fix a temporary DoS vulnerability that could be performed by
291       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
292     - Avoid a potential crash on exit nodes when processing malformed
293       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
295   o Minor bugfixes:
296     - Let controllers actually ask for the "clients_seen" event for
297       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
298       reported by Matt Edman.
299     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
300       0.2.1.11-alpha.
301     - Fix a bug in address parsing that was preventing bridges or hidden
302       service targets from being at IPv6 addresses.
303     - Solve a bug that kept hardware crypto acceleration from getting
304       enabled when accounting was turned on. Fixes bug 907. Bugfix on
305       0.0.9pre6.
306     - Remove a bash-ism from configure.in to build properly on non-Linux
307       platforms. Bugfix on 0.2.1.1-alpha.
308     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
309       headers. Bugfix on 0.2.0.10-alpha.
310     - Don't consider expiring already-closed client connections. Fixes
311       bug 893. Bugfix on 0.0.2pre20.
312     - Fix another interesting corner-case of bug 891 spotted by rovv:
313       Previously, if two hosts had different amounts of clock drift, and
314       one of them created a new connection with just the wrong timing,
315       the other might decide to deprecate the new connection erroneously.
316       Bugfix on 0.1.1.13-alpha.
317     - Resolve a very rare crash bug that could occur when the user forced
318       a nameserver reconfiguration during the middle of a nameserver
319       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
320     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
321       Bugfix on 0.2.1.7-alpha.
322     - If we're using bridges and our network goes away, be more willing
323       to forgive our bridges and try again when we get an application
324       request. Bugfix on 0.2.0.x.
326   o Minor features:
327     - Support platforms where time_t is 64 bits long. (Congratulations,
328       NetBSD!) Patch from Matthias Drochner.
329     - Add a 'getinfo status/clients-seen' controller command, in case
330       controllers want to hear clients_seen events but connect late.
332   o Build changes:
333     - Disable GCC's strict alias optimization by default, to avoid the
334       likelihood of its introducing subtle bugs whenever our code violates
335       the letter of C99's alias rules.
338 Changes in version 0.2.0.33 - 2009-01-21
339   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
340   useful to users. It also finally fixes a bug where a relay or client
341   that's been off for many days would take a long time to bootstrap.
343   This update also fixes an important security-related bug reported by
344   Ilja van Sprundel. You should upgrade. (We'll send out more details
345   about the bug once people have had some time to upgrade.)
347   o Security fixes:
348     - Fix a heap-corruption bug that may be remotely triggerable on
349       some platforms. Reported by Ilja van Sprundel.
351   o Major bugfixes:
352     - When a stream at an exit relay is in state "resolving" or
353       "connecting" and it receives an "end" relay cell, the exit relay
354       would silently ignore the end cell and not close the stream. If
355       the client never closes the circuit, then the exit relay never
356       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
357       reported by "wood".
358     - When sending CREATED cells back for a given circuit, use a 64-bit
359       connection ID to find the right connection, rather than an addr:port
360       combination. Now that we can have multiple OR connections between
361       the same ORs, it is no longer possible to use addr:port to uniquely
362       identify a connection.
363     - Bridge relays that had DirPort set to 0 would stop fetching
364       descriptors shortly after startup, and then briefly resume
365       after a new bandwidth test and/or after publishing a new bridge
366       descriptor. Bridge users that try to bootstrap from them would
367       get a recent networkstatus but would get descriptors from up to
368       18 hours earlier, meaning most of the descriptors were obsolete
369       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
370     - Prevent bridge relays from serving their 'extrainfo' document
371       to anybody who asks, now that extrainfo docs include potentially
372       sensitive aggregated client geoip summaries. Bugfix on
373       0.2.0.13-alpha.
374     - If the cached networkstatus consensus is more than five days old,
375       discard it rather than trying to use it. In theory it could be
376       useful because it lists alternate directory mirrors, but in practice
377       it just means we spend many minutes trying directory mirrors that
378       are long gone from the network. Also discard router descriptors as
379       we load them if they are more than five days old, since the onion
380       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
382   o Minor bugfixes:
383     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
384       could make gcc generate non-functional binary search code. Bugfix
385       on 0.2.0.10-alpha.
386     - Build correctly on platforms without socklen_t.
387     - Compile without warnings on solaris.
388     - Avoid potential crash on internal error during signature collection.
389       Fixes bug 864. Patch from rovv.
390     - Correct handling of possible malformed authority signing key
391       certificates with internal signature types. Fixes bug 880.
392       Bugfix on 0.2.0.3-alpha.
393     - Fix a hard-to-trigger resource leak when logging credential status.
394       CID 349.
395     - When we can't initialize DNS because the network is down, do not
396       automatically stop Tor from starting. Instead, we retry failed
397       dns_init() every 10 minutes, and change the exit policy to reject
398       *:* until one succeeds. Fixes bug 691.
399     - Use 64 bits instead of 32 bits for connection identifiers used with
400       the controller protocol, to greatly reduce risk of identifier reuse.
401     - When we're choosing an exit node for a circuit, and we have
402       no pending streams, choose a good general exit rather than one that
403       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
404     - Fix another case of assuming, when a specific exit is requested,
405       that we know more than the user about what hosts it allows.
406       Fixes one case of bug 752. Patch from rovv.
407     - Clip the MaxCircuitDirtiness config option to a minimum of 10
408       seconds. Warn the user if lower values are given in the
409       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
410     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
411       user if lower values are given in the configuration. Bugfix on
412       0.1.1.17-rc. Patch by Sebastian.
413     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
414       the cache because we already had a v0 descriptor with the same ID.
415       Bugfix on 0.2.0.18-alpha.
416     - Fix a race condition when freeing keys shared between main thread
417       and CPU workers that could result in a memory leak. Bugfix on
418       0.1.0.1-rc. Fixes bug 889.
419     - Send a valid END cell back when a client tries to connect to a
420       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
421       840. Patch from rovv.
422     - Check which hops rendezvous stream cells are associated with to
423       prevent possible guess-the-streamid injection attacks from
424       intermediate hops. Fixes another case of bug 446. Based on patch
425       from rovv.
426     - If a broken client asks a non-exit router to connect somewhere,
427       do not even do the DNS lookup before rejecting the connection.
428       Fixes another case of bug 619. Patch from rovv.
429     - When a relay gets a create cell it can't decrypt (e.g. because it's
430       using the wrong onion key), we were dropping it and letting the
431       client time out. Now actually answer with a destroy cell. Fixes
432       bug 904. Bugfix on 0.0.2pre8.
434   o Minor bugfixes (hidden services):
435     - Do not throw away existing introduction points on SIGHUP. Bugfix on
436       0.0.6pre1. Patch by Karsten. Fixes bug 874.
438   o Minor features:
439     - Report the case where all signatures in a detached set are rejected
440       differently than the case where there is an error handling the
441       detached set.
442     - When we realize that another process has modified our cached
443       descriptors, print out a more useful error message rather than
444       triggering an assertion. Fixes bug 885. Patch from Karsten.
445     - Implement the 0x20 hack to better resist DNS poisoning: set the
446       case on outgoing DNS requests randomly, and reject responses that do
447       not match the case correctly. This logic can be disabled with the
448       ServerDNSRamdomizeCase setting, if you are using one of the 0.3%
449       of servers that do not reliably preserve case in replies. See
450       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
451       for more info.
452     - Check DNS replies for more matching fields to better resist DNS
453       poisoning.
454     - Never use OpenSSL compression: it wastes RAM and CPU trying to
455       compress cells, which are basically all encrypted, compressed, or
456       both.
459 Changes in version 0.2.1.11-alpha - 2009-01-20
460   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
461   week it will take a long time to bootstrap again" bug. It also fixes
462   an important security-related bug reported by Ilja van Sprundel. You
463   should upgrade. (We'll send out more details about the bug once people
464   have had some time to upgrade.)
466   o Security fixes:
467     - Fix a heap-corruption bug that may be remotely triggerable on
468       some platforms. Reported by Ilja van Sprundel.
470   o Major bugfixes:
471     - Discard router descriptors as we load them if they are more than
472       five days old. Otherwise if Tor is off for a long time and then
473       starts with cached descriptors, it will try to use the onion
474       keys in those obsolete descriptors when building circuits. Bugfix
475       on 0.2.0.x. Fixes bug 887.
477   o Minor features:
478     - Try to make sure that the version of Libevent we're running with
479       is binary-compatible with the one we built with. May address bug
480       897 and others.
481     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
482       for bug 905. Bugfix on 0.2.1.7-alpha.
483     - Add a new --enable-local-appdata configuration switch to change
484       the default location of the datadir on win32 from APPDATA to
485       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
486       entirely. Patch from coderman.
488   o Minor bugfixes:
489     - Make outbound DNS packets respect the OutboundBindAddress setting.
490       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
491     - When our circuit fails at the first hop (e.g. we get a destroy
492       cell back), avoid using that OR connection anymore, and also
493       tell all the one-hop directory requests waiting for it that they
494       should fail. Bugfix on 0.2.1.3-alpha.
495     - In the torify(1) manpage, mention that tsocks will leak your
496       DNS requests.
499 Changes in version 0.2.1.10-alpha - 2009-01-06
500   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
501   would make the bridge relay not so useful if it had DirPort set to 0,
502   and one that could let an attacker learn a little bit of information
503   about the bridge's users), and a bug that would cause your Tor relay
504   to ignore a circuit create request it can't decrypt (rather than reply
505   with an error). It also fixes a wide variety of other bugs.
507   o Major bugfixes:
508     - If the cached networkstatus consensus is more than five days old,
509       discard it rather than trying to use it. In theory it could
510       be useful because it lists alternate directory mirrors, but in
511       practice it just means we spend many minutes trying directory
512       mirrors that are long gone from the network. Helps bug 887 a bit;
513       bugfix on 0.2.0.x.
514     - Bridge relays that had DirPort set to 0 would stop fetching
515       descriptors shortly after startup, and then briefly resume
516       after a new bandwidth test and/or after publishing a new bridge
517       descriptor. Bridge users that try to bootstrap from them would
518       get a recent networkstatus but would get descriptors from up to
519       18 hours earlier, meaning most of the descriptors were obsolete
520       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
521     - Prevent bridge relays from serving their 'extrainfo' document
522       to anybody who asks, now that extrainfo docs include potentially
523       sensitive aggregated client geoip summaries. Bugfix on
524       0.2.0.13-alpha.
526   o Minor features:
527     - New controller event "clients_seen" to report a geoip-based summary
528       of which countries we've seen clients from recently. Now controllers
529       like Vidalia can show bridge operators that they're actually making
530       a difference.
531     - Build correctly against versions of OpenSSL 0.9.8 or later built
532       without support for deprecated functions.
533     - Update to the "December 19 2008" ip-to-country file.
535   o Minor bugfixes (on 0.2.0.x):
536     - Authorities now vote for the Stable flag for any router whose
537       weighted MTBF is at least 5 days, regardless of the mean MTBF.
538     - Do not remove routers as too old if we do not have any consensus
539       document. Bugfix on 0.2.0.7-alpha.
540     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
541       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
542     - When an exit relay resolves a stream address to a local IP address,
543       do not just keep retrying that same exit relay over and
544       over. Instead, just close the stream. Addresses bug 872. Bugfix
545       on 0.2.0.32. Patch from rovv.
546     - If a hidden service sends us an END cell, do not consider
547       retrying the connection; just close it. Patch from rovv.
548     - When we made bridge authorities stop serving bridge descriptors over
549       unencrypted links, we also broke DirPort reachability testing for
550       bridges. So bridges with a non-zero DirPort were printing spurious
551       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
552     - When a relay gets a create cell it can't decrypt (e.g. because it's
553       using the wrong onion key), we were dropping it and letting the
554       client time out. Now actually answer with a destroy cell. Fixes
555       bug 904. Bugfix on 0.0.2pre8.
556     - Squeeze 2-5% out of client performance (according to oprofile) by
557       improving the implementation of some policy-manipulation functions.
559   o Minor bugfixes (on 0.2.1.x):
560     - Make get_interface_address() function work properly again; stop
561       guessing the wrong parts of our address as our address.
562     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
563       send on that circuit. Otherwise we might violate the proposal-110
564       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
565       thanks to Karsten.
566     - When we're sending non-EXTEND cells to the first hop in a circuit,
567       for example to use an encrypted directory connection, we don't need
568       to use RELAY_EARLY cells: the first hop knows what kind of cell
569       it is, and nobody else can even see the cell type. Conserving
570       RELAY_EARLY cells makes it easier to cannibalize circuits like
571       this later.
572     - Stop logging nameserver addresses in reverse order.
573     - If we are retrying a directory download slowly over and over, do
574       not automatically give up after the 254th failure. Bugfix on
575       0.2.1.9-alpha.
576     - Resume reporting accurate "stream end" reasons to the local control
577       port. They were lost in the changes for Proposal 148. Bugfix on
578       0.2.1.9-alpha.
580   o Deprecated and removed features:
581     - The old "tor --version --version" command, which would print out
582       the subversion "Id" of most of the source files, is now removed. It
583       turned out to be less useful than we'd expected, and harder to
584       maintain.
586   o Code simplifications and refactoring:
587     - Change our header file guard macros to be less likely to conflict
588       with system headers. Adam Langley noticed that we were conflicting
589       with log.h on Android.
590     - Tool-assisted documentation cleanup. Nearly every function or
591       static variable in Tor should have its own documentation now.
594 Changes in version 0.2.1.9-alpha - 2008-12-25
595   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
597   o New directory authorities:
598     - gabelmoo (the authority run by Karsten Loesing) now has a new
599       IP address.
601   o Security fixes:
602     - Never use a connection with a mismatched address to extend a
603       circuit, unless that connection is canonical. A canonical
604       connection is one whose address is authenticated by the router's
605       identity key, either in a NETINFO cell or in a router descriptor.
606     - Avoid a possible memory corruption bug when receiving hidden service
607       descriptors. Bugfix on 0.2.1.6-alpha.
609   o Major bugfixes:
610     - Fix a logic error that would automatically reject all but the first
611       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
612       part of bug 813/868. Bug spotted by coderman.
613     - When a stream at an exit relay is in state "resolving" or
614       "connecting" and it receives an "end" relay cell, the exit relay
615       would silently ignore the end cell and not close the stream. If
616       the client never closes the circuit, then the exit relay never
617       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
618       reported by "wood".
619     - When we can't initialize DNS because the network is down, do not
620       automatically stop Tor from starting. Instead, retry failed
621       dns_init() every 10 minutes, and change the exit policy to reject
622       *:* until one succeeds. Fixes bug 691.
624   o Minor features:
625     - Give a better error message when an overzealous init script says
626       "sudo -u username tor --user username". Makes Bug 882 easier for
627       users to diagnose.
628     - When a directory authority gives us a new guess for our IP address,
629       log which authority we used. Hopefully this will help us debug
630       the recent complaints about bad IP address guesses.
631     - Detect svn revision properly when we're using git-svn.
632     - Try not to open more than one descriptor-downloading connection
633       to an authority at once. This should reduce load on directory
634       authorities. Fixes bug 366.
635     - Add cross-certification to newly generated certificates, so that
636       a signing key is enough information to look up a certificate.
637       Partial implementation of proposal 157.
638     - Start serving certificates by <identity digest, signing key digest>
639       pairs. Partial implementation of proposal 157.
640     - Clients now never report any stream end reason except 'MISC'.
641       Implements proposal 148.
642     - On platforms with a maximum syslog string length, truncate syslog
643       messages to that length ourselves, rather than relying on the
644       system to do it for us.
645     - Optimize out calls to time(NULL) that occur for every IO operation,
646       or for every cell. On systems where time() is a slow syscall,
647       this fix will be slightly helpful.
648     - Exit servers can now answer resolve requests for ip6.arpa addresses.
649     - When we download a descriptor that we then immediately (as
650       a directory authority) reject, do not retry downloading it right
651       away. Should save some bandwidth on authorities. Fix for bug
652       888. Patch by Sebastian Hahn.
653     - When a download gets us zero good descriptors, do not notify
654       Tor that new directory information has arrived.
655     - Avoid some nasty corner cases in the logic for marking connections
656       as too old or obsolete or noncanonical for circuits.  Partial
657       bugfix on bug 891.
659   o Minor features (controller):
660     - New CONSENSUS_ARRIVED event to note when a new consensus has
661       been fetched and validated.
662     - When we realize that another process has modified our cached
663       descriptors file, print out a more useful error message rather
664       than triggering an assertion. Fixes bug 885. Patch from Karsten.
665     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
666       controllers to prevent SIGHUP from reloading the
667       configuration. Fixes bug 856.
669   o Minor bugfixes:
670     - Resume using the correct "REASON=" stream when telling the
671       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
672     - When a canonical connection appears later in our internal list
673       than a noncanonical one for a given OR ID, always use the
674       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
675       Spotted by rovv.
676     - Clip the MaxCircuitDirtiness config option to a minimum of 10
677       seconds. Warn the user if lower values are given in the
678       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
679     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
680       user if lower values are given in the configuration. Bugfix on
681       0.1.1.17-rc. Patch by Sebastian.
682     - Fix a race condition when freeing keys shared between main thread
683       and CPU workers that could result in a memory leak. Bugfix on
684       0.1.0.1-rc. Fixes bug 889.
686   o Minor bugfixes (hidden services):
687     - Do not throw away existing introduction points on SIGHUP (bugfix on
688       0.0.6pre1); also, do not stall hidden services because we're
689       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
690       by John Brooks. Patch by Karsten. Fixes bug 874.
691     - Fix a memory leak when we decline to add a v2 rendezvous
692       descriptor to the cache because we already had a v0 descriptor
693       with the same ID. Bugfix on 0.2.0.18-alpha.
695   o Deprecated and removed features:
696     - RedirectExits has been removed. It was deprecated since
697       0.2.0.3-alpha.
698     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
699       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
700     - Cell pools are now always enabled; --disable-cell-pools is ignored.
702   o Code simplifications and refactoring:
703     - Rename the confusing or_is_obsolete field to the more appropriate
704       is_bad_for_new_circs, and move it to or_connection_t where it
705       belongs.
706     - Move edge-only flags from connection_t to edge_connection_t: not
707       only is this better coding, but on machines of plausible alignment,
708       it should save 4-8 bytes per connection_t. "Every little bit helps."
709     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
710       for consistency; keep old option working for backward compatibility.
711     - Simplify the code for finding connections to use for a circuit.
714 Changes in version 0.2.1.8-alpha - 2008-12-08
715   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
716   builds better on unusual platforms like Solaris and old OS X, and
717   fixes a variety of other issues.
719   o Major features:
720     - New DirPortFrontPage option that takes an html file and publishes
721       it as "/" on the DirPort. Now relay operators can provide a
722       disclaimer without needing to set up a separate webserver. There's
723       a sample disclaimer in contrib/tor-exit-notice.html.
725   o Security fixes:
726     - When the client is choosing entry guards, now it selects at most
727       one guard from a given relay family. Otherwise we could end up with
728       all of our entry points into the network run by the same operator.
729       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
731   o Major bugfixes:
732     - Fix a DOS opportunity during the voting signature collection process
733       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
734     - Fix a possible segfault when establishing an exit connection. Bugfix
735       on 0.2.1.5-alpha.
737   o Minor bugfixes:
738     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
739       bug 859.
740     - Made Tor a little less aggressive about deleting expired
741       certificates. Partial fix for bug 854.
742     - Stop doing unaligned memory access that generated bus errors on
743       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
744     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
745       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
746     - Make USR2 log-level switch take effect immediately. Bugfix on
747       0.1.2.8-beta.
748     - If one win32 nameserver fails to get added, continue adding the
749       rest, and don't automatically fail.
750     - Use fcntl() for locking when flock() is not available. Should fix
751       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
752     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
753       could make gcc generate non-functional binary search code. Bugfix
754       on 0.2.0.10-alpha.
755     - Build correctly on platforms without socklen_t.
756     - Avoid potential crash on internal error during signature collection.
757       Fixes bug 864. Patch from rovv.
758     - Do not use C's stdio library for writing to log files. This will
759       improve logging performance by a minute amount, and will stop
760       leaking fds when our disk is full. Fixes bug 861.
761     - Stop erroneous use of O_APPEND in cases where we did not in fact
762       want to re-seek to the end of a file before every last write().
763     - Correct handling of possible malformed authority signing key
764       certificates with internal signature types. Fixes bug 880. Bugfix
765       on 0.2.0.3-alpha.
766     - Fix a hard-to-trigger resource leak when logging credential status.
767       CID 349.
769   o Minor features:
770     - Directory mirrors no longer fetch the v1 directory or
771       running-routers files. They are obsolete, and nobody asks for them
772       anymore. This is the first step to making v1 authorities obsolete.
774   o Minor features (controller):
775     - Return circuit purposes in response to GETINFO circuit-status. Fixes
776       bug 858.
779 Changes in version 0.2.0.32 - 2008-11-20
780   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
781   packages (and maybe other packages) noticed by Theo de Raadt, fixes
782   a smaller security flaw that might allow an attacker to access local
783   services, further improves hidden service performance, and fixes a
784   variety of other issues.
786   o Security fixes:
787     - The "User" and "Group" config options did not clear the
788       supplementary group entries for the Tor process. The "User" option
789       is now more robust, and we now set the groups to the specified
790       user's primary group. The "Group" option is now ignored. For more
791       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
792       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
793       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
794     - The "ClientDNSRejectInternalAddresses" config option wasn't being
795       consistently obeyed: if an exit relay refuses a stream because its
796       exit policy doesn't allow it, we would remember what IP address
797       the relay said the destination address resolves to, even if it's
798       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
800   o Major bugfixes:
801     - Fix a DOS opportunity during the voting signature collection process
802       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
804   o Major bugfixes (hidden services):
805     - When fetching v0 and v2 rendezvous service descriptors in parallel,
806       we were failing the whole hidden service request when the v0
807       descriptor fetch fails, even if the v2 fetch is still pending and
808       might succeed. Similarly, if the last v2 fetch fails, we were
809       failing the whole hidden service request even if a v0 fetch is
810       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
811     - When extending a circuit to a hidden service directory to upload a
812       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
813       requests failed, because the router descriptor has not been
814       downloaded yet. In these cases, do not attempt to upload the
815       rendezvous descriptor, but wait until the router descriptor is
816       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
817       descriptor from a hidden service directory for which the router
818       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
819       on 0.2.0.10-alpha.
821   o Minor bugfixes:
822     - Fix several infrequent memory leaks spotted by Coverity.
823     - When testing for libevent functions, set the LDFLAGS variable
824       correctly. Found by Riastradh.
825     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
826       bootstrapping with tunneled directory connections. Bugfix on
827       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
828     - When asked to connect to A.B.exit:80, if we don't know the IP for A
829       and we know that server B rejects most-but-not all connections to
830       port 80, we would previously reject the connection. Now, we assume
831       the user knows what they were asking for. Fixes bug 752. Bugfix
832       on 0.0.9rc5. Diagnosed by BarkerJr.
833     - If we overrun our per-second write limits a little, count this as
834       having used up our write allocation for the second, and choke
835       outgoing directory writes. Previously, we had only counted this when
836       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
837       Bugfix on 0.2.0.x (??).
838     - Remove the old v2 directory authority 'lefkada' from the default
839       list. It has been gone for many months.
840     - Stop doing unaligned memory access that generated bus errors on
841       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
842     - Make USR2 log-level switch take effect immediately. Bugfix on
843       0.1.2.8-beta.
845   o Minor bugfixes (controller):
846     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
847       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
850 Changes in version 0.2.1.7-alpha - 2008-11-08
851   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
852   packages (and maybe other packages) noticed by Theo de Raadt, fixes
853   a smaller security flaw that might allow an attacker to access local
854   services, adds better defense against DNS poisoning attacks on exit
855   relays, further improves hidden service performance, and fixes a
856   variety of other issues.
858   o Security fixes:
859     - The "ClientDNSRejectInternalAddresses" config option wasn't being
860       consistently obeyed: if an exit relay refuses a stream because its
861       exit policy doesn't allow it, we would remember what IP address
862       the relay said the destination address resolves to, even if it's
863       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
864     - The "User" and "Group" config options did not clear the
865       supplementary group entries for the Tor process. The "User" option
866       is now more robust, and we now set the groups to the specified
867       user's primary group. The "Group" option is now ignored. For more
868       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
869       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
870       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
871     - Do not use or believe expired v3 authority certificates. Patch
872       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
874   o Minor features:
875     - Now NodeFamily and MyFamily config options allow spaces in
876       identity fingerprints, so it's easier to paste them in.
877       Suggested by Lucky Green.
878     - Implement the 0x20 hack to better resist DNS poisoning: set the
879       case on outgoing DNS requests randomly, and reject responses that do
880       not match the case correctly. This logic can be disabled with the
881       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
882       of servers that do not reliably preserve case in replies. See
883       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
884       for more info.
885     - Preserve case in replies to DNSPort requests in order to support
886       the 0x20 hack for resisting DNS poisoning attacks.
888   o Hidden service performance improvements:
889     - When the client launches an introduction circuit, retry with a
890       new circuit after 30 seconds rather than 60 seconds.
891     - Launch a second client-side introduction circuit in parallel
892       after a delay of 15 seconds (based on work by Christian Wilms).
893     - Hidden services start out building five intro circuits rather
894       than three, and when the first three finish they publish a service
895       descriptor using those. Now we publish our service descriptor much
896       faster after restart.
898   o Minor bugfixes:
899     - Minor fix in the warning messages when you're having problems
900       bootstrapping; also, be more forgiving of bootstrap problems when
901       we're still making incremental progress on a given bootstrap phase.
902     - When we're choosing an exit node for a circuit, and we have
903       no pending streams, choose a good general exit rather than one that
904       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
905     - Send a valid END cell back when a client tries to connect to a
906       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
907       840. Patch from rovv.
908     - If a broken client asks a non-exit router to connect somewhere,
909       do not even do the DNS lookup before rejecting the connection.
910       Fixes another case of bug 619. Patch from rovv.
911     - Fix another case of assuming, when a specific exit is requested,
912       that we know more than the user about what hosts it allows.
913       Fixes another case of bug 752. Patch from rovv.
914     - Check which hops rendezvous stream cells are associated with to
915       prevent possible guess-the-streamid injection attacks from
916       intermediate hops. Fixes another case of bug 446. Based on patch
917       from rovv.
918     - Avoid using a negative right-shift when comparing 32-bit
919       addresses. Possible fix for bug 845 and bug 811.
920     - Make the assert_circuit_ok() function work correctly on circuits that
921       have already been marked for close.
922     - Fix read-off-the-end-of-string error in unit tests when decoding
923       introduction points.
924     - Fix uninitialized size field for memory area allocation: may improve
925       memory performance during directory parsing.
926     - Treat duplicate certificate fetches as failures, so that we do
927       not try to re-fetch an expired certificate over and over and over.
928     - Do not say we're fetching a certificate when we'll in fact skip it
929       because of a pending download.
932 Changes in version 0.2.1.6-alpha - 2008-09-30
933   Tor 0.2.1.6-alpha further improves performance and robustness of
934   hidden services, starts work on supporting per-country relay selection,
935   and fixes a variety of smaller issues.
937   o Major features:
938     - Implement proposal 121: make it possible to build hidden services
939       that only certain clients are allowed to connect to. This is
940       enforced at several points, so that unauthorized clients are unable
941       to send INTRODUCE cells to the service, or even (depending on the
942       type of authentication) to learn introduction points. This feature
943       raises the bar for certain kinds of active attacks against hidden
944       services. Code by Karsten Loesing.
945     - Relays now store and serve v2 hidden service descriptors by default,
946       i.e., the new default value for HidServDirectoryV2 is 1. This is
947       the last step in proposal 114, which aims to make hidden service
948       lookups more reliable.
949     - Start work to allow node restrictions to include country codes. The
950       syntax to exclude nodes in a country with country code XX is
951       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
952       refinement to decide what config options should take priority if
953       you ask to both use a particular node and exclude it.
954     - Allow ExitNodes list to include IP ranges and country codes, just
955       like the Exclude*Nodes lists. Patch from Robert Hogan.
957   o Major bugfixes:
958     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
959       Tor to fail to start if you had it configured to use a bridge
960       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
961     - When extending a circuit to a hidden service directory to upload a
962       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
963       requests failed, because the router descriptor had not been
964       downloaded yet. In these cases, we now wait until the router
965       descriptor is downloaded, and then retry. Likewise, clients
966       now skip over a hidden service directory if they don't yet have
967       its router descriptor, rather than futilely requesting it and
968       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
969       on 0.2.0.10-alpha.
970     - When fetching v0 and v2 rendezvous service descriptors in parallel,
971       we were failing the whole hidden service request when the v0
972       descriptor fetch fails, even if the v2 fetch is still pending and
973       might succeed. Similarly, if the last v2 fetch fails, we were
974       failing the whole hidden service request even if a v0 fetch is
975       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
976     - DNS replies need to have names matching their requests, but
977       these names should be in the questions section, not necessarily
978       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
980   o Minor features:
981     - Update to the "September 1 2008" ip-to-country file.
982     - Allow ports 465 and 587 in the default exit policy again. We had
983       rejected them in 0.1.0.15, because back in 2005 they were commonly
984       misconfigured and ended up as spam targets. We hear they are better
985       locked down these days.
986     - Use a lockfile to make sure that two Tor processes are not
987       simultaneously running with the same datadir.
988     - Serve the latest v3 networkstatus consensus via the control
989       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
990     - Better logging about stability/reliability calculations on directory
991       servers.
992     - Drop the requirement to have an open dir port for storing and
993       serving v2 hidden service descriptors.
994     - Directory authorities now serve a /tor/dbg-stability.txt URL to
995       help debug WFU and MTBF calculations.
996     - Implement most of Proposal 152: allow specialized servers to permit
997       single-hop circuits, and clients to use those servers to build
998       single-hop circuits when using a specialized controller. Patch
999       from Josh Albrecht. Resolves feature request 768.
1000     - Add a -p option to tor-resolve for specifying the SOCKS port: some
1001       people find host:port too confusing.
1002     - Make TrackHostExit mappings expire a while after their last use, not
1003       after their creation. Patch from Robert Hogan.
1004     - Provide circuit purposes along with circuit events to the controller.
1006   o Minor bugfixes:
1007     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
1008       Reported by Tas.
1009     - Fixed some memory leaks -- some quite frequent, some almost
1010       impossible to trigger -- based on results from Coverity.
1011     - When testing for libevent functions, set the LDFLAGS variable
1012       correctly. Found by Riastradh.
1013     - Fix an assertion bug in parsing policy-related options; possible fix
1014       for bug 811.
1015     - Catch and report a few more bootstrapping failure cases when Tor
1016       fails to establish a TCP connection. Cleanup on 0.2.1.x.
1017     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
1018       bootstrapping with tunneled directory connections. Bugfix on
1019       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
1020     - When asked to connect to A.B.exit:80, if we don't know the IP for A
1021       and we know that server B rejects most-but-not all connections to
1022       port 80, we would previously reject the connection. Now, we assume
1023       the user knows what they were asking for. Fixes bug 752. Bugfix
1024       on 0.0.9rc5. Diagnosed by BarkerJr.
1025     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
1026       service directories if they have no advertised dir port. Bugfix
1027       on 0.2.0.10-alpha.
1028     - If we overrun our per-second write limits a little, count this as
1029       having used up our write allocation for the second, and choke
1030       outgoing directory writes. Previously, we had only counted this when
1031       we had met our limits precisely. Fixes bug 824. Patch by rovv.
1032       Bugfix on 0.2.0.x (??).
1033     - Avoid a "0 divided by 0" calculation when calculating router uptime
1034       at directory authorities. Bugfix on 0.2.0.8-alpha.
1035     - Make DNS resolved controller events into "CLOSED", not
1036       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
1037       bug 807.
1038     - Fix a bug where an unreachable relay would establish enough
1039       reachability testing circuits to do a bandwidth test -- if
1040       we already have a connection to the middle hop of the testing
1041       circuit, then it could establish the last hop by using the existing
1042       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
1043       circuits no longer use entry guards in 0.2.1.3-alpha.
1044     - If we have correct permissions on $datadir, we complain to stdout
1045       and fail to start. But dangerous permissions on
1046       $datadir/cached-status/ would cause us to open a log and complain
1047       there. Now complain to stdout and fail to start in both cases. Fixes
1048       bug 820, reported by seeess.
1049     - Remove the old v2 directory authority 'lefkada' from the default
1050       list. It has been gone for many months.
1052   o Code simplifications and refactoring:
1053     - Revise the connection_new functions so that a more typesafe variant
1054       exists. This will work better with Coverity, and let us find any
1055       actual mistakes we're making here.
1056     - Refactor unit testing logic so that dmalloc can be used sensibly
1057       with unit tests to check for memory leaks.
1058     - Move all hidden-service related fields from connection and circuit
1059       structure to substructures: this way they won't eat so much memory.
1062 Changes in version 0.2.0.31 - 2008-09-03
1063   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
1064   a big bug we're seeing where in rare cases traffic from one Tor stream
1065   gets mixed into another stream, and fixes a variety of smaller issues.
1067   o Major bugfixes:
1068     - Make sure that two circuits can never exist on the same connection
1069       with the same circuit ID, even if one is marked for close. This
1070       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
1071     - Relays now reject risky extend cells: if the extend cell includes
1072       a digest of all zeroes, or asks to extend back to the relay that
1073       sent the extend cell, tear down the circuit. Ideas suggested
1074       by rovv.
1075     - If not enough of our entry guards are available so we add a new
1076       one, we might use the new one even if it overlapped with the
1077       current circuit's exit relay (or its family). Anonymity bugfix
1078       pointed out by rovv.
1080   o Minor bugfixes:
1081     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
1082       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
1083     - Correctly detect the presence of the linux/netfilter_ipv4.h header
1084       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
1085     - Pick size of default geoip filename string correctly on windows.
1086       Fixes bug 806. Bugfix on 0.2.0.30.
1087     - Make the autoconf script accept the obsolete --with-ssl-dir
1088       option as an alias for the actually-working --with-openssl-dir
1089       option. Fix the help documentation to recommend --with-openssl-dir.
1090       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
1091     - When using the TransPort option on OpenBSD, and using the User
1092       option to change UID and drop privileges, make sure to open
1093       /dev/pf before dropping privileges. Fixes bug 782. Patch from
1094       Christopher Davis. Bugfix on 0.1.2.1-alpha.
1095     - Try to attach connections immediately upon receiving a RENDEZVOUS2
1096       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
1097       on the client side when connecting to a hidden service. Bugfix
1098       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
1099     - When closing an application-side connection because its circuit is
1100       getting torn down, generate the stream event correctly. Bugfix on
1101       0.1.2.x. Anonymous patch.
1104 Changes in version 0.2.1.5-alpha - 2008-08-31
1105   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
1106   in a lot of the infrastructure for adding authorization to hidden
1107   services, lays the groundwork for having clients read their load
1108   balancing information out of the networkstatus consensus rather than
1109   the individual router descriptors, addresses two potential anonymity
1110   issues, and fixes a variety of smaller issues.
1112   o Major features:
1113     - Convert many internal address representations to optionally hold
1114       IPv6 addresses.
1115     - Generate and accept IPv6 addresses in many protocol elements.
1116     - Make resolver code handle nameservers located at ipv6 addresses.
1117     - Begin implementation of proposal 121 ("Client authorization for
1118       hidden services"): configure hidden services with client
1119       authorization, publish descriptors for them, and configure
1120       authorization data for hidden services at clients. The next
1121       step is to actually access hidden services that perform client
1122       authorization.
1123     - More progress toward proposal 141: Network status consensus
1124       documents and votes now contain bandwidth information for each
1125       router and a summary of that router's exit policy. Eventually this
1126       will be used by clients so that they do not have to download every
1127       known descriptor before building circuits.
1129   o Major bugfixes (on 0.2.0.x and before):
1130     - When sending CREATED cells back for a given circuit, use a 64-bit
1131       connection ID to find the right connection, rather than an addr:port
1132       combination. Now that we can have multiple OR connections between
1133       the same ORs, it is no longer possible to use addr:port to uniquely
1134       identify a connection.
1135     - Relays now reject risky extend cells: if the extend cell includes
1136       a digest of all zeroes, or asks to extend back to the relay that
1137       sent the extend cell, tear down the circuit. Ideas suggested
1138       by rovv.
1139     - If not enough of our entry guards are available so we add a new
1140       one, we might use the new one even if it overlapped with the
1141       current circuit's exit relay (or its family). Anonymity bugfix
1142       pointed out by rovv.
1144   o Minor bugfixes:
1145     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
1146       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
1147     - When using the TransPort option on OpenBSD, and using the User
1148       option to change UID and drop privileges, make sure to open /dev/pf
1149       before dropping privileges. Fixes bug 782. Patch from Christopher
1150       Davis. Bugfix on 0.1.2.1-alpha.
1151     - Correctly detect the presence of the linux/netfilter_ipv4.h header
1152       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
1153     - Add a missing safe_str() call for a debug log message.
1154     - Use 64 bits instead of 32 bits for connection identifiers used with
1155       the controller protocol, to greatly reduce risk of identifier reuse.
1156     - Make the autoconf script accept the obsolete --with-ssl-dir
1157       option as an alias for the actually-working --with-openssl-dir
1158       option. Fix the help documentation to recommend --with-openssl-dir.
1159       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
1161   o Minor features:
1162     - Rate-limit too-many-sockets messages: when they happen, they happen
1163       a lot. Resolves bug 748.
1164     - Resist DNS poisoning a little better by making sure that names in
1165       answer sections match.
1166     - Print the SOCKS5 error message string as well as the error code
1167       when a tor-resolve request fails. Patch from Jacob.
1170 Changes in version 0.2.1.4-alpha - 2008-08-04
1171   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
1173   o Major bugfixes:
1174     - The address part of exit policies was not correctly written
1175       to router descriptors. This generated router descriptors that failed
1176       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
1177       on 0.2.1.3-alpha.
1178     - Tor triggered a false assert when extending a circuit to a relay
1179       but we already have a connection open to that relay. Noticed by
1180       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
1182   o Minor bugfixes:
1183     - Fix a hidden service logging bug: in some edge cases, the router
1184       descriptor of a previously picked introduction point becomes
1185       obsolete and we need to give up on it rather than continually
1186       complaining that it has become obsolete. Observed by xiando. Bugfix
1187       on 0.2.1.3-alpha.
1189   o Removed features:
1190     - Take out the TestVia config option, since it was a workaround for
1191       a bug that was fixed in Tor 0.1.1.21.
1194 Changes in version 0.2.1.3-alpha - 2008-08-03
1195   Tor 0.2.1.3-alpha implements most of the pieces to prevent
1196   infinite-length circuit attacks (see proposal 110); fixes a bug that
1197   might cause exit relays to corrupt streams they send back; allows
1198   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
1199   ExcludeExitNodes config options; and fixes a big pile of bugs.
1201   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
1202     - Send a bootstrap problem "warn" event on the first problem if the
1203       reason is NO_ROUTE (that is, our network is down).
1205   o Major features:
1206     - Implement most of proposal 110: The first K cells to be sent
1207       along a circuit are marked as special "early" cells; only K "early"
1208       cells will be allowed. Once this code is universal, we can block
1209       certain kinds of DOS attack by requiring that EXTEND commands must
1210       be sent using an "early" cell.
1212   o Major bugfixes:
1213     - Try to attach connections immediately upon receiving a RENDEZVOUS2
1214       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
1215       on the client side when connecting to a hidden service. Bugfix
1216       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
1217     - Ensure that two circuits can never exist on the same connection
1218       with the same circuit ID, even if one is marked for close. This
1219       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
1221   o Minor features:
1222     - When relays do their initial bandwidth measurement, don't limit
1223       to just our entry guards for the test circuits. Otherwise we tend
1224       to have multiple test circuits going through a single entry guard,
1225       which makes our bandwidth test less accurate. Fixes part of bug 654;
1226       patch contributed by Josh Albrecht.
1227     - Add an ExcludeExitNodes option so users can list a set of nodes
1228       that should be be excluded from the exit node position, but
1229       allowed elsewhere. Implements proposal 151.
1230     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
1231       ExcludeNodes and ExcludeExitNodes lists.
1232     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
1233       be more efficient. Formerly it was quadratic in the number of
1234       servers; now it should be linear. Fixes bug 509.
1235     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
1236       and n_conn_id_digest fields into a separate structure that's
1237       only needed when the circuit has not yet attached to an n_conn.
1239   o Minor bugfixes:
1240     - Change the contrib/tor.logrotate script so it makes the new
1241       logs as "_tor:_tor" rather than the default, which is generally
1242       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
1243     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
1244       warnings (occasionally), but it can also cause the compiler to
1245       eliminate error-checking code. Suggested by Peter Gutmann.
1246     - When a hidden service is giving up on an introduction point candidate
1247       that was not included in the last published rendezvous descriptor,
1248       don't reschedule publication of the next descriptor. Fixes bug 763.
1249       Bugfix on 0.0.9.3.
1250     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
1251       HiddenServiceExcludeNodes as obsolete: they never worked properly,
1252       and nobody claims to be using them. Fixes bug 754. Bugfix on
1253       0.1.0.1-rc. Patch from Christian Wilms.
1254     - Fix a small alignment and memory-wasting bug on buffer chunks.
1255       Spotted by rovv.
1257   o Minor bugfixes (controller):
1258     - When closing an application-side connection because its circuit
1259       is getting torn down, generate the stream event correctly.
1260       Bugfix on 0.1.2.x. Anonymous patch.
1262   o Removed features:
1263     - Remove all backward-compatibility code to support relays running
1264       versions of Tor so old that they no longer work at all on the
1265       Tor network.
1268 Changes in version 0.2.0.30 - 2008-07-15
1269   o Minor bugfixes:
1270     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
1271       warnings (occasionally), but it can also cause the compiler to
1272       eliminate error-checking code. Suggested by Peter Gutmann.
1275 Changes in version 0.2.0.29-rc - 2008-07-08
1276   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
1277   hidden-service performance bugs, and fixes a bunch of smaller bugs.
1279   o Major bugfixes:
1280     - If you have more than one bridge but don't know their keys,
1281       you would only launch a request for the descriptor of the first one
1282       on your list. (Tor considered launching requests for the others, but
1283       found that it already had a connection on the way for $0000...0000
1284       so it didn't open another.) Bugfix on 0.2.0.x.
1285     - If you have more than one bridge but don't know their keys, and the
1286       connection to one of the bridges failed, you would cancel all
1287       pending bridge connections. (After all, they all have the same
1288       digest.) Bugfix on 0.2.0.x.
1289     - When a hidden service was trying to establish an introduction point,
1290       and Tor had built circuits preemptively for such purposes, we
1291       were ignoring all the preemptive circuits and launching a new one
1292       instead. Bugfix on 0.2.0.14-alpha.
1293     - When a hidden service was trying to establish an introduction point,
1294       and Tor *did* manage to reuse one of the preemptively built
1295       circuits, it didn't correctly remember which one it used,
1296       so it asked for another one soon after, until there were no
1297       more preemptive circuits, at which point it launched one from
1298       scratch. Bugfix on 0.0.9.x.
1299     - Make directory servers include the X-Your-Address-Is: http header in
1300       their responses even for begin_dir conns. Now clients who only
1301       ever use begin_dir connections still have a way to learn their IP
1302       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
1304   o Minor bugfixes:
1305     - Fix a macro/CPP interaction that was confusing some compilers:
1306       some GCCs don't like #if/#endif pairs inside macro arguments.
1307       Fixes bug 707.
1308     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
1309       Fixes bug 704; fix from Steven Murdoch.
1310     - When opening /dev/null in finish_daemonize(), do not pass the
1311       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
1312       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
1313     - Correctly detect transparent proxy support on Linux hosts that
1314       require in.h to be included before netfilter_ipv4.h. Patch
1315       from coderman.
1316     - Disallow session resumption attempts during the renegotiation
1317       stage of the v2 handshake protocol. Clients should never be trying
1318       session resumption at this point, but apparently some did, in
1319       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
1320       found by Geoff Goodell.
1323 Changes in version 0.2.1.2-alpha - 2008-06-20
1324   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
1325   make it easier to set up your own private Tor network; fixes several
1326   big bugs with using more than one bridge relay; fixes a big bug with
1327   offering hidden services quickly after Tor starts; and uses a better
1328   API for reporting potential bootstrapping problems to the controller.
1330   o Major features:
1331     - New TestingTorNetwork config option to allow adjustment of
1332       previously constant values that, while reasonable, could slow
1333       bootstrapping. Implements proposal 135. Patch from Karsten.
1335   o Major bugfixes:
1336     - If you have more than one bridge but don't know their digests,
1337       you would only learn a request for the descriptor of the first one
1338       on your list. (Tor considered launching requests for the others, but
1339       found that it already had a connection on the way for $0000...0000
1340       so it didn't open another.) Bugfix on 0.2.0.x.
1341     - If you have more than one bridge but don't know their digests,
1342       and the connection to one of the bridges failed, you would cancel
1343       all pending bridge connections. (After all, they all have the
1344       same digest.) Bugfix on 0.2.0.x.
1345     - When establishing a hidden service, introduction points that
1346       originate from cannibalized circuits are completely ignored and not
1347       included in rendezvous service descriptors. This might be another
1348       reason for delay in making a hidden service available. Bugfix
1349       from long ago (0.0.9.x?)
1351   o Minor features:
1352     - Allow OpenSSL to use dynamic locks if it wants.
1353     - When building a consensus, do not include routers that are down.
1354       This will cut down 30% to 40% on consensus size. Implements
1355       proposal 138.
1356     - In directory authorities' approved-routers files, allow
1357       fingerprints with or without space.
1358     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
1359       controller can query our current bootstrap state in case it attaches
1360       partway through and wants to catch up.
1361     - Send an initial "Starting" bootstrap status event, so we have a
1362       state to start out in.
1364   o Minor bugfixes:
1365     - Asking for a conditional consensus at .../consensus/<fingerprints>
1366       would crash a dirserver if it did not already have a
1367       consensus. Bugfix on 0.2.1.1-alpha.
1368     - Clean up some macro/CPP interactions: some GCC versions don't like
1369       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
1370       0.2.0.x.
1372   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
1373     - Directory authorities shouldn't complain about bootstrapping
1374       problems just because they do a lot of reachability testing and
1375       some of the connection attempts fail.
1376     - Start sending "count" and "recommendation" key/value pairs in
1377       bootstrap problem status events, so the controller can hear about
1378       problems even before Tor decides they're worth reporting for sure.
1379     - If you're using bridges, generate "bootstrap problem" warnings
1380       as soon as you run out of working bridges, rather than waiting
1381       for ten failures -- which will never happen if you have less than
1382       ten bridges.
1383     - If we close our OR connection because there's been a circuit
1384       pending on it for too long, we were telling our bootstrap status
1385       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
1388 Changes in version 0.2.1.1-alpha - 2008-06-13
1389   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
1390   were making the Tor process bloat especially on Linux; makes our TLS
1391   handshake blend in better; sends "bootstrap phase" status events to
1392   the controller, so it can keep the user informed of progress (and
1393   problems) fetching directory information and establishing circuits;
1394   and adds a variety of smaller features.
1396   o Major features:
1397     - More work on making our TLS handshake blend in: modify the list
1398       of ciphers advertised by OpenSSL in client mode to even more
1399       closely resemble a common web browser. We cheat a little so that
1400       we can advertise ciphers that the locally installed OpenSSL doesn't
1401       know about.
1402     - Start sending "bootstrap phase" status events to the controller,
1403       so it can keep the user informed of progress fetching directory
1404       information and establishing circuits. Also inform the controller
1405       if we think we're stuck at a particular bootstrap phase. Implements
1406       proposal 137.
1407     - Resume using OpenSSL's RAND_poll() for better (and more portable)
1408       cross-platform entropy collection again. We used to use it, then
1409       stopped using it because of a bug that could crash systems that
1410       called RAND_poll when they had a lot of fds open. It looks like the
1411       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
1412       at startup, and to call RAND_poll() when we reseed later only if
1413       we have a non-buggy OpenSSL version.
1415   o Major bugfixes:
1416     - When we choose to abandon a new entry guard because we think our
1417       older ones might be better, close any circuits pending on that
1418       new entry guard connection. This fix should make us recover much
1419       faster when our network is down and then comes back. Bugfix on
1420       0.1.2.8-beta; found by lodger.
1422   o Memory fixes and improvements:
1423     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
1424       to avoid unused RAM in buffer chunks and memory pools.
1425     - Speed up parsing and cut down on memory fragmentation by using
1426       stack-style allocations for parsing directory objects. Previously,
1427       this accounted for over 40% of allocations from within Tor's code
1428       on a typical directory cache.
1429     - Use a Bloom filter rather than a digest-based set to track which
1430       descriptors we need to keep around when we're cleaning out old
1431       router descriptors. This speeds up the computation significantly,
1432       and may reduce fragmentation.
1433     - Reduce the default smartlist size from 32 to 16; it turns out that
1434       most smartlists hold around 8-12 elements tops.
1435     - Make dumpstats() log the fullness and size of openssl-internal
1436       buffers.
1437     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
1438       patch to their OpenSSL, turn it on to save memory on servers. This
1439       patch will (with any luck) get included in a mainline distribution
1440       before too long.
1441     - Never use OpenSSL compression: it wastes RAM and CPU trying to
1442       compress cells, which are basically all encrypted, compressed,
1443       or both.
1445   o Minor bugfixes:
1446     - Stop reloading the router list from disk for no reason when we
1447       run out of reachable directory mirrors. Once upon a time reloading
1448       it would set the 'is_running' flag back to 1 for them. It hasn't
1449       done that for a long time.
1450     - In very rare situations new hidden service descriptors were
1451       published earlier than 30 seconds after the last change to the
1452       service. (We currently think that a hidden service descriptor
1453       that's been stable for 30 seconds is worth publishing.)
1455   o Minor features:
1456     - Allow separate log levels to be configured for different logging
1457       domains. For example, this allows one to log all notices, warnings,
1458       or errors, plus all memory management messages of level debug or
1459       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
1460     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
1461       and stop using a warning that had become unfixably verbose under
1462       GCC 4.3.
1463     - New --hush command-line option similar to --quiet. While --quiet
1464       disables all logging to the console on startup, --hush limits the
1465       output to messages of warning and error severity.
1466     - Servers support a new URL scheme for consensus downloads that
1467       allows the client to specify which authorities are trusted.
1468       The server then only sends the consensus if the client will trust
1469       it. Otherwise a 404 error is sent back. Clients use this
1470       new scheme when the server supports it (meaning it's running
1471       0.2.1.1-alpha or later). Implements proposal 134.
1472     - New configure/torrc options (--enable-geoip-stats,
1473       DirRecordUsageByCountry) to record how many IPs we've served
1474       directory info to in each country code, how many status documents
1475       total we've sent to each country code, and what share of the total
1476       directory requests we should expect to see.
1477     - Use the TLS1 hostname extension to more closely resemble browser
1478       behavior.
1479     - Lots of new unit tests.
1480     - Add a macro to implement the common pattern of iterating through
1481       two parallel lists in lockstep.
1484 Changes in version 0.2.0.28-rc - 2008-06-13
1485   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
1486   performance bug, and fixes a bunch of smaller bugs.
1488   o Anonymity fixes:
1489     - Fix a bug where, when we were choosing the 'end stream reason' to
1490       put in our relay end cell that we send to the exit relay, Tor
1491       clients on Windows were sometimes sending the wrong 'reason'. The
1492       anonymity problem is that exit relays may be able to guess whether
1493       the client is running Windows, thus helping partition the anonymity
1494       set. Down the road we should stop sending reasons to exit relays,
1495       or otherwise prevent future versions of this bug.
1497   o Major bugfixes:
1498     - While setting up a hidden service, some valid introduction circuits
1499       were overlooked and abandoned. This might be the reason for
1500       the long delay in making a hidden service available. Bugfix on
1501       0.2.0.14-alpha.
1503   o Minor features:
1504     - Update to the "June 9 2008" ip-to-country file.
1505     - Run 'make test' as part of 'make dist', so we stop releasing so
1506       many development snapshots that fail their unit tests.
1508   o Minor bugfixes:
1509     - When we're checking if we have enough dir info for each relay
1510       to begin establishing circuits, make sure that we actually have
1511       the descriptor listed in the consensus, not just any descriptor.
1512       Bugfix on 0.1.2.x.
1513     - Bridge relays no longer print "xx=0" in their extrainfo document
1514       for every single country code in the geoip db. Bugfix on
1515       0.2.0.27-rc.
1516     - Only warn when we fail to load the geoip file if we were planning to
1517       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
1518     - If we change our MaxAdvertisedBandwidth and then reload torrc,
1519       Tor won't realize it should publish a new relay descriptor. Fixes
1520       bug 688, reported by mfr. Bugfix on 0.1.2.x.
1521     - When we haven't had any application requests lately, don't bother
1522       logging that we have expired a bunch of descriptors. Bugfix
1523       on 0.1.2.x.
1524     - Make relay cells written on a connection count as non-padding when
1525       tracking how long a connection has been in use. Bugfix on
1526       0.2.0.1-alpha. Spotted by lodger.
1527     - Fix unit tests in 0.2.0.27-rc.
1528     - Fix compile on Windows.
1531 Changes in version 0.2.0.27-rc - 2008-06-03
1532   Tor 0.2.0.27-rc adds a few features we left out of the earlier
1533   release candidates. In particular, we now include an IP-to-country
1534   GeoIP database, so controllers can easily look up what country a
1535   given relay is in, and so bridge relays can give us some sanitized
1536   summaries about which countries are making use of bridges. (See proposal
1537   126-geoip-fetching.txt for details.)
1539   o Major features:
1540     - Include an IP-to-country GeoIP file in the tarball, so bridge
1541       relays can report sanitized summaries of the usage they're seeing.
1543   o Minor features:
1544     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
1545       Robert Hogan. Fixes the first part of bug 681.
1546     - Make bridge authorities never serve extrainfo docs.
1547     - Add support to detect Libevent versions in the 1.4.x series
1548       on mingw.
1549     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
1550     - Include a new contrib/tor-exit-notice.html file that exit relay
1551       operators can put on their website to help reduce abuse queries.
1553   o Minor bugfixes:
1554     - When tunneling an encrypted directory connection, and its first
1555       circuit fails, do not leave it unattached and ask the controller
1556       to deal. Fixes the second part of bug 681.
1557     - Make bridge authorities correctly expire old extrainfo documents
1558       from time to time.
1561 Changes in version 0.2.0.26-rc - 2008-05-13
1562   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
1563   in Debian's OpenSSL packages. All users running any 0.2.0.x version
1564   should upgrade, whether they're running Debian or not.
1566   o Major security fixes:
1567     - Use new V3 directory authority keys on the tor26, gabelmoo, and
1568       moria1 V3 directory authorities. The old keys were generated with
1569       a vulnerable version of Debian's OpenSSL package, and must be
1570       considered compromised. Other authorities' keys were not generated
1571       with an affected version of OpenSSL.
1573   o Major bugfixes:
1574     - List authority signatures as "unrecognized" based on DirServer
1575       lines, not on cert cache. Bugfix on 0.2.0.x.
1577   o Minor features:
1578     - Add a new V3AuthUseLegacyKey option to make it easier for
1579       authorities to change their identity keys if they have to.
1582 Changes in version 0.2.0.25-rc - 2008-04-23
1583   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
1585   o Major bugfixes:
1586     - Remember to initialize threading before initializing logging.
1587       Otherwise, many BSD-family implementations will crash hard on
1588       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
1590   o Minor bugfixes:
1591     - Authorities correctly free policies on bad servers on
1592       exit. Fixes bug 672. Bugfix on 0.2.0.x.
1595 Changes in version 0.2.0.24-rc - 2008-04-22
1596   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
1597   v3 directory authority, makes relays with dynamic IP addresses and no
1598   DirPort notice more quickly when their IP address changes, fixes a few
1599   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
1601   o New directory authorities:
1602     - Take lefkada out of the list of v3 directory authorities, since
1603       it has been down for months.
1604     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
1605       authority.
1607   o Major bugfixes:
1608     - Detect address changes more quickly on non-directory mirror
1609       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
1611   o Minor features (security):
1612     - Reject requests for reverse-dns lookup of names that are in
1613       a private address space. Patch from lodger.
1614     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
1615       from lodger.
1617   o Minor bugfixes (crashes):
1618     - Avoid a rare assert that can trigger when Tor doesn't have much
1619       directory information yet and it tries to fetch a v2 hidden
1620       service descriptor. Fixes bug 651, reported by nwf.
1621     - Initialize log mutex before initializing dmalloc. Otherwise,
1622       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
1623     - Use recursive pthread mutexes in order to avoid deadlock when
1624       logging debug-level messages to a controller. Bug spotted by nwf,
1625       bugfix on 0.2.0.16-alpha.
1627   o Minor bugfixes (resource management):
1628     - Keep address policies from leaking memory: start their refcount
1629       at 1, not 2. Bugfix on 0.2.0.16-alpha.
1630     - Free authority certificates on exit, so they don't look like memory
1631       leaks. Bugfix on 0.2.0.19-alpha.
1632     - Free static hashtables for policy maps and for TLS connections on
1633       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
1634     - Avoid allocating extra space when computing consensuses on 64-bit
1635       platforms. Bug spotted by aakova.
1637   o Minor bugfixes (misc):
1638     - Do not read the configuration file when we've only been told to
1639       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
1640       based on patch from Sebastian Hahn.
1641     - Exit relays that are used as a client can now reach themselves
1642       using the .exit notation, rather than just launching an infinite
1643       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
1644     - When attempting to open a logfile fails, tell us why.
1645     - Fix a dumb bug that was preventing us from knowing that we should
1646       preemptively build circuits to handle expected directory requests.
1647       Fixes bug 660. Bugfix on 0.1.2.x.
1648     - Warn less verbosely about clock skew from netinfo cells from
1649       untrusted sources. Fixes bug 663.
1650     - Make controller stream events for DNS requests more consistent,
1651       by adding "new stream" events for DNS requests, and removing
1652       spurious "stream closed" events" for cached reverse resolves.
1653       Patch from mwenge. Fixes bug 646.
1654     - Correctly notify one-hop connections when a circuit build has
1655       failed. Possible fix for bug 669. Found by lodger.
1658 Changes in version 0.2.0.23-rc - 2008-03-24
1659   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
1660   makes bootstrapping faster if the first directory mirror you contact
1661   is down. The bundles also include the new Vidalia 0.1.2 release.
1663   o Major bugfixes:
1664     - When a tunneled directory request is made to a directory server
1665       that's down, notice after 30 seconds rather than 120 seconds. Also,
1666       fail any begindir streams that are pending on it, so they can
1667       retry elsewhere. This was causing multi-minute delays on bootstrap.
1670 Changes in version 0.2.0.22-rc - 2008-03-18
1671   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
1672   enables encrypted directory connections by default for non-relays, fixes
1673   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
1674   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
1676   o Major features:
1677     - Enable encrypted directory connections by default for non-relays,
1678       so censor tools that block Tor directory connections based on their
1679       plaintext patterns will no longer work. This means Tor works in
1680       certain censored countries by default again.
1682   o Major bugfixes:
1683     - Make sure servers always request certificates from clients during
1684       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
1685     - Do not enter a CPU-eating loop when a connection is closed in
1686       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
1687       diagnosed by lodger; bugfix on 0.2.0.20-rc.
1688     - Fix assertion failure that could occur when a blocked circuit
1689       became unblocked, and it had pending client DNS requests. Bugfix
1690       on 0.2.0.1-alpha. Fixes bug 632.
1692   o Minor bugfixes (on 0.1.2.x):
1693     - Generate "STATUS_SERVER" events rather than misspelled
1694       "STATUS_SEVER" events. Caught by mwenge.
1695     - When counting the number of bytes written on a TLS connection,
1696       look at the BIO actually used for writing to the network, not
1697       at the BIO used (sometimes) to buffer data for the network.
1698       Looking at different BIOs could result in write counts on the
1699       order of ULONG_MAX. Fixes bug 614.
1700     - On Windows, correctly detect errors when listing the contents of
1701       a directory. Fix from lodger.
1703   o Minor bugfixes (on 0.2.0.x):
1704     - Downgrade "sslv3 alert handshake failure" message to INFO.
1705     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
1706       left BandwidthRate and BandwidthBurst at the default, we would be
1707       silently limited by those defaults. Now raise them to match the
1708       RelayBandwidth* values.
1709     - Fix the SVK version detection logic to work correctly on a branch.
1710     - Make --enable-openbsd-malloc work correctly on Linux with alpha
1711       CPUs. Fixes bug 625.
1712     - Logging functions now check that the passed severity is sane.
1713     - Use proper log levels in the testsuite call of
1714       get_interface_address6().
1715     - When using a nonstandard malloc, do not use the platform values for
1716       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
1717     - Make the openbsd malloc code use 8k pages on alpha CPUs and
1718       16k pages on ia64.
1719     - Detect mismatched page sizes when using --enable-openbsd-malloc.
1720     - Avoid double-marked-for-close warning when certain kinds of invalid
1721       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
1722       for bug 617. Bugfix on 0.2.0.1-alpha.
1723     - Make sure that the "NULL-means-reject *:*" convention is followed by
1724       all the policy manipulation functions, avoiding some possible crash
1725       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
1726     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
1727       actually works, and doesn't warn about every single reverse lookup.
1728       Fixes the other part of bug 617.  Bugfix on 0.2.0.1-alpha.
1730   o Minor features:
1731     - Only log guard node status when guard node status has changed.
1732     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
1733       make "INFO" 75% less verbose.
1736 Changes in version 0.2.0.21-rc - 2008-03-02
1737   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
1738   makes Tor work well with Vidalia again, fixes a rare assert bug,
1739   and fixes a pair of more minor bugs. The bundles also include Vidalia
1740   0.1.0 and Torbutton 1.1.16.
1742   o Major bugfixes:
1743     - The control port should declare that it requires password auth
1744       when HashedControlSessionPassword is set too. Patch from Matt Edman;
1745       bugfix on 0.2.0.20-rc. Fixes bug 615.
1746     - Downgrade assert in connection_buckets_decrement() to a log message.
1747       This may help us solve bug 614, and in any case will make its
1748       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
1749     - We were sometimes miscounting the number of bytes read from the
1750       network, causing our rate limiting to not be followed exactly.
1751       Bugfix on 0.2.0.16-alpha. Reported by lodger.
1753   o Minor bugfixes:
1754     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
1755       OpenSSL versions should have been working fine. Diagnosis and patch
1756       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
1757       Bugfix on 0.2.0.20-rc.
1760 Changes in version 0.2.0.20-rc - 2008-02-24
1761   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
1762   makes more progress towards normalizing Tor's TLS handshake, makes
1763   hidden services work better again, helps relays bootstrap if they don't
1764   know their IP address, adds optional support for linking in openbsd's
1765   allocator or tcmalloc, allows really fast relays to scale past 15000
1766   sockets, and fixes a bunch of minor bugs reported by Veracode.
1768   o Major features:
1769     - Enable the revised TLS handshake based on the one designed by
1770       Steven Murdoch in proposal 124, as revised in proposal 130. It
1771       includes version negotiation for OR connections as described in
1772       proposal 105. The new handshake is meant to be harder for censors
1773       to fingerprint, and it adds the ability to detect certain kinds of
1774       man-in-the-middle traffic analysis attacks. The version negotiation
1775       feature will allow us to improve Tor's link protocol more safely
1776       in the future.
1777     - Choose which bridge to use proportional to its advertised bandwidth,
1778       rather than uniformly at random. This should speed up Tor for
1779       bridge users. Also do this for people who set StrictEntryNodes.
1780     - When a TrackHostExits-chosen exit fails too many times in a row,
1781       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
1783   o Major bugfixes:
1784     - Resolved problems with (re-)fetching hidden service descriptors.
1785       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
1786       and 0.2.0.19-alpha.
1787     - If we only ever used Tor for hidden service lookups or posts, we
1788       would stop building circuits and start refusing connections after
1789       24 hours, since we falsely believed that Tor was dormant. Reported
1790       by nwf; bugfix on 0.1.2.x.
1791     - Servers that don't know their own IP address should go to the
1792       authorities for their first directory fetch, even if their DirPort
1793       is off or if they don't know they're reachable yet. This will help
1794       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
1795     - When counting the number of open sockets, count not only the number
1796       of sockets we have received from the socket() call, but also
1797       the number we've gotten from accept() and socketpair(). This bug
1798       made us fail to count all sockets that we were using for incoming
1799       connections. Bugfix on 0.2.0.x.
1800     - Fix code used to find strings within buffers, when those strings
1801       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
1802     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
1803     - Add a new __HashedControlSessionPassword option for controllers
1804       to use for one-off session password hashes that shouldn't get
1805       saved to disk by SAVECONF --- Vidalia users were accumulating a
1806       pile of HashedControlPassword lines in their torrc files, one for
1807       each time they had restarted Tor and then clicked Save. Make Tor
1808       automatically convert "HashedControlPassword" to this new option but
1809       only when it's given on the command line. Partial fix for bug 586.
1811   o Minor features (performance):
1812     - Tune parameters for cell pool allocation to minimize amount of
1813       RAM overhead used.
1814     - Add OpenBSD malloc code from phk as an optional malloc
1815       replacement on Linux: some glibc libraries do very poorly
1816       with Tor's memory allocation patterns. Pass
1817       --enable-openbsd-malloc to get the replacement malloc code.
1818     - Add a --with-tcmalloc option to the configure script to link
1819       against tcmalloc (if present). Does not yet search for
1820       non-system include paths.
1821     - Stop imposing an arbitrary maximum on the number of file descriptors
1822       used for busy servers. Bug reported by Olaf Selke; patch from
1823       Sebastian Hahn.
1825   o Minor features (other):
1826     - When SafeLogging is disabled, log addresses along with all TLS
1827       errors.
1828     - When building with --enable-gcc-warnings, check for whether Apple's
1829       warning "-Wshorten-64-to-32" is available.
1830     - Add a --passphrase-fd argument to the tor-gencert command for
1831       scriptability.
1833   o Minor bugfixes (memory leaks and code problems):
1834     - We were leaking a file descriptor if Tor started with a zero-length
1835       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
1836     - Detect size overflow in zlib code. Reported by Justin Ferguson and
1837       Dan Kaminsky.
1838     - We were comparing the raw BridgePassword entry with a base64'ed
1839       version of it, when handling a "/tor/networkstatus-bridges"
1840       directory request. Now compare correctly. Noticed by Veracode.
1841     - Recover from bad tracked-since value in MTBF-history file.
1842       Should fix bug 537.
1843     - Alter the code that tries to recover from unhandled write
1844       errors, to not try to flush onto a socket that's given us
1845       unhandled errors. Bugfix on 0.1.2.x.
1846     - Make Unix controlsockets work correctly on OpenBSD. Patch from
1847       tup. Bugfix on 0.2.0.3-alpha.
1849   o Minor bugfixes (other):
1850     - If we have an extra-info document for our server, always make
1851       it available on the control port, even if we haven't gotten
1852       a copy of it from an authority yet. Patch from mwenge.
1853     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
1854     - Directory mirrors no longer include a guess at the client's IP
1855       address if the connection appears to be coming from the same /24
1856       network; it was producing too many wrong guesses.
1857     - Make the new hidden service code respect the SafeLogging setting.
1858       Bugfix on 0.2.0.x. Patch from Karsten.
1859     - When starting as an authority, do not overwrite all certificates
1860       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
1861     - If we're trying to flush the last bytes on a connection (for
1862       example, when answering a directory request), reset the
1863       time-to-give-up timeout every time we manage to write something
1864       on the socket. Bugfix on 0.1.2.x.
1865     - Change the behavior of "getinfo status/good-server-descriptor"
1866       so it doesn't return failure when any authority disappears.
1867     - Even though the man page said that "TrackHostExits ." should
1868       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
1869     - Report TLS "zero return" case as a "clean close" and "IO error"
1870       as a "close". Stop calling closes "unexpected closes": existing
1871       Tors don't use SSL_close(), so having a connection close without
1872       the TLS shutdown handshake is hardly unexpected.
1873     - Send NAMESERVER_STATUS messages for a single failed nameserver
1874       correctly.
1876   o Code simplifications and refactoring:
1877     - Remove the tor_strpartition function: its logic was confused,
1878       and it was only used for one thing that could be implemented far
1879       more easily.
1882 Changes in version 0.2.0.19-alpha - 2008-02-09
1883   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
1884   handshake, makes path selection for relays more secure and IP address
1885   guessing more robust, and generally fixes a lot of bugs in preparation
1886   for calling the 0.2.0 branch stable.
1888   o Major features:
1889     - Do not include recognizeable strings in the commonname part of
1890       Tor's x509 certificates.
1892   o Major bugfixes:
1893     - If we're a relay, avoid picking ourselves as an introduction point,
1894       a rendezvous point, or as the final hop for internal circuits. Bug
1895       reported by taranis and lodger. Bugfix on 0.1.2.x.
1896     - Patch from "Andrew S. Lists" to catch when we contact a directory
1897       mirror at IP address X and he says we look like we're coming from
1898       IP address X. Bugfix on 0.1.2.x.
1900   o Minor features (security):
1901     - Be more paranoid about overwriting sensitive memory on free(),
1902       as a defensive programming tactic to ensure forward secrecy.
1904   o Minor features (directory authority):
1905     - Actually validate the options passed to AuthDirReject,
1906       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
1907     - Reject router descriptors with out-of-range bandwidthcapacity or
1908       bandwidthburst values.
1910   o Minor features (controller):
1911     - Reject controller commands over 1MB in length.  This keeps rogue
1912       processes from running us out of memory.
1914   o Minor features (misc):
1915     - Give more descriptive well-formedness errors for out-of-range
1916       hidden service descriptor/protocol versions.
1917     - Make memory debugging information describe more about history
1918       of cell allocation, so we can help reduce our memory use.
1920   o Deprecated features (controller):
1921     - The status/version/num-versioning and status/version/num-concurring
1922       GETINFO options are no longer useful in the v3 directory protocol:
1923       treat them as deprecated, and warn when they're used.
1925   o Minor bugfixes:
1926     - When our consensus networkstatus has been expired for a while, stop
1927       being willing to build circuits using it. Fixes bug 401. Bugfix
1928       on 0.1.2.x.
1929     - Directory caches now fetch certificates from all authorities
1930       listed in a networkstatus consensus, even when they do not
1931       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
1932     - When connecting to a bridge without specifying its key, insert
1933       the connection into the identity-to-connection map as soon as
1934       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
1935     - Detect versions of OS X where malloc_good_size() is present in the
1936       library but never actually declared. Resolves bug 587. Bugfix
1937       on 0.2.0.x.
1938     - Stop incorrectly truncating zlib responses to directory authority
1939       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
1940     - Stop recommending that every server operator send mail to tor-ops.
1941       Resolves bug 597. Bugfix on 0.1.2.x.
1942     - Don't trigger an assert if we start a directory authority with a
1943       private IP address (like 127.0.0.1).
1944     - Avoid possible failures when generating a directory with routers
1945       with over-long versions strings, or too many flags set. Bugfix
1946       on 0.1.2.x.
1947     - If an attempt to launch a DNS resolve request over the control
1948       port fails because we have overrun the limit on the number of
1949       connections, tell the controller that the request has failed.
1950     - Avoid using too little bandwidth when our clock skips a few
1951       seconds. Bugfix on 0.1.2.x.
1952     - Fix shell error when warning about missing packages in configure
1953       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
1954     - Do not become confused when receiving a spurious VERSIONS-like
1955       cell from a confused v1 client.  Bugfix on 0.2.0.x.
1956     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
1957       introduction points for a hidden service have failed. Patch from
1958       Karsten Loesing. Bugfix on 0.2.0.x.
1960   o Code simplifications and refactoring:
1961     - Remove some needless generality from cpuworker code, for improved
1962       type-safety.
1963     - Stop overloading the circuit_t.onionskin field for both "onionskin
1964       from a CREATE cell that we are waiting for a cpuworker to be
1965       assigned" and "onionskin from an EXTEND cell that we are going to
1966       send to an OR as soon as we are connected". Might help with bug 600.
1967     - Add an in-place version of aes_crypt() so that we can avoid doing a
1968       needless memcpy() call on each cell payload.
1971 Changes in version 0.2.0.18-alpha - 2008-01-25
1972   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
1973   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
1974   that can warn or reject connections to ports generally associated with
1975   vulnerable-plaintext protocols.
1977   o New directory authorities:
1978     - Set up dannenberg (run by CCC) as the sixth v3 directory
1979       authority.
1981   o Major bugfixes:
1982     - Fix a major memory leak when attempting to use the v2 TLS
1983       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
1984     - We accidentally enabled the under-development v2 TLS handshake
1985       code, which was causing log entries like "TLS error while
1986       renegotiating handshake". Disable it again. Resolves bug 590.
1987     - We were computing the wrong Content-Length: header for directory
1988       responses that need to be compressed on the fly, causing clients
1989       asking for those items to always fail. Bugfix on 0.2.0.x; partially
1990       fixes bug 593.
1992   o Major features:
1993     - Avoid going directly to the directory authorities even if you're a
1994       relay, if you haven't found yourself reachable yet or if you've
1995       decided not to advertise your dirport yet. Addresses bug 556.
1996     - If we've gone 12 hours since our last bandwidth check, and we
1997       estimate we have less than 50KB bandwidth capacity but we could
1998       handle more, do another bandwidth test.
1999     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
2000       Tor can warn and/or refuse connections to ports commonly used with
2001       vulnerable-plaintext protocols. Currently we warn on ports 23,
2002       109, 110, and 143, but we don't reject any.
2004   o Minor bugfixes:
2005     - When we setconf ClientOnly to 1, close any current OR and Dir
2006       listeners. Reported by mwenge.
2007     - When we get a consensus that's been signed by more people than
2008       we expect, don't log about it; it's not a big deal. Reported
2009       by Kyle Williams.
2011   o Minor features:
2012     - Don't answer "/tor/networkstatus-bridges" directory requests if
2013       the request isn't encrypted.
2014     - Make "ClientOnly 1" config option disable directory ports too.
2015     - Patches from Karsten Loesing to make v2 hidden services more
2016       robust: work even when there aren't enough HSDir relays available;
2017       retry when a v2 rend desc fetch fails; but don't retry if we
2018       already have a usable v0 rend desc.
2021 Changes in version 0.2.0.17-alpha - 2008-01-17
2022   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
2024   o Compile fixes:
2025     - Make the tor-gencert man page get included correctly in the tarball.
2028 Changes in version 0.2.0.16-alpha - 2008-01-17
2029   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
2030   Loesing, and generally cleans up a lot of features and minor bugs.
2032   o New directory authorities:
2033     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
2034       authority.
2036   o Major performance improvements:
2037     - Switch our old ring buffer implementation for one more like that
2038       used by free Unix kernels. The wasted space in a buffer with 1mb
2039       of data will now be more like 8k than 1mb. The new implementation
2040       also avoids realloc();realloc(); patterns that can contribute to
2041       memory fragmentation.
2043   o Minor features:
2044     - Configuration files now accept C-style strings as values. This
2045       helps encode characters not allowed in the current configuration
2046       file format, such as newline or #. Addresses bug 557.
2047     - Although we fixed bug 539 (where servers would send HTTP status 503
2048       responses _and_ send a body too), there are still servers out
2049       there that haven't upgraded. Therefore, make clients parse such
2050       bodies when they receive them.
2051     - When we're not serving v2 directory information, there is no reason
2052       to actually keep any around. Remove the obsolete files and directory
2053       on startup if they are very old and we aren't going to serve them.
2055   o Minor performance improvements:
2056     - Reference-count and share copies of address policy entries; only 5%
2057       of them were actually distinct.
2058     - Never walk through the list of logs if we know that no log is
2059       interested in a given message.
2061   o Minor bugfixes:
2062     - When an authority has not signed a consensus, do not try to
2063       download a nonexistent "certificate with key 00000000". Bugfix
2064       on 0.2.0.x. Fixes bug 569.
2065     - Fix a rare assert error when we're closing one of our threads:
2066       use a mutex to protect the list of logs, so we never write to the
2067       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
2068       bug 575, which is kind of the revenge of bug 222.
2069     - Patch from Karsten Loesing to complain less at both the client
2070       and the relay when a relay used to have the HSDir flag but doesn't
2071       anymore, and we try to upload a hidden service descriptor.
2072     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
2073       0.2.0.15-alpha.
2074     - Do not try to download missing certificates until we have tried
2075       to check our fallback consensus. Fixes bug 583.
2076     - Make bridges round reported GeoIP stats info up to the nearest
2077       estimate, not down. Now we can distinguish between "0 people from
2078       this country" and "1 person from this country".
2079     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
2080     - Avoid possible segfault if key generation fails in
2081       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
2082     - Avoid segfault in the case where a badly behaved v2 versioning
2083       directory sends a signed networkstatus with missing client-versions.
2084       Bugfix on 0.1.2.
2085     - Avoid segfaults on certain complex invocations of
2086       router_get_by_hexdigest(). Bugfix on 0.1.2.
2087     - Correct bad index on array access in parse_http_time(). Bugfix
2088       on 0.2.0.
2089     - Fix possible bug in vote generation when server versions are present
2090       but client versions are not.
2091     - Fix rare bug on REDIRECTSTREAM control command when called with no
2092       port set: it could erroneously report an error when none had
2093       happened.
2094     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
2095       compressing large objects and find ourselves with more than 4k
2096       left over. Bugfix on 0.2.0.
2097     - Fix a small memory leak when setting up a hidden service.
2098     - Fix a few memory leaks that could in theory happen under bizarre
2099       error conditions.
2100     - Fix an assert if we post a general-purpose descriptor via the
2101       control port but that descriptor isn't mentioned in our current
2102       network consensus. Bug reported by Jon McLachlan; bugfix on
2103       0.2.0.9-alpha.
2105   o Minor features (controller):
2106     - Get NS events working again. Patch from tup.
2107     - The GETCONF command now escapes and quotes configuration values
2108       that don't otherwise fit into the torrc file.
2109     - The SETCONF command now handles quoted values correctly.
2111   o Minor features (directory authorities):
2112     - New configuration options to override default maximum number of
2113       servers allowed on a single IP address. This is important for
2114       running a test network on a single host.
2115     - Actually implement the -s option to tor-gencert.
2116     - Add a manual page for tor-gencert.
2118   o Minor features (bridges):
2119     - Bridge authorities no longer serve bridge descriptors over
2120       unencrypted connections.
2122   o Minor features (other):
2123     - Add hidden services and DNSPorts to the list of things that make
2124       Tor accept that it has running ports. Change starting Tor with no
2125       ports from a fatal error to a warning; we might change it back if
2126       this turns out to confuse anybody. Fixes bug 579.
2129 Changes in version 0.1.2.19 - 2008-01-17
2130   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
2131   exit policy a little bit more conservative so it's safer to run an
2132   exit relay on a home system, and fixes a variety of smaller issues.
2134   o Security fixes:
2135     - Exit policies now reject connections that are addressed to a
2136       relay's public (external) IP address too, unless
2137       ExitPolicyRejectPrivate is turned off. We do this because too
2138       many relays are running nearby to services that trust them based
2139       on network address.
2141   o Major bugfixes:
2142     - When the clock jumps forward a lot, do not allow the bandwidth
2143       buckets to become negative. Fixes bug 544.
2144     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
2145       on every successful resolve. Reported by Mike Perry.
2146     - Purge old entries from the "rephist" database and the hidden
2147       service descriptor database even when DirPort is zero.
2148     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
2149       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
2150       crashing or mis-answering these requests.
2151     - When we decide to send a 503 response to a request for servers, do
2152       not then also send the server descriptors: this defeats the whole
2153       purpose. Fixes bug 539.
2155   o Minor bugfixes:
2156     - Changing the ExitPolicyRejectPrivate setting should cause us to
2157       rebuild our server descriptor.
2158     - Fix handling of hex nicknames when answering controller requests for
2159       networkstatus by name, or when deciding whether to warn about
2160       unknown routers in a config option. (Patch from mwenge.)
2161     - Fix a couple of hard-to-trigger autoconf problems that could result
2162       in really weird results on platforms whose sys/types.h files define
2163       nonstandard integer types.
2164     - Don't try to create the datadir when running --verify-config or
2165       --hash-password. Resolves bug 540.
2166     - If we were having problems getting a particular descriptor from the
2167       directory caches, and then we learned about a new descriptor for
2168       that router, we weren't resetting our failure count. Reported
2169       by lodger.
2170     - Although we fixed bug 539 (where servers would send HTTP status 503
2171       responses _and_ send a body too), there are still servers out there
2172       that haven't upgraded. Therefore, make clients parse such bodies
2173       when they receive them.
2174     - Run correctly on systems where rlim_t is larger than unsigned long.
2175       This includes some 64-bit systems.
2176     - Run correctly on platforms (like some versions of OS X 10.5) where
2177       the real limit for number of open files is OPEN_FILES, not rlim_max
2178       from getrlimit(RLIMIT_NOFILES).
2179     - Avoid a spurious free on base64 failure.
2180     - Avoid segfaults on certain complex invocations of
2181       router_get_by_hexdigest().
2182     - Fix rare bug on REDIRECTSTREAM control command when called with no
2183       port set: it could erroneously report an error when none had
2184       happened.
2187 Changes in version 0.2.0.15-alpha - 2007-12-25
2188   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
2189   features added in 0.2.0.13-alpha.
2191   o Major bugfixes:
2192     - Fix several remotely triggerable asserts based on DirPort requests
2193       for a v2 or v3 networkstatus object before we were prepared. This
2194       was particularly bad for 0.2.0.13 and later bridge relays, who
2195       would never have a v2 networkstatus and would thus always crash
2196       when used. Bugfixes on 0.2.0.x.
2197     - Estimate the v3 networkstatus size more accurately, rather than
2198       estimating it at zero bytes and giving it artificially high priority
2199       compared to other directory requests. Bugfix on 0.2.0.x.
2201   o Minor bugfixes:
2202     - Fix configure.in logic for cross-compilation.
2203     - When we load a bridge descriptor from the cache, and it was
2204       previously unreachable, mark it as retriable so we won't just
2205       ignore it. Also, try fetching a new copy immediately. Bugfixes
2206       on 0.2.0.13-alpha.
2207     - The bridge GeoIP stats were counting other relays, for example
2208       self-reachability and authority-reachability tests.
2210   o Minor features:
2211     - Support compilation to target iPhone; patch from cjacker huang.
2212       To build for iPhone, pass the --enable-iphone option to configure.
2215 Changes in version 0.2.0.14-alpha - 2007-12-23
2216   o Major bugfixes:
2217     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
2218       without a datadirectory from a previous Tor install. Reported
2219       by Zax.
2220     - Fix a crash when we fetch a descriptor that turns out to be
2221       unexpected (it used to be in our networkstatus when we started
2222       fetching it, but it isn't in our current networkstatus), and we
2223       aren't using bridges. Bugfix on 0.2.0.x.
2224     - Fix a crash when accessing hidden services: it would work the first
2225       time you use a given introduction point for your service, but
2226       on subsequent requests we'd be using garbage memory. Fixed by
2227       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
2228     - Fix a crash when we load a bridge descriptor from disk but we don't
2229       currently have a Bridge line for it in our torrc. Bugfix on
2230       0.2.0.13-alpha.
2232   o Major features:
2233     - If bridge authorities set BridgePassword, they will serve a
2234       snapshot of known bridge routerstatuses from their DirPort to
2235       anybody who knows that password. Unset by default.
2237   o Minor bugfixes:
2238     - Make the unit tests build again.
2239     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
2240     - Make PublishServerDescriptor default to 1, so the default doesn't
2241       have to change as we invent new directory protocol versions.
2242     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
2243       be included unless sys/time.h is already included.  Fixes
2244       bug 553.  Bugfix on 0.2.0.x.
2245     - If we receive a general-purpose descriptor and then receive an
2246       identical bridge-purpose descriptor soon after, don't discard
2247       the next one as a duplicate.
2249   o Minor features:
2250     - If BridgeRelay is set to 1, then the default for
2251       PublishServerDescriptor is now "bridge" rather than "v2,v3".
2252     - If the user sets RelayBandwidthRate but doesn't set
2253       RelayBandwidthBurst, then make them equal rather than erroring out.
2256 Changes in version 0.2.0.13-alpha - 2007-12-21
2257   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
2258   Goodell, fixes many more bugs, and adds a lot of infrastructure for
2259   upcoming features.
2261   o New directory authorities:
2262     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
2263       authority.
2265   o Major bugfixes:
2266     - Only update guard status (usable / not usable) once we have
2267       enough directory information. This was causing us to always pick
2268       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
2269       causing us to discard all our guards on startup if we hadn't been
2270       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
2271     - Purge old entries from the "rephist" database and the hidden
2272       service descriptor databases even when DirPort is zero. Bugfix
2273       on 0.1.2.x.
2274     - We were ignoring our RelayBandwidthRate for the first 30 seconds
2275       after opening a circuit -- even a relayed circuit. Bugfix on
2276       0.2.0.3-alpha.
2277     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
2278       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
2279       crashing or mis-answering these types of requests.
2280     - Relays were publishing their server descriptor to v1 and v2
2281       directory authorities, but they didn't try publishing to v3-only
2282       authorities. Fix this; and also stop publishing to v1 authorities.
2283       Bugfix on 0.2.0.x.
2284     - When we were reading router descriptors from cache, we were ignoring
2285       the annotations -- so for example we were reading in bridge-purpose
2286       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
2287     - When we decided to send a 503 response to a request for servers, we
2288       were then also sending the server descriptors: this defeats the
2289       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
2291   o Major features:
2292     - Bridge relays now behave like clients with respect to time
2293       intervals for downloading new consensus documents -- otherwise they
2294       stand out. Bridge users now wait until the end of the interval,
2295       so their bridge relay will be sure to have a new consensus document.
2296     - Three new config options (AlternateDirAuthority,
2297       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
2298       user selectively replace the default directory authorities by type,
2299       rather than the all-or-nothing replacement that DirServer offers.
2300     - Tor can now be configured to read a GeoIP file from disk in one
2301       of two formats. This can be used by controllers to map IP addresses
2302       to countries. Eventually, it may support exit-by-country.
2303     - When possible, bridge relays remember which countries users
2304       are coming from, and report aggregate information in their
2305       extra-info documents, so that the bridge authorities can learn
2306       where Tor is blocked.
2307     - Bridge directory authorities now do reachability testing on the
2308       bridges they know. They provide router status summaries to the
2309       controller via "getinfo ns/purpose/bridge", and also dump summaries
2310       to a file periodically.
2311     - Stop fetching directory info so aggressively if your DirPort is
2312       on but your ORPort is off; stop fetching v2 dir info entirely.
2313       You can override these choices with the new FetchDirInfoEarly
2314       config option.
2316   o Minor bugfixes:
2317     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
2318       consensus documents when there are too many relays at a single
2319       IP address. Now clear it in v2 network status documents too, and
2320       also clear it in routerinfo_t when the relay is no longer listed
2321       in the relevant networkstatus document.
2322     - Don't crash if we get an unexpected value for the
2323       PublishServerDescriptor config option. Reported by Matt Edman;
2324       bugfix on 0.2.0.9-alpha.
2325     - Our new v2 hidden service descriptor format allows descriptors
2326       that have no introduction points. But Tor crashed when we tried
2327       to build a descriptor with no intro points (and it would have
2328       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
2329       by Karsten Loesing.
2330     - Fix building with dmalloc 5.5.2 with glibc.
2331     - Reject uploaded descriptors and extrainfo documents if they're
2332       huge. Otherwise we'll cache them all over the network and it'll
2333       clog everything up. Reported by Aljosha Judmayer.
2334     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
2335       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
2336     - When the DANGEROUS_VERSION controller status event told us we're
2337       running an obsolete version, it used the string "OLD" to describe
2338       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
2339       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
2340     - If we can't expand our list of entry guards (e.g. because we're
2341       using bridges or we have StrictEntryNodes set), don't mark relays
2342       down when they fail a directory request. Otherwise we're too quick
2343       to mark all our entry points down. Bugfix on 0.1.2.x.
2344     - Fix handling of hex nicknames when answering controller requests for
2345       networkstatus by name, or when deciding whether to warn about unknown
2346       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
2347     - Fix a couple of hard-to-trigger autoconf problems that could result
2348       in really weird results on platforms whose sys/types.h files define
2349       nonstandard integer types. Bugfix on 0.1.2.x.
2350     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
2351     - Don't crash on name lookup when we have no current consensus.  Fixes
2352       bug 538; bugfix on 0.2.0.x.
2353     - Only Tors that want to mirror the v2 directory info should
2354       create the "cached-status" directory in their datadir. (All Tors
2355       used to create it.) Bugfix on 0.2.0.9-alpha.
2356     - Directory authorities should only automatically download Extra Info
2357       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
2359   o Minor features:
2360     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
2361       consumers. (We already do this on HUP.)
2362     - Authorities and caches fetch the v2 networkstatus documents
2363       less often, now that v3 is encouraged.
2364     - Add a new config option BridgeRelay that specifies you want to
2365       be a bridge relay. Right now the only difference is that it makes
2366       you answer begin_dir requests, and it makes you cache dir info,
2367       even if your DirPort isn't on.
2368     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
2369       ask about source, timestamp of arrival, purpose, etc. We need
2370       something like this to help Vidalia not do GeoIP lookups on bridge
2371       addresses.
2372     - Allow multiple HashedControlPassword config lines, to support
2373       multiple controller passwords.
2374     - Authorities now decide whether they're authoritative for a given
2375       router based on the router's purpose.
2376     - New config options AuthDirBadDir and AuthDirListBadDirs for
2377       authorities to mark certain relays as "bad directories" in the
2378       networkstatus documents. Also supports the "!baddir" directive in
2379       the approved-routers file.
2382 Changes in version 0.2.0.12-alpha - 2007-11-16
2383   This twelfth development snapshot fixes some more build problems as
2384   well as a few minor bugs.
2386   o Compile fixes:
2387     - Make it build on OpenBSD again. Patch from tup.
2388     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
2389       package-building for Red Hat, OS X, etc.
2391   o Minor bugfixes (on 0.1.2.x):
2392     - Changing the ExitPolicyRejectPrivate setting should cause us to
2393       rebuild our server descriptor.
2395   o Minor bugfixes (on 0.2.0.x):
2396     - When we're lacking a consensus, don't try to perform rendezvous
2397       operations. Reported by Karsten Loesing.
2398     - Fix a small memory leak whenever we decide against using a
2399       newly picked entry guard. Reported by Mike Perry.
2400     - When authorities detected more than two relays running on the same
2401       IP address, they were clearing all the status flags but forgetting
2402       to clear the "hsdir" flag. So clients were being told that a
2403       given relay was the right choice for a v2 hsdir lookup, yet they
2404       never had its descriptor because it was marked as 'not running'
2405       in the consensus.
2406     - If we're trying to fetch a bridge descriptor and there's no way
2407       the bridge authority could help us (for example, we don't know
2408       a digest, or there is no bridge authority), don't be so eager to
2409       fall back to asking the bridge authority.
2410     - If we're using bridges or have strictentrynodes set, and our
2411       chosen exit is in the same family as all our bridges/entry guards,
2412       then be flexible about families.
2414   o Minor features:
2415     - When we negotiate a v2 link-layer connection (not yet implemented),
2416       accept RELAY_EARLY cells and turn them into RELAY cells if we've
2417       negotiated a v1 connection for their next step. Initial code for
2418       proposal 110.
2421 Changes in version 0.2.0.11-alpha - 2007-11-12
2422   This eleventh development snapshot fixes some build problems with
2423   the previous snapshot. It also includes a more secure-by-default exit
2424   policy for relays, fixes an enormous memory leak for exit relays, and
2425   fixes another bug where servers were falling out of the directory list.
2427   o Security fixes:
2428     - Exit policies now reject connections that are addressed to a
2429       relay's public (external) IP address too, unless
2430       ExitPolicyRejectPrivate is turned off. We do this because too
2431       many relays are running nearby to services that trust them based
2432       on network address. Bugfix on 0.1.2.x.
2434   o Major bugfixes:
2435     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
2436       on every successful resolve. Reported by Mike Perry; bugfix
2437       on 0.1.2.x.
2438     - On authorities, never downgrade to old router descriptors simply
2439       because they're listed in the consensus. This created a catch-22
2440       where we wouldn't list a new descriptor because there was an
2441       old one in the consensus, and we couldn't get the new one in the
2442       consensus because we wouldn't list it. Possible fix for bug 548.
2443       Also, this might cause bug 543 to appear on authorities; if so,
2444       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
2446   o Packaging fixes on 0.2.0.10-alpha:
2447     - We were including instructions about what to do with the
2448       src/config/fallback-consensus file, but we weren't actually
2449       including it in the tarball. Disable all of that for now.
2451   o Minor features:
2452     - Allow people to say PreferTunnelledDirConns rather than
2453       PreferTunneledDirConns, for those alternate-spellers out there.
2455   o Minor bugfixes:
2456     - Don't reevaluate all the information from our consensus document
2457       just because we've downloaded a v2 networkstatus that we intend
2458       to cache. Fixes bug 545; bugfix on 0.2.0.x.
2461 Changes in version 0.2.0.10-alpha - 2007-11-10
2462   This tenth development snapshot adds a third v3 directory authority
2463   run by Mike Perry, adds most of Karsten Loesing's new hidden service
2464   descriptor format, fixes a bad crash bug and new bridge bugs introduced
2465   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
2466   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
2467   addresses many more minor issues.
2469   o New directory authorities:
2470     - Set up ides (run by Mike Perry) as the third v3 directory authority.
2472   o Major features:
2473     - Allow tunnelled directory connections to ask for an encrypted
2474       "begin_dir" connection or an anonymized "uses a full Tor circuit"
2475       connection independently. Now we can make anonymized begin_dir
2476       connections for (e.g.) more secure hidden service posting and
2477       fetching.
2478     - More progress on proposal 114: code from Karsten Loesing to
2479       implement new hidden service descriptor format.
2480     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
2481       accommodate the growing number of servers that use the default
2482       and are reaching it.
2483     - Directory authorities use a new formula for selecting which nodes
2484       to advertise as Guards: they must be in the top 7/8 in terms of
2485       how long we have known about them, and above the median of those
2486       nodes in terms of weighted fractional uptime.
2487     - Make "not enough dir info yet" warnings describe *why* Tor feels
2488       it doesn't have enough directory info yet.
2490   o Major bugfixes:
2491     - Stop servers from crashing if they set a Family option (or
2492       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
2493       by Fabian Keil.
2494     - Make bridge users work again -- the move to v3 directories in
2495       0.2.0.9-alpha had introduced a number of bugs that made bridges
2496       no longer work for clients.
2497     - When the clock jumps forward a lot, do not allow the bandwidth
2498       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
2500   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
2501     - When the consensus lists a router descriptor that we previously were
2502       mirroring, but that we considered non-canonical, reload the
2503       descriptor as canonical. This fixes bug 543 where Tor servers
2504       would start complaining after a few days that they don't have
2505       enough directory information to build a circuit.
2506     - Consider replacing the current consensus when certificates arrive
2507       that make the pending consensus valid. Previously, we were only
2508       considering replacement when the new certs _didn't_ help.
2509     - Fix an assert error on startup if we didn't already have the
2510       consensus and certs cached in our datadirectory: we were caching
2511       the consensus in consensus_waiting_for_certs but then free'ing it
2512       right after.
2513     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
2514       Request) if we need more v3 certs but we've already got pending
2515       requests for all of them.
2516     - Correctly back off from failing certificate downloads. Fixes
2517       bug 546.
2518     - Authorities don't vote on the Running flag if they have been running
2519       for less than 30 minutes themselves. Fixes bug 547, where a newly
2520       started authority would vote that everyone was down.
2522   o New requirements:
2523     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
2524       it, it had no AES, and it hasn't seen any security patches since
2525       2004.
2527   o Minor features:
2528     - Clients now hold circuitless TLS connections open for 1.5 times
2529       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
2530       rebuild a new circuit over them within that timeframe. Previously,
2531       they held them open only for KeepalivePeriod (5 minutes).
2532     - Use "If-Modified-Since" to avoid retrieving consensus
2533       networkstatuses that we already have.
2534     - When we have no consensus, check FallbackNetworkstatusFile (defaults
2535       to $PREFIX/share/tor/fallback-consensus) for a consensus.  This way
2536       we start knowing some directory caches.
2537     - When we receive a consensus from the future, warn about skew.
2538     - Improve skew reporting: try to give the user a better log message
2539       about how skewed they are, and how much this matters.
2540     - When we have a certificate for an authority, believe that
2541       certificate's claims about the authority's IP address.
2542     - New --quiet command-line option to suppress the default console log.
2543       Good in combination with --hash-password.
2544     - Authorities send back an X-Descriptor-Not-New header in response to
2545       an accepted-but-discarded descriptor upload.  Partially implements
2546       fix for bug 535.
2547     - Make the log message for "tls error. breaking." more useful.
2548     - Better log messages about certificate downloads, to attempt to
2549       track down the second incarnation of bug 546.
2551   o Minor features (bridges):
2552     - If bridge users set UpdateBridgesFromAuthority, but the digest
2553       they ask for is a 404 from the bridge authority, they now fall
2554       back to trying the bridge directly.
2555     - Bridges now use begin_dir to publish their server descriptor to
2556       the bridge authority, even when they haven't set TunnelDirConns.
2558   o Minor features (controller):
2559     - When reporting clock skew, and we know that the clock is _at least
2560       as skewed_ as some value, but we don't know the actual value,
2561       report the value as a "minimum skew."
2563   o Utilities:
2564     - Update linux-tor-prio.sh script to allow QoS based on the uid of
2565       the Tor process. Patch from Marco Bonetti with tweaks from Mike
2566       Perry.
2568   o Minor bugfixes:
2569     - Refuse to start if both ORPort and UseBridges are set. Bugfix
2570       on 0.2.0.x, suggested by Matt Edman.
2571     - Don't stop fetching descriptors when FetchUselessDescriptors is
2572       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
2573       reported by tup and ioerror.
2574     - Better log message on vote from unknown authority.
2575     - Don't log "Launching 0 request for 0 router" message.
2577   o Minor bugfixes (memory leaks):
2578     - Stop leaking memory every time we parse a v3 certificate. Bugfix
2579       on 0.2.0.1-alpha.
2580     - Stop leaking memory every time we load a v3 certificate. Bugfix
2581       on 0.2.0.1-alpha. Fixes bug 536.
2582     - Stop leaking a cached networkstatus on exit.  Bugfix on
2583       0.2.0.3-alpha.
2584     - Stop leaking voter information every time we free a consensus.
2585       Bugfix on 0.2.0.3-alpha.
2586     - Stop leaking signed data every time we check a voter signature.
2587       Bugfix on 0.2.0.3-alpha.
2588     - Stop leaking a signature every time we fail to parse a consensus or
2589       a vote.  Bugfix on 0.2.0.3-alpha.
2590     - Stop leaking v2_download_status_map on shutdown.  Bugfix on
2591       0.2.0.9-alpha.
2592     - Stop leaking conn->nickname every time we make a connection to a
2593       Tor relay without knowing its expected identity digest (e.g. when
2594       using bridges). Bugfix on 0.2.0.3-alpha.
2596   - Minor bugfixes (portability):
2597     - Run correctly on platforms where rlim_t is larger than unsigned
2598       long, and/or where the real limit for number of open files is
2599       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
2600       particular, these may be needed for OS X 10.5.
2603 Changes in version 0.1.2.18 - 2007-10-28
2604   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
2605   hidden service introduction that were causing huge delays, and a big
2606   bug that was causing some servers to disappear from the network status
2607   lists for a few hours each day.
2609   o Major bugfixes (crashes):
2610     - If a connection is shut down abruptly because of something that
2611       happened inside connection_flushed_some(), do not call
2612       connection_finished_flushing(). Should fix bug 451:
2613       "connection_stop_writing: Assertion conn->write_event failed"
2614       Bugfix on 0.1.2.7-alpha.
2615     - Fix possible segfaults in functions called from
2616       rend_process_relay_cell().
2618   o Major bugfixes (hidden services):
2619     - Hidden services were choosing introduction points uniquely by
2620       hexdigest, but when constructing the hidden service descriptor
2621       they merely wrote the (potentially ambiguous) nickname.
2622     - Clients now use the v2 intro format for hidden service
2623       connections: they specify their chosen rendezvous point by identity
2624       digest rather than by (potentially ambiguous) nickname. These
2625       changes could speed up hidden service connections dramatically.
2627   o Major bugfixes (other):
2628     - Stop publishing a new server descriptor just because we get a
2629       HUP signal. This led (in a roundabout way) to some servers getting
2630       dropped from the networkstatus lists for a few hours each day.
2631     - When looking for a circuit to cannibalize, consider family as well
2632       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
2633       circuit cannibalization).
2634     - When a router wasn't listed in a new networkstatus, we were leaving
2635       the flags for that router alone -- meaning it remained Named,
2636       Running, etc -- even though absence from the networkstatus means
2637       that it shouldn't be considered to exist at all anymore. Now we
2638       clear all the flags for routers that fall out of the networkstatus
2639       consensus. Fixes bug 529.
2641   o Minor bugfixes:
2642     - Don't try to access (or alter) the state file when running
2643       --list-fingerprint or --verify-config or --hash-password. Resolves
2644       bug 499.
2645     - When generating information telling us how to extend to a given
2646       router, do not try to include the nickname if it is
2647       absent. Resolves bug 467.
2648     - Fix a user-triggerable segfault in expand_filename(). (There isn't
2649       a way to trigger this remotely.)
2650     - When sending a status event to the controller telling it that an
2651       OR address is reachable, set the port correctly. (Previously we
2652       were reporting the dir port.)
2653     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
2654       command. Bugfix on 0.1.2.17.
2655     - When loading bandwidth history, do not believe any information in
2656       the future. Fixes bug 434.
2657     - When loading entry guard information, do not believe any information
2658       in the future.
2659     - When we have our clock set far in the future and generate an
2660       onion key, then re-set our clock to be correct, we should not stop
2661       the onion key from getting rotated.
2662     - On some platforms, accept() can return a broken address. Detect
2663       this more quietly, and deal accordingly. Fixes bug 483.
2664     - It's not actually an error to find a non-pending entry in the DNS
2665       cache when canceling a pending resolve. Don't log unless stuff
2666       is fishy. Resolves bug 463.
2667     - Don't reset trusted dir server list when we set a configuration
2668       option. Patch from Robert Hogan.
2669     - Don't try to create the datadir when running --verify-config or
2670       --hash-password. Resolves bug 540.
2673 Changes in version 0.2.0.9-alpha - 2007-10-24
2674   This ninth development snapshot switches clients to the new v3 directory
2675   system; allows servers to be listed in the network status even when they
2676   have the same nickname as a registered server; and fixes many other
2677   bugs including a big one that was causing some servers to disappear
2678   from the network status lists for a few hours each day.
2680   o Major features (directory system):
2681     - Clients now download v3 consensus networkstatus documents instead
2682       of v2 networkstatus documents. Clients and caches now base their
2683       opinions about routers on these consensus documents. Clients only
2684       download router descriptors listed in the consensus.
2685     - Authorities now list servers who have the same nickname as
2686       a different named server, but list them with a new flag,
2687       "Unnamed". Now we can list servers that happen to pick the same
2688       nickname as a server that registered two years ago and then
2689       disappeared. Partially implements proposal 122.
2690     - If the consensus lists a router as "Unnamed", the name is assigned
2691       to a different router: do not identify the router by that name.
2692       Partially implements proposal 122.
2693     - Authorities can now come to a consensus on which method to use to
2694       compute the consensus. This gives us forward compatibility.
2696   o Major bugfixes:
2697     - Stop publishing a new server descriptor just because we HUP or
2698       when we find our DirPort to be reachable but won't actually publish
2699       it. New descriptors without any real changes are dropped by the
2700       authorities, and can screw up our "publish every 18 hours" schedule.
2701       Bugfix on 0.1.2.x.
2702     - When a router wasn't listed in a new networkstatus, we were leaving
2703       the flags for that router alone -- meaning it remained Named,
2704       Running, etc -- even though absence from the networkstatus means
2705       that it shouldn't be considered to exist at all anymore. Now we
2706       clear all the flags for routers that fall out of the networkstatus
2707       consensus. Fixes bug 529; bugfix on 0.1.2.x.
2708     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
2709       extrainfo documents and then discard them immediately for not
2710       matching the latest router. Bugfix on 0.2.0.1-alpha.
2712   o Minor features (v3 directory protocol):
2713     - Allow tor-gencert to generate a new certificate without replacing
2714       the signing key.
2715     - Allow certificates to include an address.
2716     - When we change our directory-cache settings, reschedule all voting
2717       and download operations.
2718     - Reattempt certificate downloads immediately on failure, as long as
2719       we haven't failed a threshold number of times yet.
2720     - Delay retrying consensus downloads while we're downloading
2721       certificates to verify the one we just got.  Also, count getting a
2722       consensus that we already have (or one that isn't valid) as a failure,
2723       and count failing to get the certificates after 20 minutes as a
2724       failure.
2725     - Build circuits and download descriptors even if our consensus is a
2726       little expired. (This feature will go away once authorities are
2727       more reliable.)
2729   o Minor features (router descriptor cache):
2730     - If we find a cached-routers file that's been sitting around for more
2731       than 28 days unmodified, then most likely it's a leftover from
2732       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
2733       routers anyway.
2734     - When we (as a cache) download a descriptor because it was listed
2735       in a consensus, remember when the consensus was supposed to expire,
2736       and don't expire the descriptor until then.
2738   o Minor features (performance):
2739     - Call routerlist_remove_old_routers() much less often. This should
2740       speed startup, especially on directory caches.
2741     - Don't try to launch new descriptor downloads quite so often when we
2742       already have enough directory information to build circuits.
2743     - Base64 decoding was actually showing up on our profile when parsing
2744       the initial descriptor file; switch to an in-process all-at-once
2745       implementation that's about 3.5x times faster than calling out to
2746       OpenSSL.
2748   o Minor features (compilation):
2749     - Detect non-ASCII platforms (if any still exist) and refuse to
2750       build there: some of our code assumes that 'A' is 65 and so on.
2752   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
2753     - Make the "next period" votes into "current period" votes immediately
2754       after publishing the consensus; avoid a heisenbug that made them
2755       stick around indefinitely.
2756     - When we discard a vote as a duplicate, do not report this as
2757       an error.
2758     - Treat missing v3 keys or certificates as an error when running as a
2759       v3 directory authority.
2760     - When we're configured to be a v3 authority, but we're only listed
2761       as a non-v3 authority in our DirServer line for ourself, correct
2762       the listing.
2763     - If an authority doesn't have a qualified hostname, just put
2764       its address in the vote. This fixes the problem where we referred to
2765       "moria on moria:9031."
2766     - Distinguish between detached signatures for the wrong period, and
2767       detached signatures for a divergent vote.
2768     - Fix a small memory leak when computing a consensus.
2769     - When there's no concensus, we were forming a vote every 30
2770       minutes, but writing the "valid-after" line in our vote based
2771       on our configured V3AuthVotingInterval: so unless the intervals
2772       matched up, we immediately rejected our own vote because it didn't
2773       start at the voting interval that caused us to construct a vote.
2775   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
2776     - Delete unverified-consensus when the real consensus is set.
2777     - Consider retrying a consensus networkstatus fetch immediately
2778       after one fails: don't wait 60 seconds to notice.
2779     - When fetching a consensus as a cache, wait until a newer consensus
2780       should exist before trying to replace the current one.
2781     - Use a more forgiving schedule for retrying failed consensus
2782       downloads than for other types.
2784   o Minor bugfixes (other directory issues):
2785     - Correct the implementation of "download votes by digest." Bugfix on
2786       0.2.0.8-alpha.
2787     - Authorities no longer send back "400 you're unreachable please fix
2788       it" errors to Tor servers that aren't online all the time. We're
2789       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
2791   o Minor bugfixes (controller):
2792     - Don't reset trusted dir server list when we set a configuration
2793       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
2794     - Respond to INT and TERM SIGNAL commands before we execute the
2795       signal, in case the signal shuts us down. We had a patch in
2796       0.1.2.1-alpha that tried to do this by queueing the response on
2797       the connection's buffer before shutting down, but that really
2798       isn't the same thing at all. Bug located by Matt Edman.
2800   o Minor bugfixes (misc):
2801     - Correctly check for bad options to the "PublishServerDescriptor"
2802       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
2803     - Stop leaking memory on failing case of base32_decode, and make
2804       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
2805     - Don't try to download extrainfo documents when we're trying to
2806       fetch enough directory info to build a circuit: having enough
2807       info should get priority. Bugfix on 0.2.0.x.
2808     - Don't complain that "your server has not managed to confirm that its
2809       ports are reachable" if we haven't been able to build any circuits
2810       yet. Bug found by spending four hours without a v3 consensus. Bugfix
2811       on 0.1.2.x.
2812     - Detect the reason for failing to mmap a descriptor file we just
2813       wrote, and give a more useful log message.  Fixes bug 533. Bugfix
2814       on 0.1.2.x.
2816   o Code simplifications and refactoring:
2817     - Remove support for the old bw_accounting file: we've been storing
2818       bandwidth accounting information in the state file since
2819       0.1.2.5-alpha.  This may result in bandwidth accounting errors
2820       if you try to upgrade from 0.1.1.x or earlier, or if you try to
2821       downgrade to 0.1.1.x or earlier.
2822     - New convenience code to locate a file within the DataDirectory.
2823     - Move non-authority functionality out of dirvote.c.
2824     - Refactor the arguments for router_pick_{directory_|trusteddir}server
2825       so that they all take the same named flags.
2827   o Utilities
2828     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
2829       Unix users an easy way to script their Tor process (e.g. by
2830       adjusting bandwidth based on the time of the day).
2833 Changes in version 0.2.0.8-alpha - 2007-10-12
2834   This eighth development snapshot fixes a crash bug that's been bothering
2835   us since February 2007, lets bridge authorities store a list of bridge
2836   descriptors they've seen, gets v3 directory voting closer to working,
2837   starts caching v3 directory consensus documents on directory mirrors,
2838   and fixes a variety of smaller issues including some minor memory leaks.
2840   o Major features (router descriptor cache):
2841     - Store routers in a file called cached-descriptors instead of in
2842       cached-routers. Initialize cached-descriptors from cached-routers
2843       if the old format is around. The new format allows us to store
2844       annotations along with descriptors.
2845     - Use annotations to record the time we received each descriptor, its
2846       source, and its purpose.
2847     - Disable the SETROUTERPURPOSE controller command: it is now
2848       obsolete.
2849     - Controllers should now specify cache=no or cache=yes when using
2850       the +POSTDESCRIPTOR command.
2851     - Bridge authorities now write bridge descriptors to disk, meaning
2852       we can export them to other programs and begin distributing them
2853       to blocked users.
2855   o Major features (directory authorities):
2856     - When a v3 authority is missing votes or signatures, it now tries
2857       to fetch them.
2858     - Directory authorities track weighted fractional uptime as well as
2859       weighted mean-time-between failures.  WFU is suitable for deciding
2860       whether a node is "usually up", while MTBF is suitable for deciding
2861       whether a node is "likely to stay up."  We need both, because
2862       "usually up" is a good requirement for guards, while "likely to
2863       stay up" is a good requirement for long-lived connections.
2865   o Major features (v3 directory system):
2866     - Caches now download v3 network status documents as needed,
2867       and download the descriptors listed in them.
2868     - All hosts now attempt to download and keep fresh v3 authority
2869       certificates, and re-attempt after failures.
2870     - More internal-consistency checks for vote parsing.
2872   o Major bugfixes (crashes):
2873     - If a connection is shut down abruptly because of something that
2874       happened inside connection_flushed_some(), do not call
2875       connection_finished_flushing(). Should fix bug 451. Bugfix on
2876       0.1.2.7-alpha.
2878   o Major bugfixes (performance):
2879     - Fix really bad O(n^2) performance when parsing a long list of
2880       routers: Instead of searching the entire list for an "extra-info "
2881       string which usually wasn't there, once for every routerinfo
2882       we read, just scan lines forward until we find one we like.
2883       Bugfix on 0.2.0.1.
2884     - When we add data to a write buffer in response to the data on that
2885       write buffer getting low because of a flush, do not consider the
2886       newly added data as a candidate for immediate flushing, but rather
2887       make it wait until the next round of writing. Otherwise, we flush
2888       and refill recursively, and a single greedy TLS connection can
2889       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
2891   o Minor features (v3 authority system):
2892     - Add more ways for tools to download the votes that lead to the
2893       current consensus.
2894     - Send a 503 when low on bandwidth and a vote, consensus, or
2895       certificate is requested.
2896     - If-modified-since is now implemented properly for all kinds of
2897       certificate requests.
2899   o Minor bugfixes (network statuses):
2900     - Tweak the implementation of proposal 109 slightly: allow at most
2901       two Tor servers on the same IP address, except if it's the location
2902       of a directory authority, in which case allow five. Bugfix on
2903       0.2.0.3-alpha.
2905   o Minor bugfixes (controller):
2906     - When sending a status event to the controller telling it that an
2907       OR address is reachable, set the port correctly. (Previously we
2908       were reporting the dir port.) Bugfix on 0.1.2.x.
2910   o Minor bugfixes (v3 directory system):
2911     - Fix logic to look up a cert by its signing key digest. Bugfix on
2912       0.2.0.7-alpha.
2913     - Only change the reply to a vote to "OK" if it's not already
2914       set. This gets rid of annoying "400 OK" log messages, which may
2915       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
2916     - When we get a valid consensus, recompute the voting schedule.
2917     - Base the valid-after time of a vote on the consensus voting
2918       schedule, not on our preferred schedule.
2919     - Make the return values and messages from signature uploads and
2920       downloads more sensible.
2921     - Fix a memory leak when serving votes and consensus documents, and
2922       another when serving certificates.
2924   o Minor bugfixes (performance):
2925     - Use a slightly simpler string hashing algorithm (copying Python's
2926       instead of Java's) and optimize our digest hashing algorithm to take
2927       advantage of 64-bit platforms and to remove some possibly-costly
2928       voodoo.
2929     - Fix a minor memory leak whenever we parse guards from our state
2930       file. Bugfix on 0.2.0.7-alpha.
2931     - Fix a minor memory leak whenever we write out a file. Bugfix on
2932       0.2.0.7-alpha.
2933     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
2934       command. Bugfix on 0.2.0.5-alpha.
2936   o Minor bugfixes (portability):
2937     - On some platforms, accept() can return a broken address. Detect
2938       this more quietly, and deal accordingly. Fixes bug 483.
2939     - Stop calling tor_strlower() on uninitialized memory in some cases.
2940       Bugfix in 0.2.0.7-alpha.
2942   o Minor bugfixes (usability):
2943     - Treat some 403 responses from directory servers as INFO rather than
2944       WARN-severity events.
2945     - It's not actually an error to find a non-pending entry in the DNS
2946       cache when canceling a pending resolve. Don't log unless stuff is
2947       fishy. Resolves bug 463.
2949   o Minor bugfixes (anonymity):
2950     - Never report that we've used more bandwidth than we're willing to
2951       relay: it leaks how much non-relay traffic we're using. Resolves
2952       bug 516.
2953     - When looking for a circuit to cannibalize, consider family as well
2954       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
2955       circuit cannibalization).
2957   o Code simplifications and refactoring:
2958     - Make a bunch of functions static. Remove some dead code.
2959     - Pull out about a third of the really big routerlist.c; put it in a
2960       new module, networkstatus.c.
2961     - Merge the extra fields in local_routerstatus_t back into
2962       routerstatus_t: we used to need one routerstatus_t for each
2963       authority's opinion, plus a local_routerstatus_t for the locally
2964       computed consensus opinion. To save space, we put the locally
2965       modified fields into local_routerstatus_t, and only the common
2966       stuff into routerstatus_t. But once v3 directories are in use,
2967       clients and caches will no longer need to hold authority opinions;
2968       thus, the rationale for keeping the types separate is now gone.
2969     - Make the code used to reschedule and reattempt downloads more
2970       uniform.
2971     - Turn all 'Are we a directory server/mirror?' logic into a call to
2972       dirserver_mode().
2973     - Remove the code to generate the oldest (v1) directory format.
2974       The code has been disabled since 0.2.0.5-alpha.
2977 Changes in version 0.2.0.7-alpha - 2007-09-21
2978   This seventh development snapshot makes bridges work again, makes bridge
2979   authorities work for the first time, fixes two huge performance flaws
2980   in hidden services, and fixes a variety of minor issues.
2982   o New directory authorities:
2983     - Set up moria1 and tor26 as the first v3 directory authorities. See
2984       doc/spec/dir-spec.txt for details on the new directory design.
2986   o Major bugfixes (crashes):
2987     - Fix possible segfaults in functions called from
2988       rend_process_relay_cell(). Bugfix on 0.1.2.x.
2990   o Major bugfixes (bridges):
2991     - Fix a bug that made servers send a "404 Not found" in response to
2992       attempts to fetch their server descriptor. This caused Tor servers
2993       to take many minutes to establish reachability for their DirPort,
2994       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
2995     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
2996       users configure that and specify a bridge with an identity
2997       fingerprint, now they will lookup the bridge descriptor at the
2998       default bridge authority via a one-hop tunnel, but once circuits
2999       are established they will switch to a three-hop tunnel for later
3000       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
3002   o Major bugfixes (hidden services):
3003     - Hidden services were choosing introduction points uniquely by
3004       hexdigest, but when constructing the hidden service descriptor
3005       they merely wrote the (potentially ambiguous) nickname.
3006     - Clients now use the v2 intro format for hidden service
3007       connections: they specify their chosen rendezvous point by identity
3008       digest rather than by (potentially ambiguous) nickname. Both
3009       are bugfixes on 0.1.2.x, and they could speed up hidden service
3010       connections dramatically. Thanks to Karsten Loesing.
3012   o Minor features (security):
3013     - As a client, do not believe any server that tells us that an
3014       address maps to an internal address space.
3015     - Make it possible to enable HashedControlPassword and
3016       CookieAuthentication at the same time.
3018   o Minor features (guard nodes):
3019     - Tag every guard node in our state file with the version that
3020       we believe added it, or with our own version if we add it. This way,
3021       if a user temporarily runs an old version of Tor and then switches
3022       back to a new one, she doesn't automatically lose her guards.
3024   o Minor features (speed):
3025     - When implementing AES counter mode, update only the portions of the
3026       counter buffer that need to change, and don't keep separate
3027       network-order and host-order counters when they are the same (i.e.,
3028       on big-endian hosts.)
3030   o Minor features (controller):
3031     - Accept LF instead of CRLF on controller, since some software has a
3032       hard time generating real Internet newlines.
3033     - Add GETINFO values for the server status events
3034       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
3035       Robert Hogan.
3037   o Removed features:
3038      - Routers no longer include bandwidth-history lines in their
3039        descriptors; this information is already available in extra-info
3040        documents, and including it in router descriptors took up 60%
3041        (!) of compressed router descriptor downloads. Completes
3042        implementation of proposal 104.
3043      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
3044        and TorControl.py, as they use the old v0 controller protocol,
3045        and are obsoleted by TorFlow anyway.
3046      - Drop support for v1 rendezvous descriptors, since we never used
3047        them anyway, and the code has probably rotted by now. Based on
3048        patch from Karsten Loesing.
3049      - On OSX, stop warning the user that kqueue support in libevent is
3050       "experimental", since it seems to have worked fine for ages.
3052   o Minor bugfixes:
3053     - When generating information telling us how to extend to a given
3054       router, do not try to include the nickname if it is absent. Fixes
3055       bug 467. Bugfix on 0.2.0.3-alpha.
3056     - Fix a user-triggerable (but not remotely-triggerable) segfault
3057       in expand_filename(). Bugfix on 0.1.2.x.
3058     - Fix a memory leak when freeing incomplete requests from DNSPort.
3059       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
3060     - Don't try to access (or alter) the state file when running
3061       --list-fingerprint or --verify-config or --hash-password. (Resolves
3062       bug 499.) Bugfix on 0.1.2.x.
3063     - Servers used to decline to publish their DirPort if their
3064       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
3065       were below a threshold. Now they only look at BandwidthRate and
3066       RelayBandwidthRate. Bugfix on 0.1.2.x.
3067     - Remove an optimization in the AES counter-mode code that assumed
3068       that the counter never exceeded 2^68. When the counter can be set
3069       arbitrarily as an IV (as it is by Karsten's new hidden services
3070       code), this assumption no longer holds. Bugfix on 0.1.2.x.
3071     - Resume listing "AUTHORITY" flag for authorities in network status.
3072       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
3074   o Code simplifications and refactoring:
3075     - Revamp file-writing logic so we don't need to have the entire
3076       contents of a file in memory at once before we write to disk. Tor,
3077       meet stdio.
3078     - Turn "descriptor store" into a full-fledged type.
3079     - Move all NT services code into a separate source file.
3080     - Unify all code that computes medians, percentile elements, etc.
3081     - Get rid of a needless malloc when parsing address policies.
3084 Changes in version 0.1.2.17 - 2007-08-30
3085   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
3086   X bundles. Vidalia 0.0.14 makes authentication required for the
3087   ControlPort in the default configuration, which addresses important
3088   security risks. Everybody who uses Vidalia (or another controller)
3089   should upgrade.
3091   In addition, this Tor update fixes major load balancing problems with
3092   path selection, which should speed things up a lot once many people
3093   have upgraded.
3095   o Major bugfixes (security):
3096     - We removed support for the old (v0) control protocol. It has been
3097       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
3098       become more of a headache than it's worth.
3100   o Major bugfixes (load balancing):
3101     - When choosing nodes for non-guard positions, weight guards
3102       proportionally less, since they already have enough load. Patch
3103       from Mike Perry.
3104     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
3105       will allow fast Tor servers to get more attention.
3106     - When we're upgrading from an old Tor version, forget our current
3107       guards and pick new ones according to the new weightings. These
3108       three load balancing patches could raise effective network capacity
3109       by a factor of four. Thanks to Mike Perry for measurements.
3111   o Major bugfixes (stream expiration):
3112     - Expire not-yet-successful application streams in all cases if
3113       they've been around longer than SocksTimeout. Right now there are
3114       some cases where the stream will live forever, demanding a new
3115       circuit every 15 seconds. Fixes bug 454; reported by lodger.
3117   o Minor features (controller):
3118     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
3119       is valid before any authentication has been received. It tells
3120       a controller what kind of authentication is expected, and what
3121       protocol is spoken. Implements proposal 119.
3123   o Minor bugfixes (performance):
3124     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
3125       greatly speeding up loading cached-routers from disk on startup.
3126     - Disable sentinel-based debugging for buffer code: we squashed all
3127       the bugs that this was supposed to detect a long time ago, and now
3128       its only effect is to change our buffer sizes from nice powers of
3129       two (which platform mallocs tend to like) to values slightly over
3130       powers of two (which make some platform mallocs sad).
3132   o Minor bugfixes (misc):
3133     - If exit bandwidth ever exceeds one third of total bandwidth, then
3134       use the correct formula to weight exit nodes when choosing paths.
3135       Based on patch from Mike Perry.
3136     - Choose perfectly fairly among routers when choosing by bandwidth and
3137       weighting by fraction of bandwidth provided by exits. Previously, we
3138       would choose with only approximate fairness, and correct ourselves
3139       if we ran off the end of the list.
3140     - If we require CookieAuthentication but we fail to write the
3141       cookie file, we would warn but not exit, and end up in a state
3142       where no controller could authenticate. Now we exit.
3143     - If we require CookieAuthentication, stop generating a new cookie
3144       every time we change any piece of our config.
3145     - Refuse to start with certain directory authority keys, and
3146       encourage people using them to stop.
3147     - Terminate multi-line control events properly. Original patch
3148       from tup.
3149     - Fix a minor memory leak when we fail to find enough suitable
3150       servers to choose a circuit.
3151     - Stop leaking part of the descriptor when we run into a particularly
3152       unparseable piece of it.
3155 Changes in version 0.2.0.6-alpha - 2007-08-26
3156   This sixth development snapshot features a new Vidalia version in the
3157   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
3158   the ControlPort in the default configuration, which addresses important
3159   security risks.
3161   In addition, this snapshot fixes major load balancing problems
3162   with path selection, which should speed things up a lot once many
3163   people have upgraded. The directory authorities also use a new
3164   mean-time-between-failure approach to tracking which servers are stable,
3165   rather than just looking at the most recent uptime.
3167   o New directory authorities:
3168     - Set up Tonga as the default bridge directory authority.
3170   o Major features:
3171     - Directory authorities now track servers by weighted
3172       mean-times-between-failures. When we have 4 or more days of data,
3173       use measured MTBF rather than declared uptime to decide whether
3174       to call a router Stable. Implements proposal 108.
3176   o Major bugfixes (load balancing):
3177     - When choosing nodes for non-guard positions, weight guards
3178       proportionally less, since they already have enough load. Patch
3179       from Mike Perry.
3180     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
3181       will allow fast Tor servers to get more attention.
3182     - When we're upgrading from an old Tor version, forget our current
3183       guards and pick new ones according to the new weightings. These
3184       three load balancing patches could raise effective network capacity
3185       by a factor of four. Thanks to Mike Perry for measurements.
3187   o Major bugfixes (descriptor parsing):
3188     - Handle unexpected whitespace better in malformed descriptors. Bug
3189       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
3191   o Minor features:
3192     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
3193       GETINFO for Torstat to use until it can switch to using extrainfos.
3194     - Optionally (if built with -DEXPORTMALLINFO) export the output
3195       of mallinfo via http, as tor/mallinfo.txt. Only accessible
3196       from localhost.
3198   o Minor bugfixes:
3199     - Do not intermix bridge routers with controller-added
3200       routers. (Bugfix on 0.2.0.x)
3201     - Do not fail with an assert when accept() returns an unexpected
3202       address family. Addresses but does not wholly fix bug 483. (Bugfix
3203       on 0.2.0.x)
3204     - Let directory authorities startup even when they can't generate
3205       a descriptor immediately, e.g. because they don't know their
3206       address.
3207     - Stop putting the authentication cookie in a file called "0"
3208       in your working directory if you don't specify anything for the
3209       new CookieAuthFile option. Reported by Matt Edman.
3210     - Make it possible to read the PROTOCOLINFO response in a way that
3211       conforms to our control-spec. Reported by Matt Edman.
3212     - Fix a minor memory leak when we fail to find enough suitable
3213       servers to choose a circuit. Bugfix on 0.1.2.x.
3214     - Stop leaking part of the descriptor when we run into a particularly
3215       unparseable piece of it. Bugfix on 0.1.2.x.
3216     - Unmap the extrainfo cache file on exit.
3219 Changes in version 0.2.0.5-alpha - 2007-08-19
3220   This fifth development snapshot fixes compilation on Windows again;
3221   fixes an obnoxious client-side bug that slowed things down and put
3222   extra load on the network; gets us closer to using the v3 directory
3223   voting scheme; makes it easier for Tor controllers to use cookie-based
3224   authentication; and fixes a variety of other bugs.
3226   o Removed features:
3227     - Version 1 directories are no longer generated in full. Instead,
3228       authorities generate and serve "stub" v1 directories that list
3229       no servers. This will stop Tor versions 0.1.0.x and earlier from
3230       working, but (for security reasons) nobody should be running those
3231       versions anyway.
3233   o Major bugfixes (compilation, 0.2.0.x):
3234     - Try to fix Win32 compilation again: improve checking for IPv6 types.
3235     - Try to fix MSVC compilation: build correctly on platforms that do
3236       not define s6_addr16 or s6_addr32.
3237     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
3238       Zhou.
3240   o Major bugfixes (stream expiration):
3241     - Expire not-yet-successful application streams in all cases if
3242       they've been around longer than SocksTimeout. Right now there are
3243       some cases where the stream will live forever, demanding a new
3244       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
3245       reported by lodger.
3247   o Minor features (directory servers):
3248     - When somebody requests a list of statuses or servers, and we have
3249       none of those, return a 404 rather than an empty 200.
3251   o Minor features (directory voting):
3252     - Store v3 consensus status consensuses on disk, and reload them
3253       on startup.
3255   o Minor features (security):
3256     - Warn about unsafe ControlPort configurations.
3257     - Refuse to start with certain directory authority keys, and
3258       encourage people using them to stop.
3260   o Minor features (controller):
3261     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
3262       is valid before any authentication has been received. It tells
3263       a controller what kind of authentication is expected, and what
3264       protocol is spoken. Implements proposal 119.
3265     - New config option CookieAuthFile to choose a new location for the
3266       cookie authentication file, and config option
3267       CookieAuthFileGroupReadable to make it group-readable.
3269   o Minor features (unit testing):
3270     - Add command-line arguments to unit-test executable so that we can
3271       invoke any chosen test from the command line rather than having
3272       to run the whole test suite at once; and so that we can turn on
3273       logging for the unit tests.
3275   o Minor bugfixes (on 0.1.2.x):
3276     - If we require CookieAuthentication but we fail to write the
3277       cookie file, we would warn but not exit, and end up in a state
3278       where no controller could authenticate. Now we exit.
3279     - If we require CookieAuthentication, stop generating a new cookie
3280       every time we change any piece of our config.
3281     - When loading bandwidth history, do not believe any information in
3282       the future.  Fixes bug 434.
3283     - When loading entry guard information, do not believe any information
3284       in the future.
3285     - When we have our clock set far in the future and generate an
3286       onion key, then re-set our clock to be correct, we should not stop
3287       the onion key from getting rotated.
3288     - Clean up torrc sample config file.
3289     - Do not automatically run configure from autogen.sh. This
3290       non-standard behavior tended to annoy people who have built other
3291       programs.
3293   o Minor bugfixes (on 0.2.0.x):
3294     - Fix a bug with AutomapHostsOnResolve that would always cause
3295       the second request to fail. Bug reported by Kate. Bugfix on
3296       0.2.0.3-alpha.
3297     - Fix a bug in ADDRMAP controller replies that would sometimes
3298       try to print a NULL. Patch from tup.
3299     - Read v3 directory authority keys from the right location.
3300     - Numerous bugfixes to directory voting code.
3303 Changes in version 0.1.2.16 - 2007-08-01
3304   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
3305   remote attacker in certain situations to rewrite the user's torrc
3306   configuration file. This can completely compromise anonymity of users
3307   in most configurations, including those running the Vidalia bundles,
3308   TorK, etc. Or worse.
3310   o Major security fixes:
3311     - Close immediately after missing authentication on control port;
3312       do not allow multiple authentication attempts.
3315 Changes in version 0.2.0.4-alpha - 2007-08-01
3316   This fourth development snapshot fixes a critical security vulnerability
3317   for most users, specifically those running Vidalia, TorK, etc. Everybody
3318   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
3320   o Major security fixes:
3321     - Close immediately after missing authentication on control port;
3322       do not allow multiple authentication attempts.
3324   o Major bugfixes (compilation):
3325     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
3326       defined there.
3328   o Minor features (performance):
3329     - Be even more aggressive about releasing RAM from small
3330       empty buffers. Thanks to our free-list code, this shouldn't be too
3331       performance-intensive.
3332     - Disable sentinel-based debugging for buffer code: we squashed all
3333       the bugs that this was supposed to detect a long time ago, and
3334       now its only effect is to change our buffer sizes from nice
3335       powers of two (which platform mallocs tend to like) to values
3336       slightly over powers of two (which make some platform mallocs sad).
3337     - Log malloc statistics from mallinfo() on platforms where it
3338       exists.
3341 Changes in version 0.2.0.3-alpha - 2007-07-29
3342   This third development snapshot introduces new experimental
3343   blocking-resistance features and a preliminary version of the v3
3344   directory voting design, and includes many other smaller features
3345   and bugfixes.
3347   o Major features:
3348     - The first pieces of our "bridge" design for blocking-resistance
3349       are implemented. People can run bridge directory authorities;
3350       people can run bridges; and people can configure their Tor clients
3351       with a set of bridges to use as the first hop into the Tor network.
3352       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
3353       details.
3354     - Create listener connections before we setuid to the configured
3355       User and Group. Now non-Windows users can choose port values
3356       under 1024, start Tor as root, and have Tor bind those ports
3357       before it changes to another UID. (Windows users could already
3358       pick these ports.)
3359     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
3360       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
3361       on "vserver" accounts. (Patch from coderman.)
3362     - Be even more aggressive about separating local traffic from relayed
3363       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
3365   o Major features (experimental):
3366     - First cut of code for "v3 dir voting": directory authorities will
3367       vote on a common network status document rather than each publishing
3368       their own opinion. This code needs more testing and more corner-case
3369       handling before it's ready for use.
3371   o Security fixes:
3372     - Directory authorities now call routers Fast if their bandwidth is
3373       at least 100KB/s, and consider their bandwidth adequate to be a
3374       Guard if it is at least 250KB/s, no matter the medians. This fix
3375       complements proposal 107. [Bugfix on 0.1.2.x]
3376     - Directory authorities now never mark more than 3 servers per IP as
3377       Valid and Running. (Implements proposal 109, by Kevin Bauer and
3378       Damon McCoy.)
3379     - Minor change to organizationName and commonName generation
3380       procedures in TLS certificates during Tor handshakes, to invalidate
3381       some earlier censorware approaches. This is not a long-term
3382       solution, but applying it will give us a bit of time to look into
3383       the epidemiology of countermeasures as they spread.
3385   o Major bugfixes (directory):
3386     - Rewrite directory tokenization code to never run off the end of
3387       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
3389   o Minor features (controller):
3390     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
3391       match requests to applications. (Patch from Robert Hogan.)
3392     - Report address and port correctly on connections to DNSPort. (Patch
3393       from Robert Hogan.)
3394     - Add a RESOLVE command to launch hostname lookups. (Original patch
3395       from Robert Hogan.)
3396     - Add GETINFO status/enough-dir-info to let controllers tell whether
3397       Tor has downloaded sufficient directory information. (Patch
3398       from Tup.)
3399     - You can now use the ControlSocket option to tell Tor to listen for
3400       controller connections on Unix domain sockets on systems that
3401       support them. (Patch from Peter Palfrader.)
3402     - STREAM NEW events are generated for DNSPort requests and for
3403       tunneled directory connections. (Patch from Robert Hogan.)
3404     - New "GETINFO address-mappings/*" command to get address mappings
3405       with expiry information. "addr-mappings/*" is now deprecated.
3406       (Patch from Tup.)
3408   o Minor features (misc):
3409     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
3410       from croup.)
3411     - The tor-gencert tool for v3 directory authorities now creates all
3412       files as readable to the file creator only, and write-protects
3413       the authority identity key.
3414     - When dumping memory usage, list bytes used in buffer memory
3415       free-lists.
3416     - When running with dmalloc, dump more stats on hup and on exit.
3417     - Directory authorities now fail quickly and (relatively) harmlessly
3418       if they generate a network status document that is somehow
3419       malformed.
3421   o Traffic load balancing improvements:
3422     - If exit bandwidth ever exceeds one third of total bandwidth, then
3423       use the correct formula to weight exit nodes when choosing paths.
3424       (Based on patch from Mike Perry.)
3425     - Choose perfectly fairly among routers when choosing by bandwidth and
3426       weighting by fraction of bandwidth provided by exits. Previously, we
3427       would choose with only approximate fairness, and correct ourselves
3428       if we ran off the end of the list. [Bugfix on 0.1.2.x]
3430   o Performance improvements:
3431     - Be more aggressive with freeing buffer RAM or putting it on the
3432       memory free lists.
3433     - Use Critical Sections rather than Mutexes for synchronizing threads
3434       on win32; Mutexes are heavier-weight, and designed for synchronizing
3435       between processes.
3437   o Deprecated and removed features:
3438     - RedirectExits is now deprecated.
3439     - Stop allowing address masks that do not correspond to bit prefixes.
3440       We have warned about these for a really long time; now it's time
3441       to reject them. (Patch from croup.)
3443   o Minor bugfixes (directory):
3444     - Fix another crash bug related to extra-info caching. (Bug found by
3445       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
3446     - Directories no longer return a "304 not modified" when they don't
3447       have the networkstatus the client asked for. Also fix a memory
3448       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
3449     - We had accidentally labelled 0.1.2.x directory servers as not
3450       suitable for begin_dir requests, and had labelled no directory
3451       servers as suitable for uploading extra-info documents. [Bugfix
3452       on 0.2.0.1-alpha]
3454   o Minor bugfixes (dns):
3455     - Fix a crash when DNSPort is set more than once. (Patch from Robert
3456       Hogan.) [Bugfix on 0.2.0.2-alpha]
3457     - Add DNSPort connections to the global connection list, so that we
3458       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
3459       on 0.2.0.2-alpha]
3460     - Fix a dangling reference that could lead to a crash when DNSPort is
3461       changed or closed (Patch from Robert Hogan.) [Bugfix on
3462       0.2.0.2-alpha]
3464   o Minor bugfixes (controller):
3465     - Provide DNS expiry times in GMT, not in local time. For backward
3466       compatibility, ADDRMAP events only provide GMT expiry in an extended
3467       field. "GETINFO address-mappings" always does the right thing.
3468     - Use CRLF line endings properly in NS events.
3469     - Terminate multi-line control events properly. (Original patch
3470       from tup.) [Bugfix on 0.1.2.x-alpha]
3471     - Do not include spaces in SOURCE_ADDR fields in STREAM
3472       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
3475 Changes in version 0.1.2.15 - 2007-07-17
3476   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
3477   problems, fixes compilation on BSD, and fixes a variety of other
3478   bugs. Everybody should upgrade.
3480   o Major bugfixes (compilation):
3481     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
3483   o Major bugfixes (crashes):
3484     - Try even harder not to dereference the first character after
3485       an mmap(). Reported by lodger.
3486     - Fix a crash bug in directory authorities when we re-number the
3487       routerlist while inserting a new router.
3488     - When the cached-routers file is an even multiple of the page size,
3489       don't run off the end and crash. (Fixes bug 455; based on idea
3490       from croup.)
3491     - Fix eventdns.c behavior on Solaris: It is critical to include
3492       orconfig.h _before_ sys/types.h, so that we can get the expected
3493       definition of _FILE_OFFSET_BITS.
3495   o Major bugfixes (security):
3496     - Fix a possible buffer overrun when using BSD natd support. Bug
3497       found by croup.
3498     - When sending destroy cells from a circuit's origin, don't include
3499       the reason for tearing down the circuit. The spec says we didn't,
3500       and now we actually don't. Reported by lodger.
3501     - Keep streamids from different exits on a circuit separate. This
3502       bug may have allowed other routers on a given circuit to inject
3503       cells into streams. Reported by lodger; fixes bug 446.
3504     - If there's a never-before-connected-to guard node in our list,
3505       never choose any guards past it. This way we don't expand our
3506       guard list unless we need to.
3508   o Minor bugfixes (guard nodes):
3509     - Weight guard selection by bandwidth, so that low-bandwidth nodes
3510       don't get overused as guards.
3512   o Minor bugfixes (directory):
3513     - Correctly count the number of authorities that recommend each
3514       version. Previously, we were under-counting by 1.
3515     - Fix a potential crash bug when we load many server descriptors at
3516       once and some of them make others of them obsolete. Fixes bug 458.
3518   o Minor bugfixes (hidden services):
3519     - Stop tearing down the whole circuit when the user asks for a
3520       connection to a port that the hidden service didn't configure.
3521       Resolves bug 444.
3523   o Minor bugfixes (misc):
3524     - On Windows, we were preventing other processes from reading
3525       cached-routers while Tor was running. Reported by janbar.
3526     - Fix a possible (but very unlikely) bug in picking routers by
3527       bandwidth. Add a log message to confirm that it is in fact
3528       unlikely. Patch from lodger.
3529     - Backport a couple of memory leak fixes.
3530     - Backport miscellaneous cosmetic bugfixes.
3533 Changes in version 0.2.0.2-alpha - 2007-06-02
3534   o Major bugfixes on 0.2.0.1-alpha:
3535     - Fix an assertion failure related to servers without extra-info digests.
3536       Resolves bugs 441 and 442.
3538   o Minor features (directory):
3539     - Support "If-Modified-Since" when answering HTTP requests for
3540       directories, running-routers documents, and network-status documents.
3541       (There's no need to support it for router descriptors, since those
3542       are downloaded by descriptor digest.)
3544   o Minor build issues:
3545     - Clear up some MIPSPro compiler warnings.
3546     - When building from a tarball on a machine that happens to have SVK
3547       installed, report the micro-revision as whatever version existed
3548       in the tarball, not as "x".
3551 Changes in version 0.2.0.1-alpha - 2007-06-01
3552   This early development snapshot provides new features for people running
3553   Tor as both a client and a server (check out the new RelayBandwidth
3554   config options); lets Tor run as a DNS proxy; and generally moves us
3555   forward on a lot of fronts.
3557   o Major features, server usability:
3558     - New config options RelayBandwidthRate and RelayBandwidthBurst:
3559       a separate set of token buckets for relayed traffic. Right now
3560       relayed traffic is defined as answers to directory requests, and
3561       OR connections that don't have any local circuits on them.
3563   o Major features, client usability:
3564     - A client-side DNS proxy feature to replace the need for
3565       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
3566       for DNS requests on port 9999, use the Tor network to resolve them
3567       anonymously, and send the reply back like a regular DNS server.
3568       The code still only implements a subset of DNS.
3569     - Make PreferTunneledDirConns and TunnelDirConns work even when
3570       we have no cached directory info. This means Tor clients can now
3571       do all of their connections protected by TLS.
3573   o Major features, performance and efficiency:
3574     - Directory authorities accept and serve "extra info" documents for
3575       routers. These documents contain fields from router descriptors
3576       that aren't usually needed, and that use a lot of excess
3577       bandwidth. Once these fields are removed from router descriptors,
3578       the bandwidth savings should be about 60%. [Partially implements
3579       proposal 104.]
3580     - Servers upload extra-info documents to any authority that accepts
3581       them. Authorities (and caches that have been configured to download
3582       extra-info documents) download them as needed. [Partially implements
3583       proposal 104.]
3584     - Change the way that Tor buffers data that it is waiting to write.
3585       Instead of queueing data cells in an enormous ring buffer for each
3586       client->OR or OR->OR connection, we now queue cells on a separate
3587       queue for each circuit.  This lets us use less slack memory, and
3588       will eventually let us be smarter about prioritizing different kinds
3589       of traffic.
3590     - Use memory pools to allocate cells with better speed and memory
3591       efficiency, especially on platforms where malloc() is inefficient.
3592     - Stop reading on edge connections when their corresponding circuit
3593       buffers are full; start again as the circuits empty out.
3595   o Major features, other:
3596     - Add an HSAuthorityRecordStats option that hidden service authorities
3597       can use to track statistics of overall hidden service usage without
3598       logging information that would be very useful to an attacker.
3599     - Start work implementing multi-level keys for directory authorities:
3600       Add a standalone tool to generate key certificates. (Proposal 103.)
3602   o Security fixes:
3603     - Directory authorities now call routers Stable if they have an
3604       uptime of at least 30 days, even if that's not the median uptime
3605       in the network. Implements proposal 107, suggested by Kevin Bauer
3606       and Damon McCoy.
3608   o Minor fixes (resource management):
3609     - Count the number of open sockets separately from the number
3610       of active connection_t objects. This will let us avoid underusing
3611       our allocated connection limit.
3612     - We no longer use socket pairs to link an edge connection to an
3613       anonymous directory connection or a DirPort test connection.
3614       Instead, we track the link internally and transfer the data
3615       in-process. This saves two sockets per "linked" connection (at the
3616       client and at the server), and avoids the nasty Windows socketpair()
3617       workaround.
3618     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
3619       for every single inactive connection_t. Free items from the
3620       4k/16k-buffer free lists when they haven't been used for a while.
3622   o Minor features (build):
3623     - Make autoconf search for libevent, openssl, and zlib consistently.
3624     - Update deprecated macros in configure.in.
3625     - When warning about missing headers, tell the user to let us
3626       know if the compile succeeds anyway, so we can downgrade the
3627       warning.
3628     - Include the current subversion revision as part of the version
3629       string: either fetch it directly if we're in an SVN checkout, do
3630       some magic to guess it if we're in an SVK checkout, or use
3631       the last-detected version if we're building from a .tar.gz.
3632       Use this version consistently in log messages.
3634   o Minor features (logging):
3635     - Always prepend "Bug: " to any log message about a bug.
3636     - Put a platform string (e.g. "Linux i686") in the startup log
3637       message, so when people paste just their logs, we know if it's
3638       OpenBSD or Windows or what.
3639     - When logging memory usage, break down memory used in buffers by
3640       buffer type.
3642   o Minor features (directory system):
3643     - New config option V2AuthoritativeDirectory that all directory
3644       authorities should set. This will let future authorities choose
3645       not to serve V2 directory information.
3646     - Directory authorities allow multiple router descriptors and/or extra
3647       info documents to be uploaded in a single go.  This will make
3648       implementing proposal 104 simpler.
3650   o Minor features (controller):
3651     - Add a new config option __DisablePredictedCircuits designed for
3652       use by the controller, when we don't want Tor to build any circuits
3653       preemptively.
3654     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
3655       so we can exit from the middle of the circuit.
3656     - Implement "getinfo status/circuit-established".
3657     - Implement "getinfo status/version/..." so a controller can tell
3658       whether the current version is recommended, and whether any versions
3659       are good, and how many authorities agree. (Patch from shibz.)
3661   o Minor features (hidden services):
3662     - Allow multiple HiddenServicePort directives with the same virtual
3663       port; when they occur, the user is sent round-robin to one
3664       of the target ports chosen at random.  Partially fixes bug 393 by
3665       adding limited ad-hoc round-robining.
3667   o Minor features (other):
3668     - More unit tests.
3669     - Add a new AutomapHostsOnResolve option: when it is enabled, any
3670       resolve request for hosts matching a given pattern causes Tor to
3671       generate an internal virtual address mapping for that host.  This
3672       allows DNSPort to work sensibly with hidden service users.  By
3673       default, .exit and .onion addresses are remapped; the list of
3674       patterns can be reconfigured with AutomapHostsSuffixes.
3675     - Add an "-F" option to tor-resolve to force a resolve for a .onion
3676       address. Thanks to the AutomapHostsOnResolve option, this is no
3677       longer a completely silly thing to do.
3678     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
3679       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
3680     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
3681       minus 1 byte: the actual maximum declared bandwidth.
3683   o Removed features:
3684     - Removed support for the old binary "version 0" controller protocol.
3685       This has been deprecated since 0.1.1, and warnings have been issued
3686       since 0.1.2.  When we encounter a v0 control message, we now send
3687       back an error and close the connection.
3688     - Remove the old "dns worker" server DNS code: it hasn't been default
3689       since 0.1.2.2-alpha, and all the servers seem to be using the new
3690       eventdns code.
3692   o Minor bugfixes (portability):
3693     - Even though Windows is equally happy with / and \ as path separators,
3694       try to use \ consistently on Windows and / consistently on Unix: it
3695       makes the log messages nicer.
3696     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
3697     - Read resolv.conf files correctly on platforms where read() returns
3698       partial results on small file reads.
3700   o Minor bugfixes (directory):
3701     - Correctly enforce that elements of directory objects do not appear
3702       more often than they are allowed to appear.
3703     - When we are reporting the DirServer line we just parsed, we were
3704       logging the second stanza of the key fingerprint, not the first.
3706   o Minor bugfixes (logging):
3707     - When we hit an EOF on a log (probably because we're shutting down),
3708       don't try to remove the log from the list: just mark it as
3709       unusable.  (Bulletproofs against bug 222.)
3711   o Minor bugfixes (other):
3712     - In the exitlist script, only consider the most recently published
3713       server descriptor for each server. Also, when the user requests
3714       a list of servers that _reject_ connections to a given address,
3715       explicitly exclude the IPs that also have servers that accept
3716       connections to that address. (Resolves bug 405.)
3717     - Stop allowing hibernating servers to be "stable" or "fast".
3718     - On Windows, we were preventing other processes from reading
3719       cached-routers while Tor was running.  (Reported by janbar)
3720     - Make the NodeFamilies config option work. (Reported by
3721       lodger -- it has never actually worked, even though we added it
3722       in Oct 2004.)
3723     - Check return values from pthread_mutex functions.
3724     - Don't save non-general-purpose router descriptors to the disk cache,
3725       because we have no way of remembering what their purpose was when
3726       we restart.
3727     - Add even more asserts to hunt down bug 417.
3728     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
3729     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
3730       Add a log message to confirm that it is in fact unlikely.
3732   o Minor bugfixes (controller):
3733     - Make 'getinfo fingerprint' return a 551 error if we're not a
3734       server, so we match what the control spec claims we do. Reported
3735       by daejees.
3736     - Fix a typo in an error message when extendcircuit fails that
3737       caused us to not follow the \r\n-based delimiter protocol. Reported
3738       by daejees.
3740   o Code simplifications and refactoring:
3741     - Stop passing around circuit_t and crypt_path_t pointers that are
3742       implicit in other procedure arguments.
3743     - Drop the old code to choke directory connections when the
3744       corresponding OR connections got full: thanks to the cell queue
3745       feature, OR conns don't get full any more.
3746     - Make dns_resolve() handle attaching connections to circuits
3747       properly, so the caller doesn't have to.
3748     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
3749     - Keep the connection array as a dynamic smartlist_t, rather than as
3750       a fixed-sized array. This is important, as the number of connections
3751       is becoming increasingly decoupled from the number of sockets.
3754 Changes in version 0.1.2.14 - 2007-05-25
3755   Tor 0.1.2.14 changes the addresses of two directory authorities (this
3756   change especially affects those who serve or use hidden services),
3757   and fixes several other crash- and security-related bugs.
3759   o Directory authority changes:
3760     - Two directory authorities (moria1 and moria2) just moved to new
3761       IP addresses. This change will particularly affect those who serve
3762       or use hidden services.
3764   o Major bugfixes (crashes):
3765     - If a directory server runs out of space in the connection table
3766       as it's processing a begin_dir request, it will free the exit stream
3767       but leave it attached to the circuit, leading to unpredictable
3768       behavior. (Reported by seeess, fixes bug 425.)
3769     - Fix a bug in dirserv_remove_invalid() that would cause authorities
3770       to corrupt memory under some really unlikely scenarios.
3771     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
3772     - Avoid segfaults when reading from mmaped descriptor file. (Reported
3773       by lodger.)
3775   o Major bugfixes (security):
3776     - When choosing an entry guard for a circuit, avoid using guards
3777       that are in the same family as the chosen exit -- not just guards
3778       that are exactly the chosen exit. (Reported by lodger.)
3780   o Major bugfixes (resource management):
3781     - If a directory authority is down, skip it when deciding where to get
3782       networkstatus objects or descriptors. Otherwise we keep asking
3783       every 10 seconds forever. Fixes bug 384.
3784     - Count it as a failure if we fetch a valid network-status but we
3785       don't want to keep it. Otherwise we'll keep fetching it and keep
3786       not wanting to keep it. Fixes part of bug 422.
3787     - If all of our dirservers have given us bad or no networkstatuses
3788       lately, then stop hammering them once per minute even when we
3789       think they're failed. Fixes another part of bug 422.
3791   o Minor bugfixes:
3792     - Actually set the purpose correctly for descriptors inserted with
3793       purpose=controller.
3794     - When we have k non-v2 authorities in our DirServer config,
3795       we ignored the last k authorities in the list when updating our
3796       network-statuses.
3797     - Correctly back-off from requesting router descriptors that we are
3798       having a hard time downloading.
3799     - Read resolv.conf files correctly on platforms where read() returns
3800       partial results on small file reads.
3801     - Don't rebuild the entire router store every time we get 32K of
3802       routers: rebuild it when the journal gets very large, or when
3803       the gaps in the store get very large.
3805   o Minor features:
3806     - When routers publish SVN revisions in their router descriptors,
3807       authorities now include those versions correctly in networkstatus
3808       documents.
3809     - Warn when using a version of libevent before 1.3b to run a server on
3810       OSX or BSD: these versions interact badly with userspace threads.
3813 Changes in version 0.1.2.13 - 2007-04-24
3814   This release features some major anonymity fixes, such as safer path
3815   selection; better client performance; faster bootstrapping, better
3816   address detection, and better DNS support for servers; write limiting as
3817   well as read limiting to make servers easier to run; and a huge pile of
3818   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
3820   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
3821   of the Freenode IRC network, remembering his patience and vision for
3822   free speech on the Internet.
3824   o Minor fixes:
3825     - Fix a memory leak when we ask for "all" networkstatuses and we
3826       get one we don't recognize.
3827     - Add more asserts to hunt down bug 417.
3828     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
3831 Changes in version 0.1.2.12-rc - 2007-03-16
3832   o Major bugfixes:
3833     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
3834       directory information requested inside Tor connections (i.e. via
3835       begin_dir cells). It only triggered when the same connection was
3836       serving other data at the same time. Reported by seeess.
3838   o Minor bugfixes:
3839     - When creating a circuit via the controller, send a 'launched'
3840       event when we're done, so we follow the spec better.
3843 Changes in version 0.1.2.11-rc - 2007-03-15
3844   o Minor bugfixes (controller), reported by daejees:
3845     - Correct the control spec to match how the code actually responds
3846       to 'getinfo addr-mappings/*'.
3847     - The control spec described a GUARDS event, but the code
3848       implemented a GUARD event. Standardize on GUARD, but let people
3849       ask for GUARDS too.
3852 Changes in version 0.1.2.10-rc - 2007-03-07
3853   o Major bugfixes (Windows):
3854     - Do not load the NT services library functions (which may not exist)
3855       just to detect if we're a service trying to shut down. Now we run
3856       on Win98 and friends again.
3858   o Minor bugfixes (other):
3859     - Clarify a couple of log messages.
3860     - Fix a misleading socks5 error number.
3863 Changes in version 0.1.2.9-rc - 2007-03-02
3864   o Major bugfixes (Windows):
3865     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
3866       of the usual GCC "%llu". This prevents a bug when saving 64-bit
3867       int configuration values: the high-order 32 bits would get
3868       truncated. In particular, we were being bitten by the default
3869       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
3870       and maybe also bug 397.)
3872   o Minor bugfixes (performance):
3873     - Use OpenSSL's AES implementation on platforms where it's faster.
3874       This could save us as much as 10% CPU usage.
3876   o Minor bugfixes (server):
3877     - Do not rotate onion key immediately after setting it for the first
3878       time.
3880   o Minor bugfixes (directory authorities):
3881     - Stop calling servers that have been hibernating for a long time
3882       "stable". Also, stop letting hibernating or obsolete servers affect
3883       uptime and bandwidth cutoffs.
3884     - Stop listing hibernating servers in the v1 directory.
3886   o Minor bugfixes (hidden services):
3887     - Upload hidden service descriptors slightly less often, to reduce
3888       load on authorities.
3890   o Minor bugfixes (other):
3891     - Fix an assert that could trigger if a controller quickly set then
3892       cleared EntryNodes.  (Bug found by Udo van den Heuvel.)
3893     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
3894       to INT32_MAX.
3895     - Fix a potential race condition in the rpm installer.  Found by
3896       Stefan Nordhausen.
3897     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
3898       of 2 as indicating that the server is completely bad; it sometimes
3899       means that the server is just bad for the request in question. (may fix
3900       the last of bug 326.)
3901     - Disable encrypted directory connections when we don't have a server
3902       descriptor for the destination. We'll get this working again in
3903       the 0.2.0 branch.
3906 Changes in version 0.1.2.8-beta - 2007-02-26
3907   o Major bugfixes (crashes):
3908     - Stop crashing when the controller asks us to resetconf more than
3909       one config option at once. (Vidalia 0.0.11 does this.)
3910     - Fix a crash that happened on Win98 when we're given command-line
3911       arguments: don't try to load NT service functions from advapi32.dll
3912       except when we need them. (Bug introduced in 0.1.2.7-alpha;
3913       resolves bug 389.)
3914     - Fix a longstanding obscure crash bug that could occur when
3915       we run out of DNS worker processes. (Resolves bug 390.)
3917   o Major bugfixes (hidden services):
3918     - Correctly detect whether hidden service descriptor downloads are
3919       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
3921   o Major bugfixes (accounting):
3922     - When we start during an accounting interval before it's time to wake
3923       up, remember to wake up at the correct time. (May fix bug 342.)
3925   o Minor bugfixes (controller):
3926     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
3927       clear the corresponding on_circuit variable, and remember later
3928       that we don't need to send a redundant CLOSED event.  (Resolves part
3929       3 of bug 367.)
3930     - Report events where a resolve succeeded or where we got a socks
3931       protocol error correctly, rather than calling both of them
3932       "INTERNAL".
3933     - Change reported stream target addresses to IP consistently when
3934       we finally get the IP from an exit node.
3935     - Send log messages to the controller even if they happen to be very
3936       long.
3938   o Minor bugfixes (other):
3939     - Display correct results when reporting which versions are
3940       recommended, and how recommended they are. (Resolves bug 383.)
3941     - Improve our estimates for directory bandwidth to be less random:
3942       guess that an unrecognized directory will have the average bandwidth
3943       from all known directories, not that it will have the average
3944       bandwidth from those directories earlier than it on the list.
3945     - If we start a server with ClientOnly 1, then set ClientOnly to 0
3946       and hup, stop triggering an assert based on an empty onion_key.
3947     - On platforms with no working mmap() equivalent, don't warn the
3948       user when cached-routers doesn't exist.
3949     - Warn the user when mmap() [or its equivalent] fails for some reason
3950       other than file-not-found.
3951     - Don't warn the user when cached-routers.new doesn't exist: that's
3952       perfectly fine when starting up for the first time.
3953     - When EntryNodes are configured, rebuild the guard list to contain,
3954       in order: the EntryNodes that were guards before; the rest of the
3955       EntryNodes; the nodes that were guards before.
3956     - Mask out all signals in sub-threads; only the libevent signal
3957       handler should be processing them. This should prevent some crashes
3958       on some machines using pthreads. (Patch from coderman.)
3959     - Fix switched arguments on memset in the implementation of
3960       tor_munmap() for systems with no mmap() call.
3961     - When Tor receives a router descriptor that it asked for, but
3962       no longer wants (because it has received fresh networkstatuses
3963       in the meantime), do not warn the user.  Cache the descriptor if
3964       we're a cache; drop it if we aren't.
3965     - Make earlier entry guards _really_ get retried when the network
3966       comes back online.
3967     - On a malformed DNS reply, always give an error to the corresponding
3968       DNS request.
3969     - Build with recent libevents on platforms that do not define the
3970       nonstandard types "u_int8_t" and friends.
3972   o Minor features (controller):
3973     - Warn the user when an application uses the obsolete binary v0
3974       control protocol.  We're planning to remove support for it during
3975       the next development series, so it's good to give people some
3976       advance warning.
3977     - Add STREAM_BW events to report per-entry-stream bandwidth
3978       use. (Patch from Robert Hogan.)
3979     - Rate-limit SIGNEWNYM signals in response to controllers that
3980       impolitely generate them for every single stream. (Patch from
3981       mwenge; closes bug 394.)
3982     - Make REMAP stream events have a SOURCE (cache or exit), and
3983       make them generated in every case where we get a successful
3984       connected or resolved cell.
3986   o Minor bugfixes (performance):
3987     - Call router_have_min_dir_info half as often. (This is showing up in
3988       some profiles, but not others.)
3989     - When using GCC, make log_debug never get called at all, and its
3990       arguments never get evaluated, when no debug logs are configured.
3991       (This is showing up in some profiles, but not others.)
3993   o Minor features:
3994     - Remove some never-implemented options.  Mark PathlenCoinWeight as
3995       obsolete.
3996     - Implement proposal 106: Stop requiring clients to have well-formed
3997       certificates; stop checking nicknames in certificates. (Clients
3998       have certificates so that they can look like Tor servers, but in
3999       the future we might want to allow them to look like regular TLS
4000       clients instead. Nicknames in certificates serve no purpose other
4001       than making our protocol easier to recognize on the wire.)
4002     - Revise messages on handshake failure again to be even more clear about
4003       which are incoming connections and which are outgoing.
4004     - Discard any v1 directory info that's over 1 month old (for
4005       directories) or over 1 week old (for running-routers lists).
4006     - Do not warn when individual nodes in the configuration's EntryNodes,
4007       ExitNodes, etc are down: warn only when all possible nodes
4008       are down. (Fixes bug 348.)
4009     - Always remove expired routers and networkstatus docs before checking
4010       whether we have enough information to build circuits. (Fixes
4011       bug 373.)
4012     - Put a lower-bound on MaxAdvertisedBandwidth.
4015 Changes in version 0.1.2.7-alpha - 2007-02-06
4016   o Major bugfixes (rate limiting):
4017     - Servers decline directory requests much more aggressively when
4018       they're low on bandwidth. Otherwise they end up queueing more and
4019       more directory responses, which can't be good for latency.
4020     - But never refuse directory requests from local addresses.
4021     - Fix a memory leak when sending a 503 response for a networkstatus
4022       request.
4023     - Be willing to read or write on local connections (e.g. controller
4024       connections) even when the global rate limiting buckets are empty.
4025     - If our system clock jumps back in time, don't publish a negative
4026       uptime in the descriptor. Also, don't let the global rate limiting
4027       buckets go absurdly negative.
4028     - Flush local controller connection buffers periodically as we're
4029       writing to them, so we avoid queueing 4+ megabytes of data before
4030       trying to flush.
4032   o Major bugfixes (NT services):
4033     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
4034       command-line flag so that admins can override the default by saying
4035       "tor --service install --user "SomeUser"".  This will not affect
4036       existing installed services.  Also, warn the user that the service
4037       will look for its configuration file in the service user's
4038       %appdata% directory.  (We can't do the 'hardwire the user's appdata
4039       directory' trick any more, since we may not have read access to that
4040       directory.)
4042   o Major bugfixes (other):
4043     - Previously, we would cache up to 16 old networkstatus documents
4044       indefinitely, if they came from nontrusted authorities. Now we
4045       discard them if they are more than 10 days old.
4046     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
4047       Del Vecchio).
4048     - Detect and reject malformed DNS responses containing circular
4049       pointer loops.
4050     - If exits are rare enough that we're not marking exits as guards,
4051       ignore exit bandwidth when we're deciding the required bandwidth
4052       to become a guard.
4053     - When we're handling a directory connection tunneled over Tor,
4054       don't fill up internal memory buffers with all the data we want
4055       to tunnel; instead, only add it if the OR connection that will
4056       eventually receive it has some room for it. (This can lead to
4057       slowdowns in tunneled dir connections; a better solution will have
4058       to wait for 0.2.0.)
4060   o Minor bugfixes (dns):
4061     - Add some defensive programming to eventdns.c in an attempt to catch
4062       possible memory-stomping bugs.
4063     - Detect and reject DNS replies containing IPv4 or IPv6 records with
4064       an incorrect number of bytes. (Previously, we would ignore the
4065       extra bytes.)
4066     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
4067       in the correct order, and doesn't crash.
4068     - Free memory held in recently-completed DNS lookup attempts on exit.
4069       This was not a memory leak, but may have been hiding memory leaks.
4070     - Handle TTL values correctly on reverse DNS lookups.
4071     - Treat failure to parse resolv.conf as an error.
4073   o Minor bugfixes (other):
4074     - Fix crash with "tor --list-fingerprint" (reported by seeess).
4075     - When computing clock skew from directory HTTP headers, consider what
4076       time it was when we finished asking for the directory, not what
4077       time it is now.
4078     - Expire socks connections if they spend too long waiting for the
4079       handshake to finish. Previously we would let them sit around for
4080       days, if the connecting application didn't close them either.
4081     - And if the socks handshake hasn't started, don't send a
4082       "DNS resolve socks failed" handshake reply; just close it.
4083     - Stop using C functions that OpenBSD's linker doesn't like.
4084     - Don't launch requests for descriptors unless we have networkstatuses
4085       from at least half of the authorities.  This delays the first
4086       download slightly under pathological circumstances, but can prevent
4087       us from downloading a bunch of descriptors we don't need.
4088     - Do not log IPs with TLS failures for incoming TLS
4089       connections. (Fixes bug 382.)
4090     - If the user asks to use invalid exit nodes, be willing to use
4091       unstable ones.
4092     - Stop using the reserved ac_cv namespace in our configure script.
4093     - Call stat() slightly less often; use fstat() when possible.
4094     - Refactor the way we handle pending circuits when an OR connection
4095       completes or fails, in an attempt to fix a rare crash bug.
4096     - Only rewrite a conn's address based on X-Forwarded-For: headers
4097       if it's a parseable public IP address; and stop adding extra quotes
4098       to the resulting address.
4100   o Major features:
4101     - Weight directory requests by advertised bandwidth. Now we can
4102       let servers enable write limiting but still allow most clients to
4103       succeed at their directory requests. (We still ignore weights when
4104       choosing a directory authority; I hope this is a feature.)
4106   o Minor features:
4107     - Create a new file ReleaseNotes which was the old ChangeLog. The
4108       new ChangeLog file now includes the summaries for all development
4109       versions too.
4110     - Check for addresses with invalid characters at the exit as well
4111       as at the client, and warn less verbosely when they fail. You can
4112       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
4113     - Adapt a patch from goodell to let the contrib/exitlist script
4114       take arguments rather than require direct editing.
4115     - Inform the server operator when we decide not to advertise a
4116       DirPort due to AccountingMax enabled or a low BandwidthRate. It
4117       was confusing Zax, so now we're hopefully more helpful.
4118     - Bring us one step closer to being able to establish an encrypted
4119       directory tunnel without knowing a descriptor first. Still not
4120       ready yet. As part of the change, now assume we can use a
4121       create_fast cell if we don't know anything about a router.
4122     - Allow exit nodes to use nameservers running on ports other than 53.
4123     - Servers now cache reverse DNS replies.
4124     - Add an --ignore-missing-torrc command-line option so that we can
4125       get the "use sensible defaults if the configuration file doesn't
4126       exist" behavior even when specifying a torrc location on the command
4127       line.
4129   o Minor features (controller):
4130     - Track reasons for OR connection failure; make these reasons
4131       available via the controller interface. (Patch from Mike Perry.)
4132     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
4133       can learn when clients are sending malformed hostnames to Tor.
4134     - Clean up documentation for controller status events.
4135     - Add a REMAP status to stream events to note that a stream's
4136       address has changed because of a cached address or a MapAddress
4137       directive.
4140 Changes in version 0.1.2.6-alpha - 2007-01-09
4141   o Major bugfixes:
4142     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
4143       connection handles more than 4 gigs in either direction, we crash.
4144     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
4145       advertised exit node, somebody might try to exit from us when
4146       we're bootstrapping and before we've built our descriptor yet.
4147       Refuse the connection rather than crashing.
4149   o Minor bugfixes:
4150     - Warn if we (as a server) find that we've resolved an address that we
4151       weren't planning to resolve.
4152     - Warn that using select() on any libevent version before 1.1 will be
4153       unnecessarily slow (even for select()).
4154     - Flush ERR-level controller status events just like we currently
4155       flush ERR-level log events, so that a Tor shutdown doesn't prevent
4156       the controller from learning about current events.
4158   o Minor features (more controller status events):
4159     - Implement EXTERNAL_ADDRESS server status event so controllers can
4160       learn when our address changes.
4161     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
4162       can learn when directories reject our descriptor.
4163     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
4164       can learn when a client application is speaking a non-socks protocol
4165       to our SocksPort.
4166     - Implement DANGEROUS_SOCKS client status event so controllers
4167       can learn when a client application is leaking DNS addresses.
4168     - Implement BUG general status event so controllers can learn when
4169       Tor is unhappy about its internal invariants.
4170     - Implement CLOCK_SKEW general status event so controllers can learn
4171       when Tor thinks the system clock is set incorrectly.
4172     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
4173       server status events so controllers can learn when their descriptors
4174       are accepted by a directory.
4175     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
4176       server status events so controllers can learn about Tor's progress in
4177       deciding whether it's reachable from the outside.
4178     - Implement BAD_LIBEVENT general status event so controllers can learn
4179       when we have a version/method combination in libevent that needs to
4180       be changed.
4181     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
4182       and DNS_USELESS server status events so controllers can learn
4183       about changes to DNS server status.
4185   o Minor features (directory):
4186     - Authorities no longer recommend exits as guards if this would shift
4187       too much load to the exit nodes.
4190 Changes in version 0.1.2.5-alpha - 2007-01-06
4191   o Major features:
4192     - Enable write limiting as well as read limiting. Now we sacrifice
4193       capacity if we're pushing out lots of directory traffic, rather
4194       than overrunning the user's intended bandwidth limits.
4195     - Include TLS overhead when counting bandwidth usage; previously, we
4196       would count only the bytes sent over TLS, but not the bytes used
4197       to send them.
4198     - Support running the Tor service with a torrc not in the same
4199       directory as tor.exe and default to using the torrc located in
4200       the %appdata%\Tor\ of the user who installed the service. Patch
4201       from Matt Edman.
4202     - Servers now check for the case when common DNS requests are going to
4203       wildcarded addresses (i.e. all getting the same answer), and change
4204       their exit policy to reject *:* if it's happening.
4205     - Implement BEGIN_DIR cells, so we can connect to the directory
4206       server via TLS to do encrypted directory requests rather than
4207       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
4208       config options if you like.
4210   o Minor features (config and docs):
4211     - Start using the state file to store bandwidth accounting data:
4212       the bw_accounting file is now obsolete. We'll keep generating it
4213       for a while for people who are still using 0.1.2.4-alpha.
4214     - Try to batch changes to the state file so that we do as few
4215       disk writes as possible while still storing important things in
4216       a timely fashion.
4217     - The state file and the bw_accounting file get saved less often when
4218       the AvoidDiskWrites config option is set.
4219     - Make PIDFile work on Windows (untested).
4220     - Add internal descriptions for a bunch of configuration options:
4221       accessible via controller interface and in comments in saved
4222       options files.
4223     - Reject *:563 (NNTPS) in the default exit policy. We already reject
4224       NNTP by default, so this seems like a sensible addition.
4225     - Clients now reject hostnames with invalid characters. This should
4226       avoid some inadvertent info leaks. Add an option
4227       AllowNonRFC953Hostnames to disable this behavior, in case somebody
4228       is running a private network with hosts called @, !, and #.
4229     - Add a maintainer script to tell us which options are missing
4230       documentation: "make check-docs".
4231     - Add a new address-spec.txt document to describe our special-case
4232       addresses: .exit, .onion, and .noconnnect.
4234   o Minor features (DNS):
4235     - Ongoing work on eventdns infrastructure: now it has dns server
4236       and ipv6 support. One day Tor will make use of it.
4237     - Add client-side caching for reverse DNS lookups.
4238     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
4239     - When we change nameservers or IP addresses, reset and re-launch
4240       our tests for DNS hijacking.
4242   o Minor features (directory):
4243     - Authorities now specify server versions in networkstatus. This adds
4244       about 2% to the size of compressed networkstatus docs, and allows
4245       clients to tell which servers support BEGIN_DIR and which don't.
4246       The implementation is forward-compatible with a proposed future
4247       protocol version scheme not tied to Tor versions.
4248     - DirServer configuration lines now have an orport= option so
4249       clients can open encrypted tunnels to the authorities without
4250       having downloaded their descriptors yet. Enabled for moria1,
4251       moria2, tor26, and lefkada now in the default configuration.
4252     - Directory servers are more willing to send a 503 "busy" if they
4253       are near their write limit, especially for v1 directory requests.
4254       Now they can use their limited bandwidth for actual Tor traffic.
4255     - Clients track responses with status 503 from dirservers. After a
4256       dirserver has given us a 503, we try not to use it until an hour has
4257       gone by, or until we have no dirservers that haven't given us a 503.
4258     - When we get a 503 from a directory, and we're not a server, we don't
4259       count the failure against the total number of failures allowed
4260       for the thing we're trying to download.
4261     - Report X-Your-Address-Is correctly from tunneled directory
4262       connections; don't report X-Your-Address-Is when it's an internal
4263       address; and never believe reported remote addresses when they're
4264       internal.
4265     - Protect against an unlikely DoS attack on directory servers.
4266     - Add a BadDirectory flag to network status docs so that authorities
4267       can (eventually) tell clients about caches they believe to be
4268       broken.
4270   o Minor features (controller):
4271     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
4272     - Reimplement GETINFO so that info/names stays in sync with the
4273       actual keys.
4274     - Implement "GETINFO fingerprint".
4275     - Implement "SETEVENTS GUARD" so controllers can get updates on
4276       entry guard status as it changes.
4278   o Minor features (clean up obsolete pieces):
4279     - Remove some options that have been deprecated since at least
4280       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
4281       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
4282       to set log options.
4283     - We no longer look for identity and onion keys in "identity.key" and
4284       "onion.key" -- these were replaced by secret_id_key and
4285       secret_onion_key in 0.0.8pre1.
4286     - We no longer require unrecognized directory entries to be
4287       preceded by "opt".
4289   o Major bugfixes (security):
4290     - Stop sending the HttpProxyAuthenticator string to directory
4291       servers when directory connections are tunnelled through Tor.
4292     - Clients no longer store bandwidth history in the state file.
4293     - Do not log introduction points for hidden services if SafeLogging
4294       is set.
4295     - When generating bandwidth history, round down to the nearest
4296       1k. When storing accounting data, round up to the nearest 1k.
4297     - When we're running as a server, remember when we last rotated onion
4298       keys, so that we will rotate keys once they're a week old even if
4299       we never stay up for a week ourselves.
4301   o Major bugfixes (other):
4302     - Fix a longstanding bug in eventdns that prevented the count of
4303       timed-out resolves from ever being reset. This bug caused us to
4304       give up on a nameserver the third time it timed out, and try it
4305       10 seconds later... and to give up on it every time it timed out
4306       after that.
4307     - Take out the '5 second' timeout from the connection retry
4308       schedule. Now the first connect attempt will wait a full 10
4309       seconds before switching to a new circuit. Perhaps this will help
4310       a lot. Based on observations from Mike Perry.
4311     - Fix a bug on the Windows implementation of tor_mmap_file() that
4312       would prevent the cached-routers file from ever loading. Reported
4313       by John Kimble.
4315   o Minor bugfixes:
4316     - Fix an assert failure when a directory authority sets
4317       AuthDirRejectUnlisted and then receives a descriptor from an
4318       unlisted router. Reported by seeess.
4319     - Avoid a double-free when parsing malformed DirServer lines.
4320     - Fix a bug when a BSD-style PF socket is first used. Patch from
4321       Fabian Keil.
4322     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
4323       to resolve an address at a given exit node even when they ask for
4324       it by name.
4325     - Servers no longer ever list themselves in their "family" line,
4326       even if configured to do so. This makes it easier to configure
4327       family lists conveniently.
4328     - When running as a server, don't fall back to 127.0.0.1 when no
4329       nameservers are configured in /etc/resolv.conf; instead, make the
4330       user fix resolv.conf or specify nameservers explicitly. (Resolves
4331       bug 363.)
4332     - Stop accepting certain malformed ports in configured exit policies.
4333     - Don't re-write the fingerprint file every restart, unless it has
4334       changed.
4335     - Stop warning when a single nameserver fails: only warn when _all_ of
4336       our nameservers have failed. Also, when we only have one nameserver,
4337       raise the threshold for deciding that the nameserver is dead.
4338     - Directory authorities now only decide that routers are reachable
4339       if their identity keys are as expected.
4340     - When the user uses bad syntax in the Log config line, stop
4341       suggesting other bad syntax as a replacement.
4342     - Correctly detect ipv6 DNS capability on OpenBSD.
4344   o Minor bugfixes (controller):
4345     - Report the circuit number correctly in STREAM CLOSED events. Bug
4346       reported by Mike Perry.
4347     - Do not report bizarre values for results of accounting GETINFOs
4348       when the last second's write or read exceeds the allotted bandwidth.
4349     - Report "unrecognized key" rather than an empty string when the
4350       controller tries to fetch a networkstatus that doesn't exist.
4353 Changes in version 0.1.1.26 - 2006-12-14
4354   o Security bugfixes:
4355     - Stop sending the HttpProxyAuthenticator string to directory
4356       servers when directory connections are tunnelled through Tor.
4357     - Clients no longer store bandwidth history in the state file.
4358     - Do not log introduction points for hidden services if SafeLogging
4359       is set.
4361   o Minor bugfixes:
4362     - Fix an assert failure when a directory authority sets
4363       AuthDirRejectUnlisted and then receives a descriptor from an
4364       unlisted router (reported by seeess).
4367 Changes in version 0.1.2.4-alpha - 2006-12-03
4368   o Major features:
4369     - Add support for using natd; this allows FreeBSDs earlier than
4370       5.1.2 to have ipfw send connections through Tor without using
4371       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
4373   o Minor features:
4374     - Make all connections to addresses of the form ".noconnect"
4375       immediately get closed. This lets application/controller combos
4376       successfully test whether they're talking to the same Tor by
4377       watching for STREAM events.
4378     - Make cross.sh cross-compilation script work even when autogen.sh
4379       hasn't been run. (Patch from Michael Mohr.)
4380     - Statistics dumped by -USR2 now include a breakdown of public key
4381       operations, for profiling.
4383   o Major bugfixes:
4384     - Fix a major leak when directory authorities parse their
4385       approved-routers list, a minor memory leak when we fail to pick
4386       an exit node, and a few rare leaks on errors.
4387     - Handle TransPort connections even when the server sends data before
4388       the client sends data. Previously, the connection would just hang
4389       until the client sent data. (Patch from tup based on patch from
4390       Zajcev Evgeny.)
4391     - Avoid assert failure when our cached-routers file is empty on
4392       startup.
4394   o Minor bugfixes:
4395     - Don't log spurious warnings when we see a circuit close reason we
4396       don't recognize; it's probably just from a newer version of Tor.
4397     - Have directory authorities allow larger amounts of drift in uptime
4398       without replacing the server descriptor: previously, a server that
4399       restarted every 30 minutes could have 48 "interesting" descriptors
4400       per day.
4401     - Start linking to the Tor specification and Tor reference manual
4402       correctly in the Windows installer.
4403     - Add Vidalia to the OS X uninstaller script, so when we uninstall
4404       Tor/Privoxy we also uninstall Vidalia.
4405     - Resume building on Irix64, and fix a lot of warnings from its
4406       MIPSpro C compiler.
4407     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
4408       when we're running as a client.
4411 Changes in version 0.1.1.25 - 2006-11-04
4412   o Major bugfixes:
4413     - When a client asks us to resolve (rather than connect to)
4414       an address, and we have a cached answer, give them the cached
4415       answer. Previously, we would give them no answer at all.
4416     - We were building exactly the wrong circuits when we predict
4417       hidden service requirements, meaning Tor would have to build all
4418       its circuits on demand.
4419     - If none of our live entry guards have a high uptime, but we
4420       require a guard with a high uptime, try adding a new guard before
4421       we give up on the requirement. This patch should make long-lived
4422       connections more stable on average.
4423     - When testing reachability of our DirPort, don't launch new
4424       tests when there's already one in progress -- unreachable
4425       servers were stacking up dozens of testing streams.
4427   o Security bugfixes:
4428     - When the user sends a NEWNYM signal, clear the client-side DNS
4429       cache too. Otherwise we continue to act on previous information.
4431   o Minor bugfixes:
4432     - Avoid a memory corruption bug when creating a hash table for
4433       the first time.
4434     - Avoid possibility of controller-triggered crash when misusing
4435       certain commands from a v0 controller on platforms that do not
4436       handle printf("%s",NULL) gracefully.
4437     - Avoid infinite loop on unexpected controller input.
4438     - Don't log spurious warnings when we see a circuit close reason we
4439       don't recognize; it's probably just from a newer version of Tor.
4440     - Add Vidalia to the OS X uninstaller script, so when we uninstall
4441       Tor/Privoxy we also uninstall Vidalia.
4444 Changes in version 0.1.2.3-alpha - 2006-10-29
4445   o Minor features:
4446     - Prepare for servers to publish descriptors less often: never
4447       discard a descriptor simply for being too old until either it is
4448       recommended by no authorities, or until we get a better one for
4449       the same router. Make caches consider retaining old recommended
4450       routers for even longer.
4451     - If most authorities set a BadExit flag for a server, clients
4452       don't think of it as a general-purpose exit. Clients only consider
4453       authorities that advertise themselves as listing bad exits.
4454     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
4455       headers for content, so that we can work better in the presence of
4456       caching HTTP proxies.
4457     - Allow authorities to list nodes as bad exits by fingerprint or by
4458       address.
4460   o Minor features, controller:
4461     - Add a REASON field to CIRC events; for backward compatibility, this
4462       field is sent only to controllers that have enabled the extended
4463       event format.  Also, add additional reason codes to explain why
4464       a given circuit has been destroyed or truncated. (Patches from
4465       Mike Perry)
4466     - Add a REMOTE_REASON field to extended CIRC events to tell the
4467       controller about why a remote OR told us to close a circuit.
4468     - Stream events also now have REASON and REMOTE_REASON fields,
4469       working much like those for circuit events.
4470     - There's now a GETINFO ns/... field so that controllers can ask Tor
4471       about the current status of a router.
4472     - A new event type "NS" to inform a controller when our opinion of
4473       a router's status has changed.
4474     - Add a GETINFO events/names and GETINFO features/names so controllers
4475       can tell which events and features are supported.
4476     - A new CLEARDNSCACHE signal to allow controllers to clear the
4477       client-side DNS cache without expiring circuits.
4479   o Security bugfixes:
4480     - When the user sends a NEWNYM signal, clear the client-side DNS
4481       cache too. Otherwise we continue to act on previous information.
4483   o Minor bugfixes:
4484     - Avoid sending junk to controllers or segfaulting when a controller
4485       uses EVENT_NEW_DESC with verbose nicknames.
4486     - Stop triggering asserts if the controller tries to extend hidden
4487       service circuits (reported by mwenge).
4488     - Avoid infinite loop on unexpected controller input.
4489     - When the controller does a "GETINFO network-status", tell it
4490       about even those routers whose descriptors are very old, and use
4491       long nicknames where appropriate.
4492     - Change NT service functions to be loaded on demand.  This lets us
4493       build with MinGW without breaking Tor for Windows 98 users.
4494     - Do DirPort reachability tests less often, since a single test
4495       chews through many circuits before giving up.
4496     - In the hidden service example in torrc.sample, stop recommending
4497       esoteric and discouraged hidden service options.
4498     - When stopping an NT service, wait up to 10 sec for it to actually
4499       stop.  (Patch from Matt Edman; resolves bug 295.)
4500     - Fix handling of verbose nicknames with ORCONN controller events:
4501       make them show up exactly when requested, rather than exactly when
4502       not requested.
4503     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
4504       printing a duplicate "$" in the keys we send (reported by mwenge).
4505     - Correctly set maximum connection limit on Cygwin. (This time
4506       for sure!)
4507     - Try to detect Windows correctly when cross-compiling.
4508     - Detect the size of the routers file correctly even if it is
4509       corrupted (on systems without mmap) or not page-aligned (on systems
4510       with mmap). This bug was harmless.
4511     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
4512       to open a stream fails; now we do in more cases. This should
4513       make clients able to find a good exit faster in some cases, since
4514       unhandleable requests will now get an error rather than timing out.
4515     - Resolve two memory leaks when rebuilding the on-disk router cache
4516       (reported by fookoowa).
4517     - Clean up minor code warnings suggested by the MIPSpro C compiler,
4518       and reported by some Centos users.
4519     - Controller signals now work on non-Unix platforms that don't define
4520       SIGUSR1 and SIGUSR2 the way we expect.
4521     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
4522       values before failing, and always enables eventdns.
4523     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
4524       Try to fix this in configure.in by checking for most functions
4525       before we check for libevent.
4528 Changes in version 0.1.2.2-alpha - 2006-10-07
4529   o Major features:
4530     - Make our async eventdns library on-by-default for Tor servers,
4531       and plan to deprecate the separate dnsworker threads.
4532     - Add server-side support for "reverse" DNS lookups (using PTR
4533       records so clients can determine the canonical hostname for a given
4534       IPv4 address). Only supported by servers using eventdns; servers
4535       now announce in their descriptors whether they support eventdns.
4536     - Specify and implement client-side SOCKS5 interface for reverse DNS
4537       lookups (see doc/socks-extensions.txt).
4538     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
4539       connect to directory servers through Tor. Previously, clients needed
4540       to find Tor exits to make private connections to directory servers.
4541     - Avoid choosing Exit nodes for entry or middle hops when the
4542       total bandwidth available from non-Exit nodes is much higher than
4543       the total bandwidth available from Exit nodes.
4544     - Workaround for name servers (like Earthlink's) that hijack failing
4545       DNS requests and replace the no-such-server answer with a "helpful"
4546       redirect to an advertising-driven search portal. Also work around
4547       DNS hijackers who "helpfully" decline to hijack known-invalid
4548       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
4549       lets you turn it off.
4550     - Send out a burst of long-range padding cells once we've established
4551       that we're reachable. Spread them over 4 circuits, so hopefully
4552       a few will be fast. This exercises our bandwidth and bootstraps
4553       us into the directory more quickly.
4555   o New/improved config options:
4556     - Add new config option "ResolvConf" to let the server operator
4557       choose an alternate resolve.conf file when using eventdns.
4558     - Add an "EnforceDistinctSubnets" option to control our "exclude
4559       servers on the same /16" behavior. It's still on by default; this
4560       is mostly for people who want to operate private test networks with
4561       all the machines on the same subnet.
4562     - If one of our entry guards is on the ExcludeNodes list, or the
4563       directory authorities don't think it's a good guard, treat it as
4564       if it were unlisted: stop using it as a guard, and throw it off
4565       the guards list if it stays that way for a long time.
4566     - Allow directory authorities to be marked separately as authorities
4567       for the v1 directory protocol, the v2 directory protocol, and
4568       as hidden service directories, to make it easier to retire old
4569       authorities. V1 authorities should set "HSAuthoritativeDir 1"
4570       to continue being hidden service authorities too.
4571     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
4573   o Minor features, controller:
4574     - Fix CIRC controller events so that controllers can learn the
4575       identity digests of non-Named servers used in circuit paths.
4576     - Let controllers ask for more useful identifiers for servers. Instead
4577       of learning identity digests for un-Named servers and nicknames
4578       for Named servers, the new identifiers include digest, nickname,
4579       and indication of Named status. Off by default; see control-spec.txt
4580       for more information.
4581     - Add a "getinfo address" controller command so it can display Tor's
4582       best guess to the user.
4583     - New controller event to alert the controller when our server
4584       descriptor has changed.
4585     - Give more meaningful errors on controller authentication failure.
4587   o Minor features, other:
4588     - When asked to resolve a hostname, don't use non-exit servers unless
4589       requested to do so. This allows servers with broken DNS to be
4590       useful to the network.
4591     - Divide eventdns log messages into warn and info messages.
4592     - Reserve the nickname "Unnamed" for routers that can't pick
4593       a hostname: any router can call itself Unnamed; directory
4594       authorities will never allocate Unnamed to any particular router;
4595       clients won't believe that any router is the canonical Unnamed.
4596     - Only include function names in log messages for info/debug messages.
4597       For notice/warn/err, the content of the message should be clear on
4598       its own, and printing the function name only confuses users.
4599     - Avoid some false positives during reachability testing: don't try
4600       to test via a server that's on the same /24 as us.
4601     - If we fail to build a circuit to an intended enclave, and it's
4602       not mandatory that we use that enclave, stop wanting it.
4603     - When eventdns is enabled, allow multithreaded builds on NetBSD and
4604       OpenBSD. (We had previously disabled threads on these platforms
4605       because they didn't have working thread-safe resolver functions.)
4607   o Major bugfixes, anonymity/security:
4608     - If a client asked for a server by name, and there's a named server
4609       in our network-status but we don't have its descriptor yet, we
4610       could return an unnamed server instead.
4611     - Fix NetBSD bug that could allow someone to force uninitialized RAM
4612       to be sent to a server's DNS resolver. This only affects NetBSD
4613       and other platforms that do not bounds-check tolower().
4614     - Reject (most) attempts to use Tor circuits with length one. (If
4615       many people start using Tor as a one-hop proxy, exit nodes become
4616       a more attractive target for compromise.)
4617     - Just because your DirPort is open doesn't mean people should be
4618       able to remotely teach you about hidden service descriptors. Now
4619       only accept rendezvous posts if you've got HSAuthoritativeDir set.
4621   o Major bugfixes, other:
4622     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
4623     - When a client asks the server to resolve (not connect to)
4624       an address, and it has a cached answer, give them the cached answer.
4625       Previously, the server would give them no answer at all.
4626     - Allow really slow clients to not hang up five minutes into their
4627       directory downloads (suggested by Adam J. Richter).
4628     - We were building exactly the wrong circuits when we anticipated
4629       hidden service requirements, meaning Tor would have to build all
4630       its circuits on demand.
4631     - Avoid crashing when we mmap a router cache file of size 0.
4632     - When testing reachability of our DirPort, don't launch new
4633       tests when there's already one in progress -- unreachable
4634       servers were stacking up dozens of testing streams.
4636   o Minor bugfixes, correctness:
4637     - If we're a directory mirror and we ask for "all" network status
4638       documents, we would discard status documents from authorities
4639       we don't recognize.
4640     - Avoid a memory corruption bug when creating a hash table for
4641       the first time.
4642     - Avoid controller-triggered crash when misusing certain commands
4643       from a v0 controller on platforms that do not handle
4644       printf("%s",NULL) gracefully.
4645     - Don't crash when a controller sends a third argument to an
4646       "extendcircuit" request.
4647     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
4648       response; fix error code when "getinfo dir/status/" fails.
4649     - Avoid crash when telling controller stream-status and a stream
4650       is detached.
4651     - Patch from Adam Langley to fix assert() in eventdns.c.
4652     - Fix a debug log message in eventdns to say "X resolved to Y"
4653       instead of "X resolved to X".
4654     - Make eventdns give strings for DNS errors, not just error numbers.
4655     - Track unreachable entry guards correctly: don't conflate
4656       'unreachable by us right now' with 'listed as down by the directory
4657       authorities'. With the old code, if a guard was unreachable by
4658       us but listed as running, it would clog our guard list forever.
4659     - Behave correctly in case we ever have a network with more than
4660       2GB/s total advertised capacity.
4661     - Make TrackExitHosts case-insensitive, and fix the behavior of
4662       ".suffix" TrackExitHosts items to avoid matching in the middle of
4663       an address.
4664     - Finally fix the openssl warnings from newer gccs that believe that
4665       ignoring a return value is okay, but casting a return value and
4666       then ignoring it is a sign of madness.
4667     - Prevent the contrib/exitlist script from printing the same
4668       result more than once.
4669     - Patch from Steve Hildrey: Generate network status correctly on
4670       non-versioning dirservers.
4671     - Don't listen to the X-Your-Address-Is hint if you did the lookup
4672       via Tor; otherwise you'll think you're the exit node's IP address.
4674   o Minor bugfixes, performance:
4675     - Two small performance improvements on parsing descriptors.
4676     - Major performance improvement on inserting descriptors: change
4677       algorithm from O(n^2) to O(n).
4678     - Make the common memory allocation path faster on machines where
4679       malloc(0) returns a pointer.
4680     - Start remembering X-Your-Address-Is directory hints even if you're
4681       a client, so you can become a server more smoothly.
4682     - Avoid duplicate entries on MyFamily line in server descriptor.
4684   o Packaging, features:
4685     - Remove architecture from OS X builds. The official builds are
4686       now universal binaries.
4687     - The Debian package now uses --verify-config when (re)starting,
4688       to distinguish configuration errors from other errors.
4689     - Update RPMs to require libevent 1.1b.
4691   o Packaging, bugfixes:
4692     - Patches so Tor builds with MinGW on Windows.
4693     - Patches so Tor might run on Cygwin again.
4694     - Resume building on non-gcc compilers and ancient gcc. Resume
4695       building with the -O0 compile flag. Resume building cleanly on
4696       Debian woody.
4697     - Run correctly on OS X platforms with case-sensitive filesystems.
4698     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
4699     - Add autoconf checks so Tor can build on Solaris x86 again.
4701   o Documentation
4702     - Documented (and renamed) ServerDNSSearchDomains and
4703       ServerDNSResolvConfFile options.
4704     - Be clearer that the *ListenAddress directives can be repeated
4705       multiple times.
4708 Changes in version 0.1.1.24 - 2006-09-29
4709   o Major bugfixes:
4710     - Allow really slow clients to not hang up five minutes into their
4711       directory downloads (suggested by Adam J. Richter).
4712     - Fix major performance regression from 0.1.0.x: instead of checking
4713       whether we have enough directory information every time we want to
4714       do something, only check when the directory information has changed.
4715       This should improve client CPU usage by 25-50%.
4716     - Don't crash if, after a server has been running for a while,
4717       it can't resolve its hostname.
4719   o Minor bugfixes:
4720     - Allow Tor to start when RunAsDaemon is set but no logs are set.
4721     - Don't crash when the controller receives a third argument to an
4722       "extendcircuit" request.
4723     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
4724       response; fix error code when "getinfo dir/status/" fails.
4725     - Fix configure.in to not produce broken configure files with
4726       more recent versions of autoconf. Thanks to Clint for his auto*
4727       voodoo.
4728     - Fix security bug on NetBSD that could allow someone to force
4729       uninitialized RAM to be sent to a server's DNS resolver. This
4730       only affects NetBSD and other platforms that do not bounds-check
4731       tolower().
4732     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
4733       methods: these are known to be buggy.
4734     - If we're a directory mirror and we ask for "all" network status
4735       documents, we would discard status documents from authorities
4736       we don't recognize.
4739 Changes in version 0.1.2.1-alpha - 2006-08-27
4740   o Major features:
4741     - Add "eventdns" async dns library from Adam Langley, tweaked to
4742       build on OSX and Windows. Only enabled if you pass the
4743       --enable-eventdns argument to configure.
4744     - Allow servers with no hostname or IP address to learn their
4745       IP address by asking the directory authorities. This code only
4746       kicks in when you would normally have exited with a "no address"
4747       error. Nothing's authenticated, so use with care.
4748     - Rather than waiting a fixed amount of time between retrying
4749       application connections, we wait only 5 seconds for the first,
4750       10 seconds for the second, and 15 seconds for each retry after
4751       that. Hopefully this will improve the expected user experience.
4752     - Patch from Tup to add support for transparent AP connections:
4753       this basically bundles the functionality of trans-proxy-tor
4754       into the Tor mainline. Now hosts with compliant pf/netfilter
4755       implementations can redirect TCP connections straight to Tor
4756       without diverting through SOCKS. Needs docs.
4757     - Busy directory servers save lots of memory by spooling server
4758       descriptors, v1 directories, and v2 networkstatus docs to buffers
4759       as needed rather than en masse. Also mmap the cached-routers
4760       files, so we don't need to keep the whole thing in memory too.
4761     - Automatically avoid picking more than one node from the same
4762       /16 network when constructing a circuit.
4763     - Revise and clean up the torrc.sample that we ship with; add
4764       a section for BandwidthRate and BandwidthBurst.
4766   o Minor features:
4767     - Split circuit_t into origin_circuit_t and or_circuit_t, and
4768       split connection_t into edge, or, dir, control, and base structs.
4769       These will save quite a bit of memory on busy servers, and they'll
4770       also help us track down bugs in the code and bugs in the spec.
4771     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
4772       or later. Log when we are doing this, so we can diagnose it when
4773       it fails. (Also, recommend libevent 1.1b for kqueue and
4774       win32 methods; deprecate libevent 1.0b harder; make libevent
4775       recommendation system saner.)
4776     - Start being able to build universal binaries on OS X (thanks
4777       to Phobos).
4778     - Export the default exit policy via the control port, so controllers
4779       don't need to guess what it is / will be later.
4780     - Add a man page entry for ProtocolWarnings.
4781     - Add TestVia config option to the man page.
4782     - Remove even more protocol-related warnings from Tor server logs,
4783       such as bad TLS handshakes and malformed begin cells.
4784     - Stop fetching descriptors if you're not a dir mirror and you
4785       haven't tried to establish any circuits lately. [This currently
4786       causes some dangerous behavior, because when you start up again
4787       you'll use your ancient server descriptors.]
4788     - New DirPort behavior: if you have your dirport set, you download
4789       descriptors aggressively like a directory mirror, whether or not
4790       your ORPort is set.
4791     - Get rid of the router_retry_connections notion. Now routers
4792       no longer try to rebuild long-term connections to directory
4793       authorities, and directory authorities no longer try to rebuild
4794       long-term connections to all servers. We still don't hang up
4795       connections in these two cases though -- we need to look at it
4796       more carefully to avoid flapping, and we likely need to wait til
4797       0.1.1.x is obsolete.
4798     - Drop compatibility with obsolete Tors that permit create cells
4799       to have the wrong circ_id_type.
4800     - Re-enable per-connection rate limiting. Get rid of the "OP
4801       bandwidth" concept. Lay groundwork for "bandwidth classes" --
4802       separate global buckets that apply depending on what sort of conn
4803       it is.
4804     - Start publishing one minute or so after we find our ORPort
4805       to be reachable. This will help reduce the number of descriptors
4806       we have for ourselves floating around, since it's quite likely
4807       other things (e.g. DirPort) will change during that minute too.
4808     - Fork the v1 directory protocol into its own spec document,
4809       and mark dir-spec.txt as the currently correct (v2) spec.
4811   o Major bugfixes:
4812     - When we find our DirPort to be reachable, publish a new descriptor
4813       so we'll tell the world (reported by pnx).
4814     - Publish a new descriptor after we hup/reload. This is important
4815       if our config has changed such that we'll want to start advertising
4816       our DirPort now, etc.
4817     - Allow Tor to start when RunAsDaemon is set but no logs are set.
4818     - When we have a state file we cannot parse, tell the user and
4819       move it aside. Now we avoid situations where the user starts
4820       Tor in 1904, Tor writes a state file with that timestamp in it,
4821       the user fixes her clock, and Tor refuses to start.
4822     - Fix configure.in to not produce broken configure files with
4823       more recent versions of autoconf. Thanks to Clint for his auto*
4824       voodoo.
4825     - "tor --verify-config" now exits with -1(255) or 0 depending on
4826       whether the config options are bad or good.
4827     - Resolve bug 321 when using dnsworkers: append a period to every
4828       address we resolve at the exit node, so that we do not accidentally
4829       pick up local addresses, and so that failing searches are retried
4830       in the resolver search domains. (This is already solved for
4831       eventdns.) (This breaks Blossom servers for now.)
4832     - If we are using an exit enclave and we can't connect, e.g. because
4833       its webserver is misconfigured to not listen on localhost, then
4834       back off and try connecting from somewhere else before we fail.
4836   o Minor bugfixes:
4837     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
4838     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
4839     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
4840       when the IP address is mapped through MapAddress to a hostname.
4841     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
4842       useless IPv6 DNS resolves.
4843     - Patch suggested by Karsten Loesing: respond to SIGNAL command
4844       before we execute the signal, in case the signal shuts us down.
4845     - Clean up AllowInvalidNodes man page entry.
4846     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
4847     - Add more asserts to track down an assert error on a windows Tor
4848       server with connection_add being called with socket == -1.
4849     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
4850     - Fix misleading log messages: an entry guard that is "unlisted",
4851       as well as not known to be "down" (because we've never heard
4852       of it), is not therefore "up".
4853     - Remove code to special-case "-cvs" ending, since it has not
4854       actually mattered since 0.0.9.
4855     - Make our socks5 handling more robust to broken socks clients:
4856       throw out everything waiting on the buffer in between socks
4857       handshake phases, since they can't possibly (so the theory
4858       goes) have predicted what we plan to respond to them.
4861 Changes in version 0.1.1.23 - 2006-07-30
4862   o Major bugfixes:
4863     - Fast Tor servers, especially exit nodes, were triggering asserts
4864       due to a bug in handling the list of pending DNS resolves. Some
4865       bugs still remain here; we're hunting them.
4866     - Entry guards could crash clients by sending unexpected input.
4867     - More fixes on reachability testing: if you find yourself reachable,
4868       then don't ever make any client requests (so you stop predicting
4869       circuits), then hup or have your clock jump, then later your IP
4870       changes, you won't think circuits are working, so you won't try to
4871       test reachability, so you won't publish.
4873   o Minor bugfixes:
4874     - Avoid a crash if the controller does a resetconf firewallports
4875       and then a setconf fascistfirewall=1.
4876     - Avoid an integer underflow when the dir authority decides whether
4877       a router is stable: we might wrongly label it stable, and compute
4878       a slightly wrong median stability, when a descriptor is published
4879       later than now.
4880     - Fix a place where we might trigger an assert if we can't build our
4881       own server descriptor yet.
4884 Changes in version 0.1.1.22 - 2006-07-05
4885   o Major bugfixes:
4886     - Fix a big bug that was causing servers to not find themselves
4887       reachable if they changed IP addresses. Since only 0.1.1.22+
4888       servers can do reachability testing correctly, now we automatically
4889       make sure to test via one of these.
4890     - Fix to allow clients and mirrors to learn directory info from
4891       descriptor downloads that get cut off partway through.
4892     - Directory authorities had a bug in deciding if a newly published
4893       descriptor was novel enough to make everybody want a copy -- a few
4894       servers seem to be publishing new descriptors many times a minute.
4895   o Minor bugfixes:
4896     - Fix a rare bug that was causing some servers to complain about
4897       "closing wedged cpuworkers" and skip some circuit create requests.
4898     - Make the Exit flag in directory status documents actually work.
4901 Changes in version 0.1.1.21 - 2006-06-10
4902   o Crash and assert fixes from 0.1.1.20:
4903     - Fix a rare crash on Tor servers that have enabled hibernation.
4904     - Fix a seg fault on startup for Tor networks that use only one
4905       directory authority.
4906     - Fix an assert from a race condition that occurs on Tor servers
4907       while exiting, where various threads are trying to log that they're
4908       exiting, and delete the logs, at the same time.
4909     - Make our unit tests pass again on certain obscure platforms.
4911   o Other fixes:
4912     - Add support for building SUSE RPM packages.
4913     - Speed up initial bootstrapping for clients: if we are making our
4914       first ever connection to any entry guard, then don't mark it down
4915       right after that.
4916     - When only one Tor server in the network is labelled as a guard,
4917       and we've already picked him, we would cycle endlessly picking him
4918       again, being unhappy about it, etc. Now we specifically exclude
4919       current guards when picking a new guard.
4920     - Servers send create cells more reliably after the TLS connection
4921       is established: we were sometimes forgetting to send half of them
4922       when we had more than one pending.
4923     - If we get a create cell that asks us to extend somewhere, but the
4924       Tor server there doesn't match the expected digest, we now send
4925       a destroy cell back, rather than silently doing nothing.
4926     - Make options->RedirectExit work again.
4927     - Make cookie authentication for the controller work again.
4928     - Stop being picky about unusual characters in the arguments to
4929       mapaddress. It's none of our business.
4930     - Add a new config option "TestVia" that lets you specify preferred
4931       middle hops to use for test circuits. Perhaps this will let me
4932       debug the reachability problems better.
4934   o Log / documentation fixes:
4935     - If we're a server and some peer has a broken TLS certificate, don't
4936       log about it unless ProtocolWarnings is set, i.e., we want to hear
4937       about protocol violations by others.
4938     - Fix spelling of VirtualAddrNetwork in man page.
4939     - Add a better explanation at the top of the autogenerated torrc file
4940       about what happened to our old torrc.
4943 Changes in version 0.1.1.20 - 2006-05-23
4944   o Bugfixes:
4945     - Downgrade a log severity where servers complain that they're
4946       invalid.
4947     - Avoid a compile warning on FreeBSD.
4948     - Remove string size limit on NEWDESC messages; solve bug 291.
4949     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
4950       more thoroughly when we're running on windows.
4953 Changes in version 0.1.1.19-rc - 2006-05-03
4954   o Minor bugs:
4955     - Regenerate our local descriptor if it's dirty and we try to use
4956       it locally (e.g. if it changes during reachability detection).
4957     - If we setconf our ORPort to 0, we continued to listen on the
4958       old ORPort and receive connections.
4959     - Avoid a second warning about machine/limits.h on Debian
4960       GNU/kFreeBSD.
4961     - Be willing to add our own routerinfo into the routerlist.
4962       Now authorities will include themselves in their directories
4963       and network-statuses.
4964     - Stop trying to upload rendezvous descriptors to every
4965       directory authority: only try the v1 authorities.
4966     - Servers no longer complain when they think they're not
4967       registered with the directory authorities. There were too many
4968       false positives.
4969     - Backport dist-rpm changes so rpms can be built without errors.
4971   o Features:
4972     - Implement an option, VirtualAddrMask, to set which addresses
4973       get handed out in response to mapaddress requests. This works
4974       around a bug in tsocks where 127.0.0.0/8 is never socksified.
4977 Changes in version 0.1.1.18-rc - 2006-04-10
4978   o Major fixes:
4979     - Work harder to download live network-statuses from all the
4980       directory authorities we know about. Improve the threshold
4981       decision logic so we're more robust to edge cases.
4982     - When fetching rendezvous descriptors, we were willing to ask
4983       v2 authorities too, which would always return 404.
4985   o Minor fixes:
4986     - Stop listing down or invalid nodes in the v1 directory. This will
4987       reduce its bulk by about 1/3, and reduce load on directory
4988       mirrors.
4989     - When deciding whether a router is Fast or Guard-worthy, consider
4990       his advertised BandwidthRate and not just the BandwidthCapacity.
4991     - No longer ship INSTALL and README files -- they are useless now.
4992     - Force rpmbuild to behave and honor target_cpu.
4993     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
4994     - Start to include translated versions of the tor-doc-*.html
4995       files, along with the screenshots. Still needs more work.
4996     - Start sending back 512 and 451 errors if mapaddress fails,
4997       rather than not sending anything back at all.
4998     - When we fail to bind or listen on an incoming or outgoing
4999       socket, we should close it before failing. otherwise we just
5000       leak it. (thanks to weasel for finding.)
5001     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
5002       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
5003     - Make NoPublish (even though deprecated) work again.
5004     - Fix a minor security flaw where a versioning auth dirserver
5005       could list a recommended version many times in a row to make
5006       clients more convinced that it's recommended.
5007     - Fix crash bug if there are two unregistered servers running
5008       with the same nickname, one of them is down, and you ask for
5009       them by nickname in your EntryNodes or ExitNodes. Also, try
5010       to pick the one that's running rather than an arbitrary one.
5011     - Fix an infinite loop we could hit if we go offline for too long.
5012     - Complain when we hit WSAENOBUFS on recv() or write() too.
5013       Perhaps this will help us hunt the bug.
5014     - If you're not a versioning dirserver, don't put the string
5015       "client-versions \nserver-versions \n" in your network-status.
5016     - Lower the minimum required number of file descriptors to 1000,
5017       so we can have some overhead for Valgrind on Linux, where the
5018       default ulimit -n is 1024.
5020   o New features:
5021     - Add tor.dizum.com as the fifth authoritative directory server.
5022     - Add a new config option FetchUselessDescriptors, off by default,
5023       for when you plan to run "exitlist" on your client and you want
5024       to know about even the non-running descriptors.
5027 Changes in version 0.1.1.17-rc - 2006-03-28
5028   o Major fixes:
5029     - Clients and servers since 0.1.1.10-alpha have been expiring
5030       connections whenever they are idle for 5 minutes and they *do*
5031       have circuits on them. Oops. With this new version, clients will
5032       discard their previous entry guard choices and avoid choosing
5033       entry guards running these flawed versions.
5034     - Fix memory leak when uncompressing concatenated zlib streams. This
5035       was causing substantial leaks over time on Tor servers.
5036     - The v1 directory was including servers as much as 48 hours old,
5037       because that's how the new routerlist->routers works. Now only
5038       include them if they're 20 hours old or less.
5040   o Minor fixes:
5041     - Resume building on irix64, netbsd 2.0, etc.
5042     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
5043       "-Wall -g -O2".
5044     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
5045       and it is confusing some users.
5046     - Mirrors stop caching the v1 directory so often.
5047     - Make the max number of old descriptors that a cache will hold
5048       rise with the number of directory authorities, so we can scale.
5049     - Change our win32 uname() hack to be more forgiving about what
5050       win32 versions it thinks it's found.
5052   o New features:
5053     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
5054       server.
5055     - When the controller's *setconf commands fail, collect an error
5056       message in a string and hand it back to the controller.
5057     - Make the v2 dir's "Fast" flag based on relative capacity, just
5058       like "Stable" is based on median uptime. Name everything in the
5059       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
5060     - Log server fingerprint on startup, so new server operators don't
5061       have to go hunting around their filesystem for it.
5062     - Return a robots.txt on our dirport to discourage google indexing.
5063     - Let the controller ask for GETINFO dir/status/foo so it can ask
5064       directly rather than connecting to the dir port. Only works when
5065       dirport is set for now.
5067   o New config options rather than constants in the code:
5068     - SocksTimeout: How long do we let a socks connection wait
5069       unattached before we fail it?
5070     - CircuitBuildTimeout: Cull non-open circuits that were born
5071       at least this many seconds ago.
5072     - CircuitIdleTimeout: Cull open clean circuits that were born
5073       at least this many seconds ago.
5076 Changes in version 0.1.1.16-rc - 2006-03-18
5077   o Bugfixes on 0.1.1.15-rc:
5078     - Fix assert when the controller asks to attachstream a connect-wait
5079       or resolve-wait stream.
5080     - Now do address rewriting when the controller asks us to attach
5081       to a particular circuit too. This will let Blossom specify
5082       "moria2.exit" without having to learn what moria2's IP address is.
5083     - Make the "tor --verify-config" command-line work again, so people
5084       can automatically check if their torrc will parse.
5085     - Authoritative dirservers no longer require an open connection from
5086       a server to consider him "reachable". We need this change because
5087       when we add new auth dirservers, old servers won't know not to
5088       hang up on them.
5089     - Let Tor build on Sun CC again.
5090     - Fix an off-by-one buffer size in dirserv.c that magically never
5091       hit our three authorities but broke sjmurdoch's own tor network.
5092     - If we as a directory mirror don't know of any v1 directory
5093       authorities, then don't try to cache any v1 directories.
5094     - Stop warning about unknown servers in our family when they are
5095       given as hex digests.
5096     - Stop complaining as quickly to the server operator that he
5097       hasn't registered his nickname/key binding.
5098     - Various cleanups so we can add new V2 Auth Dirservers.
5099     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
5100       reflect the updated flags in our v2 dir protocol.
5101     - Resume allowing non-printable characters for exit streams (both
5102       for connecting and for resolving). Now we tolerate applications
5103       that don't follow the RFCs. But continue to block malformed names
5104       at the socks side.
5106   o Bugfixes on 0.1.0.x:
5107     - Fix assert bug in close_logs(): when we close and delete logs,
5108       remove them all from the global "logfiles" list.
5109     - Fix minor integer overflow in calculating when we expect to use up
5110       our bandwidth allocation before hibernating.
5111     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
5112       there are multiple SSLs installed with different versions.
5113     - When we try to be a server and Address is not explicitly set and
5114       our hostname resolves to a private IP address, try to use an
5115       interface address if it has a public address. Now Windows machines
5116       that think of themselves as localhost can work by default.
5118   o New features:
5119     - Let the controller ask for GETINFO dir/server/foo so it can ask
5120       directly rather than connecting to the dir port.
5121     - Let the controller tell us about certain router descriptors
5122       that it doesn't want Tor to use in circuits. Implement
5123       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
5124     - New config option SafeSocks to reject all application connections
5125       using unsafe socks protocols. Defaults to off.
5128 Changes in version 0.1.1.15-rc - 2006-03-11
5129   o Bugfixes and cleanups:
5130     - When we're printing strings from the network, don't try to print
5131       non-printable characters. This protects us against shell escape
5132       sequence exploits, and also against attacks to fool humans into
5133       misreading their logs.
5134     - Fix a bug where Tor would fail to establish any connections if you
5135       left it off for 24 hours and then started it: we were happy with
5136       the obsolete network statuses, but they all referred to router
5137       descriptors that were too old to fetch, so we ended up with no
5138       valid router descriptors.
5139     - Fix a seg fault in the controller's "getinfo orconn-status"
5140       command while listing status on incoming handshaking connections.
5141       Introduce a status name "NEW" for these connections.
5142     - If we get a linelist or linelist_s config option from the torrc
5143       (e.g. ExitPolicy) and it has no value, warn and skip rather than
5144       silently resetting it to its default.
5145     - Don't abandon entry guards until they've been down or gone for
5146       a whole month.
5147     - Cleaner and quieter log messages.
5149   o New features:
5150     - New controller signal NEWNYM that makes new application requests
5151       use clean circuits.
5152     - Add a new circuit purpose 'controller' to let the controller ask
5153       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
5154       controller command to let you specify the purpose if you're
5155       starting a new circuit.  Add a new SETCIRCUITPURPOSE controller
5156       command to let you change a circuit's purpose after it's been
5157       created.
5158     - Accept "private:*" in routerdesc exit policies; not generated yet
5159       because older Tors do not understand it.
5160     - Add BSD-style contributed startup script "rc.subr" from Peter
5161       Thoenen.
5164 Changes in version 0.1.1.14-alpha - 2006-02-20
5165   o Bugfixes on 0.1.1.x:
5166     - Don't die if we ask for a stdout or stderr log (even implicitly)
5167       and we're set to RunAsDaemon -- just warn.
5168     - We still had a few bugs in the OR connection rotation code that
5169       caused directory servers to slowly aggregate connections to other
5170       fast Tor servers. This time for sure!
5171     - Make log entries on Win32 include the name of the function again.
5172     - We were treating a pair of exit policies if they were equal even
5173       if one said accept and the other said reject -- causing us to
5174       not always publish a new descriptor since we thought nothing
5175       had changed.
5176     - Retry pending server downloads as well as pending networkstatus
5177       downloads when we unexpectedly get a socks request.
5178     - We were ignoring the IS_FAST flag in the directory status,
5179       meaning we were willing to pick trivial-bandwidth nodes for "fast"
5180       connections.
5181     - If the controller's SAVECONF command fails (e.g. due to file
5182       permissions), let the controller know that it failed.
5184   o Features:
5185     - If we're trying to be a Tor server and running Windows 95/98/ME
5186       as a server, explain that we'll likely crash.
5187     - When we're a server, a client asks for an old-style directory,
5188       and our write bucket is empty, don't give it to him. This way
5189       small servers can continue to serve the directory *sometimes*,
5190       without getting overloaded.
5191     - Compress exit policies even more -- look for duplicate lines
5192       and remove them.
5193     - Clients now honor the "guard" flag in the router status when
5194       picking entry guards, rather than looking at is_fast or is_stable.
5195     - Retain unrecognized lines in $DATADIR/state file, so that we can
5196       be forward-compatible.
5197     - Generate 18.0.0.0/8 address policy format in descs when we can;
5198       warn when the mask is not reducible to a bit-prefix.
5199     - Let the user set ControlListenAddress in the torrc.  This can be
5200       dangerous, but there are some cases (like a secured LAN) where it
5201       makes sense.
5202     - Split ReachableAddresses into ReachableDirAddresses and
5203       ReachableORAddresses, so we can restrict Dir conns to port 80
5204       and OR conns to port 443.
5205     - Now we can target arch and OS in rpm builds (contributed by
5206       Phobos). Also make the resulting dist-rpm filename match the
5207       target arch.
5208     - New config options to help controllers: FetchServerDescriptors
5209       and FetchHidServDescriptors for whether to fetch server
5210       info and hidserv info or let the controller do it, and
5211       PublishServerDescriptor and PublishHidServDescriptors.
5212     - Also let the controller set the __AllDirActionsPrivate config
5213       option if you want all directory fetches/publishes to happen via
5214       Tor (it assumes your controller bootstraps your circuits).
5217 Changes in version 0.1.0.17 - 2006-02-17
5218   o Crash bugfixes on 0.1.0.x:
5219     - When servers with a non-zero DirPort came out of hibernation,
5220       sometimes they would trigger an assert.
5222   o Other important bugfixes:
5223     - On platforms that don't have getrlimit (like Windows), we were
5224       artificially constraining ourselves to a max of 1024
5225       connections. Now just assume that we can handle as many as 15000
5226       connections. Hopefully this won't cause other problems.
5228   o Backported features:
5229     - When we're a server, a client asks for an old-style directory,
5230       and our write bucket is empty, don't give it to him. This way
5231       small servers can continue to serve the directory *sometimes*,
5232       without getting overloaded.
5233     - Whenever you get a 503 in response to a directory fetch, try
5234       once more. This will become important once servers start sending
5235       503's whenever they feel busy.
5236     - Fetch a new directory every 120 minutes, not every 40 minutes.
5237       Now that we have hundreds of thousands of users running the old
5238       directory algorithm, it's starting to hurt a lot.
5239     - Bump up the period for forcing a hidden service descriptor upload
5240       from 20 minutes to 1 hour.
5243 Changes in version 0.1.1.13-alpha - 2006-02-09
5244   o Crashes in 0.1.1.x:
5245     - When you tried to setconf ORPort via the controller, Tor would
5246       crash. So people using TorCP to become a server were sad.
5247     - Solve (I hope) the stack-smashing bug that we were seeing on fast
5248       servers. The problem appears to be something do with OpenSSL's
5249       random number generation, or how we call it, or something. Let me
5250       know if the crashes continue.
5251     - Turn crypto hardware acceleration off by default, until we find
5252       somebody smart who can test it for us. (It appears to produce
5253       seg faults in at least some cases.)
5254     - Fix a rare assert error when we've tried all intro points for
5255       a hidden service and we try fetching the service descriptor again:
5256       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
5258   o Major fixes:
5259     - Fix a major load balance bug: we were round-robining in 16 KB
5260       chunks, and servers with bandwidthrate of 20 KB, while downloading
5261       a 600 KB directory, would starve their other connections. Now we
5262       try to be a bit more fair.
5263     - Dir authorities and mirrors were never expiring the newest
5264       descriptor for each server, causing memory and directory bloat.
5265     - Fix memory-bloating and connection-bloating bug on servers: We
5266       were never closing any connection that had ever had a circuit on
5267       it, because we were checking conn->n_circuits == 0, yet we had a
5268       bug that let it go negative.
5269     - Make Tor work using squid as your http proxy again -- squid
5270       returns an error if you ask for a URL that's too long, and it uses
5271       a really generic error message. Plus, many people are behind a
5272       transparent squid so they don't even realize it.
5273     - On platforms that don't have getrlimit (like Windows), we were
5274       artificially constraining ourselves to a max of 1024
5275       connections. Now just assume that we can handle as many as 15000
5276       connections. Hopefully this won't cause other problems.
5277     - Add a new config option ExitPolicyRejectPrivate which defaults to
5278       1. This means all exit policies will begin with rejecting private
5279       addresses, unless the server operator explicitly turns it off.
5281   o Major features:
5282     - Clients no longer download descriptors for non-running
5283       descriptors.
5284     - Before we add new directory authorities, we should make it
5285       clear that only v1 authorities should receive/publish hidden
5286       service descriptors.
5288   o Minor features:
5289     - As soon as we've fetched some more directory info, immediately
5290       try to download more server descriptors. This way we don't have
5291       a 10 second pause during initial bootstrapping.
5292     - Remove even more loud log messages that the server operator can't
5293       do anything about.
5294     - When we're running an obsolete or un-recommended version, make
5295       the log message more clear about what the problem is and what
5296       versions *are* still recommended.
5297     - Provide a more useful warn message when our onion queue gets full:
5298       the CPU is too slow or the exit policy is too liberal.
5299     - Don't warn when we receive a 503 from a dirserver/cache -- this
5300       will pave the way for them being able to refuse if they're busy.
5301     - When we fail to bind a listener, try to provide a more useful
5302       log message: e.g., "Is Tor already running?"
5303     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
5304       Goldberg can prove things about our handshake protocol more
5305       easily.
5306     - MaxConn has been obsolete for a while now. Document the ConnLimit
5307       config option, which is a *minimum* number of file descriptors
5308       that must be available else Tor refuses to start.
5309     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
5310       if you log to syslog and want something other than LOG_DAEMON.
5311     - Make dirservers generate a separate "guard" flag to mean,
5312       "would make a good entry guard". Make clients parse it and vote
5313       on it. Not used by clients yet.
5314     - Implement --with-libevent-dir option to ./configure. Also, improve
5315       search techniques to find libevent, and use those for openssl too.
5316     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
5317     - Only start testing reachability once we've established a
5318       circuit. This will make startup on dirservers less noisy.
5319     - Don't try to upload hidden service descriptors until we have
5320       established a circuit.
5321     - Fix the controller's "attachstream 0" command to treat conn like
5322       it just connected, doing address remapping, handling .exit and
5323       .onion idioms, and so on. Now we're more uniform in making sure
5324       that the controller hears about new and closing connections.
5327 Changes in version 0.1.1.12-alpha - 2006-01-11
5328   o Bugfixes on 0.1.1.x:
5329     - The fix to close duplicate server connections was closing all
5330       Tor client connections if they didn't establish a circuit
5331       quickly enough. Oops.
5332     - Fix minor memory issue (double-free) that happened on exit.
5334   o Bugfixes on 0.1.0.x:
5335     - Tor didn't warn when it failed to open a log file.
5338 Changes in version 0.1.1.11-alpha - 2006-01-10
5339   o Crashes in 0.1.1.x:
5340     - Include all the assert/crash fixes from 0.1.0.16.
5341     - If you start Tor and then quit very quickly, there were some
5342       races that tried to free things that weren't allocated yet.
5343     - Fix a rare memory stomp if you're running hidden services.
5344     - Fix segfault when specifying DirServer in config without nickname.
5345     - Fix a seg fault when you finish connecting to a server but at
5346       that moment you dump his server descriptor.
5347     - Extendcircuit and Attachstream controller commands would
5348       assert/crash if you don't give them enough arguments.
5349     - Fix an assert error when we're out of space in the connection_list
5350       and we try to post a hidden service descriptor (reported by weasel).
5351     - If you specify a relative torrc path and you set RunAsDaemon in
5352       your torrc, then it chdir()'s to the new directory. If you HUP,
5353       it tries to load the new torrc location, fails, and exits.
5354       The fix: no longer allow a relative path to torrc using -f.
5356   o Major features:
5357     - Implement "entry guards": automatically choose a handful of entry
5358       nodes and stick with them for all circuits. Only pick new guards
5359       when the ones you have are unsuitable, and if the old guards
5360       become suitable again, switch back. This will increase security
5361       dramatically against certain end-point attacks. The EntryNodes
5362       config option now provides some hints about which entry guards you
5363       want to use most; and StrictEntryNodes means to only use those.
5364     - New directory logic: download by descriptor digest, not by
5365       fingerprint. Caches try to download all listed digests from
5366       authorities; clients try to download "best" digests from caches.
5367       This avoids partitioning and isolating attacks better.
5368     - Make the "stable" router flag in network-status be the median of
5369       the uptimes of running valid servers, and make clients pay
5370       attention to the network-status flags. Thus the cutoff adapts
5371       to the stability of the network as a whole, making IRC, IM, etc
5372       connections more reliable.
5374   o Major fixes:
5375     - Tor servers with dynamic IP addresses were needing to wait 18
5376       hours before they could start doing reachability testing using
5377       the new IP address and ports. This is because they were using
5378       the internal descriptor to learn what to test, yet they were only
5379       rebuilding the descriptor once they decided they were reachable.
5380     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
5381       to download certain server descriptors, throw them away, and then
5382       fetch them again after 30 minutes. Now mirrors throw away these
5383       server descriptors so clients can't get them.
5384     - We were leaving duplicate connections to other ORs open for a week,
5385       rather than closing them once we detect a duplicate. This only
5386       really affected authdirservers, but it affected them a lot.
5387     - Spread the authdirservers' reachability testing over the entire
5388       testing interval, so we don't try to do 500 TLS's at once every
5389       20 minutes.
5391   o Minor fixes:
5392     - If the network is down, and we try to connect to a conn because
5393       we have a circuit in mind, and we timeout (30 seconds) because the
5394       network never answers, we were expiring the circuit, but we weren't
5395       obsoleting the connection or telling the entry_guards functions.
5396     - Some Tor servers process billions of cells per day. These statistics
5397       need to be uint64_t's.
5398     - Check for integer overflows in more places, when adding elements
5399       to smartlists. This could possibly prevent a buffer overflow
5400       on malicious huge inputs. I don't see any, but I haven't looked
5401       carefully.
5402     - ReachableAddresses kept growing new "reject *:*" lines on every
5403       setconf/reload.
5404     - When you "setconf log" via the controller, it should remove all
5405       logs. We were automatically adding back in a "log notice stdout".
5406     - Newly bootstrapped Tor networks couldn't establish hidden service
5407       circuits until they had nodes with high uptime. Be more tolerant.
5408     - We were marking servers down when they could not answer every piece
5409       of the directory request we sent them. This was far too harsh.
5410     - Fix the torify (tsocks) config file to not use Tor for localhost
5411       connections.
5412     - Directory authorities now go to the proper authority when asking for
5413       a networkstatus, even when they want a compressed one.
5414     - Fix a harmless bug that was causing Tor servers to log
5415       "Got an end because of misc error, but we're not an AP. Closing."
5416     - Authorities were treating their own descriptor changes as cosmetic,
5417       meaning the descriptor available in the network-status and the
5418       descriptor that clients downloaded were different.
5419     - The OS X installer was adding a symlink for tor_resolve but
5420       the binary was called tor-resolve (reported by Thomas Hardly).
5421     - Workaround a problem with some http proxies where they refuse GET
5422       requests that specify "Content-Length: 0" (reported by Adrian).
5423     - Fix wrong log message when you add a "HiddenServiceNodes" config
5424       line without any HiddenServiceDir line (reported by Chris Thomas).
5426   o Minor features:
5427     - Write the TorVersion into the state file so we have a prayer of
5428       keeping forward and backward compatibility.
5429     - Revive the FascistFirewall config option rather than eliminating it:
5430       now it's a synonym for ReachableAddresses *:80,*:443.
5431     - Clients choose directory servers from the network status lists,
5432       not from their internal list of router descriptors. Now they can
5433       go to caches directly rather than needing to go to authorities
5434       to bootstrap.
5435     - Directory authorities ignore router descriptors that have only
5436       cosmetic differences: do this for 0.1.0.x servers now too.
5437     - Add a new flag to network-status indicating whether the server
5438       can answer v2 directory requests too.
5439     - Authdirs now stop whining so loudly about bad descriptors that
5440       they fetch from other dirservers. So when there's a log complaint,
5441       it's for sure from a freshly uploaded descriptor.
5442     - Reduce memory requirements in our structs by changing the order
5443       of fields.
5444     - There used to be two ways to specify your listening ports in a
5445       server descriptor: on the "router" line and with a separate "ports"
5446       line. Remove support for the "ports" line.
5447     - New config option "AuthDirRejectUnlisted" for auth dirservers as
5448       a panic button: if we get flooded with unusable servers we can
5449       revert to only listing servers in the approved-routers file.
5450     - Auth dir servers can now mark a fingerprint as "!reject" or
5451       "!invalid" in the approved-routers file (as its nickname), to
5452       refuse descriptors outright or include them but marked as invalid.
5453     - Servers store bandwidth history across restarts/crashes.
5454     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
5455       get a better idea of why their circuits failed. Not used yet.
5456     - Directory mirrors now cache up to 16 unrecognized network-status
5457       docs. Now we can add new authdirservers and they'll be cached too.
5458     - When picking a random directory, prefer non-authorities if any
5459       are known.
5460     - New controller option "getinfo desc/all-recent" to fetch the
5461       latest server descriptor for every router that Tor knows about.
5464 Changes in version 0.1.0.16 - 2006-01-02
5465   o Crash bugfixes on 0.1.0.x:
5466     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
5467       corrupting the heap, losing FDs, or crashing when we need to resize
5468       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
5469     - It turns out sparc64 platforms crash on unaligned memory access
5470       too -- so detect and avoid this.
5471     - Handle truncated compressed data correctly (by detecting it and
5472       giving an error).
5473     - Fix possible-but-unlikely free(NULL) in control.c.
5474     - When we were closing connections, there was a rare case that
5475       stomped on memory, triggering seg faults and asserts.
5476     - Avoid potential infinite recursion when building a descriptor. (We
5477       don't know that it ever happened, but better to fix it anyway.)
5478     - We were neglecting to unlink marked circuits from soon-to-close OR
5479       connections, which caused some rare scribbling on freed memory.
5480     - Fix a memory stomping race bug when closing the joining point of two
5481       rendezvous circuits.
5482     - Fix an assert in time parsing found by Steven Murdoch.
5484   o Other bugfixes on 0.1.0.x:
5485     - When we're doing reachability testing, provide more useful log
5486       messages so the operator knows what to expect.
5487     - Do not check whether DirPort is reachable when we are suppressing
5488       advertising it because of hibernation.
5489     - When building with -static or on Solaris, we sometimes needed -ldl.
5490     - When we're deciding whether a stream has enough circuits around
5491       that can handle it, count the freshly dirty ones and not the ones
5492       that are so dirty they won't be able to handle it.
5493     - When we're expiring old circuits, we had a logic error that caused
5494       us to close new rendezvous circuits rather than old ones.
5495     - Give a more helpful log message when you try to change ORPort via
5496       the controller: you should upgrade Tor if you want that to work.
5497     - We were failing to parse Tor versions that start with "Tor ".
5498     - Tolerate faulty streams better: when a stream fails for reason
5499       exitpolicy, stop assuming that the router is lying about his exit
5500       policy. When a stream fails for reason misc, allow it to retry just
5501       as if it was resolvefailed. When a stream has failed three times,
5502       reset its failure count so we can try again and get all three tries.
5505 Changes in version 0.1.1.10-alpha - 2005-12-11
5506   o Correctness bugfixes on 0.1.0.x:
5507     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
5508       corrupting the heap, losing FDs, or crashing when we need to resize
5509       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
5510     - Stop doing the complex voodoo overkill checking for insecure
5511       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
5512     - When we were closing connections, there was a rare case that
5513       stomped on memory, triggering seg faults and asserts.
5514     - We were neglecting to unlink marked circuits from soon-to-close OR
5515       connections, which caused some rare scribbling on freed memory.
5516     - When we're deciding whether a stream has enough circuits around
5517       that can handle it, count the freshly dirty ones and not the ones
5518       that are so dirty they won't be able to handle it.
5519     - Recover better from TCP connections to Tor servers that are
5520       broken but don't tell you (it happens!); and rotate TLS
5521       connections once a week.
5522     - When we're expiring old circuits, we had a logic error that caused
5523       us to close new rendezvous circuits rather than old ones.
5524     - Fix a scary-looking but apparently harmless bug where circuits
5525       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
5526       servers, and never switch to state CIRCUIT_STATE_OPEN.
5527     - When building with -static or on Solaris, we sometimes needed to
5528       build with -ldl.
5529     - Give a useful message when people run Tor as the wrong user,
5530       rather than telling them to start chowning random directories.
5531     - We were failing to inform the controller about new .onion streams.
5533   o Security bugfixes on 0.1.0.x:
5534     - Refuse server descriptors if the fingerprint line doesn't match
5535       the included identity key. Tor doesn't care, but other apps (and
5536       humans) might actually be trusting the fingerprint line.
5537     - We used to kill the circuit when we receive a relay command we
5538       don't recognize. Now we just drop it.
5539     - Start obeying our firewall options more rigorously:
5540       . If we can't get to a dirserver directly, try going via Tor.
5541       . Don't ever try to connect (as a client) to a place our
5542         firewall options forbid.
5543       . If we specify a proxy and also firewall options, obey the
5544         firewall options even when we're using the proxy: some proxies
5545         can only proxy to certain destinations.
5546     - Fix a bug found by Lasse Overlier: when we were making internal
5547       circuits (intended to be cannibalized later for rendezvous and
5548       introduction circuits), we were picking them so that they had
5549       useful exit nodes. There was no need for this, and it actually
5550       aids some statistical attacks.
5551     - Start treating internal circuits and exit circuits separately.
5552       It's important to keep them separate because internal circuits
5553       have their last hops picked like middle hops, rather than like
5554       exit hops. So exiting on them will break the user's expectations.
5556   o Bugfixes on 0.1.1.x:
5557     - Take out the mis-feature where we tried to detect IP address
5558       flapping for people with DynDNS, and chose not to upload a new
5559       server descriptor sometimes.
5560     - Try to be compatible with OpenSSL 0.9.6 again.
5561     - Log fix: when the controller is logging about .onion addresses,
5562       sometimes it didn't include the ".onion" part of the address.
5563     - Don't try to modify options->DirServers internally -- if the
5564       user didn't specify any, just add the default ones directly to
5565       the trusted dirserver list. This fixes a bug where people running
5566       controllers would use SETCONF on some totally unrelated config
5567       option, and Tor would start yelling at them about changing their
5568       DirServer lines.
5569     - Let the controller's redirectstream command specify a port, in
5570       case the controller wants to change that too.
5571     - When we requested a pile of server descriptors, we sometimes
5572       accidentally launched a duplicate request for the first one.
5573     - Bugfix for trackhostexits: write down the fingerprint of the
5574       chosen exit, not its nickname, because the chosen exit might not
5575       be verified.
5576     - When parsing foo.exit, if foo is unknown, and we are leaving
5577       circuits unattached, set the chosen_exit field and leave the
5578       address empty. This matters because controllers got confused
5579       otherwise.
5580     - Directory authorities no longer try to download server
5581       descriptors that they know they will reject.
5583   o Features and updates:
5584     - Replace balanced trees with hash tables: this should make stuff
5585       significantly faster.
5586     - Resume using the AES counter-mode implementation that we ship,
5587       rather than OpenSSL's. Ours is significantly faster.
5588     - Many other CPU and memory improvements.
5589     - Add a new config option FastFirstHopPK (on by default) so clients
5590       do a trivial crypto handshake for their first hop, since TLS has
5591       already taken care of confidentiality and authentication.
5592     - Add a new config option TestSocks so people can see if their
5593       applications are using socks4, socks4a, socks5-with-ip, or
5594       socks5-with-hostname. This way they don't have to keep mucking
5595       with tcpdump and wondering if something got cached somewhere.
5596     - Warn when listening on a public address for socks. I suspect a
5597       lot of people are setting themselves up as open socks proxies,
5598       and they have no idea that jerks on the Internet are using them,
5599       since they simply proxy the traffic into the Tor network.
5600     - Add "private:*" as an alias in configuration for policies. Now
5601       you can simplify your exit policy rather than needing to list
5602       every single internal or nonroutable network space.
5603     - Add a new controller event type that allows controllers to get
5604       all server descriptors that were uploaded to a router in its role
5605       as authoritative dirserver.
5606     - Start shipping socks-extensions.txt, tor-doc-unix.html,
5607       tor-doc-server.html, and stylesheet.css in the tarball.
5608     - Stop shipping tor-doc.html in the tarball.
5611 Changes in version 0.1.1.9-alpha - 2005-11-15
5612   o Usability improvements:
5613     - Start calling it FooListenAddress rather than FooBindAddress,
5614       since few of our users know what it means to bind an address
5615       or port.
5616     - Reduce clutter in server logs. We're going to try to make
5617       them actually usable now. New config option ProtocolWarnings that
5618       lets you hear about how _other Tors_ are breaking the protocol. Off
5619       by default.
5620     - Divide log messages into logging domains. Once we put some sort
5621       of interface on this, it will let people looking at more verbose
5622       log levels specify the topics they want to hear more about.
5623     - Make directory servers return better http 404 error messages
5624       instead of a generic "Servers unavailable".
5625     - Check for even more Windows version flags when writing the platform
5626       string in server descriptors, and note any we don't recognize.
5627     - Clean up more of the OpenSSL memory when exiting, so we can detect
5628       memory leaks better.
5629     - Make directory authorities be non-versioning, non-naming by
5630       default. Now we can add new directory servers without requiring
5631       their operators to pay close attention.
5632     - When logging via syslog, include the pid whenever we provide
5633       a log entry. Suggested by Todd Fries.
5635   o Performance improvements:
5636     - Directory servers now silently throw away new descriptors that
5637       haven't changed much if the timestamps are similar. We do this to
5638       tolerate older Tor servers that upload a new descriptor every 15
5639       minutes. (It seemed like a good idea at the time.)
5640     - Inline bottleneck smartlist functions; use fast versions by default.
5641     - Add a "Map from digest to void*" abstraction digestmap_t so we
5642       can do less hex encoding/decoding. Use it in router_get_by_digest()
5643       to resolve a performance bottleneck.
5644     - Allow tor_gzip_uncompress to extract as much as possible from
5645       truncated compressed data. Try to extract as many
5646       descriptors as possible from truncated http responses (when
5647       DIR_PURPOSE_FETCH_ROUTERDESC).
5648     - Make circ->onionskin a pointer, not a static array. moria2 was using
5649       125000 circuit_t's after it had been up for a few weeks, which
5650       translates to 20+ megs of wasted space.
5651     - The private half of our EDH handshake keys are now chosen out
5652       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
5654   o Security improvements:
5655     - Start making directory caches retain old routerinfos, so soon
5656       clients can start asking by digest of descriptor rather than by
5657       fingerprint of server.
5658     - Add half our entropy from RAND_poll in OpenSSL.  This knows how
5659       to use egd (if present), openbsd weirdness (if present), vms/os2
5660       weirdness (if we ever port there), and more in the future.
5662   o Bugfixes on 0.1.0.x:
5663     - Do round-robin writes of at most 16 kB per write. This might be
5664       more fair on loaded Tor servers, and it might resolve our Windows
5665       crash bug. It might also slow things down.
5666     - Our TLS handshakes were generating a single public/private
5667       keypair for the TLS context, rather than making a new one for
5668       each new connections. Oops. (But we were still rotating them
5669       periodically, so it's not so bad.)
5670     - When we were cannibalizing a circuit with a particular exit
5671       node in mind, we weren't checking to see if that exit node was
5672       already present earlier in the circuit. Oops.
5673     - When a Tor server's IP changes (e.g. from a dyndns address),
5674       upload a new descriptor so clients will learn too.
5675     - Really busy servers were keeping enough circuits open on stable
5676       connections that they were wrapping around the circuit_id
5677       space. (It's only two bytes.) This exposed a bug where we would
5678       feel free to reuse a circuit_id even if it still exists but has
5679       been marked for close. Try to fix this bug. Some bug remains.
5680     - If we would close a stream early (e.g. it asks for a .exit that
5681       we know would refuse it) but the LeaveStreamsUnattached config
5682       option is set by the controller, then don't close it.
5684   o Bugfixes on 0.1.1.8-alpha:
5685     - Fix a big pile of memory leaks, some of them serious.
5686     - Do not try to download a routerdesc if we would immediately reject
5687       it as obsolete.
5688     - Resume inserting a newline between all router descriptors when
5689       generating (old style) signed directories, since our spec says
5690       we do.
5691     - When providing content-type application/octet-stream for
5692       server descriptors using .z, we were leaving out the
5693       content-encoding header. Oops. (Everything tolerated this just
5694       fine, but that doesn't mean we need to be part of the problem.)
5695     - Fix a potential seg fault in getconf and getinfo using version 1
5696       of the controller protocol.
5697     - Avoid crash: do not check whether DirPort is reachable when we
5698       are suppressing it because of hibernation.
5699     - Make --hash-password not crash on exit.
5702 Changes in version 0.1.1.8-alpha - 2005-10-07
5703   o New features (major):
5704     - Clients don't download or use the directory anymore. Now they
5705       download and use network-statuses from the trusted dirservers,
5706       and fetch individual server descriptors as needed from mirrors.
5707       See dir-spec.txt for all the gory details.
5708     - Be more conservative about whether to advertise our DirPort.
5709       The main change is to not advertise if we're running at capacity
5710       and either a) we could hibernate or b) our capacity is low and
5711       we're using a default DirPort.
5712     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
5714   o New features (minor):
5715     - Try to be smart about when to retry network-status and
5716       server-descriptor fetches. Still needs some tuning.
5717     - Stop parsing, storing, or using running-routers output (but
5718       mirrors still cache and serve it).
5719     - Consider a threshold of versioning dirservers (dirservers who have
5720       an opinion about which Tor versions are still recommended) before
5721       deciding whether to warn the user that he's obsolete.
5722     - Dirservers can now reject/invalidate by key and IP, with the
5723       config options "AuthDirInvalid" and "AuthDirReject". This is
5724       useful since currently we automatically list servers as running
5725       and usable even if we know they're jerks.
5726     - Provide dire warnings to any users who set DirServer; move it out
5727       of torrc.sample and into torrc.complete.
5728     - Add MyFamily to torrc.sample in the server section.
5729     - Add nicknames to the DirServer line, so we can refer to them
5730       without requiring all our users to memorize their IP addresses.
5731     - When we get an EOF or a timeout on a directory connection, note
5732       how many bytes of serverdesc we are dropping. This will help
5733       us determine whether it is smart to parse incomplete serverdesc
5734       responses.
5735     - Add a new function to "change pseudonyms" -- that is, to stop
5736       using any currently-dirty circuits for new streams, so we don't
5737       link new actions to old actions. Currently it's only called on
5738       HUP (or SIGNAL RELOAD).
5739     - On sighup, if UseHelperNodes changed to 1, use new circuits.
5740     - Start using RAND_bytes rather than RAND_pseudo_bytes from
5741       OpenSSL. Also, reseed our entropy every hour, not just at
5742       startup. And entropy in 512-bit chunks, not 160-bit chunks.
5744   o Fixes on 0.1.1.7-alpha:
5745     - Nobody ever implemented EVENT_ADDRMAP for control protocol
5746       version 0, so don't let version 0 controllers ask for it.
5747     - If you requested something with too many newlines via the
5748       v1 controller protocol, you could crash tor.
5749     - Fix a number of memory leaks, including some pretty serious ones.
5750     - Re-enable DirPort testing again, so Tor servers will be willing
5751       to advertise their DirPort if it's reachable.
5752     - On TLS handshake, only check the other router's nickname against
5753       its expected nickname if is_named is set.
5755   o Fixes forward-ported from 0.1.0.15:
5756     - Don't crash when we don't have any spare file descriptors and we
5757       try to spawn a dns or cpu worker.
5758     - Make the numbers in read-history and write-history into uint64s,
5759       so they don't overflow and publish negatives in the descriptor.
5761   o Fixes on 0.1.0.x:
5762     - For the OS X package's modified privoxy config file, comment
5763       out the "logfile" line so we don't log everything passed
5764       through privoxy.
5765     - We were whining about using socks4 or socks5-with-local-lookup
5766       even when it's an IP in the "virtual" range we designed exactly
5767       for this case.
5768     - We were leaking some memory every time the client changes IPs.
5769     - Never call free() on tor_malloc()d memory. This will help us
5770       use dmalloc to detect memory leaks.
5771     - Check for named servers when looking them up by nickname;
5772       warn when we'recalling a non-named server by its nickname;
5773       don't warn twice about the same name.
5774     - Try to list MyFamily elements by key, not by nickname, and warn
5775       if we've not heard of the server.
5776     - Make windows platform detection (uname equivalent) smarter.
5777     - It turns out sparc64 doesn't like unaligned access either.
5780 Changes in version 0.1.0.15 - 2005-09-23
5781   o Bugfixes on 0.1.0.x:
5782     - Reject ports 465 and 587 (spam targets) in default exit policy.
5783     - Don't crash when we don't have any spare file descriptors and we
5784       try to spawn a dns or cpu worker.
5785     - Get rid of IgnoreVersion undocumented config option, and make us
5786       only warn, never exit, when we're running an obsolete version.
5787     - Don't try to print a null string when your server finds itself to
5788       be unreachable and the Address config option is empty.
5789     - Make the numbers in read-history and write-history into uint64s,
5790       so they don't overflow and publish negatives in the descriptor.
5791     - Fix a minor memory leak in smartlist_string_remove().
5792     - We were only allowing ourselves to upload a server descriptor at
5793       most every 20 minutes, even if it changed earlier than that.
5794     - Clean up log entries that pointed to old URLs.
5797 Changes in version 0.1.1.7-alpha - 2005-09-14
5798   o Fixes on 0.1.1.6-alpha:
5799     - Exit servers were crashing when people asked them to make a
5800       connection to an address not in their exit policy.
5801     - Looking up a non-existent stream for a v1 control connection would
5802       cause a segfault.
5803     - Fix a seg fault if we ask a dirserver for a descriptor by
5804       fingerprint but he doesn't know about him.
5805     - SETCONF was appending items to linelists, not clearing them.
5806     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
5807       out and refuse the setconf if it would fail.
5808     - Downgrade the dirserver log messages when whining about
5809       unreachability.
5811   o New features:
5812     - Add Peter Palfrader's check-tor script to tor/contrib/
5813       It lets you easily check whether a given server (referenced by
5814       nickname) is reachable by you.
5815     - Numerous changes to move towards client-side v2 directories. Not
5816       enabled yet.
5818   o Fixes on 0.1.0.x:
5819     - If the user gave tor an odd number of command-line arguments,
5820       we were silently ignoring the last one. Now we complain and fail.
5821       [This wins the oldest-bug prize -- this bug has been present since
5822        November 2002, as released in Tor 0.0.0.]
5823     - Do not use unaligned memory access on alpha, mips, or mipsel.
5824       It *works*, but is very slow, so we treat them as if it doesn't.
5825     - Retry directory requests if we fail to get an answer we like
5826       from a given dirserver (we were retrying before, but only if
5827       we fail to connect).
5828     - When writing the RecommendedVersions line, sort them first.
5829     - When the client asked for a rendezvous port that the hidden
5830       service didn't want to provide, we were sending an IP address
5831       back along with the end cell. Fortunately, it was zero. But stop
5832       that anyway.
5833     - Correct "your server is reachable" log entries to indicate that
5834       it was self-testing that told us so.
5837 Changes in version 0.1.1.6-alpha - 2005-09-09
5838   o Fixes on 0.1.1.5-alpha:
5839     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
5840     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
5841     - Fix bug with tor_memmem finding a match at the end of the string.
5842     - Make unit tests run without segfaulting.
5843     - Resolve some solaris x86 compile warnings.
5844     - Handle duplicate lines in approved-routers files without warning.
5845     - Fix bug where as soon as a server refused any requests due to his
5846       exit policy (e.g. when we ask for localhost and he tells us that's
5847       127.0.0.1 and he won't do it), we decided he wasn't obeying his
5848       exit policy using him for any exits.
5849     - Only do openssl hardware accelerator stuff if openssl version is
5850       at least 0.9.7.
5852   o New controller features/fixes:
5853     - Add a "RESETCONF" command so you can set config options like
5854       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
5855       a config option in the torrc with no value, then it clears it
5856       entirely (rather than setting it to its default).
5857     - Add a "GETINFO config-file" to tell us where torrc is.
5858     - Avoid sending blank lines when GETINFO replies should be empty.
5859     - Add a QUIT command for the controller (for using it manually).
5860     - Fix a bug in SAVECONF that was adding default dirservers and
5861       other redundant entries to the torrc file.
5863   o Start on the new directory design:
5864     - Generate, publish, cache, serve new network-status format.
5865     - Publish individual descriptors (by fingerprint, by "all", and by
5866       "tell me yours").
5867     - Publish client and server recommended versions separately.
5868     - Allow tor_gzip_uncompress() to handle multiple concatenated
5869       compressed strings. Serve compressed groups of router
5870       descriptors. The compression logic here could be more
5871       memory-efficient.
5872     - Distinguish v1 authorities (all currently trusted directories)
5873       from v2 authorities (all trusted directories).
5874     - Change DirServers config line to note which dirs are v1 authorities.
5875     - Add configuration option "V1AuthoritativeDirectory 1" which
5876       moria1, moria2, and tor26 should set.
5877     - Remove option when getting directory cache to see whether they
5878       support running-routers; they all do now. Replace it with one
5879       to see whether caches support v2 stuff.
5881   o New features:
5882     - Dirservers now do their own external reachability testing of each
5883       Tor server, and only list them as running if they've been found to
5884       be reachable. We also send back warnings to the server's logs if
5885       it uploads a descriptor that we already believe is unreachable.
5886     - Implement exit enclaves: if we know an IP address for the
5887       destination, and there's a running Tor server at that address
5888       which allows exit to the destination, then extend the circuit to
5889       that exit first. This provides end-to-end encryption and end-to-end
5890       authentication. Also, if the user wants a .exit address or enclave,
5891       use 4 hops rather than 3, and cannibalize a general circ for it
5892       if you can.
5893     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
5894       controller. Also, rotate dns and cpu workers if the controller
5895       changes options that will affect them; and initialize the dns
5896       worker cache tree whether or not we start out as a server.
5897     - Only upload a new server descriptor when options change, 18
5898       hours have passed, uptime is reset, or bandwidth changes a lot.
5899     - Check [X-]Forwarded-For headers in HTTP requests when generating
5900       log messages. This lets people run dirservers (and caches) behind
5901       Apache but still know which IP addresses are causing warnings.
5903   o Config option changes:
5904     - Replace (Fascist)Firewall* config options with a new
5905       ReachableAddresses option that understands address policies.
5906       For example, "ReachableAddresses *:80,*:443"
5907     - Get rid of IgnoreVersion undocumented config option, and make us
5908       only warn, never exit, when we're running an obsolete version.
5909     - Make MonthlyAccountingStart config option truly obsolete now.
5911   o Fixes on 0.1.0.x:
5912     - Reject ports 465 and 587 in the default exit policy, since
5913       people have started using them for spam too.
5914     - It turns out we couldn't bootstrap a network since we added
5915       reachability detection in 0.1.0.1-rc. Good thing the Tor network
5916       has never gone down. Add an AssumeReachable config option to let
5917       servers and dirservers bootstrap. When we're trying to build a
5918       high-uptime or high-bandwidth circuit but there aren't enough
5919       suitable servers, try being less picky rather than simply failing.
5920     - Our logic to decide if the OR we connected to was the right guy
5921       was brittle and maybe open to a mitm for unverified routers.
5922     - We weren't cannibalizing circuits correctly for
5923       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
5924       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
5925       build those from scratch. This should make hidden services faster.
5926     - Predict required circuits better, with an eye toward making hidden
5927       services faster on the service end.
5928     - Retry streams if the exit node sends back a 'misc' failure. This
5929       should result in fewer random failures. Also, after failing
5930       from resolve failed or misc, reset the num failures, so we give
5931       it a fair shake next time we try.
5932     - Clean up the rendezvous warn log msgs, and downgrade some to info.
5933     - Reduce severity on logs about dns worker spawning and culling.
5934     - When we're shutting down and we do something like try to post a
5935       server descriptor or rendezvous descriptor, don't complain that
5936       we seem to be unreachable. Of course we are, we're shutting down.
5937     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
5938       We don't use them yet, but maybe one day our DNS resolver will be
5939       able to discover them.
5940     - Make ContactInfo mandatory for authoritative directory servers.
5941     - Require server descriptors to list IPv4 addresses -- hostnames
5942       are no longer allowed. This also fixes some potential security
5943       problems with people providing hostnames as their address and then
5944       preferentially resolving them to partition users.
5945     - Change log line for unreachability to explicitly suggest /etc/hosts
5946       as the culprit. Also make it clearer what IP address and ports we're
5947       testing for reachability.
5948     - Put quotes around user-supplied strings when logging so users are
5949       more likely to realize if they add bad characters (like quotes)
5950       to the torrc.
5951     - Let auth dir servers start without specifying an Address config
5952       option.
5953     - Make unit tests (and other invocations that aren't the real Tor)
5954       run without launching listeners, creating subdirectories, and so on.
5957 Changes in version 0.1.1.5-alpha - 2005-08-08
5958   o Bugfixes included in 0.1.0.14.
5960   o Bugfixes on 0.1.0.x:
5961     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
5962       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
5963       it would silently using ignore the 6668.
5966 Changes in version 0.1.0.14 - 2005-08-08
5967   o Bugfixes on 0.1.0.x:
5968       - Fix the other half of the bug with crypto handshakes
5969         (CVE-2005-2643).
5970       - Fix an assert trigger if you send a 'signal term' via the
5971         controller when it's listening for 'event info' messages.
5974 Changes in version 0.1.1.4-alpha - 2005-08-04
5975   o Bugfixes included in 0.1.0.13.
5977   o Features:
5978     - Improve tor_gettimeofday() granularity on windows.
5979     - Make clients regenerate their keys when their IP address changes.
5980     - Implement some more GETINFO goodness: expose helper nodes, config
5981       options, getinfo keys.
5984 Changes in version 0.1.0.13 - 2005-08-04
5985   o Bugfixes on 0.1.0.x:
5986     - Fix a critical bug in the security of our crypto handshakes.
5987     - Fix a size_t underflow in smartlist_join_strings2() that made
5988       it do bad things when you hand it an empty smartlist.
5989     - Fix Windows installer to ship Tor license (thanks to Aphex for
5990       pointing out this oversight) and put a link to the doc directory
5991       in the start menu.
5992     - Explicitly set no-unaligned-access for sparc: it turns out the
5993       new gcc's let you compile broken code, but that doesn't make it
5994       not-broken.
5997 Changes in version 0.1.1.3-alpha - 2005-07-23
5998   o Bugfixes on 0.1.1.2-alpha:
5999     - Fix a bug in handling the controller's "post descriptor"
6000       function.
6001     - Fix several bugs in handling the controller's "extend circuit"
6002       function.
6003     - Fix a bug in handling the controller's "stream status" event.
6004     - Fix an assert failure if we have a controller listening for
6005       circuit events and we go offline.
6006     - Re-allow hidden service descriptors to publish 0 intro points.
6007     - Fix a crash when generating your hidden service descriptor if
6008       you don't have enough intro points already.
6010   o New features on 0.1.1.2-alpha:
6011     - New controller function "getinfo accounting", to ask how
6012       many bytes we've used in this time period.
6013     - Experimental support for helper nodes: a lot of the risk from
6014       a small static adversary comes because users pick new random
6015       nodes every time they rebuild a circuit. Now users will try to
6016       stick to the same small set of entry nodes if they can. Not
6017       enabled by default yet.
6019   o Bugfixes on 0.1.0.12:
6020     - If you're an auth dir server, always publish your dirport,
6021       even if you haven't yet found yourself to be reachable.
6022     - Fix a size_t underflow in smartlist_join_strings2() that made
6023       it do bad things when you hand it an empty smartlist.
6026 Changes in version 0.1.0.12 - 2005-07-18
6027   o New directory servers:
6028       - tor26 has changed IP address.
6030   o Bugfixes on 0.1.0.x:
6031     - Fix a possible double-free in tor_gzip_uncompress().
6032     - When --disable-threads is set, do not search for or link against
6033       pthreads libraries.
6034     - Don't trigger an assert if an authoritative directory server
6035       claims its dirport is 0.
6036     - Fix bug with removing Tor as an NT service: some people were
6037       getting "The service did not return an error." Thanks to Matt
6038       Edman for the fix.
6041 Changes in version 0.1.1.2-alpha - 2005-07-15
6042   o New directory servers:
6043     - tor26 has changed IP address.
6045   o Bugfixes on 0.1.0.x, crashes/leaks:
6046     - Port the servers-not-obeying-their-exit-policies fix from
6047       0.1.0.11.
6048     - Fix an fd leak in start_daemon().
6049     - On Windows, you can't always reopen a port right after you've
6050       closed it. So change retry_listeners() to only close and re-open
6051       ports that have changed.
6052     - Fix a possible double-free in tor_gzip_uncompress().
6054   o Bugfixes on 0.1.0.x, usability:
6055     - When tor_socketpair() fails in Windows, give a reasonable
6056       Windows-style errno back.
6057     - Let people type "tor --install" as well as "tor -install" when
6058       they
6059       want to make it an NT service.
6060     - NT service patch from Matt Edman to improve error messages.
6061     - When the controller asks for a config option with an abbreviated
6062       name, give the full name in our response.
6063     - Correct the man page entry on TrackHostExitsExpire.
6064     - Looks like we were never delivering deflated (i.e. compressed)
6065       running-routers lists, even when asked. Oops.
6066     - When --disable-threads is set, do not search for or link against
6067       pthreads libraries.
6069   o Bugfixes on 0.1.1.x:
6070     - Fix a seg fault with autodetecting which controller version is
6071       being used.
6073   o Features:
6074     - New hidden service descriptor format: put a version in it, and
6075       let people specify introduction/rendezvous points that aren't
6076       in "the directory" (which is subjective anyway).
6077     - Allow the DEBUG controller event to work again. Mark certain log
6078       entries as "don't tell this to controllers", so we avoid cycles.
6081 Changes in version 0.1.0.11 - 2005-06-30
6082   o Bugfixes on 0.1.0.x:
6083     - Fix major security bug: servers were disregarding their
6084       exit policies if clients behaved unexpectedly.
6085     - Make OS X init script check for missing argument, so we don't
6086       confuse users who invoke it incorrectly.
6087     - Fix a seg fault in "tor --hash-password foo".
6088     - The MAPADDRESS control command was broken.
6091 Changes in version 0.1.1.1-alpha - 2005-06-29
6092   o Bugfixes:
6093     - Make OS X init script check for missing argument, so we don't
6094       confuse users who invoke it incorrectly.
6095     - Fix a seg fault in "tor --hash-password foo".
6096     - Fix a possible way to DoS dirservers.
6097     - When we complain that your exit policy implicitly allows local or
6098       private address spaces, name them explicitly so operators can
6099       fix it.
6100     - Make the log message less scary when all the dirservers are
6101       temporarily unreachable.
6102     - We were printing the number of idle dns workers incorrectly when
6103       culling them.
6105   o Features:
6106     - Revised controller protocol (version 1) that uses ascii rather
6107       than binary. Add supporting libraries in python and java so you
6108       can use the controller from your applications without caring how
6109       our protocol works.
6110     - Spiffy new support for crypto hardware accelerators. Can somebody
6111       test this?
6114 Changes in version 0.0.9.10 - 2005-06-16
6115   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
6116     - Refuse relay cells that claim to have a length larger than the
6117       maximum allowed. This prevents a potential attack that could read
6118       arbitrary memory (e.g. keys) from an exit server's process
6119       (CVE-2005-2050).
6122 Changes in version 0.1.0.10 - 2005-06-14
6123   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
6124     libevent before 1.1a.
6127 Changes in version 0.1.0.9-rc - 2005-06-09
6128   o Bugfixes:
6129     - Reset buf->highwater every time buf_shrink() is called, not just on
6130       a successful shrink. This was causing significant memory bloat.
6131     - Fix buffer overflow when checking hashed passwords.
6132     - Security fix: if seeding the RNG on Win32 fails, quit.
6133     - Allow seeding the RNG on Win32 even when you're not running as
6134       Administrator.
6135     - Disable threading on Solaris too. Something is wonky with it,
6136       cpuworkers, and reentrant libs.
6137     - Reenable the part of the code that tries to flush as soon as an
6138       OR outbuf has a full TLS record available. Perhaps this will make
6139       OR outbufs not grow as huge except in rare cases, thus saving lots
6140       of CPU time plus memory.
6141     - Reject malformed .onion addresses rather then passing them on as
6142       normal web requests.
6143     - Adapt patch from Adam Langley: fix possible memory leak in
6144       tor_lookup_hostname().
6145     - Initialize libevent later in the startup process, so the logs are
6146       already established by the time we start logging libevent warns.
6147     - Use correct errno on win32 if libevent fails.
6148     - Check and warn about known-bad/slow libevent versions.
6149     - Pay more attention to the ClientOnly config option.
6150     - Have torctl.in/tor.sh.in check for location of su binary (needed
6151       on FreeBSD)
6152     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
6153       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
6154       HttpProxyAuthenticator
6155     - Stop warning about sigpipes in the logs. We're going to
6156       pretend that getting these occassionally is normal and fine.
6157     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
6158       certain
6159       installer screens; and don't put stuff into StartupItems unless
6160       the user asks you to.
6161     - Require servers that use the default dirservers to have public IP
6162       addresses. We have too many servers that are configured with private
6163       IPs and their admins never notice the log entries complaining that
6164       their descriptors are being rejected.
6165     - Add OSX uninstall instructions. An actual uninstall script will
6166       come later.
6169 Changes in version 0.1.0.8-rc - 2005-05-23
6170   o Bugfixes:
6171     - It turns out that kqueue on OS X 10.3.9 was causing kernel
6172       panics. Disable kqueue on all OS X Tors.
6173     - Fix RPM: remove duplicate line accidentally added to the rpm
6174       spec file.
6175     - Disable threads on openbsd too, since its gethostaddr is not
6176       reentrant either.
6177     - Tolerate libevent 0.8 since it still works, even though it's
6178       ancient.
6179     - Enable building on Red Hat 9.0 again.
6180     - Allow the middle hop of the testing circuit to be running any
6181       version, now that most of them have the bugfix to let them connect
6182       to unknown servers. This will allow reachability testing to work
6183       even when 0.0.9.7-0.0.9.9 become obsolete.
6184     - Handle relay cells with rh.length too large. This prevents
6185       a potential attack that could read arbitrary memory (maybe even
6186       keys) from the exit server's process.
6187     - We screwed up the dirport reachability testing when we don't yet
6188       have a cached version of the directory. Hopefully now fixed.
6189     - Clean up router_load_single_router() (used by the controller),
6190       so it doesn't seg fault on error.
6191     - Fix a minor memory leak when somebody establishes an introduction
6192       point at your Tor server.
6193     - If a socks connection ends because read fails, don't warn that
6194       you're not sending a socks reply back.
6196   o Features:
6197     - Add HttpProxyAuthenticator config option too, that works like
6198       the HttpsProxyAuthenticator config option.
6199     - Encode hashed controller passwords in hex instead of base64,
6200       to make it easier to write controllers.
6203 Changes in version 0.1.0.7-rc - 2005-05-17
6204   o Bugfixes:
6205     - Fix a bug in the OS X package installer that prevented it from
6206       installing on Tiger.
6207     - Fix a script bug in the OS X package installer that made it
6208       complain during installation.
6209     - Find libevent even if it's hiding in /usr/local/ and your
6210       CFLAGS and LDFLAGS don't tell you to look there.
6211     - Be able to link with libevent as a shared library (the default
6212       after 1.0d), even if it's hiding in /usr/local/lib and even
6213       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
6214       assuming you're running gcc. Otherwise fail and give a useful
6215       error message.
6216     - Fix a bug in the RPM packager: set home directory for _tor to
6217       something more reasonable when first installing.
6218     - Free a minor amount of memory that is still reachable on exit.
6221 Changes in version 0.1.0.6-rc - 2005-05-14
6222   o Bugfixes:
6223     - Implement --disable-threads configure option. Disable threads on
6224       netbsd by default, because it appears to have no reentrant resolver
6225       functions.
6226     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
6227       release (1.1) detects and disables kqueue if it's broken.
6228     - Append default exit policy before checking for implicit internal
6229       addresses. Now we don't log a bunch of complaints on startup
6230       when using the default exit policy.
6231     - Some people were putting "Address  " in their torrc, and they had
6232       a buggy resolver that resolved " " to 0.0.0.0. Oops.
6233     - If DataDir is ~/.tor, and that expands to /.tor, then default to
6234       LOCALSTATEDIR/tor instead.
6235     - Fix fragmented-message bug in TorControl.py.
6236     - Resolve a minor bug which would prevent unreachable dirports
6237       from getting suppressed in the published descriptor.
6238     - When the controller gave us a new descriptor, we weren't resolving
6239       it immediately, so Tor would think its address was 0.0.0.0 until
6240       we fetched a new directory.
6241     - Fix an uppercase/lowercase case error in suppressing a bogus
6242       libevent warning on some Linuxes.
6244   o Features:
6245     - Begin scrubbing sensitive strings from logs by default. Turn off
6246       the config option SafeLogging if you need to do debugging.
6247     - Switch to a new buffer management algorithm, which tries to avoid
6248       reallocing and copying quite as much. In first tests it looks like
6249       it uses *more* memory on average, but less cpu.
6250     - First cut at support for "create-fast" cells. Clients can use
6251       these when extending to their first hop, since the TLS already
6252       provides forward secrecy and authentication. Not enabled on
6253       clients yet.
6254     - When dirservers refuse a router descriptor, we now log its
6255       contactinfo, platform, and the poster's IP address.
6256     - Call tor_free_all instead of connections_free_all after forking, to
6257       save memory on systems that need to fork.
6258     - Whine at you if you're a server and you don't set your contactinfo.
6259     - Implement --verify-config command-line option to check if your torrc
6260       is valid without actually launching Tor.
6261     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
6262       rather than just rejecting it.
6265 Changes in version 0.1.0.5-rc - 2005-04-27
6266   o Bugfixes:
6267     - Stop trying to print a null pointer if an OR conn fails because
6268       we didn't like its cert.
6269   o Features:
6270     - Switch our internal buffers implementation to use a ring buffer,
6271       to hopefully improve performance for fast servers a lot.
6272     - Add HttpsProxyAuthenticator support (basic auth only), based
6273       on patch from Adam Langley.
6274     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
6275       the fast servers that have been joining lately.
6276     - Give hidden service accesses extra time on the first attempt,
6277       since 60 seconds is often only barely enough. This might improve
6278       robustness more.
6279     - Improve performance for dirservers: stop re-parsing the whole
6280       directory every time you regenerate it.
6281     - Add more debugging info to help us find the weird dns freebsd
6282       pthreads bug; cleaner debug messages to help track future issues.
6285 Changes in version 0.0.9.9 - 2005-04-23
6286   o Bugfixes on 0.0.9.x:
6287     - If unofficial Tor clients connect and send weird TLS certs, our
6288       Tor server triggers an assert. This release contains a minimal
6289       backport from the broader fix that we put into 0.1.0.4-rc.
6292 Changes in version 0.1.0.4-rc - 2005-04-23
6293   o Bugfixes:
6294     - If unofficial Tor clients connect and send weird TLS certs, our
6295       Tor server triggers an assert. Stop asserting, and start handling
6296       TLS errors better in other situations too.
6297     - When the controller asks us to tell it about all the debug-level
6298       logs, it turns out we were generating debug-level logs while
6299       telling it about them, which turns into a bad loop. Now keep
6300       track of whether you're sending a debug log to the controller,
6301       and don't log when you are.
6302     - Fix the "postdescriptor" feature of the controller interface: on
6303       non-complete success, only say "done" once.
6304   o Features:
6305     - Clients are now willing to load balance over up to 2mB, not 1mB,
6306       of advertised bandwidth capacity.
6307     - Add a NoPublish config option, so you can be a server (e.g. for
6308       testing running Tor servers in other Tor networks) without
6309       publishing your descriptor to the primary dirservers.
6312 Changes in version 0.1.0.3-rc - 2005-04-08
6313   o Improvements on 0.1.0.2-rc:
6314     - Client now retries when streams end early for 'hibernating' or
6315       'resource limit' reasons, rather than failing them.
6316     - More automated handling for dirserver operators:
6317       - Automatically approve nodes running 0.1.0.2-rc or later,
6318         now that the the reachability detection stuff is working.
6319       - Now we allow two unverified servers with the same nickname
6320         but different keys. But if a nickname is verified, only that
6321         nickname+key are allowed.
6322       - If you're an authdirserver connecting to an address:port,
6323         and it's not the OR you were expecting, forget about that
6324         descriptor. If he *was* the one you were expecting, then forget
6325         about all other descriptors for that address:port.
6326       - Allow servers to publish descriptors from 12 hours in the future.
6327         Corollary: only whine about clock skew from the dirserver if
6328         he's a trusted dirserver (since now even verified servers could
6329         have quite wrong clocks).
6330     - Adjust maximum skew and age for rendezvous descriptors: let skew
6331       be 48 hours rather than 90 minutes.
6332     - Efficiency improvements:
6333       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
6334         it much faster to look up a circuit for each relay cell.
6335       - Remove most calls to assert_all_pending_dns_resolves_ok(),
6336         since they're eating our cpu on exit nodes.
6337       - Stop wasting time doing a case insensitive comparison for every
6338         dns name every time we do any lookup. Canonicalize the names to
6339         lowercase and be done with it.
6340     - Start sending 'truncated' cells back rather than destroy cells,
6341       if the circuit closes in front of you. This means we won't have
6342       to abandon partially built circuits.
6343     - Only warn once per nickname from add_nickname_list_to_smartlist
6344       per failure, so an entrynode or exitnode choice that's down won't
6345       yell so much.
6346     - Put a note in the torrc about abuse potential with the default
6347       exit policy.
6348     - Revise control spec and implementation to allow all log messages to
6349       be sent to controller with their severities intact (suggested by
6350       Matt Edman). Update TorControl to handle new log event types.
6351     - Provide better explanation messages when controller's POSTDESCRIPTOR
6352       fails.
6353     - Stop putting nodename in the Platform string in server descriptors.
6354       It doesn't actually help, and it is confusing/upsetting some people.
6356   o Bugfixes on 0.1.0.2-rc:
6357     - We were printing the host mask wrong in exit policies in server
6358       descriptors. This isn't a critical bug though, since we were still
6359       obeying the exit policy internally.
6360     - Fix Tor when compiled with libevent but without pthreads: move
6361       connection_unregister() from _connection_free() to
6362       connection_free().
6363     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
6364       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
6365       when we look through the connection array, we'll find any of the
6366       cpu/dnsworkers. This is no good.
6368   o Bugfixes on 0.0.9.8:
6369     - Fix possible bug on threading platforms (e.g. win32) which was
6370       leaking a file descriptor whenever a cpuworker or dnsworker died.
6371     - When using preferred entry or exit nodes, ignore whether the
6372       circuit wants uptime or capacity. They asked for the nodes, they
6373       get the nodes.
6374     - chdir() to your datadirectory at the *end* of the daemonize process,
6375       not the beginning. This was a problem because the first time you
6376       run tor, if your datadir isn't there, and you have runasdaemon set
6377       to 1, it will try to chdir to it before it tries to create it. Oops.
6378     - Handle changed router status correctly when dirserver reloads
6379       fingerprint file. We used to be dropping all unverified descriptors
6380       right then. The bug was hidden because we would immediately
6381       fetch a directory from another dirserver, which would include the
6382       descriptors we just dropped.
6383     - When we're connecting to an OR and he's got a different nickname/key
6384       than we were expecting, only complain loudly if we're an OP or a
6385       dirserver. Complaining loudly to the OR admins just confuses them.
6386     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
6387       artificially capped at 500kB.
6390 Changes in version 0.0.9.8 - 2005-04-07
6391   o Bugfixes on 0.0.9.x:
6392     - We have a bug that I haven't found yet. Sometimes, very rarely,
6393       cpuworkers get stuck in the 'busy' state, even though the cpuworker
6394       thinks of itself as idle. This meant that no new circuits ever got
6395       established. Here's a workaround to kill any cpuworker that's been
6396       busy for more than 100 seconds.
6399 Changes in version 0.1.0.2-rc - 2005-04-01
6400   o Bugfixes on 0.1.0.1-rc:
6401     - Fixes on reachability detection:
6402       - Don't check for reachability while hibernating.
6403       - If ORPort is reachable but DirPort isn't, still publish the
6404         descriptor, but zero out DirPort until it's found reachable.
6405       - When building testing circs for ORPort testing, use only
6406         high-bandwidth nodes, so fewer circuits fail.
6407       - Complain about unreachable ORPort separately from unreachable
6408         DirPort, so the user knows what's going on.
6409       - Make sure we only conclude ORPort reachability if we didn't
6410         initiate the conn. Otherwise we could falsely conclude that
6411         we're reachable just because we connected to the guy earlier
6412         and he used that same pipe to extend to us.
6413       - Authdirservers shouldn't do ORPort reachability detection,
6414         since they're in clique mode, so it will be rare to find a
6415         server not already connected to them.
6416       - When building testing circuits, always pick middle hops running
6417         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
6418         bug. (This is a kludge; it will go away when 0.0.9.x becomes
6419         obsolete.)
6420       - When we decide we're reachable, actually publish our descriptor
6421         right then.
6422     - Fix bug in redirectstream in the controller.
6423     - Fix the state descriptor strings so logs don't claim edge streams
6424       are in a different state than they actually are.
6425     - Use recent libevent features when possible (this only really affects
6426       win32 and osx right now, because the new libevent with these
6427       features hasn't been released yet). Add code to suppress spurious
6428       libevent log msgs.
6429     - Prevent possible segfault in connection_close_unattached_ap().
6430     - Fix newlines on torrc in win32.
6431     - Improve error msgs when tor-resolve fails.
6433   o Improvements on 0.0.9.x:
6434     - New experimental script tor/contrib/ExerciseServer.py (needs more
6435       work) that uses the controller interface to build circuits and
6436       fetch pages over them. This will help us bootstrap servers that
6437       have lots of capacity but haven't noticed it yet.
6438     - New experimental script tor/contrib/PathDemo.py (needs more work)
6439       that uses the controller interface to let you choose whole paths
6440       via addresses like
6441       "<hostname>.<path,separated by dots>.<length of path>.path"
6442     - When we've connected to an OR and handshaked but didn't like
6443       the result, we were closing the conn without sending destroy
6444       cells back for pending circuits. Now send those destroys.
6447 Changes in version 0.0.9.7 - 2005-04-01
6448   o Bugfixes on 0.0.9.x:
6449     - Fix another race crash bug (thanks to Glenn Fink for reporting).
6450     - Compare identity to identity, not to nickname, when extending to
6451       a router not already in the directory. This was preventing us from
6452       extending to unknown routers. Oops.
6453     - Make sure to create OS X Tor user in <500 range, so we aren't
6454       creating actual system users.
6455     - Note where connection-that-hasn't-sent-end was marked, and fix
6456       a few really loud instances of this harmless bug (it's fixed more
6457       in 0.1.0.x).
6460 Changes in version 0.1.0.1-rc - 2005-03-28
6461   o New features:
6462     - Add reachability testing. Your Tor server will automatically try
6463       to see if its ORPort and DirPort are reachable from the outside,
6464       and it won't upload its descriptor until it decides they are.
6465     - Handle unavailable hidden services better. Handle slow or busy
6466       hidden services better.
6467     - Add support for CONNECTing through https proxies, with "HttpsProxy"
6468       config option.
6469     - New exit policy: accept most low-numbered ports, rather than
6470       rejecting most low-numbered ports.
6471     - More Tor controller support (still experimental). See
6472       http://tor.eff.org/doc/control-spec.txt for all the new features,
6473       including signals to emulate unix signals from any platform;
6474       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
6475       closestream; closecircuit; etc.
6476     - Make nt services work and start on startup on win32 (based on
6477       patch by Matt Edman).
6478     - Add a new AddressMap config directive to rewrite incoming socks
6479       addresses. This lets you, for example, declare an implicit
6480       required exit node for certain sites.
6481     - Add a new TrackHostExits config directive to trigger addressmaps
6482       for certain incoming socks addresses -- for sites that break when
6483       your exit keeps changing (based on patch by Mike Perry).
6484     - Redo the client-side dns cache so it's just an addressmap too.
6485     - Notice when our IP changes, and reset stats/uptime/reachability.
6486     - When an application is using socks5, give him the whole variety of
6487       potential socks5 responses (connect refused, host unreachable, etc),
6488       rather than just "success" or "failure".
6489     - A more sane version numbering system. See
6490       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
6491     - New contributed script "exitlist": a simple python script to
6492       parse directories and find Tor nodes that exit to listed
6493       addresses/ports.
6494     - New contributed script "privoxy-tor-toggle" to toggle whether
6495       Privoxy uses Tor. Seems to be configured for Debian by default.
6496     - Report HTTP reasons to client when getting a response from directory
6497       servers -- so you can actually know what went wrong.
6498     - New config option MaxAdvertisedBandwidth which lets you advertise
6499       a low bandwidthrate (to not attract as many circuits) while still
6500       allowing a higher bandwidthrate in reality.
6502   o Robustness/stability fixes:
6503     - Make Tor use Niels Provos's libevent instead of its current
6504       poll-but-sometimes-select mess.  This will let us use faster async
6505       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
6506       on Windows too.
6507     - pthread support now too. This was forced because when we forked,
6508       we ended up wasting a lot of duplicate ram over time. Also switch
6509       to foo_r versions of some library calls to allow reentry and
6510       threadsafeness.
6511     - Better handling for heterogeneous / unreliable nodes:
6512       - Annotate circuits w/ whether they aim to contain high uptime nodes
6513         and/or high capacity nodes. When building circuits, choose
6514         appropriate nodes.
6515       - This means that every single node in an intro rend circuit,
6516         not just the last one, will have a minimum uptime.
6517       - New config option LongLivedPorts to indicate application streams
6518         that will want high uptime circuits.
6519       - Servers reset uptime when a dir fetch entirely fails. This
6520         hopefully reflects stability of the server's network connectivity.
6521       - If somebody starts his tor server in Jan 2004 and then fixes his
6522         clock, don't make his published uptime be a year.
6523       - Reset published uptime when you wake up from hibernation.
6524     - Introduce a notion of 'internal' circs, which are chosen without
6525       regard to the exit policy of the last hop. Intro and rendezvous
6526       circs must be internal circs, to avoid leaking information. Resolve
6527       and connect streams can use internal circs if they want.
6528     - New circuit pooling algorithm: make sure to have enough circs around
6529       to satisfy any predicted ports, and also make sure to have 2 internal
6530       circs around if we've required internal circs lately (and with high
6531       uptime if we've seen that lately too).
6532     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
6533       which describes how often we retry making new circuits if current
6534       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
6535       how long we're willing to make use of an already-dirty circuit.
6536     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
6537       circ as necessary, if there are any completed ones lying around
6538       when we try to launch one.
6539     - Make hidden services try to establish a rendezvous for 30 seconds,
6540       rather than for n (where n=3) attempts to build a circuit.
6541     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
6542       "ShutdownWaitLength".
6543     - Try to be more zealous about calling connection_edge_end when
6544       things go bad with edge conns in connection.c.
6545     - Revise tor-spec to add more/better stream end reasons.
6546     - Revise all calls to connection_edge_end to avoid sending "misc",
6547       and to take errno into account where possible.
6549   o Bug fixes:
6550     - Fix a race condition that can trigger an assert, when we have a
6551       pending create cell and an OR connection fails right then.
6552     - Fix several double-mark-for-close bugs, e.g. where we were finding
6553       a conn for a cell even if that conn is already marked for close.
6554     - Make sequence of log messages when starting on win32 with no config
6555       file more reasonable.
6556     - When choosing an exit node for a new non-internal circ, don't take
6557       into account whether it'll be useful for any pending x.onion
6558       addresses -- it won't.
6559     - Turn addr_policy_compare from a tristate to a quadstate; this should
6560       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
6561       for google.com" problem.
6562     - Make "platform" string in descriptor more accurate for Win32 servers,
6563       so it's not just "unknown platform".
6564     - Fix an edge case in parsing config options (thanks weasel).
6565       If they say "--" on the commandline, it's not an option.
6566     - Reject odd-looking addresses at the client (e.g. addresses that
6567       contain a colon), rather than having the server drop them because
6568       they're malformed.
6569     - tor-resolve requests were ignoring .exit if there was a working circuit
6570       they could use instead.
6571     - REUSEADDR on normal platforms means you can rebind to the port
6572       right after somebody else has let it go. But REUSEADDR on win32
6573       means to let you bind to the port _even when somebody else
6574       already has it bound_! So, don't do that on Win32.
6575     - Change version parsing logic: a version is "obsolete" if it is not
6576       recommended and (1) there is a newer recommended version in the
6577       same series, or (2) there are no recommended versions in the same
6578       series, but there are some recommended versions in a newer series.
6579       A version is "new" if it is newer than any recommended version in
6580       the same series.
6581     - Stop most cases of hanging up on a socks connection without sending
6582       the socks reject.
6584   o Helpful fixes:
6585     - Require BandwidthRate to be at least 20kB/s for servers.
6586     - When a dirserver causes you to give a warn, mention which dirserver
6587       it was.
6588     - New config option DirAllowPrivateAddresses for authdirservers.
6589       Now by default they refuse router descriptors that have non-IP or
6590       private-IP addresses.
6591     - Stop publishing socksport in the directory, since it's not
6592       actually meant to be public. For compatibility, publish a 0 there
6593       for now.
6594     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
6595       smart" value, that is low for servers and high for clients.
6596     - If our clock jumps forward by 100 seconds or more, assume something
6597       has gone wrong with our network and abandon all not-yet-used circs.
6598     - Warn when exit policy implicitly allows local addresses.
6599     - If we get an incredibly skewed timestamp from a dirserver mirror
6600       that isn't a verified OR, don't warn -- it's probably him that's
6601       wrong.
6602     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
6603       cookies to disk and doesn't log each web request to disk. (Thanks
6604       to Brett Carrington for pointing this out.)
6605     - When a client asks us for a dir mirror and we don't have one,
6606       launch an attempt to get a fresh one.
6607     - If we're hibernating and we get a SIGINT, exit immediately.
6608     - Add --with-dmalloc ./configure option, to track memory leaks.
6609     - And try to free all memory on closing, so we can detect what
6610       we're leaking.
6611     - Cache local dns resolves correctly even when they're .exit
6612       addresses.
6613     - Give a better warning when some other server advertises an
6614       ORPort that is actually an apache running ssl.
6615     - Add "opt hibernating 1" to server descriptor to make it clearer
6616       whether the server is hibernating.
6619 Changes in version 0.0.9.6 - 2005-03-24
6620   o Bugfixes on 0.0.9.x (crashes and asserts):
6621     - Add new end stream reasons to maintainance branch. Fix bug where
6622       reason (8) could trigger an assert.  Prevent bug from recurring.
6623     - Apparently win32 stat wants paths to not end with a slash.
6624     - Fix assert triggers in assert_cpath_layer_ok(), where we were
6625       blowing away the circuit that conn->cpath_layer points to, then
6626       checking to see if the circ is well-formed. Backport check to make
6627       sure we dont use the cpath on a closed connection.
6628     - Prevent circuit_resume_edge_reading_helper() from trying to package
6629       inbufs for marked-for-close streams.
6630     - Don't crash on hup if your options->address has become unresolvable.
6631     - Some systems (like OS X) sometimes accept() a connection and tell
6632       you the remote host is 0.0.0.0:0. If this happens, due to some
6633       other mis-features, we get confused; so refuse the conn for now.
6635   o Bugfixes on 0.0.9.x (other):
6636     - Fix harmless but scary "Unrecognized content encoding" warn message.
6637     - Add new stream error reason: TORPROTOCOL reason means "you are not
6638       speaking a version of Tor I understand; say bye-bye to your stream."
6639     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
6640       into the future, now that we are more tolerant of skew. This
6641       resolves a bug where a Tor server would refuse to cache a directory
6642       because all the directories it gets are too far in the future;
6643       yet the Tor server never logs any complaints about clock skew.
6644     - Mac packaging magic: make man pages useable, and do not overwrite
6645       existing torrc files.
6646     - Make OS X log happily to /var/log/tor/tor.log
6649 Changes in version 0.0.9.5 - 2005-02-22
6650   o Bugfixes on 0.0.9.x:
6651     - Fix an assert race at exit nodes when resolve requests fail.
6652     - Stop picking unverified dir mirrors--it only leads to misery.
6653     - Patch from Matt Edman to make NT services work better. Service
6654       support is still not compiled into the executable by default.
6655     - Patch from Dmitri Bely so the Tor service runs better under
6656       the win32 SYSTEM account.
6657     - Make tor-resolve actually work (?) on Win32.
6658     - Fix a sign bug when getrlimit claims to have 4+ billion
6659       file descriptors available.
6660     - Stop refusing to start when bandwidthburst == bandwidthrate.
6661     - When create cells have been on the onion queue more than five
6662       seconds, just send back a destroy and take them off the list.
6665 Changes in version 0.0.9.4 - 2005-02-03
6666   o Bugfixes on 0.0.9:
6667     - Fix an assert bug that took down most of our servers: when
6668       a server claims to have 1 GB of bandwidthburst, don't
6669       freak out.
6670     - Don't crash as badly if we have spawned the max allowed number
6671       of dnsworkers, or we're out of file descriptors.
6672     - Block more file-sharing ports in the default exit policy.
6673     - MaxConn is now automatically set to the hard limit of max
6674       file descriptors we're allowed (ulimit -n), minus a few for
6675       logs, etc.
6676     - Give a clearer message when servers need to raise their
6677       ulimit -n when they start running out of file descriptors.
6678     - SGI Compatibility patches from Jan Schaumann.
6679     - Tolerate a corrupt cached directory better.
6680     - When a dirserver hasn't approved your server, list which one.
6681     - Go into soft hibernation after 95% of the bandwidth is used,
6682       not 99%. This is especially important for daily hibernators who
6683       have a small accounting max. Hopefully it will result in fewer
6684       cut connections when the hard hibernation starts.
6685     - Load-balance better when using servers that claim more than
6686       800kB/s of capacity.
6687     - Make NT services work (experimental, only used if compiled in).
6690 Changes in version 0.0.9.3 - 2005-01-21
6691   o Bugfixes on 0.0.9:
6692     - Backport the cpu use fixes from main branch, so busy servers won't
6693       need as much processor time.
6694     - Work better when we go offline and then come back, or when we
6695       run Tor at boot before the network is up. We do this by
6696       optimistically trying to fetch a new directory whenever an
6697       application request comes in and we think we're offline -- the
6698       human is hopefully a good measure of when the network is back.
6699     - Backport some minimal hidserv bugfixes: keep rend circuits open as
6700       long as you keep using them; actually publish hidserv descriptors
6701       shortly after they change, rather than waiting 20-40 minutes.
6702     - Enable Mac startup script by default.
6703     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
6704     - When you update AllowUnverifiedNodes or FirewallPorts via the
6705       controller's setconf feature, we were always appending, never
6706       resetting.
6707     - When you update HiddenServiceDir via setconf, it was screwing up
6708       the order of reading the lines, making it fail.
6709     - Do not rewrite a cached directory back to the cache; otherwise we
6710       will think it is recent and not fetch a newer one on startup.
6711     - Workaround for webservers that lie about Content-Encoding: Tor
6712       now tries to autodetect compressed directories and compression
6713       itself. This lets us Proxypass dir fetches through apache.
6716 Changes in version 0.0.9.2 - 2005-01-04
6717   o Bugfixes on 0.0.9 (crashes and asserts):
6718     - Fix an assert on startup when the disk is full and you're logging
6719       to a file.
6720     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
6721       style address, then we'd crash.
6722     - Fix an assert trigger when the running-routers string we get from
6723       a dirserver is broken.
6724     - Make worker threads start and run on win32. Now win32 servers
6725       may work better.
6726     - Bandaid (not actually fix, but now it doesn't crash) an assert
6727       where the dns worker dies mysteriously and the main Tor process
6728       doesn't remember anything about the address it was resolving.
6730   o Bugfixes on 0.0.9 (Win32):
6731     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
6732       name out of the warning/assert messages.
6733     - Fix a superficial "unhandled error on read" bug on win32.
6734     - The win32 installer no longer requires a click-through for our
6735       license, since our Free Software license grants rights but does not
6736       take any away.
6737     - Win32: When connecting to a dirserver fails, try another one
6738       immediately. (This was already working for non-win32 Tors.)
6739     - Stop trying to parse $HOME on win32 when hunting for default
6740       DataDirectory.
6741     - Make tor-resolve.c work on win32 by calling network_init().
6743   o Bugfixes on 0.0.9 (other):
6744     - Make 0.0.9.x build on Solaris again.
6745     - Due to a fencepost error, we were blowing away the \n when reporting
6746       confvalue items in the controller. So asking for multiple config
6747       values at once couldn't work.
6748     - When listing circuits that are pending on an opening OR connection,
6749       if we're an OR we were listing circuits that *end* at us as
6750       being pending on every listener, dns/cpu worker, etc. Stop that.
6751     - Dirservers were failing to create 'running-routers' or 'directory'
6752       strings if we had more than some threshold of routers. Fix them so
6753       they can handle any number of routers.
6754     - Fix a superficial "Duplicate mark for close" bug.
6755     - Stop checking for clock skew for OR connections, even for servers.
6756     - Fix a fencepost error that was chopping off the last letter of any
6757       nickname that is the maximum allowed nickname length.
6758     - Update URLs in log messages so they point to the new website.
6759     - Fix a potential problem in mangling server private keys while
6760       writing to disk (not triggered yet, as far as we know).
6761     - Include the licenses for other free software we include in Tor,
6762       now that we're shipping binary distributions more regularly.
6765 Changes in version 0.0.9.1 - 2004-12-15
6766   o Bugfixes on 0.0.9:
6767     - Make hibernation actually work.
6768     - Make HashedControlPassword config option work.
6769     - When we're reporting event circuit status to a controller,
6770       don't use the stream status code.
6773 Changes in version 0.0.9 - 2004-12-12
6774   o Cleanups:
6775     - Clean up manpage and torrc.sample file.
6776     - Clean up severities and text of log warnings.
6777   o Mistakes:
6778     - Make servers trigger an assert when they enter hibernation.
6781 Changes in version 0.0.9rc7 - 2004-12-08
6782   o Bugfixes on 0.0.9rc:
6783     - Fix a stack-trashing crash when an exit node begins hibernating.
6784     - Avoid looking at unallocated memory while considering which
6785       ports we need to build circuits to cover.
6786     - Stop a sigpipe: when an 'end' cell races with eof from the app,
6787       we shouldn't hold-open-until-flush if the eof arrived first.
6788     - Fix a bug with init_cookie_authentication() in the controller.
6789     - When recommending new-format log lines, if the upper bound is
6790       LOG_ERR, leave it implicit.
6792   o Bugfixes on 0.0.8.1:
6793     - Fix a whole slew of memory leaks.
6794     - Fix isspace() and friends so they still make Solaris happy
6795       but also so they don't trigger asserts on win32.
6796     - Fix parse_iso_time on platforms without strptime (eg win32).
6797     - win32: tolerate extra "readable" events better.
6798     - win32: when being multithreaded, leave parent fdarray open.
6799     - Make unit tests work on win32.
6802 Changes in version 0.0.9rc6 - 2004-12-06
6803   o Bugfixes on 0.0.9pre:
6804     - Clean up some more integer underflow opportunities (not exploitable
6805       we think).
6806     - While hibernating, hup should not regrow our listeners.
6807     - Send an end to the streams we close when we hibernate, rather
6808       than just chopping them off.
6809     - React to eof immediately on non-open edge connections.
6811   o Bugfixes on 0.0.8.1:
6812     - Calculate timeout for waiting for a connected cell from the time
6813       we sent the begin cell, not from the time the stream started. If
6814       it took a long time to establish the circuit, we would time out
6815       right after sending the begin cell.
6816     - Fix router_compare_addr_to_addr_policy: it was not treating a port
6817       of * as always matching, so we were picking reject *:* nodes as
6818       exit nodes too. Oops.
6820   o Features:
6821     - New circuit building strategy: keep a list of ports that we've
6822       used in the past 6 hours, and always try to have 2 circuits open
6823       or on the way that will handle each such port. Seed us with port
6824       80 so web users won't complain that Tor is "slow to start up".
6825     - Make kill -USR1 dump more useful stats about circuits.
6826     - When warning about retrying or giving up, print the address, so
6827       the user knows which one it's talking about.
6828     - If you haven't used a clean circuit in an hour, throw it away,
6829       just to be on the safe side. (This means after 6 hours a totally
6830       unused Tor client will have no circuits open.)
6833 Changes in version 0.0.9rc5 - 2004-12-01
6834   o Bugfixes on 0.0.8.1:
6835     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
6836     - Let resolve conns retry/expire also, rather than sticking around
6837       forever.
6838     - If we are using select, make sure we stay within FD_SETSIZE.
6840   o Bugfixes on 0.0.9pre:
6841     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
6842       but doesn't seem to be currently; thanks to Ilja van Sprundel for
6843       finding it.
6844     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
6845       instead.  Impose minima and maxima for all *Period options; impose
6846       even tighter maxima for fetching if we are a caching dirserver.
6847       Clip rather than rejecting.
6848     - Fetch cached running-routers from servers that serve it (that is,
6849       authdirservers and servers running 0.0.9rc5-cvs or later.)
6851   o Features:
6852     - Accept *:706 (silc) in default exit policy.
6853     - Implement new versioning format for post 0.1.
6854     - Support "foo.nickname.exit" addresses, to let Alice request the
6855       address "foo" as viewed by exit node "nickname". Based on a patch
6856       by Geoff Goodell.
6857     - Make tor --version --version dump the cvs Id of every file.
6860 Changes in version 0.0.9rc4 - 2004-11-28
6861   o Bugfixes on 0.0.8.1:
6862     - Make windows sockets actually non-blocking (oops), and handle
6863       win32 socket errors better.
6865   o Bugfixes on 0.0.9rc1:
6866     - Actually catch the -USR2 signal.
6869 Changes in version 0.0.9rc3 - 2004-11-25
6870   o Bugfixes on 0.0.8.1:
6871     - Flush the log file descriptor after we print "Tor opening log file",
6872       so we don't see those messages days later.
6874   o Bugfixes on 0.0.9rc1:
6875     - Make tor-resolve work again.
6876     - Avoid infinite loop in tor-resolve if tor hangs up on it.
6877     - Fix an assert trigger for clients/servers handling resolves.
6880 Changes in version 0.0.9rc2 - 2004-11-24
6881   o Bugfixes on 0.0.9rc1:
6882     - I broke socks5 support while fixing the eof bug.
6883     - Allow unitless bandwidths and intervals; they default to bytes
6884       and seconds.
6885     - New servers don't start out hibernating; they are active until
6886       they run out of bytes, so they have a better estimate of how
6887       long it takes, and so their operators can know they're working.
6890 Changes in version 0.0.9rc1 - 2004-11-23
6891   o Bugfixes on 0.0.8.1:
6892     - Finally fix a bug that's been plaguing us for a year:
6893       With high load, circuit package window was reaching 0. Whenever
6894       we got a circuit-level sendme, we were reading a lot on each
6895       socket, but only writing out a bit. So we would eventually reach
6896       eof. This would be noticed and acted on even when there were still
6897       bytes sitting in the inbuf.
6898     - When poll() is interrupted, we shouldn't believe the revents values.
6900   o Bugfixes on 0.0.9pre6:
6901     - Fix hibernate bug that caused pre6 to be broken.
6902     - Don't keep rephist info for routers that haven't had activity for
6903       24 hours. (This matters now that clients have keys, since we track
6904       them too.)
6905     - Never call close_temp_logs while validating log options.
6906     - Fix backslash-escaping on tor.sh.in and torctl.in.
6908   o Features:
6909     - Implement weekly/monthly/daily accounting: now you specify your
6910       hibernation properties by
6911       AccountingMax N bytes|KB|MB|GB|TB
6912       AccountingStart day|week|month [day] HH:MM
6913         Defaults to "month 1 0:00".
6914     - Let bandwidth and interval config options be specified as 5 bytes,
6915       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
6916     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
6917       get back to normal.)
6918     - If your requested entry or exit node has advertised bandwidth 0,
6919       pick it anyway.
6920     - Be more greedy about filling up relay cells -- we try reading again
6921       once we've processed the stuff we read, in case enough has arrived
6922       to fill the last cell completely.
6923     - Apply NT service patch from Osamu Fujino. Still needs more work.
6926 Changes in version 0.0.9pre6 - 2004-11-15
6927   o Bugfixes on 0.0.8.1:
6928     - Fix assert failure on malformed socks4a requests.
6929     - Use identity comparison, not nickname comparison, to choose which
6930       half of circuit-ID-space each side gets to use. This is needed
6931       because sometimes we think of a router as a nickname, and sometimes
6932       as a hex ID, and we can't predict what the other side will do.
6933     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
6934       write() call will fail and we handle it there.
6935     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
6936       and smartlist_len, which are two major profiling offenders.
6938   o Bugfixes on 0.0.9pre5:
6939     - Fix a bug in read_all that was corrupting config files on windows.
6940     - When we're raising the max number of open file descriptors to
6941       'unlimited', don't log that we just raised it to '-1'.
6942     - Include event code with events, as required by control-spec.txt.
6943     - Don't give a fingerprint when clients do --list-fingerprint:
6944       it's misleading, because it will never be the same again.
6945     - Stop using strlcpy in tor_strndup, since it was slowing us
6946       down a lot.
6947     - Remove warn on startup about missing cached-directory file.
6948     - Make kill -USR1 work again.
6949     - Hibernate if we start tor during the "wait for wakeup-time" phase
6950       of an accounting interval. Log our hibernation plans better.
6951     - Authoritative dirservers now also cache their directory, so they
6952       have it on start-up.
6954   o Features:
6955     - Fetch running-routers; cache running-routers; compress
6956       running-routers; serve compressed running-routers.z
6957     - Add NSI installer script contributed by J Doe.
6958     - Commit VC6 and VC7 workspace/project files.
6959     - Commit a tor.spec for making RPM files, with help from jbash.
6960     - Add contrib/torctl.in contributed by Glenn Fink.
6961     - Implement the control-spec's SAVECONF command, to write your
6962       configuration to torrc.
6963     - Get cookie authentication for the controller closer to working.
6964     - Include control-spec.txt in the tarball.
6965     - When set_conf changes our server descriptor, upload a new copy.
6966       But don't upload it too often if there are frequent changes.
6967     - Document authentication config in man page, and document signals
6968       we catch.
6969     - Clean up confusing parts of man page and torrc.sample.
6970     - Make expand_filename handle ~ and ~username.
6971     - Use autoconf to enable largefile support where necessary. Use
6972       ftello where available, since ftell can fail at 2GB.
6973     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
6974       log more informatively.
6975     - Give a slightly more useful output for "tor -h".
6976     - Refuse application socks connections to port 0.
6977     - Check clock skew for verified servers, but allow unverified
6978       servers and clients to have any clock skew.
6979     - Break DirFetchPostPeriod into:
6980       - DirFetchPeriod for fetching full directory,
6981       - StatusFetchPeriod for fetching running-routers,
6982       - DirPostPeriod for posting server descriptor,
6983       - RendPostPeriod for posting hidden service descriptors.
6984     - Make sure the hidden service descriptors are at a random offset
6985       from each other, to hinder linkability.
6988 Changes in version 0.0.9pre5 - 2004-11-09
6989   o Bugfixes on 0.0.9pre4:
6990     - Fix a seg fault in unit tests (doesn't affect main program).
6991     - Fix an assert bug where a hidden service provider would fail if
6992       the first hop of his rendezvous circuit was down.
6993     - Hidden service operators now correctly handle version 1 style
6994       INTRODUCE1 cells (nobody generates them still, so not a critical
6995       bug).
6996     - If do_hup fails, actually notice.
6997     - Handle more errnos from accept() without closing the listener.
6998       Some OpenBSD machines were closing their listeners because
6999       they ran out of file descriptors.
7000     - Send resolve cells to exit routers that are running a new
7001       enough version of the resolve code to work right.
7002     - Better handling of winsock includes on non-MSV win32 compilers.
7003     - Some people had wrapped their tor client/server in a script
7004       that would restart it whenever it died. This did not play well
7005       with our "shut down if your version is obsolete" code. Now people
7006       don't fetch a new directory if their local cached version is
7007       recent enough.
7008     - Make our autogen.sh work on ksh as well as bash.
7010   o Major Features:
7011     - Hibernation: New config option "AccountingMaxKB" lets you
7012       set how many KBytes per month you want to allow your server to
7013       consume. Rather than spreading those bytes out evenly over the
7014       month, we instead hibernate for some of the month and pop up
7015       at a deterministic time, work until the bytes are consumed, then
7016       hibernate again. Config option "MonthlyAccountingStart" lets you
7017       specify which day of the month your billing cycle starts on.
7018     - Control interface: a separate program can now talk to your
7019       client/server over a socket, and get/set config options, receive
7020       notifications of circuits and streams starting/finishing/dying,
7021       bandwidth used, etc. The next step is to get some GUIs working.
7022       Let us know if you want to help out. See doc/control-spec.txt .
7023     - Ship a contrib/tor-control.py as an example script to interact
7024       with the control port.
7025     - "tor --hash-password zzyxz" will output a salted password for
7026       use in authenticating to the control interface.
7027     - New log format in config:
7028       "Log minsev[-maxsev] stdout|stderr|syslog" or
7029       "Log minsev[-maxsev] file /var/foo"
7031   o Minor Features:
7032     - DirPolicy config option, to let people reject incoming addresses
7033       from their dirserver.
7034     - "tor --list-fingerprint" will list your identity key fingerprint
7035       and then exit.
7036     - Add "pass" target for RedirectExit, to make it easier to break
7037       out of a sequence of RedirectExit rules.
7038     - Clients now generate a TLS cert too, in preparation for having
7039       them act more like real nodes.
7040     - Ship src/win32/ in the tarball, so people can use it to build.
7041     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
7042       is broken.
7043     - New "router-status" line in directory, to better bind each verified
7044       nickname to its identity key.
7045     - Deprecate unofficial config option abbreviations, and abbreviations
7046       not on the command line.
7047     - Add a pure-C tor-resolve implementation.
7048     - Use getrlimit and friends to ensure we can reach MaxConn (currently
7049       1024) file descriptors.
7051   o Code security improvements, inspired by Ilja:
7052     - Replace sprintf with snprintf. (I think they were all safe, but
7053       hey.)
7054     - Replace strcpy/strncpy with strlcpy in more places.
7055     - Avoid strcat; use snprintf or strlcat instead.
7056     - snprintf wrapper with consistent (though not C99) overflow behavior.
7059 Changes in version 0.0.9pre4 - 2004-10-17
7060   o Bugfixes on 0.0.9pre3:
7061     - If the server doesn't specify an exit policy, use the real default
7062       exit policy, not reject *:*.
7063     - Ignore fascistfirewall when uploading/downloading hidden service
7064       descriptors, since we go through Tor for those; and when using
7065       an HttpProxy, since we assume it can reach them all.
7066     - When looking for an authoritative dirserver, use only the ones
7067       configured at boot. Don't bother looking in the directory.
7068     - The rest of the fix for get_default_conf_file() on older win32.
7069     - Make 'Routerfile' config option obsolete.
7071   o Features:
7072     - New 'MyFamily nick1,...' config option for a server to
7073       specify other servers that shouldn't be used in the same circuit
7074       with it. Only believed if nick1 also specifies us.
7075     - New 'NodeFamily nick1,nick2,...' config option for a client to
7076       specify nodes that it doesn't want to use in the same circuit.
7077     - New 'Redirectexit pattern address:port' config option for a
7078       server to redirect exit connections, e.g. to a local squid.
7081 Changes in version 0.0.9pre3 - 2004-10-13
7082   o Bugfixes on 0.0.8.1:
7083     - Better torrc example lines for dirbindaddress and orbindaddress.
7084     - Improved bounds checking on parsed ints (e.g. config options and
7085       the ones we find in directories.)
7086     - Better handling of size_t vs int, so we're more robust on 64
7087       bit platforms.
7088     - Fix the rest of the bug where a newly started OR would appear
7089       as unverified even after we've added his fingerprint and hupped
7090       the dirserver.
7091     - Fix a bug from 0.0.7: when read() failed on a stream, we would
7092       close it without sending back an end. So 'connection refused'
7093       would simply be ignored and the user would get no response.
7095   o Bugfixes on 0.0.9pre2:
7096     - Serving the cached-on-disk directory to people is bad. We now
7097       provide no directory until we've fetched a fresh one.
7098     - Workaround for bug on windows where cached-directories get crlf
7099       corruption.
7100     - Make get_default_conf_file() work on older windows too.
7101     - If we write a *:* exit policy line in the descriptor, don't write
7102       any more exit policy lines.
7104   o Features:
7105     - Use only 0.0.9pre1 and later servers for resolve cells.
7106     - Make the dirservers file obsolete.
7107       - Include a dir-signing-key token in directories to tell the
7108         parsing entity which key is being used to sign.
7109       - Remove the built-in bulky default dirservers string.
7110       - New config option "Dirserver %s:%d [fingerprint]", which can be
7111         repeated as many times as needed. If no dirservers specified,
7112         default to moria1,moria2,tor26.
7113     - Make moria2 advertise a dirport of 80, so people behind firewalls
7114       will be able to get a directory.
7115     - Http proxy support
7116       - Dirservers translate requests for http://%s:%d/x to /x
7117       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
7118         be routed through this host.
7119       - Clients ask for /tor/x rather than /x for new enough dirservers.
7120         This way we can one day coexist peacefully with apache.
7121       - Clients specify a "Host: %s%d" http header, to be compatible
7122         with more proxies, and so running squid on an exit node can work.
7125 Changes in version 0.0.8.1 - 2004-10-13
7126   o Bugfixes:
7127     - Fix a seg fault that can be triggered remotely for Tor
7128       clients/servers with an open dirport.
7129     - Fix a rare assert trigger, where routerinfos for entries in
7130       our cpath would expire while we're building the path.
7131     - Fix a bug in OutboundBindAddress so it (hopefully) works.
7132     - Fix a rare seg fault for people running hidden services on
7133       intermittent connections.
7134     - Fix a bug in parsing opt keywords with objects.
7135     - Fix a stale pointer assert bug when a stream detaches and
7136       reattaches.
7137     - Fix a string format vulnerability (probably not exploitable)
7138       in reporting stats locally.
7139     - Fix an assert trigger: sometimes launching circuits can fail
7140       immediately, e.g. because too many circuits have failed recently.
7141     - Fix a compile warning on 64 bit platforms.
7144 Changes in version 0.0.9pre2 - 2004-10-03
7145   o Bugfixes:
7146     - Make fetching a cached directory work for 64-bit platforms too.
7147     - Make zlib.h a required header, not an optional header.
7150 Changes in version 0.0.9pre1 - 2004-10-01
7151   o Bugfixes:
7152     - Stop using separate defaults for no-config-file and
7153       empty-config-file. Now you have to explicitly turn off SocksPort,
7154       if you don't want it open.
7155     - Fix a bug in OutboundBindAddress so it (hopefully) works.
7156     - Improve man page to mention more of the 0.0.8 features.
7157     - Fix a rare seg fault for people running hidden services on
7158       intermittent connections.
7159     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
7160       happier.
7161     - Fix more dns related bugs: send back resolve_failed and end cells
7162       more reliably when the resolve fails, rather than closing the
7163       circuit and then trying to send the cell. Also attach dummy resolve
7164       connections to a circuit *before* calling dns_resolve(), to fix
7165       a bug where cached answers would never be sent in RESOLVED cells.
7166     - When we run out of disk space, or other log writing error, don't
7167       crash. Just stop logging to that log and continue.
7168     - We were starting to daemonize before we opened our logs, so if
7169       there were any problems opening logs, we would complain to stderr,
7170       which wouldn't work, and then mysteriously exit.
7171     - Fix a rare bug where sometimes a verified OR would connect to us
7172       before he'd uploaded his descriptor, which would cause us to
7173       assign conn->nickname as though he's unverified. Now we look through
7174       the fingerprint list to see if he's there.
7175     - Fix a rare assert trigger, where routerinfos for entries in
7176       our cpath would expire while we're building the path.
7178   o Features:
7179     - Clients can ask dirservers for /dir.z to get a compressed version
7180       of the directory. Only works for servers running 0.0.9, of course.
7181     - Make clients cache directories and use them to seed their router
7182       lists at startup. This means clients have a datadir again.
7183     - Configuration infrastructure support for warning on obsolete
7184       options.
7185     - Respond to content-encoding headers by trying to uncompress as
7186       appropriate.
7187     - Reply with a deflated directory when a client asks for "dir.z".
7188       We could use allow-encodings instead, but allow-encodings isn't
7189       specified in HTTP 1.0.
7190     - Raise the max dns workers from 50 to 100.
7191     - Discourage people from setting their dirfetchpostperiod more often
7192       than once per minute.
7193     - Protect dirservers from overzealous descriptor uploading -- wait
7194       10 seconds after directory gets dirty, before regenerating.
7197 Changes in version 0.0.8 - 2004-08-25
7198   o Port it to SunOS 5.9 / Athena
7201 Changes in version 0.0.8rc2 - 2004-08-20
7202   o Make it compile on cygwin again.
7203   o When picking unverified routers, skip those with low uptime and/or
7204     low bandwidth, depending on what properties you care about.
7207 Changes in version 0.0.8rc1 - 2004-08-18
7208   o Changes from 0.0.7.3:
7209     - Bugfixes:
7210       - Fix assert triggers: if the other side returns an address 0.0.0.0,
7211         don't put it into the client dns cache.
7212       - If a begin failed due to exit policy, but we believe the IP address
7213         should have been allowed, switch that router to exitpolicy reject *:*
7214         until we get our next directory.
7215     - Features:
7216       - Clients choose nodes proportional to advertised bandwidth.
7217       - Avoid using nodes with low uptime as introduction points.
7218       - Handle servers with dynamic IP addresses: don't replace
7219         options->Address with the resolved one at startup, and
7220         detect our address right before we make a routerinfo each time.
7221       - 'FascistFirewall' option to pick dirservers and ORs on specific
7222         ports; plus 'FirewallPorts' config option to tell FascistFirewall
7223         which ports are open. (Defaults to 80,443)
7224       - Be more aggressive about trying to make circuits when the network
7225         has changed (e.g. when you unsuspend your laptop).
7226       - Check for time skew on http headers; report date in response to
7227         "GET /".
7228       - If the entrynode config line has only one node, don't pick it as
7229         an exitnode.
7230       - Add strict{entry|exit}nodes config options. If set to 1, then
7231         we refuse to build circuits that don't include the specified entry
7232         or exit nodes.
7233       - OutboundBindAddress config option, to bind to a specific
7234         IP address for outgoing connect()s.
7235       - End truncated log entries (e.g. directories) with "[truncated]".
7237   o Patches to 0.0.8preX:
7238     - Bugfixes:
7239       - Patches to compile and run on win32 again (maybe)?
7240       - Fix crash when looking for ~/.torrc with no $HOME set.
7241       - Fix a race bug in the unit tests.
7242       - Handle verified/unverified name collisions better when new
7243         routerinfo's arrive in a directory.
7244       - Sometimes routers were getting entered into the stats before
7245         we'd assigned their identity_digest. Oops.
7246       - Only pick and establish intro points after we've gotten a
7247         directory.
7248     - Features:
7249       - AllowUnverifiedNodes config option to let circuits choose no-name
7250         routers in entry,middle,exit,introduction,rendezvous positions.
7251         Allow middle and rendezvous positions by default.
7252       - Add a man page for tor-resolve.
7255 Changes in version 0.0.7.3 - 2004-08-12
7256   o Stop dnsworkers from triggering an assert failure when you
7257     ask them to resolve the host "".
7260 Changes in version 0.0.8pre3 - 2004-08-09
7261   o Changes from 0.0.7.2:
7262     - Allow multiple ORs with same nickname in routerlist -- now when
7263       people give us one identity key for a nickname, then later
7264       another, we don't constantly complain until the first expires.
7265     - Remember used bandwidth (both in and out), and publish 15-minute
7266       snapshots for the past day into our descriptor.
7267     - You can now fetch $DIRURL/running-routers to get just the
7268       running-routers line, not the whole descriptor list. (But
7269       clients don't use this yet.)
7270     - When people mistakenly use Tor as an http proxy, point them
7271       at the tor-doc.html rather than the INSTALL.
7272     - Remove our mostly unused -- and broken -- hex_encode()
7273       function. Use base16_encode() instead. (Thanks to Timo Lindfors
7274       for pointing out this bug.)
7275     - Rotate onion keys every 12 hours, not every 2 hours, so we have
7276       fewer problems with people using the wrong key.
7277     - Change the default exit policy to reject the default edonkey,
7278       kazaa, gnutella ports.
7279     - Add replace_file() to util.[ch] to handle win32's rename().
7281   o Changes from 0.0.8preX:
7282     - Fix two bugs in saving onion keys to disk when rotating, so
7283       hopefully we'll get fewer people using old onion keys.
7284     - Fix an assert error that was making SocksPolicy not work.
7285     - Be willing to expire routers that have an open dirport -- it's
7286       just the authoritative dirservers we want to not forget.
7287     - Reject tor-resolve requests for .onion addresses early, so we
7288       don't build a whole rendezvous circuit and then fail.
7289     - When you're warning a server that he's unverified, don't cry
7290       wolf unpredictably.
7291     - Fix a race condition: don't try to extend onto a connection
7292       that's still handshaking.
7293     - For servers in clique mode, require the conn to be open before
7294       you'll choose it for your path.
7295     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
7296       end relay cell, etc.
7297     - Measure bandwidth capacity over the last 24 hours, not just 12
7298     - Bugfix: authoritative dirservers were making and signing a new
7299       directory for each client, rather than reusing the cached one.
7302 Changes in version 0.0.8pre2 - 2004-08-04
7303   o Changes from 0.0.7.2:
7304     - Security fixes:
7305       - Check directory signature _before_ you decide whether you're
7306         you're running an obsolete version and should exit.
7307       - Check directory signature _before_ you parse the running-routers
7308         list to decide who's running or verified.
7309     - Bugfixes and features:
7310       - Check return value of fclose while writing to disk, so we don't
7311         end up with broken files when servers run out of disk space.
7312       - Log a warning if the user uses an unsafe socks variant, so people
7313         are more likely to learn about privoxy or socat.
7314       - Dirservers now include RFC1123-style dates in the HTTP headers,
7315         which one day we will use to better detect clock skew.
7317   o Changes from 0.0.8pre1:
7318     - Make it compile without warnings again on win32.
7319     - Log a warning if you're running an unverified server, to let you
7320       know you might want to get it verified.
7321     - Only pick a default nickname if you plan to be a server.
7324 Changes in version 0.0.8pre1 - 2004-07-23
7325   o Bugfixes:
7326     - Made our unit tests compile again on OpenBSD 3.5, and tor
7327       itself compile again on OpenBSD on a sparc64.
7328     - We were neglecting milliseconds when logging on win32, so
7329       everything appeared to happen at the beginning of each second.
7331   o Protocol changes:
7332     - 'Extend' relay cell payloads now include the digest of the
7333       intended next hop's identity key. Now we can verify that we're
7334       extending to the right router, and also extend to routers we
7335       hadn't heard of before.
7337   o Features:
7338     - Tor nodes can now act as relays (with an advertised ORPort)
7339       without being manually verified by the dirserver operators.
7340       - Uploaded descriptors of unverified routers are now accepted
7341         by the dirservers, and included in the directory.
7342       - Verified routers are listed by nickname in the running-routers
7343         list; unverified routers are listed as "$<fingerprint>".
7344       - We now use hash-of-identity-key in most places rather than
7345         nickname or addr:port, for improved security/flexibility.
7346       - To avoid Sybil attacks, paths still use only verified servers.
7347         But now we have a chance to play around with hybrid approaches.
7348       - Nodes track bandwidth usage to estimate capacity (not used yet).
7349       - ClientOnly option for nodes that never want to become servers.
7350     - Directory caching.
7351       - "AuthoritativeDir 1" option for the official dirservers.
7352       - Now other nodes (clients and servers) will cache the latest
7353         directory they've pulled down.
7354       - They can enable their DirPort to serve it to others.
7355       - Clients will pull down a directory from any node with an open
7356         DirPort, and check the signature/timestamp correctly.
7357       - Authoritative dirservers now fetch directories from other
7358         authdirservers, to stay better synced.
7359       - Running-routers list tells who's down also, along with noting
7360         if they're verified (listed by nickname) or unverified (listed
7361         by hash-of-key).
7362       - Allow dirservers to serve running-router list separately.
7363         This isn't used yet.
7364     - ORs connect-on-demand to other ORs
7365       - If you get an extend cell to an OR you're not connected to,
7366         connect, handshake, and forward the create cell.
7367       - The authoritative dirservers stay connected to everybody,
7368         and everybody stays connected to 0.0.7 servers, but otherwise
7369         clients/servers expire unused connections after 5 minutes.
7370     - When servers get a sigint, they delay 30 seconds (refusing new
7371       connections) then exit. A second sigint causes immediate exit.
7372     - File and name management:
7373       - Look for .torrc if no CONFDIR "torrc" is found.
7374       - If no datadir is defined, then choose, make, and secure ~/.tor
7375         as datadir.
7376       - If torrc not found, exitpolicy reject *:*.
7377       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
7378       - If no nickname is defined, derive default from hostname.
7379       - Rename secret key files, e.g. identity.key -> secret_id_key,
7380         to discourage people from mailing their identity key to tor-ops.
7381     - Refuse to build a circuit before the directory has arrived --
7382       it won't work anyway, since you won't know the right onion keys
7383       to use.
7384     - Try other dirservers immediately if the one you try is down. This
7385       should tolerate down dirservers better now.
7386     - Parse tor version numbers so we can do an is-newer-than check
7387       rather than an is-in-the-list check.
7388     - New socks command 'resolve', to let us shim gethostbyname()
7389       locally.
7390       - A 'tor_resolve' script to access the socks resolve functionality.
7391       - A new socks-extensions.txt doc file to describe our
7392         interpretation and extensions to the socks protocols.
7393     - Add a ContactInfo option, which gets published in descriptor.
7394     - Publish OR uptime in descriptor (and thus in directory) too.
7395     - Write tor version at the top of each log file
7396     - New docs in the tarball:
7397       - tor-doc.html.
7398       - Document that you should proxy your SSL traffic too.
7401 Changes in version 0.0.7.2 - 2004-07-07
7402   o A better fix for the 0.0.0.0 problem, that will hopefully
7403     eliminate the remaining related assertion failures.
7406 Changes in version 0.0.7.1 - 2004-07-04
7407   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
7408     since internally we use 0.0.0.0 to signify "not yet resolved".
7411 Changes in version 0.0.7 - 2004-06-07
7412   o Updated the man page to reflect the new features.
7415 Changes in version 0.0.7rc2 - 2004-06-06
7416   o Changes from 0.0.7rc1:
7417     - Make it build on Win32 again.
7418   o Changes from 0.0.6.2:
7419     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
7420       settings too.
7423 Changes in version 0.0.7rc1 - 2004-06-02
7424   o Bugfixes:
7425     - On sighup, we were adding another log without removing the first
7426       one. So log messages would get duplicated n times for n sighups.
7427     - Several cases of using a connection after we'd freed it. The
7428       problem was that connections that are pending resolve are in both
7429       the pending_resolve tree, and also the circuit's resolving_streams
7430       list. When you want to remove one, you must remove it from both.
7431     - Fix a double-mark-for-close where an end cell arrived for a
7432       resolving stream, and then the resolve failed.
7433     - Check directory signatures based on name of signer, not on whom
7434       we got the directory from. This will let us cache directories more
7435       easily.
7436   o Features:
7437     - Crank up some of our constants to handle more users.
7440 Changes in version 0.0.7pre1 - 2004-06-02
7441   o Fixes for crashes and other obnoxious bugs:
7442     - Fix an epipe bug: sometimes when directory connections failed
7443       to connect, we would give them a chance to flush before closing
7444       them.
7445     - When we detached from a circuit because of resolvefailed, we
7446       would immediately try the same circuit twice more, and then
7447       give up on the resolve thinking we'd tried three different
7448       exit nodes.
7449     - Limit the number of intro circuits we'll attempt to build for a
7450       hidden service per 15-minute period.
7451     - Check recommended-software string *early*, before actually parsing
7452       the directory. Thus we can detect an obsolete version and exit,
7453       even if the new directory format doesn't parse.
7454   o Fixes for security bugs:
7455     - Remember which nodes are dirservers when you startup, and if a
7456       random OR enables his dirport, don't automatically assume he's
7457       a trusted dirserver.
7458   o Other bugfixes:
7459     - Directory connections were asking the wrong poll socket to
7460       start writing, and not asking themselves to start writing.
7461     - When we detached from a circuit because we sent a begin but
7462       didn't get a connected, we would use it again the first time;
7463       but after that we would correctly switch to a different one.
7464     - Stop warning when the first onion decrypt attempt fails; they
7465       will sometimes legitimately fail now that we rotate keys.
7466     - Override unaligned-access-ok check when $host_cpu is ia64 or
7467       arm. Apparently they allow it but the kernel whines.
7468     - Dirservers try to reconnect periodically too, in case connections
7469       have failed.
7470     - Fix some memory leaks in directory servers.
7471     - Allow backslash in Win32 filenames.
7472     - Made Tor build complain-free on FreeBSD, hopefully without
7473       breaking other BSD builds. We'll see.
7474   o Features:
7475     - Doxygen markup on all functions and global variables.
7476     - Make directory functions update routerlist, not replace it. So
7477       now directory disagreements are not so critical a problem.
7478     - Remove the upper limit on number of descriptors in a dirserver's
7479       directory (not that we were anywhere close).
7480     - Allow multiple logfiles at different severity ranges.
7481     - Allow *BindAddress to specify ":port" rather than setting *Port
7482       separately. Allow multiple instances of each BindAddress config
7483       option, so you can bind to multiple interfaces if you want.
7484     - Allow multiple exit policy lines, which are processed in order.
7485       Now we don't need that huge line with all the commas in it.
7486     - Enable accept/reject policies on SOCKS connections, so you can bind
7487       to 0.0.0.0 but still control who can use your OP.
7490 Changes in version 0.0.6.2 - 2004-05-16
7491   o Our integrity-checking digest was checking only the most recent cell,
7492     not the previous cells like we'd thought.
7493     Thanks to Stefan Mark for finding the flaw!
7496 Changes in version 0.0.6.1 - 2004-05-06
7497   o Fix two bugs in our AES counter-mode implementation (this affected
7498     onion-level stream encryption, but not TLS-level). It turns
7499     out we were doing something much more akin to a 16-character
7500     polyalphabetic cipher. Oops.
7501     Thanks to Stefan Mark for finding the flaw!
7502   o Retire moria3 as a directory server, and add tor26 as a directory
7503     server.
7506 Changes in version 0.0.6 - 2004-05-02
7507   [version bump only]
7510 Changes in version 0.0.6rc4 - 2004-05-01
7511   o Update the built-in dirservers list to use the new directory format
7512   o Fix a rare seg fault: if a node offering a hidden service attempts
7513     to build a circuit to Alice's rendezvous point and fails before it
7514     reaches the last hop, it retries with a different circuit, but
7515     then dies.
7516   o Handle windows socket errors correctly.
7519 Changes in version 0.0.6rc3 - 2004-04-28
7520   o Don't expire non-general excess circuits (if we had enough
7521     circuits open, we were expiring rendezvous circuits -- even
7522     when they had a stream attached. oops.)
7523   o Fetch randomness from /dev/urandom better (not via fopen/fread)
7524   o Better debugging for tls errors
7525   o Some versions of openssl have an SSL_pending function that erroneously
7526     returns bytes when there is a non-application record pending.
7527   o Set Content-Type on the directory and hidserv descriptor.
7528   o Remove IVs from cipher code, since AES-ctr has none.
7529   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
7530     o We were using an array of length zero in a few places.
7531     o win32's gethostbyname can't resolve an IP to an IP.
7532     o win32's close can't close a socket.
7535 Changes in version 0.0.6rc2 - 2004-04-26
7536   o Fix a bug where we were closing tls connections intermittently.
7537     It turns out openssl keeps its errors around -- so if an error
7538     happens, and you don't ask about it, and then another openssl
7539     operation happens and succeeds, and you ask if there was an error,
7540     it tells you about the first error. Fun fun.
7541   o Fix a bug that's been lurking since 27 may 03 (!)
7542     When passing back a destroy cell, we would use the wrong circ id.
7543     'Mostly harmless', but still worth fixing.
7544   o Since we don't support truncateds much, don't bother sending them;
7545     just close the circ.
7546   o check for <machine/limits.h> so we build on NetBSD again (I hope).
7547   o don't crash if a conn that sent a begin has suddenly lost its circuit
7548     (this was quite rare).
7551 Changes in version 0.0.6rc1 - 2004-04-25
7552   o We now rotate link (tls context) keys and onion keys.
7553   o CREATE cells now include oaep padding, so you can tell
7554     if you decrypted them correctly.
7555   o Add bandwidthburst to server descriptor.
7556   o Directories now say which dirserver signed them.
7557   o Use a tor_assert macro that logs failed assertions too.
7560 Changes in version 0.0.6pre5 - 2004-04-18
7561   o changes from 0.0.6pre4:
7562     - make tor build on broken freebsd 5.2 installs
7563     - fix a failed assert when you try an intro point, get a nack, and try
7564       a second one and it works.
7565     - when alice uses a port that the hidden service doesn't accept,
7566       it now sends back an end cell (denied by exit policy). otherwise
7567       alice would just have to wait to time out.
7568     - fix another rare bug: when we had tried all the intro
7569       points for a hidden service, we fetched the descriptor
7570       again, but we left our introcirc thinking it had already
7571       sent an intro, so it kept waiting for a response...
7572     - bugfix: when you sleep your hidden-service laptop, as soon
7573       as it wakes up it tries to upload a service descriptor, but
7574       socketpair fails for some reason (localhost not up yet?).
7575       now we simply give up on that upload, and we'll try again later.
7576       i'd still like to find the bug though.
7577     - if an intro circ waiting for an ack dies before getting one, then
7578       count it as a nack
7579     - we were reusing stale service descriptors and refetching usable
7580       ones. oops.
7583 Changes in version 0.0.6pre4 - 2004-04-14
7584   o changes from 0.0.6pre3:
7585     - when bob fails to connect to the rendezvous point, and his
7586       circ didn't fail because of the rendezvous point itself, then
7587       he retries a couple of times
7588     - we expire introduction and rendezvous circs more thoroughly
7589       (sometimes they were hanging around forever)
7590     - we expire unattached rendezvous streams that have been around
7591       too long (they were sticking around forever).
7592     - fix a measly fencepost error that was crashing everybody with
7593       a strict glibc.
7596 Changes in version 0.0.6pre3 - 2004-04-14
7597   o changes from 0.0.6pre2:
7598     - make hup work again
7599     - fix some memory leaks for dirservers
7600     - allow more skew in rendezvous descriptor timestamps, to help
7601       handle people like blanu who don't know what time it is
7602     - normal circs are 3 hops, but some rend/intro circs are 4, if
7603       the initiator doesn't get to choose the last hop
7604     - send acks for introductions, so alice can know whether to try
7605       again
7606     - bob publishes intro points more correctly
7607   o changes from 0.0.5:
7608     - fix an assert trigger that's been plaguing us since the days
7609       of 0.0.2prexx (thanks weasel!)
7610     - retry stream correctly when we fail to connect because of
7611       exit-policy-reject (should try another) or can't-resolve-address
7612       (also should try another, because dns on random internet servers
7613       is flaky).
7614     - when we hup a dirserver and we've *removed* a server from the
7615       approved-routers list, now we remove that server from the
7616       in-memory directories too
7619 Changes in version 0.0.6pre2 - 2004-04-08
7620   o We fixed our base32 implementation. Now it works on all architectures.
7623 Changes in version 0.0.6pre1 - 2004-04-08
7624   o Features:
7625     - Hidden services and rendezvous points are implemented. Go to
7626       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
7627       hidden services. (This only works via a socks4a proxy such as
7628       Privoxy, and currently it's quite slow.)
7631 Changes in version 0.0.5 - 2004-03-30
7632   [version bump only]
7635 Changes in version 0.0.5rc3 - 2004-03-29
7636   o Install torrc as torrc.sample -- we no longer clobber your
7637     torrc. (Woo!)
7638   o Re-enable recommendedversion checking (we broke it in rc2, oops)
7639   o Add in a 'notice' log level for things the operator should hear
7640     but that aren't warnings
7643 Changes in version 0.0.5rc2 - 2004-03-29
7644   o Hold socks connection open until reply is flushed (if possible)
7645   o Make exit nodes resolve IPs to IPs immediately, rather than asking
7646     the dns farm to do it.
7647   o Fix c99 aliasing warnings in rephist.c
7648   o Don't include server descriptors that are older than 24 hours in the
7649     directory.
7650   o Give socks 'reject' replies their whole 15s to attempt to flush,
7651     rather than seeing the 60s timeout and assuming the flush had failed.
7652   o Clean automake droppings from the cvs repository
7655 Changes in version 0.0.5rc1 - 2004-03-28
7656   o Fix mangled-state bug in directory fetching (was causing sigpipes).
7657   o Only build circuits after we've fetched the directory: clients were
7658     using only the directory servers before they'd fetched a directory.
7659     This also means longer startup time; so it goes.
7660   o Fix an assert trigger where an OP would fail to handshake, and we'd
7661     expect it to have a nickname.
7662   o Work around a tsocks bug: do a socks reject when AP connection dies
7663     early, else tsocks goes into an infinite loop.
7666 Changes in version 0.0.4 - 2004-03-26
7667   o When connecting to a dirserver or OR and the network is down,
7668     we would crash.
7671 Changes in version 0.0.3 - 2004-03-26
7672   o Warn and fail if server chose a nickname with illegal characters
7673   o Port to Solaris and Sparc:
7674     - include missing header fcntl.h
7675     - have autoconf find -lsocket -lnsl automatically
7676     - deal with hardware word alignment
7677     - make uname() work (solaris has a different return convention)
7678     - switch from using signal() to sigaction()
7679   o Preliminary work on reputation system:
7680     - Keep statistics on success/fail of connect attempts; they're published
7681       by kill -USR1 currently.
7682     - Add a RunTesting option to try to learn link state by creating test
7683       circuits, even when SocksPort is off.
7684     - Remove unused open circuits when there are too many.
7687 Changes in version 0.0.2 - 2004-03-19
7688     - Include strlcpy and strlcat for safer string ops
7689     - define INADDR_NONE so we compile (but still not run) on solaris
7692 Changes in version 0.0.2pre27 - 2004-03-14
7693   o Bugfixes:
7694     - Allow internal tor networks (we were rejecting internal IPs,
7695       now we allow them if they're set explicitly).
7696     - And fix a few endian issues.
7699 Changes in version 0.0.2pre26 - 2004-03-14
7700   o New features:
7701     - If a stream times out after 15s without a connected cell, don't
7702       try that circuit again: try a new one.
7703     - Retry streams at most 4 times. Then give up.
7704     - When a dirserver gets a descriptor from an unknown router, it
7705       logs its fingerprint (so the dirserver operator can choose to
7706       accept it even without mail from the server operator).
7707     - Inform unapproved servers when we reject their descriptors.
7708     - Make tor build on Windows again. It works as a client, who knows
7709       about as a server.
7710     - Clearer instructions in the torrc for how to set up a server.
7711     - Be more efficient about reading fd's when our global token bucket
7712       (used for rate limiting) becomes empty.
7713   o Bugfixes:
7714     - Stop asserting that computers always go forward in time. It's
7715       simply not true.
7716     - When we sent a cell (e.g. destroy) and then marked an OR connection
7717       expired, we might close it before finishing a flush if the other
7718       side isn't reading right then.
7719     - Don't allow dirservers to start if they haven't defined
7720       RecommendedVersions
7721     - We were caching transient dns failures. Oops.
7722     - Prevent servers from publishing an internal IP as their address.
7723     - Address a strcat vulnerability in circuit.c
7726 Changes in version 0.0.2pre25 - 2004-03-04
7727   o New features:
7728     - Put the OR's IP in its router descriptor, not its fqdn. That way
7729       we'll stop being stalled by gethostbyname for nodes with flaky dns,
7730       e.g. poblano.
7731   o Bugfixes:
7732     - If the user typed in an address that didn't resolve, the server
7733       crashed.
7736 Changes in version 0.0.2pre24 - 2004-03-03
7737   o Bugfixes:
7738     - Fix an assertion failure in dns.c, where we were trying to dequeue
7739       a pending dns resolve even if it wasn't pending
7740     - Fix a spurious socks5 warning about still trying to write after the
7741       connection is finished.
7742     - Hold certain marked_for_close connections open until they're finished
7743       flushing, rather than losing bytes by closing them too early.
7744     - Correctly report the reason for ending a stream
7745     - Remove some duplicate calls to connection_mark_for_close
7746     - Put switch_id and start_daemon earlier in the boot sequence, so it
7747       will actually try to chdir() to options.DataDirectory
7748     - Make 'make test' exit(1) if a test fails; fix some unit tests
7749     - Make tor fail when you use a config option it doesn't know about,
7750       rather than warn and continue.
7751     - Make --version work
7752     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
7755 Changes in version 0.0.2pre23 - 2004-02-29
7756   o New features:
7757     - Print a statement when the first circ is finished, so the user
7758       knows it's working.
7759     - If a relay cell is unrecognized at the end of the circuit,
7760       send back a destroy. (So attacks to mutate cells are more
7761       clearly thwarted.)
7762     - New config option 'excludenodes' to avoid certain nodes for circuits.
7763     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
7764       so you can collect coredumps there.
7765  o Bugfixes:
7766     - Fix a bug in tls flushing where sometimes data got wedged and
7767       didn't flush until more data got sent. Hopefully this bug was
7768       a big factor in the random delays we were seeing.
7769     - Make 'connected' cells include the resolved IP, so the client
7770       dns cache actually gets populated.
7771     - Disallow changing from ORPort=0 to ORPort>0 on hup.
7772     - When we time-out on a stream and detach from the circuit, send an
7773       end cell down it first.
7774     - Only warn about an unknown router (in exitnodes, entrynodes,
7775       excludenodes) after we've fetched a directory.
7778 Changes in version 0.0.2pre22 - 2004-02-26
7779   o New features:
7780     - Servers publish less revealing uname information in descriptors.
7781     - More memory tracking and assertions, to crash more usefully when
7782       errors happen.
7783     - If the default torrc isn't there, just use some default defaults.
7784       Plus provide an internal dirservers file if they don't have one.
7785     - When the user tries to use Tor as an http proxy, give them an http
7786       501 failure explaining that we're a socks proxy.
7787     - Dump a new router.desc on hup, to help confused people who change
7788       their exit policies and then wonder why router.desc doesn't reflect
7789       it.
7790     - Clean up the generic tor.sh init script that we ship with.
7791   o Bugfixes:
7792     - If the exit stream is pending on the resolve, and a destroy arrives,
7793       then the stream wasn't getting removed from the pending list. I
7794       think this was the one causing recent server crashes.
7795     - Use a more robust poll on OSX 10.3, since their poll is flaky.
7796     - When it couldn't resolve any dirservers, it was useless from then on.
7797       Now it reloads the RouterFile (or default dirservers) if it has no
7798       dirservers.
7799     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
7800       many users don't even *have* a /usr/local/sbin/.
7803 Changes in version 0.0.2pre21 - 2004-02-18
7804   o New features:
7805     - There's a ChangeLog file that actually reflects the changelog.
7806     - There's a 'torify' wrapper script, with an accompanying
7807       tor-tsocks.conf, that simplifies the process of using tsocks for
7808       tor. It even has a man page.
7809     - The tor binary gets installed to sbin rather than bin now.
7810     - Retry streams where the connected cell hasn't arrived in 15 seconds
7811     - Clean up exit policy handling -- get the default out of the torrc,
7812       so we can update it without forcing each server operator to fix
7813       his/her torrc.
7814     - Allow imaps and pop3s in default exit policy
7815   o Bugfixes:
7816     - Prevent picking middleman nodes as the last node in the circuit
7819 Changes in version 0.0.2pre20 - 2004-01-30
7820   o New features:
7821     - We now have a deb package, and it's in debian unstable. Go to
7822       it, apt-getters. :)
7823     - I've split the TotalBandwidth option into BandwidthRate (how many
7824       bytes per second you want to allow, long-term) and
7825       BandwidthBurst (how many bytes you will allow at once before the cap
7826       kicks in).  This better token bucket approach lets you, say, set
7827       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
7828       performance while not exceeding your monthly bandwidth quota.
7829     - Push out a tls record's worth of data once you've got it, rather
7830       than waiting until you've read everything waiting to be read. This
7831       may improve performance by pipelining better. We'll see.
7832     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
7833       from failed circuits (if they haven't been connected yet) and attach
7834       to new ones.
7835     - Expire old streams that haven't managed to connect. Some day we'll
7836       have them reattach to new circuits instead.
7838   o Bugfixes:
7839     - Fix several memory leaks that were causing servers to become bloated
7840       after a while.
7841     - Fix a few very rare assert triggers. A few more remain.
7842     - Setuid to User _before_ complaining about running as root.
7845 Changes in version 0.0.2pre19 - 2004-01-07
7846   o Bugfixes:
7847     - Fix deadlock condition in dns farm. We were telling a child to die by
7848       closing the parent's file descriptor to him. But newer children were
7849       inheriting the open file descriptor from the parent, and since they
7850       weren't closing it, the socket never closed, so the child never read
7851       eof, so he never knew to exit. Similarly, dns workers were holding
7852       open other sockets, leading to all sorts of chaos.
7853     - New cleaner daemon() code for forking and backgrounding.
7854     - If you log to a file, it now prints an entry at the top of the
7855       logfile so you know it's working.
7856     - The onionskin challenge length was 30 bytes longer than necessary.
7857     - Started to patch up the spec so it's not quite so out of date.
7860 Changes in version 0.0.2pre18 - 2004-01-02
7861   o Bugfixes:
7862     - Fix endian issues with the 'integrity' field in the relay header.
7863     - Fix a potential bug where connections in state
7864       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
7867 Changes in version 0.0.2pre17 - 2003-12-30
7868   o Bugfixes:
7869     - Made --debuglogfile (or any second log file, actually) work.
7870     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
7871       adversary could force us into an infinite loop.
7873   o Features:
7874     - Each onionskin handshake now includes a hash of the computed key,
7875       to prove the server's identity and help perfect forward secrecy.
7876     - Changed cell size from 256 to 512 bytes (working toward compatibility
7877       with MorphMix).
7878     - Changed cell length to 2 bytes, and moved it to the relay header.
7879     - Implemented end-to-end integrity checking for the payloads of
7880       relay cells.
7881     - Separated streamid from 'recognized' (otherwise circuits will get
7882       messed up when we try to have streams exit from the middle). We
7883       use the integrity-checking to confirm that a cell is addressed to
7884       this hop.
7885     - Randomize the initial circid and streamid values, so an adversary who
7886       breaks into a node can't learn how many circuits or streams have
7887       been made so far.
7890 Changes in version 0.0.2pre16 - 2003-12-14
7891   o Bugfixes:
7892     - Fixed a bug that made HUP trigger an assert
7893     - Fixed a bug where a circuit that immediately failed wasn't being
7894       counted as a failed circuit in counting retries.
7896   o Features:
7897     - Now we close the circuit when we get a truncated cell: otherwise we're
7898       open to an anonymity attack where a bad node in the path truncates
7899       the circuit and then we open streams at him.
7900     - Add port ranges to exit policies
7901     - Add a conservative default exit policy
7902     - Warn if you're running tor as root
7903     - on HUP, retry OR connections and close/rebind listeners
7904     - options.EntryNodes: try these nodes first when picking the first node
7905     - options.ExitNodes: if your best choices happen to include any of
7906       your preferred exit nodes, you choose among just those preferred
7907       exit nodes.
7908     - options.ExcludedNodes: nodes that are never picked in path building
7911 Changes in version 0.0.2pre15 - 2003-12-03
7912   o Robustness and bugfixes:
7913     - Sometimes clients would cache incorrect DNS resolves, which would
7914       really screw things up.
7915     - An OP that goes offline would slowly leak all its sockets and stop
7916       working.
7917     - A wide variety of bugfixes in exit node selection, exit policy
7918       handling, and processing pending streams when a new circuit is
7919       established.
7920     - Pick nodes for a path only from those the directory says are up
7921     - Choose randomly from all running dirservers, not always the first one
7922     - Increase allowed http header size for directory fetch.
7923     - Stop writing to stderr (if we're daemonized it will be closed).
7924     - Enable -g always, so cores will be more useful to me.
7925     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
7927   o Documentation:
7928     - Wrote a man page. It lists commonly used options.
7930   o Configuration:
7931     - Change default loglevel to warn.
7932     - Make PidFile default to null rather than littering in your CWD.
7933     - OnionRouter config option is now obsolete. Instead it just checks
7934       ORPort>0.
7935     - Moved to a single unified torrc file for both clients and servers.
7938 Changes in version 0.0.2pre14 - 2003-11-29
7939   o Robustness and bugfixes:
7940     - Force the admin to make the DataDirectory himself
7941       - to get ownership/permissions right
7942       - so clients no longer make a DataDirectory and then never use it
7943     - fix bug where a client who was offline for 45 minutes would never
7944       pull down a directory again
7945     - fix (or at least hide really well) the dns assert bug that was
7946       causing server crashes
7947     - warnings and improved robustness wrt clockskew for certs
7948     - use the native daemon(3) to daemonize, when available
7949     - exit if bind() fails
7950     - exit if neither socksport nor orport is defined
7951     - include our own tor_timegm (Win32 doesn't have its own)
7952     - bugfix for win32 with lots of connections
7953     - fix minor bias in PRNG
7954     - make dirserver more robust to corrupt cached directory
7956   o Documentation:
7957     - Wrote the design document (woo)
7959   o Circuit building and exit policies:
7960     - Circuits no longer try to use nodes that the directory has told them
7961       are down.
7962     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
7963       bitcounts (18.0.0.0/8).
7964     - Make AP connections standby for a circuit if no suitable circuit
7965       exists, rather than failing
7966     - Circuits choose exit node based on addr/port, exit policies, and
7967       which AP connections are standing by
7968     - Bump min pathlen from 2 to 3
7969     - Relay end cells have a payload to describe why the stream ended.
7970     - If the stream failed because of exit policy, try again with a new
7971       circuit.
7972     - Clients have a dns cache to remember resolved addresses.
7973     - Notice more quickly when we have no working circuits
7975   o Configuration:
7976     - APPort is now called SocksPort
7977     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
7978       where to bind
7979     - RecommendedVersions is now a config variable rather than
7980       hardcoded (for dirservers)
7981     - Reloads config on HUP
7982     - Usage info on -h or --help
7983     - If you set User and Group config vars, it'll setu/gid to them.
7986 Changes in version 0.0.2pre13 - 2003-10-19
7987   o General stability:
7988     - SSL_write no longer fails when it returns WANTWRITE and the number
7989       of bytes in the buf has changed by the next SSL_write call.
7990     - Fix segfault fetching directory when network is down
7991     - Fix a variety of minor memory leaks
7992     - Dirservers reload the fingerprints file on HUP, so I don't have
7993       to take down the network when I approve a new router
7994     - Default server config file has explicit Address line to specify fqdn
7996   o Buffers:
7997     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
7998     - Make listener connections not ever alloc bufs
8000   o Autoconf improvements:
8001     - don't clobber an external CFLAGS in ./configure
8002     - Make install now works
8003     - create var/lib/tor on make install
8004     - autocreate a tor.sh initscript to help distribs
8005     - autocreate the torrc and sample-server-torrc with correct paths
8007   o Log files and Daemonizing now work:
8008     - If --DebugLogFile is specified, log to it at -l debug
8009     - If --LogFile is specified, use it instead of commandline
8010     - If --RunAsDaemon is set, tor forks and backgrounds on startup