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