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