Add a unittest that reveals the offending case of #23862.
[tor.git] / ChangeLog
bloba902cab2a58436783fc007a50ef948e476006ab6
1 Changes in version 0.2.5.15 - 2017-10-25
2   Tor 0.2.5.15 backports a collection of bugfixes from later Tor release
3   series. It also adds a new directory authority, Bastet.
5   Note: the Tor 0.2.5 series will no longer be supported after 1 May
6   2018. If you need a release with long-term support, please upgrade to
7   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
9   o Directory authority changes:
10     - Add "Bastet" as a ninth directory authority to the default list.
11       Closes ticket 23910.
12     - The directory authority "Longclaw" has changed its IP address.
13       Closes ticket 23592.
15   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
16     - Avoid an assertion failure bug affecting our implementation of
17       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
18       handling of "0xx" differs from what we had expected. Fixes bug
19       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
21   o Minor features (geoip):
22     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
23       Country database.
25   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
26     - Fix a memset() off the end of an array when packing cells. This
27       bug should be harmless in practice, since the corrupted bytes are
28       still in the same structure, and are always padding bytes,
29       ignored, or immediately overwritten, depending on compiler
30       behavior. Nevertheless, because the memset()'s purpose is to make
31       sure that any other cell-handling bugs can't expose bytes to the
32       network, we need to fix it. Fixes bug 22737; bugfix on
33       0.2.4.11-alpha. Fixes CID 1401591.
35   o Build features (backport from 0.3.1.5-alpha):
36     - Tor's repository now includes a Travis Continuous Integration (CI)
37       configuration file (.travis.yml). This is meant to help new
38       developers and contributors who fork Tor to a Github repository be
39       better able to test their changes, and understand what we expect
40       to pass. To use this new build feature, you must fork Tor to your
41       Github account, then go into the "Integrations" menu in the
42       repository settings for your fork and enable Travis, then push
43       your changes. Closes ticket 22636.
46 Changes in version 0.2.8.16 - 2017-10-25
47   Tor 0.2.8.16 backports a collection of bugfixes from later Tor release
48   series, including a bugfix for a crash issue that had affected relays
49   under memory pressure. It also adds a new directory authority, Bastet.
51   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
52   2018. If you need a release with long-term support, please stick with
53   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
55   o Directory authority changes:
56     - Add "Bastet" as a ninth directory authority to the default list.
57       Closes ticket 23910.
58     - The directory authority "Longclaw" has changed its IP address.
59       Closes ticket 23592.
61   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
62     - Fix a timing-based assertion failure that could occur when the
63       circuit out-of-memory handler freed a connection's output buffer.
64       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
66   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
67     - Remove longclaw's IPv6 address, as it will soon change. Authority
68       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
69       3/8 directory authorities with IPv6 addresses, but there are also
70       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
72   o Minor features (geoip):
73     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
74       Country database.
77 Changes in version 0.2.9.13 - 2017-10-25
78   Tor 0.2.9.13 backports a collection of bugfixes from later Tor release
79   series, including a bugfix for a crash issue that had affected relays
80   under memory pressure. It also adds a new directory authority, Bastet.
82   o Directory authority changes:
83     - Add "Bastet" as a ninth directory authority to the default list.
84       Closes ticket 23910.
85     - The directory authority "Longclaw" has changed its IP address.
86       Closes ticket 23592.
88   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
89     - Fix a timing-based assertion failure that could occur when the
90       circuit out-of-memory handler freed a connection's output buffer.
91       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
93   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
94     - Remove longclaw's IPv6 address, as it will soon change. Authority
95       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
96       3/8 directory authorities with IPv6 addresses, but there are also
97       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
99   o Minor features (geoip):
100     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
101       Country database.
103   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
104     - When a directory authority rejects a descriptor or extrainfo with
105       a given digest, mark that digest as undownloadable, so that we do
106       not attempt to download it again over and over. We previously
107       tried to avoid downloading such descriptors by other means, but we
108       didn't notice if we accidentally downloaded one anyway. This
109       behavior became problematic in 0.2.7.2-alpha, when authorities
110       began pinning Ed25519 keys. Fixes bug 22349; bugfix
111       on 0.2.1.19-alpha.
113   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
114     - Clear the address when node_get_prim_orport() returns early.
115       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
117   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
118     - When running as a Windows service, set the ID of the main thread
119       correctly. Failure to do so made us fail to send log messages to
120       the controller in 0.2.1.16-rc, slowed down controller event
121       delivery in 0.2.7.3-rc and later, and crash with an assertion
122       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
123       Patch and diagnosis from "Vort".
126 Changes in version 0.3.0.12 - 2017-10-25
127   Tor 0.3.0.12 backports a collection of bugfixes from later Tor release
128   series, including a bugfix for a crash issue that had affected relays
129   under memory pressure. It also adds a new directory authority, Bastet.
131   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
132   2018. If you need a release with long-term support, please stick with
133   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
135   o Directory authority changes:
136     - Add "Bastet" as a ninth directory authority to the default list.
137       Closes ticket 23910.
138     - The directory authority "Longclaw" has changed its IP address.
139       Closes ticket 23592.
141   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
142     - Fix a timing-based assertion failure that could occur when the
143       circuit out-of-memory handler freed a connection's output buffer.
144       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
146   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
147     - Remove longclaw's IPv6 address, as it will soon change. Authority
148       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
149       3/8 directory authorities with IPv6 addresses, but there are also
150       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
152   o Minor features (geoip):
153     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
154       Country database.
156   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
157     - When a directory authority rejects a descriptor or extrainfo with
158       a given digest, mark that digest as undownloadable, so that we do
159       not attempt to download it again over and over. We previously
160       tried to avoid downloading such descriptors by other means, but we
161       didn't notice if we accidentally downloaded one anyway. This
162       behavior became problematic in 0.2.7.2-alpha, when authorities
163       began pinning Ed25519 keys. Fixes bug 22349; bugfix
164       on 0.2.1.19-alpha.
166   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
167     - Avoid a possible double close of a circuit by the intro point on
168       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
169       bugfix on 0.3.0.1-alpha.
171   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
172     - Clear the address when node_get_prim_orport() returns early.
173       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
175   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
176     - When running as a Windows service, set the ID of the main thread
177       correctly. Failure to do so made us fail to send log messages to
178       the controller in 0.2.1.16-rc, slowed down controller event
179       delivery in 0.2.7.3-rc and later, and crash with an assertion
180       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
181       Patch and diagnosis from "Vort".
184 Changes in version 0.3.1.8 - 2017-10-25
185   Tor 0.3.1.8 is the second stable release in the 0.3.1 series.
186   It includes several bugfixes, including a bugfix for a crash issue
187   that had affected relays under memory pressure. It also adds
188   a new directory authority, Bastet.
190   o Directory authority changes:
191     - Add "Bastet" as a ninth directory authority to the default list.
192       Closes ticket 23910.
193     - The directory authority "Longclaw" has changed its IP address.
194       Closes ticket 23592.
196   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
197     - Fix a timing-based assertion failure that could occur when the
198       circuit out-of-memory handler freed a connection's output buffer.
199       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
201   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
202     - Remove longclaw's IPv6 address, as it will soon change. Authority
203       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
204       3/8 directory authorities with IPv6 addresses, but there are also
205       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
207   o Minor features (geoip):
208     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
209       Country database.
211   o Minor bugfixes (compilation, backport from 0.3.2.2-alpha):
212     - Fix a compilation warning when building with zstd support on
213       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
214       and fixed by Andreas Stieger.
216   o Minor bugfixes (compression, backport from 0.3.2.2-alpha):
217     - Handle a pathological case when decompressing Zstandard data when
218       the output buffer size is zero. Fixes bug 23551; bugfix
219       on 0.3.1.1-alpha.
221   o Minor bugfixes (directory authority, backport from 0.3.2.1-alpha):
222     - Remove the length limit on HTTP status lines that authorities can
223       send in their replies. Fixes bug 23499; bugfix on 0.3.1.6-rc.
225   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
226     - Avoid a possible double close of a circuit by the intro point on
227       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
228       bugfix on 0.3.0.1-alpha.
230   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
231     - Clear the address when node_get_prim_orport() returns early.
232       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
234   o Minor bugfixes (unit tests, backport from 0.3.2.2-alpha):
235     - Fix additional channelpadding unit test failures by using mocked
236       time instead of actual time for all tests. Fixes bug 23608; bugfix
237       on 0.3.1.1-alpha.
240 Changes in version 0.3.2.2-alpha - 2017-09-29
241   Tor 0.3.2.2-alpha is the second release in the 0.3.2 series. This
242   release fixes several minor bugs in the new scheduler and next-
243   generation onion services; both features were newly added in the 0.3.2
244   series. Other fixes in this alpha include several fixes for non-fatal
245   tracebacks which would appear in logs.
247   With the aim to stabilise the 0.3.2 series by 15 December 2017, this
248   alpha does not contain any substantial new features. Minor features
249   include better testing and logging.
251   The following comprises the complete list of changes included
252   in tor-0.3.2.2-alpha:
254   o Major bugfixes (relay, crash, assertion failure):
255     - Fix a timing-based assertion failure that could occur when the
256       circuit out-of-memory handler freed a connection's output buffer.
257       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
259   o Major bugfixes (scheduler):
260     - If a channel is put into the scheduler's pending list, then it
261       starts closing, and then if the scheduler runs before it finishes
262       closing, the scheduler will get stuck trying to flush its cells
263       while the lower layers refuse to cooperate. Fix that race
264       condition by giving the scheduler an escape method. Fixes bug
265       23676; bugfix on 0.3.2.1-alpha.
267   o Minor features (build, compilation):
268     - The "check-changes" feature is now part of the "make check" tests;
269       we'll use it to try to prevent misformed changes files from
270       accumulating. Closes ticket 23564.
271     - Tor builds should now fail if there are any mismatches between the
272       C type representing a configuration variable and the C type the
273       data-driven parser uses to store a value there. Previously, we
274       needed to check these by hand, which sometimes led to mistakes.
275       Closes ticket 23643.
277   o Minor features (directory authorities):
278     - Remove longclaw's IPv6 address, as it will soon change. Authority
279       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
280       3/8 directory authorities with IPv6 addresses, but there are also
281       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
283   o Minor features (hidden service, circuit, logging):
284     - Improve logging of many callsite in the circuit subsystem to print
285       the circuit identifier(s).
286     - Log when we cleanup an intro point from a service so we know when
287       and for what reason it happened. Closes ticket 23604.
289   o Minor features (logging):
290     - Log more circuit information whenever we are about to try to
291       package a relay cell on a circuit with a nonexistent n_chan.
292       Attempt to diagnose ticket 8185.
293     - Improve info-level log identification of particular circuits, to
294       help with debugging. Closes ticket 23645.
296   o Minor features (relay):
297     - When choosing which circuits can be expired as unused, consider
298       circuits from clients even if those clients used regular CREATE
299       cells to make them; and do not consider circuits from relays even
300       if they were made with CREATE_FAST. Part of ticket 22805.
302   o Minor features (robustness):
303     - Change several fatal assertions when flushing buffers into non-
304       fatal assertions, to prevent any recurrence of 23690.
306   o Minor features (spec conformance, bridge, diagnostic):
307     - When handling the USERADDR command on an ExtOrPort, warn when the
308       transports provides a USERADDR with no port. In a future version,
309       USERADDR commands of this format may be rejected. Detects problems
310       related to ticket 23080.
312   o Minor features (testing):
313     - Add a unit test to make sure that our own generated platform
314       string will be accepted by directory authorities. Closes
315       ticket 22109.
317   o Minor bugfixes (bootstrapping):
318     - When warning about state file clock skew, report the correct
319       direction for the detected skew. Fixes bug 23606; bugfix
320       on 0.2.8.1-alpha.
321     - Avoid an assertion failure when logging a state file clock skew
322       very early in bootstrapping. Fixes bug 23607; bugfix
323       on 0.3.2.1-alpha.
325   o Minor bugfixes (build, compilation):
326     - Fix a compilation warning when building with zstd support on
327       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
328       and fixed by Andreas Stieger.
329     - When searching for OpenSSL, don't accept any OpenSSL library that
330       lacks TLSv1_1_method(): Tor doesn't build with those versions.
331       Additionally, look in /usr/local/opt/openssl, if it's present.
332       These changes together repair the default build on OSX systems
333       with Homebrew installed. Fixes bug 23602; bugfix on 0.2.7.2-alpha.
335   o Minor bugfixes (compression):
336     - Handle a pathological case when decompressing Zstandard data when
337       the output buffer size is zero. Fixes bug 23551; bugfix
338       on 0.3.1.1-alpha.
340   o Minor bugfixes (documentation):
341     - Fix manpage to not refer to the obsolete (and misspelled)
342       UseEntryGuardsAsDirectoryGuards parameter in the description of
343       NumDirectoryGuards. Fixes bug 23611; bugfix on 0.2.4.8-alpha.
345   o Minor bugfixes (hidden service v3):
346     - Don't log an assertion failure when we can't find the right
347       information to extend to an introduction point. In rare cases,
348       this could happen, causing a warning, even though tor would
349       recover gracefully. Fixes bug 23159; bugfix on 0.3.2.1-alpha.
350     - Pad RENDEZVOUS cell up to the size of the legacy cell which is
351       much bigger so the rendezvous point can't distinguish which hidden
352       service protocol is being used. Fixes bug 23420; bugfix
353       on 0.3.2.1-alpha.
355   o Minor bugfixes (hidden service, relay):
356     - Avoid a possible double close of a circuit by the intro point on
357       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
358       bugfix on 0.3.0.1-alpha.
360   o Minor bugfixes (logging, relay shutdown, annoyance):
361     - When a circuit is marked for close, do not attempt to package any
362       cells for channels on that circuit. Previously, we would detect
363       this condition lower in the call stack, when we noticed that the
364       circuit had no attached channel, and log an annoying message.
365       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
367   o Minor bugfixes (scheduler):
368     - When switching schedulers due to a consensus change, we didn't
369       give the new scheduler a chance to react to the consensus. Fix
370       that. Fixes bug 23537; bugfix on 0.3.2.1-alpha.
371     - Make the KISTSchedRunInterval option a non negative value. With
372       this, the way to disable KIST through the consensus is to set it
373       to 0. Fixes bug 23539; bugfix on 0.3.2.1-alpha.
374     - Only notice log the selected scheduler when we switch scheduler
375       types. Fixes bug 23552; bugfix on 0.3.2.1-alpha.
376     - Avoid a compilation warning on macOS in scheduler_ev_add() caused
377       by a different tv_usec data type. Fixes bug 23575; bugfix
378       on 0.3.2.1-alpha.
379     - Make a hard exit if tor is unable to pick a scheduler which can
380       happen if the user specifies a scheduler type that is not
381       supported and not other types in Schedulers. Fixes bug 23581;
382       bugfix on 0.3.2.1-alpha.
383     - Properly initialize the scheduler last run time counter so it is
384       not 0 at the first tick. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
386   o Minor bugfixes (testing):
387     - Capture and detect several "Result does not fit" warnings in unit
388       tests on platforms with 32-bit time_t. Fixes bug 21800; bugfix
389       on 0.2.9.3-alpha.
390     - Fix additional channelpadding unit test failures by using mocked
391       time instead of actual time for all tests. Fixes bug 23608; bugfix
392       on 0.3.1.1-alpha.
393     - The removal of some old scheduler options caused some tests to
394       fail on BSD systems. Assume current behavior is correct and make
395       the tests pass again. Fixes bug 23566; bugfix on 0.3.2.1-alpha.
397   o Code simplification and refactoring:
398     - Remove various ways of testing circuits and connections for
399       "clientness"; instead, favor channel_is_client(). Part of
400       ticket 22805.
402   o Deprecated features:
403     - The ReachableDirAddresses and ClientPreferIPv6DirPort options are
404       now deprecated; they do not apply to relays, and they have had no
405       effect on clients since 0.2.8.x. Closes ticket 19704.
407   o Documentation:
408     - HiddenServiceVersion man page entry wasn't mentioning the now
409       supported version 3. Fixes ticket 23580; bugfix on 0.3.2.1-alpha.
410     - Clarify that the Address option is entirely about setting an
411       advertised IPv4 address. Closes ticket 18891.
412     - Clarify the manpage's use of the term "address" to clarify what
413       kind of address is intended. Closes ticket 21405.
414     - Document that onion service subdomains are allowed, and ignored.
415       Closes ticket 18736.
418 Changes in version 0.3.2.1-alpha - 2017-09-18
419   Tor 0.3.2.1-alpha is the first release in the 0.3.2.x series. It
420   includes support for our next-generation ("v3") onion service
421   protocol, and adds a new circuit scheduler for more responsive
422   forwarding decisions from relays. There are also numerous other small
423   features and bugfixes here.
425   Below are the changes since Tor 0.3.1.7.
427   o Major feature (scheduler, channel):
428     - Tor now uses new schedulers to decide which circuits should
429       deliver cells first, in order to improve congestion at relays. The
430       first type is called "KIST" ("Kernel Informed Socket Transport"),
431       and is only available on Linux-like systems: it uses feedback from
432       the kernel to prevent the kernel's TCP buffers from growing too
433       full. The second new scheduler type is called "KISTLite": it
434       behaves the same as KIST, but runs on systems without kernel
435       support for inspecting TCP implementation details. The old
436       scheduler is still available, under the name "Vanilla". To change
437       the default scheduler preference order, use the new "Schedulers"
438       option. (The default preference order is "KIST,KISTLite,Vanilla".)
440       Matt Traudt implemented KIST, based on research by Rob Jansen,
441       John Geddes, Christ Wacek, Micah Sherr, and Paul Syverson. For
442       more information, see the design paper at
443       http://www.robgjansen.com/publications/kist-sec2014.pdf and the
444       followup implementation paper at https://arxiv.org/abs/1709.01044.
445       Closes ticket 12541.
447   o Major features (next-generation onion services):
448     - Tor now supports the next-generation onion services protocol for
449       clients and services! As part of this release, the core of
450       proposal 224 has been implemented and is available for
451       experimentation and testing by our users. This newer version of
452       onion services ("v3") features many improvements over the legacy
453       system, including:
455       a) Better crypto (replaced SHA1/DH/RSA1024
456       with SHA3/ed25519/curve25519)
458       b) Improved directory protocol, leaking much less information to
459       directory servers.
461       c) Improved directory protocol, with smaller surface for
462       targeted attacks.
464       d) Better onion address security against impersonation.
466       e) More extensible introduction/rendezvous protocol.
468       f) A cleaner and more modular codebase.
470       You can identify a next-generation onion address by its length:
471       they are 56 characters long, as in
472       "4acth47i6kxnvkewtm6q7ib2s3ufpo5sqbsnzjpbi7utijcltosqemad.onion".
474       In the future, we will release more options and features for v3
475       onion services, but we first need a testing period, so that the
476       current codebase matures and becomes more robust. Planned features
477       include: offline keys, advanced client authorization, improved
478       guard algorithms, and statistics. For full details, see
479       proposal 224.
481       Legacy ("v2") onion services will still work for the foreseeable
482       future, and will remain the default until this new codebase gets
483       tested and hardened. Service operators who want to experiment with
484       the new system can use the 'HiddenServiceVersion 3' torrc
485       directive along with the regular onion service configuration
486       options. We will publish a blog post about this new feature
487       soon! Enjoy!
489   o Major bugfixes (usability, control port):
490     - Report trusted clock skew indications as bootstrap errors, so
491       controllers can more easily alert users when their clocks are
492       wrong. Fixes bug 23506; bugfix on 0.1.2.6-alpha.
494   o Minor features (bug detection):
495     - Log a warning message with a stack trace for any attempt to call
496       get_options() during option validation. This pattern has caused
497       subtle bugs in the past. Closes ticket 22281.
499   o Minor features (client):
500     - You can now use Tor as a tunneled HTTP proxy: use the new
501       HTTPTunnelPort option to open a port that accepts HTTP CONNECT
502       requests. Closes ticket 22407.
503     - Add an extra check to make sure that we always use the newer guard
504       selection code for picking our guards. Closes ticket 22779.
505     - When downloading (micro)descriptors, don't split the list into
506       multiple requests unless we want at least 32 descriptors.
507       Previously, we split at 4, not 32, which led to significant
508       overhead in HTTP request size and degradation in compression
509       performance. Closes ticket 23220.
511   o Minor features (command line):
512     - Add a new commandline option, --key-expiration, which prints when
513       the current signing key is going to expire. Implements ticket
514       17639; patch by Isis Lovecruft.
516   o Minor features (control port):
517     - If an application tries to use the control port as an HTTP proxy,
518       respond with a meaningful "This is the Tor control port" message,
519       and log the event. Closes ticket 1667. Patch from Ravi
520       Chandra Padmala.
521     - Provide better error message for GETINFO desc/(id|name) when not
522       fetching router descriptors. Closes ticket 5847. Patch by
523       Kevin Butler.
524     - Add GETINFO "{desc,md}/download-enabled", to inform the controller
525       whether Tor will try to download router descriptors and
526       microdescriptors respectively. Closes ticket 22684.
527     - Added new GETINFO targets "ip-to-country/{ipv4,ipv6}-available",
528       so controllers can tell whether the geoip databases are loaded.
529       Closes ticket 23237.
530     - Adds a timestamp field to the CIRC_BW and STREAM_BW bandwidth
531       events. Closes ticket 19254. Patch by "DonnchaC".
533   o Minor features (development support):
534     - Developers can now generate a call-graph for Tor using the
535       "calltool" python program, which post-processes object dumps. It
536       should work okay on many Linux and OSX platforms, and might work
537       elsewhere too. To run it, install calltool from
538       https://gitweb.torproject.org/user/nickm/calltool.git and run
539       "make callgraph". Closes ticket 19307.
541   o Minor features (ed25519):
542     - Add validation function to checks for torsion components in
543       ed25519 public keys, used by prop224 client-side code. Closes
544       ticket 22006. Math help by Ian Goldberg.
546   o Minor features (exit relay, DNS):
547     - Improve the clarity and safety of the log message from evdns when
548       receiving an apparently spoofed DNS reply. Closes ticket 3056.
550   o Minor features (integration, hardening):
551     - Add a new NoExec option to prevent Tor from running other
552       programs. When this option is set to 1, Tor will never try to run
553       another program, regardless of the settings of
554       PortForwardingHelper, ClientTransportPlugin, or
555       ServerTransportPlugin. Once NoExec is set, it cannot be disabled
556       without restarting Tor. Closes ticket 22976.
558   o Minor features (logging):
559     - Improve the warning message for specifying a relay by nickname.
560       The previous message implied that nickname registration was still
561       part of the Tor network design, which it isn't. Closes
562       ticket 20488.
563     - If the sandbox filter fails to load, suggest to the user that
564       their kernel might not support seccomp2. Closes ticket 23090.
566   o Minor features (portability):
567     - Check at configure time whether uint8_t is the same type as
568       unsigned char. Lots of existing code already makes this
569       assumption, and there could be strict aliasing issues if the
570       assumption is violated. Closes ticket 22410.
572   o Minor features (relay, configuration):
573     - Reject attempts to use relative file paths when RunAsDaemon is
574       set. Previously, Tor would accept these, but the directory-
575       changing step of RunAsDaemon would give strange and/or confusing
576       results. Closes ticket 22731.
578   o Minor features (startup, safety):
579     - When configured to write a PID file, Tor now exits if it is unable
580       to do so. Previously, it would warn and continue. Closes
581       ticket 20119.
583   o Minor features (static analysis):
584     - The BUG() macro has been changed slightly so that Coverity no
585       longer complains about dead code if the bug is impossible. Closes
586       ticket 23054.
588   o Minor features (testing):
589     - The default chutney network tests now include tests for the v3
590       hidden service design. Make sure you have the latest version of
591       chutney if you want to run these. Closes ticket 22437.
592     - Add a unit test to verify that we can parse a hardcoded v2 hidden
593       service descriptor. Closes ticket 15554.
595   o Minor bugfixes (certificate handling):
596     - Fix a time handling bug in Tor certificates set to expire after
597       the year 2106. Fixes bug 23055; bugfix on 0.3.0.1-alpha. Found by
598       Coverity as CID 1415728.
600   o Minor bugfixes (client, usability):
601     - Refrain from needlessly rejecting SOCKS5-with-hostnames and
602       SOCKS4a requests that contain IP address strings, even when
603       SafeSocks in enabled, as this prevents user from connecting to
604       known IP addresses without relying on DNS for resolving. SafeSocks
605       still rejects SOCKS connections that connect to IP addresses when
606       those addresses are _not_ encoded as hostnames. Fixes bug 22461;
607       bugfix on Tor 0.2.6.2-alpha.
609   o Minor bugfixes (code correctness):
610     - Call htons() in extend_cell_format() for encoding a 16-bit value.
611       Previously we used ntohs(), which happens to behave the same on
612       all the platforms we support, but which isn't really correct.
613       Fixes bug 23106; bugfix on 0.2.4.8-alpha.
614     - For defense-in-depth, make the controller's write_escaped_data()
615       function robust to extremely long inputs. Fixes bug 19281; bugfix
616       on 0.1.1.1-alpha. Reported by Guido Vranken.
618   o Minor bugfixes (compilation):
619     - Fix unused-variable warnings in donna's Curve25519 SSE2 code.
620       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
622   o Minor bugfixes (consensus expiry):
623     - Check for adequate directory information correctly. Previously, Tor
624       would reconsider whether it had sufficient directory information
625       every 2 minutes. Fixes bug 23091; bugfix on 0.2.0.19-alpha.
627   o Minor bugfixes (directory protocol):
628     - Directory servers now include a "Date:" http header for response
629       codes other than 200. Clients starting with a skewed clock and a
630       recent consensus were getting "304 Not modified" responses from
631       directory authorities, so without the Date header, the client
632       would never hear about a wrong clock. Fixes bug 23499; bugfix
633       on 0.0.8rc1.
634     - Make clients wait for 6 seconds before trying to download a
635       consensus from an authority. Fixes bug 17750; bugfix
636       on 0.2.8.1-alpha.
638   o Minor bugfixes (DoS-resistance):
639     - If future code asks if there are any running bridges, without
640       checking if bridges are enabled, log a BUG warning rather than
641       crashing. Fixes bug 23524; bugfix on 0.3.0.1-alpha.
643   o Minor bugfixes (format strictness):
644     - Restrict several data formats to decimal. Previously, the
645       BuildTimeHistogram entries in the state file, the "bw=" entries in
646       the bandwidth authority file, and the process IDs passed to the
647       __OwningControllerProcess option could all be specified in hex or
648       octal as well as in decimal. This was not an intentional feature.
649       Fixes bug 22802; bugfixes on 0.2.2.1-alpha, 0.2.2.2-alpha,
650       and 0.2.2.28-beta.
652   o Minor bugfixes (heartbeat):
653     - If we fail to write a heartbeat message, schedule a retry for the
654       minimum heartbeat interval number of seconds in the future. Fixes
655       bug 19476; bugfix on 0.2.3.1-alpha.
657   o Minor bugfixes (linux seccomp2 sandbox, logging):
658     - Fix some messages on unexpected errors from the seccomp2 library.
659       Fixes bug 22750; bugfix on 0.2.5.1-alpha. Patch from "cypherpunks".
661   o Minor bugfixes (logging):
662     - Remove duplicate log messages regarding opening non-local
663       SocksPorts upon parsing config and opening listeners at startup.
664       Fixes bug 4019; bugfix on 0.2.3.3-alpha.
665     - Use a more comprehensible log message when telling the user
666       they've excluded every running exit node. Fixes bug 7890; bugfix
667       on 0.2.2.25-alpha.
668     - When logging the number of descriptors we intend to download per
669       directory request, do not log a number higher than then the number
670       of descriptors we're fetching in total. Fixes bug 19648; bugfix
671       on 0.1.1.8-alpha.
672     - When warning about a directory owned by the wrong user, log the
673       actual name of the user owning the directory. Previously, we'd log
674       the name of the process owner twice. Fixes bug 23487; bugfix
675       on 0.2.9.1-alpha.
676     - The tor specification says hop counts are 1-based, so fix two log
677       messages that mistakenly logged 0-based hop counts. Fixes bug
678       18982; bugfix on 0.2.6.2-alpha and 0.2.4.5-alpha. Patch by teor.
679       Credit to Xiaofan Li for reporting this issue.
681   o Minor bugfixes (portability):
682     - Stop using the PATH_MAX variable, which is not defined on GNU
683       Hurd. Fixes bug 23098; bugfix on 0.3.1.1-alpha.
685   o Minor bugfixes (relay):
686     - When uploading our descriptor for the first time after startup,
687       report the reason for uploading as "Tor just started" rather than
688       leaving it blank. Fixes bug 22885; bugfix on 0.2.3.4-alpha.
689     - Avoid unnecessary calls to directory_fetches_from_authorities() on
690       relays, to prevent spurious address resolutions and descriptor
691       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
692       bugfix on in 0.2.8.1-alpha.
694   o Minor bugfixes (tests):
695     - Fix a broken unit test for the OutboundAddress option: the parsing
696       function was never returning an error on failure. Fixes bug 23366;
697       bugfix on 0.3.0.3-alpha.
698     - Fix a signed-integer overflow in the unit tests for
699       dir/download_status_random_backoff, which was untriggered until we
700       fixed bug 17750. Fixes bug 22924; bugfix on 0.2.9.1-alpha.
702   o Minor bugfixes (usability, control port):
703     - Stop making an unnecessary routerlist check in NETINFO clock skew
704       detection; this was preventing clients from reporting NETINFO clock
705       skew to controllers. Fixes bug 23532; bugfix on 0.2.4.4-alpha.
707   o Code simplification and refactoring:
708     - Extract the code for handling newly-open channels into a separate
709       function from the general code to handle channel state
710       transitions. This change simplifies our callgraph, reducing the
711       size of the largest strongly connected component by roughly a
712       factor of two. Closes ticket 22608.
713     - Remove dead code for largely unused statistics on the number of
714       times we've attempted various public key operations. Fixes bug
715       19871; bugfix on 0.1.2.4-alpha. Fix by Isis Lovecruft.
716     - Remove several now-obsolete functions for asking about old
717       variants directory authority status. Closes ticket 22311; patch
718       from "huyvq".
719     - Remove some of the code that once supported "Named" and "Unnamed"
720       routers. Authorities no longer vote for these flags. Closes
721       ticket 22215.
722     - Rename the obsolete malleable hybrid_encrypt functions used in TAP
723       and old hidden services, to indicate that they aren't suitable for
724       new protocols or formats. Closes ticket 23026.
725     - Replace our STRUCT_OFFSET() macro with offsetof(). Closes ticket
726       22521. Patch from Neel Chauhan.
727     - Split the enormous circuit_send_next_onion_skin() function into
728       multiple subfunctions. Closes ticket 22804.
729     - Split the portions of the buffer.c module that handle particular
730       protocols into separate modules. Part of ticket 23149.
731     - Use our test macros more consistently, to produce more useful
732       error messages when our unit tests fail. Add coccinelle patches to
733       allow us to re-check for test macro uses. Closes ticket 22497.
735   o Deprecated features:
736     - Deprecate HTTPProxy/HTTPProxyAuthenticator config options. They
737       only applies to direct unencrypted HTTP connections to your
738       directory server, which your Tor probably isn't using. Closes
739       ticket 20575.
741   o Documentation:
742     - Clarify in the manual that "Sandbox 1" is only supported on Linux
743       kernels. Closes ticket 22677.
744     - Document all values of PublishServerDescriptor in the manpage.
745       Closes ticket 15645.
746     - Improve the documentation for the directory port part of the
747       DirAuthority line. Closes ticket 20152.
748     - Restore documentation for the authorities' "approved-routers"
749       file. Closes ticket 21148.
751   o Removed features:
752     - The AllowDotExit option has been removed as unsafe. It has been
753       deprecated since 0.2.9.2-alpha. Closes ticket 23426.
754     - The ClientDNSRejectInternalAddresses flag can no longer be set on
755       non-testing networks. It has been deprecated since 0.2.9.2-alpha.
756       Closes ticket 21031.
757     - The controller API no longer includes an AUTHDIR_NEWDESCS event:
758       nobody was using it any longer. Closes ticket 22377.
761 Changes in version 0.2.8.15 - 2017-09-18
762   Tor 0.2.8.15 backports a collection of bugfixes from later
763   Tor series.
765   Most significantly, it includes a fix for TROVE-2017-008, a
766   security bug that affects hidden services running with the
767   SafeLogging option disabled. For more information, see
768   https://trac.torproject.org/projects/tor/ticket/23490
770   Note that Tor 0.2.8.x will no longer be supported after 1 Jan
771   2018.  We suggest that you upgrade to the latest stable release if
772   possible.  If you can't, we recommend that you upgrade at least to
773   0.2.9, which will be supported until 2020.
775   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
776     - Avoid an assertion failure bug affecting our implementation of
777       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
778       handling of "0xx" differs from what we had expected. Fixes bug
779       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
781   o Minor features:
782     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
783       Country database.
785   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
786     - Backport a fix for an "unused variable" warning that appeared
787       in some versions of mingw. Fixes bug 22838; bugfix on
788       0.2.8.1-alpha.
790   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
791     - Fix a memset() off the end of an array when packing cells. This
792       bug should be harmless in practice, since the corrupted bytes are
793       still in the same structure, and are always padding bytes,
794       ignored, or immediately overwritten, depending on compiler
795       behavior. Nevertheless, because the memset()'s purpose is to make
796       sure that any other cell-handling bugs can't expose bytes to the
797       network, we need to fix it. Fixes bug 22737; bugfix on
798       0.2.4.11-alpha. Fixes CID 1401591.
800   o Build features (backport from 0.3.1.5-alpha):
801     - Tor's repository now includes a Travis Continuous Integration (CI)
802       configuration file (.travis.yml). This is meant to help new
803       developers and contributors who fork Tor to a Github repository be
804       better able to test their changes, and understand what we expect
805       to pass. To use this new build feature, you must fork Tor to your
806       Github account, then go into the "Integrations" menu in the
807       repository settings for your fork and enable Travis, then push
808       your changes. Closes ticket 22636.
811 Changes in version 0.2.9.12 - 2017-09-18
812   Tor 0.2.9.12 backports a collection of bugfixes from later
813   Tor series.
815   Most significantly, it includes a fix for TROVE-2017-008, a
816   security bug that affects hidden services running with the
817   SafeLogging option disabled. For more information, see
818   https://trac.torproject.org/projects/tor/ticket/23490
820   o Major features (security, backport from 0.3.0.2-alpha):
821     - Change the algorithm used to decide DNS TTLs on client and server
822       side, to better resist DNS-based correlation attacks like the
823       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
824       Feamster. Now relays only return one of two possible DNS TTL
825       values, and clients are willing to believe DNS TTL values up to 3
826       hours long. Closes ticket 19769.
828   o Major bugfixes (crash, directory connections, backport from 0.3.0.5-rc):
829     - Fix a rare crash when sending a begin cell on a circuit whose
830       linked directory connection had already been closed. Fixes bug
831       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
833   o Major bugfixes (DNS, backport from 0.3.0.2-alpha):
834     - Fix a bug that prevented exit nodes from caching DNS records for
835       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
837   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
838     - Fix a typo that had prevented TPROXY-based transparent proxying
839       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
840       Patch from "d4fq0fQAgoJ".
842   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
843     - Avoid an assertion failure bug affecting our implementation of
844       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
845       handling of "0xx" differs from what we had expected. Fixes bug
846       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
848   o Minor features (code style, backport from 0.3.1.3-alpha):
849     - Add "Falls through" comments to our codebase, in order to silence
850       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
851       Stieger. Closes ticket 22446.
853   o Minor features (geoip):
854     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
855       Country database.
857   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.1-alpha):
858     - Roll over monthly accounting at the configured hour and minute,
859       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
860       Found by Andrey Karpov with PVS-Studio.
862   o Minor bugfixes (compilation, backport from 0.3.1.5-alpha):
863     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
864       bugfix on 0.2.8.1-alpha.
865     - Fix warnings when building with libscrypt and openssl scrypt support
866       on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
867     - When building with certain versions the mingw C header files, avoid
868       float-conversion warnings when calling the C functions isfinite(),
869       isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha.
871   o Minor bugfixes (compilation, backport from 0.3.1.7):
872     - Avoid compiler warnings in the unit tests for running tor_sscanf()
873       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
875   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
876     - Backport a fix for an "unused variable" warning that appeared
877       in some versions of mingw. Fixes bug 22838; bugfix on
878       0.2.8.1-alpha.
880   o Minor bugfixes (controller, backport from 0.3.1.7):
881     - Do not crash when receiving a HSPOST command with an empty body.
882       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
883     - Do not crash when receiving a POSTDESCRIPTOR command with an
884       empty body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
886   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
887     - Avoid Coverity build warnings related to our BUG() macro. By
888       default, Coverity treats BUG() as the Linux kernel does: an
889       instant abort(). We need to override that so our BUG() macro
890       doesn't prevent Coverity from analyzing functions that use it.
891       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
893   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
894     - Fix a memset() off the end of an array when packing cells. This
895       bug should be harmless in practice, since the corrupted bytes are
896       still in the same structure, and are always padding bytes,
897       ignored, or immediately overwritten, depending on compiler
898       behavior. Nevertheless, because the memset()'s purpose is to make
899       sure that any other cell-handling bugs can't expose bytes to the
900       network, we need to fix it. Fixes bug 22737; bugfix on
901       0.2.4.11-alpha. Fixes CID 1401591.
903   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
904     - When setting the maximum number of connections allowed by the OS,
905       always allow some extra file descriptors for other files. Fixes
906       bug 22797; bugfix on 0.2.0.10-alpha.
908   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
909     - Avoid a sandbox failure when trying to re-bind to a socket and
910       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
912   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
913     - Permit the fchmod system call, to avoid crashing on startup when
914       starting with the seccomp2 sandbox and an unexpected set of
915       permissions on the data directory or its contents. Fixes bug
916       22516; bugfix on 0.2.5.4-alpha.
918   o Minor bugfixes (relay, backport from 0.3.0.5-rc):
919     - Avoid a double-marked-circuit warning that could happen when we
920       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
921       on 0.1.0.1-rc.
923   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
924     - Reject version numbers with non-numeric prefixes (such as +, -, or
925       whitespace). Disallowing whitespace prevents differential version
926       parsing between POSIX-based and Windows platforms. Fixes bug 21507
927       and part of 21508; bugfix on 0.0.8pre1.
929   o Build features (backport from 0.3.1.5-alpha):
930     - Tor's repository now includes a Travis Continuous Integration (CI)
931       configuration file (.travis.yml). This is meant to help new
932       developers and contributors who fork Tor to a Github repository be
933       better able to test their changes, and understand what we expect
934       to pass. To use this new build feature, you must fork Tor to your
935       Github account, then go into the "Integrations" menu in the
936       repository settings for your fork and enable Travis, then push
937       your changes. Closes ticket 22636.
940 Changes in version 0.3.0.11 - 2017-09-18
941   Tor 0.3.0.11 backports a collection of bugfixes from Tor the 0.3.1
942   series.
944   Most significantly, it includes a fix for TROVE-2017-008, a
945   security bug that affects hidden services running with the
946   SafeLogging option disabled. For more information, see
947   https://trac.torproject.org/projects/tor/ticket/23490
949   o Minor features (code style, backport from 0.3.1.7):
950     - Add "Falls through" comments to our codebase, in order to silence
951       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
952       Stieger. Closes ticket 22446.
954   o Minor features:
955     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
956       Country database.
958   o Minor bugfixes (compilation, backport from 0.3.1.7):
959     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
960       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
962   o Minor bugfixes (controller, backport from 0.3.1.7):
963     - Do not crash when receiving a HSPOST command with an empty body.
964       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
965     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
966       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
968   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
969     - When setting the maximum number of connections allowed by the OS,
970       always allow some extra file descriptors for other files. Fixes
971       bug 22797; bugfix on 0.2.0.10-alpha.
973   o Minor bugfixes (logging, relay, backport from 0.3.1.6-rc):
974     - Remove a forgotten debugging message when an introduction point
975       successfully establishes a hidden service prop224 circuit with
976       a client.
977     - Change three other log_warn() for an introduction point to
978       protocol warnings, because they can be failure from the network
979       and are not relevant to the operator. Fixes bug 23078; bugfix on
980       0.3.0.1-alpha and 0.3.0.2-alpha.
983 Changes in version 0.3.1.7 - 2017-09-18
984   Tor 0.3.1.7 is the first stable release in the 0.3.1 series.
986   With the 0.3.1 series, Tor now serves and downloads directory
987   information in more compact formats, to save on bandwidth overhead. It
988   also contains a new padding system to resist netflow-based traffic
989   analysis, and experimental support for building parts of Tor in Rust
990   (though no parts of Tor are in Rust yet). There are also numerous
991   small features, bugfixes on earlier release series, and groundwork for
992   the hidden services revamp of 0.3.2.
994   This release also includes a fix for TROVE-2017-008, a security bug
995   that affects hidden services running with the SafeLogging option
996   disabled. For more information, see
997   https://trac.torproject.org/projects/tor/ticket/23490
999   Per our stable release policy, we plan to support each stable release
1000   series for at least the next nine months, or for three months after
1001   the first stable release of the next series: whichever is longer. If
1002   you need a release with long-term support, we recommend that you stay
1003   with the 0.2.9 series.
1005   Below is a list of the changes since 0.3.1.6-rc. For a list of all
1006   changes since 0.3.0, see the ReleaseNotes file.
1008   o Major bugfixes (security, hidden services, loggging):
1009     - Fix a bug where we could log uninitialized stack when a certain
1010       hidden service error occurred while SafeLogging was disabled.
1011       Fixes bug #23490; bugfix on 0.2.7.2-alpha. This is also tracked as
1012       TROVE-2017-008 and CVE-2017-0380.
1014   o Minor features (defensive programming):
1015     - Create a pair of consensus parameters, nf_pad_tor2web and
1016       nf_pad_single_onion, to disable netflow padding in the consensus
1017       for non-anonymous connections in case the overhead is high. Closes
1018       ticket 17857.
1020   o Minor features (diagnostic):
1021     - Add a stack trace to the bug warnings that can be logged when
1022       trying to send an outgoing relay cell with n_chan == 0. Diagnostic
1023       attempt for bug 23105.
1025   o Minor features (geoip):
1026     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
1027       Country database.
1029   o Minor bugfixes (compilation):
1030     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
1031       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
1033   o Minor bugfixes (controller):
1034     - Do not crash when receiving a HSPOST command with an empty body.
1035       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
1036     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
1037       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
1039   o Minor bugfixes (relay):
1040     - Inform the geoip and rephist modules about all requests, even on
1041       relays that are only fetching microdescriptors. Fixes a bug
1042       related to 21585; bugfix on 0.3.0.1-alpha.
1044   o Minor bugfixes (unit tests):
1045     - Fix a channelpadding unit test failure on slow systems by using
1046       mocked time instead of actual time. Fixes bug 23077; bugfix
1047       on 0.3.1.1-alpha.
1050 Changes in version 0.3.1.6-rc - 2017-09-05
1051   Tor 0.3.1.6-rc fixes a few small bugs and annoyances in the 0.3.1
1052   release series, including a bug that produced weird behavior on
1053   Windows directory caches.
1055   This is the first release candidate in the Tor 0.3.1 series. If we
1056   find no new bugs or regressions here, the first stable 0.3.1 release
1057   will be nearly identical to it.
1059   o Major bugfixes (windows, directory cache):
1060     - On Windows, do not try to delete cached consensus documents and
1061       diffs before they are unmapped from memory--Windows won't allow
1062       that. Instead, allow the consensus cache directory to grow larger,
1063       to hold files that might need to stay around longer. Fixes bug
1064       22752; bugfix on 0.3.1.1-alpha.
1066   o Minor features (directory authority):
1067     - Improve the message that authorities report to relays that present
1068       RSA/Ed25519 keypairs that conflict with previously pinned keys.
1069       Closes ticket 22348.
1071   o Minor features (geoip):
1072     - Update geoip and geoip6 to the August 3 2017 Maxmind GeoLite2
1073       Country database.
1075   o Minor features (testing):
1076     - Add more tests for compression backend initialization. Closes
1077       ticket 22286.
1079   o Minor bugfixes (directory cache):
1080     - Fix a memory leak when recovering space in the consensus cache.
1081       Fixes bug 23139; bugfix on 0.3.1.1-alpha.
1083   o Minor bugfixes (hidden service):
1084     - Increase the number of circuits that a service is allowed to
1085       open over a specific period of time. The value was lower than it
1086       should be (8 vs 12) in the normal case of 3 introduction points.
1087       Fixes bug 22159; bugfix on 0.3.0.5-rc.
1088     - Fix a BUG warning during HSv3 descriptor decoding that could be
1089       cause by a specially crafted descriptor. Fixes bug 23233; bugfix
1090       on 0.3.0.1-alpha. Bug found by "haxxpop".
1091     - Rate-limit the log messages if we exceed the maximum number of
1092       allowed intro circuits. Fixes bug 22159; bugfix on 0.3.1.1-alpha.
1094   o Minor bugfixes (logging, relay):
1095     - Remove a forgotten debugging message when an introduction point
1096       successfully establishes a hidden service prop224 circuit with
1097       a client.
1098     - Change three other log_warn() for an introduction point to
1099       protocol warnings, because they can be failure from the network
1100       and are not relevant to the operator. Fixes bug 23078; bugfix on
1101       0.3.0.1-alpha and 0.3.0.2-alpha.
1103   o Minor bugfixes (relay):
1104     - When a relay is not running as a directory cache, it will no
1105       longer generate compressed consensuses and consensus diff
1106       information. Previously, this was a waste of disk and CPU. Fixes
1107       bug 23275; bugfix on 0.3.1.1-alpha.
1109   o Minor bugfixes (robustness, error handling):
1110     - Improve our handling of the cases where OpenSSL encounters a
1111       memory error while encoding keys and certificates. We haven't
1112       observed these errors in the wild, but if they do happen, we now
1113       detect and respond better. Fixes bug 19418; bugfix on all versions
1114       of Tor. Reported by Guido Vranken.
1116   o Minor bugfixes (stability):
1117     - Avoid crashing on a double-free when unable to load or process an
1118       included file. Fixes bug 23155; bugfix on 0.3.1.1-alpha. Found
1119       with the clang static analyzer.
1121   o Minor bugfixes (testing):
1122     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
1123       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
1124     - Port the hs_ntor handshake test to work correctly with recent
1125       versions of the pysha3 module. Fixes bug 23071; bugfix
1126       on 0.3.1.1-alpha.
1128   o Minor bugfixes (Windows service):
1129     - When running as a Windows service, set the ID of the main thread
1130       correctly. Failure to do so made us fail to send log messages to
1131       the controller in 0.2.1.16-rc, slowed down controller event
1132       delivery in 0.2.7.3-rc and later, and crash with an assertion
1133       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
1134       Patch and diagnosis from "Vort".
1137 Changes in version 0.3.0.10 - 2017-08-02
1138    Tor 0.3.0.10 backports a collection of small-to-medium bugfixes
1139    from the current Tor alpha series. OpenBSD users and TPROXY users
1140    should upgrade; others are probably okay sticking with 0.3.0.9.
1142   o Major features (build system, continuous integration, backport from 0.3.1.5-alpha):
1143     - Tor's repository now includes a Travis Continuous Integration (CI)
1144       configuration file (.travis.yml). This is meant to help new
1145       developers and contributors who fork Tor to a Github repository be
1146       better able to test their changes, and understand what we expect
1147       to pass. To use this new build feature, you must fork Tor to your
1148       Github account, then go into the "Integrations" menu in the
1149       repository settings for your fork and enable Travis, then push
1150       your changes. Closes ticket 22636.
1152   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
1153     - Fix a typo that had prevented TPROXY-based transparent proxying
1154       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
1155       Patch from "d4fq0fQAgoJ".
1157   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
1158     - Avoid an assertion failure bug affecting our implementation of
1159       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
1160       handling of "0xbar" differs from what we had expected. Fixes bug
1161       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
1163   o Minor features (backport from 0.3.1.5-alpha):
1164     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
1165       Country database.
1167   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.2-alpha):
1168     - Roll over monthly accounting at the configured hour and minute,
1169       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
1170       Found by Andrey Karpov with PVS-Studio.
1172   o Minor bugfixes (compilation warnings, backport from 0.3.1.5-alpha):
1173     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
1174       bugfix on 0.2.8.1-alpha.
1175     - Fix warnings when building with libscrypt and openssl scrypt
1176       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
1177     - When building with certain versions of the mingw C header files,
1178       avoid float-conversion warnings when calling the C functions
1179       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
1180       on 0.2.8.1-alpha.
1182   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
1183     - Backport a fix for an "unused variable" warning that appeared
1184       in some versions of mingw. Fixes bug 22838; bugfix on
1185       0.2.8.1-alpha.
1187   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
1188     - Avoid Coverity build warnings related to our BUG() macro. By
1189       default, Coverity treats BUG() as the Linux kernel does: an
1190       instant abort(). We need to override that so our BUG() macro
1191       doesn't prevent Coverity from analyzing functions that use it.
1192       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
1194   o Minor bugfixes (directory authority, backport from 0.3.1.1-alpha):
1195     - When rejecting a router descriptor for running an obsolete version
1196       of Tor without ntor support, warn about the obsolete tor version,
1197       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
1199   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
1200     - Avoid a sandbox failure when trying to re-bind to a socket and
1201       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
1203   o Minor bugfixes (unit tests, backport from 0.3.1.5-alpha)
1204     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
1205       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
1208 Changes in version 0.3.1.5-alpha - 2017-08-01
1209   Tor 0.3.1.5-alpha improves the performance of consensus diff
1210   calculation, fixes a crash bug on older versions of OpenBSD, and fixes
1211   several other bugs. If no serious bugs are found in this version, the
1212   next version will be a release candidate.
1214   This release also marks the end of support for the Tor 0.2.4.x,
1215   0.2.6.x, and 0.2.7.x release series. Those releases will receive no
1216   further bug or security fixes. Anyone still running or distributing
1217   one of those versions should upgrade.
1219   o Major features (build system, continuous integration):
1220     - Tor's repository now includes a Travis Continuous Integration (CI)
1221       configuration file (.travis.yml). This is meant to help new
1222       developers and contributors who fork Tor to a Github repository be
1223       better able to test their changes, and understand what we expect
1224       to pass. To use this new build feature, you must fork Tor to your
1225       Github account, then go into the "Integrations" menu in the
1226       repository settings for your fork and enable Travis, then push
1227       your changes. Closes ticket 22636.
1229   o Major bugfixes (openbsd, denial-of-service):
1230     - Avoid an assertion failure bug affecting our implementation of
1231       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
1232       handling of "0xbar" differs from what we had expected. Fixes bug
1233       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
1235   o Major bugfixes (relay, performance):
1236     - Perform circuit handshake operations at a higher priority than we
1237       use for consensus diff creation and compression. This should
1238       prevent circuits from starving when a relay or bridge receives a
1239       new consensus, especially on lower-powered machines. Fixes bug
1240       22883; bugfix on 0.3.1.1-alpha.
1242   o Minor features (bridge authority):
1243     - Add "fingerprint" lines to the networkstatus-bridges file produced
1244       by bridge authorities. Closes ticket 22207.
1246   o Minor features (directory cache, consensus diff):
1247     - Add a new MaxConsensusAgeForDiffs option to allow directory cache
1248       operators with low-resource environments to adjust the number of
1249       consensuses they'll store and generate diffs from. Most cache
1250       operators should leave it unchanged. Helps to work around
1251       bug 22883.
1253   o Minor features (geoip):
1254     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
1255       Country database.
1257   o Minor features (relay, performance):
1258     - Always start relays with at least two worker threads, to prevent
1259       priority inversion on slow tasks. Part of the fix for bug 22883.
1260     - Allow background work to be queued with different priorities, so
1261       that a big pile of slow low-priority jobs will not starve out
1262       higher priority jobs. This lays the groundwork for a fix for
1263       bug 22883.
1265   o Minor bugfixes (build system, rust):
1266     - Fix a problem where Rust toolchains were not being found when
1267       building without --enable-cargo-online-mode, due to setting the
1268       $HOME environment variable instead of $CARGO_HOME. Fixes bug
1269       22830; bugfix on 0.3.1.1-alpha. Fix by Chelsea Komlo.
1271   o Minor bugfixes (compatibility, zstd):
1272     - Write zstd epilogues correctly when the epilogue requires
1273       reallocation of the output buffer, even with zstd 1.3.0.
1274       (Previously, we worked on 1.2.0 and failed with 1.3.0). Fixes bug
1275       22927; bugfix on 0.3.1.1-alpha.
1277   o Minor bugfixes (compilation warnings):
1278     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug
1279       22915; bugfix on 0.2.8.1-alpha.
1280     - Fix warnings when building with libscrypt and openssl scrypt
1281       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
1282     - Compile correctly when both openssl 1.1.0 and libscrypt are
1283       detected. Previously this would cause an error. Fixes bug 22892;
1284       bugfix on 0.3.1.1-alpha.
1285     - When building with certain versions of the mingw C header files,
1286       avoid float-conversion warnings when calling the C functions
1287       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
1288       on 0.2.8.1-alpha.
1290   o Minor bugfixes (coverity build support):
1291     - Avoid Coverity build warnings related to our BUG() macro. By
1292       default, Coverity treats BUG() as the Linux kernel does: an
1293       instant abort(). We need to override that so our BUG() macro
1294       doesn't prevent Coverity from analyzing functions that use it.
1295       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
1297   o Minor bugfixes (directory authority):
1298     - When a directory authority rejects a descriptor or extrainfo with
1299       a given digest, mark that digest as undownloadable, so that we do
1300       not attempt to download it again over and over. We previously
1301       tried to avoid downloading such descriptors by other means, but we
1302       didn't notice if we accidentally downloaded one anyway. This
1303       behavior became problematic in 0.2.7.2-alpha, when authorities
1304       began pinning Ed25519 keys. Fixes bug 22349; bugfix
1305       on 0.2.1.19-alpha.
1307   o Minor bugfixes (error reporting, windows):
1308     - When formatting Windows error messages, use the English format to
1309       avoid codepage issues. Fixes bug 22520; bugfix on 0.1.2.8-alpha.
1310       Patch from "Vort".
1312   o Minor bugfixes (file limits, osx):
1313     - When setting the maximum number of connections allowed by the OS,
1314       always allow some extra file descriptors for other files. Fixes
1315       bug 22797; bugfix on 0.2.0.10-alpha.
1317   o Minor bugfixes (linux seccomp2 sandbox):
1318     - Avoid a sandbox failure when trying to re-bind to a socket and
1319       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
1321   o Minor bugfixes (memory leaks):
1322     - Fix a small memory leak when validating a configuration that uses
1323       two or more AF_UNIX sockets for the same port type. Fixes bug
1324       23053; bugfix on 0.2.6.3-alpha. This is CID 1415725.
1326   o Minor bugfixes (unit tests):
1327     - test_consdiff_base64cmp would fail on OS X because while OS X
1328       follows the standard of (less than zero/zero/greater than zero),
1329       it doesn't follow the convention of (-1/0/+1). Make the test
1330       comply with the standard. Fixes bug 22870; bugfix on 0.3.1.1-alpha.
1331     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
1332       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
1335 Changes in version 0.3.1.4-alpha - 2017-06-29
1336   Tor 0.3.1.4-alpha fixes a path selection bug that would allow a client
1337   to use a guard that was in the same network family as a chosen exit
1338   relay. This is a security regression; all clients running earlier
1339   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9
1340   or 0.3.1.4-alpha.
1342   This release also fixes several other bugs introduced in 0.3.0.x
1343   and 0.3.1.x, including others that can affect bandwidth usage
1344   and correctness.
1346   o New dependencies:
1347     - To build with zstd and lzma support, Tor now requires the
1348       pkg-config tool at build time. (This requirement was new in
1349       0.3.1.1-alpha, but was not noted at the time. Noting it here to
1350       close ticket 22623.)
1352   o Major bugfixes (path selection, security):
1353     - When choosing which guard to use for a circuit, avoid the exit's
1354       family along with the exit itself. Previously, the new guard
1355       selection logic avoided the exit, but did not consider its family.
1356       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
1357       006 and CVE-2017-0377.
1359   o Major bugfixes (compression, zstd):
1360     - Correctly detect a full buffer when decompressing a large zstd-
1361       compressed input. Previously, we would sometimes treat a full
1362       buffer as an error. Fixes bug 22628; bugfix on 0.3.1.1-alpha.
1364   o Major bugfixes (directory protocol):
1365     - Ensure that we send "304 Not modified" as HTTP status code when a
1366       client is attempting to fetch a consensus or consensus diff, and
1367       the best one we can send them is one they already have. Fixes bug
1368       22702; bugfix on 0.3.1.1-alpha.
1370   o Major bugfixes (entry guards):
1371     - When starting with an old consensus, do not add new entry guards
1372       unless the consensus is "reasonably live" (under 1 day old). Fixes
1373       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
1375   o Minor features (bug mitigation, diagnostics, logging):
1376     - Avoid an assertion failure, and log a better error message, when
1377       unable to remove a file from the consensus cache on Windows.
1378       Attempts to mitigate and diagnose bug 22752.
1380   o Minor features (geoip):
1381     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
1382       Country database.
1384   o Minor bugfixes (compression):
1385     - When compressing or decompressing a buffer, check for a failure to
1386       create a compression object. Fixes bug 22626; bugfix
1387       on 0.3.1.1-alpha.
1388     - When decompressing a buffer, check for extra data after the end of
1389       the compressed data. Fixes bug 22629; bugfix on 0.3.1.1-alpha.
1390     - When decompressing an object received over an anonymous directory
1391       connection, if we have already decompressed it using an acceptable
1392       compression method, do not reject it for looking like an
1393       unacceptable compression method. Fixes part of bug 22670; bugfix
1394       on 0.3.1.1-alpha.
1395     - When serving directory votes compressed with zlib, do not claim to
1396       have compressed them with zstd. Fixes bug 22669; bugfix
1397       on 0.3.1.1-alpha.
1398     - When spooling compressed data to an output buffer, don't try to
1399       spool more data when there is no more data to spool and we are not
1400       trying to flush the input. Previously, we would sometimes launch
1401       compression requests with nothing to do, which interferes with our
1402       22672 checks. Fixes bug 22719; bugfix on 0.2.0.16-alpha.
1404   o Minor bugfixes (defensive programming):
1405     - Detect and break out of infinite loops in our compression code. We
1406       don't think that any such loops exist now, but it's best to be
1407       safe. Closes ticket 22672.
1408     - Fix a memset() off the end of an array when packing cells. This
1409       bug should be harmless in practice, since the corrupted bytes are
1410       still in the same structure, and are always padding bytes,
1411       ignored, or immediately overwritten, depending on compiler
1412       behavior. Nevertheless, because the memset()'s purpose is to make
1413       sure that any other cell-handling bugs can't expose bytes to the
1414       network, we need to fix it. Fixes bug 22737; bugfix on
1415       0.2.4.11-alpha. Fixes CID 1401591.
1417   o Minor bugfixes (linux seccomp2 sandbox):
1418     - Permit the fchmod system call, to avoid crashing on startup when
1419       starting with the seccomp2 sandbox and an unexpected set of
1420       permissions on the data directory or its contents. Fixes bug
1421       22516; bugfix on 0.2.5.4-alpha.
1422     - Fix a crash in the LZMA module, when the sandbox was enabled, and
1423       liblzma would allocate more than 16 MB of memory. We solve this by
1424       bumping the mprotect() limit in the sandbox module from 16 MB to
1425       20 MB. Fixes bug 22751; bugfix on 0.3.1.1-alpha.
1427   o Minor bugfixes (logging):
1428     - When decompressing, do not warn if we fail to decompress using a
1429       compression method that we merely guessed. Fixes part of bug
1430       22670; bugfix on 0.1.1.14-alpha.
1431     - When decompressing, treat mismatch between content-encoding and
1432       actual compression type as a protocol warning. Fixes part of bug
1433       22670; bugfix on 0.1.1.9-alpha.
1434     - Downgrade "assigned_to_cpuworker failed" message to info-level
1435       severity. In every case that can reach it, either a better warning
1436       has already been logged, or no warning is warranted. Fixes bug
1437       22356; bugfix on 0.2.6.3-alpha.
1438     - Demote a warn that was caused by libevent delays to info if
1439       netflow padding is less than 4.5 seconds late, or to notice
1440       if it is more (4.5 seconds is the amount of time that a netflow
1441       record might be emitted after, if we chose the maximum timeout).
1442       Fixes bug 22212; bugfix on 0.3.1.1-alpha.
1444   o Minor bugfixes (process behavior):
1445     - When exiting because of an error, always exit with a nonzero exit
1446       status. Previously, we would fail to report an error in our exit
1447       status in cases related to __OwningControllerProcess failure,
1448       lockfile contention, and Ed25519 key initialization. Fixes bug
1449       22720; bugfix on versions 0.2.1.6-alpha, 0.2.2.28-beta, and
1450       0.2.7.2-alpha respectively. Reported by "f55jwk4f"; patch
1451       from "huyvq".
1453   o Documentation:
1454     - Add a manpage description for the key-pinning-journal file. Closes
1455       ticket 22347.
1456     - Correctly note that bandwidth accounting values are stored in the
1457       state file, and the bw_accounting file is now obsolete. Closes
1458       ticket 16082.
1459     - Document more of the files in the Tor data directory, including
1460       cached-extrainfo, secret_onion_key{,_ntor}.old, hidserv-stats,
1461       approved-routers, sr-random, and diff-cache. Found while fixing
1462       ticket 22347.
1465 Changes in version 0.3.0.9 - 2017-06-29
1466   Tor 0.3.0.9 fixes a path selection bug that would allow a client
1467   to use a guard that was in the same network family as a chosen exit
1468   relay. This is a security regression; all clients running earlier
1469   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9 or
1470   0.3.1.4-alpha.
1472   This release also backports several other bugfixes from the 0.3.1.x
1473   series.
1475   o Major bugfixes (path selection, security, backport from 0.3.1.4-alpha):
1476     - When choosing which guard to use for a circuit, avoid the exit's
1477       family along with the exit itself. Previously, the new guard
1478       selection logic avoided the exit, but did not consider its family.
1479       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
1480       006 and CVE-2017-0377.
1482   o Major bugfixes (entry guards, backport from 0.3.1.1-alpha):
1483     - Don't block bootstrapping when a primary bridge is offline and we
1484       can't get its descriptor. Fixes bug 22325; fixes one case of bug
1485       21969; bugfix on 0.3.0.3-alpha.
1487   o Major bugfixes (entry guards, backport from 0.3.1.4-alpha):
1488     - When starting with an old consensus, do not add new entry guards
1489       unless the consensus is "reasonably live" (under 1 day old). Fixes
1490       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
1492   o Minor features (geoip):
1493     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
1494       Country database.
1496   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
1497     - Reject version numbers with non-numeric prefixes (such as +, -, or
1498       whitespace). Disallowing whitespace prevents differential version
1499       parsing between POSIX-based and Windows platforms. Fixes bug 21507
1500       and part of 21508; bugfix on 0.0.8pre1.
1502   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
1503     - Permit the fchmod system call, to avoid crashing on startup when
1504       starting with the seccomp2 sandbox and an unexpected set of
1505       permissions on the data directory or its contents. Fixes bug
1506       22516; bugfix on 0.2.5.4-alpha.
1508   o Minor bugfixes (defensive programming, backport from 0.3.1.4-alpha):
1509     - Fix a memset() off the end of an array when packing cells. This
1510       bug should be harmless in practice, since the corrupted bytes are
1511       still in the same structure, and are always padding bytes,
1512       ignored, or immediately overwritten, depending on compiler
1513       behavior. Nevertheless, because the memset()'s purpose is to make
1514       sure that any other cell-handling bugs can't expose bytes to the
1515       network, we need to fix it. Fixes bug 22737; bugfix on
1516       0.2.4.11-alpha. Fixes CID 1401591.
1519 Changes in version 0.3.1.3-alpha - 2017-06-08
1520   Tor 0.3.1.3-alpha fixes a pair of bugs that would allow an attacker to
1521   remotely crash a hidden service with an assertion failure. Anyone
1522   running a hidden service should upgrade to this version, or to some
1523   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
1525   Tor 0.3.1.3-alpha also includes fixes for several key management bugs
1526   that sometimes made relays unreliable, as well as several other
1527   bugfixes described below.
1529   o Major bugfixes (hidden service, relay, security):
1530     - Fix a remotely triggerable assertion failure when a hidden service
1531       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
1532       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
1533     - Fix a remotely triggerable assertion failure caused by receiving a
1534       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
1535       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
1536       on 0.2.2.1-alpha.
1538   o Major bugfixes (relay, link handshake):
1539     - When performing the v3 link handshake on a TLS connection, report
1540       that we have the x509 certificate that we actually used on that
1541       connection, even if we have changed certificates since that
1542       connection was first opened. Previously, we would claim to have
1543       used our most recent x509 link certificate, which would sometimes
1544       make the link handshake fail. Fixes one case of bug 22460; bugfix
1545       on 0.2.3.6-alpha.
1547   o Major bugfixes (relays, key management):
1548     - Regenerate link and authentication certificates whenever the key
1549       that signs them changes; also, regenerate link certificates
1550       whenever the signed key changes. Previously, these processes were
1551       only weakly coupled, and we relays could (for minutes to hours)
1552       wind up with an inconsistent set of keys and certificates, which
1553       other relays would not accept. Fixes two cases of bug 22460;
1554       bugfix on 0.3.0.1-alpha.
1555     - When sending an Ed25519 signing->link certificate in a CERTS cell,
1556       send the certificate that matches the x509 certificate that we
1557       used on the TLS connection. Previously, there was a race condition
1558       if the TLS context rotated after we began the TLS handshake but
1559       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
1560       on 0.3.0.1-alpha.
1562   o Major bugfixes (torrc, crash):
1563     - Fix a crash bug when using %include in torrc. Fixes bug 22417;
1564       bugfix on 0.3.1.1-alpha. Patch by Daniel Pinto.
1566   o Minor features (code style):
1567     - Add "Falls through" comments to our codebase, in order to silence
1568       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
1569       Stieger. Closes ticket 22446.
1571   o Minor features (diagnostic):
1572     - Add logging messages to try to diagnose a rare bug that seems to
1573       generate RSA->Ed25519 cross-certificates dated in the 1970s. We
1574       think this is happening because of incorrect system clocks, but
1575       we'd like to know for certain. Diagnostic for bug 22466.
1577   o Minor bugfixes (correctness):
1578     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
1579       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
1581   o Minor bugfixes (directory protocol):
1582     - Check for libzstd >= 1.1, because older versions lack the
1583       necessary streaming API. Fixes bug 22413; bugfix on 0.3.1.1-alpha.
1585   o Minor bugfixes (link handshake):
1586     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
1587       months, and regenerate it when it is within one month of expiring.
1588       Previously, we had generated this certificate at startup with a
1589       ten-year lifetime, but that could lead to weird behavior when Tor
1590       was started with a grossly inaccurate clock. Mitigates bug 22466;
1591       mitigation on 0.3.0.1-alpha.
1593   o Minor bugfixes (storage directories):
1594     - Always check for underflows in the cached storage directory usage.
1595       If the usage does underflow, re-calculate it. Also, avoid a
1596       separate underflow when the usage is not known. Fixes bug 22424;
1597       bugfix on 0.3.1.1-alpha.
1599   o Minor bugfixes (unit tests):
1600     - The unit tests now pass on systems where localhost is misconfigured
1601       to some IPv4 address other than 127.0.0.1. Fixes bug 6298; bugfix
1602       on 0.0.9pre2.
1604   o Documentation:
1605     - Clarify the manpage for the (deprecated) torify script. Closes
1606       ticket 6892.
1608 Changes in version 0.3.0.8 - 2017-06-08
1609   Tor 0.3.0.8 fixes a pair of bugs that would allow an attacker to
1610   remotely crash a hidden service with an assertion failure. Anyone
1611   running a hidden service should upgrade to this version, or to some
1612   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
1614   Tor 0.3.0.8 also includes fixes for several key management bugs
1615   that sometimes made relays unreliable, as well as several other
1616   bugfixes described below.
1618   o Major bugfixes (hidden service, relay, security, backport
1619     from 0.3.1.3-alpha):
1620     - Fix a remotely triggerable assertion failure when a hidden service
1621       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
1622       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
1623     - Fix a remotely triggerable assertion failure caused by receiving a
1624       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
1625       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
1626       on 0.2.2.1-alpha.
1628   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
1629     - When performing the v3 link handshake on a TLS connection, report
1630       that we have the x509 certificate that we actually used on that
1631       connection, even if we have changed certificates since that
1632       connection was first opened. Previously, we would claim to have
1633       used our most recent x509 link certificate, which would sometimes
1634       make the link handshake fail. Fixes one case of bug 22460; bugfix
1635       on 0.2.3.6-alpha.
1637   o Major bugfixes (relays, key management, backport from 0.3.1.3-alpha):
1638     - Regenerate link and authentication certificates whenever the key
1639       that signs them changes; also, regenerate link certificates
1640       whenever the signed key changes. Previously, these processes were
1641       only weakly coupled, and we relays could (for minutes to hours)
1642       wind up with an inconsistent set of keys and certificates, which
1643       other relays would not accept. Fixes two cases of bug 22460;
1644       bugfix on 0.3.0.1-alpha.
1645     - When sending an Ed25519 signing->link certificate in a CERTS cell,
1646       send the certificate that matches the x509 certificate that we
1647       used on the TLS connection. Previously, there was a race condition
1648       if the TLS context rotated after we began the TLS handshake but
1649       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
1650       on 0.3.0.1-alpha.
1652   o Major bugfixes (hidden service v3, backport from 0.3.1.1-alpha):
1653     - Stop rejecting v3 hidden service descriptors because their size
1654       did not match an old padding rule. Fixes bug 22447; bugfix on
1655       tor-0.3.0.1-alpha.
1657   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
1658     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
1659       December 2016 (of which ~126 were still functional) with a list of
1660       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
1661       2017. Resolves ticket 21564.
1663   o Minor bugfixes (configuration, backport from 0.3.1.1-alpha):
1664     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
1665       bug 22252; bugfix on 0.2.9.3-alpha.
1667   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
1668     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
1669       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
1671   o Minor bugfixes (link handshake, backport from 0.3.1.3-alpha):
1672     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
1673       months, and regenerate it when it is within one month of expiring.
1674       Previously, we had generated this certificate at startup with a
1675       ten-year lifetime, but that could lead to weird behavior when Tor
1676       was started with a grossly inaccurate clock. Mitigates bug 22466;
1677       mitigation on 0.3.0.1-alpha.
1679   o Minor bugfixes (memory leak, directory authority, backport from
1680     0.3.1.2-alpha):
1681     - When directory authorities reject a router descriptor due to
1682       keypinning, free the router descriptor rather than leaking the
1683       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
1686 Changes in version 0.2.9.11 - 2017-06-08
1687   Tor 0.2.9.11 backports a fix for a bug that would allow an attacker to
1688   remotely crash a hidden service with an assertion failure. Anyone
1689   running a hidden service should upgrade to this version, or to some
1690   other version with fixes for TROVE-2017-005. (Versions before 0.3.0
1691   are not affected by TROVE-2017-004.)
1693   Tor 0.2.9.11 also backports fixes for several key management bugs
1694   that sometimes made relays unreliable, as well as several other
1695   bugfixes described below.
1697   o Major bugfixes (hidden service, relay, security, backport
1698     from 0.3.1.3-alpha):
1699     - Fix a remotely triggerable assertion failure caused by receiving a
1700       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
1701       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
1702       on 0.2.2.1-alpha.
1704   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
1705     - When performing the v3 link handshake on a TLS connection, report
1706       that we have the x509 certificate that we actually used on that
1707       connection, even if we have changed certificates since that
1708       connection was first opened. Previously, we would claim to have
1709       used our most recent x509 link certificate, which would sometimes
1710       make the link handshake fail. Fixes one case of bug 22460; bugfix
1711       on 0.2.3.6-alpha.
1713   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
1714     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
1715       December 2016 (of which ~126 were still functional) with a list of
1716       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
1717       2017. Resolves ticket 21564.
1719   o Minor features (future-proofing, backport from 0.3.0.7):
1720     - Tor no longer refuses to download microdescriptors or descriptors if
1721       they are listed as "published in the future".  This change will
1722       eventually allow us to stop listing meaningful "published" dates
1723       in microdescriptor consensuses, and thereby allow us to reduce the
1724       resources required to download consensus diffs by over 50%.
1725       Implements part of ticket 21642; implements part of proposal 275.
1727   o Minor features (directory authorities, backport from 0.3.0.4-rc)
1728     - Directory authorities now reject relays running versions
1729       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
1730       suffer from bug 20499 and don't keep their consensus cache
1731       up-to-date. Resolves ticket 20509.
1733   o Minor features (geoip):
1734     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
1735       Country database.
1737   o Minor bugfixes (control port, backport from 0.3.0.6):
1738     - The GETINFO extra-info/digest/<digest> command was broken because
1739       of a wrong base16 decode return value check, introduced when
1740       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
1742   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
1743     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
1744       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
1746   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.0.7):
1747     - The getpid() system call is now permitted under the Linux seccomp2
1748       sandbox, to avoid crashing with versions of OpenSSL (and other
1749       libraries) that attempt to learn the process's PID by using the
1750       syscall rather than the VDSO code. Fixes bug 21943; bugfix
1751       on 0.2.5.1-alpha.
1753   o Minor bugfixes (memory leak, directory authority, backport
1754     from 0.3.1.2-alpha):
1755     - When directory authorities reject a router descriptor due to
1756       keypinning, free the router descriptor rather than leaking the
1757       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
1759 Changes in version 0.2.8.14 - 2017-06-08
1760   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
1761   remotely crash a hidden service with an assertion failure. Anyone
1762   running a hidden service should upgrade to this version, or to some
1763   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
1764   are not affected by TROVE-2017-004.)
1766   o Major bugfixes (hidden service, relay, security):
1767     - Fix a remotely triggerable assertion failure caused by receiving a
1768       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
1769       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
1770       on 0.2.2.1-alpha.
1772   o Minor features (geoip):
1773     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
1774       Country database.
1776   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
1777     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
1778       December 2016 (of which ~126 were still functional) with a list of
1779       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
1780       2017. Resolves ticket 21564.
1782   o Minor bugfixes (correctness):
1783     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
1784       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
1786 Changes in version 0.2.7.8 - 2017-06-08
1787   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
1788   remotely crash a hidden service with an assertion failure. Anyone
1789   running a hidden service should upgrade to this version, or to some
1790   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
1791   are not affected by TROVE-2017-004.)
1793   o Major bugfixes (hidden service, relay, security):
1794     - Fix a remotely triggerable assertion failure caused by receiving a
1795       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
1796       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
1797       on 0.2.2.1-alpha.
1799   o Minor features (geoip):
1800     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
1801       Country database.
1803   o Minor bugfixes (correctness):
1804     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
1805       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
1808 Changes in version 0.2.6.12 - 2017-06-08
1809   Tor 0.2.6.12 backports a fix for a bug that would allow an attacker to
1810   remotely crash a hidden service with an assertion failure. Anyone
1811   running a hidden service should upgrade to this version, or to some
1812   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
1813   are not affected by TROVE-2017-004.)
1815   o Major bugfixes (hidden service, relay, security):
1816     - Fix a remotely triggerable assertion failure caused by receiving a
1817       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
1818       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
1819       on 0.2.2.1-alpha.
1821   o Minor features (geoip):
1822     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
1823       Country database.
1825   o Minor bugfixes (correctness):
1826     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
1827       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
1829 Changes in version 0.2.5.14 - 2017-06-08
1830   Tor 0.2.5.14 backports a fix for a bug that would allow an attacker to
1831   remotely crash a hidden service with an assertion failure. Anyone
1832   running a hidden service should upgrade to this version, or to some
1833   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
1834   are not affected by TROVE-2017-004.)
1836   o Major bugfixes (hidden service, relay, security):
1837     - Fix a remotely triggerable assertion failure caused by receiving a
1838       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
1839       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
1840       on 0.2.2.1-alpha.
1842   o Minor features (geoip):
1843     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
1844       Country database.
1846   o Minor bugfixes (correctness):
1847     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
1848       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
1850 Changes in version 0.2.4.29 - 2017-06-08
1851   Tor 0.2.4.29 backports a fix for a bug that would allow an attacker to
1852   remotely crash a hidden service with an assertion failure. Anyone
1853   running a hidden service should upgrade to this version, or to some
1854   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
1855   are not affected by TROVE-2017-004.)
1857   o Major bugfixes (hidden service, relay, security):
1858     - Fix a remotely triggerable assertion failure caused by receiving a
1859       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
1860       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
1861       on 0.2.2.1-alpha.
1863   o Minor features (geoip):
1864     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
1865       Country database.
1867   o Minor bugfixes (correctness):
1868     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
1869       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
1872 Changes in version 0.3.1.2-alpha - 2017-05-26
1873   Tor 0.3.1.2-alpha is the second release in the 0.3.1.x series. It
1874   fixes a few bugs found while testing 0.3.1.1-alpha, including a
1875   memory corruption bug that affected relay stability.
1877   o Major bugfixes (crash, relay):
1878     - Fix a memory-corruption bug in relays that set MyFamily.
1879       Previously, they would double-free MyFamily elements when making
1880       the next descriptor or when changing their configuration. Fixes
1881       bug 22368; bugfix on 0.3.1.1-alpha.
1883   o Minor bugfixes (logging):
1884     - Log a better message when a directory authority replies to an
1885       upload with an unexpected status code. Fixes bug 11121; bugfix
1886       on 0.1.0.1-rc.
1888   o Minor bugfixes (memory leak, directory authority):
1889     - When directory authorities reject a router descriptor due to
1890       keypinning, free the router descriptor rather than leaking the
1891       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
1894 Changes in version 0.3.1.1-alpha - 2017-05-22
1895   Tor 0.3.1.1-alpha is the first release in the 0.3.1.x series. It
1896   reduces the bandwidth usage for Tor's directory protocol, adds some
1897   basic padding to resist netflow-based traffic analysis and to serve as
1898   the basis of other padding in the future, and adds rust support to the
1899   build system.
1901   It also contains numerous other small features and improvements to
1902   security, correctness, and performance.
1904   Below are the changes since 0.3.0.7.
1906   o Major features (directory protocol):
1907     - Tor relays and authorities can now serve clients an abbreviated
1908       version of the consensus document, containing only the changes
1909       since an older consensus document that the client holds. Clients
1910       now request these documents when available. When both client and
1911       server use this new protocol, they will use far less bandwidth (up
1912       to 94% less) to keep the client's consensus up-to-date. Implements
1913       proposal 140; closes ticket 13339. Based on work by Daniel Martí.
1914     - Tor can now compress directory traffic with lzma or with zstd
1915       compression algorithms, which can deliver better bandwidth
1916       performance. Because lzma is computationally expensive, it's only
1917       used for documents that can be compressed once and served many
1918       times. Support for these algorithms requires that tor is built
1919       with the libzstd and/or liblzma libraries available. Implements
1920       proposal 278; closes ticket 21662.
1921     - Relays now perform the more expensive compression operations, and
1922       consensus diff generation, in worker threads. This separation
1923       avoids delaying the main thread when a new consensus arrives.
1925   o Major features (experimental):
1926     - Tor can now build modules written in Rust. To turn this on, pass
1927       the "--enable-rust" flag to the configure script. It's not time to
1928       get excited yet: currently, there is no actual Rust functionality
1929       beyond some simple glue code, and a notice at startup to tell you
1930       that Rust is running. Still, we hope that programmers and
1931       packagers will try building Tor with Rust support, so that we can
1932       find issues and solve portability problems. Closes ticket 22106.
1934   o Major features (traffic analysis resistance):
1935     - Connections between clients and relays now send a padding cell in
1936       each direction every 1.5 to 9.5 seconds (tunable via consensus
1937       parameters). This padding will not resist specialized
1938       eavesdroppers, but it should be enough to make many ISPs' routine
1939       network flow logging less useful in traffic analysis against
1940       Tor users.
1942       Padding is negotiated using Tor's link protocol, so both relays
1943       and clients must upgrade for this to take effect. Clients may
1944       still send padding despite the relay's version by setting
1945       ConnectionPadding 1 in torrc, and may disable padding by setting
1946       ConnectionPadding 0 in torrc. Padding may be minimized for mobile
1947       users with the torrc option ReducedConnectionPadding. Implements
1948       Proposal 251 and Section 2 of Proposal 254; closes ticket 16861.
1949     - Relays will publish 24 hour totals of padding and non-padding cell
1950       counts to their extra-info descriptors, unless PaddingStatistics 0
1951       is set in torrc. These 24 hour totals are also rounded to
1952       multiples of 10000.
1954   o Major bugfixes (connection usage):
1955     - We use NETINFO cells to try to determine if both relays involved
1956       in a connection will agree on the canonical status of that
1957       connection. We prefer the connections where this is the case for
1958       extend cells, and try to close connections where relays disagree
1959       on their canonical status early. Also, we now prefer the oldest
1960       valid connection for extend cells. These two changes should reduce
1961       the number of long-term connections that are kept open between
1962       relays. Fixes bug 17604; bugfix on 0.2.5.5-alpha.
1963     - Relays now log hourly statistics (look for
1964       "channel_check_for_duplicates" lines) on the total number of
1965       connections to other relays. If the number of connections per
1966       relay is unexpectedly large, this log message is at notice level.
1967       Otherwise it is at info.
1969   o Major bugfixes (entry guards):
1970     - Don't block bootstrapping when a primary bridge is offline and we
1971       can't get its descriptor. Fixes bug 22325; fixes one case of bug
1972       21969; bugfix on 0.3.0.3-alpha.
1974   o Major bugfixes (linux TPROXY support):
1975     - Fix a typo that had prevented TPROXY-based transparent proxying
1976       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
1977       Patch from "d4fq0fQAgoJ".
1979   o Minor features (security, windows):
1980     - Enable a couple of pieces of Windows hardening: one
1981       (HeapEnableTerminationOnCorruption) that has been on-by-default
1982       since Windows 8, and unavailable before Windows 7; and one
1983       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
1984       affect us, but shouldn't do any harm. Closes ticket 21953.
1986   o Minor features (config options):
1987     - Allow "%include" directives in torrc configuration files. These
1988       directives import the settings from other files, or from all the
1989       files in a directory. Closes ticket 1922. Code by Daniel Pinto.
1990     - Make SAVECONF return an error when overwriting a torrc that has
1991       includes. Using SAVECONF with the FORCE option will allow it to
1992       overwrite torrc even if includes are used. Related to ticket 1922.
1993     - Add "GETINFO config-can-saveconf" to tell controllers if SAVECONF
1994       will work without the FORCE option. Related to ticket 1922.
1996   o Minor features (controller):
1997     - Warn the first time that a controller requests data in the long-
1998       deprecated 'GETINFO network-status' format. Closes ticket 21703.
2000   o Minor features (defaults):
2001     - The default value for UseCreateFast is now 0: clients which
2002       haven't yet received a consensus document will now use a proper
2003       ntor handshake to talk to their directory servers whenever they
2004       can. Closes ticket 21407.
2005     - Onion key rotation and expiry intervals are now defined as a
2006       network consensus parameter, per proposal 274. The default
2007       lifetime of an onion key is increased from 7 to 28 days. Old onion
2008       keys will expire after 7 days by default. This change will make
2009       consensus diffs much smaller, and save significant bandwidth.
2010       Closes ticket 21641.
2012   o Minor features (fallback directory list):
2013     - Update the fallback directory mirror whitelist and blacklist based
2014       on operator emails. Closes task 21121.
2015     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
2016       December 2016 (of which ~126 were still functional) with a list of
2017       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
2018       2017. Resolves ticket 21564.
2020   o Minor features (hidden services, logging):
2021     - Log a message when a hidden service descriptor has fewer
2022       introduction points than specified in
2023       HiddenServiceNumIntroductionPoints. Closes tickets 21598.
2024     - Log a message when a hidden service reaches its introduction point
2025       circuit limit, and when that limit is reset. Follow up to ticket
2026       21594; closes ticket 21622.
2027     - Warn user if multiple entries in EntryNodes and at least one
2028       HiddenService are used together. Pinning EntryNodes along with a
2029       hidden service can be possibly harmful; for instance see ticket
2030       14917 or 21155. Closes ticket 21155.
2032   o Minor features (linux seccomp2 sandbox):
2033     - We now have a document storage backend compatible with the Linux
2034       seccomp2 sandbox. This backend is used for consensus documents and
2035       diffs between them; in the long term, we'd like to use it for
2036       unparseable directory material too. Closes ticket 21645
2037     - Increase the maximum allowed size passed to mprotect(PROT_WRITE)
2038       from 1MB to 16MB. This was necessary with the glibc allocator in
2039       order to allow worker threads to allocate more memory -- which in
2040       turn is necessary because of our new use of worker threads for
2041       compression. Closes ticket 22096.
2043   o Minor features (logging):
2044     - Log files are no longer created world-readable by default.
2045       (Previously, most distributors would store the logs in a non-
2046       world-readable location to prevent inappropriate access. This
2047       change is an extra precaution.) Closes ticket 21729; patch
2048       from toralf.
2050   o Minor features (performance):
2051     - Our Keccak (SHA-3) implementation now accesses memory more
2052       efficiently, especially on little-endian systems. Closes
2053       ticket 21737.
2054     - Add an O(1) implementation of channel_find_by_global_id(), to
2055       speed some controller functions.
2057   o Minor features (relay, configuration):
2058     - The MyFamily option may now be repeated as many times as desired,
2059       for relays that want to configure large families. Closes ticket
2060       4998; patch by Daniel Pinto.
2062   o Minor features (safety):
2063     - Add an explicit check to extrainfo_parse_entry_from_string() for
2064       NULL inputs. We don't believe this can actually happen, but it may
2065       help silence a warning from the Clang analyzer. Closes
2066       ticket 21496.
2068   o Minor features (testing):
2069     - Add a "--disable-memory-sentinels" feature to help with fuzzing.
2070       When Tor is compiled with this option, we disable a number of
2071       redundant memory-safety failsafes that are intended to stop bugs
2072       from becoming security issues. This makes it easier to hunt for
2073       bugs that would be security issues without the failsafes turned
2074       on. Closes ticket 21439.
2075     - Add a general event-tracing instrumentation support to Tor. This
2076       subsystem will enable developers and researchers to add fine-
2077       grained instrumentation to their Tor instances, for use when
2078       examining Tor network performance issues. There are no trace
2079       events yet, and event-tracing is off by default unless enabled at
2080       compile time. Implements ticket 13802.
2081     - Improve our version parsing tests: add tests for typical version
2082       components, add tests for invalid versions, including numeric
2083       range and non-numeric prefixes. Unit tests 21278, 21450, and
2084       21507. Partially implements 21470.
2086   o Minor bugfixes (bandwidth accounting):
2087     - Roll over monthly accounting at the configured hour and minute,
2088       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
2089       Found by Andrey Karpov with PVS-Studio.
2091   o Minor bugfixes (code correctness):
2092     - Accurately identify client connections by their lack of peer
2093       authentication. This means that we bail out earlier if asked to
2094       extend to a client. Follow-up to 21407. Fixes bug 21406; bugfix
2095       on 0.2.4.23.
2097   o Minor bugfixes (configuration):
2098     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
2099       bug 22252; bugfix on 0.2.9.3-alpha.
2101   o Minor bugfixes (connection lifespan):
2102     - Allow more control over how long TLS connections are kept open:
2103       unify CircuitIdleTimeout and PredictedPortsRelevanceTime into a
2104       single option called CircuitsAvailableTimeout. Also, allow the
2105       consensus to control the default values for both this preference
2106       and the lifespan of relay-to-relay connections. Fixes bug 17592;
2107       bugfix on 0.2.5.5-alpha.
2108     - Increase the initial circuit build timeout testing frequency, to
2109       help ensure that ReducedConnectionPadding clients finish learning
2110       a timeout before their orconn would expire. The initial testing
2111       rate was set back in the days of TAP and before the Tor Browser
2112       updater, when we had to be much more careful about new clients
2113       making lots of circuits. With this change, a circuit build timeout
2114       is learned in about 15-20 minutes, instead of 100-120 minutes.
2116   o Minor bugfixes (controller):
2117     - GETINFO onions/current and onions/detached no longer respond with
2118       551 on empty lists. Fixes bug 21329; bugfix on 0.2.7.1-alpha.
2119     - Trigger HS descriptor events on the control port when the client
2120       fails to pick a hidden service directory for a hidden service.
2121       This can happen if all the hidden service directories are in
2122       ExcludeNodes, or they have all been queried within the last 15
2123       minutes. Fixes bug 22042; bugfix on 0.2.5.2-alpha.
2125   o Minor bugfixes (directory authority):
2126     - When rejecting a router descriptor for running an obsolete version
2127       of Tor without ntor support, warn about the obsolete tor version,
2128       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
2129     - Prevent the shared randomness subsystem from asserting when
2130       initialized by a bridge authority with an incomplete configuration
2131       file. Fixes bug 21586; bugfix on 0.2.9.8.
2133   o Minor bugfixes (exit-side DNS):
2134     - Fix an untriggerable assertion that checked the output of a
2135       libevent DNS error, so that the assertion actually behaves as
2136       expected. Fixes bug 22244; bugfix on 0.2.0.20-rc. Found by Andrey
2137       Karpov using PVS-Studio.
2139   o Minor bugfixes (fallback directories):
2140     - Make the usage example in updateFallbackDirs.py actually work, and
2141       explain what it does. Fixes bug 22270; bugfix on 0.3.0.3-alpha.
2142     - Decrease the guard flag average required to be a fallback. This
2143       allows us to keep relays that have their guard flag removed when
2144       they restart. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
2145     - Decrease the minimum number of fallbacks to 100. Fixes bug 20913;
2146       bugfix on 0.2.8.1-alpha.
2147     - Make sure fallback directory mirrors have the same address, port,
2148       and relay identity key for at least 30 days before they are
2149       selected. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
2151   o Minor bugfixes (hidden services):
2152     - Stop printing a cryptic warning when a hidden service gets a
2153       request to connect to a virtual port that it hasn't configured.
2154       Fixes bug 16706; bugfix on 0.2.6.3-alpha.
2155     - Simplify hidden service descriptor creation by using an existing
2156       flag to check if an introduction point is established. Fixes bug
2157       21599; bugfix on 0.2.7.2-alpha.
2159   o Minor bugfixes (memory leak):
2160     - Fix a small memory leak at exit from the backtrace handler code.
2161       Fixes bug 21788; bugfix on 0.2.5.2-alpha. Patch from Daniel Pinto.
2163   o Minor bugfixes (protocol, logging):
2164     - Downgrade a log statement about unexpected relay cells from "bug"
2165       to "protocol warning", because there is at least one use case
2166       where it can be triggered by a buggy tor implementation. Fixes bug
2167       21293; bugfix on 0.1.1.14-alpha.
2169   o Minor bugfixes (testing):
2170     - Use unbuffered I/O for utility functions around the
2171       process_handle_t type. This fixes unit test failures reported on
2172       OpenBSD and FreeBSD. Fixes bug 21654; bugfix on 0.2.3.1-alpha.
2173     - Make display of captured unit test log messages consistent. Fixes
2174       bug 21510; bugfix on 0.2.9.3-alpha.
2175     - Make test-network.sh always call chutney's test-network.sh.
2176       Previously, this only worked on systems which had bash installed,
2177       due to some bash-specific code in the script. Fixes bug 19699;
2178       bugfix on 0.3.0.4-rc. Follow-up to ticket 21581.
2180   o Minor bugfixes (voting consistency):
2181     - Reject version numbers with non-numeric prefixes (such as +, -, or
2182       whitespace). Disallowing whitespace prevents differential version
2183       parsing between POSIX-based and Windows platforms. Fixes bug 21507
2184       and part of 21508; bugfix on 0.0.8pre1.
2186   o Minor bugfixes (windows, relay):
2187     - Resolve "Failure from drain_fd: No error" warnings on Windows
2188       relays. Fixes bug 21540; bugfix on 0.2.6.3-alpha.
2190   o Code simplification and refactoring:
2191     - Break up the 630-line function connection_dir_client_reached_eof()
2192       into a dozen smaller functions. This change should help
2193       maintainability and readability of the client directory code.
2194     - Isolate our use of the openssl headers so that they are only
2195       included from our crypto wrapper modules, and from tests that
2196       examine those modules' internals. Closes ticket 21841.
2197     - Simplify our API to launch directory requests, making it more
2198       extensible and less error-prone. Now it's easier to add extra
2199       headers to directory requests. Closes ticket 21646.
2200     - Our base64 decoding functions no longer overestimate the output
2201       space that they need when parsing unpadded inputs. Closes
2202       ticket 17868.
2203     - Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value.
2204       Resolves ticket 22213.
2205     - The logic that directory caches use to spool request to clients,
2206       serving them one part at a time so as not to allocate too much
2207       memory, has been refactored for consistency. Previously there was
2208       a separate spooling implementation per type of spoolable data. Now
2209       there is one common spooling implementation, with extensible data
2210       types. Closes ticket 21651.
2211     - Tor's compression module now supports multiple backends. Part of
2212       the implementation for proposal 278; closes ticket 21663.
2214   o Documentation:
2215     - Clarify the behavior of the KeepAliveIsolateSOCKSAuth sub-option.
2216       Closes ticket 21873.
2217     - Correct documentation about the default DataDirectory value.
2218       Closes ticket 21151.
2219     - Document the default behavior of NumEntryGuards and
2220       NumDirectoryGuards correctly. Fixes bug 21715; bugfix
2221       on 0.3.0.1-alpha.
2222     - Document key=value pluggable transport arguments for Bridge lines
2223       in torrc. Fixes bug 20341; bugfix on 0.2.5.1-alpha.
2224     - Note that bandwidth-limiting options don't affect TCP headers or
2225       DNS. Closes ticket 17170.
2227   o Removed features (configuration options, all in ticket 22060):
2228     - These configuration options are now marked Obsolete, and no longer
2229       have any effect: AllowInvalidNodes, AllowSingleHopCircuits,
2230       AllowSingleHopExits, ExcludeSingleHopRelays, FastFirstHopPK,
2231       TLSECGroup, WarnUnsafeSocks. They were first marked as deprecated
2232       in 0.2.9.2-alpha and have now been removed. The previous default
2233       behavior is now always chosen; the previous (less secure) non-
2234       default behavior is now unavailable.
2235     - CloseHSClientCircuitsImmediatelyOnTimeout and
2236       CloseHSServiceRendCircuitsImmediatelyOnTimeout were deprecated in
2237       0.2.9.2-alpha and now have been removed. HS circuits never close
2238       on circuit build timeout; they have a longer timeout period.
2239     - {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress were deprecated
2240       in 0.2.9.2-alpha and now have been removed. Use the ORPort option
2241       (and others) to configure listen-only and advertise-only addresses.
2243   o Removed features (tools):
2244     - We've removed the tor-checkkey tool from src/tools. Long ago, we
2245       used it to help people detect RSA keys that were generated by
2246       versions of Debian affected by CVE-2008-0166. But those keys have
2247       been out of circulation for ages, and this tool is no longer
2248       required. Closes ticket 21842.
2251 Changes in version 0.3.0.7 - 2017-05-15
2252   Tor 0.3.0.7 fixes a medium-severity security bug in earlier versions
2253   of Tor 0.3.0.x, where an attacker could cause a Tor relay process
2254   to exit. Relays running earlier versions of Tor 0.3.0.x should upgrade;
2255   clients are not affected.
2257   o Major bugfixes (hidden service directory, security):
2258     - Fix an assertion failure in the hidden service directory code, which
2259       could be used by an attacker to remotely cause a Tor relay process to
2260       exit. Relays running earlier versions of Tor 0.3.0.x should upgrade.
2261       should upgrade. This security issue is tracked as TROVE-2017-002.
2262       Fixes bug 22246; bugfix on 0.3.0.1-alpha.
2264   o Minor features:
2265     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
2266       Country database.
2268   o Minor features (future-proofing):
2269     - Tor no longer refuses to download microdescriptors or descriptors
2270       if they are listed as "published in the future". This change will
2271       eventually allow us to stop listing meaningful "published" dates
2272       in microdescriptor consensuses, and thereby allow us to reduce the
2273       resources required to download consensus diffs by over 50%.
2274       Implements part of ticket 21642; implements part of proposal 275.
2276   o Minor bugfixes (Linux seccomp2 sandbox):
2277     - The getpid() system call is now permitted under the Linux seccomp2
2278       sandbox, to avoid crashing with versions of OpenSSL (and other
2279       libraries) that attempt to learn the process's PID by using the
2280       syscall rather than the VDSO code. Fixes bug 21943; bugfix
2281       on 0.2.5.1-alpha.
2284 Changes in version 0.3.0.6 - 2017-04-26
2285   Tor 0.3.0.6 is the first stable release of the Tor 0.3.0 series.
2287   With the 0.3.0 series, clients and relays now use Ed25519 keys to
2288   authenticate their link connections to relays, rather than the old
2289   RSA1024 keys that they used before. (Circuit crypto has been
2290   Curve25519-authenticated since 0.2.4.8-alpha.) We have also replaced
2291   the guard selection and replacement algorithm to behave more robustly
2292   in the presence of unreliable networks, and to resist guard-
2293   capture attacks.
2295   This series also includes numerous other small features and bugfixes,
2296   along with more groundwork for the upcoming hidden-services revamp.
2298   Per our stable release policy, we plan to support the Tor 0.3.0
2299   release series for at least the next nine months, or for three months
2300   after the first stable release of the 0.3.1 series: whichever is
2301   longer. If you need a release with long-term support, we recommend
2302   that you stay with the 0.2.9 series.
2304   Below are the changes since 0.3.0.5-rc. For a list of all changes
2305   since 0.2.9, see the ReleaseNotes file.
2307   o Minor features (geoip):
2308     - Update geoip and geoip6 to the April 4 2017 Maxmind GeoLite2
2309       Country database.
2311   o Minor bugfixes (control port):
2312     - The GETINFO extra-info/digest/<digest> command was broken because
2313       of a wrong base16 decode return value check, introduced when
2314       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
2316   o Minor bugfixes (crash prevention):
2317     - Fix a (currently untriggerable, but potentially dangerous) crash
2318       bug when base32-encoding inputs whose sizes are not a multiple of
2319       5. Fixes bug 21894; bugfix on 0.2.9.1-alpha.
2322 Changes in version 0.3.0.5-rc - 2017-04-05
2323   Tor 0.3.0.5-rc fixes a few remaining bugs, large and small, in the
2324   0.3.0 release series.
2326   This is the second release candidate in the Tor 0.3.0 series, and has
2327   much fewer changes than the first. If we find no new bugs or
2328   regressions here, the first stable 0.3.0 release will be nearly
2329   identical to it.
2331   o Major bugfixes (crash, directory connections):
2332     - Fix a rare crash when sending a begin cell on a circuit whose
2333       linked directory connection had already been closed. Fixes bug
2334       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
2336   o Major bugfixes (guard selection):
2337     - Fix a guard selection bug where Tor would refuse to bootstrap in
2338       some cases if the user swapped a bridge for another bridge in
2339       their configuration file. Fixes bug 21771; bugfix on 0.3.0.1-alpha.
2340       Reported by "torvlnt33r".
2342   o Minor features (geoip):
2343     - Update geoip and geoip6 to the March 7 2017 Maxmind GeoLite2
2344       Country database.
2346   o Minor bugfix (compilation):
2347     - Fix a warning when compiling hs_service.c. Previously, it had no
2348       exported symbols when compiled for libor.a, resulting in a
2349       compilation warning from clang. Fixes bug 21825; bugfix
2350       on 0.3.0.1-alpha.
2352   o Minor bugfixes (hidden services):
2353     - Make hidden services check for failed intro point connections,
2354       even when they have exceeded their intro point creation limit.
2355       Fixes bug 21596; bugfix on 0.2.7.2-alpha. Reported by Alec Muffett.
2356     - Make hidden services with 8 to 10 introduction points check for
2357       failed circuits immediately after startup. Previously, they would
2358       wait for 5 minutes before performing their first checks. Fixes bug
2359       21594; bugfix on 0.2.3.9-alpha. Reported by Alec Muffett.
2361   o Minor bugfixes (memory leaks):
2362     - Fix a memory leak when using GETCONF on a port option. Fixes bug
2363       21682; bugfix on 0.3.0.3-alpha.
2365   o Minor bugfixes (relay):
2366     - Avoid a double-marked-circuit warning that could happen when we
2367       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
2368       on 0.1.0.1-rc.
2370   o Minor bugfixes (tests):
2371     - Run the entry_guard_parse_from_state_full() test with the time set
2372       to a specific date. (The guard state that this test was parsing
2373       contained guards that had expired since the test was first
2374       written.) Fixes bug 21799; bugfix on 0.3.0.1-alpha.
2376   o Documentation:
2377     - Update the description of the directory server options in the
2378       manual page, to clarify that a relay no longer needs to set
2379       DirPort in order to be a directory cache. Closes ticket 21720.
2383 Changes in version 0.2.8.13 - 2017-03-03
2384   Tor 0.2.8.13 backports a security fix from later Tor
2385   releases.  Anybody running Tor 0.2.8.12 or earlier should upgrade to this
2386   this release, if for some reason they cannot upgrade to a later
2387   release series, and if they build Tor with the --enable-expensive-hardening
2388   option.
2390   Note that support for Tor 0.2.8.x is ending next year: we will not issue
2391   any fixes for the Tor 0.2.8.x series after 1 Jan 2018.  If you need
2392   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
2394   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
2395     - Fix an integer underflow bug when comparing malformed Tor
2396       versions. This bug could crash Tor when built with
2397       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
2398       0.2.9.8, which were built with -ftrapv by default. In other cases
2399       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
2400       on 0.0.8pre1. Found by OSS-Fuzz.
2402   o Minor features (geoip):
2403     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
2404       Country database.
2407 Changes in version 0.2.7.7 - 2017-03-03
2408   Tor 0.2.7.7 backports a number of security fixes from later Tor
2409   releases.  Anybody running Tor 0.2.7.6 or earlier should upgrade to
2410   this release, if for some reason they cannot upgrade to a later
2411   release series.
2413   Note that support for Tor 0.2.7.x is ending this year: we will not issue
2414   any fixes for the Tor 0.2.7.x series after 1 August 2017.  If you need
2415   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
2417   o Directory authority changes (backport from 0.2.8.5-rc):
2418     - Urras is no longer a directory authority. Closes ticket 19271.
2420   o Directory authority changes (backport from 0.2.9.2-alpha):
2421     - The "Tonga" bridge authority has been retired; the new bridge
2422       authority is "Bifroest". Closes tickets 19728 and 19690.
2424   o Directory authority key updates (backport from 0.2.8.1-alpha):
2425     - Update the V3 identity key for the dannenberg directory authority:
2426       it was changed on 18 November 2015. Closes task 17906. Patch
2427       by "teor".
2429   o Major bugfixes (parsing, security, backport from 0.2.9.8):
2430     - Fix a bug in parsing that could cause clients to read a single
2431       byte past the end of an allocated region. This bug could be used
2432       to cause hardened clients (built with --enable-expensive-hardening)
2433       to crash if they tried to visit a hostile hidden service. Non-
2434       hardened clients are only affected depending on the details of
2435       their platform's memory allocator. Fixes bug 21018; bugfix on
2436       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
2437       2016-12-002 and as CVE-2016-1254.
2439   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
2440     - Stop a crash that could occur when a client running with DNSPort
2441       received a query with multiple address types, and the first
2442       address type was not supported. Found and fixed by Scott Dial.
2443       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
2444     - Prevent a class of security bugs caused by treating the contents
2445       of a buffer chunk as if they were a NUL-terminated string. At
2446       least one such bug seems to be present in all currently used
2447       versions of Tor, and would allow an attacker to remotely crash
2448       most Tor instances, especially those compiled with extra compiler
2449       hardening. With this defense in place, such bugs can't crash Tor,
2450       though we should still fix them as they occur. Closes ticket
2451       20384 (TROVE-2016-10-001).
2453   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
2454     - Avoid a difficult-to-trigger heap corruption attack when extending
2455       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
2456       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
2457       Reported by Guido Vranken.
2459   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
2460     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
2461       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
2463   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
2464     - If OpenSSL fails to generate an RSA key, do not retain a dangling
2465       pointer to the previous (uninitialized) key value. The impact here
2466       should be limited to a difficult-to-trigger crash, if OpenSSL is
2467       running an engine that makes key generation failures possible, or
2468       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
2469       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
2470       Baishakhi Ray.
2472   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
2473     - Fix an integer underflow bug when comparing malformed Tor
2474       versions. This bug could crash Tor when built with
2475       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
2476       0.2.9.8, which were built with -ftrapv by default. In other cases
2477       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
2478       on 0.0.8pre1. Found by OSS-Fuzz.
2480   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
2481     - Make memwipe() do nothing when passed a NULL pointer or buffer of
2482       zero size. Check size argument to memwipe() for underflow. Fixes
2483       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
2484       patch by "teor".
2486   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
2487     - Make Tor survive errors involving connections without a
2488       corresponding event object. Previously we'd fail with an
2489       assertion; now we produce a log message. Related to bug 16248.
2491   o Minor features (geoip):
2492     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
2493       Country database.
2496 Changes in version 0.2.6.11 - 2017-03-03
2497   Tor 0.2.6.11 backports a number of security fixes from later Tor
2498   releases.  Anybody running Tor 0.2.6.10 or earlier should upgrade to
2499   this release, if for some reason they cannot upgrade to a later
2500   release series.
2502   Note that support for Tor 0.2.6.x is ending this year: we will not issue
2503   any fixes for the Tor 0.2.6.x series after 1 August 2017.  If you need
2504   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
2506   o Directory authority changes (backport from 0.2.8.5-rc):
2507     - Urras is no longer a directory authority. Closes ticket 19271.
2509   o Directory authority changes (backport from 0.2.9.2-alpha):
2510     - The "Tonga" bridge authority has been retired; the new bridge
2511       authority is "Bifroest". Closes tickets 19728 and 19690.
2513   o Directory authority key updates (backport from 0.2.8.1-alpha):
2514     - Update the V3 identity key for the dannenberg directory authority:
2515       it was changed on 18 November 2015. Closes task 17906. Patch
2516       by "teor".
2518   o Major features (security fixes, backport from 0.2.9.4-alpha):
2519     - Prevent a class of security bugs caused by treating the contents
2520       of a buffer chunk as if they were a NUL-terminated string. At
2521       least one such bug seems to be present in all currently used
2522       versions of Tor, and would allow an attacker to remotely crash
2523       most Tor instances, especially those compiled with extra compiler
2524       hardening. With this defense in place, such bugs can't crash Tor,
2525       though we should still fix them as they occur. Closes ticket
2526       20384 (TROVE-2016-10-001).
2528   o Major bugfixes (parsing, security, backport from 0.2.9.8):
2529     - Fix a bug in parsing that could cause clients to read a single
2530       byte past the end of an allocated region. This bug could be used
2531       to cause hardened clients (built with --enable-expensive-hardening)
2532       to crash if they tried to visit a hostile hidden service. Non-
2533       hardened clients are only affected depending on the details of
2534       their platform's memory allocator. Fixes bug 21018; bugfix on
2535       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
2536       2016-12-002 and as CVE-2016-1254.
2538   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
2539     - Stop a crash that could occur when a client running with DNSPort
2540       received a query with multiple address types, and the first
2541       address type was not supported. Found and fixed by Scott Dial.
2542       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
2544   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
2545     - Fix an error that could cause us to read 4 bytes before the
2546       beginning of an openssl string. This bug could be used to cause
2547       Tor to crash on systems with unusual malloc implementations, or
2548       systems with unusual hardening installed. Fixes bug 17404; bugfix
2549       on 0.2.3.6-alpha.
2551   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
2552     - Avoid a difficult-to-trigger heap corruption attack when extending
2553       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
2554       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
2555       Reported by Guido Vranken.
2557   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
2558     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
2559       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
2561   o Major bugfixes (guard selection, backport from 0.2.7.6):
2562     - Actually look at the Guard flag when selecting a new directory
2563       guard. When we implemented the directory guard design, we
2564       accidentally started treating all relays as if they have the Guard
2565       flag during guard selection, leading to weaker anonymity and worse
2566       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
2567       by Mohsen Imani.
2569   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
2570     - If OpenSSL fails to generate an RSA key, do not retain a dangling
2571       pointer to the previous (uninitialized) key value. The impact here
2572       should be limited to a difficult-to-trigger crash, if OpenSSL is
2573       running an engine that makes key generation failures possible, or
2574       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
2575       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
2576       Baishakhi Ray.
2578   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
2579     - Fix an integer underflow bug when comparing malformed Tor
2580       versions. This bug could crash Tor when built with
2581       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
2582       0.2.9.8, which were built with -ftrapv by default. In other cases
2583       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
2584       on 0.0.8pre1. Found by OSS-Fuzz.
2586   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
2587     - Make memwipe() do nothing when passed a NULL pointer or buffer of
2588       zero size. Check size argument to memwipe() for underflow. Fixes
2589       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
2590       patch by "teor".
2592   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
2593     - Make Tor survive errors involving connections without a
2594       corresponding event object. Previously we'd fail with an
2595       assertion; now we produce a log message. Related to bug 16248.
2597   o Minor features (geoip):
2598     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
2599       Country database.
2601   o Minor bugfixes (compilation, backport from 0.2.7.6):
2602     - Fix a compilation warning with Clang 3.6: Do not check the
2603       presence of an address which can never be NULL. Fixes bug 17781.
2606 Changes in version 0.2.5.13 - 2017-03-03
2607   Tor 0.2.5.13 backports a number of security fixes from later Tor
2608   releases.  Anybody running Tor 0.2.5.13 or earlier should upgrade to
2609   this release, if for some reason they cannot upgrade to a later
2610   release series.
2612   Note that support for Tor 0.2.5.x is ending next year: we will not issue
2613   any fixes for the Tor 0.2.5.x series after 1 May 2018.  If you need
2614   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
2616   o Directory authority changes (backport from 0.2.8.5-rc):
2617     - Urras is no longer a directory authority. Closes ticket 19271.
2619   o Directory authority changes (backport from 0.2.9.2-alpha):
2620     - The "Tonga" bridge authority has been retired; the new bridge
2621       authority is "Bifroest". Closes tickets 19728 and 19690.
2623   o Directory authority key updates (backport from 0.2.8.1-alpha):
2624     - Update the V3 identity key for the dannenberg directory authority:
2625       it was changed on 18 November 2015. Closes task 17906. Patch
2626       by "teor".
2628   o Major features (security fixes, backport from 0.2.9.4-alpha):
2629     - Prevent a class of security bugs caused by treating the contents
2630       of a buffer chunk as if they were a NUL-terminated string. At
2631       least one such bug seems to be present in all currently used
2632       versions of Tor, and would allow an attacker to remotely crash
2633       most Tor instances, especially those compiled with extra compiler
2634       hardening. With this defense in place, such bugs can't crash Tor,
2635       though we should still fix them as they occur. Closes ticket
2636       20384 (TROVE-2016-10-001).
2638   o Major bugfixes (parsing, security, backport from 0.2.9.8):
2639     - Fix a bug in parsing that could cause clients to read a single
2640       byte past the end of an allocated region. This bug could be used
2641       to cause hardened clients (built with --enable-expensive-hardening)
2642       to crash if they tried to visit a hostile hidden service. Non-
2643       hardened clients are only affected depending on the details of
2644       their platform's memory allocator. Fixes bug 21018; bugfix on
2645       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
2646       2016-12-002 and as CVE-2016-1254.
2648   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
2649     - Stop a crash that could occur when a client running with DNSPort
2650       received a query with multiple address types, and the first
2651       address type was not supported. Found and fixed by Scott Dial.
2652       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
2654   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
2655     - Fix an error that could cause us to read 4 bytes before the
2656       beginning of an openssl string. This bug could be used to cause
2657       Tor to crash on systems with unusual malloc implementations, or
2658       systems with unusual hardening installed. Fixes bug 17404; bugfix
2659       on 0.2.3.6-alpha.
2661   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
2662     - Avoid a difficult-to-trigger heap corruption attack when extending
2663       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
2664       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
2665       Reported by Guido Vranken.
2667   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
2668     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
2669       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
2671   o Major bugfixes (guard selection, backport from 0.2.7.6):
2672     - Actually look at the Guard flag when selecting a new directory
2673       guard. When we implemented the directory guard design, we
2674       accidentally started treating all relays as if they have the Guard
2675       flag during guard selection, leading to weaker anonymity and worse
2676       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
2677       by Mohsen Imani.
2679   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
2680     - If OpenSSL fails to generate an RSA key, do not retain a dangling
2681       pointer to the previous (uninitialized) key value. The impact here
2682       should be limited to a difficult-to-trigger crash, if OpenSSL is
2683       running an engine that makes key generation failures possible, or
2684       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
2685       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
2686       Baishakhi Ray.
2688   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
2689     - Fix an integer underflow bug when comparing malformed Tor
2690       versions. This bug could crash Tor when built with
2691       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
2692       0.2.9.8, which were built with -ftrapv by default. In other cases
2693       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
2694       on 0.0.8pre1. Found by OSS-Fuzz.
2696   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
2697     - Make memwipe() do nothing when passed a NULL pointer or buffer of
2698       zero size. Check size argument to memwipe() for underflow. Fixes
2699       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
2700       patch by "teor".
2702   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
2703     - Make Tor survive errors involving connections without a
2704       corresponding event object. Previously we'd fail with an
2705       assertion; now we produce a log message. Related to bug 16248.
2707   o Minor features (geoip):
2708     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
2709       Country database.
2711   o Minor bugfixes (compilation, backport from 0.2.7.6):
2712     - Fix a compilation warning with Clang 3.6: Do not check the
2713       presence of an address which can never be NULL. Fixes bug 17781.
2715   o Minor bugfixes (crypto error-handling, backport from 0.2.7.2-alpha):
2716     - Check for failures from crypto_early_init, and refuse to continue.
2717       A previous typo meant that we could keep going with an
2718       uninitialized crypto library, and would have OpenSSL initialize
2719       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
2720       when implementing ticket 4900. Patch by "teor".
2722   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
2723     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
2724       a client authorized hidden service. Fixes bug 15823; bugfix
2725       on 0.2.1.6-alpha.
2728 Changes in version 0.2.4.28 - 2017-03-03
2729   Tor 0.2.4.28 backports a number of security fixes from later Tor
2730   releases.  Anybody running Tor 0.2.4.27 or earlier should upgrade to
2731   this release, if for some reason they cannot upgrade to a later
2732   release series.
2734   Note that support for Tor 0.2.4.x is ending soon: we will not issue
2735   any fixes for the Tor 0.2.4.x series after 1 August 2017.  If you need
2736   a Tor release series with long-term support, we recommend Tor 0.2.9.x.
2738   o Directory authority changes (backport from 0.2.8.5-rc):
2739     - Urras is no longer a directory authority. Closes ticket 19271.
2741   o Directory authority changes (backport from 0.2.9.2-alpha):
2742     - The "Tonga" bridge authority has been retired; the new bridge
2743       authority is "Bifroest". Closes tickets 19728 and 19690.
2745   o Directory authority key updates (backport from 0.2.8.1-alpha):
2746     - Update the V3 identity key for the dannenberg directory authority:
2747       it was changed on 18 November 2015. Closes task 17906. Patch
2748       by "teor".
2750   o Major features (security fixes, backport from 0.2.9.4-alpha):
2751     - Prevent a class of security bugs caused by treating the contents
2752       of a buffer chunk as if they were a NUL-terminated string. At
2753       least one such bug seems to be present in all currently used
2754       versions of Tor, and would allow an attacker to remotely crash
2755       most Tor instances, especially those compiled with extra compiler
2756       hardening. With this defense in place, such bugs can't crash Tor,
2757       though we should still fix them as they occur. Closes ticket
2758       20384 (TROVE-2016-10-001).
2760   o Major bugfixes (parsing, security, backport from 0.2.9.8):
2761     - Fix a bug in parsing that could cause clients to read a single
2762       byte past the end of an allocated region. This bug could be used
2763       to cause hardened clients (built with --enable-expensive-hardening)
2764       to crash if they tried to visit a hostile hidden service. Non-
2765       hardened clients are only affected depending on the details of
2766       their platform's memory allocator. Fixes bug 21018; bugfix on
2767       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
2768       2016-12-002 and as CVE-2016-1254.
2770   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
2771     - Fix an error that could cause us to read 4 bytes before the
2772       beginning of an openssl string. This bug could be used to cause
2773       Tor to crash on systems with unusual malloc implementations, or
2774       systems with unusual hardening installed. Fixes bug 17404; bugfix
2775       on 0.2.3.6-alpha.
2777   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
2778     - Avoid a difficult-to-trigger heap corruption attack when extending
2779       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
2780       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
2781       Reported by Guido Vranken.
2783   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
2784     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
2785       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
2787   o Major bugfixes (guard selection, backport from 0.2.7.6):
2788     - Actually look at the Guard flag when selecting a new directory
2789       guard. When we implemented the directory guard design, we
2790       accidentally started treating all relays as if they have the Guard
2791       flag during guard selection, leading to weaker anonymity and worse
2792       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
2793       by Mohsen Imani.
2795   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
2796     - If OpenSSL fails to generate an RSA key, do not retain a dangling
2797       pointer to the previous (uninitialized) key value. The impact here
2798       should be limited to a difficult-to-trigger crash, if OpenSSL is
2799       running an engine that makes key generation failures possible, or
2800       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
2801       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
2802       Baishakhi Ray.
2804   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
2805     - Fix an integer underflow bug when comparing malformed Tor
2806       versions. This bug could crash Tor when built with
2807       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
2808       0.2.9.8, which were built with -ftrapv by default. In other cases
2809       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
2810       on 0.0.8pre1. Found by OSS-Fuzz.
2812   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
2813     - Make memwipe() do nothing when passed a NULL pointer or buffer of
2814       zero size. Check size argument to memwipe() for underflow. Fixes
2815       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
2816       patch by "teor".
2818   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
2819     - Make Tor survive errors involving connections without a
2820       corresponding event object. Previously we'd fail with an
2821       assertion; now we produce a log message. Related to bug 16248.
2823   o Minor features (DoS-resistance, backport from 0.2.7.1-alpha):
2824     - Make it harder for attackers to overload hidden services with
2825       introductions, by blocking multiple introduction requests on the
2826       same circuit. Resolves ticket 15515.
2828   o Minor features (geoip):
2829     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
2830       Country database.
2832   o Minor bugfixes (compilation, backport from 0.2.7.6):
2833     - Fix a compilation warning with Clang 3.6: Do not check the
2834       presence of an address which can never be NULL. Fixes bug 17781.
2836   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
2837     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
2838       a client authorized hidden service. Fixes bug 15823; bugfix
2839       on 0.2.1.6-alpha.
2842 Changes in version 0.3.0.4-rc - 2017-03-01
2843   Tor 0.3.0.4-rc fixes some remaining bugs, large and small, in the
2844   0.3.0 release series, and introduces a few reliability features to
2845   keep them from coming back.
2847   This is the first release candidate in the Tor 0.3.0 series. If we
2848   find no new bugs or regressions here, the first stable 0.3.0 release
2849   will be nearly identical to it.
2851   o Major bugfixes (bridges):
2852     - When the same bridge is configured multiple times with the same
2853       identity, but at different address:port combinations, treat those
2854       bridge instances as separate guards. This fix restores the ability
2855       of clients to configure the same bridge with multiple pluggable
2856       transports. Fixes bug 21027; bugfix on 0.3.0.1-alpha.
2858   o Major bugfixes (hidden service directory v3):
2859     - Stop crashing on a failed v3 hidden service descriptor lookup
2860       failure. Fixes bug 21471; bugfixes on tor-0.3.0.1-alpha.
2862   o Major bugfixes (parsing):
2863     - When parsing a malformed content-length field from an HTTP
2864       message, do not read off the end of the buffer. This bug was a
2865       potential remote denial-of-service attack against Tor clients and
2866       relays. A workaround was released in October 2016, to prevent this
2867       bug from crashing Tor. This is a fix for the underlying issue,
2868       which should no longer matter (if you applied the earlier patch).
2869       Fixes bug 20894; bugfix on 0.2.0.16-alpha. Bug found by fuzzing
2870       using AFL (http://lcamtuf.coredump.cx/afl/).
2871     - Fix an integer underflow bug when comparing malformed Tor
2872       versions. This bug could crash Tor when built with
2873       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
2874       0.2.9.8, which were built with -ftrapv by default. In other cases
2875       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
2876       on 0.0.8pre1. Found by OSS-Fuzz.
2878   o Minor feature (protocol versioning):
2879     - Add new protocol version for proposal 224. HSIntro now advertises
2880       version "3-4" and HSDir version "1-2". Fixes ticket 20656.
2882   o Minor features (directory authorities):
2883     - Directory authorities now reject descriptors that claim to be
2884       malformed versions of Tor. Helps prevent exploitation of
2885       bug 21278.
2886     - Reject version numbers with components that exceed INT32_MAX.
2887       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
2888       Fixes bug 21450; bugfix on 0.0.8pre1.
2889     - Directory authorities now reject relays running versions
2890       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
2891       suffer from bug 20499 and don't keep their consensus cache
2892       up-to-date. Resolves ticket 20509.
2894   o Minor features (geoip):
2895     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
2896       Country database.
2898   o Minor features (reliability, crash):
2899     - Try better to detect problems in buffers where they might grow (or
2900       think they have grown) over 2 GB in size. Diagnostic for
2901       bug 21369.
2903   o Minor features (testing):
2904     - During 'make test-network-all', if tor logs any warnings, ask
2905       chutney to output them. Requires a recent version of chutney with
2906       the 21572 patch. Implements 21570.
2908   o Minor bugfixes (certificate expiration time):
2909     - Avoid using link certificates that don't become valid till some
2910       time in the future. Fixes bug 21420; bugfix on 0.2.4.11-alpha
2912   o Minor bugfixes (code correctness):
2913     - Repair a couple of (unreachable or harmless) cases of the risky
2914       comparison-by-subtraction pattern that caused bug 21278.
2915     - Remove a redundant check for the UseEntryGuards option from the
2916       options_transition_affects_guards() function. Fixes bug 21492;
2917       bugfix on 0.3.0.1-alpha.
2919   o Minor bugfixes (directory mirrors):
2920     - Allow relays to use directory mirrors without a DirPort: these
2921       relays need to be contacted over their ORPorts using a begindir
2922       connection. Fixes one case of bug 20711; bugfix on 0.2.8.2-alpha.
2923     - Clarify the message logged when a remote relay is unexpectedly
2924       missing an ORPort or DirPort: users were confusing this with a
2925       local port. Fixes another case of bug 20711; bugfix
2926       on 0.2.8.2-alpha.
2928   o Minor bugfixes (guards):
2929     - Don't warn about a missing guard state on timeout-measurement
2930       circuits: they aren't supposed to be using guards. Fixes an
2931       instance of bug 21007; bugfix on 0.3.0.1-alpha.
2932     - Silence a BUG() warning when attempting to use a guard whose
2933       descriptor we don't know, and make this scenario less likely to
2934       happen. Fixes bug 21415; bugfix on 0.3.0.1-alpha.
2936   o Minor bugfixes (hidden service):
2937     - Pass correct buffer length when encoding legacy ESTABLISH_INTRO
2938       cells. Previously, we were using sizeof() on a pointer, instead of
2939       the real destination buffer. Fortunately, that value was only used
2940       to double-check that there was enough room--which was already
2941       enforced elsewhere. Fixes bug 21553; bugfix on 0.3.0.1-alpha.
2943   o Minor bugfixes (testing):
2944     - Fix Raspbian build issues related to missing socket errno in
2945       test_util.c. Fixes bug 21116; bugfix on tor-0.2.8.2. Patch
2946       by "hein".
2947     - Rename "make fuzz" to "make test-fuzz-corpora", since it doesn't
2948       actually fuzz anything. Fixes bug 21447; bugfix on 0.3.0.3-alpha.
2949     - Use bash in src/test/test-network.sh. This ensures we reliably
2950       call chutney's newer tools/test-network.sh when available. Fixes
2951       bug 21562; bugfix on 0.2.9.1-alpha.
2953   o Documentation:
2954     - Small fixes to the fuzzing documentation. Closes ticket 21472.
2957 Changes in version 0.2.9.10 - 2017-03-01
2958   Tor 0.2.9.10 backports a security fix from later Tor release.  It also
2959   includes fixes for some major issues affecting directory authorities,
2960   LibreSSL compatibility, and IPv6 correctness.
2962   The Tor 0.2.9.x release series is now marked as a long-term-support
2963   series.  We intend to backport security fixes to 0.2.9.x until at
2964   least January of 2020.
2966   o Major bugfixes (directory authority, 0.3.0.3-alpha):
2967     - During voting, when marking a relay as a probable sybil, do not
2968       clear its BadExit flag: sybils can still be bad in other ways
2969       too. (We still clear the other flags.) Fixes bug 21108; bugfix
2970       on 0.2.0.13-alpha.
2972   o Major bugfixes (IPv6 Exits, backport from 0.3.0.3-alpha):
2973     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
2974       any IPv6 addresses. Instead, only reject a port over IPv6 if the
2975       exit policy rejects that port on more than an IPv6 /16 of
2976       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
2977       which rejected a relay's own IPv6 address by default. Fixes bug
2978       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
2980   o Major bugfixes (parsing, also in 0.3.0.4-rc):
2981     - Fix an integer underflow bug when comparing malformed Tor
2982       versions. This bug could crash Tor when built with
2983       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
2984       0.2.9.8, which were built with -ftrapv by default. In other cases
2985       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
2986       on 0.0.8pre1. Found by OSS-Fuzz.
2988   o Minor features (directory authorities, also in 0.3.0.4-rc):
2989     - Directory authorities now reject descriptors that claim to be
2990       malformed versions of Tor. Helps prevent exploitation of
2991       bug 21278.
2992     - Reject version numbers with components that exceed INT32_MAX.
2993       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
2994       Fixes bug 21450; bugfix on 0.0.8pre1.
2996   o Minor features (geoip):
2997     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
2998       Country database.
3000   o Minor features (portability, compilation, backport from 0.3.0.3-alpha):
3001     - Autoconf now checks to determine if OpenSSL structures are opaque,
3002       instead of explicitly checking for OpenSSL version numbers. Part
3003       of ticket 21359.
3004     - Support building with recent LibreSSL code that uses opaque
3005       structures. Closes ticket 21359.
3007   o Minor bugfixes (code correctness, also in 0.3.0.4-rc):
3008     - Repair a couple of (unreachable or harmless) cases of the risky
3009       comparison-by-subtraction pattern that caused bug 21278.
3011   o Minor bugfixes (tor-resolve, backport from 0.3.0.3-alpha):
3012     - The tor-resolve command line tool now rejects hostnames over 255
3013       characters in length. Previously, it would silently truncate them,
3014       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
3015       Patch by "junglefowl".
3018 Changes in version 0.3.0.3-alpha - 2017-02-03
3019   Tor 0.3.0.3-alpha fixes a few significant bugs introduced over the
3020   0.3.0.x development series, including some that could cause
3021   authorities to behave badly. There is also a fix for a longstanding
3022   bug that could prevent IPv6 exits from working. Tor 0.3.0.3-alpha also
3023   includes some smaller features and bugfixes.
3025   The Tor 0.3.0.x release series is now in patch-freeze: no additional
3026   features will be considered for inclusion in 0.3.0.x. We suspect that
3027   some bugs will probably remain, however, and we encourage people to
3028   test this release.
3030   o Major bugfixes (directory authority):
3031     - During voting, when marking a relay as a probable sybil, do not
3032       clear its BadExit flag: sybils can still be bad in other ways
3033       too. (We still clear the other flags.) Fixes bug 21108; bugfix
3034       on 0.2.0.13-alpha.
3035     - When deciding whether we have just found a router to be reachable,
3036       do not penalize it for not having performed an Ed25519 link
3037       handshake if it does not claim to support an Ed25519 handshake.
3038       Previously, we would treat such relays as non-running. Fixes bug
3039       21107; bugfix on 0.3.0.1-alpha.
3041   o Major bugfixes (entry guards):
3042     - Stop trying to build circuits through entry guards for which we
3043       have no descriptor. Also, stop crashing in the case that we *do*
3044       accidentally try to build a circuit in such a state. Fixes bug
3045       21242; bugfix on 0.3.0.1-alpha.
3047   o Major bugfixes (IPv6 Exits):
3048     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
3049       any IPv6 addresses. Instead, only reject a port over IPv6 if the
3050       exit policy rejects that port on more than an IPv6 /16 of
3051       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
3052       which rejected a relay's own IPv6 address by default. Fixes bug
3053       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
3055   o Minor feature (client):
3056     - Enable IPv6 traffic on the SocksPort by default. To disable this,
3057       a user will have to specify "NoIPv6Traffic". Closes ticket 21269.
3059   o Minor feature (fallback scripts):
3060     - Add a check_existing mode to updateFallbackDirs.py, which checks
3061       if fallbacks in the hard-coded list are working. Closes ticket
3062       20174. Patch by haxxpop.
3064   o Minor features (ciphersuite selection):
3065     - Clients now advertise a list of ciphersuites closer to the ones
3066       preferred by Firefox. Closes part of ticket 15426.
3067     - Allow relays to accept a wider range of ciphersuites, including
3068       chacha20-poly1305 and AES-CCM. Closes the other part of 15426.
3070   o Minor features (controller, configuration):
3071     - Each of the *Port options, such as SocksPort, ORPort, ControlPort,
3072       and so on, now comes with a __*Port variant that will not be saved
3073       to the torrc file by the controller's SAVECONF command. This
3074       change allows TorBrowser to set up a single-use domain socket for
3075       each time it launches Tor. Closes ticket 20956.
3076     - The GETCONF command can now query options that may only be
3077       meaningful in context-sensitive lists. This allows the controller
3078       to query the mixed SocksPort/__SocksPort style options introduced
3079       in feature 20956. Implements ticket 21300.
3081   o Minor features (portability, compilation):
3082     - Autoconf now checks to determine if OpenSSL structures are opaque,
3083       instead of explicitly checking for OpenSSL version numbers. Part
3084       of ticket 21359.
3085     - Support building with recent LibreSSL code that uses opaque
3086       structures. Closes ticket 21359.
3088   o Minor features (relay):
3089     - We now allow separation of exit and relay traffic to different
3090       source IP addresses, using the OutboundBindAddressExit and
3091       OutboundBindAddressOR options respectively. Closes ticket 17975.
3092       Written by Michael Sonntag.
3094   o Minor bugfix (logging):
3095     - Don't recommend the use of Tor2web in non-anonymous mode.
3096       Recommending Tor2web is a bad idea because the client loses all
3097       anonymity. Tor2web should only be used in specific cases by users
3098       who *know* and understand the issues. Fixes bug 21294; bugfix
3099       on 0.2.9.3-alpha.
3101   o Minor bugfixes (client):
3102     - Always recover from failures in extend_info_from_node(), in an
3103       attempt to prevent any recurrence of bug 21242. Fixes bug 21372;
3104       bugfix on 0.2.3.1-alpha.
3106   o Minor bugfixes (client, entry guards):
3107     - Fix a bug warning (with backtrace) when we fail a channel that
3108       circuits to fallback directories on it. Fixes bug 21128; bugfix
3109       on 0.3.0.1-alpha.
3110     - Fix a spurious bug warning (with backtrace) when removing an
3111       expired entry guard. Fixes bug 21129; bugfix on 0.3.0.1-alpha.
3112     - Fix a bug of the new guard algorithm where tor could stall for up
3113       to 10 minutes before retrying a guard after a long period of no
3114       network. Fixes bug 21052; bugfix on 0.3.0.1-alpha.
3115     - Do not try to build circuits until we have descriptors for our
3116       primary entry guards. Related to fix for bug 21242.
3118   o Minor bugfixes (configure, autoconf):
3119     - Rename the configure option --enable-expensive-hardening to
3120       --enable-fragile-hardening. Expensive hardening makes the tor
3121       daemon abort when some kinds of issues are detected. Thus, it
3122       makes tor more at risk of remote crashes but safer against RCE or
3123       heartbleed bug category. We now try to explain this issue in a
3124       message from the configure script. Fixes bug 21290; bugfix
3125       on 0.2.5.4-alpha.
3127   o Minor bugfixes (controller):
3128     - Restore the (deprecated) DROPGUARDS controller command. Fixes bug
3129       20824; bugfix on 0.3.0.1-alpha.
3131   o Minor bugfixes (hidden service):
3132     - Clean up the code for expiring intro points with no associated
3133       circuits. It was causing, rarely, a service with some expiring
3134       introduction points to not open enough additional introduction
3135       points. Fixes part of bug 21302; bugfix on 0.2.7.2-alpha.
3136     - Stop setting the torrc option HiddenServiceStatistics to "0" just
3137       because we're not a bridge or relay. Instead, we preserve whatever
3138       value the user set (or didn't set). Fixes bug 21150; bugfix
3139       on 0.2.6.2-alpha.
3140     - Resolve two possible underflows which could lead to creating and
3141       closing a lot of introduction point circuits in a non-stop loop.
3142       Fixes bug 21302; bugfix on 0.2.7.2-alpha.
3144   o Minor bugfixes (portability):
3145     - Use "OpenBSD" compiler macro instead of "OPENBSD" or "__OpenBSD__".
3146       It is supported by OpenBSD itself, and also by most OpenBSD
3147       variants (such as Bitrig). Fixes bug 20980; bugfix
3148       on 0.1.2.1-alpha.
3149     - When mapping a file of length greater than SIZE_MAX, do not
3150       silently truncate its contents. This issue could occur on 32 bit
3151       systems with large file support and files which are larger than 4
3152       GB. Fixes bug 21134; bugfix on 0.3.0.1-alpha.
3154   o Minor bugfixes (tor-resolve):
3155     - The tor-resolve command line tool now rejects hostnames over 255
3156       characters in length. Previously, it would silently truncate them,
3157       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
3158       Patch by "junglefowl".
3160   o Minor bugfixes (Windows services):
3161     - Be sure to initialize the monotonic time subsystem before using
3162       it, even when running as an NT service. Fixes bug 21356; bugfix
3163       on 0.2.9.1-alpha.
3166 Changes in version 0.3.0.2-alpha - 2017-01-23
3167   Tor 0.3.0.2-alpha fixes a denial-of-service bug where an attacker could
3168   cause relays and clients to crash, even if they were not built with
3169   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
3170   versions, and also affects 0.3.0.1-alpha: all relays running an affected
3171   version should upgrade.
3173   Tor 0.3.0.2-alpha also improves how exit relays and clients handle DNS
3174   time-to-live values, makes directory authorities enforce the 1-to-1
3175   mapping of relay RSA identity keys to ED25519 identity keys, fixes a
3176   client-side onion service reachability bug, does better at selecting
3177   the set of fallback directories, and more.
3179   o Major bugfixes (security, also in 0.2.9.9):
3180     - Downgrade the "-ftrapv" option from "always on" to "only on when
3181       --enable-expensive-hardening is provided."  This hardening option, like
3182       others, can turn survivable bugs into crashes--and having it on by
3183       default made a (relatively harmless) integer overflow bug into a
3184       denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); bugfix on
3185       0.2.9.1-alpha.
3187   o Major features (security):
3188     - Change the algorithm used to decide DNS TTLs on client and server
3189       side, to better resist DNS-based correlation attacks like the
3190       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
3191       Feamster. Now relays only return one of two possible DNS TTL
3192       values, and clients are willing to believe DNS TTL values up to 3
3193       hours long. Closes ticket 19769.
3195   o Major features (directory authority, security):
3196     - The default for AuthDirPinKeys is now 1: directory authorities
3197       will reject relays where the RSA identity key matches a previously
3198       seen value, but the Ed25519 key has changed. Closes ticket 18319.
3200   o Major bugfixes (client, guard, crash):
3201     - In circuit_get_global_origin_list(), return the actual list of
3202       origin circuits. The previous version of this code returned the
3203       list of all the circuits, and could have caused strange bugs,
3204       including possible crashes. Fixes bug 21118; bugfix
3205       on 0.3.0.1-alpha.
3207   o Major bugfixes (client, onion service, also in 0.2.9.9):
3208     - Fix a client-side onion service reachability bug, where multiple
3209       socks requests to an onion service (or a single slow request)
3210       could cause us to mistakenly mark some of the service's
3211       introduction points as failed, and we cache that failure so
3212       eventually we run out and can't reach the service. Also resolves a
3213       mysterious "Remote server sent bogus reason code 65021" log
3214       warning. The bug was introduced in ticket 17218, where we tried to
3215       remember the circuit end reason as a uint16_t, which mangled
3216       negative values. Partially fixes bug 21056 and fixes bug 20307;
3217       bugfix on 0.2.8.1-alpha.
3219   o Major bugfixes (DNS):
3220     - Fix a bug that prevented exit nodes from caching DNS records for
3221       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
3223   o Minor features (controller):
3224     - Add "GETINFO sr/current" and "GETINFO sr/previous" keys, to expose
3225       shared-random values to the controller. Closes ticket 19925.
3227   o Minor features (entry guards):
3228     - Add UseEntryGuards to TEST_OPTIONS_DEFAULT_VALUES in order to not
3229       break regression tests.
3230     - Require UseEntryGuards when UseBridges is set, in order to make
3231       sure bridges aren't bypassed. Resolves ticket 20502.
3233   o Minor features (fallback directories):
3234     - Select 200 fallback directories for each release. Closes
3235       ticket 20881.
3236     - Allow 3 fallback relays per operator, which is safe now that we
3237       are choosing 200 fallback relays. Closes ticket 20912.
3238     - Exclude relays affected by bug 20499 from the fallback list.
3239       Exclude relays from the fallback list if they are running versions
3240       known to be affected by bug 20499, or if in our tests they deliver
3241       a stale consensus (i.e. one that expired more than 24 hours ago).
3242       Closes ticket 20539.
3243     - Reduce the minimum fallback bandwidth to 1 MByte/s. Part of
3244       ticket 18828.
3245     - Require fallback directories to have the same address and port for
3246       7 days (now that we have enough relays with this stability).
3247       Relays whose OnionOO stability timer is reset on restart by bug
3248       18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for
3249       this issue. Closes ticket 20880; maintains short-term fix
3250       in 0.2.8.2-alpha.
3251     - Require fallbacks to have flags for 90% of the time (weighted
3252       decaying average), rather than 95%. This allows at least 73% of
3253       clients to bootstrap in the first 5 seconds without contacting an
3254       authority. Part of ticket 18828.
3255     - Annotate updateFallbackDirs.py with the bandwidth and consensus
3256       weight for each candidate fallback. Closes ticket 20878.
3257     - Make it easier to change the output sort order of fallbacks.
3258       Closes ticket 20822.
3259     - Display the relay fingerprint when downloading consensuses from
3260       fallbacks. Closes ticket 20908.
3262   o Minor features (geoip, also in 0.2.9.9):
3263     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
3264       Country database.
3266   o Minor features (next-gen onion service directories):
3267     - Remove the "EnableOnionServicesV3" consensus parameter that we
3268       introduced in 0.3.0.1-alpha: relays are now always willing to act
3269       as v3 onion service directories. Resolves ticket 19899.
3271   o Minor features (linting):
3272     - Enhance the changes file linter to warn on Tor versions that are
3273       prefixed with "tor-". Closes ticket 21096.
3275   o Minor features (logging):
3276     - In several places, describe unset ed25519 keys as "<unset>",
3277       rather than the scary "AAAAAAAA...AAA". Closes ticket 21037.
3279   o Minor bugfix (control protocol):
3280     - The reply to a "GETINFO config/names" request via the control
3281       protocol now spells the type "Dependent" correctly. This is a
3282       breaking change in the control protocol. (The field seems to be
3283       ignored by the most common known controllers.) Fixes bug 18146;
3284       bugfix on 0.1.1.4-alpha.
3286   o Minor bugfixes (bug resilience):
3287     - Fix an unreachable size_t overflow in base64_decode(). Fixes bug
3288       19222; bugfix on 0.2.0.9-alpha. Found by Guido Vranken; fixed by
3289       Hans Jerry Illikainen.
3291   o Minor bugfixes (build):
3292     - Replace obsolete Autoconf macros with their modern equivalent and
3293       prevent similar issues in the future. Fixes bug 20990; bugfix
3294       on 0.1.0.1-rc.
3296   o Minor bugfixes (client, guards):
3297     - Fix bug where Tor would think that there are circuits waiting for
3298       better guards even though those circuits have been freed. Fixes
3299       bug 21142; bugfix on 0.3.0.1-alpha.
3301   o Minor bugfixes (config):
3302     - Don't assert on startup when trying to get the options list and
3303       LearnCircuitBuildTimeout is set to 0: we are currently parsing the
3304       options so of course they aren't ready yet. Fixes bug 21062;
3305       bugfix on 0.2.9.3-alpha.
3307   o Minor bugfixes (controller):
3308     - Make the GETINFO interface for inquiring about entry guards
3309       support the new guards backend. Fixes bug 20823; bugfix
3310       on 0.3.0.1-alpha.
3312   o Minor bugfixes (dead code):
3313     - Remove a redundant check for PidFile changes at runtime in
3314       options_transition_allowed(): this check is already performed
3315       regardless of whether the sandbox is active. Fixes bug 21123;
3316       bugfix on 0.2.5.4-alpha.
3318   o Minor bugfixes (documentation):
3319     - Update the tor manual page to document every option that can not
3320       be changed while tor is running. Fixes bug 21122.
3322   o Minor bugfixes (fallback directories):
3323     - Stop failing when a relay has no uptime data in
3324       updateFallbackDirs.py. Fixes bug 20945; bugfix on 0.2.8.1-alpha.
3325     - Avoid checking fallback candidates' DirPorts if they are down in
3326       OnionOO. When a relay operator has multiple relays, this
3327       prioritizes relays that are up over relays that are down. Fixes
3328       bug 20926; bugfix on 0.2.8.3-alpha.
3329     - Stop failing when OUTPUT_COMMENTS is True in updateFallbackDirs.py.
3330       Fixes bug 20877; bugfix on 0.2.8.3-alpha.
3332   o Minor bugfixes (guards, bootstrapping):
3333     - When connecting to a directory guard during bootstrap, do not mark
3334       the guard as successful until we receive a good-looking directory
3335       response from it. Fixes bug 20974; bugfix on 0.3.0.1-alpha.
3337   o Minor bugfixes (onion services):
3338     - Fix the config reload pruning of old vs new services so it
3339       actually works when both ephemeral and non-ephemeral services are
3340       configured. Fixes bug 21054; bugfix on 0.3.0.1-alpha.
3341     - Allow the number of introduction points to be as low as 0, rather
3342       than as low as 3. Fixes bug 21033; bugfix on 0.2.7.2-alpha.
3344   o Minor bugfixes (IPv6):
3345     - Make IPv6-using clients try harder to find an IPv6 directory
3346       server. Fixes bug 20999; bugfix on 0.2.8.2-alpha.
3347     - When IPv6 addresses have not been downloaded yet (microdesc
3348       consensus documents don't list relay IPv6 addresses), use hard-
3349       coded addresses for authorities, fallbacks, and configured
3350       bridges. Now IPv6-only clients can use microdescriptors. Fixes bug
3351       20996; bugfix on b167e82 from 19608 in 0.2.8.5-alpha.
3353   o Minor bugfixes (memory leaks):
3354     - Fix a memory leak when configuring hidden services. Fixes bug
3355       20987; bugfix on 0.3.0.1-alpha.
3357   o Minor bugfixes (portability, also in 0.2.9.9):
3358     - Avoid crashing when Tor is built using headers that contain
3359       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
3360       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
3361       on 0.2.9.1-alpha.
3362     - Fix Libevent detection on platforms without Libevent 1 headers
3363       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
3365   o Minor bugfixes (relay):
3366     - Honor DataDirectoryGroupReadable when tor is a relay. Previously,
3367       initializing the keys would reset the DataDirectory to 0700
3368       instead of 0750 even if DataDirectoryGroupReadable was set to 1.
3369       Fixes bug 19953; bugfix on 0.0.2pre16. Patch by "redfish".
3371   o Minor bugfixes (testing):
3372     - Remove undefined behavior from the backtrace generator by removing
3373       its signal handler. Fixes bug 21026; bugfix on 0.2.5.2-alpha.
3375   o Minor bugfixes (unit tests):
3376     - Allow the unit tests to pass even when DNS lookups of bogus
3377       addresses do not fail as expected. Fixes bug 20862 and 20863;
3378       bugfix on unit tests introduced in 0.2.8.1-alpha
3379       through 0.2.9.4-alpha.
3381   o Code simplification and refactoring:
3382     - Refactor code to manipulate global_origin_circuit_list into
3383       separate functions. Closes ticket 20921.
3385   o Documentation (formatting):
3386     - Clean up formatting of tor.1 man page and HTML doc, where <pre>
3387       blocks were incorrectly appearing. Closes ticket 20885.
3389   o Documentation (man page):
3390     - Clarify many options in tor.1 and add some min/max values for
3391       HiddenService options. Closes ticket 21058.
3394 Changes in version 0.2.9.9 - 2017-01-23
3395   Tor 0.2.9.9 fixes a denial-of-service bug where an attacker could
3396   cause relays and clients to crash, even if they were not built with
3397   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
3398   versions, and also affects 0.3.0.1-alpha: all relays running an affected
3399   version should upgrade.
3401   This release also resolves a client-side onion service reachability
3402   bug, and resolves a pair of small portability issues.
3404   o Major bugfixes (security):
3405     - Downgrade the "-ftrapv" option from "always on" to "only on when
3406       --enable-expensive-hardening is provided." This hardening option,
3407       like others, can turn survivable bugs into crashes -- and having
3408       it on by default made a (relatively harmless) integer overflow bug
3409       into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001);
3410       bugfix on 0.2.9.1-alpha.
3412   o Major bugfixes (client, onion service):
3413     - Fix a client-side onion service reachability bug, where multiple
3414       socks requests to an onion service (or a single slow request)
3415       could cause us to mistakenly mark some of the service's
3416       introduction points as failed, and we cache that failure so
3417       eventually we run out and can't reach the service. Also resolves a
3418       mysterious "Remote server sent bogus reason code 65021" log
3419       warning. The bug was introduced in ticket 17218, where we tried to
3420       remember the circuit end reason as a uint16_t, which mangled
3421       negative values. Partially fixes bug 21056 and fixes bug 20307;
3422       bugfix on 0.2.8.1-alpha.
3424   o Minor features (geoip):
3425     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
3426       Country database.
3428   o Minor bugfixes (portability):
3429     - Avoid crashing when Tor is built using headers that contain
3430       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
3431       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
3432       on 0.2.9.1-alpha.
3433     - Fix Libevent detection on platforms without Libevent 1 headers
3434       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
3437 Changes in version 0.3.0.1-alpha - 2016-12-19
3438   Tor 0.3.0.1-alpha is the first alpha release in the 0.3.0 development
3439   series. It strengthens Tor's link and circuit handshakes by
3440   identifying relays by their Ed25519 keys, improves the algorithm that
3441   clients use to choose and maintain their list of guards, and includes
3442   additional backend support for the next-generation hidden service
3443   design. It also contains numerous other small features and
3444   improvements to security, correctness, and performance.
3446   Below are the changes since 0.2.9.8.
3448   o Major features (guard selection algorithm):
3449     - Tor's guard selection algorithm has been redesigned from the
3450       ground up, to better support unreliable networks and restrictive
3451       sets of entry nodes, and to better resist guard-capture attacks by
3452       hostile local networks. Implements proposal 271; closes
3453       ticket 19877.
3455   o Major features (next-generation hidden services):
3456     - Relays can now handle v3 ESTABLISH_INTRO cells as specified by
3457       prop224 aka "Next Generation Hidden Services". Service and clients
3458       don't use this functionality yet. Closes ticket 19043. Based on
3459       initial code by Alec Heifetz.
3460     - Relays now support the HSDir version 3 protocol, so that they can
3461       can store and serve v3 descriptors. This is part of the next-
3462       generation onion service work detailled in proposal 224. Closes
3463       ticket 17238.
3465   o Major features (protocol, ed25519 identity keys):
3466     - Relays now use Ed25519 to prove their Ed25519 identities and to
3467       one another, and to clients. This algorithm is faster and more
3468       secure than the RSA-based handshake we've been doing until now.
3469       Implements the second big part of proposal 220; Closes
3470       ticket 15055.
3471     - Clients now support including Ed25519 identity keys in the EXTEND2
3472       cells they generate. By default, this is controlled by a consensus
3473       parameter, currently disabled. You can turn this feature on for
3474       testing by setting ExtendByEd25519ID in your configuration. This
3475       might make your traffic appear different than the traffic
3476       generated by other users, however. Implements part of ticket
3477       15056; part of proposal 220.
3478     - Relays now understand requests to extend to other relays by their
3479       Ed25519 identity keys. When an Ed25519 identity key is included in
3480       an EXTEND2 cell, the relay will only extend the circuit if the
3481       other relay can prove ownership of that identity. Implements part
3482       of ticket 15056; part of proposal 220.
3484   o Major bugfixes (scheduler):
3485     - Actually compare circuit policies in ewma_cmp_cmux(). This bug
3486       caused the channel scheduler to behave more or less randomly,
3487       rather than preferring channels with higher-priority circuits.
3488       Fixes bug 20459; bugfix on 0.2.6.2-alpha.
3490   o Minor features (controller):
3491     - When HSFETCH arguments cannot be parsed, say "Invalid argument"
3492       rather than "unrecognized." Closes ticket 20389; patch from
3493       Ivan Markin.
3495   o Minor features (diagnostic, directory client):
3496     - Warn when we find an unexpected inconsistency in directory
3497       download status objects. Prevents some negative consequences of
3498       bug 20593.
3500   o Minor features (directory authority):
3501     - Add a new authority-only AuthDirTestEd25519LinkKeys option (on by
3502       default) to control whether authorities should try to probe relays
3503       by their Ed25519 link keys. This option will go away in a few
3504       releases--unless we encounter major trouble in our ed25519 link
3505       protocol rollout, in which case it will serve as a safety option.
3507   o Minor features (directory cache):
3508     - Relays and bridges will now refuse to serve the consensus they
3509       have if they know it is too old for a client to use. Closes
3510       ticket 20511.
3512   o Minor features (ed25519 link handshake):
3513     - Advertise support for the ed25519 link handshake using the
3514       subprotocol-versions mechanism, so that clients can tell which
3515       relays can identity themselves by Ed25519 ID. Closes ticket 20552.
3517   o Minor features (fingerprinting resistance, authentication):
3518     - Extend the length of RSA keys used for TLS link authentication to
3519       2048 bits. (These weren't used for forward secrecy; for forward
3520       secrecy, we used P256.) Closes ticket 13752.
3522   o Minor features (infrastructure):
3523     - Implement smartlist_add_strdup() function. Replaces the use of
3524       smartlist_add(sl, tor_strdup(str)). Closes ticket 20048.
3526   o Minor bugfixes (client):
3527     - When clients that use bridges start up with a cached consensus on
3528       disk, they were ignoring it and downloading a new one. Now they
3529       use the cached one. Fixes bug 20269; bugfix on 0.2.3.12-alpha.
3531   o Minor bugfixes (configuration):
3532     - Accept non-space whitespace characters after the severity level in
3533       the `Log` option. Fixes bug 19965; bugfix on 0.2.1.1-alpha.
3534     - Support "TByte" and "TBytes" units in options given in bytes.
3535       "TB", "terabyte(s)", "TBit(s)" and "terabit(s)" were already
3536       supported. Fixes bug 20622; bugfix on 0.2.0.14-alpha.
3538   o Minor bugfixes (consensus weight):
3539     - Add new consensus method that initializes bw weights to 1 instead
3540       of 0. This prevents a zero weight from making it all the way to
3541       the end (happens in small testing networks) and causing an error.
3542       Fixes bug 14881; bugfix on 0.2.2.17-alpha.
3544   o Minor bugfixes (descriptors):
3545     - Correctly recognise downloaded full descriptors as valid, even
3546       when using microdescriptors as circuits. This affects clients with
3547       FetchUselessDescriptors set, and may affect directory authorities.
3548       Fixes bug 20839; bugfix on 0.2.3.2-alpha.
3550   o Minor bugfixes (directory system):
3551     - Download all consensus flavors, descriptors, and authority
3552       certificates when FetchUselessDescriptors is set, regardless of
3553       whether tor is a directory cache or not. Fixes bug 20667; bugfix
3554       on all recent tor versions.
3555     - Bridges and relays now use microdescriptors (like clients do)
3556       rather than old-style router descriptors. Now bridges will blend
3557       in with clients in terms of the circuits they build. Fixes bug
3558       6769; bugfix on 0.2.3.2-alpha.
3560   o Minor bugfixes (ed25519 certificates):
3561     - Correctly interpret ed25519 certificates that would expire some
3562       time after 19 Jan 2038. Fixes bug 20027; bugfix on 0.2.7.2-alpha.
3564   o Minor bugfixes (hidden services):
3565     - Stop ignoring misconfigured hidden services. Instead, refuse to
3566       start tor until the misconfigurations have been corrected. Fixes
3567       bug 20559; bugfix on multiple commits in 0.2.7.1-alpha
3568       and earlier.
3570   o Minor bugfixes (memory leak at exit):
3571     - Fix a small harmless memory leak at exit of the previously unused
3572       RSA->Ed identity cross-certificate. Fixes bug 17779; bugfix
3573       on 0.2.7.2-alpha.
3575   o Minor bugfixes (util):
3576     - When finishing writing a file to disk, if we were about to replace
3577       the file with the temporary file created before and we fail to
3578       replace it, remove the temporary file so it doesn't stay on disk.
3579       Fixes bug 20646; bugfix on tor-0.2.0.7-alpha. Patch by fk.
3581   o Minor bugfixes (Windows):
3582     - Check for getpagesize before using it to mmap files. This fixes
3583       compilation in some MinGW environments. Fixes bug 20530; bugfix on
3584       0.1.2.1-alpha. Reported by "ice".
3586   o Code simplification and refactoring:
3587     - Abolish all global guard context in entrynodes.c; replace with new
3588       guard_selection_t structure as preparation for proposal 271.
3589       Closes ticket 19858.
3590     - Introduce rend_service_is_ephemeral() that tells if given onion
3591       service is ephemeral. Replace unclear NULL-checkings for service
3592       directory with this function. Closes ticket 20526.
3593     - Extract magic numbers in circuituse.c into defined variables.
3594     - Refactor circuit_is_available_for_use to remove unnecessary check.
3595     - Refactor circuit_predict_and_launch_new for readability and
3596       testability. Closes ticket 18873.
3597     - Refactor large if statement in purpose_needs_anonymity to use
3598       switch statement instead. Closes part of ticket 20077.
3599     - Refactor the hashing API to return negative values for errors, as
3600       is done as throughout the codebase. Closes ticket 20717.
3601     - Remove data structures that were used to index or_connection
3602       objects by their RSA identity digests. These structures are fully
3603       redundant with the similar structures used in the
3604       channel abstraction.
3605     - Remove duplicate code in the channel_write_*cell() functions.
3606       Closes ticket 13827; patch from Pingl.
3607     - Remove redundant behavior of is_sensitive_dir_purpose, refactor to
3608       use only purpose_needs_anonymity. Closes part of ticket 20077.
3609     - The code to generate and parse EXTEND and EXTEND2 cells has been
3610       replaced with code automatically generated by the
3611       "trunnel" utility.
3613   o Documentation:
3614     - Include the "TBits" unit in Tor's man page. Fixes part of bug
3615       20622; bugfix on tor-0.2.5.1-alpha.
3616     - Change '1' to 'weight_scale' in consensus bw weights calculation
3617       comments, as that is reality. Closes ticket 20273. Patch
3618       from pastly.
3619     - Correct the value for AuthDirGuardBWGuarantee in the manpage, from
3620       250 KBytes to 2 MBytes. Fixes bug 20435; bugfix
3621       on tor-0.2.5.6-alpha.
3622     - Stop the man page from incorrectly stating that HiddenServiceDir
3623       must already exist. Fixes 20486.
3624     - Clarify that when ClientRejectInternalAddresses is enabled (which
3625       is the default), multicast DNS hostnames for machines on the local
3626       network (of the form *.local) are also rejected. Closes
3627       ticket 17070.
3629   o Removed features:
3630     - The AuthDirMaxServersPerAuthAddr option no longer exists: The same
3631       limit for relays running on a single IP applies to authority IP
3632       addresses as well as to non-authority IP addresses. Closes
3633       ticket 20960.
3634     - The UseDirectoryGuards torrc option no longer exists: all users
3635       that use entry guards will also use directory guards. Related to
3636       proposal 271; implements part of ticket 20831.
3638   o Testing:
3639     - New unit tests for tor_htonll(). Closes ticket 19563. Patch
3640       from "overcaffeinated".
3641     - Perform the coding style checks when running the tests and fail
3642       when coding style violations are found. Closes ticket 5500.
3643     - Add tests for networkstatus_compute_bw_weights_v10.
3644     - Add unit tests circuit_predict_and_launch_new.
3645     - Extract dummy_origin_circuit_new so it can be used by other
3646       test functions.
3649 Changes in version 0.2.8.12 - 2016-12-19
3650   Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018
3651   below) where Tor clients could crash when attempting to visit a
3652   hostile hidden service. Clients are recommended to upgrade as packages
3653   become available for their systems.
3655   It also includes an updated list of fallback directories, backported
3656   from 0.2.9.
3658   Now that the Tor 0.2.9 series is stable, only major bugfixes will be
3659   backported to 0.2.8 in the future.
3661   o Major bugfixes (parsing, security, backported from 0.2.9.8):
3662     - Fix a bug in parsing that could cause clients to read a single
3663       byte past the end of an allocated region. This bug could be used
3664       to cause hardened clients (built with --enable-expensive-hardening)
3665       to crash if they tried to visit a hostile hidden service. Non-
3666       hardened clients are only affected depending on the details of
3667       their platform's memory allocator. Fixes bug 21018; bugfix on
3668       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
3669       2016-12-002 and as CVE-2016-1254.
3671   o Minor features (fallback directory list, backported from 0.2.9.8):
3672     - Replace the 81 remaining fallbacks of the 100 originally
3673       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
3674       fallbacks (123 new, 54 existing, 27 removed) generated in December
3675       2016. Resolves ticket 20170.
3677   o Minor features (geoip, backported from 0.2.9.7-rc):
3678     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
3679       Country database.
3682 Changes in version 0.2.9.8 - 2016-12-19
3683   Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series.
3685   The Tor 0.2.9 series makes mandatory a number of security features
3686   that were formerly optional. It includes support for a new shared-
3687   randomness protocol that will form the basis for next generation
3688   hidden services, includes a single-hop hidden service mode for
3689   optimizing .onion services that don't actually want to be hidden,
3690   tries harder not to overload the directory authorities with excessive
3691   downloads, and supports a better protocol versioning scheme for
3692   improved compatibility with other implementations of the Tor protocol.
3694   And of course, there are numerous other bugfixes and improvements.
3696   This release also includes a fix for a medium-severity issue (bug
3697   21018 below) where Tor clients could crash when attempting to visit a
3698   hostile hidden service. Clients are recommended to upgrade as packages
3699   become available for their systems.
3701   Below are the changes since 0.2.9.7-rc. For a list of all changes
3702   since 0.2.8, see the ReleaseNotes file.
3704   o Major bugfixes (parsing, security):
3705     - Fix a bug in parsing that could cause clients to read a single
3706       byte past the end of an allocated region. This bug could be used
3707       to cause hardened clients (built with --enable-expensive-hardening)
3708       to crash if they tried to visit a hostile hidden service. Non-
3709       hardened clients are only affected depending on the details of
3710       their platform's memory allocator. Fixes bug 21018; bugfix on
3711       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
3712       2016-12-002 and as CVE-2016-1254.
3714   o Minor features (fallback directory list):
3715     - Replace the 81 remaining fallbacks of the 100 originally
3716       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
3717       fallbacks (123 new, 54 existing, 27 removed) generated in December
3718       2016. Resolves ticket 20170.
3721 Changes in version 0.2.9.7-rc - 2016-12-12
3722   Tor 0.2.9.7-rc fixes a few small bugs remaining in Tor 0.2.9.6-rc,
3723   including a few that had prevented tests from passing on
3724   some platforms.
3726   o Minor features (geoip):
3727     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
3728       Country database.
3730   o Minor bugfix (build):
3731     - The current Git revision when building from a local repository is
3732       now detected correctly when using git worktrees. Fixes bug 20492;
3733       bugfix on 0.2.3.9-alpha.
3735   o Minor bugfixes (directory authority):
3736     - When computing old Tor protocol line version in protover, we were
3737       looking at 0.2.7.5 twice instead of a specific case for
3738       0.2.9.1-alpha. Fixes bug 20810; bugfix on 0.2.9.4-alpha.
3740   o Minor bugfixes (download scheduling):
3741     - Resolve a "bug" warning when considering a download schedule whose
3742       delay had approached INT_MAX. Fixes 20875; bugfix on 0.2.9.5-alpha.
3744   o Minor bugfixes (logging):
3745     - Downgrade a harmless log message about the
3746       pending_entry_connections list from "warn" to "info". Mitigates
3747       bug 19926.
3749   o Minor bugfixes (memory leak):
3750     - Fix a small memory leak when receiving AF_UNIX connections on a
3751       SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha.
3752     - When moving a signed descriptor object from a source to an
3753       existing destination, free the allocated memory inside that
3754       destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha.
3756   o Minor bugfixes (memory leak, use-after-free, linux seccomp2 sandbox):
3757     - Fix a memory leak and use-after-free error when removing entries
3758       from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
3759       0.2.5.5-alpha. Patch from "cypherpunks".
3761   o Minor bugfixes (portability):
3762     - Use the correct spelling of MAC_OS_X_VERSION_10_12 on configure.ac
3763       Fixes bug 20935; bugfix on 0.2.9.6-rc.
3765   o Minor bugfixes (unit tests):
3766     - Stop expecting NetBSD unit tests to report success for ipfw. Part
3767       of a fix for bug 19960; bugfix on 0.2.9.5-alpha.
3768     - Fix tolerances in unit tests for monotonic time comparisons
3769       between nanoseconds and microseconds. Previously, we accepted a 10
3770       us difference only, which is not realistic on every platform's
3771       clock_gettime(). Fixes bug 19974; bugfix on 0.2.9.1-alpha.
3772     - Remove a double-free in the single onion service unit test. Stop
3773       ignoring a return value. Make future changes less error-prone.
3774       Fixes bug 20864; bugfix on 0.2.9.6-rc.
3777 Changes in version 0.2.8.11 - 2016-12-08
3778   Tor 0.2.8.11 backports fixes for additional portability issues that
3779   could prevent Tor from building correctly on OSX Sierra, or with
3780   OpenSSL 1.1. Affected users should upgrade; others can safely stay
3781   with 0.2.8.10.
3783   o Minor bugfixes (portability):
3784     - Avoid compilation errors when building on OSX Sierra. Sierra began
3785       to support the getentropy() and clock_gettime() APIs, but created
3786       a few problems in doing so. Tor 0.2.9 has a more thorough set of
3787       workarounds; in 0.2.8, we are just using the /dev/urandom and mach
3788       monotonic time interfaces. Fixes bug 20865. Bugfix
3789       on 0.2.8.1-alpha.
3791   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
3792     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
3793       architectures. Closes ticket 20588.
3796 Changes in version 0.2.8.10 - 2016-12-02
3797   Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients
3798   unusable after they left standby mode. It also backports fixes for
3799   a few portability issues and a small but problematic memory leak.
3801   o Major bugfixes (client reliability, backport from 0.2.9.5-alpha):
3802     - When Tor leaves standby because of a new application request, open
3803       circuits as needed to serve that request. Previously, we would
3804       potentially wait a very long time. Fixes part of bug 19969; bugfix
3805       on 0.2.8.1-alpha.
3807   o Major bugfixes (client performance, backport from 0.2.9.5-alpha):
3808     - Clients now respond to new application stream requests immediately
3809       when they arrive, rather than waiting up to one second before
3810       starting to handle them. Fixes part of bug 19969; bugfix
3811       on 0.2.8.1-alpha.
3813   o Minor bugfixes (portability, backport from 0.2.9.6-rc):
3814     - Work around a bug in the OSX 10.12 SDK that would prevent us from
3815       successfully targeting earlier versions of OSX. Resolves
3816       ticket 20235.
3818   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
3819     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
3820       20551; bugfix on 0.2.1.1-alpha.
3822   o Minor bugfixes (relay, backport from 0.2.9.5-alpha):
3823     - Work around a memory leak in OpenSSL 1.1 when encoding public
3824       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
3826   o Minor features (geoip):
3827     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
3828       Country database.
3830 Changes in version 0.2.9.6-rc - 2016-12-02
3831   Tor 0.2.9.6-rc fixes a few remaining bugs found in the previous alpha
3832   version. We hope that it will be ready to become stable soon, and we
3833   encourage everyone to test this release. If no showstopper bugs are
3834   found here, the next 0.2.9 release will be stable.
3836   o Major bugfixes (relay, resolver, logging):
3837     - For relays that don't know their own address, avoid attempting a
3838       local hostname resolve for each descriptor we download. This
3839       will cut down on the number of "Success: chose address 'x.x.x.x'"
3840       log lines, and also avoid confusing clock jumps if the resolver
3841       is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
3843   o Minor bugfixes (client, fascistfirewall):
3844     - Avoid spurious warnings when ReachableAddresses or FascistFirewall
3845       is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha.
3847   o Minor bugfixes (hidden services):
3848     - Stop ignoring the anonymity status of saved keys for hidden
3849       services and single onion services when first starting tor.
3850       Instead, refuse to start tor if any hidden service key has been
3851       used in a different hidden service anonymity mode. Fixes bug
3852       20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf.
3854   o Minor bugfixes (portability):
3855     - Work around a bug in the OSX 10.12 SDK that would prevent us from
3856       successfully targeting earlier versions of OSX. Resolves
3857       ticket 20235.
3858     - Run correctly when built on Windows build environments that
3859       require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha.
3861   o Minor bugfixes (single onion services, Tor2web):
3862     - Stop complaining about long-term one-hop circuits deliberately
3863       created by single onion services and Tor2web. These log messages
3864       are intended to diagnose issue 8387, which relates to circuits
3865       hanging around forever for no reason. Fixes bug 20613; bugfix on
3866       0.2.9.1-alpha. Reported by "pastly".
3868   o Minor bugfixes (unit tests):
3869     - Stop spurious failures in the local interface address discovery
3870       unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by
3871       Neel Chauhan.
3873   o Documentation:
3874     - Correct the minimum bandwidth value in torrc.sample, and queue a
3875       corresponding change for torrc.minimal. Closes ticket 20085.
3878 Changes in version 0.2.9.5-alpha - 2016-11-08
3879   Tor 0.2.9.5-alpha fixes numerous bugs discovered in the previous alpha
3880   version. We believe one or two probably remain, and we encourage
3881   everyone to test this release.
3883   o Major bugfixes (client performance):
3884     - Clients now respond to new application stream requests immediately
3885       when they arrive, rather than waiting up to one second before
3886       starting to handle them. Fixes part of bug 19969; bugfix
3887       on 0.2.8.1-alpha.
3889   o Major bugfixes (client reliability):
3890     - When Tor leaves standby because of a new application request, open
3891       circuits as needed to serve that request. Previously, we would
3892       potentially wait a very long time. Fixes part of bug 19969; bugfix
3893       on 0.2.8.1-alpha.
3895   o Major bugfixes (download scheduling):
3896     - When using an exponential backoff schedule, do not give up on
3897       downloading just because we have failed a bunch of times. Since
3898       each delay is longer than the last, retrying indefinitely won't
3899       hurt. Fixes bug 20536; bugfix on 0.2.9.1-alpha.
3900     - If a consensus expires while we are waiting for certificates to
3901       download, stop waiting for certificates.
3902     - If we stop waiting for certificates less than a minute after we
3903       started downloading them, do not consider the certificate download
3904       failure a separate failure. Fixes bug 20533; bugfix
3905       on 0.2.0.9-alpha.
3906     - Remove the maximum delay on exponential-backoff scheduling. Since
3907       we now allow an infinite number of failures (see ticket 20536), we
3908       must now allow the time to grow longer on each failure. Fixes part
3909       of bug 20534; bugfix on 0.2.9.1-alpha.
3910     - Make our initial download delays closer to those from 0.2.8. Fixes
3911       another part of bug 20534; bugfix on 0.2.9.1-alpha.
3912     - When determining when to download a directory object, handle times
3913       after 2038 if the operating system supports them. (Someday this
3914       will be important!) Fixes bug 20587; bugfix on 0.2.8.1-alpha.
3915     - When using exponential backoff in test networks, use a lower
3916       exponent, so the delays do not vary as much. This helps test
3917       networks bootstrap consistently. Fixes bug 20597; bugfix on 20499.
3919   o Minor features (geoip):
3920     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
3921       Country database.
3923   o Minor bugfixes (client directory scheduling):
3924     - Treat "relay too busy to answer request" as a failed request and a
3925       reason to back off on our retry frequency. This is safe now that
3926       exponential backoffs retry indefinitely, and avoids a bug where we
3927       would reset our download schedule erroneously. Fixes bug 20593;
3928       bugfix on 0.2.9.1-alpha.
3930   o Minor bugfixes (client, logging):
3931     - Remove a BUG warning in circuit_pick_extend_handshake(). Instead,
3932       assume all nodes support EXTEND2. Use ntor whenever a key is
3933       available. Fixes bug 20472; bugfix on 0.2.9.3-alpha.
3934     - On DNSPort, stop logging a BUG warning on a failed hostname
3935       lookup. Fixes bug 19869; bugfix on 0.2.9.1-alpha.
3937   o Minor bugfixes (hidden services):
3938     - When configuring hidden services, check every hidden service
3939       directory's permissions. Previously, we only checked the last
3940       hidden service. Fixes bug 20529; bugfix the work to fix 13942
3941       in 0.2.6.2-alpha.
3943   o Minor bugfixes (portability):
3944     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
3945       architectures. Closes ticket 20588.
3946     - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has
3947       removed the ECDH ciphers which caused the tests to fail on
3948       platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha.
3949     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
3950       20551; bugfix on 0.2.1.1-alpha.
3952   o Minor bugfixes (relay bootstrap):
3953     - Ensure relays don't make multiple connections during bootstrap.
3954       Fixes bug 20591; bugfix on 0.2.8.1-alpha.
3956   o Minor bugfixes (relay):
3957     - Work around a memory leak in OpenSSL 1.1 when encoding public
3958       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
3959     - Avoid a small memory leak when informing worker threads about
3960       rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha.
3961     - Do not try to parallelize workers more than 16x without the user
3962       explicitly configuring us to do so, even if we do detect more than
3963       16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
3965   o Minor bugfixes (single onion services):
3966     - Start correctly when creating a single onion service in a
3967       directory that did not previously exist. Fixes bug 20484; bugfix
3968       on 0.2.9.3-alpha.
3970   o Minor bugfixes (testing):
3971     - Avoid a unit test failure on systems with over 16 detectable CPU
3972       cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
3974   o Documentation:
3975     - Clarify that setting HiddenServiceNonAnonymousMode requires you to
3976       also set "SOCKSPort 0". Fixes bug 20487; bugfix on 0.2.9.3-alpha.
3977     - Module-level documentation for several more modules. Closes
3978       tickets 19287 and 19290.
3981 Changes in version 0.2.8.9 - 2016-10-17
3982   Tor 0.2.8.9 backports a fix for a security hole in previous versions
3983   of Tor that would allow a remote attacker to crash a Tor client,
3984   hidden service, relay, or authority. All Tor users should upgrade to
3985   this version, or to 0.2.9.4-alpha. Patches will be released for older
3986   versions of Tor.
3988   o Major features (security fixes, also in 0.2.9.4-alpha):
3989     - Prevent a class of security bugs caused by treating the contents
3990       of a buffer chunk as if they were a NUL-terminated string. At
3991       least one such bug seems to be present in all currently used
3992       versions of Tor, and would allow an attacker to remotely crash
3993       most Tor instances, especially those compiled with extra compiler
3994       hardening. With this defense in place, such bugs can't crash Tor,
3995       though we should still fix them as they occur. Closes ticket
3996       20384 (TROVE-2016-10-001).
3998   o Minor features (geoip):
3999     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
4000       Country database.
4003 Changes in version 0.2.9.4-alpha - 2016-10-17
4004   Tor 0.2.9.4-alpha fixes a security hole in previous versions of Tor
4005   that would allow a remote attacker to crash a Tor client, hidden
4006   service, relay, or authority. All Tor users should upgrade to this
4007   version, or to 0.2.8.9. Patches will be released for older versions
4008   of Tor.
4010   Tor 0.2.9.4-alpha also adds numerous small features and fix-ups to
4011   previous versions of Tor, including the implementation of a feature to
4012   future- proof the Tor ecosystem against protocol changes, some bug
4013   fixes necessary for Tor Browser to use unix domain sockets correctly,
4014   and several portability improvements. We anticipate that this will be
4015   the last alpha in the Tor 0.2.9 series, and that the next release will
4016   be a release candidate.
4018   o Major features (security fixes):
4019     - Prevent a class of security bugs caused by treating the contents
4020       of a buffer chunk as if they were a NUL-terminated string. At
4021       least one such bug seems to be present in all currently used
4022       versions of Tor, and would allow an attacker to remotely crash
4023       most Tor instances, especially those compiled with extra compiler
4024       hardening. With this defense in place, such bugs can't crash Tor,
4025       though we should still fix them as they occur. Closes ticket
4026       20384 (TROVE-2016-10-001).
4028   o Major features (subprotocol versions):
4029     - Tor directory authorities now vote on a set of recommended
4030       subprotocol versions, and on a set of required subprotocol
4031       versions. Clients and relays that lack support for a _required_
4032       subprotocol version will not start; those that lack support for a
4033       _recommended_ subprotocol version will warn the user to upgrade.
4034       Closes ticket 19958; implements part of proposal 264.
4035     - Tor now uses "subprotocol versions" to indicate compatibility.
4036       Previously, versions of Tor looked at the declared Tor version of
4037       a relay to tell whether they could use a given feature. Now, they
4038       should be able to rely on its declared subprotocol versions. This
4039       change allows compatible implementations of the Tor protocol(s) to
4040       exist without pretending to be 100% bug-compatible with particular
4041       releases of Tor itself. Closes ticket 19958; implements part of
4042       proposal 264.
4044   o Minor feature (fallback directories):
4045     - Remove broken fallbacks from the hard-coded fallback directory
4046       list. Closes ticket 20190; patch by teor.
4048   o Minor features (client, directory):
4049     - Since authorities now omit all routers that lack the Running and
4050       Valid flags, we assume that any relay listed in the consensus must
4051       have those flags. Closes ticket 20001; implements part of
4052       proposal 272.
4054   o Minor features (compilation, portability):
4055     - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes
4056       ticket 20241.
4058   o Minor features (development tools, etags):
4059     - Teach the "make tags" Makefile target how to correctly find
4060       "MOCK_IMPL" function definitions. Patch from nherring; closes
4061       ticket 16869.
4063   o Minor features (geoip):
4064     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
4065       Country database.
4067   o Minor features (unix domain sockets):
4068     - When configuring a unix domain socket for a SocksPort,
4069       ControlPort, or Hidden service, you can now wrap the address in
4070       quotes, using C-style escapes inside the quotes. This allows unix
4071       domain socket paths to contain spaces.
4073   o Minor features (virtual addresses):
4074     - Increase the maximum number of bits for the IPv6 virtual network
4075       prefix from 16 to 104. In this way, the condition for address
4076       allocation is less restrictive. Closes ticket 20151; feature
4077       on 0.2.4.7-alpha.
4079   o Minor bugfixes (address discovery):
4080     - Stop reordering IP addresses returned by the OS. This makes it
4081       more likely that Tor will guess the same relay IP address every
4082       time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027.
4083       Reported by René Mayrhofer, patch by "cypherpunks".
4085   o Minor bugfixes (client, unix domain sockets):
4086     - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as
4087       the client address is meaningless. Fixes bug 20261; bugfix
4088       on 0.2.6.3-alpha.
4090   o Minor bugfixes (compilation, OpenBSD):
4091     - Detect Libevent2 functions correctly on systems that provide
4092       libevent2, but where libevent1 is linked with -levent. Fixes bug
4093       19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate.
4095   o Minor bugfixes (configuration):
4096     - When parsing quoted configuration values from the torrc file,
4097       handle windows line endings correctly. Fixes bug 19167; bugfix on
4098       0.2.0.16-alpha. Patch from "Pingl".
4100   o Minor bugfixes (getpass):
4101     - Defensively fix a non-triggerable heap corruption at do_getpass()
4102       to protect ourselves from mistakes in the future. Fixes bug
4103       19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch
4104       by nherring.
4106   o Minor bugfixes (hidden service):
4107     - Allow hidden services to run on IPv6 addresses even when the
4108       IPv6Exit option is not set. Fixes bug 18357; bugfix
4109       on 0.2.4.7-alpha.
4111   o Documentation:
4112     - Add module-level internal documentation for 36 C files that
4113       previously didn't have a high-level overview. Closes ticket #20385.
4115   o Required libraries:
4116     - When building with OpenSSL, Tor now requires version 1.0.1 or
4117       later. OpenSSL 1.0.0 and earlier are no longer supported by the
4118       OpenSSL team, and should not be used. Closes ticket 20303.
4121 Changes in version 0.2.9.3-alpha - 2016-09-23
4122   Tor 0.2.9.3-alpha adds improved support for entities that want to make
4123   high-performance services available through the Tor .onion mechanism
4124   without themselves receiving anonymity as they host those services. It
4125   also tries harder to ensure that all steps on a circuit are using the
4126   strongest crypto possible, strengthens some TLS properties, and
4127   resolves several bugs -- including a pair of crash bugs from the 0.2.8
4128   series. Anybody running an earlier version of 0.2.9.x should upgrade.
4130   o Major bugfixes (crash, also in 0.2.8.8):
4131     - Fix a complicated crash bug that could affect Tor clients
4132       configured to use bridges when replacing a networkstatus consensus
4133       in which one of their bridges was mentioned. OpenBSD users saw
4134       more crashes here, but all platforms were potentially affected.
4135       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
4137   o Major bugfixes (relay, OOM handler, also in 0.2.8.8):
4138     - Fix a timing-dependent assertion failure that could occur when we
4139       tried to flush from a circuit after having freed its cells because
4140       of an out-of-memory condition. Fixes bug 20203; bugfix on
4141       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
4142       this one.
4144   o Major features (circuit building, security):
4145     - Authorities, relays and clients now require ntor keys in all
4146       descriptors, for all hops (except for rare hidden service protocol
4147       cases), for all circuits, and for all other roles. Part of
4148       ticket 19163.
4149     - Tor authorities, relays, and clients only use ntor, except for
4150       rare cases in the hidden service protocol. Part of ticket 19163.
4152   o Major features (single-hop "hidden" services):
4153     - Add experimental HiddenServiceSingleHopMode and
4154       HiddenServiceNonAnonymousMode options. When both are set to 1,
4155       every hidden service on a Tor instance becomes a non-anonymous
4156       Single Onion Service. Single Onions make one-hop (direct)
4157       connections to their introduction and renzedvous points. One-hop
4158       circuits make Single Onion servers easily locatable, but clients
4159       remain location-anonymous. This is compatible with the existing
4160       hidden service implementation, and works on the current tor
4161       network without any changes to older relays or clients. Implements
4162       proposal 260, completes ticket 17178. Patch by teor and asn.
4164   o Major features (resource management):
4165     - Tor can now notice it is about to run out of sockets, and
4166       preemptively close connections of lower priority. (This feature is
4167       off by default for now, since the current prioritizing method is
4168       yet not mature enough. You can enable it by setting
4169       "DisableOOSCheck 0", but watch out: it might close some sockets
4170       you would rather have it keep.) Closes ticket 18640.
4172   o Major bugfixes (circuit building):
4173     - Hidden service client-to-intro-point and service-to-rendezvous-
4174       point circuits use the TAP key supplied by the protocol, to avoid
4175       epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc.
4177   o Major bugfixes (compilation, OpenBSD):
4178     - Fix a Libevent-detection bug in our autoconf script that would
4179       prevent Tor from linking successfully on OpenBSD. Patch from
4180       rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
4182   o Major bugfixes (hidden services):
4183     - Clients now require hidden services to include the TAP keys for
4184       their intro points in the hidden service descriptor. This prevents
4185       an inadvertent upgrade to ntor, which a malicious hidden service
4186       could use to distinguish clients by consensus version. Fixes bug
4187       20012; bugfix on 0.2.4.8-alpha. Patch by teor.
4189   o Minor features (security, TLS):
4190     - Servers no longer support clients that without AES ciphersuites.
4191       (3DES is no longer considered an acceptable cipher.) We believe
4192       that no such Tor clients currently exist, since Tor has required
4193       OpenSSL 0.9.7 or later since 2009. Closes ticket 19998.
4195   o Minor feature (fallback directories):
4196     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
4197       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
4198       2016. Closes ticket 20190; patch by teor.
4200   o Minor features (geoip, also in 0.2.8.8):
4201     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
4202       Country database.
4204   o Minor feature (port flags):
4205     - Add new flags to the *Port options to finer control over which
4206       requests are allowed. The flags are NoDNSRequest, NoOnionTraffic,
4207       and the synthetic flag OnionTrafficOnly, which is equivalent to
4208       NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement
4209       18693; patch by "teor".
4211   o Minor features (directory authority):
4212     - After voting, if the authorities decide that a relay is not
4213       "Valid", they no longer include it in the consensus at all. Closes
4214       ticket 20002; implements part of proposal 272.
4216   o Minor features (testing):
4217     - Disable memory protections on OpenBSD when performing our unit
4218       tests for memwipe(). The test deliberately invokes undefined
4219       behavior, and the OpenBSD protections interfere with this. Patch
4220       from "rubiate". Closes ticket 20066.
4222   o Minor features (testing, ipv6):
4223     - Add the single-onion and single-onion-ipv6 chutney targets to
4224       "make test-network-all". This requires a recent chutney version
4225       with the single onion network flavours (git c72a652 or later).
4226       Closes ticket 20072; patch by teor.
4227     - Add the hs-ipv6 chutney target to make test-network-all's IPv6
4228       tests. Remove bridges+hs, as it's somewhat redundant. This
4229       requires a recent chutney version that supports IPv6 clients,
4230       relays, and authorities. Closes ticket 20069; patch by teor.
4232   o Minor features (Tor2web):
4233     - Make Tor2web clients respect ReachableAddresses. This feature was
4234       inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on
4235       0.2.8.7. Implements feature 20034. Patch by teor.
4237   o Minor features (unit tests):
4238     - We've done significant work to make the unit tests run faster.
4239     - Our link-handshake unit tests now check that when invalid
4240       handshakes fail, they fail with the error messages we expected.
4241     - Our unit testing code that captures log messages no longer
4242       prevents them from being written out if the user asked for them
4243       (by passing --debug or --info or or --notice --warn to the "test"
4244       binary). This change prevents us from missing unexpected log
4245       messages simply because we were looking for others. Related to
4246       ticket 19999.
4247     - The unit tests now log all warning messages with the "BUG" flag.
4248       Previously, they only logged errors by default. This change will
4249       help us make our testing code more correct, and make sure that we
4250       only hit this code when we mean to. In the meantime, however,
4251       there will be more warnings in the unit test logs than before.
4252       This is preparatory work for ticket 19999.
4253     - The unit tests now treat any failure of a "tor_assert_nonfatal()"
4254       assertion as a test failure.
4256   o Minor bug fixes (circuits):
4257     - Use the CircuitBuildTimeout option whenever
4258       LearnCircuitBuildTimeout is disabled. Previously, we would respect
4259       the option when a user disabled it, but not when it was disabled
4260       because some other option was set. Fixes bug 20073; bugfix on
4261       0.2.4.12-alpha. Patch by teor.
4263   o Minor bugfixes (allocation):
4264     - Change how we allocate memory for large chunks on buffers, to
4265       avoid a (currently impossible) integer overflow, and to waste less
4266       space when allocating unusually large chunks. Fixes bug 20081;
4267       bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken.
4268     - Always include orconfig.h before including any other C headers.
4269       Sometimes, it includes macros that affect the behavior of the
4270       standard headers. Fixes bug 19767; bugfix on 0.2.9.1-alpha (the
4271       first version to use AC_USE_SYSTEM_EXTENSIONS).
4272     - Fix a syntax error in the IF_BUG_ONCE__() macro in non-GCC-
4273       compatible compilers. Fixes bug 20141; bugfix on 0.2.9.1-alpha.
4274       Patch from Gisle Vanem.
4275     - Stop trying to build with Clang 4.0's -Wthread-safety warnings.
4276       They apparently require a set of annotations that we aren't
4277       currently using, and they create false positives in our pthreads
4278       wrappers. Fixes bug 20110; bugfix on 0.2.9.1-alpha.
4280   o Minor bugfixes (directory authority):
4281     - Die with a more useful error when the operator forgets to place
4282       the authority_signing_key file into the keys directory. This
4283       avoids an uninformative assert & traceback about having an invalid
4284       key. Fixes bug 20065; bugfix on 0.2.0.1-alpha.
4285     - When allowing private addresses, mark Exits that only exit to
4286       private locations as such. Fixes bug 20064; bugfix
4287       on 0.2.2.9-alpha.
4289   o Minor bugfixes (documentation):
4290     - Document the default PathsNeededToBuildCircuits value that's used
4291       by clients when the directory authorities don't set
4292       min_paths_for_circs_pct. Fixes bug 20117; bugfix on 02c320916e02
4293       in 0.2.4.10-alpha. Patch by teor, reported by Jesse V.
4294     - Fix manual for the User option: it takes a username, not a UID.
4295       Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have
4296       a manpage!).
4298   o Minor bugfixes (hidden services):
4299     - Stop logging intro point details to the client log on certain
4300       error conditions. Fixed as part of bug 20012; bugfix on
4301       0.2.4.8-alpha. Patch by teor.
4303   o Minor bugfixes (IPv6, testing):
4304     - Check for IPv6 correctly on Linux when running test networks.
4305       Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor.
4307   o Minor bugfixes (Linux seccomp2 sandbox):
4308     - Add permission to run the sched_yield() and sigaltstack() system
4309       calls, in order to support versions of Tor compiled with asan or
4310       ubsan code that use these calls. Now "sandbox 1" and
4311       "--enable-expensive-hardening" should be compatible on more
4312       systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha.
4314   o Minor bugfixes (logging):
4315     - When logging a message from the BUG() macro, be explicit about
4316       what we were asserting. Previously we were confusing what we were
4317       asserting with what the bug was. Fixes bug 20093; bugfix
4318       on 0.2.9.1-alpha.
4319     - When we are unable to remove the bw_accounting file, do not warn
4320       if the reason we couldn't remove it was that it didn't exist.
4321       Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from 'pastly'.
4323   o Minor bugfixes (option parsing):
4324     - Count unix sockets when counting client listeners (SOCKS, Trans,
4325       NATD, and DNS). This has no user-visible behaviour changes: these
4326       options are set once, and never read. Required for correct
4327       behaviour in ticket 17178. Fixes bug 19677; bugfix on
4328       0.2.6.3-alpha. Patch by teor.
4330   o Minor bugfixes (options):
4331     - Check the consistency of UseEntryGuards and EntryNodes more
4332       reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch
4333       by teor.
4334     - Stop changing the configured value of UseEntryGuards on
4335       authorities and Tor2web clients. Fixes bug 20074; bugfix on
4336       commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha.
4337       Patch by teor.
4339   o Minor bugfixes (Tor2web):
4340     - Prevent Tor2web clients running hidden services, these services
4341       are not anonymous due to the one-hop client paths. Fixes bug
4342       19678. Patch by teor.
4344   o Minor bugfixes (unit tests):
4345     - Fix a shared-random unit test that was failing on big endian
4346       architectures due to internal representation of a integer copied
4347       to a buffer. The test is changed to take a full 32 bytes of data
4348       and use the output of a python script that make the COMMIT and
4349       REVEAL calculation according to the spec. Fixes bug 19977; bugfix
4350       on 0.2.9.1-alpha.
4351     - The tor_tls_server_info_callback unit test no longer crashes when
4352       debug-level logging is turned on. Fixes bug 20041; bugfix
4353       on 0.2.8.1-alpha.
4356 Changes in version 0.2.8.8 - 2016-09-23
4357   Tor 0.2.8.8 fixes two crash bugs present in previous versions of the
4358   0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users
4359   who select public relays as their bridges.
4361   o Major bugfixes (crash):
4362     - Fix a complicated crash bug that could affect Tor clients
4363       configured to use bridges when replacing a networkstatus consensus
4364       in which one of their bridges was mentioned. OpenBSD users saw
4365       more crashes here, but all platforms were potentially affected.
4366       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
4368   o Major bugfixes (relay, OOM handler):
4369     - Fix a timing-dependent assertion failure that could occur when we
4370       tried to flush from a circuit after having freed its cells because
4371       of an out-of-memory condition. Fixes bug 20203; bugfix on
4372       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
4373       this one.
4375   o Minor feature (fallback directories):
4376     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
4377       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
4378       2016. Closes ticket 20190; patch by teor.
4380   o Minor features (geoip):
4381     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
4382       Country database.
4385 Changes in version 0.2.9.2-alpha - 2016-08-24
4386   Tor 0.2.9.2-alpha continues development of the 0.2.9 series with
4387   several new features and bugfixes. It also includes an important
4388   authority update and an important bugfix from 0.2.8.7. Everyone who
4389   sets the ReachableAddresses option, and all bridges, are strongly
4390   encouraged to upgrade to 0.2.8.7, or to 0.2.9.2-alpha.
4392   o Directory authority changes (also in 0.2.8.7):
4393     - The "Tonga" bridge authority has been retired; the new bridge
4394       authority is "Bifroest". Closes tickets 19728 and 19690.
4396   o Major bugfixes (client, security, also in 0.2.8.7):
4397     - Only use the ReachableAddresses option to restrict the first hop
4398       in a path. In earlier versions of 0.2.8.x, it would apply to
4399       every hop in the path, with a possible degradation in anonymity
4400       for anyone using an uncommon ReachableAddress setting. Fixes bug
4401       19973; bugfix on 0.2.8.2-alpha.
4403   o Major features (user interface):
4404     - Tor now supports the ability to declare options deprecated, so
4405       that we can recommend that people stop using them. Previously,
4406       this was done in an ad-hoc way. Closes ticket 19820.
4408   o Major bugfixes (directory downloads):
4409     - Avoid resetting download status for consensuses hourly, since we
4410       already have another, smarter retry mechanism. Fixes bug 8625;
4411       bugfix on 0.2.0.9-alpha.
4413   o Minor features (config):
4414     - Warn users when descriptor and port addresses are inconsistent.
4415       Mitigates bug 13953; patch by teor.
4417   o Minor features (geoip):
4418     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
4419       Country database.
4421   o Minor features (user interface):
4422     - There is a new --list-deprecated-options command-line option to
4423       list all of the deprecated options. Implemented as part of
4424       ticket 19820.
4426   o Minor bugfixes (code style):
4427     - Fix an integer signedness conversion issue in the case conversion
4428       tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha.
4430   o Minor bugfixes (compilation):
4431     - Build correctly on versions of libevent2 without support for
4432       evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix
4433       on 0.2.5.4-alpha.
4434     - Fix a compilation warning on GCC versions before 4.6. Our
4435       ENABLE_GCC_WARNING macro used the word "warning" as an argument,
4436       when it is also required as an argument to the compiler pragma.
4437       Fixes bug 19901; bugfix on 0.2.9.1-alpha.
4439   o Minor bugfixes (compilation, also in 0.2.8.7):
4440     - Remove an inappropriate "inline" in tortls.c that was causing
4441       warnings on older versions of GCC. Fixes bug 19903; bugfix
4442       on 0.2.8.1-alpha.
4444   o Minor bugfixes (fallback directories, also in 0.2.8.7):
4445     - Avoid logging a NULL string pointer when loading fallback
4446       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
4447       and 0.2.8.1-alpha. Report and patch by "rubiate".
4449   o Minor bugfixes (logging):
4450     - Log a more accurate message when we fail to dump a microdescriptor.
4451       Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto.
4453   o Minor bugfixes (memory leak):
4454     - Fix a series of slow memory leaks related to parsing torrc files
4455       and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha.
4457   o Deprecated features:
4458     - A number of DNS-cache-related sub-options for client ports are now
4459       deprecated for security reasons, and may be removed in a future
4460       version of Tor. (We believe that client-side DNS cacheing is a bad
4461       idea for anonymity, and you should not turn it on.) The options
4462       are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache,
4463       UseIPv4Cache, and UseIPv6Cache.
4464     - A number of options are deprecated for security reasons, and may
4465       be removed in a future version of Tor. The options are:
4466       AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits,
4467       AllowSingleHopExits, ClientDNSRejectInternalAddresses,
4468       CloseHSClientCircuitsImmediatelyOnTimeout,
4469       CloseHSServiceRendCircuitsImmediatelyOnTimeout,
4470       ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup,
4471       UseNTorHandshake, and WarnUnsafeSocks.
4472     - The *ListenAddress options are now deprecated as unnecessary: the
4473       corresponding *Port options should be used instead. These options
4474       may someday be removed. The affected options are:
4475       ControlListenAddress, DNSListenAddress, DirListenAddress,
4476       NATDListenAddress, ORListenAddress, SocksListenAddress,
4477       and TransListenAddress.
4479   o Documentation:
4480     - Correct the IPv6 syntax in our documentation for the
4481       VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743.
4483   o Removed code:
4484     - We no longer include the (dead, deprecated) bufferevent code in
4485       Tor. Closes ticket 19450. Based on a patch from U+039b.
4488 Changes in version 0.2.8.7 - 2016-08-24
4489   Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses
4490   option in 0.2.8.6, and replaces a retiring bridge authority. Everyone
4491   who sets the ReachableAddresses option, and all bridges, are strongly
4492   encouraged to upgrade.
4494   o Directory authority changes:
4495     - The "Tonga" bridge authority has been retired; the new bridge
4496       authority is "Bifroest". Closes tickets 19728 and 19690.
4498   o Major bugfixes (client, security):
4499     - Only use the ReachableAddresses option to restrict the first hop
4500       in a path. In earlier versions of 0.2.8.x, it would apply to
4501       every hop in the path, with a possible degradation in anonymity
4502       for anyone using an uncommon ReachableAddress setting. Fixes bug
4503       19973; bugfix on 0.2.8.2-alpha.
4505   o Minor features (geoip):
4506     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
4507       Country database.
4509   o Minor bugfixes (compilation):
4510     - Remove an inappropriate "inline" in tortls.c that was causing
4511       warnings on older versions of GCC. Fixes bug 19903; bugfix
4512       on 0.2.8.1-alpha.
4514   o Minor bugfixes (fallback directories):
4515     - Avoid logging a NULL string pointer when loading fallback
4516       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
4517       and 0.2.8.1-alpha. Report and patch by "rubiate".
4520 Changes in version 0.2.9.1-alpha - 2016-08-08
4521   Tor 0.2.9.1-alpha is the first alpha release in the 0.2.9 development
4522   series. It improves our support for hardened builds and compiler
4523   warnings, deploys some critical infrastructure for improvements to
4524   hidden services, includes a new timing backend that we hope to use for
4525   better support for traffic padding, makes it easier for programmers to
4526   log unexpected events, and contains other small improvements to
4527   security, correctness, and performance.
4529   Below are the changes since 0.2.8.6.
4531   o New system requirements:
4532     - Tor now requires Libevent version 2.0.10-stable or later. Older
4533       versions of Libevent have less efficient backends for several
4534       platforms, and lack the DNS code that we use for our server-side
4535       DNS support. This implements ticket 19554.
4536     - Tor now requires zlib version 1.2 or later, for security,
4537       efficiency, and (eventually) gzip support. (Back when we started,
4538       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
4539       released in 2003. We recommend the latest version.)
4541   o Major features (build, hardening):
4542     - Tor now builds with -ftrapv by default on compilers that support
4543       it. This option detects signed integer overflow (which C forbids),
4544       and turns it into a hard-failure. We do not apply this option to
4545       code that needs to run in constant time to avoid side-channels;
4546       instead, we use -fwrapv in that code. Closes ticket 17983.
4547     - When --enable-expensive-hardening is selected, stop applying the
4548       clang/gcc sanitizers to code that needs to run in constant time.
4549       Although we are aware of no introduced side-channels, we are not
4550       able to prove that there are none. Related to ticket 17983.
4552   o Major features (compilation):
4553     - Our big list of extra GCC warnings is now enabled by default when
4554       building with GCC (or with anything like Clang that claims to be
4555       GCC-compatible). To make all warnings into fatal compilation
4556       errors, pass --enable-fatal-warnings to configure. Closes
4557       ticket 19044.
4558     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
4559       turn on C and POSIX extensions. (Previously, we attempted to do
4560       this on an ad hoc basis.) Closes ticket 19139.
4562   o Major features (directory authorities, hidden services):
4563     - Directory authorities can now perform the shared randomness
4564       protocol specified by proposal 250. Using this protocol, directory
4565       authorities generate a global fresh random value every day. In the
4566       future, this value will be used by hidden services to select
4567       HSDirs. This release implements the directory authority feature;
4568       the hidden service side will be implemented in the future as part
4569       of proposal 224. Resolves ticket 16943; implements proposal 250.
4571   o Major features (downloading, random exponential backoff):
4572     - When we fail to download an object from a directory service, wait
4573       for an (exponentially increasing) randomized amount of time before
4574       retrying, rather than a fixed interval as we did before. This
4575       prevents a group of Tor instances from becoming too synchronized,
4576       or a single Tor instance from becoming too predictable, in its
4577       download schedule. Closes ticket 15942.
4579   o Major bugfixes (exit policies):
4580     - Avoid disclosing exit outbound bind addresses, configured port
4581       bind addresses, and local interface addresses in relay descriptors
4582       by default under ExitPolicyRejectPrivate. Instead, only reject
4583       these (otherwise unlisted) addresses if
4584       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
4585       0.2.7.2-alpha. Patch by teor.
4587   o Major bugfixes (hidden service client):
4588     - Allow Tor clients with appropriate controllers to work with
4589       FetchHidServDescriptors set to 0. Previously, this option also
4590       disabled descriptor cache lookup, thus breaking hidden services
4591       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
4593   o Minor features (build, hardening):
4594     - Detect and work around a libclang_rt problem that would prevent
4595       clang from finding __mulodi4() on some 32-bit platforms, and thus
4596       keep -ftrapv from linking on those systems. Closes ticket 19079.
4597     - When building on a system without runtime support for the runtime
4598       hardening options, try to log a useful warning at configuration
4599       time, rather than an incomprehensible warning at link time. If
4600       expensive hardening was requested, this warning becomes an error.
4601       Closes ticket 18895.
4603   o Minor features (code safety):
4604     - In our integer-parsing functions, ensure that maxiumum value we
4605       give is no smaller than the minimum value. Closes ticket 19063;
4606       patch from U+039b.
4608   o Minor features (controller):
4609     - Implement new GETINFO queries for all downloads that use
4610       download_status_t to schedule retries. This allows controllers to
4611       examine the schedule for pending downloads. Closes ticket 19323.
4612     - Allow controllers to configure basic client authorization on
4613       hidden services when they create them with the ADD_ONION control
4614       command. Implements ticket 15588. Patch by "special".
4615     - Fire a STATUS_SERVER controller event whenever the hibernation
4616       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
4618   o Minor features (directory authority):
4619     - Directory authorities now only give the Guard flag to a relay if
4620       they are also giving it the Stable flag. This change allows us to
4621       simplify path selection for clients. It should have minimal effect
4622       in practice, since >99% of Guards already have the Stable flag.
4623       Implements ticket 18624.
4624     - Directory authorities now write their v3-status-votes file out to
4625       disk earlier in the consensus process, so we have a record of the
4626       votes even if we abort the consensus process. Resolves
4627       ticket 19036.
4629   o Minor features (hidden service):
4630     - Stop being so strict about the payload length of "rendezvous1"
4631       cells. We used to be locked in to the "TAP" handshake length, and
4632       now we can handle better handshakes like "ntor". Resolves
4633       ticket 18998.
4635   o Minor features (infrastructure, time):
4636     - Tor now uses the operating system's monotonic timers (where
4637       available) for internal fine-grained timing. Previously we would
4638       look at the system clock, and then attempt to compensate for the
4639       clock running backwards. Closes ticket 18908.
4640     - Tor now includes an improved timer backend, so that we can
4641       efficiently support tens or hundreds of thousands of concurrent
4642       timers, as will be needed for some of our planned anti-traffic-
4643       analysis work. This code is based on William Ahern's "timeout.c"
4644       project, which implements a "tickless hierarchical timing wheel".
4645       Closes ticket 18365.
4647   o Minor features (logging):
4648     - Provide a more useful warning message when configured with an
4649       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
4650     - When dumping unparseable router descriptors, optionally store them
4651       in separate files, named by digest, up to a configurable size
4652       limit. You can change the size limit by setting the
4653       MaxUnparseableDescSizeToLog option, and disable this feature by
4654       setting that option to 0. Closes ticket 18322.
4655     - Add a set of macros to check nonfatal assertions, for internal
4656       use. Migrating more of our checks to these should help us avoid
4657       needless crash bugs. Closes ticket 18613.
4659   o Minor features (performance):
4660     - Changer the "optimistic data" extension from "off by default" to
4661       "on by default". The default was ordinarily overridden by a
4662       consensus option, but when clients were bootstrapping for the
4663       first time, they would not have a consensus to get the option
4664       from. Changing this default When fetching a consensus for the
4665       first time, use optimistic data. This saves a round-trip during
4666       startup. Closes ticket 18815.
4668   o Minor features (relay, usability):
4669     - When the directory authorities refuse a bad relay's descriptor,
4670       encourage the relay operator to contact us. Many relay operators
4671       won't notice this line in their logs, but it's a win if even a few
4672       learn why we don't like what their relay was doing. Resolves
4673       ticket 18760.
4675   o Minor features (testing):
4676     - Let backtrace tests work correctly under AddressSanitizer. Fixes
4677       part of bug 18934; bugfix on 0.2.5.2-alpha.
4678     - Move the test-network.sh script to chutney, and modify tor's test-
4679       network.sh to call the (newer) chutney version when available.
4680       Resolves ticket 19116. Patch by teor.
4681     - Use the lcov convention for marking lines as unreachable, so that
4682       we don't count them when we're generating test coverage data.
4683       Update our coverage tools to understand this convention. Closes
4684       ticket 16792.
4686   o Minor bugfixes (bootstrap):
4687     - Remember the directory we fetched the consensus or previous
4688       certificates from, and use it to fetch future authority
4689       certificates. This change improves bootstrapping performance.
4690       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
4692   o Minor bugfixes (build):
4693     - The test-stem and test-network makefile targets now depend only on
4694       the tor binary that they are testing. Previously, they depended on
4695       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
4696       patch from "cypherpunks".
4698   o Minor bugfixes (circuits):
4699     - Make sure extend_info_from_router() is only called on servers.
4700       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
4702   o Minor bugfixes (compilation):
4703     - When building with Clang, use a full set of GCC warnings.
4704       (Previously, we included only a subset, because of the way we
4705       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
4707   o Minor bugfixes (directory authority):
4708     - Authorities now sort the "package" lines in their votes, for ease
4709       of debugging. (They are already sorted in consensus documents.)
4710       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
4711     - When parsing a detached signature, make sure we use the length of
4712       the digest algorithm instead of an hardcoded DIGEST256_LEN in
4713       order to avoid comparing bytes out-of-bounds with a smaller digest
4714       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
4716   o Minor bugfixes (documentation):
4717     - Document the --passphrase-fd option in the tor manpage. Fixes bug
4718       19504; bugfix on 0.2.7.3-rc.
4719     - Fix the description of the --passphrase-fd option in the
4720       tor-gencert manpage. The option is used to pass the number of a
4721       file descriptor to read the passphrase from, not to read the file
4722       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
4724   o Minor bugfixes (ephemeral hidden service):
4725     - When deleting an ephemeral hidden service, close its intro points
4726       even if they are not completely open. Fixes bug 18604; bugfix
4727       on 0.2.7.1-alpha.
4729   o Minor bugfixes (guard selection):
4730     - Use a single entry guard even if the NumEntryGuards consensus
4731       parameter is not provided. Fixes bug 17688; bugfix
4732       on 0.2.5.6-alpha.
4733     - Don't mark guards as unreachable if connection_connect() fails.
4734       That function fails for local reasons, so it shouldn't reveal
4735       anything about the status of the guard. Fixes bug 14334; bugfix
4736       on 0.2.3.10-alpha.
4738   o Minor bugfixes (hidden service client):
4739     - Increase the minimum number of internal circuits we preemptively
4740       build from 2 to 3, so a circuit is available when a client
4741       connects to another onion service. Fixes bug 13239; bugfix
4742       on 0.1.0.1-rc.
4744   o Minor bugfixes (logging):
4745     - When logging a directory ownership mismatch, log the owning
4746       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
4748   o Minor bugfixes (memory leaks):
4749     - Fix a small, uncommon memory leak that could occur when reading a
4750       truncated ed25519 key file. Fixes bug 18956; bugfix
4751       on 0.2.6.1-alpha.
4753   o Minor bugfixes (testing):
4754     - Allow clients to retry HSDirs much faster in test networks. Fixes
4755       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
4756     - Disable ASAN's detection of segmentation faults while running
4757       test_bt.sh, so that we can make sure that our own backtrace
4758       generation code works. Fixes another aspect of bug 18934; bugfix
4759       on 0.2.5.2-alpha. Patch from "cypherpunks".
4760     - Fix the test-network-all target on out-of-tree builds by using the
4761       correct path to the test driver script. Fixes bug 19421; bugfix
4762       on 0.2.7.3-rc.
4764   o Minor bugfixes (time):
4765     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
4766       bugfix on all released tor versions.
4767     - When computing the difference between two times in milliseconds,
4768       we now round to the nearest millisecond correctly. Previously, we
4769       could sometimes round in the wrong direction. Fixes bug 19428;
4770       bugfix on 0.2.2.2-alpha.
4772   o Minor bugfixes (user interface):
4773     - Display a more accurate number of suppressed messages in the log
4774       rate-limiter. Previously, there was a potential integer overflow
4775       in the counter. Now, if the number of messages hits a maximum, the
4776       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
4777       on 0.2.4.11-alpha.
4778     - Fix a typo in the passphrase prompt for the ed25519 identity key.
4779       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
4781   o Code simplification and refactoring:
4782     - Remove redundant declarations of the MIN macro. Closes
4783       ticket 18889.
4784     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
4785       Closes ticket 18462; patch from "icanhasaccount".
4786     - Split the 600-line directory_handle_command_get function into
4787       separate functions for different URL types. Closes ticket 16698.
4789   o Documentation:
4790     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
4791       ticket 19153. Patch from "U+039b".
4793   o Removed features:
4794     - Remove support for "GET /tor/bytes.txt" DirPort request, and
4795       "GETINFO dir-usage" controller request, which were only available
4796       via a compile-time option in Tor anyway. Feature was added in
4797       0.2.2.1-alpha. Resolves ticket 19035.
4798     - There is no longer a compile-time option to disable support for
4799       TransPort. (If you don't want TransPort; just don't use it.) Patch
4800       from "U+039b". Closes ticket 19449.
4802   o Testing:
4803     - Run more workqueue tests as part of "make check". These had
4804       previously been implemented, but you needed to know special
4805       command-line options to enable them.
4806     - We now have unit tests for our code to reject zlib "compression
4807       bombs". (Fortunately, the code works fine.)
4810 Changes in version 0.2.8.6 - 2016-08-02
4812   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
4814   The Tor 0.2.8 series improves client bootstrapping performance,
4815   completes the authority-side implementation of improved identity
4816   keys for relays, and includes numerous bugfixes and performance
4817   improvements throughout the program. This release continues to
4818   improve the coverage of Tor's test suite.  For a full list of
4819   changes since Tor 0.2.7, see the ReleaseNotes file.
4821   Changes since 0.2.8.5-rc:
4823   o Minor features (geoip):
4824     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
4825       Country database.
4827   o Minor bugfixes (compilation):
4828     - Fix a compilation warning in the unit tests on systems where char
4829       is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha.
4831   o Minor bugfixes (fallback directories):
4832     - Remove 1 fallback that was on the hardcoded list, then opted-out,
4833       leaving 89 of the 100 fallbacks originally introduced in Tor
4834       0.2.8.2-alpha in March 2016. Closes ticket 19782; patch by teor.
4836   o Minor bugfixes (Linux seccomp2 sandbox):
4837     - Allow more syscalls when running with "Sandbox 1" enabled:
4838       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
4839       some systems, these are required for Tor to start. Fixes bug
4840       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
4841     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
4842       so that get_interface_address6_via_udp_socket_hack() can work.
4843       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
4846 Changes in version 0.2.8.5-rc - 2016-07-07
4847   Tor 0.2.8.5-rc is the second release candidate in the Tor 0.2.8
4848   series. If we find no new bugs or regressions here, the first stable
4849   0.2.8 release will be identical to it. It has a few small bugfixes
4850   against previous versions.
4852   o Directory authority changes:
4853     - Urras is no longer a directory authority. Closes ticket 19271.
4855   o Major bugfixes (heartbeat):
4856     - Fix a regression that would crash Tor when the periodic
4857       "heartbeat" log messages were disabled. Fixes bug 19454; bugfix on
4858       0.2.8.1-alpha. Reported by "kubaku".
4860   o Minor features (build):
4861     - Tor now again builds with the recent OpenSSL 1.1 development
4862       branch (tested against 1.1.0-pre6-dev). Closes ticket 19499.
4863     - When building manual pages, set the timezone to "UTC", so that the
4864       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
4865       Patch from intrigeri.
4867   o Minor bugfixes (fallback directory selection):
4868     - Avoid errors during fallback selection if there are no eligible
4869       fallbacks. Fixes bug 19480; bugfix on 0.2.8.3-alpha. Patch
4870       by teor.
4872   o Minor bugfixes (IPv6, microdescriptors):
4873     - Don't check node addresses when we only have a routerstatus. This
4874       allows IPv6-only clients to bootstrap by fetching microdescriptors
4875       from fallback directory mirrors. (The microdescriptor consensus
4876       has no IPv6 addresses in it.) Fixes bug 19608; bugfix
4877       on 0.2.8.2-alpha.
4879   o Minor bugfixes (logging):
4880     - Reduce pointlessly verbose log messages when directory servers
4881       can't be found. Fixes bug 18849; bugfix on 0.2.8.3-alpha and
4882       0.2.8.1-alpha. Patch by teor.
4883     - When a fallback directory changes its fingerprint from the hard-
4884       coded fingerprint, log a less severe, more explanatory log
4885       message. Fixes bug 18812; bugfix on 0.2.8.1-alpha. Patch by teor.
4887   o Minor bugfixes (Linux seccomp2 sandboxing):
4888     - Allow statistics to be written to disk when "Sandbox 1" is
4889       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
4890       0.2.6.1-alpha respectively.
4892   o Minor bugfixes (user interface):
4893     - Remove a warning message "Service [scrubbed] not found after
4894       descriptor upload". This message appears when one uses HSPOST
4895       control command to upload a service descriptor. Since there is
4896       only a descriptor and no service, showing this message is
4897       pointless and confusing. Fixes bug 19464; bugfix on 0.2.7.2-alpha.
4899   o Fallback directory list:
4900     - Add a comment to the generated fallback directory list that
4901       explains how to comment out unsuitable fallbacks in a way that's
4902       compatible with the stem fallback parser.
4903     - Update fallback whitelist and blacklist based on relay operator
4904       emails. Blacklist unsuitable (non-working, over-volatile)
4905       fallbacks. Resolves ticket 19071. Patch by teor.
4906     - Remove 10 unsuitable fallbacks, leaving 90 of the 100 fallbacks
4907       originally introduced in Tor 0.2.8.2-alpha in March 2016. Closes
4908       ticket 19071; patch by teor.
4911 Changes in version 0.2.8.4-rc - 2016-06-15
4912   Tor 0.2.8.4-rc is the first release candidate in the Tor 0.2.8 series.
4913   If we find no new bugs or regressions here, the first stable 0.2.8
4914   release will be identical to it. It has a few small bugfixes against
4915   previous versions.
4917   o Major bugfixes (user interface):
4918     - Correctly give a warning in the cases where a relay is specified
4919       by nickname, and one such relay is found, but it is not officially
4920       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
4922   o Minor features (build):
4923     - Tor now builds once again with the recent OpenSSL 1.1 development
4924       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev).
4926   o Minor features (geoip):
4927     - Update geoip and geoip6 to the June 7 2016 Maxmind GeoLite2
4928       Country database.
4930   o Minor bugfixes (compilation):
4931     - Cause the unit tests to compile correctly on mingw64 versions that
4932       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
4934   o Minor bugfixes (downloading):
4935     - Predict more correctly whether we'll be downloading over HTTP when
4936       we determine the maximum length of a URL. This should avoid a
4937       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
4938       bug 19191.
4941 Changes in version 0.2.8.3-alpha - 2016-05-26
4942   Tor 0.2.8.3-alpha resolves several bugs, most of them introduced over
4943   the course of the 0.2.8 development cycle. It improves the behavior of
4944   directory clients, fixes several crash bugs, fixes a gap in compiler
4945   hardening, and allows the full integration test suite to run on
4946   more platforms.
4948   o Major bugfixes (security, client, DNS proxy):
4949     - Stop a crash that could occur when a client running with DNSPort
4950       received a query with multiple address types, and the first
4951       address type was not supported. Found and fixed by Scott Dial.
4952       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
4954   o Major bugfixes (security, compilation):
4955     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
4956       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
4957       cause a compiler warning, thereby making other checks fail, and
4958       needlessly disabling compiler-hardening support. Fixes one case of
4959       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
4961   o Major bugfixes (security, directory authorities):
4962     - Fix a crash and out-of-bounds write during authority voting, when
4963       the list of relays includes duplicate ed25519 identity keys. Fixes
4964       bug 19032; bugfix on 0.2.8.2-alpha.
4966   o Major bugfixes (client, bootstrapping):
4967     - Check if bootstrap consensus downloads are still needed when the
4968       linked connection attaches. This prevents tor making unnecessary
4969       begindir-style connections, which are the only directory
4970       connections tor clients make since the fix for 18483 was merged.
4971     - Fix some edge cases where consensus download connections may not
4972       have been closed, even though they were not needed. Related to fix
4973       for 18809.
4974     - Make relays retry consensus downloads the correct number of times,
4975       rather than the more aggressive client retry count. Fixes part of
4976       ticket 18809.
4977     - Stop downloading consensuses when we have a consensus, even if we
4978       don't have all the certificates for it yet. Fixes bug 18809;
4979       bugfix on 0.2.8.1-alpha. Patches by arma and teor.
4981   o Major bugfixes (directory mirrors):
4982     - Decide whether to advertise begindir support in the the same way
4983       we decide whether to advertise our DirPort. Allowing these
4984       decisions to become out-of-sync led to surprising behavior like
4985       advertising begindir support when hibernation made us not
4986       advertise a DirPort. Resolves bug 18616; bugfix on 0.2.8.1-alpha.
4987       Patch by teor.
4989   o Major bugfixes (IPv6 bridges, client):
4990     - Actually use IPv6 addresses when selecting directory addresses for
4991       IPv6 bridges. Fixes bug 18921; bugfix on 0.2.8.1-alpha. Patch
4992       by "teor".
4994   o Major bugfixes (key management):
4995     - If OpenSSL fails to generate an RSA key, do not retain a dangling
4996       pointer to the previous (uninitialized) key value. The impact here
4997       should be limited to a difficult-to-trigger crash, if OpenSSL is
4998       running an engine that makes key generation failures possible, or
4999       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
5000       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
5001       Baishakhi Ray.
5003   o Major bugfixes (testing):
5004     - Fix a bug that would block 'make test-network-all' on systems where
5005       IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc.
5006     - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
5007       bugfix on 0.2.8.1-alpha.
5009   o Minor features (clients):
5010     - Make clients, onion services, and bridge relays always use an
5011       encrypted begindir connection for directory requests. Resolves
5012       ticket 18483. Patch by "teor".
5014   o Minor features (fallback directory mirrors):
5015     - Give each fallback the same weight for client selection; restrict
5016       fallbacks to one per operator; report fallback directory detail
5017       changes when rebuilding list; add new fallback directory mirrors
5018       to the whitelist; and many other minor simplifications and fixes.
5019       Closes tasks 17905, 18749, bug 18689, and fixes part of bug 18812 on
5020       0.2.8.1-alpha; patch by "teor".
5021     - Replace the 21 fallbacks generated in January 2016 and included in
5022       Tor 0.2.8.1-alpha, with a list of 100 fallbacks generated in March
5023       2016. Closes task 17158; patch by "teor".
5025   o Minor features (geoip):
5026     - Update geoip and geoip6 to the May 4 2016 Maxmind GeoLite2
5027       Country database.
5029   o Minor bugfixes (assert, portability):
5030     - Fix an assertion failure in memarea.c on systems where "long" is
5031       shorter than the size of a pointer. Fixes bug 18716; bugfix
5032       on 0.2.1.1-alpha.
5034   o Minor bugfixes (bootstrap):
5035     - Consistently use the consensus download schedule for authority
5036       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
5038   o Minor bugfixes (build):
5039     - Remove a pair of redundant AM_CONDITIONAL declarations from
5040       configure.ac. Fixes one final case of bug 17744; bugfix
5041       on 0.2.8.2-alpha.
5042     - Resolve warnings when building on systems that are concerned with
5043       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
5044       and 0.2.6.1-alpha.
5045     - When libscrypt.h is found, but no libscrypt library can be linked,
5046       treat libscrypt as absent. Fixes bug 19161; bugfix
5047       on 0.2.6.1-alpha.
5049   o Minor bugfixes (client):
5050     - Turn all TestingClientBootstrap* into non-testing torrc options.
5051       This changes simply renames them by removing "Testing" in front of
5052       them and they do not require TestingTorNetwork to be enabled
5053       anymore. Fixes bug 18481; bugfix on 0.2.8.1-alpha.
5054     - Make directory node selection more reliable, mainly for IPv6-only
5055       clients and clients with few reachable addresses. Fixes bug 18929;
5056       bugfix on 0.2.8.1-alpha. Patch by "teor".
5058   o Minor bugfixes (controller, microdescriptors):
5059     - Make GETINFO dir/status-vote/current/consensus conform to the
5060       control specification by returning "551 Could not open cached
5061       consensus..." when not caching consensuses. Fixes bug 18920;
5062       bugfix on 0.2.2.6-alpha.
5064   o Minor bugfixes (crypto, portability):
5065     - The SHA3 and SHAKE routines now produce the correct output on Big
5066       Endian systems. No code calls either algorithm yet, so this is
5067       primarily a build fix. Fixes bug 18943; bugfix on 0.2.8.1-alpha.
5068     - Tor now builds again with the recent OpenSSL 1.1 development
5069       branch (tested against 1.1.0-pre4 and 1.1.0-pre5-dev). Closes
5070       ticket 18286.
5072   o Minor bugfixes (directories):
5073     - When fetching extrainfo documents, compare their SHA256 digests
5074       and Ed25519 signing key certificates with the routerinfo that led
5075       us to fetch them, rather than with the most recent routerinfo.
5076       Otherwise we generate many spurious warnings about mismatches.
5077       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
5079   o Minor bugfixes (logging):
5080     - When we can't generate a signing key because OfflineMasterKey is
5081       set, do not imply that we should have been able to load it. Fixes
5082       bug 18133; bugfix on 0.2.7.2-alpha.
5083     - Stop periodic_event_dispatch() from blasting twelve lines per
5084       second at loglevel debug. Fixes bug 18729; fix on 0.2.8.1-alpha.
5085     - When rejecting a misformed INTRODUCE2 cell, only log at
5086       PROTOCOL_WARN severity. Fixes bug 18761; bugfix on 0.2.8.2-alpha.
5088   o Minor bugfixes (pluggable transports):
5089     - Avoid reporting a spurious error when we decide that we don't need
5090       to terminate a pluggable transport because it has already exited.
5091       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
5093   o Minor bugfixes (pointer arithmetic):
5094     - Fix a bug in memarea_alloc() that could have resulted in remote
5095       heap write access, if Tor had ever passed an unchecked size to
5096       memarea_alloc(). Fortunately, all the sizes we pass to
5097       memarea_alloc() are pre-checked to be less than 128 kilobytes.
5098       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
5099       Guido Vranken.
5101   o Minor bugfixes (relays):
5102     - Consider more config options when relays decide whether to
5103       regenerate their descriptor. Fixes more of bug 12538; bugfix
5104       on 0.2.8.1-alpha.
5105     - Resolve some edge cases where we might launch an ORPort
5106       reachability check even when DisableNetwork is set. Noticed while
5107       fixing bug 18616; bugfix on 0.2.3.9-alpha.
5109   o Minor bugfixes (statistics):
5110     - We now include consensus downloads via IPv6 in our directory-
5111       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
5113   o Minor bugfixes (testing):
5114     - Allow directories in small networks to bootstrap by skipping
5115       DirPort checks when the consensus has no exits. Fixes bug 19003;
5116       bugfix on 0.2.8.1-alpha. Patch by teor.
5117     - Fix a small memory leak that would occur when the
5118       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
5119       bugfix on 0.2.5.2-alpha.
5121   o Minor bugfixes (time handling):
5122     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
5123       field. Otherwise, our unit tests crash on Windows. Fixes bug
5124       18977; bugfix on 0.2.2.25-alpha.
5126   o Documentation:
5127     - Document the contents of the 'datadir/keys' subdirectory in the
5128       manual page. Closes ticket 17621.
5129     - Stop recommending use of nicknames to identify relays in our
5130       MapAddress documentation. Closes ticket 18312.
5133 Changes in version 0.2.8.2-alpha - 2016-03-28
5134   Tor 0.2.8.2-alpha is the second alpha in its series. It fixes numerous
5135   bugs in earlier versions of Tor, including some that prevented
5136   authorities using Tor 0.2.7.x from running correctly. IPv6 and
5137   directory support should also be much improved.
5139   o New system requirements:
5140     - Tor no longer supports versions of OpenSSL with a broken
5141       implementation of counter mode. (This bug was present in OpenSSL
5142       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
5143       longer runs with, these versions.
5144     - Tor no longer attempts to support platforms where the "time_t"
5145       type is unsigned. (To the best of our knowledge, only OpenVMS does
5146       this, and Tor has never actually built on OpenVMS.) Closes
5147       ticket 18184.
5148     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
5149       later (released in 2008 and 2009 respectively). If you are
5150       building Tor from the git repository instead of from the source
5151       distribution, and your tools are older than this, you will need to
5152       upgrade. Closes ticket 17732.
5154   o Major bugfixes (security, pointers):
5155     - Avoid a difficult-to-trigger heap corruption attack when extending
5156       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
5157       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
5158       Reported by Guido Vranken.
5160   o Major bugfixes (bridges, pluggable transports):
5161     - Modify the check for OR connections to private addresses. Allow
5162       bridges on private addresses, including pluggable transports that
5163       ignore the (potentially private) address in the bridge line. Fixes
5164       bug 18517; bugfix on 0.2.8.1-alpha. Reported by gk, patch by teor.
5166   o Major bugfixes (compilation):
5167     - Repair hardened builds under the clang compiler. Previously, our
5168       use of _FORTIFY_SOURCE would conflict with clang's address
5169       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
5171   o Major bugfixes (crash on shutdown):
5172     - Correctly handle detaching circuits from muxes when shutting down.
5173       Fixes bug 18116; bugfix on 0.2.8.1-alpha.
5174     - Fix an assert-on-exit bug related to counting memory usage in
5175       rephist.c. Fixes bug 18651; bugfix on 0.2.8.1-alpha.
5177   o Major bugfixes (crash on startup):
5178     - Fix a segfault during startup: If a Unix domain socket was
5179       configured as listener (such as a ControlSocket or a SocksPort
5180       "unix:" socket), and tor was started as root but not configured to
5181       switch to another user, tor would segfault while trying to string
5182       compare a NULL value. Fixes bug 18261; bugfix on 0.2.8.1-alpha.
5183       Patch by weasel.
5185   o Major bugfixes (dns proxy mode, crash):
5186     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
5187       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
5189   o Major bugfixes (relays, bridge clients):
5190     - Ensure relays always allow IPv4 OR and Dir connections. Ensure
5191       bridge clients use the address configured in the bridge line.
5192       Fixes bug 18348; bugfix on 0.2.8.1-alpha. Reported by sysrqb,
5193       patch by teor.
5195   o Major bugfixes (voting):
5196     - Actually enable support for authorities to match routers by their
5197       Ed25519 identities. Previously, the code had been written, but
5198       some debugging code that had accidentally been left in the
5199       codebase made it stay turned off. Fixes bug 17702; bugfix
5200       on 0.2.7.2-alpha.
5201     - When collating votes by Ed25519 identities, authorities now
5202       include a "NoEdConsensus" flag if the ed25519 value (or lack
5203       thereof) for a server does not reflect the majority consensus.
5204       Related to bug 17668; bugfix on 0.2.7.2-alpha.
5205     - When generating a vote with keypinning disabled, never include two
5206       entries for the same ed25519 identity. This bug was causing
5207       authorities to generate votes that they could not parse when a
5208       router violated key pinning by changing its RSA identity but
5209       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
5210       18318. Bugfix on 0.2.7.2-alpha.
5212   o Minor features (security, win32):
5213     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
5214       attack. Fixes bug 18123; bugfix on all tor versions. Patch
5215       by teor.
5217   o Minor features (bug-resistance):
5218     - Make Tor survive errors involving connections without a
5219       corresponding event object. Previously we'd fail with an
5220       assertion; now we produce a log message. Related to bug 16248.
5222   o Minor features (build):
5223     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
5224       as having possible IPFW support. Closes ticket 18448. Patch from
5225       Steven Chamberlain.
5227   o Minor features (code hardening):
5228     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
5229       level code, to harden against accidental failures to NUL-
5230       terminate. Part of ticket 17852. Patch from jsturgix. Found
5231       with Flawfinder.
5233   o Minor features (crypto):
5234     - Validate the hard-coded Diffie-Hellman parameters and ensure that
5235       p is a safe prime, and g is a suitable generator. Closes
5236       ticket 18221.
5238   o Minor features (geoip):
5239     - Update geoip and geoip6 to the March 3 2016 Maxmind GeoLite2
5240       Country database.
5242   o Minor features (hidden service directory):
5243     - Streamline relay-side hsdir handling: when relays consider whether
5244       to accept an uploaded hidden service descriptor, they no longer
5245       check whether they are one of the relays in the network that is
5246       "supposed" to handle that descriptor. Implements ticket 18332.
5248   o Minor features (IPv6):
5249     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
5250       to 1, tor prefers IPv6 directory addresses.
5251     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
5252       avoids using IPv4 for client OR and directory connections.
5253     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
5254       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
5255       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
5257   o Minor features (linux seccomp2 sandbox):
5258     - Reject attempts to change our Address with "Sandbox 1" enabled.
5259       Changing Address with Sandbox turned on would never actually work,
5260       but previously it would fail in strange and confusing ways. Found
5261       while fixing 18548.
5263   o Minor features (robustness):
5264     - Exit immediately with an error message if the code attempts to use
5265       Libevent without having initialized it. This should resolve some
5266       frequently-made mistakes in our unit tests. Closes ticket 18241.
5268   o Minor features (unix domain sockets):
5269     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
5270       Unix domain sockets without checking the permissions on the parent
5271       directory. (Tor checks permissions by default because some
5272       operating systems only check permissions on the parent directory.
5273       However, some operating systems do look at permissions on the
5274       socket, and tor's default check is unneeded.) Closes ticket 18458.
5275       Patch by weasel.
5277   o Minor bugfixes (exit policies, security):
5278     - Refresh an exit relay's exit policy when interface addresses
5279       change. Previously, tor only refreshed the exit policy when the
5280       configured external address changed. Fixes bug 18208; bugfix on
5281       0.2.7.3-rc. Patch by teor.
5283   o Minor bugfixes (security, hidden services):
5284     - Prevent hidden services connecting to client-supplied rendezvous
5285       addresses that are reserved as internal or multicast. Fixes bug
5286       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
5288   o Minor bugfixes (build):
5289     - Do not link the unit tests against both the testing and non-
5290       testing versions of the static libraries. Fixes bug 18490; bugfix
5291       on 0.2.7.1-alpha.
5292     - Avoid spurious failures from configure files related to calling
5293       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18626; bugfix on
5294       0.2.0.1-alpha. Patch from "cypherpunks".
5295     - Silence spurious clang-scan warnings in the ed25519_donna code by
5296       explicitly initializing some objects. Fixes bug 18384; bugfix on
5297       0.2.7.2-alpha. Patch by teor.
5299   o Minor bugfixes (client, bootstrap):
5300     - Count receipt of new microdescriptors as progress towards
5301       bootstrapping. Previously, with EntryNodes set, Tor might not
5302       successfully repopulate the guard set on bootstrapping. Fixes bug
5303       16825; bugfix on 0.2.3.1-alpha.
5305   o Minor bugfixes (code correctness):
5306     - Update to the latest version of Trunnel, which tries harder to
5307       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
5308       by clang address sanitizer. Fixes bug 18373; bugfix
5309       on 0.2.7.2-alpha.
5311   o Minor bugfixes (configuration):
5312     - Fix a tiny memory leak when parsing a port configuration ending in
5313       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
5315   o Minor bugfixes (containers):
5316     - If we somehow attempt to construct a heap with more than
5317       1073741822 elements, avoid an integer overflow when maintaining
5318       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
5320   o Minor bugfixes (correctness):
5321     - Fix a bad memory handling bug that would occur if we had queued a
5322       cell on a channel's incoming queue. Fortunately, we can't actually
5323       queue a cell like that as our code is constructed today, but it's
5324       best to avoid this kind of error, even if there isn't any code
5325       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
5327   o Minor bugfixes (directory):
5328     - When generating a URL for a directory server on an IPv6 address,
5329       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
5330       on 0.2.3.9-alpha. Patch from Malek.
5332   o Minor bugfixes (fallback directory mirrors):
5333     - When requesting extrainfo descriptors from a trusted directory
5334       server, check whether it is an authority or a fallback directory
5335       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
5336       0.2.4.7-alpha. Reported by atagar, patch by teor.
5338   o Minor bugfixes (hidden service, client):
5339     - Handle the case where the user makes several fast consecutive
5340       requests to the same .onion address. Previously, the first six
5341       requests would each trigger a descriptor fetch, each picking a
5342       directory (there are 6 overall) and the seventh one would fail
5343       because no directories were left, thereby triggering a close on
5344       all current directory connections asking for the hidden service.
5345       The solution here is to not close the connections if we have
5346       pending directory fetches. Fixes bug 15937; bugfix
5347       on 0.2.7.1-alpha.
5349   o Minor bugfixes (hidden service, control port):
5350     - Add the onion address to the HS_DESC event for the UPLOADED action
5351       both on success or failure. It was previously hardcoded with
5352       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
5354   o Minor bugfixes (hidden service, directory):
5355     - Bridges now refuse "rendezvous2" (hidden service descriptor)
5356       publish attempts. Suggested by ticket 18332.
5358   o Minor bugfixes (linux seccomp2 sandbox):
5359     - Allow the setrlimit syscall, and the prlimit and prlimit64
5360       syscalls, which some libc implementations use under the hood.
5361       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
5362     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
5363       enabled and no DNS resolvers configured. This should help TAILS
5364       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
5365     - Fix the sandbox's interoperability with unix domain sockets under
5366       setuid. Fixes bug 18253; bugfix on 0.2.8.1-alpha.
5368   o Minor bugfixes (logging):
5369     - When logging information about an unparsable networkstatus vote or
5370       consensus, do not say "vote" when we mean consensus. Fixes bug
5371       18368; bugfix on 0.2.0.8-alpha.
5372     - Scrub service name in "unrecognized service ID" log messages.
5373       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
5374     - Downgrade logs and backtraces about IP versions to info-level.
5375       Only log backtraces once each time tor runs. Assists in diagnosing
5376       bug 18351; bugfix on 0.2.8.1-alpha. Reported by sysrqb and
5377       Christian, patch by teor.
5379   o Minor bugfixes (memory safety):
5380     - Avoid freeing an uninitialized pointer when opening a socket fails
5381       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
5382       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
5383       by teor.
5384     - Correctly duplicate addresses in get_interface_address6_list().
5385       Fixes bug 18454; bugfix on 0.2.8.1-alpha. Reported by toralf,
5386       patch by "cypherpunks".
5387     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
5388       on 0.2.0.1-alpha.
5389     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
5390       18672; bugfix on 0.2.5.1-alpha.
5392   o Minor bugfixes (private directory):
5393     - Prevent a race condition when creating private directories. Fixes
5394       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
5395       Patch from jsturgix. Found with Flawfinder.
5397   o Minor bugfixes (test networks, IPv6):
5398     - Allow internal IPv6 addresses in descriptors in test networks.
5399       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
5400       by karsten.
5402   o Minor bugfixes (testing):
5403     - We no longer disable assertions in the unit tests when coverage is
5404       enabled. Instead, we require you to say --disable-asserts-in-tests
5405       to the configure script if you need assertions disabled in the
5406       unit tests (for example, if you want to perform branch coverage).
5407       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
5409   o Minor bugfixes (time parsing):
5410     - Avoid overflow in tor_timegm when parsing dates in and after 2038
5411       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
5412       0.0.2pre14. Patch by teor.
5414   o Minor bugfixes (tor-gencert):
5415     - Correctly handle the case where an authority operator enters a
5416       passphrase but sends an EOF before sending a newline. Fixes bug
5417       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
5419   o Code simplification and refactoring:
5420     - Quote all the string interpolations in configure.ac -- even those
5421       which we are pretty sure can't contain spaces. Closes ticket
5422       17744. Patch from zerosion.
5423     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
5424       inplace, so there's no need to have a separate implementation for
5425       the non-inplace code. Closes ticket 18258. Patch from Malek.
5426     - Simplify return types for some crypto functions that can't
5427       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
5429   o Documentation:
5430     - Change build messages to refer to "Fedora" instead of "Fedora
5431       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
5432       Patches from "icanhasaccount" and "cypherpunks".
5434   o Removed features:
5435     - We no longer maintain an internal freelist in memarea.c.
5436       Allocators should be good enough to make this code unnecessary,
5437       and it's doubtful that it ever had any performance benefit.
5439   o Testing:
5440     - Fix several warnings from clang's address sanitizer produced in
5441       the unit tests.
5442     - Treat backtrace test failures as expected on FreeBSD until we
5443       solve bug 17808. Closes ticket 18204.
5446 Changes in version 0.2.8.1-alpha - 2016-02-04
5447   Tor 0.2.8.1-alpha is the first alpha release in its series. It
5448   includes numerous small features and bugfixes against previous Tor
5449   versions, and numerous small infrastructure improvements. The most
5450   notable features are a set of improvements to the directory subsystem.
5452   o Major features (security, Linux):
5453     - When Tor starts as root on Linux and is told to switch user ID, it
5454       can now retain the capability to bind to low ports. By default,
5455       Tor will do this only when it's switching user ID and some low
5456       ports have been configured. You can change this behavior with the
5457       new option KeepBindCapabilities. Closes ticket 8195.
5459   o Major features (directory system):
5460     - When bootstrapping multiple consensus downloads at a time, use the
5461       first one that starts downloading, and close the rest. This
5462       reduces failures when authorities or fallback directories are slow
5463       or down. Together with the code for feature 15775, this feature
5464       should reduces failures due to fallback churn. Implements ticket
5465       4483. Patch by "teor". Implements IPv4 portions of proposal 210 by
5466       "mikeperry" and "teor".
5467     - Include a trial list of 21 default fallback directories, generated
5468       in January 2016, based on an opt-in survey of suitable relays.
5469       Doing this should make clients bootstrap more quickly and reliably,
5470       and reduce the load on the directory authorities. Closes ticket
5471       15775. Patch by "teor".
5472       Candidates identified using an OnionOO script by "weasel", "teor",
5473       "gsathya", and "karsten".
5474     - Previously only relays that explicitly opened a directory port
5475       (DirPort) accepted directory requests from clients. Now all
5476       relays, with and without a DirPort, accept and serve tunneled
5477       directory requests that they receive through their ORPort. You can
5478       disable this behavior using the new DirCache option. Closes
5479       ticket 12538.
5481   o Major key updates:
5482     - Update the V3 identity key for the dannenberg directory authority:
5483       it was changed on 18 November 2015. Closes task 17906. Patch
5484       by "teor".
5486   o Minor features (security, clock):
5487     - Warn when the system clock appears to move back in time (when the
5488       state file was last written in the future). Tor doesn't know that
5489       consensuses have expired if the clock is in the past. Patch by
5490       "teor". Implements ticket 17188.
5492   o Minor features (security, exit policies):
5493     - ExitPolicyRejectPrivate now rejects more private addresses by
5494       default. Specifically, it now rejects the relay's outbound bind
5495       addresses (if configured), and the relay's configured port
5496       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
5497       0.2.0.11-alpha. Patch by "teor".
5499   o Minor features (security, memory erasure):
5500     - Set the unused entries in a smartlist to NULL. This helped catch
5501       a (harmless) bug, and shouldn't affect performance too much.
5502       Implements ticket 17026.
5503     - Use SecureMemoryWipe() function to securely clean memory on
5504       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
5505       Implements feature 17986.
5506     - Use explicit_bzero or memset_s when present. Previously, we'd use
5507       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
5508       from <logan@hackers.mu> and <selven@hackers.mu>.
5509     - Make memwipe() do nothing when passed a NULL pointer or buffer of
5510       zero size. Check size argument to memwipe() for underflow. Fixes
5511       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
5512       patch by "teor".
5514   o Minor features (security, RNG):
5515     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
5516       positively are not allowed to fail. Previously we depended on
5517       internal details of OpenSSL's behavior. Closes ticket 17686.
5518     - Never use the system entropy output directly for anything besides
5519       seeding the PRNG. When we want to generate important keys, instead
5520       of using system entropy directly, we now hash it with the PRNG
5521       stream. This may help resist certain attacks based on broken OS
5522       entropy implementations. Closes part of ticket 17694.
5523     - Use modern system calls (like getentropy() or getrandom()) to
5524       generate strong entropy on platforms that have them. Closes
5525       ticket 13696.
5527   o Minor features (accounting):
5528     - Added two modes to the AccountingRule option: One for limiting
5529       only the number of bytes sent ("AccountingRule out"), and one for
5530       limiting only the number of bytes received ("AccountingRule in").
5531       Closes ticket 15989; patch from "unixninja92".
5533   o Minor features (build):
5534     - Since our build process now uses "make distcheck", we no longer
5535       force "make dist" to depend on "make check". Closes ticket 17893;
5536       patch from "cypherpunks."
5537     - Tor now builds successfully with the recent OpenSSL 1.1
5538       development branch, and with the latest LibreSSL. Closes tickets
5539       17549, 17921, and 17984.
5541   o Minor features (controller):
5542     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
5543       tickets 16774 and 17817. Patch by George Tankersley.
5544     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
5545       service descriptor from a service's local hidden service
5546       descriptor cache. Closes ticket 14846.
5547     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
5548       controllers can examine the the reject rules added by
5549       ExitPolicyRejectPrivate. This makes it easier for stem to display
5550       exit policies.
5552   o Minor features (crypto):
5553     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
5554       George Tankersley.
5555     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
5556     - When allocating a digest state object, allocate no more space than
5557       we actually need. Previously, we would allocate as much space as
5558       the state for the largest algorithm would need. This change saves
5559       up to 672 bytes per circuit. Closes ticket 17796.
5560     - Improve performance when hashing non-multiple of 8 sized buffers,
5561       based on Andrew Moon's public domain SipHash-2-4 implementation.
5562       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
5564   o Minor features (directory downloads):
5565     - Wait for busy authorities and fallback directories to become non-
5566       busy when bootstrapping. (A similar change was made in 6c443e987d
5567       for directory caches chosen from the consensus.) Closes ticket
5568       17864; patch by "teor".
5569     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
5570       directory mirrors. The default is 1; set it to 0 to disable
5571       fallbacks. Implements ticket 17576. Patch by "teor".
5573   o Minor features (geoip):
5574     - Update geoip and geoip6 to the January 5 2016 Maxmind GeoLite2
5575       Country database.
5577   o Minor features (IPv6):
5578     - Add an argument 'ipv6=address:orport' to the DirAuthority and
5579       FallbackDir torrc options, to specify an IPv6 address for an
5580       authority or fallback directory. Add hard-coded ipv6 addresses for
5581       directory authorities that have them. Closes ticket 17327; patch
5582       from Nick Mathewson and "teor".
5583     - Add address policy assume_action support for IPv6 addresses.
5584     - Limit IPv6 mask bits to 128.
5585     - Warn when comparing against an AF_UNSPEC address in a policy, it's
5586       almost always a bug. Closes ticket 17863; patch by "teor".
5587     - Allow users to configure directory authorities and fallback
5588       directory servers with IPv6 addresses and ORPorts. Resolves
5589       ticket 6027.
5590     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
5591       17060; bugfix on 0.2.1.3-alpha. Patch by "teor".
5592     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
5593       17638; bugfix on 0.0.2pre8. Patch by "teor".
5595   o Minor features (logging):
5596     - When logging to syslog, allow a tag to be added to the syslog
5597       identity (the string prepended to every log message). The tag can
5598       be configured with SyslogIdentityTag and defaults to none. Setting
5599       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
5600       ticket 17194.
5602   o Minor features (portability):
5603     - Use timingsafe_memcmp() where available. Closes ticket 17944;
5604       patch from <logan@hackers.mu>.
5606   o Minor features (relay, address discovery):
5607     - Add a family argument to get_interface_addresses_raw() and
5608       subfunctions to make network interface address interogation more
5609       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
5610       types of interfaces from the operating system. Resolves
5611       ticket 17950.
5612     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
5613       fails to enumerate interface addresses using the platform-specific
5614       API, have it rely on the UDP socket fallback technique to try and
5615       find out what IP addresses (both IPv4 and IPv6) our machine has.
5616       Resolves ticket 17951.
5618   o Minor features (replay cache):
5619     - The replay cache now uses SHA256 instead of SHA1. Implements
5620       feature 8961. Patch by "teor", issue reported by "rransom".
5622   o Minor features (unix file permissions):
5623     - Defer creation of Unix sockets until after setuid. This avoids
5624       needing CAP_CHOWN and CAP_FOWNER when using systemd's
5625       CapabilityBoundingSet, or chown and fowner when using SELinux.
5626       Implements part of ticket 17562. Patch from Jamie Nguyen.
5627     - If any directory created by Tor is marked as group readable, the
5628       filesystem group is allowed to be either the default GID or the
5629       root user. Allowing root to read the DataDirectory prevents the
5630       need for CAP_READ_SEARCH when using systemd's
5631       CapabilityBoundingSet, or dac_read_search when using SELinux.
5632       Implements part of ticket 17562. Patch from Jamie Nguyen.
5633     - Introduce a new DataDirectoryGroupReadable option. If it is set to
5634       1, the DataDirectory will be made readable by the default GID.
5635       Implements part of ticket 17562. Patch from Jamie Nguyen.
5637   o Minor bugfixes (accounting):
5638     - The max bandwidth when using 'AccountRule sum' is now correctly
5639       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
5640       from "unixninja92".
5642   o Minor bugfixes (code correctness):
5643     - When closing an entry connection, generate a warning if we should
5644       have sent an end cell for it but we haven't. Fixes bug 17876;
5645       bugfix on 0.2.3.2-alpha.
5646     - Assert that allocated memory held by the reputation code is freed
5647       according to its internal counters. Fixes bug 17753; bugfix
5648       on 0.1.1.1-alpha.
5649     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
5650       bugfix on 0.0.6.
5652   o Minor bugfixes (compilation):
5653     - Mark all object files that include micro-revision.i as depending
5654       on it, so as to make parallel builds more reliable. Fixes bug
5655       17826; bugfix on 0.2.5.1-alpha.
5656     - Don't try to use the pthread_condattr_setclock() function unless
5657       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
5658       17819; bugfix on 0.2.6.3-alpha.
5659     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
5660       on 0.2.5.2-alpha.
5661     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
5662       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
5663     - Fix search for libevent libraries on OpenBSD (and other systems
5664       that install libevent 1 and libevent 2 in parallel). Fixes bug
5665       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
5666     - Isolate environment variables meant for tests from the rest of the
5667       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
5668     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
5669       on 0.0.2pre8.
5670     - Remove config.log only from make distclean, not from make clean.
5671       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
5673   o Minor bugfixes (crypto):
5674     - Check the return value of HMAC() and assert on failure. Fixes bug
5675       17658; bugfix on 0.2.3.6-alpha. Patch by "teor".
5677   o Minor bugfixes (fallback directories):
5678     - Mark fallbacks as "too busy" when they return a 503 response,
5679       rather than just marking authorities. Fixes bug 17572; bugfix on
5680       0.2.4.7-alpha. Patch by "teor".
5682   o Minor bugfixes (IPv6):
5683     - Update the limits in max_dl_per_request for IPv6 address length.
5684       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
5686   o Minor bugfixes (linux seccomp2 sandbox):
5687     - Fix a crash when using offline master ed25519 keys with the Linux
5688       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
5690   o Minor bugfixes (logging):
5691     - In log messages that include a function name, use __FUNCTION__
5692       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
5693       with clang __PRETTY_FUNCTION__ has extra information we don't
5694       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
5695       der Woerdt.
5696     - Remove needless quotes from a log message about unparseable
5697       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
5699   o Minor bugfixes (portability):
5700     - Remove an #endif from configure.ac so that we correctly detect the
5701       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
5702       on 0.2.0.13-alpha.
5704   o Minor bugfixes (relays):
5705     - Check that both the ORPort and DirPort (if present) are reachable
5706       before publishing a relay descriptor. Otherwise, relays publish a
5707       descriptor with DirPort 0 when the DirPort reachability test takes
5708       longer than the ORPort reachability test. Fixes bug 18050; bugfix
5709       on 0.1.0.1-rc. Reported by "starlight", patch by "teor".
5711   o Minor bugfixes (relays, hidden services):
5712     - Refuse connection requests to private OR addresses unless
5713       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
5714       then refuse to send any cells to a private address. Fixes bugs
5715       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by "teor".
5717   o Minor bugfixes (safe logging):
5718     - When logging a malformed hostname received through socks4, scrub
5719       it if SafeLogging says we should. Fixes bug 17419; bugfix
5720       on 0.1.1.16-rc.
5722   o Minor bugfixes (statistics code):
5723     - Consistently check for overflow in round_*_to_next_multiple_of
5724       functions, and add unit tests with additional and maximal values.
5725       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
5726     - Handle edge cases in the laplace functions: avoid division by
5727       zero, avoid taking the log of zero, and silence clang type
5728       conversion warnings using round and trunc. Add unit tests for edge
5729       cases with maximal values. Fixes part of bug 13192; bugfix
5730       on 0.2.6.2-alpha.
5732   o Minor bugfixes (testing):
5733     - The test for log_heartbeat was incorrectly failing in timezones
5734       with non-integer offsets. Instead of comparing the end of the time
5735       string against a constant, compare it to the output of
5736       format_local_iso_time when given the correct input. Fixes bug
5737       18039; bugfix on 0.2.5.4-alpha.
5738     - Make unit tests pass on IPv6-only systems, and systems without
5739       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
5740       bugfix on 0.2.7.3-rc. Patch by "teor".
5741     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
5742       on 0.2.4.8-alpha.
5743     - Check the full results of SHA256 and SHA512 digests in the unit
5744       tests. Bugfix on 0.2.2.4-alpha. Patch by "teor".
5746   o Code simplification and refactoring:
5747     - Move logging of redundant policy entries in
5748       policies_parse_exit_policy_internal into its own function. Closes
5749       ticket 17608; patch from "juce".
5750     - Extract the more complicated parts of circuit_mark_for_close()
5751       into a new function that we run periodically before circuits are
5752       freed. This change removes more than half of the functions
5753       currently in the "blob". Closes ticket 17218.
5754     - Clean up a little duplicated code in
5755       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
5756       from "pfrankw".
5757     - Decouple the list of streams waiting to be attached to circuits
5758       from the overall connection list. This change makes it possible to
5759       attach streams quickly while simplifying Tor's callgraph and
5760       avoiding O(N) scans of the entire connection list. Closes
5761       ticket 17590.
5762     - When a direct directory request fails immediately on launch,
5763       instead of relaunching that request from inside the code that
5764       launches it, instead mark the connection for teardown. This change
5765       simplifies Tor's callback and prevents the directory-request
5766       launching code from invoking itself recursively. Closes
5767       ticket 17589
5768     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
5769       use them. Closes ticket 17926.
5771   o Documentation:
5772     - Add a description of the correct use of the '--keygen' command-
5773       line option. Closes ticket 17583; based on text by 's7r'.
5774     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
5775     - Explain actual minima for BandwidthRate. Closes ticket 16382.
5776     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
5777     - Mention torspec URL in the manpage and point the reader to it
5778       whenever we mention a document that belongs in torspce. Fixes
5779       issue 17392.
5781   o Removed features:
5782     - Remove client-side support for connecting to Tor relays running
5783       versions of Tor before 0.2.3.6-alpha. These relays didn't support
5784       the v3 TLS handshake protocol, and are no longer allowed on the
5785       Tor network. Implements the client side of ticket 11150. Based on
5786       patches by Tom van der Woerdt.
5788   o Testing:
5789     - Add unit tests to check for common RNG failure modes, such as
5790       returning all zeroes, identical values, or incrementing values
5791       (OpenSSL's rand_predictable feature). Patch by "teor".
5792     - Log more information when the backtrace tests fail. Closes ticket
5793       17892. Patch from "cypherpunks."
5794     - Always test both ed25519 backends, so that we can be sure that our
5795       batch-open replacement code works. Part of ticket 16794.
5796     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
5797       portion of ticket 16831.
5798     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
5799       util_format.c, directory.c, and options_validate.c. Closes tickets
5800       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
5801       Ola Bini.
5802     - Unit tests for directory_handle_command_get. Closes ticket 17004.
5803       Patch from Reinaldo de Souza Jr.
5806 Changes in version 0.2.7.6 - 2015-12-10
5807   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
5808   well as a minor bug in hidden service reliability.
5810   o Major bugfixes (guard selection):
5811     - Actually look at the Guard flag when selecting a new directory
5812       guard. When we implemented the directory guard design, we
5813       accidentally started treating all relays as if they have the Guard
5814       flag during guard selection, leading to weaker anonymity and worse
5815       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
5816       by Mohsen Imani.
5818   o Minor features (geoip):
5819     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
5820       Country database.
5822   o Minor bugfixes (compilation):
5823     - When checking for net/pfvar.h, include netinet/in.h if possible.
5824       This fixes transparent proxy detection on OpenBSD. Fixes bug
5825       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
5826     - Fix a compilation warning with Clang 3.6: Do not check the
5827       presence of an address which can never be NULL. Fixes bug 17781.
5829   o Minor bugfixes (correctness):
5830     - When displaying an IPv6 exit policy, include the mask bits
5831       correctly even when the number is greater than 31. Fixes bug
5832       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
5833     - The wrong list was used when looking up expired intro points in a
5834       rend service object, causing what we think could be reachability
5835       issues for hidden services, and triggering a BUG log. Fixes bug
5836       16702; bugfix on 0.2.7.2-alpha.
5837     - Fix undefined behavior in the tor_cert_checksig function. Fixes
5838       bug 17722; bugfix on 0.2.7.2-alpha.
5841 Changes in version 0.2.7.5 - 2015-11-20
5842   The Tor 0.2.7 release series is dedicated to the memory of Tor user
5843   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
5844   tirelessly to advocate human rights regardless of national borders,
5845   and oppose the encroachments of mass surveillance. He opposed national
5846   exceptionalism, he brought clarity to legal and policy debates, he
5847   understood and predicted the impact of mass surveillance on the world,
5848   and he laid the groundwork for resisting it. While serving on the Tor
5849   Project's board of directors, he brought us his uncompromising focus
5850   on technical excellence in the service of humankind. Caspar was an
5851   inimitable force for good and a wonderful friend. He was kind,
5852   humorous, generous, gallant, and believed we should protect one
5853   another without exception. We honor him here for his ideals, his
5854   efforts, and his accomplishments. Please honor his memory with works
5855   that would make him proud.
5857   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
5859   The 0.2.7 series adds a more secure identity key type for relays,
5860   improves cryptography performance, resolves several longstanding
5861   hidden-service performance issues, improves controller support for
5862   hidden services, and includes small bugfixes and performance
5863   improvements throughout the program. This release series also includes
5864   more tests than before, and significant simplifications to which parts
5865   of Tor invoke which others.
5867   (This release contains no code changes since 0.2.7.4-rc.)
5870 Changes in version 0.2.7.4-rc - 2015-10-21
5871   Tor 0.2.7.4-rc is the second release candidate in the 0.2.7 series. It
5872   fixes some important memory leaks, and a scary-looking (but mostly
5873   harmless in practice) invalid-read bug. It also has a few small
5874   bugfixes, notably fixes for compilation and portability on different
5875   platforms. If no further significant bounds are found, the next
5876   release will the the official stable release.
5878   o Major bugfixes (security, correctness):
5879     - Fix an error that could cause us to read 4 bytes before the
5880       beginning of an openssl string. This bug could be used to cause
5881       Tor to crash on systems with unusual malloc implementations, or
5882       systems with unusual hardening installed. Fixes bug 17404; bugfix
5883       on 0.2.3.6-alpha.
5885   o Major bugfixes (correctness):
5886     - Fix a use-after-free bug in validate_intro_point_failure(). Fixes
5887       bug 17401; bugfix on 0.2.7.3-rc.
5889   o Major bugfixes (memory leaks):
5890     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
5891       17398; bugfix on 0.2.6.1-alpha.
5892     - Fix a memory leak in rend_cache_failure_entry_free(). Fixes bug
5893       17402; bugfix on 0.2.7.3-rc.
5894     - Fix a memory leak when reading an expired signing key from disk.
5895       Fixes bug 17403; bugfix on 0.2.7.2-rc.
5897   o Minor features (geoIP):
5898     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
5899       Country database.
5901   o Minor bugfixes (compilation):
5902     - Repair compilation with the most recent (unreleased, alpha)
5903       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
5904     - Fix an integer overflow warning in test_crypto_slow.c. Fixes bug
5905       17251; bugfix on 0.2.7.2-alpha.
5906     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
5907       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
5909   o Minor bugfixes (portability):
5910     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes
5911       part of bug 17151; bugfix on 0.2.5.2-alpha. Patch from
5912       Marcin CieÅ›lak.
5914   o Minor bugfixes (sandbox):
5915     - Add the "hidserv-stats" filename to our sandbox filter for the
5916       HiddenServiceStatistics option to work properly. Fixes bug 17354;
5917       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
5919   o Minor bugfixes (testing):
5920     - Add unit tests for get_interface_address* failure cases. Fixes bug
5921       17173; bugfix on 0.2.7.3-rc. Patch by fk/teor.
5922     - Fix breakage when running 'make check' with BSD make. Fixes bug
5923       17154; bugfix on 0.2.7.3-rc. Patch by Marcin CieÅ›lak.
5924     - Make the get_ifaddrs_* unit tests more tolerant of different
5925       network configurations. (Don't assume every test box has an IPv4
5926       address, and don't assume every test box has a non-localhost
5927       address.) Fixes bug 17255; bugfix on 0.2.7.3-rc. Patch by "teor".
5928     - Skip backtrace tests when backtrace support is not compiled in.
5929       Fixes part of bug 17151; bugfix on 0.2.7.1-alpha. Patch from
5930       Marcin CieÅ›lak.
5932   o Documentation:
5933     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
5934     - Note that HiddenServicePorts can take a unix domain socket. Closes
5935       ticket 17364.
5938 Changes in version 0.2.7.3-rc - 2015-09-25
5939   Tor 0.2.7.3-rc is the first release candidate in the 0.2.7 series. It
5940   contains numerous usability fixes for Ed25519 keys, safeguards against
5941   several misconfiguration problems, significant simplifications to
5942   Tor's callgraph, and numerous bugfixes and small features.
5944   This is the most tested release of Tor to date. The unit tests cover
5945   39.40% of the code, and the integration tests (accessible with "make
5946   test-full-online", requiring stem and chutney and a network
5947   connection) raise the coverage to 64.49%.
5949   o Major features (security, hidden services):
5950     - Hidden services, if using the EntryNodes option, are required to
5951       use more than one EntryNode, in order to avoid a guard discovery
5952       attack. (This would only affect people who had configured hidden
5953       services and manually specified the EntryNodes option with a
5954       single entry-node. The impact was that it would be easy to
5955       remotely identify the guard node used by such a hidden service.
5956       See ticket for more information.) Fixes ticket 14917.
5958   o Major features (Ed25519 keys, keypinning):
5959     - The key-pinning option on directory authorities is now advisory-
5960       only by default. In a future version, or when the AuthDirPinKeys
5961       option is set, pins are enforced again. Disabling key-pinning
5962       seemed like a good idea so that we can survive the fallout of any
5963       usability problems associated with Ed25519 keys. Closes
5964       ticket 17135.
5966   o Major features (Ed25519 performance):
5967     - Improve the speed of Ed25519 operations and Curve25519 keypair
5968       generation when built targeting 32 bit x86 platforms with SSE2
5969       available. Implements ticket 16535.
5970     - Improve the runtime speed of Ed25519 signature verification by
5971       using Ed25519-donna's batch verification support. Implements
5972       ticket 16533.
5974   o Major features (performance testing):
5975     - The test-network.sh script now supports performance testing.
5976       Requires corresponding chutney performance testing changes. Patch
5977       by "teor". Closes ticket 14175.
5979   o Major features (relay, Ed25519):
5980     - Significant usability improvements for Ed25519 key management. Log
5981       messages are better, and the code can recover from far more
5982       failure conditions. Thanks to "s7r" for reporting and diagnosing
5983       so many of these!
5984     - Add a new OfflineMasterKey option to tell Tor never to try loading
5985       or generating a secret Ed25519 identity key. You can use this in
5986       combination with tor --keygen to manage offline and/or encrypted
5987       Ed25519 keys. Implements ticket 16944.
5988     - Add a --newpass option to allow changing or removing the
5989       passphrase of an encrypted key with tor --keygen. Implements part
5990       of ticket 16769.
5991     - On receiving a HUP signal, check to see whether the Ed25519
5992       signing key has changed, and reload it if so. Closes ticket 16790.
5994   o Major bugfixes (relay, Ed25519):
5995     - Avoid crashing on 'tor --keygen'. Fixes bug 16679; bugfix on
5996       0.2.7.2-alpha. Reported by "s7r".
5997     - Improve handling of expired signing keys with offline master keys.
5998       Fixes bug 16685; bugfix on 0.2.7.2-alpha. Reported by "s7r".
6000   o Minor features (client-side privacy):
6001     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
6002       lifespan when IsolateSOCKSAuth and streams with SOCKS
6003       authentication are attached to the circuit. This allows
6004       applications like TorBrowser to manage circuit lifetime on their
6005       own. Implements feature 15482.
6006     - When logging malformed hostnames from SOCKS5 requests, respect
6007       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
6009   o Minor features (compilation):
6010     - Give a warning as early as possible when trying to build with an
6011       unsupported OpenSSL version. Closes ticket 16901.
6012     - Fail during configure if we're trying to build against an OpenSSL
6013       built without ECC support. Fixes bug 17109, bugfix on 0.2.7.1-alpha
6014       which started requiring ECC.
6016   o Minor features (geoip):
6017     - Update geoip and geoip6 to the September 3 2015 Maxmind GeoLite2
6018       Country database.
6020   o Minor features (hidden services):
6021     - Relays need to have the Fast flag to get the HSDir flag. As this
6022       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
6023       drop. This change should make some attacks against the hidden
6024       service directory system harder. Fixes ticket 15963.
6025     - Turn on hidden service statistics collection by setting the torrc
6026       option HiddenServiceStatistics to "1" by default. (This keeps
6027       track only of the fraction of traffic used by hidden services, and
6028       the total number of hidden services in existence.) Closes
6029       ticket 15254.
6030     - Client now uses an introduction point failure cache to know when
6031       to fetch or keep a descriptor in their cache. Previously, failures
6032       were recorded implicitly, but not explicitly remembered. Closes
6033       ticket 16389.
6035   o Minor features (testing, authorities, documentation):
6036     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
6037       explicitly manage consensus flags in testing networks. Patch by
6038       "robgjansen", modified by "teor". Implements part of ticket 14882.
6040   o Minor bugfixes (security, exit policies):
6041     - ExitPolicyRejectPrivate now also rejects the relay's published
6042       IPv6 address (if any), and any publicly routable IPv4 or IPv6
6043       addresses on any local interfaces. ticket 17027. Patch by "teor".
6044       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
6046   o Minor bug fixes (torrc exit policies):
6047     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
6048       produce IPv6 wildcard addresses. Previously they would produce
6049       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
6050       of bug 16069; bugfix on 0.2.4.7-alpha.
6051     - When parsing torrc ExitPolicies, we now warn for a number of cases
6052       where the user's intent is likely to differ from Tor's actual
6053       behavior. These include: using an IPv4 address with an accept6 or
6054       reject6 line; using "private" on an accept6 or reject6 line; and
6055       including any ExitPolicy lines after accept *:* or reject *:*.
6056       Related to ticket 16069.
6057     - When parsing torrc ExitPolicies, we now issue an info-level
6058       message when expanding an "accept/reject *" line to include both
6059       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
6060     - In each instance above, usage advice is provided to avoid the
6061       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
6062       16069; bugfix on 0.2.4.7-alpha.
6064   o Minor bugfixes (authority):
6065     - Don't assign "HSDir" to a router if it isn't Valid and Running.
6066       Fixes bug 16524; bugfix on 0.2.7.2-alpha.
6067     - Downgrade log messages about Ed25519 key issues if they are in old
6068       cached router descriptors. Fixes part of bug 16286; bugfix
6069       on 0.2.7.2-alpha.
6070     - When we find an Ed25519 key issue in a cached descriptor, stop
6071       saying the descriptor was just "uploaded". Fixes another part of
6072       bug 16286; bugfix on 0.2.7.2-alpha.
6074   o Minor bugfixes (control port):
6075     - Repair a warning and a spurious result when getting the maximum
6076       number of file descriptors from the controller. Fixes bug 16697;
6077       bugfix on 0.2.7.2-alpha.
6079   o Minor bugfixes (correctness):
6080     - When calling channel_free_list(), avoid calling smartlist_remove()
6081       while inside a FOREACH loop. This partially reverts commit
6082       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
6083       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
6085   o Minor bugfixes (documentation):
6086     - Advise users on how to configure separate IPv4 and IPv6 exit
6087       policies in the manpage and sample torrcs. Related to ticket 16069.
6088     - Fix the usage message of tor-resolve(1) so that it no longer lists
6089       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
6090     - Fix an error in the manual page and comments for
6091       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
6092       required "ORPort connectivity". While this is true, it is in no
6093       way unique to the HSDir flag. Of all the flags, only HSDirs need a
6094       DirPort configured in order for the authorities to assign that
6095       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
6096       on 0.2.6.3-alpha.
6098   o Minor bugfixes (Ed25519):
6099     - Fix a memory leak when reading router descriptors with expired
6100       Ed25519 certificates. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
6102   o Minor bugfixes (linux seccomp2 sandbox):
6103     - Allow bridge authorities to run correctly under the seccomp2
6104       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
6105     - Allow routers with ed25519 keys to run correctly under the
6106       seccomp2 sandbox. Fixes bug 16965; bugfix on 0.2.7.2-alpha.
6108   o Minor bugfixes (open file limit):
6109     - Fix set_max_file_descriptors() to set by default the max open file
6110       limit to the current limit when setrlimit() fails. Fixes bug
6111       16274; bugfix on 0.2.0.10-alpha. Patch by dgoulet.
6113   o Minor bugfixes (portability):
6114     - Try harder to normalize the exit status of the Tor process to the
6115       standard-provided range. Fixes bug 16975; bugfix on every version
6116       of Tor ever.
6117     - Check correctly for Windows socket errors in the workqueue
6118       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
6119     - Fix the behavior of crypto_rand_time_range() when told to consider
6120       times before 1970. (These times were possible when running in a
6121       simulated network environment where time()'s output starts at
6122       zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
6123     - Restore correct operation of TLS client-cipher detection on
6124       OpenSSL 1.1. Fixes bug 14047; bugfix on 0.2.7.2-alpha.
6126   o Minor bugfixes (relay):
6127     - Ensure that worker threads actually exit when a fatal error or
6128       shutdown is indicated. This fix doesn't currently affect the
6129       behavior of Tor, because Tor workers never indicates fatal error
6130       or shutdown except in the unit tests. Fixes bug 16868; bugfix
6131       on 0.2.6.3-alpha.
6132     - Unblock threads before releasing the work queue mutex to ensure
6133       predictable scheduling behavior. Fixes bug 16644; bugfix
6134       on 0.2.6.3-alpha.
6136   o Code simplification and refactoring:
6137     - Change the function that's called when we need to retry all
6138       downloads so that it only reschedules the downloads to happen
6139       immediately, rather than launching them all at once itself. This
6140       further simplifies Tor's callgraph.
6141     - Move some format-parsing functions out of crypto.c and
6142       crypto_curve25519.c into crypto_format.c and/or util_format.c.
6143     - Move the client-only parts of init_keys() into a separate
6144       function. Closes ticket 16763.
6145     - Simplify the microdesc_free() implementation so that it no longer
6146       appears (to code analysis tools) to potentially invoke a huge
6147       suite of other microdesc functions.
6148     - Simply the control graph further by deferring the inner body of
6149       directory_all_unreachable() into a callback. Closes ticket 16762.
6150     - Treat the loss of an owning controller as equivalent to a SIGTERM
6151       signal. This removes a tiny amount of duplicated code, and
6152       simplifies our callgraph. Closes ticket 16788.
6153     - When generating an event to send to the controller, we no longer
6154       put the event over the network immediately. Instead, we queue
6155       these events, and use a Libevent callback to deliver them. This
6156       change simplifies Tor's callgraph by reducing the number of
6157       functions from which all other Tor functions are reachable. Closes
6158       ticket 16695.
6159     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
6160       that try to scan or compile every file on Unix won't decide that
6161       they are broken.
6162     - Remove the unused "nulterminate" argument from buf_pullup().
6164   o Documentation:
6165     - Recommend a 40 GB example AccountingMax in torrc.sample rather
6166       than a 4 GB max. Closes ticket 16742.
6167     - Include the TUNING document in our source tarball. It is referred
6168       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
6169       on 0.2.6.1-alpha.
6171   o Removed code:
6172     - The internal pure-C tor-fw-helper tool is now removed from the Tor
6173       distribution, in favor of the pure-Go clone available from
6174       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
6175       used by the C tor-fw-helper are not, in our opinion, very
6176       confidence- inspiring in their secure-programming techniques.
6177       Closes ticket 13338.
6178     - Remove the code that would try to aggressively flush controller
6179       connections while writing to them. This code was introduced in
6180       0.1.2.7-alpha, in order to keep output buffers from exceeding
6181       their limits. But there is no longer a maximum output buffer size,
6182       and flushing data in this way caused some undesirable recursions
6183       in our call graph. Closes ticket 16480.
6185   o Testing:
6186     - Make "bridges+hs" the default test network. This tests almost all
6187       tor functionality during make test-network, while allowing tests
6188       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
6189       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
6190       (chutney). Patches by "teor".
6191     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
6192       by-side in the same parent directory. Closes ticket 16903. Patch
6193       by "teor".
6194     - Use environment variables rather than autoconf substitutions to
6195       send variables from the build system to the test scripts. This
6196       change should be easier to maintain, and cause 'make distcheck' to
6197       work better than before. Fixes bug 17148.
6198     - Add a new set of callgraph analysis scripts that use clang to
6199       produce a list of which Tor functions are reachable from which
6200       other Tor functions. We're planning to use these to help simplify
6201       our code structure by identifying illogical dependencies.
6202     - Add new 'test-full' and 'test-full-online' targets to run all
6203       tests, including integration tests with stem and chutney.
6204     - Make the test-workqueue test work on Windows by initializing the
6205       network before we begin.
6206     - New make target (make test-network-all) to run multiple applicable
6207       chutney test cases. Patch from Teor; closes 16953.
6208     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
6209       functions in dns.c. Implements a portion of ticket 16831.
6210     - When building Tor with testing coverage enabled, run Chutney tests
6211       (if any) using the 'tor-cov' coverage binary.
6212     - When running test-network or test-stem, check for the absence of
6213       stem/chutney before doing any build operations.
6216 Changes in version 0.2.7.2-alpha - 2015-07-27
6217   This, the second alpha in the Tor 0.2.7 series, has a number of new
6218   features, including a way to manually pick the number of introduction
6219   points for hidden services, and the much stronger Ed25519 signing key
6220   algorithm for regular Tor relays (including support for encrypted
6221   offline identity keys in the new algorithm).
6223   Support for Ed25519 on relays is currently limited to signing router
6224   descriptors; later alphas in this series will extend Ed25519 key
6225   support to more parts of the Tor protocol.
6227   o Major features (Ed25519 identity keys, Proposal 220):
6228     - All relays now maintain a stronger identity key, using the Ed25519
6229       elliptic curve signature format. This master key is designed so
6230       that it can be kept offline. Relays also generate an online
6231       signing key, and a set of other Ed25519 keys and certificates.
6232       These are all automatically regenerated and rotated as needed.
6233       Implements part of ticket 12498.
6234     - Directory authorities now vote on Ed25519 identity keys along with
6235       RSA1024 keys. Implements part of ticket 12498.
6236     - Directory authorities track which Ed25519 identity keys have been
6237       used with which RSA1024 identity keys, and do not allow them to
6238       vary freely. Implements part of ticket 12498.
6239     - Microdescriptors now include Ed25519 identity keys. Implements
6240       part of ticket 12498.
6241     - Add support for offline encrypted Ed25519 master keys. To use this
6242       feature on your tor relay, run "tor --keygen" to make a new master
6243       key (or to make a new signing key if you already have a master
6244       key). Closes ticket 13642.
6246   o Major features (Hidden services):
6247     - Add the torrc option HiddenServiceNumIntroductionPoints, to
6248       specify a fixed number of introduction points. Its maximum value
6249       is 10 and default is 3. Using this option can increase a hidden
6250       service's reliability under load, at the cost of making it more
6251       visible that the hidden service is facing extra load. Closes
6252       ticket 4862.
6253     - Remove the adaptive algorithm for choosing the number of
6254       introduction points, which used to change the number of
6255       introduction points (poorly) depending on the number of
6256       connections the HS sees. Closes ticket 4862.
6258   o Major features (onion key cross-certification):
6259     - Relay descriptors now include signatures of their own identity
6260       keys, made using the TAP and ntor onion keys. These signatures
6261       allow relays to prove ownership of their own onion keys. Because
6262       of this change, microdescriptors will no longer need to include
6263       RSA identity keys. Implements proposal 228; closes ticket 12499.
6265   o Major features (performance):
6266     - Improve the runtime speed of Ed25519 operations by using the
6267       public-domain Ed25519-donna by Andrew M. ("floodyberry").
6268       Implements ticket 16467.
6269     - Improve the runtime speed of the ntor handshake by using an
6270       optimized curve25519 basepoint scalarmult implementation from the
6271       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
6272       ideas by Adam Langley. Implements ticket 9663.
6274   o Major bugfixes (client-side privacy, also in 0.2.6.9):
6275     - Properly separate out each SOCKSPort when applying stream
6276       isolation. The error occurred because each port's session group
6277       was being overwritten by a default value when the listener
6278       connection was initialized. Fixes bug 16247; bugfix on
6279       0.2.6.3-alpha. Patch by "jojelino".
6281   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
6282     - Stop refusing to store updated hidden service descriptors on a
6283       client. This reverts commit 9407040c59218 (which indeed fixed bug
6284       14219, but introduced a major hidden service reachability
6285       regression detailed in bug 16381). This is a temporary fix since
6286       we can live with the minor issue in bug 14219 (it just results in
6287       some load on the network) but the regression of 16381 is too much
6288       of a setback. First-round fix for bug 16381; bugfix
6289       on 0.2.6.3-alpha.
6291   o Major bugfixes (hidden services):
6292     - When cannibalizing a circuit for an introduction point, always
6293       extend to the chosen exit node (creating a 4 hop circuit).
6294       Previously Tor would use the current circuit exit node, which
6295       changed the original choice of introduction point, and could cause
6296       the hidden service to skip excluded introduction points or
6297       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
6298       on 0.1.0.1-rc.
6300   o Major bugfixes (open file limit):
6301     - The open file limit wasn't checked before calling
6302       tor_accept_socket_nonblocking(), which would make Tor exceed the
6303       limit. Now, before opening a new socket, Tor validates the open
6304       file limit just before, and if the max has been reached, return an
6305       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
6307   o Major bugfixes (stability, also in 0.2.6.10):
6308     - Stop crashing with an assertion failure when parsing certain kinds
6309       of malformed or truncated microdescriptors. Fixes bug 16400;
6310       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
6311       by "cypherpunks_backup".
6312     - Stop random client-side assertion failures that could occur when
6313       connecting to a busy hidden service, or connecting to a hidden
6314       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
6315       on 0.1.0.1-rc.
6317   o Minor features (directory authorities, security, also in 0.2.6.9):
6318     - The HSDir flag given by authorities now requires the Stable flag.
6319       For the current network, this results in going from 2887 to 2806
6320       HSDirs. Also, it makes it harder for an attacker to launch a sybil
6321       attack by raising the effort for a relay to become Stable to
6322       require at the very least 7 days, while maintaining the 96 hours
6323       uptime requirement for HSDir. Implements ticket 8243.
6325   o Minor features (client):
6326     - Relax the validation of hostnames in SOCKS5 requests, allowing the
6327       character '_' to appear, in order to cope with domains observed in
6328       the wild that are serving non-RFC compliant records. Resolves
6329       ticket 16430.
6330     - Relax the validation done to hostnames in SOCKS5 requests, and
6331       allow a single trailing '.' to cope with clients that pass FQDNs
6332       using that syntax to explicitly indicate that the domain name is
6333       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
6334     - Add GroupWritable and WorldWritable options to unix-socket based
6335       SocksPort and ControlPort options. These options apply to a single
6336       socket, and override {Control,Socks}SocketsGroupWritable. Closes
6337       ticket 15220.
6339   o Minor features (control protocol):
6340     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
6341       the control protocol. Resolves ticket 15358.
6343   o Minor features (directory authorities):
6344     - Directory authorities no longer vote against the "Fast", "Stable",
6345       and "HSDir" flags just because they were going to vote against
6346       "Running": if the consensus turns out to be that the router was
6347       running, then the authority's vote should count. Patch from Peter
6348       Retzlaff; closes issue 8712.
6350   o Minor features (geoip, also in 0.2.6.10):
6351     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
6352     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
6354   o Minor features (hidden services):
6355     - Add the new options "HiddenServiceMaxStreams" and
6356       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
6357       limit the maximum number of simultaneous streams per circuit, and
6358       optionally tear down the circuit when the limit is exceeded. Part
6359       of ticket 16052.
6361   o Minor features (portability):
6362     - Use C99 variadic macros when the compiler is not GCC. This avoids
6363       failing compilations on MSVC, and fixes a log-file-based race
6364       condition in our old workarounds. Original patch from Gisle Vanem.
6366   o Minor bugfixes (compilation, also in 0.2.6.9):
6367     - Build with --enable-systemd correctly when libsystemd is
6368       installed, but systemd is not. Fixes bug 16164; bugfix on
6369       0.2.6.3-alpha. Patch from Peter Palfrader.
6371   o Minor bugfixes (controller):
6372     - Add the descriptor ID in each HS_DESC control event. It was
6373       missing, but specified in control-spec.txt. Fixes bug 15881;
6374       bugfix on 0.2.5.2-alpha.
6376   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
6377     - Check for failures from crypto_early_init, and refuse to continue.
6378       A previous typo meant that we could keep going with an
6379       uninitialized crypto library, and would have OpenSSL initialize
6380       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
6381       when implementing ticket 4900. Patch by "teor".
6383   o Minor bugfixes (hidden services):
6384     - Fix a crash when reloading configuration while at least one
6385       configured and one ephemeral hidden service exists. Fixes bug
6386       16060; bugfix on 0.2.7.1-alpha.
6387     - Avoid crashing with a double-free bug when we create an ephemeral
6388       hidden service but adding it fails for some reason. Fixes bug
6389       16228; bugfix on 0.2.7.1-alpha.
6391   o Minor bugfixes (Linux seccomp2 sandbox):
6392     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
6393       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
6395   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
6396     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
6397       these when eventfd2() support is missing. Fixes bug 16363; bugfix
6398       on 0.2.6.3-alpha. Patch from "teor".
6400   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
6401     - Fix sandboxing to work when running as a relay, by allowing the
6402       renaming of secret_id_key, and allowing the eventfd2 and futex
6403       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
6404       Peter Palfrader.
6405     - Allow systemd connections to work with the Linux seccomp2 sandbox
6406       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
6407       Peter Palfrader.
6409   o Minor bugfixes (relay):
6410     - Fix a rarely-encountered memory leak when failing to initialize
6411       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
6412       from "cypherpunks".
6414   o Minor bugfixes (systemd):
6415     - Fix an accidental formatting error that broke the systemd
6416       configuration file. Fixes bug 16152; bugfix on 0.2.7.1-alpha.
6417     - Tor's systemd unit file no longer contains extraneous spaces.
6418       These spaces would sometimes confuse tools like deb-systemd-
6419       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
6421   o Minor bugfixes (tests):
6422     - Use the configured Python executable when running test-stem-full.
6423       Fixes bug 16470; bugfix on 0.2.7.1-alpha.
6425   o Minor bugfixes (tests, also in 0.2.6.9):
6426     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
6427       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
6429   o Minor bugfixes (threads, comments):
6430     - Always initialize return value in compute_desc_id in rendcommon.c
6431       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
6432     - Check for NULL values in getinfo_helper_onions(). Patch by "teor".
6433       Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
6434     - Remove undefined directive-in-macro in test_util_writepid clang
6435       3.7 complains that using a preprocessor directive inside a macro
6436       invocation in test_util_writepid in test_util.c is undefined.
6437       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
6439   o Code simplification and refactoring:
6440     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
6441       to ensure they remain consistent and visible everywhere.
6442     - Remove some vestigial workarounds for the MSVC6 compiler. We
6443       haven't supported that in ages.
6444     - The link authentication code has been refactored for better
6445       testability and reliability. It now uses code generated with the
6446       "trunnel" binary encoding generator, to reduce the risk of bugs
6447       due to programmer error. Done as part of ticket 12498.
6449   o Documentation:
6450     - Include a specific and (hopefully) accurate documentation of the
6451       torrc file's meta-format in doc/torrc_format.txt. This is mainly
6452       of interest to people writing programs to parse or generate torrc
6453       files. This document is not a commitment to long-term
6454       compatibility; some aspects of the current format are a bit
6455       ridiculous. Closes ticket 2325.
6457   o Removed features:
6458     - Tor no longer supports copies of OpenSSL that are missing support
6459       for Elliptic Curve Cryptography. (We began using ECC when
6460       available in 0.2.4.8-alpha, for more safe and efficient key
6461       negotiation.) In particular, support for at least one of P256 or
6462       P224 is now required, with manual configuration needed if only
6463       P224 is available. Resolves ticket 16140.
6464     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
6465       on an operating system that has not upgraded to OpenSSL 1.0 or
6466       later, and you compile Tor from source, you will need to install a
6467       more recent OpenSSL to link Tor against.) These versions of
6468       OpenSSL are still supported by the OpenSSL, but the numerous
6469       cryptographic improvements in later OpenSSL releases makes them a
6470       clear choice. Resolves ticket 16034.
6471     - Remove the HidServDirectoryV2 option. Now all relays offer to
6472       store hidden service descriptors. Related to 16543.
6473     - Remove the VoteOnHidServDirectoriesV2 option, since all
6474       authorities have long set it to 1. Closes ticket 16543.
6476   o Testing:
6477     - Document use of coverity, clang static analyzer, and clang dynamic
6478       undefined behavior and address sanitizers in doc/HACKING. Include
6479       detailed usage instructions in the blacklist. Patch by "teor".
6480       Closes ticket 15817.
6481     - The link authentication protocol code now has extensive tests.
6482     - The relay descriptor signature testing code now has
6483       extensive tests.
6484     - The test_workqueue program now runs faster, and is enabled by
6485       default as a part of "make check".
6486     - Now that OpenSSL has its own scrypt implementation, add an unit
6487       test that checks for interoperability between libscrypt_scrypt()
6488       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
6489       and rely on EVP_PBE_scrypt() whenever possible. Resolves
6490       ticket 16189.
6493 Changes in version 0.2.6.10 - 2015-07-12
6494   Tor version 0.2.6.10 fixes some significant stability and hidden
6495   service client bugs, bulletproofs the cryptography init process, and
6496   fixes a bug when using the sandbox code with some older versions of
6497   Linux. Everyone running an older version, especially an older version
6498   of 0.2.6, should upgrade.
6500   o Major bugfixes (hidden service clients, stability):
6501     - Stop refusing to store updated hidden service descriptors on a
6502       client. This reverts commit 9407040c59218 (which indeed fixed bug
6503       14219, but introduced a major hidden service reachability
6504       regression detailed in bug 16381). This is a temporary fix since
6505       we can live with the minor issue in bug 14219 (it just results in
6506       some load on the network) but the regression of 16381 is too much
6507       of a setback. First-round fix for bug 16381; bugfix
6508       on 0.2.6.3-alpha.
6510   o Major bugfixes (stability):
6511     - Stop crashing with an assertion failure when parsing certain kinds
6512       of malformed or truncated microdescriptors. Fixes bug 16400;
6513       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
6514       by "cypherpunks_backup".
6515     - Stop random client-side assertion failures that could occur when
6516       connecting to a busy hidden service, or connecting to a hidden
6517       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
6518       on 0.1.0.1-rc.
6520   o Minor features (geoip):
6521     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
6522     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
6524   o Minor bugfixes (crypto error-handling):
6525     - Check for failures from crypto_early_init, and refuse to continue.
6526       A previous typo meant that we could keep going with an
6527       uninitialized crypto library, and would have OpenSSL initialize
6528       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
6529       when implementing ticket 4900. Patch by "teor".
6531   o Minor bugfixes (Linux seccomp2 sandbox):
6532     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
6533       these when eventfd2() support is missing. Fixes bug 16363; bugfix
6534       on 0.2.6.3-alpha. Patch from "teor".
6537 Changes in version 0.2.6.9 - 2015-06-11
6538   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
6539   requirements for receiving an HSDir flag, and addresses some other small
6540   bugs in the systemd and sandbox code. Clients using circuit isolation
6541   should upgrade; all directory authorities should upgrade.
6543   o Major bugfixes (client-side privacy):
6544     - Properly separate out each SOCKSPort when applying stream
6545       isolation. The error occurred because each port's session group was
6546       being overwritten by a default value when the listener connection
6547       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
6548       by "jojelino".
6550   o Minor feature (directory authorities, security):
6551     - The HSDir flag given by authorities now requires the Stable flag.
6552       For the current network, this results in going from 2887 to 2806
6553       HSDirs. Also, it makes it harder for an attacker to launch a sybil
6554       attack by raising the effort for a relay to become Stable which
6555       takes at the very least 7 days to do so and by keeping the 96
6556       hours uptime requirement for HSDir. Implements ticket 8243.
6558   o Minor bugfixes (compilation):
6559     - Build with --enable-systemd correctly when libsystemd is
6560       installed, but systemd is not. Fixes bug 16164; bugfix on
6561       0.2.6.3-alpha. Patch from Peter Palfrader.
6563   o Minor bugfixes (Linux seccomp2 sandbox):
6564     - Fix sandboxing to work when running as a relaymby renaming of
6565       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
6566       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
6567     - Allow systemd connections to work with the Linux seccomp2 sandbox
6568       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
6569       Peter Palfrader.
6571   o Minor bugfixes (tests):
6572     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
6573       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
6576 Changes in version 0.2.6.8 - 2015-05-21
6577   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
6578   fixes an authority-side bug in assigning the HSDir flag. All directory
6579   authorities should upgrade.
6581   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
6582     - Revert commit that made directory authorities assign the HSDir
6583       flag to relays without a DirPort; this was bad because such relays
6584       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
6585       on 0.2.6.3-alpha.
6587   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
6588     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
6589       a client authorized hidden service. Fixes bug 15823; bugfix
6590       on 0.2.1.6-alpha.
6592   o Minor features (geoip):
6593     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
6594     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
6595       Country database.
6598 Changes in version 0.2.7.1-alpha - 2015-05-12
6599   Tor 0.2.7.1-alpha is the first alpha release in its series. It
6600   includes numerous small features and bugfixes against previous Tor
6601   versions, and numerous small infrastructure improvements. The most
6602   notable features are several new ways for controllers to interact with
6603   the hidden services subsystem.
6605   o New system requirements:
6606     - Tor no longer includes workarounds to support Libevent versions
6607       before 1.3e. Libevent 2.0 or later is recommended. Closes
6608       ticket 15248.
6610   o Major features (controller):
6611     - Add the ADD_ONION and DEL_ONION commands that allow the creation
6612       and management of hidden services via the controller. Closes
6613       ticket 6411.
6614     - New "GETINFO onions/current" and "GETINFO onions/detached"
6615       commands to get information about hidden services created via the
6616       controller. Part of ticket 6411.
6617     - New HSFETCH command to launch a request for a hidden service
6618       descriptor. Closes ticket 14847.
6619     - New HSPOST command to upload a hidden service descriptor. Closes
6620       ticket 3523. Patch by "DonnchaC".
6622   o Major bugfixes (hidden services):
6623     - Revert commit that made directory authorities assign the HSDir
6624       flag to relays without a DirPort; this was bad because such relays
6625       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
6626       on 0.2.6.3-alpha.
6628   o Minor features (clock-jump tolerance):
6629     - Recover better when our clock jumps back many hours, like might
6630       happen for Tails or Whonix users who start with a very wrong
6631       hardware clock, use Tor to discover a more accurate time, and then
6632       fix their clock. Resolves part of ticket 8766.
6634   o Minor features (command-line interface):
6635     - Make --hash-password imply --hush to prevent unnecessary noise.
6636       Closes ticket 15542. Patch from "cypherpunks".
6637     - Print a warning whenever we find a relative file path being used
6638       as torrc option. Resolves issue 14018.
6640   o Minor features (controller):
6641     - Add DirAuthority lines for default directory authorities to the
6642       output of the "GETINFO config/defaults" command if not already
6643       present. Implements ticket 14840.
6644     - Controllers can now use "GETINFO hs/client/desc/id/..." to
6645       retrieve items from the client's hidden service descriptor cache.
6646       Closes ticket 14845.
6647     - Implement a new controller command "GETINFO status/fresh-relay-
6648       descs" to fetch a descriptor/extrainfo pair that was generated on
6649       demand just for the controller's use. Implements ticket 14784.
6651   o Minor features (DoS-resistance):
6652     - Make it harder for attackers to overload hidden services with
6653       introductions, by blocking multiple introduction requests on the
6654       same circuit. Resolves ticket 15515.
6656   o Minor features (geoip):
6657     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
6658     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
6659       Country database.
6661   o Minor features (HS popularity countermeasure):
6662     - To avoid leaking HS popularity, don't cycle the introduction point
6663       when we've handled a fixed number of INTRODUCE2 cells but instead
6664       cycle it when a random number of introductions is reached, thus
6665       making it more difficult for an attacker to find out the amount of
6666       clients that have used the introduction point for a specific HS.
6667       Closes ticket 15745.
6669   o Minor features (logging):
6670     - Include the Tor version in all LD_BUG log messages, since people
6671       tend to cut and paste those into the bugtracker. Implements
6672       ticket 15026.
6674   o Minor features (pluggable transports):
6675     - When launching managed pluggable transports on Linux systems,
6676       attempt to have the kernel deliver a SIGTERM on tor exit if the
6677       pluggable transport process is still running. Resolves
6678       ticket 15471.
6679     - When launching managed pluggable transports, setup a valid open
6680       stdin in the child process that can be used to detect if tor has
6681       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
6682       can be used by implementations to detect this new behavior.
6683       Resolves ticket 15435.
6685   o Minor features (testing):
6686     - Add a test to verify that the compiler does not eliminate our
6687       memwipe() implementation. Closes ticket 15377.
6688     - Add make rule `check-changes` to verify the format of changes
6689       files. Closes ticket 15180.
6690     - Add unit tests for control_event_is_interesting(). Add a compile-
6691       time check that the number of events doesn't exceed the capacity
6692       of control_event_t.event_mask. Closes ticket 15431, checks for
6693       bugs similar to 13085. Patch by "teor".
6694     - Command-line argument tests moved to Stem. Resolves ticket 14806.
6695     - Integrate the ntor, backtrace, and zero-length keys tests into the
6696       automake test suite. Closes ticket 15344.
6697     - Remove assertions during builds to determine Tor's test coverage.
6698       We don't want to trigger these even in assertions, so including
6699       them artificially makes our branch coverage look worse than it is.
6700       This patch provides the new test-stem-full and coverage-html-full
6701       configure options. Implements ticket 15400.
6703   o Minor bugfixes (build):
6704     - Improve out-of-tree builds by making non-standard rules work and
6705       clean up additional files and directories. Fixes bug 15053; bugfix
6706       on 0.2.7.0-alpha.
6708   o Minor bugfixes (command-line interface):
6709     - When "--quiet" is provided along with "--validate-config", do not
6710       write anything to stdout on success. Fixes bug 14994; bugfix
6711       on 0.2.3.3-alpha.
6712     - When complaining about bad arguments to "--dump-config", use
6713       stderr, not stdout.
6715   o Minor bugfixes (configuration, unit tests):
6716     - Only add the default fallback directories when the DirAuthorities,
6717       AlternateDirAuthority, and FallbackDir directory config options
6718       are set to their defaults. The default fallback directory list is
6719       currently empty, this fix will only change tor's behavior when it
6720       has default fallback directories. Includes unit tests for
6721       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
6722       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
6724   o Minor bugfixes (correctness):
6725     - For correctness, avoid modifying a constant string in
6726       handle_control_postdescriptor. Fixes bug 15546; bugfix
6727       on 0.1.1.16-rc.
6728     - Remove side-effects from tor_assert() calls. This was harmless,
6729       because we never disable assertions, but it is bad style and
6730       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
6731       and 0.2.0.10.
6733   o Minor bugfixes (hidden service):
6734     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
6735       a client authorized hidden service. Fixes bug 15823; bugfix
6736       on 0.2.1.6-alpha.
6737     - Remove an extraneous newline character from the end of hidden
6738       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
6740   o Minor bugfixes (interface):
6741     - Print usage information for --dump-config when it is used without
6742       an argument. Also, fix the error message to use different wording
6743       and add newline at the end. Fixes bug 15541; bugfix
6744       on 0.2.5.1-alpha.
6746   o Minor bugfixes (logs):
6747     - When building Tor under Clang, do not include an extra set of
6748       parentheses in log messages that include function names. Fixes bug
6749       15269; bugfix on every released version of Tor when compiled with
6750       recent enough Clang.
6752   o Minor bugfixes (network):
6753     - When attempting to use fallback technique for network interface
6754       lookup, disregard loopback and multicast addresses since they are
6755       unsuitable for public communications.
6757   o Minor bugfixes (statistics):
6758     - Disregard the ConnDirectionStatistics torrc options when Tor is
6759       not a relay since in that mode of operation no sensible data is
6760       being collected and because Tor might run into measurement hiccups
6761       when running as a client for some time, then becoming a relay.
6762       Fixes bug 15604; bugfix on 0.2.2.35.
6764   o Minor bugfixes (test networks):
6765     - When self-testing reachability, use ExtendAllowPrivateAddresses to
6766       determine if local/private addresses imply reachability. The
6767       previous fix used TestingTorNetwork, which implies
6768       ExtendAllowPrivateAddresses, but this excluded rare configurations
6769       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
6770       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
6771       issue discovered by CJ Ess.
6773   o Minor bugfixes (testing):
6774     - Check for matching value in server response in ntor_ref.py. Fixes
6775       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
6776       by "joelanders".
6777     - Set the severity correctly when testing
6778       get_interface_addresses_ifaddrs() and
6779       get_interface_addresses_win32(), so that the tests fail gracefully
6780       instead of triggering an assertion. Fixes bug 15759; bugfix on
6781       0.2.6.3-alpha. Reported by Nicolas Derive.
6783   o Code simplification and refactoring:
6784     - Move the hacky fallback code out of get_interface_address6() into
6785       separate function and get it covered with unit-tests. Resolves
6786       ticket 14710.
6787     - Refactor hidden service client-side cache lookup to intelligently
6788       report its various failure cases, and disentangle failure cases
6789       involving a lack of introduction points. Closes ticket 14391.
6790     - Use our own Base64 encoder instead of OpenSSL's, to allow more
6791       control over the output. Part of ticket 15652.
6793   o Documentation:
6794     - Improve the descriptions of statistics-related torrc options in
6795       the manpage to describe rationale and possible uses cases. Fixes
6796       issue 15550.
6797     - Improve the layout and formatting of ./configure --help messages.
6798       Closes ticket 15024. Patch from "cypherpunks".
6799     - Standardize on the term "server descriptor" in the manual page.
6800       Previously, we had used "router descriptor", "server descriptor",
6801       and "relay descriptor" interchangeably. Part of ticket 14987.
6803   o Removed code:
6804     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
6805       and always use the internal Base64 decoder. The internal decoder
6806       has been part of tor since 0.2.0.10-alpha, and no one should
6807       be using the OpenSSL one. Part of ticket 15652.
6808     - Remove the 'tor_strclear()' function; use memwipe() instead.
6809       Closes ticket 14922.
6811   o Removed features:
6812     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
6813       fingerprinting we now recommend pluggable transports; for forward-
6814       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
6815     - Remove the undocumented "--digests" command-line option. It
6816       complicated our build process, caused subtle build issues on
6817       multiple platforms, and is now redundant since we started
6818       including git version identifiers. Closes ticket 14742.
6819     - Tor no longer contains checks for ancient directory cache versions
6820       that didn't know about microdescriptors.
6821     - Tor no longer contains workarounds for stat files generated by
6822       super-old versions of Tor that didn't choose guards sensibly.
6825 Changes in version 0.2.4.27 - 2015-04-06
6826   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
6827   could be used by an attacker to crash hidden services, or crash clients
6828   visiting hidden services. Hidden services should upgrade as soon as
6829   possible; clients should upgrade whenever packages become available.
6831   This release also backports a simple improvement to make hidden
6832   services a bit less vulnerable to denial-of-service attacks.
6834   o Major bugfixes (security, hidden service):
6835     - Fix an issue that would allow a malicious client to trigger an
6836       assertion failure and halt a hidden service. Fixes bug 15600;
6837       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
6838     - Fix a bug that could cause a client to crash with an assertion
6839       failure when parsing a malformed hidden service descriptor. Fixes
6840       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
6842   o Minor features (DoS-resistance, hidden service):
6843     - Introduction points no longer allow multiple INTRODUCE1 cells to
6844       arrive on the same circuit. This should make it more expensive for
6845       attackers to overwhelm hidden services with introductions.
6846       Resolves ticket 15515.
6849 Changes in version 0.2.5.12 - 2015-04-06
6850   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
6851   could be used by an attacker to crash hidden services, or crash clients
6852   visiting hidden services. Hidden services should upgrade as soon as
6853   possible; clients should upgrade whenever packages become available.
6855   This release also backports a simple improvement to make hidden
6856   services a bit less vulnerable to denial-of-service attacks.
6858   o Major bugfixes (security, hidden service):
6859     - Fix an issue that would allow a malicious client to trigger an
6860       assertion failure and halt a hidden service. Fixes bug 15600;
6861       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
6862     - Fix a bug that could cause a client to crash with an assertion
6863       failure when parsing a malformed hidden service descriptor. Fixes
6864       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
6866   o Minor features (DoS-resistance, hidden service):
6867     - Introduction points no longer allow multiple INTRODUCE1 cells to
6868       arrive on the same circuit. This should make it more expensive for
6869       attackers to overwhelm hidden services with introductions.
6870       Resolves ticket 15515.
6873 Changes in version 0.2.6.7 - 2015-04-06
6874   Tor 0.2.6.7 fixes two security issues that could be used by an
6875   attacker to crash hidden services, or crash clients visiting hidden
6876   services. Hidden services should upgrade as soon as possible; clients
6877   should upgrade whenever packages become available.
6879   This release also contains two simple improvements to make hidden
6880   services a bit less vulnerable to denial-of-service attacks.
6882   o Major bugfixes (security, hidden service):
6883     - Fix an issue that would allow a malicious client to trigger an
6884       assertion failure and halt a hidden service. Fixes bug 15600;
6885       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
6886     - Fix a bug that could cause a client to crash with an assertion
6887       failure when parsing a malformed hidden service descriptor. Fixes
6888       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
6890   o Minor features (DoS-resistance, hidden service):
6891     - Introduction points no longer allow multiple INTRODUCE1 cells to
6892       arrive on the same circuit. This should make it more expensive for
6893       attackers to overwhelm hidden services with introductions.
6894       Resolves ticket 15515.
6895     - Decrease the amount of reattempts that a hidden service performs
6896       when its rendezvous circuits fail. This reduces the computational
6897       cost for running a hidden service under heavy load. Resolves
6898       ticket 11447.
6901 Changes in version 0.2.6.6 - 2015-03-24
6902   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
6904   It adds numerous safety, security, correctness, and performance
6905   improvements. Client programs can be configured to use more kinds of
6906   sockets, AutomapHosts works better, the multithreading backend is
6907   improved, cell transmission is refactored, test coverage is much
6908   higher, more denial-of-service attacks are handled, guard selection is
6909   improved to handle long-term guards better, pluggable transports
6910   should work a bit better, and some annoying hidden service performance
6911   bugs should be addressed.
6913   o Minor bugfixes (portability):
6914     - Use the correct datatype in the SipHash-2-4 function to prevent
6915       compilers from assuming any sort of alignment. Fixes bug 15436;
6916       bugfix on 0.2.5.3-alpha.
6918 Changes in version 0.2.6.5-rc - 2015-03-18
6919   Tor 0.2.6.5-rc is the second and (hopefully) last release candidate in
6920   the 0.2.6. It fixes a small number of bugs found in 0.2.6.4-rc.
6922   o Major bugfixes (client):
6923     - Avoid crashing when making certain configuration option changes on
6924       clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
6925       by "anonym".
6927   o Major bugfixes (pluggable transports):
6928     - Initialize the extended OR Port authentication cookie before
6929       launching pluggable transports. This prevents a race condition
6930       that occured when server-side pluggable transports would cache the
6931       authentication cookie before it has been (re)generated. Fixes bug
6932       15240; bugfix on 0.2.5.1-alpha.
6934   o Major bugfixes (portability):
6935     - Do not crash on startup when running on Solaris. Fixes a bug
6936       related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
6937       by "ruebezahl".
6939   o Minor features (heartbeat):
6940     - On relays, report how many connections we negotiated using each
6941       version of the Tor link protocols. This information will let us
6942       know if removing support for very old versions of the Tor
6943       protocols is harming the network. Closes ticket 15212.
6945   o Code simplification and refactoring:
6946     - Refactor main loop to extract the 'loop' part. This makes it
6947       easier to run Tor under Shadow. Closes ticket 15176.
6950 Changes in version 0.2.5.11 - 2015-03-17
6951   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
6953   It backports several bugfixes from the 0.2.6 branch, including a
6954   couple of medium-level security fixes for relays and exit nodes.
6955   It also updates the list of directory authorities.
6957   o Directory authority changes:
6958     - Remove turtles as a directory authority.
6959     - Add longclaw as a new (v3) directory authority. This implements
6960       ticket 13296. This keeps the directory authority count at 9.
6961     - The directory authority Faravahar has a new IP address. This
6962       closes ticket 14487.
6964   o Major bugfixes (crash, OSX, security):
6965     - Fix a remote denial-of-service opportunity caused by a bug in
6966       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
6967       in OSX 10.9.
6969   o Major bugfixes (relay, stability, possible security):
6970     - Fix a bug that could lead to a relay crashing with an assertion
6971       failure if a buffer of exactly the wrong layout was passed to
6972       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
6973       0.2.0.10-alpha. Patch from 'cypherpunks'.
6974     - Do not assert if the 'data' pointer on a buffer is advanced to the
6975       very end of the buffer; log a BUG message instead. Only assert if
6976       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
6978   o Major bugfixes (exit node stability):
6979     - Fix an assertion failure that could occur under high DNS load.
6980       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
6981       diagnosed and fixed by "cypherpunks".
6983   o Major bugfixes (Linux seccomp2 sandbox):
6984     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
6985       crash during attempts to call wait4. Fixes bug 15088; bugfix on
6986       0.2.5.1-alpha. Patch from "sanic".
6988   o Minor features (controller):
6989     - New "GETINFO bw-event-cache" to get information about recent
6990       bandwidth events. Closes ticket 14128. Useful for controllers to
6991       get recent bandwidth history after the fix for ticket 13988.
6993   o Minor features (geoip):
6994     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
6995     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
6996       Country database.
6998   o Minor bugfixes (client, automapping):
6999     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
7000       no value follows the option. Fixes bug 14142; bugfix on
7001       0.2.4.7-alpha. Patch by "teor".
7002     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
7003       14195; bugfix on 0.1.0.1-rc.
7005   o Minor bugfixes (compilation):
7006     - Build without warnings with the stock OpenSSL srtp.h header, which
7007       has a duplicate declaration of SSL_get_selected_srtp_profile().
7008       Fixes bug 14220; this is OpenSSL's bug, not ours.
7010   o Minor bugfixes (directory authority):
7011     - Allow directory authorities to fetch more data from one another if
7012       they find themselves missing lots of votes. Previously, they had
7013       been bumping against the 10 MB queued data limit. Fixes bug 14261;
7014       bugfix on 0.1.2.5-alpha.
7015     - Enlarge the buffer to read bwauth generated files to avoid an
7016       issue when parsing the file in dirserv_read_measured_bandwidths().
7017       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
7019   o Minor bugfixes (statistics):
7020     - Increase period over which bandwidth observations are aggregated
7021       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
7023   o Minor bugfixes (preventative security, C safety):
7024     - When reading a hexadecimal, base-32, or base-64 encoded value from
7025       a string, always overwrite the whole output buffer. This prevents
7026       some bugs where we would look at (but fortunately, not reveal)
7027       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
7028       versions of Tor.
7031 Changes in version 0.2.4.26 - 2015-03-17
7032   Tor 0.2.4.26 includes an updated list of directory authorities.  It
7033   also backports a couple of stability and security bugfixes from 0.2.5
7034   and beyond.
7036   o Directory authority changes:
7037     - Remove turtles as a directory authority.
7038     - Add longclaw as a new (v3) directory authority. This implements
7039       ticket 13296. This keeps the directory authority count at 9.
7040     - The directory authority Faravahar has a new IP address. This
7041       closes ticket 14487.
7043   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
7044     - Fix an assertion failure that could occur under high DNS load.
7045       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
7046       diagnosed and fixed by "cypherpunks".
7048   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
7049     - Fix a bug that could lead to a relay crashing with an assertion
7050       failure if a buffer of exactly the wrong layout was passed to
7051       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
7052       0.2.0.10-alpha. Patch from 'cypherpunks'.
7053     - Do not assert if the 'data' pointer on a buffer is advanced to the
7054       very end of the buffer; log a BUG message instead. Only assert if
7055       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
7057   o Minor features (geoip):
7058     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
7059     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
7060       Country database.
7062 Changes in version 0.2.6.4-rc - 2015-03-09
7063   Tor 0.2.6.4-alpha fixes an issue in the directory code that an
7064   attacker might be able to use in order to crash certain Tor
7065   directories. It also resolves some minor issues left over from, or
7066   introduced in, Tor 0.2.6.3-alpha or earlier.
7068   o Major bugfixes (crash, OSX, security):
7069     - Fix a remote denial-of-service opportunity caused by a bug in
7070       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
7071       in OSX 10.9.
7073   o Major bugfixes (relay, stability, possible security):
7074     - Fix a bug that could lead to a relay crashing with an assertion
7075       failure if a buffer of exactly the wrong layout is passed to
7076       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
7077       0.2.0.10-alpha. Patch from "cypherpunks".
7078     - Do not assert if the 'data' pointer on a buffer is advanced to the
7079       very end of the buffer; log a BUG message instead. Only assert if
7080       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
7082   o Major bugfixes (FreeBSD IPFW transparent proxy):
7083     - Fix address detection with FreeBSD transparent proxies, when
7084       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
7085       on 0.2.5.4-alpha.
7087   o Major bugfixes (Linux seccomp2 sandbox):
7088     - Pass IPPROTO_TCP rather than 0 to socket(), so that the Linux
7089       seccomp2 sandbox doesn't fail. Fixes bug 14989; bugfix
7090       on 0.2.6.3-alpha.
7091     - Allow AF_UNIX hidden services to be used with the seccomp2
7092       sandbox. Fixes bug 15003; bugfix on 0.2.6.3-alpha.
7093     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
7094       crash during attempts to call wait4. Fixes bug 15088; bugfix on
7095       0.2.5.1-alpha. Patch from "sanic".
7097   o Minor features (controller):
7098     - Messages about problems in the bootstrap process now include
7099       information about the server we were trying to connect to when we
7100       noticed the problem. Closes ticket 15006.
7102   o Minor features (geoip):
7103     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
7104     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
7105       Country database.
7107   o Minor features (logs):
7108     - Quiet some log messages in the heartbeat and at startup. Closes
7109       ticket 14950.
7111   o Minor bugfixes (certificate handling):
7112     - If an authority operator accidentally makes a signing certificate
7113       with a future publication time, do not discard its real signing
7114       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
7115     - Remove any old authority certificates that have been superseded
7116       for at least two days. Previously, we would keep superseded
7117       certificates until they expired, if they were published close in
7118       time to the certificate that superseded them. Fixes bug 11454;
7119       bugfix on 0.2.1.8-alpha.
7121   o Minor bugfixes (compilation):
7122     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
7123       on 0.2.5.2-alpha.
7124     - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix
7125       on 0.2.6.2-alpha.
7127   o Minor bugfixes (testing):
7128     - Fix endianness issues in unit test for resolve_my_address() to
7129       have it pass on big endian systems. Fixes bug 14980; bugfix on
7130       Tor 0.2.6.3-alpha.
7131     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
7132       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
7133     - When running the new 'make test-stem' target, use the configured
7134       python binary. Fixes bug 15037; bugfix on 0.2.6.3-alpha. Patch
7135       from "cypherpunks".
7136     - When running the zero-length-keys tests, do not use the default
7137       torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
7138       by "reezer".
7140   o Directory authority IP change:
7141     - The directory authority Faravahar has a new IP address. This
7142       closes ticket 14487.
7144   o Removed code:
7145     - Remove some lingering dead code that once supported mempools.
7146       Mempools were disabled by default in 0.2.5, and removed entirely
7147       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
7148       by "cypherpunks".
7151 Changes in version 0.2.6.3-alpha - 2015-02-19
7152   Tor 0.2.6.3-alpha is the third (and hopefully final) alpha release in
7153   the 0.2.6.x series. It introduces support for more kinds of sockets,
7154   makes it harder to accidentally run an exit, improves our
7155   multithreading backend, incorporates several fixes for the
7156   AutomapHostsOnResolve option, and fixes numerous other bugs besides.
7158   If no major regressions or security holes are found in this version,
7159   the next version will be a release candidate.
7161   o Deprecated versions:
7162     - Tor relays older than 0.2.4.18-rc are no longer allowed to
7163       advertise themselves on the network. Closes ticket 13555.
7165   o Major features (security, unix domain sockets):
7166     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
7167       applications can reach Tor without having to create AF_INET or
7168       AF_INET6 sockets, meaning they can completely disable their
7169       ability to make non-Tor network connections. To create a socket of
7170       this type, use "SocksPort unix:/path/to/socket". Implements
7171       ticket 12585.
7172     - Support mapping hidden service virtual ports to AF_UNIX sockets.
7173       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
7174       Implements ticket 11485.
7176   o Major features (changed defaults):
7177     - Prevent relay operators from unintentionally running exits: When a
7178       relay is configured as an exit node, we now warn the user unless
7179       the "ExitRelay" option is set to 1. We warn even more loudly if
7180       the relay is configured with the default exit policy, since this
7181       can indicate accidental misconfiguration. Setting "ExitRelay 0"
7182       stops Tor from running as an exit relay. Closes ticket 10067.
7184   o Major features (directory system):
7185     - When downloading server- or microdescriptors from a directory
7186       server, we no longer launch multiple simultaneous requests to the
7187       same server. This reduces load on the directory servers,
7188       especially when directory guards are in use. Closes ticket 9969.
7189     - When downloading server- or microdescriptors over a tunneled
7190       connection, do not limit the length of our requests to what the
7191       Squid proxy is willing to handle. Part of ticket 9969.
7192     - Authorities can now vote on the correct digests and latest
7193       versions for different software packages. This allows packages
7194       that include Tor to use the Tor authority system as a way to get
7195       notified of updates and their correct digests. Implements proposal
7196       227. Closes ticket 10395.
7198   o Major features (guards):
7199     - Introduce the Guardfraction feature to improves load balancing on
7200       guard nodes. Specifically, it aims to reduce the traffic gap that
7201       guard nodes experience when they first get the Guard flag. This is
7202       a required step if we want to increase the guard lifetime to 9
7203       months or greater.  Closes ticket 9321.
7205   o Major features (performance):
7206     - Make the CPU worker implementation more efficient by avoiding the
7207       kernel and lengthening pipelines. The original implementation used
7208       sockets to transfer data from the main thread to the workers, and
7209       didn't allow any thread to be assigned more than a single piece of
7210       work at once. The new implementation avoids communications
7211       overhead by making requests in shared memory, avoiding kernel IO
7212       where possible, and keeping more requests in flight at once.
7213       Implements ticket 9682.
7215   o Major features (relay):
7216     - Raise the minimum acceptable configured bandwidth rate for bridges
7217       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
7218       20 KiB/sec.) Closes ticket 13822.
7220   o Major bugfixes (exit node stability):
7221     - Fix an assertion failure that could occur under high DNS load.
7222       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
7223       diagnosed and fixed by "cypherpunks".
7225   o Major bugfixes (mixed relay-client operation):
7226     - When running as a relay and client at the same time (not
7227       recommended), if we decide not to use a new guard because we want
7228       to retry older guards, only close the locally-originating circuits
7229       passing through that guard. Previously we would close all the
7230       circuits through that guard. Fixes bug 9819; bugfix on
7231       0.2.1.1-alpha. Reported by "skruffy".
7233   o Minor features (build):
7234     - New --disable-system-torrc compile-time option to prevent Tor from
7235       looking for the system-wide torrc or torrc-defaults files.
7236       Resolves ticket 13037.
7238   o Minor features (controller):
7239     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
7240       events so controllers can observe circuit isolation inputs. Closes
7241       ticket 8405.
7242     - ControlPort now supports the unix:/path/to/socket syntax as an
7243       alternative to the ControlSocket option, for consistency with
7244       SocksPort and HiddenServicePort. Closes ticket 14451.
7245     - New "GETINFO bw-event-cache" to get information about recent
7246       bandwidth events. Closes ticket 14128. Useful for controllers to
7247       get recent bandwidth history after the fix for ticket 13988.
7249   o Minor features (Denial of service resistance):
7250     - Count the total number of bytes used storing hidden service
7251       descriptors against the value of MaxMemInQueues. If we're low on
7252       memory, and more than 20% of our memory is used holding hidden
7253       service descriptors, free them until no more than 10% of our
7254       memory holds hidden service descriptors. Free the least recently
7255       fetched descriptors first. Resolves ticket 13806.
7256     - When we have recently been under memory pressure (over 3/4 of
7257       MaxMemInQueues is allocated), then allocate smaller zlib objects
7258       for small requests. Closes ticket 11791.
7260   o Minor features (geoip):
7261     - Update geoip and geoip6 files to the January 7 2015 Maxmind
7262       GeoLite2 Country database.
7264   o Minor features (guard nodes):
7265     - Reduce the time delay before saving guard status to disk from 10
7266       minutes to 30 seconds (or from one hour to 10 minutes if
7267       AvoidDiskWrites is set). Closes ticket 12485.
7269   o Minor features (hidden service):
7270     - Make Sybil attacks against hidden services harder by changing the
7271       minimum time required to get the HSDir flag from 25 hours up to 96
7272       hours. Addresses ticket 14149.
7273     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
7274       services to disable the anti-scanning feature introduced in
7275       0.2.6.2-alpha. With this option not set, a connection to an
7276       unlisted port closes the circuit. With this option set, only a
7277       RELAY_DONE cell is sent. Closes ticket 14084.
7279   o Minor features (interface):
7280     - Implement "-f -" command-line option to read torrc configuration
7281       from standard input, if you don't want to store the torrc file in
7282       the file system. Implements feature 13865.
7284   o Minor features (logging):
7285     - Add a count of unique clients to the bridge heartbeat message.
7286       Resolves ticket 6852.
7287     - Suppress "router info incompatible with extra info" message when
7288       reading extrainfo documents from cache. (This message got loud
7289       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
7290       ticket 13762.
7291     - Elevate hidden service authorized-client message from DEBUG to
7292       INFO. Closes ticket 14015.
7294   o Minor features (stability):
7295     - Add assertions in our hash-table iteration code to check for
7296       corrupted values that could cause infinite loops. Closes
7297       ticket 11737.
7299   o Minor features (systemd):
7300     - Various improvements and modernizations in systemd hardening
7301       support. Closes ticket 13805. Patch from Craig Andrews.
7303   o Minor features (testing networks):
7304     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
7305       and the default on a testing network to 2 minutes. Drop the
7306       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
7307       keep the default on a testing network at 30 seconds. This reduces
7308       HS bootstrap time to around 25 seconds. Also, change the default
7309       time in test-network.sh to match. Closes ticket 13401. Patch
7310       by "teor".
7311     - Create TestingDirAuthVoteHSDir to correspond to
7312       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
7313       HSDir flag for the listed relays regardless of uptime or ORPort
7314       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
7315       Partial implementation for ticket 14067. Patch by "teor".
7317   o Minor features (tor2web mode):
7318     - Introduce the config option Tor2webRendezvousPoints, which allows
7319       clients in Tor2webMode to select a specific Rendezvous Point to be
7320       used in HS circuits. This might allow better performance for
7321       Tor2Web nodes. Implements ticket 12844.
7323   o Minor bugfixes (client DNS):
7324     - Report the correct cached DNS expiration times on SOCKS port or in
7325       DNS replies. Previously, we would report everything as "never
7326       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
7327     - Avoid a small memory leak when we find a cached answer for a
7328       reverse DNS lookup in a client-side DNS cache. (Remember, client-
7329       side DNS caching is off by default, and is not recommended.) Fixes
7330       bug 14259; bugfix on 0.2.0.1-alpha.
7332   o Minor bugfixes (client, automapping):
7333     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
7334       no value follows the option. Fixes bug 14142; bugfix on
7335       0.2.4.7-alpha. Patch by "teor".
7336     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
7337       14195; bugfix on 0.1.0.1-rc.
7338     - Prevent changes to other options from removing the wildcard value
7339       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
7340       on 0.2.0.1-alpha.
7341     - Allow MapAddress and AutomapHostsOnResolve to work together when
7342       an address is mapped into another address type (like .onion) that
7343       must be automapped at resolve time. Fixes bug 7555; bugfix
7344       on 0.2.0.1-alpha.
7346   o Minor bugfixes (client, bridges):
7347     - When we are using bridges and we had a network connectivity
7348       problem, only retry connecting to our currently configured
7349       bridges, not all bridges we know about and remember using. Fixes
7350       bug 14216; bugfix on 0.2.2.17-alpha.
7352   o Minor bugfixes (client, IPv6):
7353     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
7354       flag is not set; and not because the NoIPv4Traffic flag was set.
7355       Previously we'd looked at the NoIPv4Traffic flag for both types of
7356       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
7358   o Minor bugfixes (compilation):
7359     - The address of an array in the middle of a structure will always
7360       be non-NULL. clang recognises this and complains. Disable the
7361       tautologous and redundant check to silence this warning. Fixes bug
7362       14001; bugfix on 0.2.1.2-alpha.
7363     - Avoid warnings when building with systemd 209 or later. Fixes bug
7364       14072; bugfix on 0.2.6.2-alpha. Patch from "h.venev".
7365     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
7366       Addresses ticket 14188.
7367     - Build without warnings with the stock OpenSSL srtp.h header, which
7368       has a duplicate declaration of SSL_get_selected_srtp_profile().
7369       Fixes bug 14220; this is OpenSSL's bug, not ours.
7370     - Do not compile any code related to Tor2Web mode when Tor2Web mode
7371       is not enabled at compile time. Previously, this code was included
7372       in a disabled state. See discussion on ticket 12844.
7373     - Remove the --disable-threads configure option again. It was
7374       accidentally partially reintroduced in 29ac883606d6d. Fixes bug
7375       14819; bugfix on 0.2.6.2-alpha.
7377   o Minor bugfixes (controller):
7378     - Report "down" in response to the "GETINFO entry-guards" command
7379       when relays are down with an unreachable_since value. Previously,
7380       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
7381     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
7382       14116; bugfix on 0.2.2.9-alpha.
7383     - Add a code for the END_CIRC_REASON_IP_NOW_REDUNDANT circuit close
7384       reason. Fixes bug 14207; bugfix on 0.2.6.2-alpha.
7386   o Minor bugfixes (directory authority):
7387     - Allow directory authorities to fetch more data from one another if
7388       they find themselves missing lots of votes. Previously, they had
7389       been bumping against the 10 MB queued data limit. Fixes bug 14261;
7390       bugfix on 0.1.2.5-alpha.
7391     - Do not attempt to download extrainfo documents which we will be
7392       unable to validate with a matching server descriptor. Fixes bug
7393       13762; bugfix on 0.2.0.1-alpha.
7394     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
7395       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
7396     - Enlarge the buffer to read bwauth generated files to avoid an
7397       issue when parsing the file in dirserv_read_measured_bandwidths().
7398       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
7400   o Minor bugfixes (file handling):
7401     - Stop failing when key files are zero-length. Instead, generate new
7402       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
7403       on all versions of Tor. Patch by "teor".
7404     - Stop generating a fresh .old RSA onion key file when the .old file
7405       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
7406     - Avoid overwriting .old key files with empty key files.
7407     - Skip loading zero-length extrainfo store, router store, stats,
7408       state, and key files.
7409     - Avoid crashing when trying to reload a torrc specified as a
7410       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
7411       on 0.2.3.11-alpha.
7413   o Minor bugfixes (hidden services):
7414     - Close the introduction circuit when we have no more usable intro
7415       points, instead of waiting for it to time out. This also ensures
7416       that no follow-up HS descriptor fetch is triggered when the
7417       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
7418     - When fetching a hidden service descriptor for a down service that
7419       was recently up, do not keep refetching until we try the same
7420       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
7421     - Successfully launch Tor with a nonexistent hidden service
7422       directory. Our fix for bug 13942 didn't catch this case. Fixes bug
7423       14106; bugfix on 0.2.6.2-alpha.
7425   o Minor bugfixes (logging):
7426     - Avoid crashing when there are more log domains than entries in
7427       domain_list. Bugfix on 0.2.3.1-alpha.
7428     - Add a string representation for LD_SCHED. Fixes bug 14740; bugfix
7429       on 0.2.6.1-alpha.
7430     - Don't log messages to stdout twice when starting up. Fixes bug
7431       13993; bugfix on 0.2.6.1-alpha.
7433   o Minor bugfixes (parsing):
7434     - Stop accepting milliseconds (or other junk) at the end of
7435       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
7436     - Support two-number and three-number version numbers correctly, in
7437       case we change the Tor versioning system in the future. Fixes bug
7438       13661; bugfix on 0.0.8pre1.
7440   o Minor bugfixes (path counting):
7441     - When deciding whether the consensus lists any exit nodes, count
7442       the number listed in the consensus, not the number we have
7443       descriptors for. Fixes part of bug 14918; bugfix on 0.2.6.2-alpha.
7444     - When deciding whether we have any exit nodes, only examine
7445       ExitNodes when the ExitNodes option is actually set. Fixes part of
7446       bug 14918; bugfix on 0.2.6.2-alpha.
7447     - Get rid of redundant and possibly scary warnings that we are
7448       missing directory information while we bootstrap. Fixes part of
7449       bug 14918; bugfix on 0.2.6.2-alpha.
7451   o Minor bugfixes (portability):
7452     - Fix the ioctl()-based network interface lookup code so that it
7453       will work on systems that have variable-length struct ifreq, for
7454       example Mac OS X.
7455     - Fix scheduler compilation on targets where char is unsigned. Fixes
7456       bug 14764; bugfix on 0.2.6.2-alpha. Reported by Christian Kujau.
7458   o Minor bugfixes (sandbox):
7459     - Allow glibc fatal errors to be sent to stderr before Tor exits.
7460       Previously, glibc would try to write them to /dev/tty, and the
7461       sandbox would trap the call and make Tor exit prematurely. Fixes
7462       bug 14759; bugfix on 0.2.5.1-alpha.
7464   o Minor bugfixes (shutdown):
7465     - When shutting down, always call event_del() on lingering read or
7466       write events before freeing them. Otherwise, we risk double-frees
7467       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
7468       on 0.1.0.2-rc.
7470   o Minor bugfixes (small memory leaks):
7471     - Avoid leaking memory when using IPv6 virtual address mappings.
7472       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
7473       der Woerdt.
7475   o Minor bugfixes (statistics):
7476     - Increase period over which bandwidth observations are aggregated
7477       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
7479   o Minor bugfixes (systemd support):
7480     - Fix detection and operation of systemd watchdog. Fixes part of bug
7481       14141; bugfix on 0.2.6.2-alpha. Patch from Tomasz Torcz.
7482     - Run correctly under systemd with the RunAsDaemon option set. Fixes
7483       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
7484     - Inform the systemd supervisor about more changes in the Tor
7485       process status. Implements part of ticket 14141. Patch from
7486       Tomasz Torcz.
7487     - Cause the "--disable-systemd" option to actually disable systemd
7488       support. Fixes bug 14350; bugfix on 0.2.6.2-alpha. Patch
7489       from "blueness".
7491   o Minor bugfixes (TLS):
7492     - Check more thoroughly throughout the TLS code for possible
7493       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
7495   o Minor bugfixes (transparent proxy):
7496     - Use getsockname, not getsockopt, to retrieve the address for a
7497       TPROXY-redirected connection. Fixes bug 13796; bugfix
7498       on 0.2.5.2-alpha.
7500   o Code simplification and refactoring:
7501     - Move fields related to isolating and configuring client ports into
7502       a shared structure. Previously, they were duplicated across
7503       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
7504       to copy them correctly had been the cause of at least one bug in
7505       the past. Closes ticket 8546.
7506     - Refactor the get_interface_addresses_raw() doom-function into
7507       multiple smaller and simpler subfunctions. Cover the resulting
7508       subfunctions with unit-tests. Fixes a significant portion of
7509       issue 12376.
7510     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
7511       only for version <= 0.2.2.24 which is now deprecated. Closes
7512       ticket 14202.
7513     - Remove a test for a long-defunct broken version-one
7514       directory server.
7516   o Documentation:
7517     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
7518       for writing the OpenBSD-specific tips. Resolves ticket 13702.
7519     - Make the tor-resolve documentation match its help string and its
7520       options. Resolves part of ticket 14325.
7521     - Log a more useful error message from tor-resolve when failing to
7522       look up a hidden service address. Resolves part of ticket 14325.
7524   o Downgraded warnings:
7525     - Don't warn when we've attempted to contact a relay using the wrong
7526       ntor onion key. Closes ticket 9635.
7528   o Removed features:
7529     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
7530       longer silently accepted as an alias for "ExitNodes".
7531     - The --enable-mempool and --enable-buf-freelists options, which
7532       were originally created to work around bad malloc implementations,
7533       no longer exist. They were off-by-default in 0.2.5. Closes
7534       ticket 14848.
7536   o Testing:
7537     - Make the checkdir/perms test complete successfully even if the
7538       global umask is not 022. Fixes bug 14215; bugfix on 0.2.6.2-alpha.
7539     - Test that tor does not fail when key files are zero-length. Check
7540       that tor generates new keys, and overwrites the empty key files.
7541     - Test that tor generates new keys when keys are missing
7542       (existing behavior).
7543     - Test that tor does not overwrite key files that already contain
7544       data (existing behavior). Tests bug 13111. Patch by "teor".
7545     - New "make test-stem" target to run stem integration tests.
7546       Requires that the "STEM_SOURCE_DIR" environment variable be set.
7547       Closes ticket 14107.
7548     - Make the test_cmdline_args.py script work correctly on Windows.
7549       Patch from Gisle Vanem.
7550     - Move the slower unit tests into a new "./src/test/test-slow"
7551       binary that can be run independently of the other tests. Closes
7552       ticket 13243.
7553     - Avoid undefined behavior when sampling huge values from the
7554       Laplace distribution. This made unittests fail on Raspberry Pi.
7555       Bug found by Device. Fixes bug 14090; bugfix on 0.2.6.2-alpha.
7558 Changes in version 0.2.6.2-alpha - 2014-12-31
7559   Tor 0.2.6.2-alpha is the second alpha release in the 0.2.6.x series.
7560   It introduces a major new backend for deciding when to send cells on
7561   channels, which should lead down the road to big performance
7562   increases. It contains security and statistics features for better
7563   work on hidden services, and numerous bugfixes.
7565   This release contains many new unit tests, along with major
7566   performance improvements for running testing networks using Chutney.
7567   Thanks to a series of patches contributed by "teor", testing networks
7568   should now bootstrap in seconds, rather than minutes.
7570   o Major features (relay, infrastructure):
7571     - Complete revision of the code that relays use to decide which cell
7572       to send next. Formerly, we selected the best circuit to write on
7573       each channel, but we didn't select among channels in any
7574       sophisticated way. Now, we choose the best circuits globally from
7575       among those whose channels are ready to deliver traffic.
7577       This patch implements a new inter-cmux comparison API, a global
7578       high/low watermark mechanism and a global scheduler loop for
7579       transmission prioritization across all channels as well as among
7580       circuits on one channel. This schedule is currently tuned to
7581       (tolerantly) avoid making changes in network performance, but it
7582       should form the basis for major circuit performance increases in
7583       the future. Code by Andrea; tuning by Rob Jansen; implements
7584       ticket 9262.
7586   o Major features (hidden services):
7587     - Make HS port scanning more difficult by immediately closing the
7588       circuit when a user attempts to connect to a nonexistent port.
7589       Closes ticket 13667.
7590     - Add a HiddenServiceStatistics option that allows Tor relays to
7591       gather and publish statistics about the overall size and volume of
7592       hidden service usage. Specifically, when this option is turned on,
7593       an HSDir will publish an approximate number of hidden services
7594       that have published descriptors to it the past 24 hours. Also, if
7595       a relay has acted as a hidden service rendezvous point, it will
7596       publish the approximate amount of rendezvous cells it has relayed
7597       the past 24 hours. The statistics themselves are obfuscated so
7598       that the exact values cannot be derived. For more details see
7599       proposal 238, "Better hidden service stats from Tor relays". This
7600       feature is currently disabled by default. Implements feature 13192.
7602   o Major bugfixes (client, automap):
7603     - Repair automapping with IPv6 addresses. This automapping should
7604       have worked previously, but one piece of debugging code that we
7605       inserted to detect a regression actually caused the regression to
7606       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
7607       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
7608       Izquierdo Riera.
7610   o Major bugfixes (hidden services):
7611     - When closing an introduction circuit that was opened in parallel
7612       with others, don't mark the introduction point as unreachable.
7613       Previously, the first successful connection to an introduction
7614       point would make the other introduction points get marked as
7615       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
7617   o Directory authority changes:
7618     - Remove turtles as a directory authority.
7619     - Add longclaw as a new (v3) directory authority. This implements
7620       ticket 13296. This keeps the directory authority count at 9.
7622   o Major removed features:
7623     - Tor clients no longer support connecting to hidden services
7624       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
7625       option has been removed. (There shouldn't be any hidden services
7626       running these versions on the network.) Closes ticket 7803.
7628   o Minor features (client):
7629     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
7630       is enabled, reject requests with IP addresses as hostnames.
7631       Resolves ticket 13315.
7633   o Minor features (controller):
7634     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
7635       write an unscheduled heartbeat message to the log. Implements
7636       feature 9503.
7638   o Minor features (geoip):
7639     - Update geoip and geoip6 to the November 15 2014 Maxmind GeoLite2
7640       Country database.
7642   o Minor features (hidden services):
7643     - When re-enabling the network, don't try to build introduction
7644       circuits until we have successfully built a circuit. This makes
7645       hidden services come up faster when the network is re-enabled.
7646       Patch from "akwizgran". Closes ticket 13447.
7647     - When we fail to retrieve a hidden service descriptor, send the
7648       controller an "HS_DESC FAILED" controller event. Implements
7649       feature 13212.
7650     - New HiddenServiceDirGroupReadable option to cause hidden service
7651       directories and hostname files to be created group-readable. Patch
7652       from "anon", David Stainton, and "meejah". Closes ticket 11291.
7654   o Minor features (systemd):
7655     - Where supported, when running with systemd, report successful
7656       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
7657     - When running with systemd, support systemd watchdog messages. Part
7658       of ticket 11016. Patch by Michael Scherer.
7660   o Minor features (transparent proxy):
7661     - Update the transparent proxy option checks to allow for both ipfw
7662       and pf on OS X. Closes ticket 14002.
7663     - Use the correct option when using IPv6 with transparent proxy
7664       support on Linux. Resolves 13808. Patch by Francisco Blas
7665       Izquierdo Riera.
7667   o Minor bugfixes (preventative security, C safety):
7668     - When reading a hexadecimal, base-32, or base-64 encoded value from
7669       a string, always overwrite the whole output buffer. This prevents
7670       some bugs where we would look at (but fortunately, not reveal)
7671       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
7672       versions of Tor.
7673     - Clear all memory targetted by tor_addr_{to,from}_sockaddr(), not
7674       just the part that's used. This makes it harder for data leak bugs
7675       to occur in the event of other programming failures. Resolves
7676       ticket 14041.
7678   o Minor bugfixes (client, microdescriptors):
7679     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
7680       computing which microdescriptors to download. This keeps us from
7681       erroneous download behavior if two microdescriptor digests ever
7682       have the same first 160 bits. Fixes part of bug 13399; bugfix
7683       on 0.2.3.1-alpha.
7684     - Reset a router's status if its microdescriptor digest changes,
7685       even if the first 160 bits remain the same. Fixes part of bug
7686       13399; bugfix on 0.2.3.1-alpha.
7688   o Minor bugfixes (compilation):
7689     - Silence clang warnings under --enable-expensive-hardening,
7690       including implicit truncation of 64 bit values to 32 bit, const
7691       char assignment to self, tautological compare, and additional
7692       parentheses around equality tests. Fixes bug 13577; bugfix
7693       on 0.2.5.4-alpha.
7694     - Fix a clang warning about checking whether an address in the
7695       middle of a structure is NULL. Fixes bug 14001; bugfix
7696       on 0.2.1.2-alpha.
7698   o Minor bugfixes (hidden services):
7699     - Correctly send a controller event when we find that a rendezvous
7700       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
7701     - Pre-check directory permissions for new hidden-services to avoid
7702       at least one case of "Bug: Acting on config options left us in a
7703       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
7704     - When adding a new hidden service (for example, via SETCONF), Tor
7705       no longer congratulates the user for running a relay. Fixes bug
7706       13941; bugfix on 0.2.6.1-alpha.
7707     - When fetching hidden service descriptors, we now check not only
7708       for whether we got the hidden service we had in mind, but also
7709       whether we got the particular descriptors we wanted. This prevents
7710       a class of inefficient but annoying DoS attacks by hidden service
7711       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
7712       by "special".
7714   o Minor bugfixes (Linux seccomp2 sandbox):
7715     - Make transparent proxy support work along with the seccomp2
7716       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
7717       by Francisco Blas Izquierdo Riera.
7718     - Fix a memory leak in tor-resolve when running with the sandbox
7719       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
7721   o Minor bugfixes (logging):
7722     - Downgrade warnings about RSA signature failures to info log level.
7723       Emit a warning when an extra info document is found incompatible
7724       with a corresponding router descriptor. Fixes bug 9812; bugfix
7725       on 0.0.6rc3.
7726     - Make connection_ap_handshake_attach_circuit() log the circuit ID
7727       correctly. Fixes bug 13701; bugfix on 0.0.6.
7729   o Minor bugfixes (misc):
7730     - Stop allowing invalid address patterns like "*/24" that contain
7731       both a wildcard address and a bit prefix length. This affects all
7732       our address-range parsing code. Fixes bug 7484; bugfix
7733       on 0.0.2pre14.
7735   o Minor bugfixes (testing networks, fast startup):
7736     - Allow Tor to build circuits using a consensus with no exits. If
7737       the consensus has no exits (typical of a bootstrapping test
7738       network), allow Tor to build circuits once enough descriptors have
7739       been downloaded. This assists in bootstrapping a testing Tor
7740       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
7741       by "teor".
7742     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
7743       header to directory servers. This allows us to obtain consensuses
7744       promptly when the consensus interval is very short. This assists
7745       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
7746       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
7747     - Stop assuming that private addresses are local when checking
7748       reachability in a TestingTorNetwork. Instead, when testing, assume
7749       all OR connections are remote. (This is necessary due to many test
7750       scenarios running all relays on localhost.) This assists in
7751       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
7752       0.1.0.1-rc. Patch by "teor".
7753     - Avoid building exit circuits from a consensus with no exits. Now
7754       thanks to our fix for 13718, we accept a no-exit network as not
7755       wholly lost, but we need to remember not to try to build exit
7756       circuits on it. Closes ticket 13814; patch by "teor".
7757     - Stop requiring exits to have non-zero bandwithcapacity in a
7758       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
7759       ignore exit bandwidthcapacity. This assists in bootstrapping a
7760       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
7761       on 0.2.0.3-alpha. Patch by "teor".
7762     - Add "internal" to some bootstrap statuses when no exits are
7763       available. If the consensus does not contain Exits, Tor will only
7764       build internal circuits. In this case, relevant statuses will
7765       contain the word "internal" as indicated in the Tor control-
7766        spec.txt. When bootstrap completes, Tor will be ready to build
7767       internal circuits. If a future consensus contains Exits, exit
7768       circuits may become available. Fixes part of bug 13718; bugfix on
7769       0.2.4.10-alpha. Patch by "teor".
7770     - Decrease minimum consensus interval to 10 seconds when
7771       TestingTorNetwork is set, or 5 seconds for the first consensus.
7772       Fix assumptions throughout the code that assume larger intervals.
7773       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
7774       by "teor".
7775     - Avoid excluding guards from path building in minimal test
7776       networks, when we're in a test network and excluding guards would
7777       exclude all relays. This typically occurs in incredibly small tor
7778       networks, and those using "TestingAuthVoteGuard *". Fixes part of
7779       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
7781   o Code simplification and refactoring:
7782     - Stop using can_complete_circuits as a global variable; access it
7783       with a function instead.
7784     - Avoid using operators directly as macro arguments: this lets us
7785       apply coccinelle transformations to our codebase more directly.
7786       Closes ticket 13172.
7787     - Combine the functions used to parse ClientTransportPlugin and
7788       ServerTransportPlugin into a single function. Closes ticket 6456.
7789     - Add inline functions and convenience macros for inspecting channel
7790       state. Refactor the code to use convenience macros instead of
7791       checking channel state directly. Fixes issue 7356.
7792     - Document all members of was_router_added_t and rename
7793       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
7794       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
7795     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
7796       constant instead of hardcoded value. Fixes issue 13840.
7797     - Refactor our generic strmap and digestmap types into a single
7798       implementation, so that we can add a new digest256map
7799       type trivially.
7801   o Documentation:
7802     - Document the bridge-authority-only 'networkstatus-bridges' file.
7803       Closes ticket 13713; patch from "tom".
7804     - Fix typo in PredictedPortsRelevanceTime option description in
7805       manpage. Resolves issue 13707.
7806     - Stop suggesting that users specify relays by nickname: it isn't a
7807       good idea. Also, properly cross-reference how to specify relays in
7808       all parts of manual documenting options that take a list of
7809       relays. Closes ticket 13381.
7810     - Clarify the HiddenServiceDir option description in manpage to make
7811       it clear that relative paths are taken with respect to the current
7812       working directory. Also clarify that this behavior is not
7813       guaranteed to remain indefinitely. Fixes issue 13913.
7815   o Testing:
7816     - New tests for many parts of channel, relay, and circuitmux
7817       functionality. Code by Andrea; part of 9262.
7818     - New tests for parse_transport_line(). Part of ticket 6456.
7819     - In the unit tests, use chgrp() to change the group of the unit
7820       test temporary directory to the current user, so that the sticky
7821       bit doesn't interfere with tests that check directory groups.
7822       Closes 13678.
7823     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
7824       by 'rl1987'.
7827 Changes in version 0.2.6.1-alpha - 2014-10-30
7828   Tor 0.2.6.1-alpha is the first release in the Tor 0.2.6.x series. It
7829   includes numerous code cleanups and new tests, and fixes a large
7830   number of annoying bugs. Out-of-memory conditions are handled better
7831   than in 0.2.5, pluggable transports have improved proxy support, and
7832   clients now use optimistic data for contacting hidden services. Also,
7833   we are now more robust to changes in what we consider a parseable
7834   directory object, so that tightening restrictions does not have a risk
7835   of introducing infinite download loops.
7837   This is the first alpha release in a new series, so expect there to be
7838   bugs. Users who would rather test out a more stable branch should stay
7839   with 0.2.5.x for now.
7841   o New compiler and system requirements:
7842     - Tor 0.2.6.x requires that your compiler support more of the C99
7843       language standard than before. The 'configure' script now detects
7844       whether your compiler supports C99 mid-block declarations and
7845       designated initializers. If it does not, Tor will not compile.
7847       We may revisit this requirement if it turns out that a significant
7848       number of people need to build Tor with compilers that don't
7849       bother implementing a 15-year-old standard. Closes ticket 13233.
7850     - Tor no longer supports systems without threading support. When we
7851       began working on Tor, there were several systems that didn't have
7852       threads, or where the thread support wasn't able to run the
7853       threads of a single process on multiple CPUs. That no longer
7854       holds: every system where Tor needs to run well now has threading
7855       support. Resolves ticket 12439.
7857   o Removed platform support:
7858     - We no longer include special code to build on Windows CE; as far
7859       as we know, nobody has used Tor on Windows CE in a very long time.
7860       Closes ticket 11446.
7862   o Major features (bridges):
7863     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
7864       transports if they are configured via the "TOR_PT_PROXY"
7865       environment variable. Implements proposal 232. Resolves
7866       ticket 8402.
7868   o Major features (client performance, hidden services):
7869     - Allow clients to use optimistic data when connecting to a hidden
7870       service, which should remove a round-trip from hidden service
7871       initialization. See proposal 181 for details. Implements
7872       ticket 13211.
7874   o Major features (directory system):
7875     - Upon receiving an unparseable directory object, if its digest
7876       matches what we expected, then don't try to download it again.
7877       Previously, when we got a descriptor we didn't like, we would keep
7878       trying to download it over and over. Closes ticket 11243.
7880   o Major features (sample torrc):
7881     - Add a new, infrequently-changed "torrc.minimal". This file is
7882       similar to torrc.sample, but it will change as infrequently as
7883       possible, for the benefit of users whose systems prompt them for
7884       intervention whenever a default configuration file is changed.
7885       Making this change allows us to update torrc.sample to be a more
7886       generally useful "sample torrc".
7888   o Major bugfixes (directory authorities):
7889     - Do not assign the HSDir flag to relays if they are not Valid, or
7890       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
7892   o Major bugfixes (directory bandwidth performance):
7893     - Don't flush the zlib buffer aggressively when compressing
7894       directory information for clients. This should save about 7% of
7895       the bandwidth currently used for compressed descriptors and
7896       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
7898   o Minor features (security, memory wiping):
7899     - Ensure we securely wipe keys from memory after
7900       crypto_digest_get_digest and init_curve25519_keypair_from_file
7901       have finished using them. Resolves ticket 13477.
7903   o Minor features (security, out-of-memory handling):
7904     - When handling an out-of-memory condition, allocate less memory for
7905       temporary data structures. Fixes issue 10115.
7906     - When handling an out-of-memory condition, consider more types of
7907       buffers, including those on directory connections, and zlib
7908       buffers. Resolves ticket 11792.
7910   o Minor features:
7911     - When identity keypair is generated for first time, log a
7912       congratulatory message that links to the new relay lifecycle
7913       document. Implements feature 10427.
7915   o Minor features (client):
7916     - Clients are now willing to send optimistic data (before they
7917       receive a 'connected' cell) to relays of any version. (Relays
7918       without support for optimistic data are no longer supported on the
7919       Tor network.) Resolves ticket 13153.
7921   o Minor features (directory authorities):
7922     - Don't list relays with a bandwidth estimate of 0 in the consensus.
7923       Implements a feature proposed during discussion of bug 13000.
7924     - In tor-gencert, report an error if the user provides the same
7925       argument more than once.
7926     - If a directory authority can't find a best consensus method in the
7927       votes that it holds, it now falls back to its favorite consensus
7928       method. Previously, it fell back to method 1. Neither of these is
7929       likely to get enough signatures, but "fall back to favorite"
7930       doesn't require us to maintain support an obsolete consensus
7931       method. Implements part of proposal 215.
7933   o Minor features (logging):
7934     - On Unix-like systems, you can now use named pipes as the target of
7935       the Log option, and other options that try to append to files.
7936       Closes ticket 12061. Patch from "carlo von lynX".
7937     - When opening a log file at startup, send it every log message that
7938       we generated between startup and opening it. Previously, log
7939       messages that were generated before opening the log file were only
7940       logged to stdout. Closes ticket 6938.
7941     - Add a TruncateLogFile option to overwrite logs instead of
7942       appending to them. Closes ticket 5583.
7944   o Minor features (portability, Solaris):
7945     - Threads are no longer disabled by default on Solaris; we believe
7946       that the versions of Solaris with broken threading support are all
7947       obsolete by now. Resolves ticket 9495.
7949   o Minor features (relay):
7950     - Re-check our address after we detect a changed IP address from
7951       getsockname(). This ensures that the controller command "GETINFO
7952       address" will report the correct value. Resolves ticket 11582.
7953       Patch from "ra".
7954     - A new AccountingRule option lets Relays set whether they'd like
7955       AccountingMax to be applied separately to inbound and outbound
7956       traffic, or applied to the sum of inbound and outbound traffic.
7957       Resolves ticket 961. Patch by "chobe".
7959   o Minor features (testing networks):
7960     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
7961       the "Exit" flag regardless of their uptime, bandwidth, or exit
7962       policy. TestingTorNetwork must be set for this option to have any
7963       effect. Previously, authorities would take up to 35 minutes to
7964       give nodes the Exit flag in a test network. Partially implements
7965       ticket 13161.
7967   o Minor features (validation):
7968     - Check all date/time values passed to tor_timegm and
7969       parse_rfc1123_time for validity, taking leap years into account.
7970       Improves HTTP header validation. Implemented with bug 13476.
7971     - In correct_tm(), limit the range of values returned by system
7972       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
7973       This means we don't have to deal with negative or too large dates,
7974       even if a clock is wrong. Otherwise we might fail to read a file
7975       written by us which includes such a date. Fixes bug 13476.
7977   o Minor bugfixes (bridge clients):
7978     - When configured to use a bridge without an identity digest (not
7979       recommended), avoid launching an extra channel to it when
7980       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
7982   o Minor bugfixes (bridges):
7983     - When DisableNetwork is set, do not launch pluggable transport
7984       plugins, and if any are running, terminate them. Fixes bug 13213;
7985       bugfix on 0.2.3.6-alpha.
7987   o Minor bugfixes (C correctness):
7988     - Fix several instances of possible integer overflow/underflow/NaN.
7989       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
7990       from "teor".
7991     - In circuit_build_times_calculate_timeout() in circuitstats.c,
7992       avoid dividing by zero in the pareto calculations. This traps
7993       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
7994       on 0.2.2.2-alpha.
7995     - Fix an integer overflow in format_time_interval(). Fixes bug
7996       13393; bugfix on 0.2.0.10-alpha.
7997     - Set the correct day of year value when the system's localtime(_r)
7998       or gmtime(_r) functions fail to set struct tm. Not externally
7999       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
8000     - Avoid unlikely signed integer overflow in tor_timegm on systems
8001       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
8003   o Minor bugfixes (client):
8004     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
8005       BadExit flag are not considered worthy candidates. Fixes bug
8006       13066; bugfix on 0.1.2.3-alpha.
8007     - Use the consensus schedule for downloading consensuses, and not
8008       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
8009     - Handle unsupported or malformed SOCKS5 requests properly by
8010       responding with the appropriate error message before closing the
8011       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
8013   o Minor bugfixes (client, torrc):
8014     - Stop modifying the value of our DirReqStatistics torrc option just
8015       because we're not a bridge or relay. This bug was causing Tor
8016       Browser users to write "DirReqStatistics 0" in their torrc files
8017       as if they had chosen to change the config. Fixes bug 4244; bugfix
8018       on 0.2.3.1-alpha.
8019     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
8020       that our options have changed every time we SIGHUP. Fixes bug
8021       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
8023   o Minor bugfixes (controller):
8024     - Return an error when the second or later arguments of the
8025       "setevents" controller command are invalid events. Previously we
8026       would return success while silently skipping invalid events. Fixes
8027       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
8029   o Minor bugfixes (directory system):
8030     - Always believe that v3 directory authorities serve extra-info
8031       documents, whether they advertise "caches-extra-info" or not.
8032       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
8033     - When running as a v3 directory authority, advertise that you serve
8034       extra-info documents so that clients who want them can find them
8035       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
8036     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
8037       Previously, directories offering BRIDGE_DIRINFO and some other
8038       flag (i.e. microdescriptors or extrainfo) would be ignored when
8039       looking for bridges. Partially fixes bug 13163; bugfix
8040       on 0.2.0.7-alpha.
8042   o Minor bugfixes (networking):
8043     - Check for orconns and use connection_or_close_for_error() rather
8044       than connection_mark_for_close() directly in the getsockopt()
8045       failure case of connection_handle_write_impl(). Fixes bug 11302;
8046       bugfix on 0.2.4.4-alpha.
8048   o Minor bugfixes (relay):
8049     - When generating our family list, remove spaces from around the
8050       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
8051     - If our previous bandwidth estimate was 0 bytes, allow publishing a
8052       new relay descriptor immediately. Fixes bug 13000; bugfix
8053       on 0.1.1.6-alpha.
8055   o Minor bugfixes (testing networks):
8056     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
8057       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
8058     - Stop using the default authorities in networks which provide both
8059       AlternateDirAuthority and AlternateBridgeAuthority. Partially
8060       fixes bug 13163; bugfix on 0.2.0.13-alpha.
8062   o Minor bugfixes (testing):
8063     - Stop spawn test failures due to a race condition between the
8064       SIGCHLD handler updating the process status, and the test reading
8065       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
8067   o Minor bugfixes (testing, Windows):
8068     - Avoid passing an extra backslash when creating a temporary
8069       directory for running the unit tests on Windows. Fixes bug 12392;
8070       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
8072   o Minor bugfixes (windows):
8073     - Remove code to special-case handling of NTE_BAD_KEYSET when
8074       acquiring windows CryptoAPI context. This error can't actually
8075       occur for the parameters we're providing. Fixes bug 10816; bugfix
8076       on 0.0.2pre26.
8078   o Minor bugfixes (zlib):
8079     - Avoid truncating a zlib stream when trying to finalize it with an
8080       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
8082   o Build fixes:
8083     - Allow our configure script to build correctly with autoconf 2.62
8084       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
8085     - Improve the error message from ./configure to make it clear that
8086       when asciidoc has not been found, the user will have to either add
8087       --disable-asciidoc argument or install asciidoc. Resolves
8088       ticket 13228.
8090   o Code simplification and refactoring:
8091     - Change the entry_is_live() function to take named bitfield
8092       elements instead of an unnamed list of booleans. Closes
8093       ticket 12202.
8094     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
8095       Resolves ticket 12205.
8096     - Use calloc and reallocarray functions instead of multiply-
8097       then-malloc. This makes it less likely for us to fall victim to an
8098       integer overflow attack when allocating. Resolves ticket 12855.
8099     - Use the standard macro name SIZE_MAX, instead of our
8100       own SIZE_T_MAX.
8101     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
8102       functions which take them as arguments. Replace 0 with NO_DIRINFO
8103       in a function call for clarity. Seeks to prevent future issues
8104       like 13163.
8105     - Avoid 4 null pointer errors under clang static analysis by using
8106       tor_assert() to prove that the pointers aren't null. Fixes
8107       bug 13284.
8108     - Rework the API of policies_parse_exit_policy() to use a bitmask to
8109       represent parsing options, instead of a confusing mess of
8110       booleans. Resolves ticket 8197.
8111     - Introduce a helper function to parse ExitPolicy in
8112       or_options_t structure.
8114   o Documentation:
8115     - Add a doc/TUNING document with tips for handling large numbers of
8116       TCP connections when running busy Tor relay. Update the warning
8117       message to point to this file when running out of sockets
8118       operating system is allowing to use simultaneously. Resolves
8119       ticket 9708.
8121   o Removed features:
8122     - We no longer remind the user about configuration options that have
8123       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
8124     - Remove our old, non-weighted bandwidth-based node selection code.
8125       Previously, we used it as a fallback when we couldn't perform
8126       weighted bandwidth-based node selection. But that would only
8127       happen in the cases where we had no consensus, or when we had a
8128       consensus generated by buggy or ancient directory authorities. In
8129       either case, it's better to use the more modern, better maintained
8130       algorithm, with reasonable defaults for the weights. Closes
8131       ticket 13126.
8132     - Remove the --disable-curve25519 configure option. Relays and
8133       clients now are required to support curve25519 and the
8134       ntor handshake.
8135     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
8136       used to be deprecated synonyms for "StrictNodes", are now marked
8137       obsolete. Resolves ticket 12226.
8138     - Clients don't understand the BadDirectory flag in the consensus
8139       anymore, and ignore it.
8141   o Testing:
8142     - Refactor the function that chooses guard nodes so that it can more
8143       easily be tested; write some tests for it.
8144     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
8145       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
8146     - Create unit tests for format_time_interval(). With bug 13393.
8147     - Add unit tests for tor_timegm signed overflow, tor_timegm and
8148       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
8149       tests (visible) fixes in bug 13476.
8150     - Add a "coverage-html" make target to generate HTML-visualized
8151       coverage results when building with --enable-coverage. (Requires
8152       lcov.) Patch from Kevin Murray.
8153     - Enable the backtrace handler (where supported) when running the
8154       unit tests.
8155     - Revise all unit tests that used the legacy test_* macros to
8156       instead use the recommended tt_* macros. This patch was generated
8157       with coccinelle, to avoid manual errors. Closes ticket 13119.
8159   o Distribution (systemd):
8160     - systemd unit file: only allow tor to write to /var/lib/tor and
8161       /var/log/tor. The rest of the filesystem is accessible for reading
8162       only. Patch by intrigeri; resolves ticket 12751.
8163     - systemd unit file: ensure that the process and all its children
8164       can never gain new privileges. Patch by intrigeri; resolves
8165       ticket 12939.
8166     - systemd unit file: set up /var/run/tor as writable for the Tor
8167       service. Patch by intrigeri; resolves ticket 13196.
8169   o Removed features (directory authorities):
8170     - Remove code that prevented authorities from listing Tor relays
8171       affected by CVE-2011-2769 as guards. These relays are already
8172       rejected altogether due to the minimum version requirement of
8173       0.2.3.16-alpha. Closes ticket 13152.
8174     - The "AuthDirRejectUnlisted" option no longer has any effect, as
8175       the fingerprints file (approved-routers) has been deprecated.
8176     - Directory authorities do not support being Naming dirauths anymore.
8177       The "NamingAuthoritativeDir" config option is now obsolete.
8178     - Directory authorities do not support giving out the BadDirectory
8179       flag anymore.
8180     - Directory authorities no longer advertise or support consensus
8181       methods 1 through 12 inclusive. These consensus methods were
8182       obsolete and/or insecure: maintaining the ability to support them
8183       served no good purpose. Implements part of proposal 215; closes
8184       ticket 10163.
8186   o Testing (test-network.sh):
8187     - Stop using "echo -n", as some shells' built-in echo doesn't
8188       support "-n". Instead, use "/bin/echo -n". Partially fixes
8189       bug 13161.
8190     - Stop an apparent test-network hang when used with make -j2. Fixes
8191       bug 13331.
8192     - Add a --delay option to test-network.sh, which configures the
8193       delay before the chutney network tests for data transmission.
8194       Partially implements ticket 13161.
8197 Changes in version 0.2.5.10 - 2014-10-24
8198   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
8200   It adds several new security features, including improved
8201   denial-of-service resistance for relays, new compiler hardening
8202   options, and a system-call sandbox for hardened installations on Linux
8203   (requires seccomp2). The controller protocol has several new features,
8204   resolving IPv6 addresses should work better than before, and relays
8205   should be a little more CPU-efficient. We've added support for more
8206   OpenBSD and FreeBSD transparent proxy types. We've improved the build
8207   system and testing infrastructure to allow unit testing of more parts
8208   of the Tor codebase. Finally, we've addressed several nagging pluggable
8209   transport usability issues, and included numerous other small bugfixes
8210   and features mentioned below.
8212   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
8213   have accumulated many known flaws; everyone should upgrade.
8215   o Deprecated versions:
8216     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
8217       attention for some while.
8220 Changes in version 0.2.5.9-rc - 2014-10-20
8221   Tor 0.2.5.9-rc is the third release candidate for the Tor 0.2.5.x
8222   series. It disables SSL3 in response to the recent "POODLE" attack
8223   (even though POODLE does not affect Tor). It also works around a crash
8224   bug caused by some operating systems' response to the "POODLE" attack
8225   (which does affect Tor). It also contains a few miscellaneous fixes.
8227   o Major security fixes:
8228     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
8229       today support TLS 1.0 or later, so we can safely turn off support
8230       for this old (and insecure) protocol. Fixes bug 13426.
8232   o Major bugfixes (openssl bug workaround):
8233     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
8234       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
8235       13471. This is a workaround for an OpenSSL bug.
8237   o Minor bugfixes:
8238     - Disable the sandbox name resolver cache when running tor-resolve:
8239       tor-resolve doesn't use the sandbox code, and turning it on was
8240       breaking attempts to do tor-resolve on a non-default server on
8241       Linux. Fixes bug 13295; bugfix on 0.2.5.3-alpha.
8243   o Compilation fixes:
8244     - Build and run correctly on systems like OpenBSD-current that have
8245       patched OpenSSL to remove get_cipher_by_char and/or its
8246       implementations. Fixes issue 13325.
8248   o Downgraded warnings:
8249     - Downgrade the severity of the 'unexpected sendme cell from client'
8250       from 'warn' to 'protocol warning'. Closes ticket 8093.
8253 Changes in version 0.2.4.25 - 2014-10-20
8254   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
8255   (even though POODLE does not affect Tor). It also works around a crash
8256   bug caused by some operating systems' response to the "POODLE" attack
8257   (which does affect Tor).
8259   o Major security fixes (also in 0.2.5.9-rc):
8260     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
8261       today support TLS 1.0 or later, so we can safely turn off support
8262       for this old (and insecure) protocol. Fixes bug 13426.
8264   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
8265     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
8266       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
8267       13471. This is a workaround for an OpenSSL bug.
8270 Changes in version 0.2.5.8-rc - 2014-09-22
8271   Tor 0.2.5.8-rc is the second release candidate for the Tor 0.2.5.x
8272   series. It fixes a bug that affects consistency and speed when
8273   connecting to hidden services, and it updates the location of one of
8274   the directory authorities.
8276   o Major bugfixes:
8277     - Clients now send the correct address for their chosen rendezvous
8278       point when trying to access a hidden service. They used to send
8279       the wrong address, which would still work some of the time because
8280       they also sent the identity digest of the rendezvous point, and if
8281       the hidden service happened to try connecting to the rendezvous
8282       point from a relay that already had a connection open to it,
8283       the relay would reuse that connection. Now connections to hidden
8284       services should be more robust and faster. Also, this bug meant
8285       that clients were leaking to the hidden service whether they were
8286       on a little-endian (common) or big-endian (rare) system, which for
8287       some users might have reduced their anonymity. Fixes bug 13151;
8288       bugfix on 0.2.1.5-alpha.
8290   o Directory authority changes:
8291     - Change IP address for gabelmoo (v3 directory authority).
8294 Changes in version 0.2.4.24 - 2014-09-22
8295   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
8296   connecting to hidden services, and it updates the location of one of
8297   the directory authorities.
8299   o Major bugfixes:
8300     - Clients now send the correct address for their chosen rendezvous
8301       point when trying to access a hidden service. They used to send
8302       the wrong address, which would still work some of the time because
8303       they also sent the identity digest of the rendezvous point, and if
8304       the hidden service happened to try connecting to the rendezvous
8305       point from a relay that already had a connection open to it,
8306       the relay would reuse that connection. Now connections to hidden
8307       services should be more robust and faster. Also, this bug meant
8308       that clients were leaking to the hidden service whether they were
8309       on a little-endian (common) or big-endian (rare) system, which for
8310       some users might have reduced their anonymity. Fixes bug 13151;
8311       bugfix on 0.2.1.5-alpha.
8313   o Directory authority changes:
8314     - Change IP address for gabelmoo (v3 directory authority).
8316   o Minor features (geoip):
8317     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
8318       Country database.
8321 Changes in version 0.2.5.7-rc - 2014-09-11
8322   Tor 0.2.5.7-rc fixes several regressions from earlier in the 0.2.5.x
8323   release series, and some long-standing bugs related to ORPort reachability
8324   testing and failure to send CREATE cells. It is the first release
8325   candidate for the Tor 0.2.5.x series.
8327   o Major bugfixes (client, startup):
8328     - Start making circuits as soon as DisabledNetwork is turned off.
8329       When Tor started with DisabledNetwork set, it would correctly
8330       conclude that it shouldn't build circuits, but it would mistakenly
8331       cache this conclusion, and continue believing it even when
8332       DisableNetwork is set to 0. Fixes the bug introduced by the fix
8333       for bug 11200; bugfix on 0.2.5.4-alpha.
8334     - Resume expanding abbreviations for command-line options. The fix
8335       for bug 4647 accidentally removed our hack from bug 586 that
8336       rewrote HashedControlPassword to __HashedControlSessionPassword
8337       when it appears on the commandline (which allowed the user to set
8338       her own HashedControlPassword in the torrc file while the
8339       controller generates a fresh session password for each run). Fixes
8340       bug 12948; bugfix on 0.2.5.1-alpha.
8341     - Warn about attempts to run hidden services and relays in the same
8342       process: that's probably not a good idea. Closes ticket 12908.
8344   o Major bugfixes (relay):
8345     - Avoid queuing or sending destroy cells for circuit ID zero when we
8346       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
8347       Found and fixed by "cypherpunks".
8348     - Fix ORPort reachability detection on relays running behind a
8349       proxy, by correctly updating the "local" mark on the controlling
8350       channel when changing the address of an or_connection_t after the
8351       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
8353   o Minor features (bridge):
8354     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
8355       cookie file for the ExtORPort g+r by default.
8357   o Minor features (geoip):
8358     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
8359       Country database.
8361   o Minor bugfixes (logging):
8362     - Reduce the log severity of the "Pluggable transport proxy does not
8363       provide any needed transports and will not be launched." message,
8364       since Tor Browser includes several ClientTransportPlugin lines in
8365       its torrc-defaults file, leading every Tor Browser user who looks
8366       at her logs to see these notices and wonder if they're dangerous.
8367       Resolves bug 13124; bugfix on 0.2.5.3-alpha.
8368     - Downgrade "Unexpected onionskin length after decryption" warning
8369       to a protocol-warn, since there's nothing relay operators can do
8370       about a client that sends them a malformed create cell. Resolves
8371       bug 12996; bugfix on 0.0.6rc1.
8372     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
8373       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
8374     - When logging information about an EXTEND2 or EXTENDED2 cell, log
8375       their names correctly. Fixes part of bug 12700; bugfix
8376       on 0.2.4.8-alpha.
8377     - When logging information about a relay cell whose command we don't
8378       recognize, log its command as an integer. Fixes part of bug 12700;
8379       bugfix on 0.2.1.10-alpha.
8380     - Escape all strings from the directory connection before logging
8381       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
8383   o Minor bugfixes (controller):
8384     - Restore the functionality of CookieAuthFileGroupReadable. Fixes
8385       bug 12864; bugfix on 0.2.5.1-alpha.
8386     - Actually send TRANSPORT_LAUNCHED and HS_DESC events to
8387       controllers. Fixes bug 13085; bugfix on 0.2.5.1-alpha. Patch
8388       by "teor".
8390   o Minor bugfixes (compilation):
8391     - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
8392       bugfix on 0.2.5.5-alpha.
8393     - Make the nmake make files work again. Fixes bug 13081. Bugfix on
8394       0.2.5.1-alpha. Patch from "NewEraCracker".
8395     - In routerlist_assert_ok(), don't take the address of a
8396       routerinfo's cache_info member unless that routerinfo is non-NULL.
8397       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
8398     - Fix a large number of false positive warnings from the clang
8399       analyzer static analysis tool. This should make real warnings
8400       easier for clang analyzer to find. Patch from "teor". Closes
8401       ticket 13036.
8403   o Distribution (systemd):
8404     - Verify configuration file via ExecStartPre in the systemd unit
8405       file. Patch from intrigeri; resolves ticket 12730.
8406     - Explicitly disable RunAsDaemon in the systemd unit file. Our
8407       current systemd unit uses "Type = simple", so systemd does not
8408       expect tor to fork. If the user has "RunAsDaemon 1" in their
8409       torrc, then things won't work as expected. This is e.g. the case
8410       on Debian (and derivatives), since there we pass "--defaults-torrc
8411       /usr/share/tor/tor-service-defaults-torrc" (that contains
8412       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
8413       ticket 12731.
8415   o Documentation:
8416     - Adjust the URLs in the README to refer to the new locations of
8417       several documents on the website. Fixes bug 12830. Patch from
8418       Matt Pagan.
8419     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
8420       ticket 12878.
8423 Changes in version 0.2.5.6-alpha - 2014-07-28
8424   Tor 0.2.5.6-alpha brings us a big step closer to slowing down the
8425   risk from guard rotation, and fixes a variety of other issues to get
8426   us closer to a release candidate.
8428   o Major features (also in 0.2.4.23):
8429     - Make the number of entry guards configurable via a new
8430       NumEntryGuards consensus parameter, and the number of directory
8431       guards configurable via a new NumDirectoryGuards consensus
8432       parameter. Implements ticket 12688.
8434   o Major bugfixes (also in 0.2.4.23):
8435     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
8436       implementation that caused incorrect results on 32-bit
8437       implementations when certain malformed inputs were used along with
8438       a small class of private ntor keys. This bug does not currently
8439       appear to allow an attacker to learn private keys or impersonate a
8440       Tor server, but it could provide a means to distinguish 32-bit Tor
8441       implementations from 64-bit Tor implementations. Fixes bug 12694;
8442       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
8443       Adam Langley.
8445   o Major bugfixes:
8446     - Perform circuit cleanup operations even when circuit
8447       construction operations are disabled (because the network is
8448       disabled, or because there isn't enough directory information).
8449       Previously, when we were not building predictive circuits, we
8450       were not closing expired circuits either. Fixes bug 8387; bugfix on
8451       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
8452       became more strict about when we have "enough directory information
8453       to build circuits".
8455   o Minor features:
8456     - Authorities now assign the Guard flag to the fastest 25% of the
8457       network (it used to be the fastest 50%). Also raise the consensus
8458       weight that guarantees the Guard flag from 250 to 2000. For the
8459       current network, this results in about 1100 guards, down from 2500.
8460       This step paves the way for moving the number of entry guards
8461       down to 1 (proposal 236) while still providing reasonable expected
8462       performance for most users. Implements ticket 12690.
8463     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
8464       Country database.
8465     - Slightly enhance the diagnostic message for bug 12184.
8467   o Minor bugfixes (also in 0.2.4.23):
8468     - Warn and drop the circuit if we receive an inbound 'relay early'
8469       cell. Those used to be normal to receive on hidden service circuits
8470       due to bug 1038, but the buggy Tor versions are long gone from
8471       the network so we can afford to resume watching for them. Resolves
8472       the rest of bug 1038; bugfix on 0.2.1.19.
8473     - Correct a confusing error message when trying to extend a circuit
8474       via the control protocol but we don't know a descriptor or
8475       microdescriptor for one of the specified relays. Fixes bug 12718;
8476       bugfix on 0.2.3.1-alpha.
8478   o Minor bugfixes:
8479     - Fix compilation when building with bufferevents enabled. (This
8480       configuration is still not expected to work, however.)
8481       Fixes bugs 12438, 12474, 11578; bugfixes on 0.2.5.1-alpha and
8482       0.2.5.3-alpha. Patches from Anthony G. Basile and Sathyanarayanan
8483       Gunasekaran.
8484     - Compile correctly with builds and forks of OpenSSL (such as
8485       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
8486       0.2.1.1-alpha. Patch from "dhill".
8489 Changes in version 0.2.4.23 - 2014-07-28
8490   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
8491   guard rotation, and also backports several important fixes from the
8492   Tor 0.2.5 alpha release series.
8494   o Major features:
8495     - Clients now look at the "usecreatefast" consensus parameter to
8496       decide whether to use CREATE_FAST or CREATE cells for the first hop
8497       of their circuit. This approach can improve security on connections
8498       where Tor's circuit handshake is stronger than the available TLS
8499       connection security levels, but the tradeoff is more computational
8500       load on guard relays. Implements proposal 221. Resolves ticket 9386.
8501     - Make the number of entry guards configurable via a new
8502       NumEntryGuards consensus parameter, and the number of directory
8503       guards configurable via a new NumDirectoryGuards consensus
8504       parameter. Implements ticket 12688.
8506   o Major bugfixes:
8507     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
8508       implementation that caused incorrect results on 32-bit
8509       implementations when certain malformed inputs were used along with
8510       a small class of private ntor keys. This bug does not currently
8511       appear to allow an attacker to learn private keys or impersonate a
8512       Tor server, but it could provide a means to distinguish 32-bit Tor
8513       implementations from 64-bit Tor implementations. Fixes bug 12694;
8514       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
8515       Adam Langley.
8517   o Minor bugfixes:
8518     - Warn and drop the circuit if we receive an inbound 'relay early'
8519       cell. Those used to be normal to receive on hidden service circuits
8520       due to bug 1038, but the buggy Tor versions are long gone from
8521       the network so we can afford to resume watching for them. Resolves
8522       the rest of bug 1038; bugfix on 0.2.1.19.
8523     - Correct a confusing error message when trying to extend a circuit
8524       via the control protocol but we don't know a descriptor or
8525       microdescriptor for one of the specified relays. Fixes bug 12718;
8526       bugfix on 0.2.3.1-alpha.
8527     - Avoid an illegal read from stack when initializing the TLS
8528       module using a version of OpenSSL without all of the ciphers
8529       used by the v2 link handshake. Fixes bug 12227; bugfix on
8530       0.2.4.8-alpha.  Found by "starlight".
8532   o Minor features:
8533     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
8534       Country database.
8537 Changes in version 0.2.5.5-alpha - 2014-06-18
8538   Tor 0.2.5.5-alpha fixes a wide variety of remaining issues in the Tor
8539   0.2.5.x release series, including a couple of DoS issues, some
8540   performance regressions, a large number of bugs affecting the Linux
8541   seccomp2 sandbox code, and various other bugfixes. It also adds
8542   diagnostic bugfixes for a few tricky issues that we're trying to
8543   track down.
8545   o Major features (security, traffic analysis resistance):
8546     - Several major improvements to the algorithm used to decide when to
8547       close TLS connections. Previous versions of Tor closed connections
8548       at a fixed interval after the last time a non-padding cell was
8549       sent over the connection, regardless of the target of the
8550       connection. Now, we randomize the intervals by adding up to 50% of
8551       their base value, we measure the length of time since connection
8552       last had at least one circuit, and we allow connections to known
8553       ORs to remain open a little longer (15 minutes instead of 3
8554       minutes minimum). These changes should improve Tor's resistance
8555       against some kinds of traffic analysis, and lower some overhead
8556       from needlessly closed connections. Fixes ticket 6799.
8557       Incidentally fixes ticket 12023; bugfix on 0.2.5.1-alpha.
8559   o Major bugfixes (security, OOM, new since 0.2.5.4-alpha, also in 0.2.4.22):
8560     - Fix a memory leak that could occur if a microdescriptor parse
8561       fails during the tokenizing step. This bug could enable a memory
8562       exhaustion attack by directory servers. Fixes bug 11649; bugfix
8563       on 0.2.2.6-alpha.
8565   o Major bugfixes (security, directory authorities):
8566     - Directory authorities now include a digest of each relay's
8567       identity key as a part of its microdescriptor.
8569       This is a workaround for bug 11743 (reported by "cypherpunks"),
8570       where Tor clients do not support receiving multiple
8571       microdescriptors with the same SHA256 digest in the same
8572       consensus. When clients receive a consensus like this, they only
8573       use one of the relays. Without this fix, a hostile relay could
8574       selectively disable some client use of target relays by
8575       constructing a router descriptor with a different identity and the
8576       same microdescriptor parameters and getting the authorities to
8577       list it in a microdescriptor consensus. This fix prevents an
8578       attacker from causing a microdescriptor collision, because the
8579       router's identity is not forgeable.
8581   o Major bugfixes (relay):
8582     - Use a direct dirport connection when uploading non-anonymous
8583       descriptors to the directory authorities. Previously, relays would
8584       incorrectly use tunnel connections under a fairly wide variety of
8585       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
8586     - When a circuit accidentally has the same circuit ID for its
8587       forward and reverse direction, correctly detect the direction of
8588       cells using that circuit. Previously, this bug made roughly one
8589       circuit in a million non-functional. Fixes bug 12195; this is a
8590       bugfix on every version of Tor.
8592   o Major bugfixes (client, pluggable transports):
8593     - When managing pluggable transports, use OS notification facilities
8594       to learn if they have crashed, and don't attempt to kill any
8595       process that has already exited. Fixes bug 8746; bugfix
8596       on 0.2.3.6-alpha.
8598   o Minor features (diagnostic):
8599     - When logging a warning because of bug 7164, additionally check the
8600       hash table for consistency (as proposed on ticket 11737). This may
8601       help diagnose bug 7164.
8602     - When we log a heartbeat, log how many one-hop circuits we have
8603       that are at least 30 minutes old, and log status information about
8604       a few of them. This is an attempt to track down bug 8387.
8605     - When encountering an unexpected CR while writing text to a file on
8606       Windows, log the name of the file. Should help diagnosing
8607       bug 11233.
8608     - Give more specific warnings when a client notices that an onion
8609       handshake has failed. Fixes ticket 9635.
8610     - Add significant new logging code to attempt to diagnose bug 12184,
8611       where relays seem to run out of available circuit IDs.
8612     - Improve the diagnostic log message for bug 8387 even further to
8613       try to improve our odds of figuring out why one-hop directory
8614       circuits sometimes do not get closed.
8616   o Minor features (security, memory management):
8617     - Memory allocation tricks (mempools and buffer freelists) are now
8618       disabled by default. You can turn them back on with
8619       --enable-mempools and --enable-buf-freelists respectively. We're
8620       disabling these features because malloc performance is good enough
8621       on most platforms, and a similar feature in OpenSSL exacerbated
8622       exploitation of the Heartbleed attack. Resolves ticket 11476.
8624   o Minor features (security):
8625     - Apply the secure SipHash-2-4 function to the hash table mapping
8626       circuit IDs and channels to circuits. We missed this one when we
8627       were converting all the other hash functions to use SipHash back
8628       in 0.2.5.3-alpha. Resolves ticket 11750.
8630   o Minor features (build):
8631     - The configure script has a --disable-seccomp option to turn off
8632       support for libseccomp on systems that have it, in case it (or
8633       Tor's use of it) is broken. Resolves ticket 11628.
8635   o Minor features (other):
8636     - Update geoip and geoip6 to the June 4 2014 Maxmind GeoLite2
8637       Country database.
8639   o Minor bugfixes (security, new since 0.2.5.4-alpha, also in 0.2.4.22):
8640     - When running a hidden service, do not allow TunneledDirConns 0;
8641       this will keep the hidden service from running, and also
8642       make it publish its descriptors directly over HTTP. Fixes bug 10849;
8643       bugfix on 0.2.1.1-alpha.
8645   o Minor bugfixes (performance):
8646     - Avoid a bug where every successful connection made us recompute
8647       the flag telling us whether we have sufficient information to
8648       build circuits. Previously, we would forget our cached value
8649       whenever we successfully opened a channel (or marked a router as
8650       running or not running for any other reason), regardless of
8651       whether we had previously believed the router to be running. This
8652       forced us to run an expensive update operation far too often.
8653       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
8654     - Avoid using tor_memeq() for checking relay cell integrity. This
8655       removes a possible performance bottleneck. Fixes part of bug
8656       12169; bugfix on 0.2.1.31.
8658   o Minor bugfixes (compilation):
8659     - Fix compilation of test_status.c when building with MVSC. Bugfix
8660       on 0.2.5.4-alpha. Patch from Gisle Vanem.
8661     - Resolve GCC complaints on OpenBSD about discarding constness in
8662       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
8663       on 0.1.1.23. Patch from Dana Koch.
8664     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
8665       treatment of long and time_t as comparable types. Fixes part of
8666       bug 11633. Patch from Dana Koch.
8667     - Make Tor compile correctly with --disable-buf-freelists. Fixes bug
8668       11623; bugfix on 0.2.5.3-alpha.
8669     - When deciding whether to build the 64-bit curve25519
8670       implementation, detect platforms where we can compile 128-bit
8671       arithmetic but cannot link it. Fixes bug 11729; bugfix on
8672       0.2.4.8-alpha. Patch from "conradev".
8673     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
8674       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
8675     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
8676       on 0.2.4.10-alpha.
8678   o Minor bugfixes (Directory server):
8679     - When sending a compressed set of descriptors or microdescriptors,
8680       make sure to finalize the zlib stream. Previously, we would write
8681       all the compressed data, but if the last descriptor we wanted to
8682       send was missing or too old, we would not mark the stream as
8683       finished. This caused problems for decompression tools. Fixes bug
8684       11648; bugfix on 0.1.1.23.
8686   o Minor bugfixes (Linux seccomp sandbox):
8687     - Make the seccomp sandbox code compile under ARM Linux. Fixes bug
8688       11622; bugfix on 0.2.5.1-alpha.
8689     - Avoid crashing when re-opening listener ports with the seccomp
8690       sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
8691     - Avoid crashing with the seccomp sandbox enabled along with
8692       ConstrainedSockets. Fixes bug 12139; bugfix on 0.2.5.1-alpha.
8693     - When we receive a SIGHUP with the sandbox enabled, correctly
8694       support rotating our log files. Fixes bug 12032; bugfix
8695       on 0.2.5.1-alpha.
8696     - Avoid crash when running with sandboxing enabled and
8697       DirReqStatistics not disabled. Fixes bug 12035; bugfix
8698       on 0.2.5.1-alpha.
8699     - Fix a "BUG" warning when trying to write bridge-stats files with
8700       the Linux syscall sandbox filter enabled. Fixes bug 12041; bugfix
8701       on 0.2.5.1-alpha.
8702     - Prevent the sandbox from crashing on startup when run with the
8703       --enable-expensive-hardening configuration option. Fixes bug
8704       11477; bugfix on 0.2.5.4-alpha.
8705     - When running with DirPortFrontPage and sandboxing both enabled,
8706       reload the DirPortFrontPage correctly when restarting. Fixes bug
8707       12028; bugfix on 0.2.5.1-alpha.
8708     - Don't try to enable the sandbox when using the Tor binary to check
8709       its configuration, hash a passphrase, or so on. Doing so was
8710       crashing on startup for some users. Fixes bug 11609; bugfix
8711       on 0.2.5.1-alpha.
8712     - Avoid warnings when running with sandboxing and node statistics
8713       enabled at the same time. Fixes part of 12064; bugfix on
8714       0.2.5.1-alpha. Patch from Michael Wolf.
8715     - Avoid warnings when running with sandboxing enabled at the same
8716       time as cookie authentication, hidden services, or directory
8717       authority voting. Fixes part of 12064; bugfix on 0.2.5.1-alpha.
8718     - Do not allow options that require calls to exec to be enabled
8719       alongside the seccomp2 sandbox: they will inevitably crash. Fixes
8720       bug 12043; bugfix on 0.2.5.1-alpha.
8721     - Handle failures in getpwnam()/getpwuid() when running with the
8722       User option set and the Linux syscall sandbox enabled. Fixes bug
8723       11946; bugfix on 0.2.5.1-alpha.
8724     - Refactor the getaddrinfo workaround that the seccomp sandbox uses
8725       to avoid calling getaddrinfo() after installing the sandbox
8726       filters. Previously, it preloaded a cache with the IPv4 address
8727       for our hostname, and nothing else. Now, it loads the cache with
8728       every address that it used to initialize the Tor process. Fixes
8729       bug 11970; bugfix on 0.2.5.1-alpha.
8731   o Minor bugfixes (pluggable transports):
8732     - Enable the ExtORPortCookieAuthFile option, to allow changing the
8733       default location of the authentication token for the extended OR
8734       Port as used by sever-side pluggable transports. We had
8735       implemented this option before, but the code to make it settable
8736       had been omitted. Fixes bug 11635; bugfix on 0.2.5.1-alpha.
8737     - Avoid another 60-second delay when starting Tor in a pluggable-
8738       transport-using configuration when we already have cached
8739       descriptors for our bridges. Fixes bug 11965; bugfix
8740       on 0.2.3.6-alpha.
8742   o Minor bugfixes (client):
8743     - Avoid "Tried to open a socket with DisableNetwork set" warnings
8744       when starting a client with bridges configured and DisableNetwork
8745       set. (Tor launcher starts Tor with DisableNetwork set the first
8746       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
8748   o Minor bugfixes (testing):
8749     - The Python parts of the test scripts now work on Python 3 as well
8750       as Python 2, so systems where '/usr/bin/python' is Python 3 will
8751       no longer have the tests break. Fixes bug 11608; bugfix
8752       on 0.2.5.2-alpha.
8753     - When looking for versions of python that we could run the tests
8754       with, check for "python2.7" and "python3.3"; previously we were
8755       only looking for "python", "python2", and "python3". Patch from
8756       Dana Koch. Fixes bug 11632; bugfix on 0.2.5.2-alpha.
8757     - Fix all valgrind warnings produced by the unit tests. There were
8758       over a thousand memory leak warnings previously, mostly produced
8759       by forgetting to free things in the unit test code. Fixes bug
8760       11618, bugfixes on many versions of Tor.
8762   o Minor bugfixes (tor-fw-helper):
8763     - Give a correct log message when tor-fw-helper fails to launch.
8764       (Previously, we would say something like "tor-fw-helper sent us a
8765       string we could not parse".) Fixes bug 9781; bugfix
8766       on 0.2.4.2-alpha.
8768   o Minor bugfixes (relay, threading):
8769     - Check return code on spawn_func() in cpuworker code, so that we
8770       don't think we've spawned a nonworking cpuworker and write junk to
8771       it forever. Fix related to bug 4345; bugfix on all released Tor
8772       versions. Found by "skruffy".
8773     - Use a pthread_attr to make sure that spawn_func() cannot return an
8774       error while at the same time launching a thread. Fix related to
8775       bug 4345; bugfix on all released Tor versions. Reported
8776       by "cypherpunks".
8778   o Minor bugfixes (relay, oom prevention):
8779     - Correctly detect the total available system memory. We tried to do
8780       this in 0.2.5.4-alpha, but the code was set up to always return an
8781       error value, even on success. Fixes bug 11805; bugfix
8782       on 0.2.5.4-alpha.
8784   o Minor bugfixes (relay, other):
8785     - We now drop CREATE cells for already-existent circuit IDs and for
8786       zero-valued circuit IDs, regardless of other factors that might
8787       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
8788       on 0.0.8pre1.
8789     - Avoid an illegal read from stack when initializing the TLS module
8790       using a version of OpenSSL without all of the ciphers used by the
8791       v2 link handshake. Fixes bug 12227; bugfix on 0.2.4.8-alpha. Found
8792       by "starlight".
8793     - When rejecting DATA cells for stream_id zero, still count them
8794       against the circuit's deliver window so that we don't fail to send
8795       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
8797   o Minor bugfixes (logging):
8798     - Fix a misformatted log message about delayed directory fetches.
8799       Fixes bug 11654; bugfix on 0.2.5.3-alpha.
8800     - Squelch a spurious LD_BUG message "No origin circuit for
8801       successful SOCKS stream" in certain hidden service failure cases;
8802       fixes bug 10616.
8804   o Distribution:
8805     - Include a tor.service file in contrib/dist for use with systemd.
8806       Some distributions will be able to use this file unmodified;
8807       others will need to tweak it, or write their own. Patch from Jamie
8808       Nguyen; resolves ticket 8368.
8810   o Documentation:
8811     - Clean up several option names in the manpage to match their real
8812       names, add the missing documentation for a couple of testing and
8813       directory authority options, remove the documentation for a
8814       V2-directory fetching option that no longer exists. Resolves
8815       ticket 11634.
8816     - Correct the documenation so that it lists the correct directory
8817       for the stats files. (They are in a subdirectory called "stats",
8818       not "status".)
8819     - In the manpage, move more authority-only options into the
8820       directory authority section so that operators of regular directory
8821       caches don't get confused.
8823   o Package cleanup:
8824     - The contrib directory has been sorted and tidied. Before, it was
8825       an unsorted dumping ground for useful and not-so-useful things.
8826       Now, it is divided based on functionality, and the items which
8827       seemed to be nonfunctional or useless have been removed. Resolves
8828       ticket 8966; based on patches from "rl1987".
8830   o Removed code:
8831     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
8832       and MTBF calculations, but that nobody was using. Fixes ticket 11742.
8833     - The TunnelDirConns and PreferTunnelledDirConns options no longer
8834       exist; tunneled directory connections have been available since
8835       0.1.2.5-alpha, and turning them off is not a good idea. This is a
8836       brute-force fix for 10849, where "TunnelDirConns 0" would break
8837       hidden services.
8840 Changes in version 0.2.4.22 - 2014-05-16
8841   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
8842   alpha release series. These include blocking all authority signing
8843   keys that may have been affected by the OpenSSL "heartbleed" bug,
8844   choosing a far more secure set of TLS ciphersuites by default, closing
8845   a couple of memory leaks that could be used to run a target relay out
8846   of RAM, and several others.
8848   o Major features (security, backport from 0.2.5.4-alpha):
8849     - Block authority signing keys that were used on authorities
8850       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
8851       don't have any evidence that these keys _were_ compromised; we're
8852       doing this to be prudent.) Resolves ticket 11464.
8854   o Major bugfixes (security, OOM):
8855     - Fix a memory leak that could occur if a microdescriptor parse
8856       fails during the tokenizing step. This bug could enable a memory
8857       exhaustion attack by directory servers. Fixes bug 11649; bugfix
8858       on 0.2.2.6-alpha.
8860   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
8861     - The relay ciphersuite list is now generated automatically based on
8862       uniform criteria, and includes all OpenSSL ciphersuites with
8863       acceptable strength and forward secrecy. Previously, we had left
8864       some perfectly fine ciphersuites unsupported due to omission or
8865       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
8866       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
8867     - Relays now trust themselves to have a better view than clients of
8868       which TLS ciphersuites are better than others. (Thanks to bug
8869       11513, the relay list is now well-considered, whereas the client
8870       list has been chosen mainly for anti-fingerprinting purposes.)
8871       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
8872       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
8873       AES128. Resolves ticket 11528.
8874     - Clients now try to advertise the same list of ciphersuites as
8875       Firefox 28. This change enables selection of (fast) GCM
8876       ciphersuites, disables some strange old ciphers, and stops
8877       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
8878       Resolves ticket 11438.
8880   o Minor bugfixes (configuration, security):
8881     - When running a hidden service, do not allow TunneledDirConns 0:
8882       trying to set that option together with a hidden service would
8883       otherwise prevent the hidden service from running, and also make
8884       it publish its descriptors directly over HTTP. Fixes bug 10849;
8885       bugfix on 0.2.1.1-alpha.
8887   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
8888     - Avoid sending a garbage value to the controller when a circuit is
8889       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
8891   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
8892     - Stop leaking memory when we successfully resolve a PTR record.
8893       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
8895   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
8896     - Avoid 60-second delays in the bootstrapping process when Tor is
8897       launching for a second time while using bridges. Fixes bug 9229;
8898       bugfix on 0.2.0.3-alpha.
8900   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
8901     - Give the correct URL in the warning message when trying to run a
8902       relay on an ancient version of Windows. Fixes bug 9393.
8904   o Minor bugfixes (compilation):
8905     - Fix a compilation error when compiling with --disable-curve25519.
8906       Fixes bug 9700; bugfix on 0.2.4.17-rc.
8908   o Minor bugfixes:
8909     - Downgrade the warning severity for the the "md was still
8910       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
8911       for trying to diagnose this bug, and the current warning in
8912       earlier versions of tor achieves nothing useful. Addresses warning
8913       from bug 7164.
8915   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
8916     - When we run out of usable circuit IDs on a channel, log only one
8917       warning for the whole channel, and describe how many circuits
8918       there were on the channel. Fixes part of ticket 11553.
8920   o Minor features (security, backport from 0.2.5.4-alpha):
8921     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
8922       leave the default at 8GBytes), to better support Raspberry Pi
8923       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
8925   o Documentation (backport from 0.2.5.4-alpha):
8926     - Correctly document that we search for a system torrc file before
8927       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
8928       0.2.3.18-rc.
8931 Changes in version 0.2.5.4-alpha - 2014-04-25
8932   Tor 0.2.5.4-alpha includes several security and performance
8933   improvements for clients and relays, including blacklisting authority
8934   signing keys that were used while susceptible to the OpenSSL
8935   "heartbleed" bug, fixing two expensive functions on busy relays,
8936   improved TLS ciphersuite preference lists, support for run-time
8937   hardening on compilers that support AddressSanitizer, and more work on
8938   the Linux sandbox code.
8940   There are also several usability fixes for clients (especially clients
8941   that use bridges), two new TransPort protocols supported (one on
8942   OpenBSD, one on FreeBSD), and various other bugfixes.
8944   This release marks end-of-life for Tor 0.2.2.x; those Tor versions
8945   have accumulated many known flaws; everyone should upgrade.
8947   o Major features (security):
8948     - If you don't specify MaxMemInQueues yourself, Tor now tries to
8949       pick a good value based on your total system memory. Previously,
8950       the default was always 8 GB. You can still override the default by
8951       setting MaxMemInQueues yourself. Resolves ticket 11396.
8952     - Block authority signing keys that were used on authorities
8953       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
8954       don't have any evidence that these keys _were_ compromised; we're
8955       doing this to be prudent.) Resolves ticket 11464.
8957   o Major features (relay performance):
8958     - Speed up server-side lookups of rendezvous and introduction point
8959       circuits by using hashtables instead of linear searches. These
8960       functions previously accounted between 3 and 7% of CPU usage on
8961       some busy relays. Resolves ticket 9841.
8962     - Avoid wasting CPU when extending a circuit over a channel that is
8963       nearly out of circuit IDs. Previously, we would do a linear scan
8964       over possible circuit IDs before finding one or deciding that we
8965       had exhausted our possibilities. Now, we try at most 64 random
8966       circuit IDs before deciding that we probably won't succeed. Fixes
8967       a possible root cause of ticket 11553.
8969   o Major features (seccomp2 sandbox, Linux only):
8970     - The seccomp2 sandbox can now run a test network for multiple hours
8971       without crashing. The sandbox is still experimental, and more bugs
8972       will probably turn up. To try it, enable "Sandbox 1" on a Linux
8973       host. Resolves ticket 11351.
8974     - Strengthen sandbox code: the sandbox can now test the arguments
8975       for rename(), and blocks _sysctl() entirely. Resolves another part
8976       of ticket 11351.
8977     - When the sandbox blocks a system call, it now tries to log a stack
8978       trace before exiting. Resolves ticket 11465.
8980   o Major bugfixes (TLS cipher selection):
8981     - The relay ciphersuite list is now generated automatically based on
8982       uniform criteria, and includes all OpenSSL ciphersuites with
8983       acceptable strength and forward secrecy. Previously, we had left
8984       some perfectly fine ciphersuites unsupported due to omission or
8985       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
8986       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
8987     - Relays now trust themselves to have a better view than clients of
8988       which TLS ciphersuites are better than others. (Thanks to bug
8989       11513, the relay list is now well-considered, whereas the client
8990       list has been chosen mainly for anti-fingerprinting purposes.)
8991       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
8992       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
8993       AES128. Resolves ticket 11528.
8994     - Clients now try to advertise the same list of ciphersuites as
8995       Firefox 28. This change enables selection of (fast) GCM
8996       ciphersuites, disables some strange old ciphers, and stops
8997       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
8998       Resolves ticket 11438.
9000   o Major bugfixes (bridge client):
9001     - Avoid 60-second delays in the bootstrapping process when Tor is
9002       launching for a second time while using bridges. Fixes bug 9229;
9003       bugfix on 0.2.0.3-alpha.
9005   o Minor features (transparent proxy, *BSD):
9006     - Support FreeBSD's ipfw firewall interface for TransPort ports on
9007       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
9008       10267; patch from "yurivict".
9009     - Support OpenBSD's divert-to rules with the pf firewall for
9010       transparent proxy ports. To enable it, set "TransProxyType
9011       pf-divert". This allows Tor to run a TransPort transparent proxy
9012       port on OpenBSD 4.4 or later without root privileges. See the
9013       pf.conf(5) manual page for information on configuring pf to use
9014       divert-to rules. Closes ticket 10896; patch from Dana Koch.
9016   o Minor features (security):
9017     - New --enable-expensive-hardening option to enable security
9018       hardening options that consume nontrivial amounts of CPU and
9019       memory. Right now, this includes AddressSanitizer and UbSan, which
9020       are supported in newer versions of GCC and Clang. Closes ticket
9021       11477.
9023   o Minor features (log verbosity):
9024     - Demote the message that we give when a flushing connection times
9025       out for too long from NOTICE to INFO. It was usually meaningless.
9026       Resolves ticket 5286.
9027     - Don't log so many notice-level bootstrapping messages at startup
9028       about downloading descriptors. Previously, we'd log a notice
9029       whenever we learned about more routers. Now, we only log a notice
9030       at every 5% of progress. Fixes bug 9963.
9031     - Warn less verbosely when receiving a malformed
9032       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
9033     - When we run out of usable circuit IDs on a channel, log only one
9034       warning for the whole channel, and describe how many circuits
9035       there were on the channel. Fixes part of ticket 11553.
9037   o Minor features (relay):
9038     - If a circuit timed out for at least 3 minutes, check if we have a
9039       new external IP address, and publish a new descriptor with the new
9040       IP address if it changed. Resolves ticket 2454.
9042   o Minor features (controller):
9043     - Make the entire exit policy available from the control port via
9044       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
9045       "rl1987".
9046     - Because of the fix for ticket 11396, the real limit for memory
9047       usage may no longer match the configured MaxMemInQueues value. The
9048       real limit is now exposed via GETINFO limits/max-mem-in-queues.
9050   o Minor features (bridge client):
9051     - Report a more useful failure message when we can't connect to a
9052       bridge because we don't have the right pluggable transport
9053       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
9055   o Minor features (diagnostic):
9056     - Add more log messages to diagnose bug 7164, which causes
9057       intermittent "microdesc_free() called but md was still referenced"
9058       warnings. We now include more information, to figure out why we
9059       might be cleaning a microdescriptor for being too old if it's
9060       still referenced by a live node_t object.
9062   o Minor bugfixes (client, DNSPort):
9063     - When using DNSPort, try to respond to AAAA requests with AAAA
9064       answers. Previously, we hadn't looked at the request type when
9065       deciding which answer type to prefer. Fixes bug 10468; bugfix on
9066       0.2.4.7-alpha.
9067     - When receiving a DNS query for an unsupported record type, reply
9068       with no answer rather than with a NOTIMPL error. This behavior
9069       isn't correct either, but it will break fewer client programs, we
9070       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
9071       from "epoch".
9073   o Minor bugfixes (exit relay):
9074     - Stop leaking memory when we successfully resolve a PTR record.
9075       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
9077   o Minor bugfixes (bridge client):
9078     - Stop accepting bridge lines containing hostnames. Doing so would
9079       cause clients to perform DNS requests on the hostnames, which was
9080       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
9081     - Avoid a 60-second delay in the bootstrapping process when a Tor
9082       client with pluggable transports re-reads its configuration at
9083       just the wrong time. Re-fixes bug 11156; bugfix on 0.2.5.3-alpha.
9085   o Minor bugfixes (client, logging during bootstrap):
9086     - Warn only once if we start logging in an unsafe way. Previously,
9087       we complain as many times as we had problems. Fixes bug 9870;
9088       bugfix on 0.2.5.1-alpha.
9089     - Only report the first fatal bootstrap error on a given OR
9090       connection. This stops us from telling the controller bogus error
9091       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
9092     - Be more helpful when trying to run sandboxed on Linux without
9093       libseccomp. Instead of saying "Sandbox is not implemented on this
9094       platform", we now explain that we need to be built with
9095       libseccomp. Fixes bug 11543; bugfix on 0.2.5.1-alpha.
9096     - Avoid generating spurious warnings when starting with
9097       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
9098       0.2.3.9-alpha.
9100   o Minor bugfixes (closing OR connections):
9101     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
9102       check if it's an or_connection_t and correctly call
9103       connection_or_close_for_error() rather than
9104       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
9105       0.2.4.4-alpha.
9106     - When closing all connections on setting DisableNetwork to 1, use
9107       connection_or_close_normally() rather than closing OR connections
9108       out from under the channel layer. Fixes bug 11306; bugfix on
9109       0.2.4.4-alpha.
9111   o Minor bugfixes (controller):
9112     - Avoid sending a garbage value to the controller when a circuit is
9113       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
9115   o Minor bugfixes (tor-fw-helper):
9116     - Allow tor-fw-helper to build again by adding src/ext to its
9117       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
9119   o Minor bugfixes (bridges):
9120     - Avoid potential crashes or bad behavior when launching a
9121       server-side managed proxy with ORPort or ExtORPort temporarily
9122       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
9124   o Minor bugfixes (platform-specific):
9125     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
9126       bug 11426; bugfix on 0.2.5.3-alpha.
9127     - When dumping a malformed directory object to disk, save it in
9128       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
9129       0.2.2.1-alpha.
9130     - Don't report failures from make_socket_reuseable() on incoming
9131       sockets on OSX: this can happen when incoming connections close
9132       early. Fixes bug 10081.
9134   o Minor bugfixes (trivial memory leaks):
9135     - Fix a small memory leak when signing a directory object. Fixes bug
9136       11275; bugfix on 0.2.4.13-alpha.
9137     - Free placeholder entries in our circuit table at exit; fixes a
9138       harmless memory leak. Fixes bug 11278; bugfix on 0.2.5.1-alpha.
9139     - Don't re-initialize a second set of OpenSSL mutexes when starting
9140       up. Previously, we'd make one set of mutexes, and then immediately
9141       replace them with another. Fixes bug 11726; bugfix on
9142       0.2.5.3-alpha.
9143     - Resolve some memory leaks found by coverity in the unit tests, on
9144       exit in tor-gencert, and on a failure to compute digests for our
9145       own keys when generating a v3 networkstatus vote. These leaks
9146       should never have affected anyone in practice.
9148   o Minor bugfixes (hidden service):
9149     - Only retry attempts to connect to a chosen rendezvous point 8
9150       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
9152   o Minor bugfixes (misc code correctness):
9153     - Fix various instances of undefined behavior in channeltls.c,
9154       tor_memmem(), and eventdns.c that would cause us to construct
9155       pointers to memory outside an allocated object. (These invalid
9156       pointers were not accessed, but C does not even allow them to
9157       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
9158       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
9159     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
9160       fix some miscellaneous errors in our tests and codebase. Fixes bug
9161       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
9162     - Always check return values for unlink, munmap, UnmapViewOfFile;
9163       check strftime return values more often. In some cases all we can
9164       do is report a warning, but this may help prevent deeper bugs from
9165       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
9166       versions.
9167     - Fix numerous warnings from the clang "scan-build" static analyzer.
9168       Some of these are programming style issues; some of them are false
9169       positives that indicated awkward code; some are undefined behavior
9170       cases related to constructing (but not using) invalid pointers;
9171       some are assumptions about API behavior; some are (harmlessly)
9172       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
9173       correct; and one or two are genuine bugs that weren't reachable
9174       from the rest of the program. Fixes bug 8793; bugfixes on many,
9175       many tor versions.
9177   o Documentation:
9178     - Build the torify.1 manpage again. Previously, we were only trying
9179       to build it when also building tor-fw-helper. That's why we didn't
9180       notice that we'd broken the ability to build it. Fixes bug 11321;
9181       bugfix on 0.2.5.1-alpha.
9182     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
9183       11061; bugfix on 0.2.4.7-alpha.
9184     - Correctly document that we search for a system torrc file before
9185       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
9186       0.2.3.18-rc.
9187     - Resolve warnings from Doxygen.
9189   o Code simplifications and refactoring:
9190     - Remove is_internal_IP() function. Resolves ticket 4645.
9191     - Remove unused function circuit_dump_by_chan from circuitlist.c.
9192       Closes issue 9107; patch from "marek".
9193     - Change our use of the ENUM_BF macro to avoid declarations that
9194       confuse Doxygen.
9196   o Deprecated versions:
9197     - Tor 0.2.2.x has reached end-of-life; it has received no patches or
9198       attention for some while. Directory authorities no longer accept
9199       descriptors from relays running any version of Tor prior to Tor
9200       0.2.3.16-alpha. Resolves ticket 11149.
9202   o Testing:
9203     - New macros in test.h to simplify writing mock-functions for unit
9204       tests. Part of ticket 11507. Patch from Dana Koch.
9205     - Complete tests for the status.c module. Resolves ticket 11507.
9206       Patch from Dana Koch.
9208   o Removed code:
9209     - Remove all code for the long unused v1 directory protocol.
9210       Resolves ticket 11070.
9213 Changes in version 0.2.5.3-alpha - 2014-03-22
9214   Tor 0.2.5.3-alpha includes all the fixes from 0.2.4.21. It contains
9215   two new anti-DoS features for Tor relays, resolves a bug that kept
9216   SOCKS5 support for IPv6 from working, fixes several annoying usability
9217   issues for bridge users, and removes more old code for unused
9218   directory formats.
9220   The Tor 0.2.5.x release series is now in patch-freeze: no feature
9221   patches not already written will be considered for inclusion in 0.2.5.x.
9223   o Major features (relay security, DoS-resistance):
9224     - When deciding whether we have run out of memory and we need to
9225       close circuits, also consider memory allocated in buffers for
9226       streams attached to each circuit.
9228       This change, which extends an anti-DoS feature introduced in
9229       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
9230       better resist more memory-based DoS attacks than before. Since the
9231       MaxMemInCellQueues option now applies to all queues, it is renamed
9232       to MaxMemInQueues. This feature fixes bug 10169.
9233     - Avoid hash-flooding denial-of-service attacks by using the secure
9234       SipHash-2-4 hash function for our hashtables. Without this
9235       feature, an attacker could degrade performance of a targeted
9236       client or server by flooding their data structures with a large
9237       number of entries to be stored at the same hash table position,
9238       thereby slowing down the Tor instance. With this feature, hash
9239       table positions are derived from a randomized cryptographic key,
9240       and an attacker cannot predict which entries will collide. Closes
9241       ticket 4900.
9242     - Decrease the lower limit of MaxMemInQueues to 256 MBytes (but leave
9243       the default at 8GBytes), to better support Raspberry Pi users. Fixes
9244       bug 9686; bugfix on 0.2.4.14-alpha.
9246   o Minor features (bridges, pluggable transports):
9247     - Bridges now write the SHA1 digest of their identity key
9248       fingerprint (that is, a hash of a hash of their public key) to
9249       notice-level logs, and to a new hashed-fingerprint file. This
9250       information will help bridge operators look up their bridge in
9251       Globe and similar tools. Resolves ticket 10884.
9252     - Improve the message that Tor displays when running as a bridge
9253       using pluggable transports without an Extended ORPort listener.
9254       Also, log the message in the log file too. Resolves ticket 11043.
9256   o Minor features (other):
9257     - Add a new option, PredictedPortsRelevanceTime, to control how long
9258       after having received a request to connect to a given port Tor
9259       will try to keep circuits ready in anticipation of future requests
9260       for that port. Patch from "unixninja92"; implements ticket 9176.
9261     - Generate a warning if any ports are listed in the SocksPolicy,
9262       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
9263       AuthDirBadExit options. (These options only support address
9264       ranges.) Fixes part of ticket 11108.
9265     - Update geoip and geoip6 to the February 7 2014 Maxmind GeoLite2
9266       Country database.
9268   o Minor bugfixes (new since 0.2.5.2-alpha, also in 0.2.4.21):
9269     - Build without warnings under clang 3.4. (We have some macros that
9270       define static functions only some of which will get used later in
9271       the module. Starting with clang 3.4, these give a warning unless the
9272       unused attribute is set on them.) Resolves ticket 10904.
9273     - Fix build warnings about missing "a2x" comment when building the
9274       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
9275       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
9277   o Minor bugfixes (client):
9278     - Improve the log message when we can't connect to a hidden service
9279       because all of the hidden service directory nodes hosting its
9280       descriptor are excluded. Improves on our fix for bug 10722, which
9281       was a bugfix on 0.2.0.10-alpha.
9282     - Raise a control port warning when we fail to connect to all of
9283       our bridges. Previously, we didn't inform the controller, and
9284       the bootstrap process would stall. Fixes bug 11069; bugfix on
9285       0.2.1.2-alpha.
9286     - Exit immediately when a process-owning controller exits.
9287       Previously, tor relays would wait for a little while after their
9288       controller exited, as if they had gotten an INT signal -- but this
9289       was problematic, since there was no feedback for the user. To do a
9290       clean shutdown, controllers should send an INT signal and give Tor
9291       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
9292     - Stop attempting to connect to bridges before our pluggable
9293       transports are configured (harmless but resulted in some erroneous
9294       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
9295     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
9296       generating incorrect SOCKS5 responses, and confusing client
9297       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
9299   o Minor bugfixes (relays and bridges):
9300     - Avoid crashing on a malformed resolv.conf file when running a
9301       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
9302     - Non-exit relays no longer launch mock DNS requests to check for
9303       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
9304       non-exit relays stopped servicing DNS requests. Fixes bug 965;
9305       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
9306     - Bridges now report complete directory request statistics. Related
9307       to bug 5824; bugfix on 0.2.2.1-alpha.
9308     - Bridges now never collect statistics that were designed for
9309       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
9310     - Stop giving annoying warning messages when we decide not to launch
9311       a pluggable transport proxy that we don't need (because there are
9312       no bridges configured to use it). Resolves ticket 5018; bugfix
9313       on 0.2.5.2-alpha.
9314     - Give the correct URL in the warning message when trying to run a
9315       relay on an ancient version of Windows. Fixes bug 9393.
9317   o Minor bugfixes (backtrace support):
9318     - Support automatic backtraces on more platforms by using the
9319       "-fasynchronous-unwind-tables" compiler option. This option is
9320       needed for platforms like 32-bit Intel where "-fomit-frame-pointer"
9321       is on by default and table generation is not. This doesn't yet
9322       add Windows support; only Linux, OSX, and some BSDs are affected.
9323       Reported by 'cypherpunks'; fixes bug 11047; bugfix on 0.2.5.2-alpha.
9324     - Avoid strange behavior if two threads hit failed assertions at the
9325       same time and both try to log backtraces at once. (Previously, if
9326       this had happened, both threads would have stored their intermediate
9327       results in the same buffer, and generated junk outputs.) Reported by
9328       "cypherpunks". Fixes bug 11048; bugfix on 0.2.5.2-alpha.
9329     - Fix a compiler warning in format_number_sigsafe(). Bugfix on
9330       0.2.5.2-alpha; patch from Nick Hopper.
9332   o Minor bugfixes (unit tests):
9333     - Fix a small bug in the unit tests that might have made the tests
9334       call 'chmod' with an uninitialized bitmask. Fixes bug 10928;
9335       bugfix on 0.2.5.1-alpha. Patch from Dana Koch.
9337   o Removed code:
9338     - Remove all remaining code related to version-0 hidden service
9339       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
9340       the rest of bug 10841.
9342   o Documentation:
9343     - Document in the manpage that "KBytes" may also be written as
9344       "kilobytes" or "KB", that "Kbits" may also be written as
9345       "kilobits", and so forth. Closes ticket 9222.
9346     - Document that the ClientOnly config option overrides ORPort.
9347       Our old explanation made ClientOnly sound as though it did
9348       nothing at all. Resolves bug 9059.
9349     - Explain that SocksPolicy, DirPolicy, and similar options don't
9350       take port arguments. Fixes the other part of ticket 11108.
9351     - Fix a comment about the rend_server_descriptor_t.protocols field
9352       to more accurately describe its range. Also, make that field
9353       unsigned, to more accurately reflect its usage. Fixes bug 9099;
9354       bugfix on 0.2.1.5-alpha.
9355     - Fix the manpage's description of HiddenServiceAuthorizeClient:
9356       the maximum client name length is 16, not 19. Fixes bug 11118;
9357       bugfix on 0.2.1.6-alpha.
9359   o Code simplifications and refactoring:
9360     - Get rid of router->address, since in all cases it was just the
9361       string representation of router->addr. Resolves ticket 5528.
9363   o Test infrastructure:
9364     - Update to the latest version of tinytest.
9365     - Improve the tinytest implementation of string operation tests so
9366       that comparisons with NULL strings no longer crash the tests; they
9367       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
9370 Changes in version 0.2.4.21 - 2014-02-28
9371   Tor 0.2.4.21 further improves security against potential adversaries who
9372   find breaking 1024-bit crypto doable, and backports several stability
9373   and robustness patches from the 0.2.5 branch.
9375   o Major features (client security):
9376     - When we choose a path for a 3-hop circuit, make sure it contains
9377       at least one relay that supports the NTor circuit extension
9378       handshake. Otherwise, there is a chance that we're building
9379       a circuit that's worth attacking by an adversary who finds
9380       breaking 1024-bit crypto doable, and that chance changes the game
9381       theory. Implements ticket 9777.
9383   o Major bugfixes:
9384     - Do not treat streams that fail with reason
9385       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
9386       since it could also indicate an ENETUNREACH connection error. Fixes
9387       part of bug 10777; bugfix on 0.2.4.8-alpha.
9389   o Code simplification and refactoring:
9390     - Remove data structures which were introduced to implement the
9391       CellStatistics option: they are now redundant with the new timestamp
9392       field in the regular packed_cell_t data structure, which we did
9393       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
9395   o Minor features:
9396     - Always clear OpenSSL bignums before freeing them -- even bignums
9397       that don't contain secrets. Resolves ticket 10793. Patch by
9398       Florent Daigniere.
9399     - Build without warnings under clang 3.4. (We have some macros that
9400       define static functions only some of which will get used later in
9401       the module. Starting with clang 3.4, these give a warning unless the
9402       unused attribute is set on them.) Resolves ticket 10904.
9403     - Update geoip and geoip6 files to the February 7 2014 Maxmind
9404       GeoLite2 Country database.
9406   o Minor bugfixes:
9407     - Set the listen() backlog limit to the largest actually supported
9408       on the system, not to the value in a header file. Fixes bug 9716;
9409       bugfix on every released Tor.
9410     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
9411       exit node as a NOROUTE error, not an INTERNAL error, since they
9412       can apparently happen when trying to connect to the wrong sort
9413       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
9414     - Fix build warnings about missing "a2x" comment when building the
9415       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
9416       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
9417     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
9418       not entirely remove it from the connection lists. Fixes bug 9602;
9419       bugfix on 0.2.4.4-alpha.
9420     - Fix a segmentation fault in our benchmark code when running with
9421       Fedora's OpenSSL package, or any other OpenSSL that provides
9422       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
9423     - Turn "circuit handshake stats since last time" log messages into a
9424       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
9426   o Documentation fixes:
9427     - Document that all but one DirPort entry must have the NoAdvertise
9428       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
9431 Changes in version 0.2.5.2-alpha - 2014-02-13
9432   Tor 0.2.5.2-alpha includes all the fixes from 0.2.4.18-rc and 0.2.4.20,
9433   like the "poor random number generation" fix and the "building too many
9434   circuits" fix. It also further improves security against potential
9435   adversaries who find breaking 1024-bit crypto doable, and launches
9436   pluggable transports on demand (which gets us closer to integrating
9437   pluggable transport support by default -- not to be confused with Tor
9438   bundles enabling pluggable transports and bridges by default).
9440   o Major features (client security):
9441     - When we choose a path for a 3-hop circuit, make sure it contains
9442       at least one relay that supports the NTor circuit extension
9443       handshake. Otherwise, there is a chance that we're building
9444       a circuit that's worth attacking by an adversary who finds
9445       breaking 1024-bit crypto doable, and that chance changes the game
9446       theory. Implements ticket 9777.
9447     - Clients now look at the "usecreatefast" consensus parameter to
9448       decide whether to use CREATE_FAST or CREATE cells for the first hop
9449       of their circuit. This approach can improve security on connections
9450       where Tor's circuit handshake is stronger than the available TLS
9451       connection security levels, but the tradeoff is more computational
9452       load on guard relays. Implements proposal 221. Resolves ticket 9386.
9454   o Major features (bridges):
9455     - Don't launch pluggable transport proxies if we don't have any
9456       bridges configured that would use them. Now we can list many
9457       pluggable transports, and Tor will dynamically start one when it
9458       hears a bridge address that needs it. Resolves ticket 5018.
9459     - The bridge directory authority now assigns status flags (Stable,
9460       Guard, etc) to bridges based on thresholds calculated over all
9461       Running bridges. Now bridgedb can finally make use of its features
9462       to e.g. include at least one Stable bridge in its answers. Fixes
9463       bug 9859.
9465   o Major features (other):
9466     - Extend ORCONN controller event to include an "ID" parameter,
9467       and add four new controller event types CONN_BW, CIRC_BW,
9468       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
9469       The new events are emitted in private Tor networks only, with the
9470       goal of being able to better track performance and load during
9471       full-network simulations. Implements proposal 218 and ticket 7359.
9472     - On some platforms (currently: recent OSX versions, glibc-based
9473       platforms that support the ELF format, and a few other
9474       Unix-like operating systems), Tor can now dump stack traces
9475       when a crash occurs or an assertion fails. By default, traces
9476       are dumped to stderr (if possible) and to any logs that are
9477       reporting errors. Implements ticket 9299.
9479   o Major bugfixes:
9480     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
9481       not entirely remove it from the connection lists. Fixes bug 9602;
9482       bugfix on 0.2.4.4-alpha.
9483     - Do not treat streams that fail with reason
9484       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
9485       since it could also indicate an ENETUNREACH connection error. Fixes
9486       part of bug 10777; bugfix on 0.2.4.8-alpha.
9488   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
9489     - Do not allow OpenSSL engines to replace the PRNG, even when
9490       HardwareAccel is set. The only default builtin PRNG engine uses
9491       the Intel RDRAND instruction to replace the entire PRNG, and
9492       ignores all attempts to seed it with more entropy. That's
9493       cryptographically stupid: the right response to a new alleged
9494       entropy source is never to discard all previously used entropy
9495       sources. Fixes bug 10402; works around behavior introduced in
9496       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
9497       and "rl1987".
9498     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
9499       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
9500     - Avoid launching spurious extra circuits when a stream is pending.
9501       This fixes a bug where any circuit that _wasn't_ unusable for new
9502       streams would be treated as if it were, causing extra circuits to
9503       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
9505   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
9506     - No longer stop reading or writing on cpuworker connections when
9507       our rate limiting buckets go empty. Now we should handle circuit
9508       handshake requests more promptly. Resolves bug 9731.
9509     - Stop trying to bootstrap all our directory information from
9510       only our first guard. Discovered while fixing bug 9946; bugfix
9511       on 0.2.4.8-alpha.
9513   o Minor features (bridges, pluggable transports):
9514     - Add threshold cutoffs to the networkstatus document created by
9515       the Bridge Authority. Fixes bug 1117.
9516     - On Windows, spawn background processes using the CREATE_NO_WINDOW
9517       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
9518       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
9519       Vidalia set this option for us.) Implements ticket 10297.
9521   o Minor features (security):
9522     - Always clear OpenSSL bignums before freeing them -- even bignums
9523       that don't contain secrets. Resolves ticket 10793. Patch by
9524       Florent Daignière.
9526   o Minor features (config options and command line):
9527     - Add an --allow-missing-torrc commandline option that tells Tor to
9528       run even if the configuration file specified by -f is not available.
9529       Implements ticket 10060.
9530     - Add support for the TPROXY transparent proxying facility on Linux.
9531       See documentation for the new TransProxyType option for more
9532       details. Implementation by "thomo". Closes ticket 10582.
9534   o Minor features (controller):
9535     - Add a new "HS_DESC" controller event that reports activities
9536       related to hidden service descriptors. Resolves ticket 8510.
9537     - New "DROPGUARDS" controller command to forget all current entry
9538       guards. Not recommended for ordinary use, since replacing guards
9539       too frequently makes several attacks easier. Resolves ticket 9934;
9540       patch from "ra".
9542   o Minor features (build):
9543     - Assume that a user using ./configure --host wants to cross-compile,
9544       and give an error if we cannot find a properly named
9545       tool-chain. Add a --disable-tool-name-check option to proceed
9546       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
9547     - If we run ./configure and the compiler recognizes -fstack-protector
9548       but the linker rejects it, warn the user about a potentially missing
9549       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
9551   o Minor features (testing):
9552     - If Python is installed, "make check" now runs extra tests beyond
9553       the unit test scripts.
9554     - When bootstrapping a test network, sometimes very few relays get
9555       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
9556       specify a set of relays which should be voted Guard regardless of
9557       their uptime or bandwidth. Addresses ticket 9206.
9559   o Minor features (log messages):
9560     - When ServerTransportPlugin is set on a bridge, Tor can write more
9561       useful statistics about bridge use in its extrainfo descriptors,
9562       but only if the Extended ORPort ("ExtORPort") is set too. Add a
9563       log message to inform the user in this case. Resolves ticket 9651.
9564     - When receiving a new controller connection, log the origin address.
9565       Resolves ticket 9698; patch from "sigpipe".
9566     - When logging OpenSSL engine status at startup, log the status of
9567       more engines. Fixes ticket 10043; patch from Joshua Datko.
9568     - Turn "circuit handshake stats since last time" log messages into a
9569       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
9571   o Minor features (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
9572     - Improve the circuit queue out-of-memory handler. Previously, when
9573       we ran low on memory, we'd close whichever circuits had the most
9574       queued cells. Now, we close those that have the *oldest* queued
9575       cells, on the theory that those are most responsible for us
9576       running low on memory. Based on analysis from a forthcoming paper
9577       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
9578     - Generate bootstrapping status update events correctly when fetching
9579       microdescriptors. Fixes bug 9927.
9580     - Update to the October 2 2013 Maxmind GeoLite Country database.
9582   o Minor bugfixes (clients):
9583     - When closing a channel that has already been open, do not close
9584       pending circuits that were waiting to connect to the same relay.
9585       Fixes bug 9880; bugfix on 0.2.5.1-alpha. Thanks to skruffy for
9586       finding this bug.
9588   o Minor bugfixes (relays):
9589     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
9590       exit node as a NOROUTE error, not an INTERNAL error, since they
9591       can apparently happen when trying to connect to the wrong sort
9592       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
9594   o Minor bugfixes (bridges):
9595     - Fix a bug where the first connection works to a bridge that uses a
9596       pluggable transport with client-side parameters, but we don't send
9597       the client-side parameters on subsequent connections. (We don't
9598       use any pluggable transports with client-side parameters yet,
9599       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
9600       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
9602   o Minor bugfixes (node selection):
9603     - If ExcludeNodes is set, consider non-excluded hidden service
9604       directory servers before excluded ones. Do not consider excluded
9605       hidden service directory servers at all if StrictNodes is
9606       set. (Previously, we would sometimes decide to connect to those
9607       servers, and then realize before we initiated a connection that
9608       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
9609       Reported by "mr-4".
9610     - If we set the ExitNodes option but it doesn't include any nodes
9611       that have the Exit flag, we would choose not to bootstrap. Now we
9612       bootstrap so long as ExitNodes includes nodes which can exit to
9613       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
9615   o Minor bugfixes (controller and command-line):
9616     - If changing a config option via "setconf" fails in a recoverable
9617       way, we used to nonetheless write our new control ports to the
9618       file described by the "ControlPortWriteToFile" option. Now we only
9619       write out that file if we successfully switch to the new config
9620       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
9621     - When a command-line option such as --version or --help that
9622       ordinarily implies --hush appears on the command line along with
9623       --quiet, then actually obey --quiet. Previously, we obeyed --quiet
9624       only if it appeared later on the command line. Fixes bug 9578;
9625       bugfix on 0.2.5.1-alpha.
9627   o Minor bugfixes (code correctness):
9628     - Previously we used two temporary files when writing descriptors to
9629       disk; now we only use one. Fixes bug 1376.
9630     - Remove an erroneous (but impossible and thus harmless) pointer
9631       comparison that would have allowed compilers to skip a bounds
9632       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
9633       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
9634     - Fix an always-true assertion in pluggable transports code so it
9635       actually checks what it was trying to check. Fixes bug 10046;
9636       bugfix on 0.2.3.9-alpha. Found by "dcb".
9638   o Minor bugfixes (protocol correctness):
9639     - When receiving a VERSIONS cell with an odd number of bytes, close
9640       the connection immediately since the cell is malformed. Fixes bug
9641       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
9642       "rl1987".
9644   o Minor bugfixes (build):
9645     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
9646       turned off (that is, without support for v2 link handshakes). Fixes
9647       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
9648     - Fix compilation warnings and startup issues when running with
9649       "Sandbox 1" and libseccomp-2.1.0. Fixes bug 10563; bugfix on
9650       0.2.5.1-alpha.
9651     - Fix compilation on Solaris 9, which didn't like us having an
9652       identifier named "sun". Fixes bug 10565; bugfix in 0.2.5.1-alpha.
9654   o Minor bugfixes (testing):
9655     - Fix a segmentation fault in our benchmark code when running with
9656       Fedora's OpenSSL package, or any other OpenSSL that provides
9657       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
9659   o Minor bugfixes (log messages):
9660     - Fix a bug where clients using bridges would report themselves
9661       as 50% bootstrapped even without a live consensus document.
9662       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
9663     - Suppress a warning where, if there's only one directory authority
9664       in the network, we would complain that votes and signatures cannot
9665       be uploaded to other directory authorities. Fixes bug 10842;
9666       bugfix on 0.2.2.26-beta.
9667     - Report bootstrapping progress correctly when we're downloading
9668       microdescriptors. We had updated our "do we have enough microdescs
9669       to begin building circuits?" logic most recently in 0.2.4.10-alpha
9670       (see bug 5956), but we left the bootstrap status event logic at
9671       "how far through getting 1/4 of them are we?" Fixes bug 9958;
9672       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
9674   o Minor bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
9675     - Avoid a crash bug when starting with a corrupted microdescriptor
9676       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
9677     - If we fail to dump a previously cached microdescriptor to disk, avoid
9678       freeing duplicate data later on. Fixes bug 10423; bugfix on
9679       0.2.4.13-alpha. Spotted by "bobnomnom".
9681   o Minor bugfixes on 0.2.4.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
9682     - Correctly log long IPv6 exit policies, instead of truncating them
9683       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
9684     - Our default TLS ecdhe groups were backwards: we meant to be using
9685       P224 for relays (for performance win) and P256 for bridges (since
9686       it is more common in the wild). Instead we had it backwards. After
9687       reconsideration, we decided that the default should be P256 on all
9688       hosts, since its security is probably better, and since P224 is
9689       reportedly used quite little in the wild.  Found by "skruffy" on
9690       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
9691     - Free directory authority certificate download statuses on exit
9692       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
9694   o Minor bugfixes on 0.2.3.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
9695     - If the guard we choose first doesn't answer, we would try the
9696       second guard, but once we connected to the second guard we would
9697       abandon it and retry the first one, slowing down bootstrapping.
9698       The fix is to treat all our initially chosen guards as acceptable
9699       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
9700     - Fix an assertion failure that would occur when disabling the
9701       ORPort setting on a running Tor process while accounting was
9702       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
9703     - When examining the list of network interfaces to find our address,
9704       do not consider non-running or disabled network interfaces. Fixes
9705       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
9706     - Avoid an off-by-one error when checking buffer boundaries when
9707       formatting the exit status of a pluggable transport helper.
9708       This is probably not an exploitable bug, but better safe than
9709       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
9710       Pedro Ribeiro.
9712   o Removed code and features:
9713     - Clients now reject any directory authority certificates lacking
9714       a dir-key-crosscert element. These have been included since
9715       0.2.1.9-alpha, so there's no real reason for them to be optional
9716       any longer. Completes proposal 157. Resolves ticket 10162.
9717     - Remove all code that existed to support the v2 directory system,
9718       since there are no longer any v2 directory authorities. Resolves
9719       ticket 10758.
9720     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
9721       options, which were used for designating authorities as "Hidden
9722       service authorities". There has been no use of hidden service
9723       authorities since 0.2.2.1-alpha, when we stopped uploading or
9724       downloading v0 hidden service descriptors. Fixes bug 10881; also
9725       part of a fix for bug 10841.
9727   o Code simplification and refactoring:
9728     - Remove some old fallback code designed to keep Tor clients working
9729       in a network with only two working relays. Elsewhere in the code we
9730       have long since stopped supporting such networks, so there wasn't
9731       much point in keeping it around. Addresses ticket 9926.
9732     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
9733       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
9734     - Remove data structures which were introduced to implement the
9735       CellStatistics option: they are now redundant with the addition
9736       of a timestamp to the regular packed_cell_t data structure, which
9737       we did in 0.2.4.18-rc in order to resolve ticket 9093. Implements
9738       ticket 10870.
9740   o Documentation (man page) fixes:
9741     - Update manpage to describe some of the files you can expect to
9742       find in Tor's DataDirectory. Addresses ticket 9839.
9743     - Document that all but one DirPort entry must have the NoAdvertise
9744       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
9746   o Documentation fixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
9747     - Clarify the usage and risks of setting the ContactInfo torrc line
9748       for your relay or bridge. Resolves ticket 9854.
9749     - Add anchors to the manpage so we can link to the html version of
9750       the documentation for specific options. Resolves ticket 9866.
9751     - Replace remaining references to DirServer in man page and
9752       log entries. Resolves ticket 10124.
9754   o Tool changes:
9755     - Make the "tor-gencert" tool used by directory authority operators
9756       create 2048-bit signing keys by default (rather than 1024-bit, since
9757       1024-bit is uncomfortably small these days). Addresses ticket 10324.
9760 Changes in version 0.2.4.20 - 2013-12-22
9761   Tor 0.2.4.20 fixes potentially poor random number generation for users
9762   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
9763   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
9764   and 4) have no state file in their DataDirectory (as would happen on
9765   first start). Users who generated relay or hidden service identity
9766   keys in such a situation should discard them and generate new ones.
9768   This release also fixes a logic error that caused Tor clients to build
9769   many more preemptive circuits than they actually need.
9771   o Major bugfixes:
9772     - Do not allow OpenSSL engines to replace the PRNG, even when
9773       HardwareAccel is set. The only default builtin PRNG engine uses
9774       the Intel RDRAND instruction to replace the entire PRNG, and
9775       ignores all attempts to seed it with more entropy. That's
9776       cryptographically stupid: the right response to a new alleged
9777       entropy source is never to discard all previously used entropy
9778       sources. Fixes bug 10402; works around behavior introduced in
9779       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
9780       and "rl1987".
9781     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
9782       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
9783     - Avoid launching spurious extra circuits when a stream is pending.
9784       This fixes a bug where any circuit that _wasn't_ unusable for new
9785       streams would be treated as if it were, causing extra circuits to
9786       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
9788   o Minor bugfixes:
9789     - Avoid a crash bug when starting with a corrupted microdescriptor
9790       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
9791     - If we fail to dump a previously cached microdescriptor to disk, avoid
9792       freeing duplicate data later on. Fixes bug 10423; bugfix on
9793       0.2.4.13-alpha. Spotted by "bobnomnom".
9796 Changes in version 0.2.4.19 - 2013-12-11
9797   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
9798   (1986-2013). Aaron worked on diverse projects including helping to guide
9799   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
9800   transparency to the U.S government's PACER documents, and contributing
9801   design and development for Tor and Tor2Web. Aaron was one of the latest
9802   martyrs in our collective fight for civil liberties and human rights,
9803   and his death is all the more painful because he was one of us.
9805   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
9806   a new circuit handshake and link encryption that use ECC to provide
9807   better security and efficiency; makes relays better manage circuit
9808   creation requests; uses "directory guards" to reduce client enumeration
9809   risks; makes bridges collect and report statistics about the pluggable
9810   transports they support; cleans up and improves our geoip database;
9811   gets much closer to IPv6 support for clients, bridges, and relays; makes
9812   directory authorities use measured bandwidths rather than advertised
9813   ones when computing flags and thresholds; disables client-side DNS
9814   caching to reduce tracking risks; and fixes a big bug in bridge
9815   reachability testing. This release introduces two new design
9816   abstractions in the code: a new "channel" abstraction between circuits
9817   and or_connections to allow for implementing alternate relay-to-relay
9818   transports, and a new "circuitmux" abstraction storing the queue of
9819   circuits for a channel. The release also includes many stability,
9820   security, and privacy fixes.
9823 Changes in version 0.2.4.18-rc - 2013-11-16
9824   Tor 0.2.4.18-rc is the fourth release candidate for the Tor 0.2.4.x
9825   series. It takes a variety of fixes from the 0.2.5.x branch to improve
9826   stability, performance, and better handling of edge cases.
9828   o Major features:
9829     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
9830       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
9831       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
9832       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
9833       them to solve bug 6033.)
9835   o Major bugfixes:
9836     - No longer stop reading or writing on cpuworker connections when
9837       our rate limiting buckets go empty. Now we should handle circuit
9838       handshake requests more promptly. Resolves bug 9731.
9839     - If we are unable to save a microdescriptor to the journal, do not
9840       drop it from memory and then reattempt downloading it. Fixes bug
9841       9645; bugfix on 0.2.2.6-alpha.
9842     - Stop trying to bootstrap all our directory information from
9843       only our first guard. Discovered while fixing bug 9946; bugfix
9844       on 0.2.4.8-alpha.
9845     - The new channel code sometimes lost track of in-progress circuits,
9846       causing long-running clients to stop building new circuits. The
9847       fix is to always call circuit_n_chan_done(chan, 0) from
9848       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
9850   o Minor bugfixes (on 0.2.4.x):
9851     - Correctly log long IPv6 exit policies, instead of truncating them
9852       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
9853     - Our default TLS ecdhe groups were backwards: we meant to be using
9854       P224 for relays (for performance win) and P256 for bridges (since
9855       it is more common in the wild). Instead we had it backwards. After
9856       reconsideration, we decided that the default should be P256 on all
9857       hosts, since its security is probably better, and since P224 is
9858       reportedly used quite little in the wild.  Found by "skruffy" on
9859       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
9860     - Free directory authority certificate download statuses on exit
9861       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
9863   o Minor bugfixes (on 0.2.3.x and earlier):
9864     - If the guard we choose first doesn't answer, we would try the
9865       second guard, but once we connected to the second guard we would
9866       abandon it and retry the first one, slowing down bootstrapping.
9867       The fix is to treat all our initially chosen guards as acceptable
9868       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
9869     - Fix an assertion failure that would occur when disabling the
9870       ORPort setting on a running Tor process while accounting was
9871       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
9872     - When examining the list of network interfaces to find our address,
9873       do not consider non-running or disabled network interfaces. Fixes
9874       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
9875     - Avoid an off-by-one error when checking buffer boundaries when
9876       formatting the exit status of a pluggable transport helper.
9877       This is probably not an exploitable bug, but better safe than
9878       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
9879       Pedro Ribeiro.
9881   o Minor features (protecting client timestamps):
9882     - Clients no longer send timestamps in their NETINFO cells. These were
9883       not used for anything, and they provided one small way for clients
9884       to be distinguished from each other as they moved from network to
9885       network or behind NAT. Implements part of proposal 222.
9886     - Clients now round timestamps in INTRODUCE cells down to the nearest
9887       10 minutes. If a new Support022HiddenServices option is set to 0, or
9888       if it's set to "auto" and the feature is disabled in the consensus,
9889       the timestamp is sent as 0 instead. Implements part of proposal 222.
9890     - Stop sending timestamps in AUTHENTICATE cells. This is not such
9891       a big deal from a security point of view, but it achieves no actual
9892       good purpose, and isn't needed. Implements part of proposal 222.
9893     - Reduce down accuracy of timestamps in hidden service descriptors.
9894       Implements part of proposal 222.
9896   o Minor features (other):
9897     - Improve the circuit queue out-of-memory handler. Previously, when
9898       we ran low on memory, we'd close whichever circuits had the most
9899       queued cells. Now, we close those that have the *oldest* queued
9900       cells, on the theory that those are most responsible for us
9901       running low on memory. Based on analysis from a forthcoming paper
9902       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
9903     - Generate bootstrapping status update events correctly when fetching
9904       microdescriptors. Fixes bug 9927.
9905     - Update to the October 2 2013 Maxmind GeoLite Country database.
9907   o Documentation fixes:
9908     - Clarify the usage and risks of setting the ContactInfo torrc line
9909       for your relay or bridge. Resolves ticket 9854.
9910     - Add anchors to the manpage so we can link to the html version of
9911       the documentation for specific options. Resolves ticket 9866.
9912     - Replace remaining references to DirServer in man page and
9913       log entries. Resolves ticket 10124.
9916 Changes in version 0.2.5.1-alpha - 2013-10-02
9917   Tor 0.2.5.1-alpha introduces experimental support for syscall sandboxing
9918   on Linux, allows bridges that offer pluggable transports to report usage
9919   statistics, fixes many issues to make testing easier, and provides
9920   a pile of minor features and bugfixes that have been waiting for a
9921   release of the new branch.
9923   This is the first alpha release in a new series, so expect there to
9924   be bugs. Users who would rather test out a more stable branch should
9925   stay with 0.2.4.x for now.
9927   o Major features (security):
9928     - Use the seccomp2 syscall filtering facility on Linux to limit
9929       which system calls Tor can invoke. This is an experimental,
9930       Linux-only feature to provide defense-in-depth against unknown
9931       attacks. To try turning it on, set "Sandbox 1" in your torrc
9932       file. Please be ready to report bugs. We hope to add support
9933       for better sandboxing in the future, including more fine-grained
9934       filters, better division of responsibility, and support for more
9935       platforms. This work has been done by Cristian-Matei Toader for
9936       Google Summer of Code.
9937     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
9938       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
9939       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
9940       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
9941       them to solve bug 6033.)
9943   o Major features (other):
9944     - Add support for passing arguments to managed pluggable transport
9945       proxies. Implements ticket 3594.
9946     - Bridges now track GeoIP information and the number of their users
9947       even when pluggable transports are in use, and report usage
9948       statistics in their extra-info descriptors. Resolves tickets 4773
9949       and 5040.
9950     - Make testing Tor networks bootstrap better: lower directory fetch
9951       retry schedules and maximum interval without directory requests,
9952       and raise maximum download tries. Implements ticket 6752.
9953     - Add make target 'test-network' to run tests on a Chutney network.
9954       Implements ticket 8530.
9955     - The ntor handshake is now on-by-default, no matter what the
9956       directory authorities recommend. Implements ticket 8561.
9958   o Major bugfixes:
9959     - Instead of writing destroy cells directly to outgoing connection
9960       buffers, queue them and intersperse them with other outgoing cells.
9961       This can prevent a set of resource starvation conditions where too
9962       many pending destroy cells prevent data cells from actually getting
9963       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
9964       bugfix on 0.2.0.1-alpha.
9965     - If we are unable to save a microdescriptor to the journal, do not
9966       drop it from memory and then reattempt downloading it. Fixes bug
9967       9645; bugfix on 0.2.2.6-alpha.
9968     - The new channel code sometimes lost track of in-progress circuits,
9969       causing long-running clients to stop building new circuits. The
9970       fix is to always call circuit_n_chan_done(chan, 0) from
9971       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
9973   o Build features:
9974     - Tor now builds each source file in two modes: a mode that avoids
9975       exposing identifiers needlessly, and another mode that exposes
9976       more identifiers for testing. This lets the compiler do better at
9977       optimizing the production code, while enabling us to take more
9978       radical measures to let the unit tests test things.
9979     - The production builds no longer include functions used only in
9980       the unit tests; all functions exposed from a module only for
9981       unit-testing are now static in production builds.
9982     - Add an --enable-coverage configuration option to make the unit
9983       tests (and a new src/or/tor-cov target) to build with gcov test
9984       coverage support.
9986   o Testing:
9987     - We now have rudimentary function mocking support that our unit
9988       tests can use to test functions in isolation. Function mocking
9989       lets the tests temporarily replace a function's dependencies with
9990       stub functions, so that the tests can check the function without
9991       invoking the other functions it calls.
9992     - Add more unit tests for the <circid,channel>->circuit map, and
9993       the destroy-cell-tracking code to fix bug 7912.
9994     - Unit tests for failing cases of the TAP onion handshake.
9995     - More unit tests for address-manipulation functions.
9997   o Minor features (protecting client timestamps):
9998     - Clients no longer send timestamps in their NETINFO cells. These were
9999       not used for anything, and they provided one small way for clients
10000       to be distinguished from each other as they moved from network to
10001       network or behind NAT. Implements part of proposal 222.
10002     - Clients now round timestamps in INTRODUCE cells down to the nearest
10003       10 minutes. If a new Support022HiddenServices option is set to 0, or
10004       if it's set to "auto" and the feature is disabled in the consensus,
10005       the timestamp is sent as 0 instead. Implements part of proposal 222.
10006     - Stop sending timestamps in AUTHENTICATE cells. This is not such
10007       a big deal from a security point of view, but it achieves no actual
10008       good purpose, and isn't needed. Implements part of proposal 222.
10009     - Reduce down accuracy of timestamps in hidden service descriptors.
10010       Implements part of proposal 222.
10012   o Minor features (config options):
10013     - Config (torrc) lines now handle fingerprints which are missing
10014       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
10015     - Support a --dump-config option to print some or all of the
10016       configured options. Mainly useful for debugging the command-line
10017       option parsing code. Helps resolve ticket 4647.
10018     - Raise awareness of safer logging: notify user of potentially
10019       unsafe config options, like logging more verbosely than severity
10020       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
10021     - Add a new configuration option TestingV3AuthVotingStartOffset
10022       that bootstraps a network faster by changing the timing for
10023       consensus votes. Addresses ticket 8532.
10024     - Add a new torrc option "ServerTransportOptions" that allows
10025       bridge operators to pass configuration parameters to their
10026       pluggable transports. Resolves ticket 8929.
10027     - The config (torrc) file now accepts bandwidth and space limits in
10028       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
10029       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
10030       Patch by CharlieB.
10032   o Minor features (build):
10033     - Add support for `--library-versions` flag. Implements ticket 6384.
10034     - Return the "unexpected sendme" warnings to a warn severity, but make
10035       them rate limited, to help diagnose ticket 8093.
10036     - Detect a missing asciidoc, and warn the user about it, during
10037       configure rather than at build time. Fixes issue 6506. Patch from
10038       Arlo Breault.
10040   o Minor features (other):
10041     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
10042       sockets in a single system call. Implements ticket 5129.
10043     - Log current accounting state (bytes sent and received + remaining
10044       time for the current accounting period) in the relay's heartbeat
10045       message. Implements ticket 5526; patch from Peter Retzlaff.
10046     - Implement the TRANSPORT_LAUNCHED control port event that
10047       notifies controllers about new launched pluggable
10048       transports. Resolves ticket 5609.
10049     - If we're using the pure-C 32-bit curve25519_donna implementation
10050       of curve25519, build it with the -fomit-frame-pointer option to
10051       make it go faster on register-starved hosts. This improves our
10052       handshake performance by about 6% on i386 hosts without nacl.
10053       Closes ticket 8109.
10054     - Update to the September 4 2013 Maxmind GeoLite Country database.
10056   o Minor bugfixes:
10057     - Set the listen() backlog limit to the largest actually supported
10058       on the system, not to the value in a header file. Fixes bug 9716;
10059       bugfix on every released Tor.
10060     - No longer accept malformed http headers when parsing urls from
10061       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
10062       bugfix on 0.0.6pre1.
10063     - In munge_extrainfo_into_routerinfo(), check the return value of
10064       memchr(). This would have been a serious issue if we ever passed
10065       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
10066       from Arlo Breault.
10067     - On the chance that somebody manages to build Tor on a
10068       platform where time_t is unsigned, correct the way that
10069       microdesc_add_to_cache() handles negative time arguments.
10070       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
10071     - Reject relative control socket paths and emit a warning. Previously,
10072       single-component control socket paths would be rejected, but Tor
10073       would not log why it could not validate the config. Fixes bug 9258;
10074       bugfix on 0.2.3.16-alpha.
10076   o Minor bugfixes (command line):
10077     - Use a single command-line parser for parsing torrc options on the
10078       command line and for finding special command-line options to avoid
10079       inconsistent behavior for torrc option arguments that have the same
10080       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
10081       0.0.9pre5.
10082     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
10083       9573; bugfix on 0.0.9pre5.
10085   o Minor fixes (build, auxiliary programs):
10086     - Stop preprocessing the "torify" script with autoconf, since
10087       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
10088       from Guilhem.
10089     - The tor-fw-helper program now follows the standard convention and
10090       exits with status code "0" on success. Fixes bug 9030; bugfix on
10091       0.2.3.1-alpha. Patch by Arlo Breault.
10092     - Corrected ./configure advice for what openssl dev package you should
10093       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
10095   o Minor code improvements:
10096     - Remove constants and tests for PKCS1 padding; it's insecure and
10097       shouldn't be used for anything new. Fixes bug 8792; patch
10098       from Arlo Breault.
10099     - Remove instances of strcpy() from the unit tests. They weren't
10100       hurting anything, since they were only in the unit tests, but it's
10101       embarassing to have strcpy() in the code at all, and some analysis
10102       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
10103       0.2.3.8-alpha. Patch from Arlo Breault.
10105   o Removed features:
10106     - Remove migration code from when we renamed the "cached-routers"
10107       file to "cached-descriptors" back in 0.2.0.8-alpha. This
10108       incidentally resolves ticket 6502 by cleaning up the related code
10109       a bit. Patch from Akshay Hebbar.
10111   o Code simplification and refactoring:
10112     - Extract the common duplicated code for creating a subdirectory
10113       of the data directory and writing to a file in it. Fixes ticket
10114       4282; patch from Peter Retzlaff.
10115     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
10116       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
10117       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
10118     - Add a set of accessor functions for the circuit timeout data
10119       structure. Fixes ticket 6153; patch from "piet".
10120     - Clean up exit paths from connection_listener_new(). Closes ticket
10121       8789. Patch from Arlo Breault.
10122     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
10123       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
10124     - Use a doubly-linked list to implement the global circuit list.
10125       Resolves ticket 9108. Patch from Marek Majkowski.
10126     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
10129 Changes in version 0.2.4.17-rc - 2013-09-05
10130   Tor 0.2.4.17-rc is the third release candidate for the Tor 0.2.4.x
10131   series. It adds an emergency step to help us tolerate the massive
10132   influx of users: 0.2.4 clients using the new (faster and safer) "NTor"
10133   circuit-level handshakes now effectively jump the queue compared to
10134   the 0.2.3 clients using "TAP" handshakes. This release also fixes a
10135   big bug hindering bridge reachability tests.
10137   o Major features:
10138     - Relays now process the new "NTor" circuit-level handshake requests
10139       with higher priority than the old "TAP" circuit-level handshake
10140       requests. We still process some TAP requests to not totally starve
10141       0.2.3 clients when NTor becomes popular. A new consensus parameter
10142       "NumNTorsPerTAP" lets us tune the balance later if we need to.
10143       Implements ticket 9574.
10145   o Major bugfixes:
10146     - If the circuit build timeout logic is disabled (via the consensus,
10147       or because we are an authority), then don't build testing circuits.
10148       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
10149     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
10150       previously they did not, which prevented them from receiving
10151       successful connections from relays for self-test or bandwidth
10152       testing. Also, when a relay is extending a circuit to a bridge,
10153       it needs to send a NETINFO cell, even when the bridge hasn't sent
10154       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
10155     - If the time to download the next old-style networkstatus is in
10156       the future, do not decline to consider whether to download the
10157       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
10158       0.2.3.14-alpha.
10160   o Minor bugfixes:
10161     - Avoid double-closing the listener socket in our socketpair()
10162       replacement (used on Windows) in the case where the addresses on
10163       our opened sockets don't match what we expected. Fixes bug 9400;
10164       bugfix on 0.0.2pre7. Found by Coverity.
10166   o Minor fixes (config options):
10167     - Avoid overflows when the user sets MaxCircuitDirtiness to a
10168       ridiculously high value, by imposing a (ridiculously high) 30-day
10169       maximum on MaxCircuitDirtiness.
10170     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
10171       message is logged at notice, not at info.
10172     - Warn and fail if a server is configured not to advertise any
10173       ORPorts at all. (We need *something* to put in our descriptor,
10174       or we just won't work.)
10176   o Minor features:
10177     - Track how many "TAP" and "NTor" circuit handshake requests we get,
10178       and how many we complete, and log it every hour to help relay
10179       operators follow trends in network load. Addresses ticket 9658.
10180     - Update to the August 7 2013 Maxmind GeoLite Country database.
10183 Changes in version 0.2.4.16-rc - 2013-08-10
10184   Tor 0.2.4.16-rc is the second release candidate for the Tor 0.2.4.x
10185   series. It fixes several crash bugs in the 0.2.4 branch.
10187   o Major bugfixes:
10188     - Fix a bug in the voting algorithm that could yield incorrect results
10189       when a non-naming authority declared too many flags. Fixes bug 9200;
10190       bugfix on 0.2.0.3-alpha.
10191     - Fix an uninitialized read that could in some cases lead to a remote
10192       crash while parsing INTRODUCE2 cells. Bugfix on 0.2.4.1-alpha.
10193       Anybody running a hidden service on the experimental 0.2.4.x
10194       branch should upgrade. (This is, so far as we know, unrelated to
10195       the recent news.)
10196     - Avoid an assertion failure when processing DNS replies without the
10197       answer types we expected. Fixes bug 9337; bugfix on 0.2.4.7-alpha.
10198     - Avoid a crash when using --hash-password. Fixes bug 9295; bugfix on
10199       0.2.4.15-rc. Found by stem integration tests.
10201   o Minor bugfixes:
10202     - Fix an invalid memory read that occured when a pluggable
10203       transport proxy failed its configuration protocol.
10204       Fixes bug 9288; bugfix on 0.2.4.1-alpha.
10205     - When evaluating whether to use a connection that we haven't
10206       decided is canonical using a recent link protocol version,
10207       decide that it's canonical only if it used address _does_
10208       match the desired address. Fixes bug 9309; bugfix on
10209       0.2.4.4-alpha. Reported by skruffy.
10210     - Make the default behavior of NumDirectoryGuards be to track
10211       NumEntryGuards. Now a user who changes only NumEntryGuards will get
10212       the behavior she expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
10213     - Fix a spurious compilation warning with some older versions of
10214       GCC on FreeBSD. Fixes bug 9254; bugfix on 0.2.4.14-alpha.
10216   o Minor features:
10217     - Update to the July 3 2013 Maxmind GeoLite Country database.
10220 Changes in version 0.2.4.15-rc - 2013-07-01
10221   Tor 0.2.4.15-rc is the first release candidate for the Tor 0.2.4.x
10222   series. It fixes a few smaller bugs, but generally appears stable.
10223   Please test it and let us know whether it is!
10225   o Major bugfixes:
10226     - When receiving a new configuration file via the control port's
10227       LOADCONF command, do not treat the defaults file as absent.
10228       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
10230   o Minor features:
10231     - Issue a warning when running with the bufferevents backend enabled.
10232       It's still not stable, and people should know that they're likely
10233       to hit unexpected problems. Closes ticket 9147.
10236 Changes in version 0.2.4.14-alpha - 2013-06-18
10237   Tor 0.2.4.14-alpha fixes a pair of client guard enumeration problems
10238   present in 0.2.4.13-alpha.
10240   o Major bugfixes:
10241     - When we have too much memory queued in circuits (according to a new
10242       MaxMemInCellQueues option), close the circuits consuming the most
10243       memory. This prevents us from running out of memory as a relay if
10244       circuits fill up faster than they can be drained. Fixes bug 9063;
10245       bugfix on the 54th commit of Tor. This bug is a further fix beyond
10246       bug 6252, whose fix was merged into 0.2.3.21-rc.
10248       This change also fixes an earlier approach taken in 0.2.4.13-alpha,
10249       where we tried to solve this issue simply by imposing an upper limit
10250       on the number of queued cells for a single circuit. That approach
10251       proved to be problematic, since there are ways to provoke clients to
10252       send a number of cells in excess of any such reasonable limit. Fixes
10253       bug 9072; bugfix on 0.2.4.13-alpha.
10255     - Limit hidden service descriptors to at most ten introduction
10256       points, to slow one kind of guard enumeration. Fixes bug 9002;
10257       bugfix on 0.1.1.11-alpha.
10260 Changes in version 0.2.4.13-alpha - 2013-06-14
10261   Tor 0.2.4.13-alpha fixes a variety of potential remote crash
10262   vulnerabilities, makes socks5 username/password circuit isolation
10263   actually actually work (this time for sure!), and cleans up a bunch
10264   of other issues in preparation for a release candidate.
10266   o Major bugfixes (robustness):
10267     - Close any circuit that has too many cells queued on it. Fixes
10268       bug 9063; bugfix on the 54th commit of Tor. This bug is a further
10269       fix beyond bug 6252, whose fix was merged into 0.2.3.21-rc.
10270     - Prevent the get_freelists() function from running off the end of
10271       the list of freelists if it somehow gets an unrecognized
10272       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
10273       eugenis.
10274     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
10275       when an exit connection with optimistic data succeeds immediately
10276       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
10277       0.2.3.1-alpha.
10278     - Fix a directory authority crash bug when building a consensus
10279       using an older consensus as its basis. Fixes bug 8833. Bugfix
10280       on 0.2.4.12-alpha.
10282   o Major bugfixes:
10283     - Avoid a memory leak where we would leak a consensus body when we
10284       find that a consensus which we couldn't previously verify due to
10285       missing certificates is now verifiable. Fixes bug 8719; bugfix
10286       on 0.2.0.10-alpha.
10287     - We used to always request authority certificates by identity digest,
10288       meaning we'd get the newest one even when we wanted one with a
10289       different signing key. Then we would complain about being given
10290       a certificate we already had, and never get the one we really
10291       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
10292       resource to request the one we want. Fixes bug 5595; bugfix on
10293       0.2.0.8-alpha.
10294     - Follow the socks5 protocol when offering username/password
10295       authentication. The fix for bug 8117 exposed this bug, and it
10296       turns out real-world applications like Pidgin do care. Bugfix on
10297       0.2.3.2-alpha; fixes bug 8879.
10298     - Prevent failures on Windows Vista and later when rebuilding the
10299       microdescriptor cache. Diagnosed by Robert Ransom. Fixes bug 8822;
10300       bugfix on 0.2.4.12-alpha.
10302   o Minor bugfixes:
10303     - Fix an impossible buffer overrun in the AES unit tests. Fixes
10304       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
10305     - If for some reason we fail to write a microdescriptor while
10306       rebuilding the cache, do not let the annotations from that
10307       microdescriptor linger in the cache file, and do not let the
10308       microdescriptor stay recorded as present in its old location.
10309       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
10310     - Fix a memory leak that would occur whenever a configuration
10311       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
10312     - Paste the description for PathBias parameters from the man
10313       page into or.h, so the code documents them too. Fixes bug 7982;
10314       bugfix on 0.2.3.17-beta and 0.2.4.8-alpha.
10315     - Relays now treat a changed IPv6 ORPort as sufficient reason to
10316       publish an updated descriptor. Fixes bug 6026; bugfix on
10317       0.2.4.1-alpha.
10318     - When launching a resolve request on behalf of an AF_UNIX control
10319       socket, omit the address field of the new entry connection, used in
10320       subsequent controller events, rather than letting tor_dup_addr()
10321       set it to "<unknown address type>". Fixes bug 8639; bugfix on
10322       0.2.4.12-alpha.
10324   o Minor bugfixes (log messages):
10325     - Fix a scaling issue in the path bias accounting code that
10326       resulted in "Bug:" log messages from either
10327       pathbias_scale_close_rates() or pathbias_count_build_success().
10328       This represents a bugfix on a previous bugfix: the original fix
10329       attempted in 0.2.4.10-alpha was incomplete. Fixes bug 8235; bugfix
10330       on 0.2.4.1-alpha.
10331     - Give a less useless error message when the user asks for an IPv4
10332       address on an IPv6-only port, or vice versa. Fixes bug 8846; bugfix
10333       on 0.2.4.7-alpha.
10335   o Minor features:
10336     - Downgrade "unexpected SENDME" warnings to protocol-warn for 0.2.4.x,
10337       to tolerate bug 8093 for now.
10338     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
10339       in directory authority votes to describe whether they have enough
10340       measured bandwidths to ignore advertised (relay descriptor)
10341       bandwidth claims. Resolves ticket 8711.
10342     - Update to the June 5 2013 Maxmind GeoLite Country database.
10344   o Removed documentation:
10345     - Remove some of the older contents of doc/ as obsolete; move others
10346       to torspec.git. Fixes bug 8965.
10348   o Code simplification and refactoring:
10349     - Avoid using character buffers when constructing most directory
10350       objects: this approach was unwieldy and error-prone. Instead,
10351       build smartlists of strings, and concatenate them when done.
10354 Changes in version 0.2.4.12-alpha - 2013-04-18
10355   Tor 0.2.4.12-alpha moves Tor forward on several fronts: it starts the
10356   process for lengthening the guard rotation period, makes directory
10357   authority opinions in the consensus a bit less gameable, makes socks5
10358   username/password circuit isolation actually work, and fixes a wide
10359   variety of other issues.
10361   o Major features:
10362     - Raise the default time that a client keeps an entry guard from
10363       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
10364       2012 paper. (We would make it even longer, but we need better client
10365       load balancing first.) Also, make the guard lifetime controllable
10366       via a new GuardLifetime torrc option and a GuardLifetime consensus
10367       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
10368     - Directory authorities now prefer using measured bandwidths to
10369       advertised ones when computing flags and thresholds. Resolves
10370       ticket 8273.
10371     - Directory authorities that have more than a threshold number
10372       of relays with measured bandwidths now treat relays with unmeasured
10373       bandwidths as having bandwidth 0. Resolves ticket 8435.
10375   o Major bugfixes (assert / resource use):
10376     - Avoid a bug where our response to TLS renegotiation under certain
10377       network conditions could lead to a busy-loop, with 100% CPU
10378       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
10379     - Avoid an assertion when we discover that we'd like to write a cell
10380       onto a closing connection: just discard the cell. Fixes another
10381       case of bug 7350; bugfix on 0.2.4.4-alpha.
10383   o Major bugfixes (client-side privacy):
10384     - When we mark a circuit as unusable for new circuits, have it
10385       continue to be unusable for new circuits even if MaxCircuitDirtiness
10386       is increased too much at the wrong time, or the system clock jumps
10387       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
10388     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
10389       which have resolved to internal addresses") is set, apply that
10390       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
10391     - When an exit relay rejects a stream with reason "exit policy", but
10392       we only know an exit policy summary (e.g. from the microdesc
10393       consensus) for it, do not mark the relay as useless for all exiting.
10394       Instead, mark just the circuit as unsuitable for that particular
10395       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
10396     - Allow applications to get proper stream isolation with
10397       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
10398       username/password authentication also offer "no authentication". Tor
10399       had previously preferred "no authentication", so the applications
10400       never actually sent Tor their auth details. Now Tor selects
10401       username/password authentication if it's offered. You can disable
10402       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
10403       bug 8117; bugfix on 0.2.3.3-alpha.
10405   o Major bugfixes (other):
10406     - When unable to find any working directory nodes to use as a
10407       directory guard, give up rather than adding the same non-working
10408       nodes to the directory guard list over and over. Fixes bug 8231;
10409       bugfix on 0.2.4.8-alpha.
10411   o Minor features:
10412     - Reject as invalid most directory objects containing a NUL.
10413       Belt-and-suspender fix for bug 8037.
10414     - In our testsuite, create temporary directories with a bit more
10415       entropy in their name to make name collisions less likely. Fixes
10416       bug 8638.
10417     - Add CACHED keyword to ADDRMAP events in the control protocol
10418       to indicate whether a DNS result will be cached or not. Resolves
10419       ticket 8596.
10420     - Update to the April 3 2013 Maxmind GeoLite Country database.
10422   o Minor features (build):
10423     - Detect and reject attempts to build Tor with threading support
10424       when OpenSSL has been compiled without threading support.
10425       Fixes bug 6673.
10426     - Clarify that when autoconf is checking for nacl, it is checking
10427       specifically for nacl with a fast curve25519 implementation.
10428       Fixes bug 8014.
10429     - Warn if building on a platform with an unsigned time_t: there
10430       are too many places where Tor currently assumes that time_t can
10431       hold negative values. We'd like to fix them all, but probably
10432       some will remain.
10434   o Minor bugfixes (build):
10435     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
10436       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
10437       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
10438     - Add the old src/or/micro-revision.i filename to CLEANFILES.
10439       On the off chance that somebody has one, it will go away as soon
10440       as they run "make clean". Fix for bug 7143; bugfix on 0.2.4.1-alpha.
10441     - Build Tor correctly on 32-bit platforms where the compiler can build
10442       but not run code using the "uint128_t" construction. Fixes bug 8587;
10443       bugfix on 0.2.4.8-alpha.
10444     - Fix compilation warning with some versions of clang that would
10445       prefer the -Wswitch-enum compiler flag to warn about switch
10446       statements with missing enum values, even if those switch
10447       statements have a "default:" statement. Fixes bug 8598; bugfix
10448       on 0.2.4.10-alpha.
10450   o Minor bugfixes (protocol):
10451     - Fix the handling of a TRUNCATE cell when it arrives while the
10452       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
10453     - Fix a misframing issue when reading the version numbers in a
10454       VERSIONS cell. Previously we would recognize [00 01 00 02] as
10455       'version 1, version 2, and version 0x100', when it should have
10456       only included versions 1 and 2. Fixes bug 8059; bugfix on
10457       0.2.0.10-alpha. Reported pseudonymously.
10458     - Make the format and order of STREAM events for DNS lookups
10459       consistent among the various ways to launch DNS lookups. Fixes
10460       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy."
10461     - Correct our check for which versions of Tor support the EXTEND2
10462       cell. We had been willing to send it to Tor 0.2.4.7-alpha and
10463       later, when support was really added in version 0.2.4.8-alpha.
10464       Fixes bug 8464; bugfix on 0.2.4.8-alpha.
10466   o Minor bugfixes (other):
10467     - Correctly store microdescriptors and extrainfo descriptors with
10468       an internal NUL byte. Fixes bug 8037; bugfix on 0.2.0.1-alpha.
10469       Bug reported by "cypherpunks".
10470     - Increase the width of the field used to remember a connection's
10471       link protocol version to two bytes. Harmless for now, since the
10472       only currently recognized versions are one byte long. Reported
10473       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
10474     - If the state file's path bias counts are invalid (presumably from a
10475       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
10476       additional checks and log messages to the scaling of Path Bias
10477       counts, in case there still are remaining issues with scaling.
10478       Should help resolve bug 8235.
10479     - Eliminate several instances where we use "Nickname=ID" to refer to
10480       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
10481       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
10482       on 0.2.3.21-rc, 0.2.4.5-alpha, 0.2.4.8-alpha, and 0.2.4.10-alpha.
10484   o Minor bugfixes (syscalls):
10485     - Always check the return values of functions fcntl() and
10486       setsockopt(). We don't believe these are ever actually failing in
10487       practice, but better safe than sorry. Also, checking these return
10488       values should please analysis tools like Coverity. Patch from
10489       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
10490     - Use direct writes rather than stdio when building microdescriptor
10491       caches, in an attempt to mitigate bug 8031, or at least make it
10492       less common.
10494   o Minor bugfixes (config):
10495     - When rejecting a configuration because we were unable to parse a
10496       quoted string, log an actual error message. Fixes bug 7950; bugfix
10497       on 0.2.0.16-alpha.
10498     - Behave correctly when the user disables LearnCircuitBuildTimeout
10499       but doesn't tell us what they would like the timeout to be. Fixes
10500       bug 6304; bugfix on 0.2.2.14-alpha.
10501     - When autodetecting the number of CPUs, use the number of available
10502       CPUs in preference to the number of configured CPUs. Inform the
10503       user if this reduces the number of available CPUs. Fixes bug 8002;
10504       bugfix on 0.2.3.1-alpha.
10505     - Make it an error when you set EntryNodes but disable UseGuardNodes,
10506       since it will (surprisingly to some users) ignore EntryNodes. Fixes
10507       bug 8180; bugfix on 0.2.3.11-alpha.
10508     - Allow TestingTorNetworks to override the 4096-byte minimum for
10509       the Fast threshold. Otherwise they can't bootstrap until they've
10510       observed more traffic. Fixes bug 8508; bugfix on 0.2.4.10-alpha.
10511     - Fix some logic errors when the user manually overrides the
10512       PathsNeededToBuildCircuits option in torrc. Fixes bug 8599; bugfix
10513       on 0.2.4.10-alpha.
10515   o Minor bugfixes (log messages to help diagnose bugs):
10516     - If we fail to free a microdescriptor because of bug 7164, log
10517       the filename and line number from which we tried to free it.
10518     - Add another diagnostic to the heartbeat message: track and log
10519       overhead that TLS is adding to the data we write. If this is
10520       high, we are sending too little data to SSL_write at a time.
10521       Diagnostic for bug 7707.
10522     - Add more detail to a log message about relaxed timeouts, to help
10523       track bug 7799.
10524     - Warn more aggressively when flushing microdescriptors to a
10525       microdescriptor cache fails, in an attempt to mitigate bug 8031,
10526       or at least make it more diagnosable.
10527     - Improve debugging output to help track down bug 8185 ("Bug:
10528       outgoing relay cell has n_chan==NULL. Dropping.")
10529     - Log the purpose of a path-bias testing circuit correctly.
10530       Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.
10532   o Minor bugfixes (0.2.4.x log messages that were too noisy):
10533     - Don't attempt to relax the timeout of already opened 1-hop circuits.
10534       They might never timeout. This should eliminate some/all cases of
10535       the relaxed timeout log message.
10536     - Use circuit creation time for network liveness evaluation. This
10537       should eliminate warning log messages about liveness caused
10538       by changes in timeout evaluation. Fixes bug 6572; bugfix on
10539       0.2.4.8-alpha.
10540     - Reduce a path bias length check from notice to info. The message
10541       is triggered when creating controller circuits. Fixes bug 8196;
10542       bugfix on 0.2.4.8-alpha.
10543     - Fix a path state issue that triggered a notice during relay startup.
10544       Fixes bug 8320; bugfix on 0.2.4.10-alpha.
10545     - Reduce occurrences of warns about circuit purpose in
10546       connection_ap_expire_building(). Fixes bug 8477; bugfix on
10547       0.2.4.11-alpha.
10549   o Minor bugfixes (pre-0.2.4.x log messages that were too noisy):
10550     - If we encounter a write failure on a SOCKS connection before we
10551       finish our SOCKS handshake, don't warn that we closed the
10552       connection before we could send a SOCKS reply. Fixes bug 8427;
10553       bugfix on 0.1.0.1-rc.
10554     - Correctly recognize that [::1] is a loopback address. Fixes
10555       bug 8377; bugfix on 0.2.1.3-alpha.
10556     - Fix a directory authority warn caused when we have a large amount
10557       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
10558     - Don't log inappropriate heartbeat messages when hibernating: a
10559       hibernating node is _expected_ to drop out of the consensus,
10560       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
10561       bugfix on 0.2.3.1-alpha.
10562     - Don't complain about bootstrapping problems while hibernating.
10563       These complaints reflect a general code problem, but not one
10564       with any problematic effects (no connections are actually
10565       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
10567   o Documentation fixes:
10568     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
10569       names match. Fixes bug 7768.
10570     - Make the torify manpage no longer refer to tsocks; torify hasn't
10571       supported tsocks since 0.2.3.14-alpha.
10572     - Make the tor manpage no longer reference tsocks.
10573     - Fix the GeoIPExcludeUnknown documentation to refer to
10574       ExcludeExitNodes rather than the currently nonexistent
10575       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
10577   o Removed files:
10578     - The tor-tsocks.conf is no longer distributed or installed. We
10579       recommend that tsocks users use torsocks instead. Resolves
10580       ticket 8290.
10583 Changes in version 0.2.4.11-alpha - 2013-03-11
10584   Tor 0.2.4.11-alpha makes relay measurement by directory authorities
10585   more robust, makes hidden service authentication work again, and
10586   resolves a DPI fingerprint for Tor's SSL transport.
10588   o Major features (directory authorities):
10589     - Directory authorities now support a new consensus method (17)
10590       where they cap the published bandwidth of servers for which
10591       insufficient bandwidth measurements exist. Fixes part of bug 2286.
10592     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
10593       serve any v2 directory information. Now we can test disabling the
10594       old deprecated v2 directory format, and see whether doing so has
10595       any effect on network load. Begins to fix bug 6783.
10596     - Directory authorities now include inside each vote a statement of
10597       the performance thresholds they used when assigning flags.
10598       Implements ticket 8151.
10600   o Major bugfixes (directory authorities):
10601     - Stop marking every relay as having been down for one hour every
10602       time we restart a directory authority. These artificial downtimes
10603       were messing with our Stable and Guard flag calculations. Fixes
10604       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
10606   o Major bugfixes (hidden services):
10607     - Allow hidden service authentication to succeed again. When we
10608       refactored the hidden service introduction code back
10609       in 0.2.4.1-alpha, we didn't update the code that checks
10610       whether authentication information is present, causing all
10611       authentication checks to return "false". Fix for bug 8207; bugfix
10612       on 0.2.4.1-alpha. Found by Coverity; this is CID 718615.
10614   o Minor features (relays, bridges):
10615     - Make bridge relays check once a minute for whether their IP
10616       address has changed, rather than only every 15 minutes. Resolves
10617       bugs 1913 and 1992.
10618     - Refactor resolve_my_address() so it returns the method by which we
10619       decided our public IP address (explicitly configured, resolved from
10620       explicit hostname, guessed from interfaces, learned by gethostname).
10621       Now we can provide more helpful log messages when a relay guesses
10622       its IP address incorrectly (e.g. due to unexpected lines in
10623       /etc/hosts). Resolves ticket 2267.
10624     - Teach bridge-using clients to avoid 0.2.2 bridges when making
10625       microdescriptor-related dir requests, and only fall back to normal
10626       descriptors if none of their bridges can handle microdescriptors
10627       (as opposed to the fix in ticket 4013, which caused them to fall
10628       back to normal descriptors if *any* of their bridges preferred
10629       them). Resolves ticket 4994.
10630     - Randomize the lifetime of our SSL link certificate, so censors can't
10631       use the static value for filtering Tor flows. Resolves ticket 8443;
10632       related to ticket 4014 which was included in 0.2.2.33.
10633     - Support a new version of the link protocol that allows 4-byte circuit
10634       IDs. Previously, circuit IDs were limited to 2 bytes, which presented
10635       a possible resource exhaustion issue. Closes ticket 7351; implements
10636       proposal 214.
10638   o Minor features (portability):
10639     - Tweak the curve25519-donna*.c implementations to tolerate systems
10640       that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
10641     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
10642       the signs of types during autoconf. This is better than our old
10643       approach, which didn't work when cross-compiling.
10644     - Detect the sign of enum values, rather than assuming that MSC is the
10645       only compiler where enum types are all signed. Fixes bug 7727;
10646       bugfix on 0.2.4.10-alpha.
10648   o Minor features (other):
10649     - Say "KBytes" rather than "KB" in the man page (for various values
10650       of K), to further reduce confusion about whether Tor counts in
10651       units of memory or fractions of units of memory. Resolves ticket 7054.
10652     - Clear the high bit on curve25519 public keys before passing them to
10653       our backend, in case we ever wind up using a backend that doesn't do
10654       so itself. If we used such a backend, and *didn't* clear the high bit,
10655       we could wind up in a situation where users with such backends would
10656       be distinguishable from users without. Fixes bug 8121; bugfix on
10657       0.2.4.8-alpha.
10658     - Update to the March 6 2013 Maxmind GeoLite Country database.
10660   o Minor bugfixes (clients):
10661     - When we receive a RELAY_END cell with the reason DONE, or with no
10662       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
10663       status as "connection refused". Previously we reported these cases
10664       as success but then immediately closed the connection. Fixes bug
10665       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
10666     - Downgrade an assertion in connection_ap_expire_beginning to an
10667       LD_BUG message. The fix for bug 8024 should prevent this message
10668       from displaying, but just in case, a warn that we can diagnose
10669       is better than more assert crashes. Fixes bug 8065; bugfix on
10670       0.2.4.8-alpha.
10671     - Lower path use bias thresholds to .80 for notice and .60 for warn.
10672       Also make the rate limiting flags for the path use bias log messages
10673       independent from the original path bias flags. Fixes bug 8161;
10674       bugfix on 0.2.4.10-alpha.
10676   o Minor bugfixes (relays):
10677     - Stop trying to resolve our hostname so often (e.g. every time we
10678       think about doing a directory fetch). Now we reuse the cached
10679       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
10680       and 2410 (bugfix on 0.1.2.2-alpha).
10681     - Stop sending a stray "(null)" in some cases for the server status
10682       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
10683       on 0.1.2.6-alpha.
10684     - When choosing which stream on a formerly stalled circuit to wake
10685       first, make better use of the platform's weak RNG. Previously,
10686       we had been using the % ("modulo") operator to try to generate a
10687       1/N chance of picking each stream, but this behaves badly with
10688       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
10689       0.2.2.20-alpha.
10690     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
10691       Irix's random() only return 15 bits; Solaris's random() returns more
10692       bits but its RAND_MAX says it only returns 15, and so on. Motivated
10693       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
10695   o Minor bugfixes (directory authorities):
10696     - Directory authorities now use less space when formatting identical
10697       microdescriptor lines in directory votes. Fixes bug 8158; bugfix
10698       on 0.2.4.1-alpha.
10700   o Minor bugfixes (memory leaks spotted by Coverity -- bug 7816):
10701     - Avoid leaking memory if we fail to compute a consensus signature
10702       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
10703     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
10704       on 0.2.1.1-alpha.
10705     - Fix a memory leak during safe-cookie controller authentication.
10706       Bugfix on 0.2.3.13-alpha.
10707     - Avoid memory leak of IPv6 policy content if we fail to format it into
10708       a router descriptor. Bugfix on 0.2.4.7-alpha.
10710   o Minor bugfixes (other code correctness issues):
10711     - Avoid a crash if we fail to generate an extrainfo descriptor.
10712       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
10713       this is CID 718634.
10714     - When detecting the largest possible file descriptor (in order to
10715       close all file descriptors when launching a new program), actually
10716       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
10717       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
10718       is CID 743383.
10719     - Fix a copy-and-paste error when adding a missing A1 to a routerset
10720       because of GeoIPExcludeUnknown. Fix for Coverity CID 980650.
10721       Bugfix on 0.2.4.10-alpha.
10722     - Fix an impossible-to-trigger integer overflow when estimating how
10723       long our onionskin queue would take. (This overflow would require us
10724       to accept 4 million onionskins before processing 100 of them.) Fixes
10725       bug 8210; bugfix on 0.2.4.10-alpha.
10727   o Code simplification and refactoring:
10728     - Add a wrapper function for the common "log a message with a
10729       rate-limit" case.
10732 Changes in version 0.2.4.10-alpha - 2013-02-04
10733   Tor 0.2.4.10-alpha adds defenses at the directory authority level from
10734   certain attacks that flood the network with relays; changes the queue
10735   for circuit create requests from a sized-based limit to a time-based
10736   limit; resumes building with MSVC on Windows; and fixes a wide variety
10737   of other issues.
10739   o Major bugfixes (directory authority):
10740     - When computing directory thresholds, ignore any rejected-as-sybil
10741       nodes during the computation so that they can't influence Fast,
10742       Guard, etc. (We should have done this for proposal 109.) Fixes
10743       bug 8146.
10744     - When marking a node as a likely sybil, reset its uptime metrics
10745       to zero, so that it cannot time towards getting marked as Guard,
10746       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
10747       bug 8147.
10749   o Major bugfixes:
10750     - When a TLS write is partially successful but incomplete, remember
10751       that the flushed part has been flushed, and notice that bytes were
10752       actually written. Reported and fixed pseudonymously. Fixes bug
10753       7708; bugfix on Tor 0.1.0.5-rc.
10754     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
10755       ID: these could be used to create unexpected streams and circuits
10756       which would count as "present" to some parts of Tor but "absent"
10757       to others, leading to zombie circuits and streams or to a bandwidth
10758       denial-of-service. Fixes bug 7889; bugfix on every released version
10759       of Tor. Reported by "oftc_must_be_destroyed".
10760     - Rename all macros in our local copy of queue.h to begin with "TOR_".
10761       This change seems the only good way to permanently prevent conflicts
10762       with queue.h on various operating systems. Fixes bug 8107; bugfix
10763       on 0.2.4.6-alpha.
10765   o Major features (relay):
10766     - Instead of limiting the number of queued onionskins (aka circuit
10767       create requests) to a fixed, hard-to-configure number, we limit
10768       the size of the queue based on how many we expect to be able to
10769       process in a given amount of time. We estimate the time it will
10770       take to process an onionskin based on average processing time
10771       of previous onionskins. Closes ticket 7291. You'll never have to
10772       configure MaxOnionsPending again.
10774   o Major features (portability):
10775     - Resume building correctly with MSVC and Makefile.nmake. This patch
10776       resolves numerous bugs and fixes reported by ultramage, including
10777       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
10778     - Make the ntor and curve25519 code build correctly with MSVC.
10779       Fix on 0.2.4.8-alpha.
10781   o Minor features:
10782     - When directory authorities are computing thresholds for flags,
10783       never let the threshold for the Fast flag fall below 4096
10784       bytes. Also, do not consider nodes with extremely low bandwidths
10785       when deciding thresholds for various directory flags. This change
10786       should raise our threshold for Fast relays, possibly in turn
10787       improving overall network performance; see ticket 1854. Resolves
10788       ticket 8145.
10789     - The Tor client now ignores sub-domain components of a .onion
10790       address. This change makes HTTP "virtual" hosting
10791       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
10792       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
10793       hosted on the same hidden service. Implements proposal 204.
10794     - We compute the overhead from passing onionskins back and forth to
10795       cpuworkers, and report it when dumping statistics in response to
10796       SIGUSR1. Supports ticket 7291.
10798   o Minor features (path selection):
10799     - When deciding whether we have enough descriptors to build circuits,
10800       instead of looking at raw relay counts, look at which fraction
10801       of (bandwidth-weighted) paths we're able to build. This approach
10802       keeps clients from building circuits if their paths are likely to
10803       stand out statistically. The default fraction of paths needed is
10804       taken from the consensus directory; you can override it with the
10805       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
10806     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
10807       and we have GeoIP information, also exclude all nodes with unknown
10808       countries "??" and "A1". This behavior is controlled by the
10809       new GeoIPExcludeUnknown option: you can make such nodes always
10810       excluded with "GeoIPExcludeUnknown 1", and disable the feature
10811       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
10812       gets you the default behavior. Implements feature 7706.
10813     - Path Use Bias: Perform separate accounting for successful circuit
10814       use. Keep separate statistics on stream attempt rates versus stream
10815       success rates for each guard. Provide configurable thresholds to
10816       determine when to emit log messages or disable use of guards that
10817       fail too many stream attempts. Resolves ticket 7802.
10819   o Minor features (log messages):
10820     - When learning a fingerprint for a bridge, log its corresponding
10821       transport type. Implements ticket 7896.
10822     - Improve the log message when "Bug/attack: unexpected sendme cell
10823       from client" occurs, to help us track bug 8093.
10825   o Minor bugfixes:
10826     - Remove a couple of extraneous semicolons that were upsetting the
10827       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
10828       bugfix on 0.2.2.1-alpha.
10829     - Remove a source of rounding error during path bias count scaling;
10830       don't count cannibalized circuits as used for path bias until we
10831       actually try to use them; and fix a circuit_package_relay_cell()
10832       warning message about n_chan==NULL. Fixes bug 7802.
10833     - Detect nacl when its headers are in a nacl/ subdirectory. Also,
10834       actually link against nacl when we're configured to use it. Fixes
10835       bug 7972; bugfix on 0.2.4.8-alpha.
10836     - Compile correctly with the --disable-curve25519 option. Fixes
10837       bug 8153; bugfix on 0.2.4.8-alpha.
10839   o Build improvements:
10840     - Do not report status verbosely from autogen.sh unless the -v flag
10841       is specified. Fixes issue 4664. Patch from Onizuka.
10842     - Replace all calls to snprintf() outside of src/ext with
10843       tor_snprintf(). Also remove the #define to replace snprintf with
10844       _snprintf on Windows; they have different semantics, and all of
10845       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
10846     - Try to detect if we are ever building on a platform where
10847       memset(...,0,...) does not set the value of a double to 0.0. Such
10848       platforms are permitted by the C standard, though in practice
10849       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
10850       currently support them, but it's better to detect them and fail
10851       than to perform erroneously.
10853   o Removed features:
10854     - Stop exporting estimates of v2 and v3 directory traffic shares
10855       in extrainfo documents. They were unneeded and sometimes inaccurate.
10856       Also stop exporting any v2 directory request statistics. Resolves
10857       ticket 5823.
10858     - Drop support for detecting and warning about versions of Libevent
10859       before 1.3e. Nothing reasonable ships with them any longer;
10860       warning the user about them shouldn't be needed. Resolves ticket
10861       6826.
10863   o Code simplifications and refactoring:
10864     - Rename "isin" functions to "contains", for grammar. Resolves
10865       ticket 5285.
10866     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
10867       with the natural logarithm function from the system libm. Resolves
10868       ticket 7599.
10871 Changes in version 0.2.4.9-alpha - 2013-01-15
10872   Tor 0.2.4.9-alpha provides a quick fix to make the new ntor handshake
10873   work more robustly.
10875   o Major bugfixes:
10876     - Fix backward compatibility logic when receiving an embedded ntor
10877       handshake tunneled in a CREATE cell. This clears up the "Bug:
10878       couldn't format CREATED cell" warning. Fixes bug 7959; bugfix
10879       on 0.2.4.8-alpha.
10882 Changes in version 0.2.4.8-alpha - 2013-01-14
10883   Tor 0.2.4.8-alpha introduces directory guards to reduce user enumeration
10884   risks, adds a new stronger and faster circuit handshake, and offers
10885   stronger and faster link encryption when both sides support it.
10887   o Major features:
10888     - Preliminary support for directory guards (proposal 207): when
10889       possible, clients now use their entry guards for non-anonymous
10890       directory requests. This can help prevent client enumeration. Note
10891       that this behavior only works when we have a usable consensus
10892       directory, and when options about what to download are more or less
10893       standard. In the future we should re-bootstrap from our guards,
10894       rather than re-bootstrapping from the preconfigured list of
10895       directory sources that ships with Tor. Resolves ticket 6526.
10896     - Tor relays and clients now support a better CREATE/EXTEND cell
10897       format, allowing the sender to specify multiple address, identity,
10898       and handshake types. Implements Robert Ransom's proposal 200;
10899       closes ticket 7199.
10901   o Major features (new circuit handshake):
10902     - Tor now supports a new circuit extension handshake designed by Ian
10903       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
10904       circuit extension handshake, later called "TAP", was a bit slow
10905       (especially on the relay side), had a fragile security proof, and
10906       used weaker keys than we'd now prefer. The new circuit handshake
10907       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
10908       function, making it significantly more secure than the older
10909       handshake, and significantly faster. Tor can use one of two built-in
10910       pure-C curve25519-donna implementations by Adam Langley, or it
10911       can link against the "nacl" library for a tuned version if present.
10913       The built-in version is very fast for 64-bit systems when building
10914       with GCC. The built-in 32-bit version is still faster than the
10915       old TAP protocol, but using libnacl is better on most such hosts.
10917       Clients don't currently use this protocol by default, since
10918       comparatively few clients support it so far. To try it, set
10919       UseNTorHandshake to 1.
10921       Implements proposal 216; closes ticket 7202.
10923   o Major features (better link encryption):
10924     - Relays can now enable the ECDHE TLS ciphersuites when available
10925       and appropriate. These ciphersuites let us negotiate forward-secure
10926       TLS secret keys more safely and more efficiently than with our
10927       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
10928       public relays prefer the (faster) P224 group, and bridges prefer
10929       the (more common) P256 group; you can override this with the
10930       TLSECGroup option.
10932       Enabling these ciphers was a little tricky, since for a long time,
10933       clients had been claiming to support them without actually doing
10934       so, in order to foil fingerprinting. But with the client-side
10935       implementation of proposal 198 in 0.2.3.17-beta, clients can now
10936       match the ciphers from recent Firefox versions *and* list the
10937       ciphers they actually mean, so relays can believe such clients
10938       when they advertise ECDHE support in their TLS ClientHello messages.
10940       This feature requires clients running 0.2.3.17-beta or later,
10941       and requires both sides to be running OpenSSL 1.0.0 or later
10942       with ECC support. OpenSSL 1.0.1, with the compile-time option
10943       "enable-ec_nistp_64_gcc_128", is highly recommended.
10945       Implements the relay side of proposal 198; closes ticket 7200.
10947   o Major bugfixes:
10948     - Avoid crashing when, as a relay without IPv6-exit support, a
10949       client insists on getting an IPv6 address or nothing. Fixes bug
10950       7814; bugfix on 0.2.4.7-alpha.
10952   o Minor features:
10953     - Improve circuit build timeout handling for hidden services.
10954       In particular: adjust build timeouts more accurately depending
10955       upon the number of hop-RTTs that a particular circuit type
10956       undergoes. Additionally, launch intro circuits in parallel
10957       if they timeout, and take the first one to reply as valid.
10958     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
10959       separate error codes; or at least, don't break for that reason.
10960       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
10961     - Update to the January 2 2013 Maxmind GeoLite Country database.
10963   o Minor features (testing):
10964     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
10965       (P-256) Diffie-Hellman handshakes to src/or/bench.
10966     - Add benchmark functions to test onion handshake performance.
10968   o Minor features (path bias detection):
10969     - Alter the Path Bias log messages to be more descriptive in terms
10970       of reporting timeouts and other statistics.
10971     - Create three levels of Path Bias log messages, as opposed to just
10972       two. These are configurable via consensus as well as via the torrc
10973       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
10974       The default values are 0.70, 0.50, and 0.30 respectively.
10975     - Separate the log message levels from the decision to drop guards,
10976       which also is available via torrc option PathBiasDropGuards.
10977       PathBiasDropGuards still defaults to 0 (off).
10978     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
10979       in combination with PathBiasExtremeRate.
10980     - Increase the default values for PathBiasScaleThreshold and
10981       PathBiasCircThreshold from (200, 20) to (300, 150).
10982     - Add in circuit usage accounting to path bias. If we try to use a
10983       built circuit but fail for any reason, it counts as path bias.
10984       Certain classes of circuits where the adversary gets to pick your
10985       destination node are exempt from this accounting. Usage accounting
10986       can be specifically disabled via consensus parameter or torrc.
10987     - Convert all internal path bias state to double-precision floating
10988       point, to avoid roundoff error and other issues.
10989     - Only record path bias information for circuits that have completed
10990       *two* hops. Assuming end-to-end tagging is the attack vector, this
10991       makes us more resilient to ambient circuit failure without any
10992       detection capability loss.
10994   o Minor bugfixes (log messages):
10995     - Rate-limit the "No circuits are opened. Relaxed timeout for a
10996       circuit with channel state open..." message to once per hour to
10997       keep it from filling the notice logs. Mitigates bug 7799 but does
10998       not fix the underlying cause. Bugfix on 0.2.4.7-alpha.
10999     - Avoid spurious warnings when configuring multiple client ports of
11000       which only some are nonlocal. Previously, we had claimed that some
11001       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
11002       0.2.3.3-alpha.
11004   o Code simplifications and refactoring:
11005     - Get rid of a couple of harmless clang warnings, where we compared
11006       enums to ints. These warnings are newly introduced in clang 3.2.
11007     - Split the onion.c file into separate modules for the onion queue
11008       and the different handshakes it supports.
11009     - Remove the marshalling/unmarshalling code for sending requests to
11010       cpuworkers over a socket, and instead just send structs. The
11011       recipient will always be the same Tor binary as the sender, so
11012       any encoding is overkill.
11015 Changes in version 0.2.4.7-alpha - 2012-12-24
11016   Tor 0.2.4.7-alpha introduces a new approach to providing fallback
11017   directory mirrors for more robust bootstrapping; fixes more issues where
11018   clients with changing network conditions refuse to make any circuits;
11019   adds initial support for exiting to IPv6 addresses; resumes being able
11020   to update our GeoIP database, and includes the geoip6 file this time;
11021   turns off the client-side DNS cache by default due to privacy risks;
11022   and fixes a variety of other issues.
11024   o Major features (client resilience):
11025     - Add a new "FallbackDir" torrc option to use when we can't use
11026       a directory mirror from the consensus (either because we lack a
11027       consensus, or because they're all down). Currently, all authorities
11028       are fallbacks by default, and there are no other default fallbacks,
11029       but that will change. This option will allow us to give clients a
11030       longer list of servers to try to get a consensus from when first
11031       connecting to the Tor network, and thereby reduce load on the
11032       directory authorities. Implements proposal 206, "Preconfigured
11033       directory sources for bootstrapping". We also removed the old
11034       "FallbackNetworkstatus" option, since we never got it working well
11035       enough to use it. Closes bug 572.
11036     - If we have no circuits open, use a relaxed timeout (the
11037       95-percentile cutoff) until a circuit succeeds. This heuristic
11038       should allow Tor to succeed at building circuits even when the
11039       network connection drastically changes. Should help with bug 3443.
11041   o Major features (IPv6):
11042     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
11043       connectivity, then set the IPv6Exit flag to 1. Also make sure your
11044       exit policy reads as you would like: the address * applies to all
11045       address families, whereas *4 is IPv4 address only, and *6 is IPv6
11046       addresses only. On the client side, you'll need to wait until the
11047       authorities have upgraded, wait for enough exits to support IPv6,
11048       apply the "IPv6Traffic" flag to a SocksPort, and use Socks5. Closes
11049       ticket 5547, implements proposal 117 as revised in proposal 208.
11051       We DO NOT recommend that clients with actual anonymity needs start
11052       using IPv6 over Tor yet, since not enough exits support it yet.
11054   o Major features (geoip database):
11055     - Maxmind began labelling Tor relays as being in country "A1",
11056       which breaks by-country node selection inside Tor. Now we use a
11057       script to replace "A1" ("Anonymous Proxy") entries in our geoip
11058       file with real country codes. This script fixes about 90% of "A1"
11059       entries automatically and uses manual country code assignments to
11060       fix the remaining 10%. See src/config/README.geoip for details.
11061       Fixes bug 6266. Also update to the December 5 2012 Maxmind GeoLite
11062       Country database, as modified above.
11064   o Major bugfixes (client-side DNS):
11065     - Turn off the client-side DNS cache by default. Updating and using
11066       the DNS cache is now configurable on a per-client-port
11067       level. SOCKSPort, DNSPort, etc lines may now contain
11068       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
11069       cache these types of DNS answers when we receive them from an
11070       exit node in response to an application request on this port, and
11071       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
11072       cached DNS answers of these types, we shouldn't use them. It's
11073       potentially risky to use cached DNS answers at the client, since
11074       doing so can indicate to one exit what answers we've gotten
11075       for DNS lookups in the past. With IPv6, this becomes especially
11076       problematic. Using cached DNS answers for requests on the same
11077       circuit would present less linkability risk, since all traffic
11078       on a circuit is already linkable, but it would also provide
11079       little performance benefit: the exit node caches DNS replies
11080       too. Implements a simplified version of Proposal 205. Implements
11081       ticket 7570.
11083   o Major bugfixes (other):
11084     - Alter circuit build timeout measurement to start at the point
11085       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
11086       initialization). This should make our timeout measurements more
11087       uniform. Previously, we were sometimes including ORconn setup time
11088       in our circuit build time measurements. Should resolve bug 3443.
11089     - Fix an assertion that could trigger in hibernate_go_dormant() when
11090       closing an or_connection_t: call channel_mark_for_close() rather
11091       than connection_mark_for_close(). Fixes bug 7267. Bugfix on
11092       0.2.4.4-alpha.
11093     - Include the geoip6 IPv6 GeoIP database in the tarball. Fixes bug
11094       7655; bugfix on 0.2.4.6-alpha.
11096   o Minor features:
11097     - Add a new torrc option "ServerTransportListenAddr" to let bridge
11098       operators select the address where their pluggable transports will
11099       listen for connections. Resolves ticket 7013.
11100     - Allow an optional $ before the node identity digest in the
11101       controller command GETINFO ns/id/<identity>, for consistency with
11102       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
11103     - Log packaged cell fullness as part of the heartbeat message.
11104       Diagnosis to try to determine the extent of bug 7743.
11106   o Minor features (IPv6):
11107     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
11108       prefer to hand out virtual IPv6 addresses, since there are more of
11109       them and we can't run out. To override this behavior and make IPv4
11110       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
11111       or DNSPort you're using for resolving. Implements ticket 7571.
11112     - AutomapHostsOnResolve responses are now randomized, to avoid
11113       annoying situations where Tor is restarted and applications
11114       connect to the wrong addresses.
11115     - Never try more than 1000 times to pick a new virtual address when
11116       AutomapHostsOnResolve is set. That's good enough so long as we
11117       aren't close to handing out our entire virtual address space;
11118       if you're getting there, it's best to switch to IPv6 virtual
11119       addresses anyway.
11121   o Minor bugfixes:
11122     - The ADDRMAP command can no longer generate an ill-formed error
11123       code on a failed MAPADDRESS. It now says "internal" rather than
11124       an English sentence fragment with spaces in the middle. Bugfix on
11125       Tor 0.2.0.19-alpha.
11126     - Fix log messages and comments to avoid saying "GMT" when we mean
11127       "UTC". Fixes bug 6113.
11128     - Compile on win64 using mingw64. Fixes bug 7260; patches from
11129       "yayooo".
11130     - Fix a crash when debugging unit tests on Windows: deallocate a
11131       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
11132       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
11134   o Renamed options:
11135     - The DirServer option is now DirAuthority, for consistency with
11136       current naming patterns. You can still use the old DirServer form.
11138   o Code simplification and refactoring:
11139     - Move the client-side address-map/virtual-address/DNS-cache code
11140       out of connection_edge.c into a new addressmap.c module.
11141     - Remove unused code for parsing v1 directories and "running routers"
11142       documents. Fixes bug 6887.
11145 Changes in version 0.2.3.25 - 2012-11-19
11146   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
11147   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
11148   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
11149   programmer, and friend. Unstinting in his dedication to the cause of
11150   freedom, he inspired and helped many of us as we began our work on
11151   anonymity, and inspires us still. Please honor his memory by writing
11152   software to protect people's freedoms, and by helping others to do so.
11154   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
11155   significantly reduced directory overhead (via microdescriptors),
11156   enormous crypto performance improvements for fast relays on new
11157   enough hardware, a new v3 TLS handshake protocol that can better
11158   resist fingerprinting, support for protocol obfuscation plugins (aka
11159   pluggable transports), better scalability for hidden services, IPv6
11160   support for bridges, performance improvements like allowing clients
11161   to skip the first round-trip on the circuit ("optimistic data") and
11162   refilling token buckets more often, a new "stream isolation" design
11163   to isolate different applications on different circuits, and many
11164   stability, security, and privacy fixes.
11166   o Major bugfixes:
11167     - Tor tries to wipe potentially sensitive data after using it, so
11168       that if some subsequent security failure exposes Tor's memory,
11169       the damage will be limited. But we had a bug where the compiler
11170       was eliminating these wipe operations when it decided that the
11171       memory was no longer visible to a (correctly running) program,
11172       hence defeating our attempt at defense in depth. We fix that
11173       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
11174       is unlikely to optimize away. Future versions of Tor may use
11175       a less ridiculously heavy approach for this. Fixes bug 7352.
11176       Reported in an article by Andrey Karpov.
11178   o Minor bugfixes:
11179     - Fix a harmless bug when opting against publishing a relay descriptor
11180       because DisableNetwork is set. Fixes bug 7464; bugfix on
11181       0.2.3.9-alpha.
11184 Changes in version 0.2.4.6-alpha - 2012-11-13
11185   Tor 0.2.4.6-alpha fixes an assert bug that has been plaguing relays,
11186   makes our defense-in-depth memory wiping more reliable, and begins to
11187   count IPv6 addresses in bridge statistics,
11189   o Major bugfixes:
11190     - Fix an assertion failure that could occur when closing a connection
11191       with a spliced rendezvous circuit. Fix for bug 7212; bugfix on
11192       Tor 0.2.4.4-alpha.
11193     - Tor tries to wipe potentially sensitive data after using it, so
11194       that if some subsequent security failure exposes Tor's memory,
11195       the damage will be limited. But we had a bug where the compiler
11196       was eliminating these wipe operations when it decided that the
11197       memory was no longer visible to a (correctly running) program,
11198       hence defeating our attempt at defense in depth. We fix that
11199       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
11200       is unlikely to optimize away. Future versions of Tor may use
11201       a less ridiculously heavy approach for this. Fixes bug 7352.
11202       Reported in an article by Andrey Karpov.
11204   o Minor features:
11205     - Add GeoIP database for IPv6 addresses. The new config option
11206       is GeoIPv6File.
11207     - Bridge statistics now count bridge clients connecting over IPv6:
11208       bridge statistics files now list "bridge-ip-versions" and
11209       extra-info documents list "geoip6-db-digest". The control protocol
11210       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
11211       implementation by "shkoo", addressing ticket 5055.
11213   o Minor bugfixes:
11214     - Warn when we are binding low ports when hibernation is enabled;
11215       previously we had warned when we were _advertising_ low ports with
11216       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
11217     - Fix a harmless bug when opting against publishing a relay descriptor
11218       because DisableNetwork is set. Fixes bug 7464; bugfix on
11219       0.2.3.9-alpha.
11220     - Add warning message when a managed proxy dies during configuration.
11221       Fixes bug 7195; bugfix on 0.2.4.2-alpha.
11222     - Fix a linking error when building tor-fw-helper without miniupnp.
11223       Fixes bug 7235; bugfix on 0.2.4.2-alpha. Fix by Anthony G. Basile.
11224     - Check for closing an or_connection_t without going through correct
11225       channel functions; emit a warning and then call
11226       connection_or_close_for_error() so we don't assert as in bugs 7212
11227       and 7267.
11228     - Compile correctly on compilers without C99 designated initializer
11229       support. Fixes bug 7286; bugfix on 0.2.4.4-alpha.
11230     - Avoid a possible assert that can occur when channel_send_destroy() is
11231       called on a channel in CHANNEL_STATE_CLOSING, CHANNEL_STATE_CLOSED,
11232       or CHANNEL_STATE_ERROR when the Tor process is resumed after being
11233       blocked for a long interval. Fixes bug 7350; bugfix on 0.2.4.4-alpha.
11234     - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
11235       Fixes bug 7422; bugfix on 0.2.4.4-alpha.
11237   o Code simplification and refactoring:
11238     - Start using OpenBSD's implementation of queue.h, so that we don't
11239       need to hand-roll our own pointer and list structures whenever we
11240       need them. (We can't rely on a sys/queue.h, since some operating
11241       systems don't have them, and the ones that do have them don't all
11242       present the same extensions.)
11245 Changes in version 0.2.4.5-alpha - 2012-10-25
11246   Tor 0.2.4.5-alpha comes hard at the heels of 0.2.4.4-alpha, to fix
11247   two important security vulnerabilities that could lead to remotely
11248   triggerable relay crashes, fix a major bug that was preventing clients
11249   from choosing suitable exit nodes, and refactor some of our code.
11251   o Major bugfixes (security, also in 0.2.3.24-rc):
11252     - Fix a group of remotely triggerable assertion failures related to
11253       incorrect link protocol negotiation. Found, diagnosed, and fixed
11254       by "some guy from France". Fix for CVE-2012-2250; bugfix on
11255       0.2.3.6-alpha.
11256     - Fix a denial of service attack by which any directory authority
11257       could crash all the others, or by which a single v2 directory
11258       authority could crash everybody downloading v2 directory
11259       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
11261   o Major bugfixes (also in 0.2.3.24-rc):
11262     - When parsing exit policy summaries from microdescriptors, we had
11263       previously been ignoring the last character in each one, so that
11264       "accept 80,443,8080" would be treated by clients as indicating
11265       a node that allows access to ports 80, 443, and 808. That would
11266       lead to clients attempting connections that could never work,
11267       and ignoring exit nodes that would support their connections. Now
11268       clients parse these exit policy summaries correctly. Fixes bug 7192;
11269       bugfix on 0.2.3.1-alpha.
11271   o Minor bugfixes (also in 0.2.3.24-rc):
11272     - Clients now consider the ClientRejectInternalAddresses config option
11273       when using a microdescriptor consensus stanza to decide whether
11274       an exit relay would allow exiting to an internal address. Fixes
11275       bug 7190; bugfix on 0.2.3.1-alpha.
11277   o Minor bugfixes:
11278     - Only disable TLS session ticket support when running as a TLS
11279       server. Now clients will blend better with regular Firefox
11280       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
11282   o Code simplification and refactoring:
11283     - Start using OpenBSD's implementation of queue.h (originally by
11284       Niels Provos).
11285     - Move the entry node code from circuitbuild.c to its own file.
11286     - Move the circuit build timeout tracking code from circuitbuild.c
11287       to its own file.
11290 Changes in version 0.2.3.24-rc - 2012-10-25
11291   Tor 0.2.3.24-rc fixes two important security vulnerabilities that
11292   could lead to remotely triggerable relay crashes, and fixes
11293   a major bug that was preventing clients from choosing suitable exit
11294   nodes.
11296   o Major bugfixes (security):
11297     - Fix a group of remotely triggerable assertion failures related to
11298       incorrect link protocol negotiation. Found, diagnosed, and fixed
11299       by "some guy from France". Fix for CVE-2012-2250; bugfix on
11300       0.2.3.6-alpha.
11301     - Fix a denial of service attack by which any directory authority
11302       could crash all the others, or by which a single v2 directory
11303       authority could crash everybody downloading v2 directory
11304       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
11306   o Major bugfixes:
11307     - When parsing exit policy summaries from microdescriptors, we had
11308       previously been ignoring the last character in each one, so that
11309       "accept 80,443,8080" would be treated by clients as indicating
11310       a node that allows access to ports 80, 443, and 808. That would
11311       lead to clients attempting connections that could never work,
11312       and ignoring exit nodes that would support their connections. Now
11313       clients parse these exit policy summaries correctly. Fixes bug 7192;
11314       bugfix on 0.2.3.1-alpha.
11316   o Minor bugfixes:
11317     - Clients now consider the ClientRejectInternalAddresses config option
11318       when using a microdescriptor consensus stanza to decide whether
11319       an exit relay would allow exiting to an internal address. Fixes
11320       bug 7190; bugfix on 0.2.3.1-alpha.
11323 Changes in version 0.2.4.4-alpha - 2012-10-20
11324   Tor 0.2.4.4-alpha adds a new v3 directory authority, fixes a privacy
11325   vulnerability introduced by a change in OpenSSL, fixes a remotely
11326   triggerable assert, and adds new channel_t and circuitmux_t abstractions
11327   that will make it easier to test new connection transport and cell
11328   scheduling algorithms.
11330   o New directory authorities (also in 0.2.3.23-rc):
11331     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
11332       authority. Closes ticket 5749.
11334   o Major bugfixes (security/privacy, also in 0.2.3.23-rc):
11335     - Disable TLS session tickets. OpenSSL's implementation was giving
11336       our TLS session keys the lifetime of our TLS context objects, when
11337       perfect forward secrecy would want us to discard anything that
11338       could decrypt a link connection as soon as the link connection
11339       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
11340       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
11341     - Discard extraneous renegotiation attempts once the V3 link
11342       protocol has been initiated. Failure to do so left us open to
11343       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
11344       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
11346   o Internal abstraction features:
11347     - Introduce new channel_t abstraction between circuits and
11348       or_connection_t to allow for implementing alternate OR-to-OR
11349       transports. A channel_t is an abstract object which can either be a
11350       cell-bearing channel, which is responsible for authenticating and
11351       handshaking with the remote OR and transmitting cells to and from
11352       it, or a listening channel, which spawns new cell-bearing channels
11353       at the request of remote ORs. Implements part of ticket 6465.
11354     - Also new is the channel_tls_t subclass of channel_t, adapting it
11355       to the existing or_connection_t code. The V2/V3 protocol handshaking
11356       code which formerly resided in command.c has been moved below the
11357       channel_t abstraction layer and may be found in channeltls.c now.
11358       Implements the rest of ticket 6465.
11359     - Introduce new circuitmux_t storing the queue of circuits for
11360       a channel; this encapsulates and abstracts the queue logic and
11361       circuit selection policy, and allows the latter to be overridden
11362       easily by switching out a policy object. The existing EWMA behavior
11363       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
11365   o Required libraries:
11366     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
11367       strongly recommended.
11369   o Minor features:
11370     - Warn users who run hidden services on a Tor client with
11371       UseEntryGuards disabled that their hidden services will be
11372       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
11373       attack which motivated Tor to support entry guards in the first
11374       place). Resolves ticket 6889.
11375     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
11376       dhill. Resolves ticket 6982.
11377     - Option OutboundBindAddress can be specified multiple times and
11378       accepts IPv6 addresses. Resolves ticket 6876.
11380   o Minor bugfixes (also in 0.2.3.23-rc):
11381     - Don't serve or accept v2 hidden service descriptors over a
11382       relay's DirPort. It's never correct to do so, and disabling it
11383       might make it more annoying to exploit any bugs that turn up in the
11384       descriptor-parsing code. Fixes bug 7149.
11385     - Fix two cases in src/or/transports.c where we were calling
11386       fmt_addr() twice in a parameter list. Bug found by David
11387       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
11388     - Fix memory leaks whenever we logged any message about the "path
11389       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
11390     - When relays refuse a "create" cell because their queue of pending
11391       create cells is too big (typically because their cpu can't keep up
11392       with the arrival rate), send back reason "resource limit" rather
11393       than reason "internal", so network measurement scripts can get a
11394       more accurate picture. Fixes bug 7037; bugfix on 0.1.1.11-alpha.
11396   o Minor bugfixes:
11397     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
11398     - Free some more still-in-use memory at exit, to make hunting for
11399       memory leaks easier. Resolves bug 7029.
11400     - When a Tor client gets a "truncated" relay cell, the first byte of
11401       its payload specifies why the circuit was truncated. We were
11402       ignoring this 'reason' byte when tearing down the circuit, resulting
11403       in the controller not being told why the circuit closed. Now we
11404       pass the reason from the truncated cell to the controller. Bugfix
11405       on 0.1.2.3-alpha; fixes bug 7039.
11406     - Downgrade "Failed to hand off onionskin" messages to "debug"
11407       severity, since they're typically redundant with the "Your computer
11408       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
11409     - Make clients running with IPv6 bridges connect over IPv6 again,
11410       even without setting new config options ClientUseIPv6 and
11411       ClientPreferIPv6ORPort. Fixes bug 6757; bugfix on 0.2.4.1-alpha.
11412     - Use square brackets around IPv6 addresses in numerous places
11413       that needed them, including log messages, HTTPS CONNECT proxy
11414       requests, TransportProxy statefile entries, and pluggable transport
11415       extra-info lines. Fixes bug 7011; patch by David Fifield.
11417   o Code refactoring and cleanup:
11418     - Source files taken from other packages now reside in src/ext;
11419       previously they were scattered around the rest of Tor.
11420     - Avoid use of reserved identifiers in our C code. The C standard
11421       doesn't like us declaring anything that starts with an
11422       underscore, so let's knock it off before we get in trouble. Fix
11423       for bug 1031; bugfix on the first Tor commit.
11426 Changes in version 0.2.3.23-rc - 2012-10-20
11427   Tor 0.2.3.23-rc adds a new v3 directory authority, fixes a privacy
11428   vulnerability introduced by a change in OpenSSL, and fixes a variety
11429   of smaller bugs in preparation for the release.
11431   o New directory authorities:
11432     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
11433       authority. Closes ticket 5749.
11435   o Major bugfixes (security/privacy):
11436     - Disable TLS session tickets. OpenSSL's implementation was giving
11437       our TLS session keys the lifetime of our TLS context objects, when
11438       perfect forward secrecy would want us to discard anything that
11439       could decrypt a link connection as soon as the link connection
11440       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
11441       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
11442     - Discard extraneous renegotiation attempts once the V3 link
11443       protocol has been initiated. Failure to do so left us open to
11444       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
11445       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
11447   o Major bugfixes:
11448     - Fix a possible crash bug when checking for deactivated circuits
11449       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
11450       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
11452   o Minor bugfixes (on 0.2.3.x):
11453     - Fix two cases in src/or/transports.c where we were calling
11454       fmt_addr() twice in a parameter list. Bug found by David
11455       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
11456     - Convert an assert in the pathbias code to a log message. The assert
11457       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
11458       bugfix on 0.2.3.17-beta.
11459     - Fix memory leaks whenever we logged any message about the "path
11460       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
11462   o Minor bugfixes (on 0.2.2.x and earlier):
11463     - Don't serve or accept v2 hidden service descriptors over a relay's
11464       DirPort. It's never correct to do so, and disabling it might
11465       make it more annoying to exploit any bugs that turn up in the
11466       descriptor-parsing code. Fixes bug 7149.
11467     - When relays refuse a "create" cell because their queue of pending
11468       create cells is too big (typically because their cpu can't keep up
11469       with the arrival rate), send back reason "resource limit" rather
11470       than reason "internal", so network measurement scripts can get a
11471       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
11472     - Correct file sizes when reading binary files on Cygwin, to avoid
11473       a bug where Tor would fail to read its state file. Fixes bug 6844;
11474       bugfix on 0.1.2.7-alpha.
11475     - Avoid undefined behavior when parsing the list of supported
11476       rendezvous/introduction protocols in a hidden service descriptor.
11477       Previously, Tor would have confused (as-yet-unused) protocol version
11478       numbers greater than 32 with lower ones on many platforms. Fixes
11479       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
11481   o Documentation fixes:
11482     - Clarify that hidden services are TCP only. Fixes bug 6024.
11485 Changes in version 0.2.4.3-alpha - 2012-09-22
11486   Tor 0.2.4.3-alpha fixes another opportunity for a remotely triggerable
11487   assertion, resumes letting relays test reachability of their DirPort,
11488   and cleans up a bunch of smaller bugs.
11490   o Security fixes:
11491     - Fix an assertion failure in tor_timegm() that could be triggered
11492       by a badly formatted directory object. Bug found by fuzzing with
11493       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
11495   o Major bugfixes:
11496     - Fix a possible crash bug when checking for deactivated circuits
11497       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
11498       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
11499     - Allow routers to detect that their own DirPorts are running. When
11500       we removed support for versions_supports_begindir, we also
11501       accidentally removed the mechanism we used to self-test our
11502       DirPort. Diagnosed with help from kargig. Fixes bugs 6814 and 6815;
11503       bugfix on 0.2.4.2-alpha.
11505   o Security features:
11506     - Switch to a completely time-invariant approach for picking nodes
11507       weighted by bandwidth. Our old approach would run through the
11508       part of the loop after it had made its choice slightly slower
11509       than it ran through the part of the loop before it had made its
11510       choice. Addresses ticket 6538.
11511     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
11512       by tor2web clients allows hidden services to identify tor2web
11513       clients through their repeated selection of the same rendezvous
11514       and introduction point circuit endpoints (their guards). Resolves
11515       ticket 6888.
11517   o Minor features:
11518     - Enable Tor to read configuration, state, and key information from
11519       a FIFO. Previously Tor would only read from files with a positive
11520       stat.st_size. Code from meejah; fixes bug 6044.
11522   o Minor bugfixes:
11523     - Correct file sizes when reading binary files on Cygwin, to avoid
11524       a bug where Tor would fail to read its state file. Fixes bug 6844;
11525       bugfix on 0.1.2.7-alpha.
11526     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
11527       bugfix on 0.2.0.3-alpha.
11528     - When complaining about a client port on a public address, log
11529       which address we're complaining about. Fixes bug 4020; bugfix on
11530       0.2.3.3-alpha. Patch by Tom Fitzhenry.
11531     - Convert an assert in the pathbias code to a log message. The assert
11532       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
11533       bugfix on 0.2.3.17-beta.
11534     - Our new buildsystem was overzealous about rebuilding manpages: it
11535       would rebuild them all whenever any one of them changed. Now our
11536       dependency checking should be correct. Fixes bug 6843; bugfix on
11537       0.2.4.1-alpha.
11538     - Don't do reachability testing over IPv6 unless AuthDirPublishIPv6
11539       is set. Fixes bug 6880. Bugfix on 0.2.4.1-alpha.
11540     - Correct log printout about which address family is preferred
11541       when connecting to a bridge with both an IPv4 and IPv6 OR port.
11542       Fixes bug 6884; bugfix on 0.2.4.1-alpha.
11544   o Minor bugfixes (code cleanliness):
11545     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
11546       with large values. This situation was untriggered, but nevertheless
11547       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
11548     - Reject consensus votes with more than 64 known-flags. We aren't even
11549       close to that limit yet, and our code doesn't handle it correctly.
11550       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
11551     - Avoid undefined behavior when parsing the list of supported
11552       rendezvous/introduction protocols in a hidden service descriptor.
11553       Previously, Tor would have confused (as-yet-unused) protocol version
11554       numbers greater than 32 with lower ones on many platforms. Fixes
11555       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
11556     - Fix handling of rendezvous client authorization types over 8.
11557       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
11558     - Fix building with older versions of GCC (2.95, for one) that don't
11559       like preprocessor directives inside macro arguments. Found by
11560       grarpamp. Fixes bug 6842; bugfix on 0.2.4.2-alpha.
11561     - Switch weighted node selection rule from using a list of doubles
11562       to using a list of int64_t. This change should make the process
11563       slightly easier to debug and maintain. Needed to finish ticket 6538.
11565   o Code simplification and refactoring:
11566     - Move the generic "config" code into a new file, and have "config.c"
11567       hold only torrc- and state-related code. Resolves ticket 6823.
11568     - Move the core of our "choose a weighted element at random" logic
11569       into its own function, and give it unit tests. Now the logic is
11570       testable, and a little less fragile too.
11571     - Removed the testing_since field of node_t, which hasn't been used
11572       for anything since 0.2.0.9-alpha.
11574   o Documentation fixes:
11575     - Clarify that hidden services are TCP only. Fixes bug 6024.
11576     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
11577       0.2.3.14-alpha.
11580 Changes in version 0.2.3.22-rc - 2012-09-11
11581   Tor 0.2.3.22-rc fixes another opportunity for a remotely triggerable
11582   assertion.
11584   o Security fixes:
11585     - Fix an assertion failure in tor_timegm() that could be triggered
11586       by a badly formatted directory object. Bug found by fuzzing with
11587       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
11589   o Minor bugfixes:
11590     - Avoid segfault when starting up having run with an extremely old
11591       version of Tor and parsing its state file. Fixes bug 6801; bugfix
11592       on 0.2.2.23-alpha.
11595 Changes in version 0.2.2.39 - 2012-09-11
11596   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
11597   assertions.
11599   o Security fixes:
11600     - Fix an assertion failure in tor_timegm() that could be triggered
11601       by a badly formatted directory object. Bug found by fuzzing with
11602       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
11603     - Do not crash when comparing an address with port value 0 to an
11604       address policy. This bug could have been used to cause a remote
11605       assertion failure by or against directory authorities, or to
11606       allow some applications to crash clients. Fixes bug 6690; bugfix
11607       on 0.2.1.10-alpha.
11610 Changes in version 0.2.4.2-alpha - 2012-09-10
11611   Tor 0.2.4.2-alpha enables port forwarding for pluggable transports,
11612   raises the default rate limiting even more, and makes the bootstrapping
11613   log messages less noisy.
11615   o Major features:
11616     - Automatically forward the TCP ports of pluggable transport
11617       proxies using tor-fw-helper if PortForwarding is enabled. Implements
11618       ticket 4567.
11620   o Major bugfixes:
11621     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
11622       to 1GB/1GB. The previous defaults were intended to be "basically
11623       infinite", but it turns out they're now limiting our 100mbit+
11624       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
11625       last time we raised it).
11627   o Minor features:
11628     - Detect when we're running with a version of OpenSSL other than the
11629       one we compiled with. This has occasionally given people hard-to-
11630       track-down errors.
11631     - Log fewer lines at level "notice" about our OpenSSL and Libevent
11632       versions and capabilities when everything is going right. Resolves
11633       part of ticket 6736.
11634     - Directory authorities no long accept descriptors for any version of
11635       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
11636       These versions are insecure, unsupported, or both. Implements
11637       ticket 6789.
11639   o Minor bugfixes:
11640     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
11641       to start with a triple-underscore so the controller won't touch it.
11642       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
11643     - Avoid segfault when starting up having run with an extremely old
11644       version of Tor and parsing its state file. Fixes bug 6801; bugfix
11645       on 0.2.2.23-alpha.
11646     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
11647       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
11648     - Don't follow the NULL pointer if microdescriptor generation fails.
11649       (This does not appear to be triggerable, but it's best to be safe.)
11650       Found by "f. tp.". Fixes bug 6797; bugfix on 0.2.4.1-alpha.
11651     - Fix mis-declared dependencies on src/common/crypto.c and
11652       src/or/tor_main.c that could break out-of-tree builds under some
11653       circumstances. Fixes bug 6778; bugfix on 0.2.4.1-alpha.
11654     - Avoid a warning when building common_sha1.i out of tree. Fixes bug
11655       6778; bugfix on 0.2.4.1-alpha.
11656     - Fix a harmless (in this case) build warning for implicitly
11657       converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
11659   o Removed features:
11660     - Now that all versions before 0.2.2.x are disallowed, we no longer
11661       need to work around their missing features. Thus we can remove a
11662       bunch of compatibility code.
11664   o Code refactoring:
11665     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
11666       TCP ports to forward. In the past it only accepted two ports:
11667       the ORPort and the DirPort.
11670 Changes in version 0.2.4.1-alpha - 2012-09-05
11671   Tor 0.2.4.1-alpha lets bridges publish their pluggable transports to
11672   bridgedb; lets relays use IPv6 addresses and directory authorities
11673   advertise them; and switches to a cleaner build interface.
11675   This is the first alpha release in a new series, so expect there to
11676   be bugs. Users who would rather test out a more stable branch should
11677   stay with 0.2.3.x for now.
11679   o Major features (bridges):
11680     - Bridges now report the pluggable transports they support to the
11681       bridge authority, so it can pass the supported transports on to
11682       bridgedb and/or eventually do reachability testing. Implements
11683       ticket 3589.
11685   o Major features (IPv6):
11686     - Bridge authorities now accept IPv6 bridge addresses and include
11687       them in network status documents. Implements ticket 5534.
11688     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
11689       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
11690       to happen. Implements ticket 5535.
11691     - All kind of relays, not just bridges, can now advertise an IPv6
11692       OR port. Implements ticket 6362.
11693     - Directory authorities vote on IPv6 OR ports using the new consensus
11694       method 14. Implements ticket 6363.
11696   o Major features (build):
11697     - Switch to a nonrecursive Makefile structure. Now instead of each
11698       Makefile.am invoking other Makefile.am's, there is a master
11699       Makefile.am that includes the others. This change makes our build
11700       process slightly more maintainable, and improves parallelism for
11701       building with make -j. Original patch by Stewart Smith; various
11702       fixes by Jim Meyering.
11703     - Where available, we now use automake's "silent" make rules by
11704       default, so that warnings are easier to spot. You can get the old
11705       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
11707   o Minor features (code security and spec conformance):
11708     - Clear keys and key-derived material left on the stack in
11709       rendservice.c and rendclient.c. Check return value of
11710       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
11711       These fixes should make us more forward-secure against cold-boot
11712       attacks and the like. Fixes bug 2385.
11713     - Reject EXTEND cells sent to nonexistent streams. According to the
11714       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
11715       we were only checking for stream IDs that were currently in use.
11716       Found while hunting for more instances of bug 6271. Bugfix on
11717       0.0.2pre8, which introduced incremental circuit construction.
11719   o Minor features (streamlining);
11720     - No longer include the "opt" prefix when generating routerinfos
11721       or v2 directories: it has been needless since Tor 0.1.2. Closes
11722       ticket 5124.
11723     - Remove some now-needless code that tried to aggressively flush
11724       OR connections as data was added to them. Since 0.2.0.1-alpha, our
11725       cell queue logic has saved us from the failure mode that this code
11726       was supposed to prevent. Removing this code will limit the number
11727       of baroque control flow paths through Tor's network logic. Reported
11728       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
11730   o Minor features (controller):
11731     - Add a "GETINFO signal/names" control port command. Implements
11732       ticket 3842.
11733     - Provide default values for all options via "GETINFO config/defaults".
11734       Implements ticket 4971.
11736   o Minor features (IPv6):
11737     - New config option "AuthDirHasIPv6Connectivity 1" that directory
11738       authorities should set if they have IPv6 connectivity and want to
11739       do reachability tests for IPv6 relays. Implements feature 5974.
11740     - A relay with an IPv6 OR port now sends that address in NETINFO
11741       cells (in addition to its other address). Implements ticket 6364.
11743   o Minor features (log messages):
11744     - Omit the first heartbeat log message, because it never has anything
11745       useful to say, and it clutters up the bootstrapping messages.
11746       Resolves ticket 6758.
11747     - Don't log about reloading the microdescriptor cache at startup. Our
11748       bootstrap warnings are supposed to tell the user when there's a
11749       problem, and our bootstrap notices say when there isn't. Resolves
11750       ticket 6759; bugfix on 0.2.2.6-alpha.
11751     - Don't log "I learned some more directory information" when we're
11752       reading cached directory information. Reserve it for when new
11753       directory information arrives in response to a fetch. Resolves
11754       ticket 6760.
11755     - Prevent rounding error in path bias counts when scaling
11756       them down, and use the correct scale factor default. Also demote
11757       some path bias related log messages down a level and make others
11758       less scary sounding. Fixes bug 6647. Bugfix against 0.2.3.17-beta.
11759     - We no longer warn so much when generating manpages from their
11760       asciidoc source.
11762   o Code simplifications and refactoring:
11763     - Enhance our internal sscanf replacement so that we can eliminate
11764       the last remaining uses of the system sscanf. (Though those uses
11765       of sscanf were safe, sscanf itself is generally error prone, so
11766       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
11767       CID 448.
11768     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
11769     - Move last_reachable and testing_since from routerinfo_t to node_t.
11770       Implements ticket 5529.
11771     - Add replaycache_t structure, functions and unit tests, then refactor
11772       rend_service_introduce() to be more clear to read, improve, debug,
11773       and test. Resolves bug 6177.
11774     - Finally remove support for malloc_good_size and malloc_usable_size.
11775       We had hoped that these functions would let us eke a little more
11776       memory out of our malloc implementation. Unfortunately, the only
11777       implementations that provided these functions are also ones that
11778       are already efficient about not overallocation: they never got us
11779       more than 7 or so bytes per allocation. Removing them saves us a
11780       little code complexity and a nontrivial amount of build complexity.
11782   o New requirements:
11783     - Tor maintainers now require Automake version 1.9 or later to build
11784       Tor from the Git repository. (Automake is not required when building
11785       from a source distribution.)
11788 Changes in version 0.2.3.21-rc - 2012-09-05
11789   Tor 0.2.3.21-rc is the fourth release candidate for the Tor 0.2.3.x
11790   series. It fixes a trio of potential security bugs, fixes a bug where
11791   we were leaving some of the fast relays out of the microdescriptor
11792   consensus, resumes interpreting "ORPort 0" and "DirPort 0" correctly,
11793   and cleans up other smaller issues.
11795   o Major bugfixes (security):
11796     - Tear down the circuit if we get an unexpected SENDME cell. Clients
11797       could use this trick to make their circuits receive cells faster
11798       than our flow control would have allowed, or to gum up the network,
11799       or possibly to do targeted memory denial-of-service attacks on
11800       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
11801       from July 2002, before the release of Tor 0.0.0. We had committed
11802       this patch previously, but we had to revert it because of bug 6271.
11803       Now that 6271 is fixed, this patch appears to work.
11804     - Reject any attempt to extend to an internal address. Without
11805       this fix, a router could be used to probe addresses on an internal
11806       network to see whether they were accepting connections. Fixes bug
11807       6710; bugfix on 0.0.8pre1.
11808     - Do not crash when comparing an address with port value 0 to an
11809       address policy. This bug could have been used to cause a remote
11810       assertion failure by or against directory authorities, or to
11811       allow some applications to crash clients. Fixes bug 6690; bugfix
11812       on 0.2.1.10-alpha.
11814   o Major bugfixes:
11815     - Remove the upper bound on microdescriptor length. We were hitting
11816       the limit for routers with complex exit policies or family
11817       declarations, causing clients to not use them. Fixes the first
11818       piece of bug 6404; fix on 0.2.2.6-alpha.
11819     - Detect "ORPort 0" as meaning, uniformly, that we're not running
11820       as a relay. Previously, some of our code would treat the presence
11821       of any ORPort line as meaning that we should act like a relay,
11822       even though our new listener code would correctly not open any
11823       ORPorts for ORPort 0. Similar bugs in other Port options are also
11824       fixed. Fixes the first half of bug 6507; bugfix on 0.2.3.3-alpha.
11826   o Minor bugfixes:
11827     - Avoid a pair of double-free and use-after-mark bugs that can
11828       occur with certain timings in canceled and re-received DNS
11829       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
11830     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
11831       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
11832     - Allow one-hop directory fetching circuits the full "circuit build
11833       timeout" period, rather than just half of it, before failing them
11834       and marking the relay down. This fix should help reduce cases where
11835       clients declare relays (or worse, bridges) unreachable because
11836       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
11837       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
11838       30 seconds.
11839     - Authorities no longer include any router in their microdescriptor
11840       consensuses for which they couldn't generate or agree on a
11841       microdescriptor. Fixes the second piece of bug 6404; fix on
11842       0.2.2.6-alpha.
11843     - Detect and reject attempts to specify both "FooPort" and
11844       "FooPort 0" in the same configuration domain. (It's still okay
11845       to have a FooPort in your configuration file, and use "FooPort 0"
11846       on the command line to disable it.) Fixes the second half of bug
11847       6507; bugfix on 0.2.3.3-alpha.
11848     - Make wildcarded addresses (that is, ones beginning with "*.") work
11849       when provided via the controller's MapAddress command. Previously,
11850       they were accepted, but we never actually noticed that they were
11851       wildcards. Fixes bug 6244; bugfix on 0.2.3.9-alpha.
11852     - Avoid crashing on a malformed state file where EntryGuardPathBias
11853       precedes EntryGuard. Fix for bug 6774; bugfix on 0.2.3.17-beta.
11854     - Add a (probably redundant) memory clear between iterations of
11855       the router status voting loop, to prevent future coding errors
11856       where data might leak between iterations of the loop. Resolves
11857       ticket 6514.
11859   o Minor bugfixes (log messages):
11860     - Downgrade "set buildtimeout to low value" messages to "info"
11861       severity; they were never an actual problem, there was never
11862       anything reasonable to do about them, and they tended to spam logs
11863       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
11864     - Downgrade path-bias warning messages to "info". We'll try to get
11865       them working better in 0.2.4. Add internal circuit construction
11866       state to protect against the noisy warn message "Unexpectedly high
11867       circuit_successes". Also add some additional rate-limited notice
11868       messages to help determine the root cause of the warn. Fixes bug
11869       6475. Bugfix against 0.2.3.17-beta.
11870     - Move log message when unable to find a microdesc in a routerstatus
11871       entry to parse time. Previously we'd spam this warning every time
11872       we tried to figure out which microdescriptors to download. Fixes
11873       the third piece of bug 6404; fix on 0.2.3.18-rc.
11875   o Minor features:
11876     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
11877       change when the authority is deciding whether to accept a newly
11878       uploaded descriptor. Implements ticket 6423.
11879     - Add missing documentation for consensus and microdesc files.
11880       Resolves ticket 6732.
11883 Changes in version 0.2.2.38 - 2012-08-12
11884   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
11885   attack that could in theory leak path information.
11887   o Security fixes:
11888     - Avoid an uninitialized memory read when reading a vote or consensus
11889       document that has an unrecognized flavor name. This read could
11890       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
11891     - Try to leak less information about what relays a client is
11892       choosing to a side-channel attacker. Previously, a Tor client would
11893       stop iterating through the list of available relays as soon as it
11894       had chosen one, thus finishing a little earlier when it picked
11895       a router earlier in the list. If an attacker can recover this
11896       timing information (nontrivial but not proven to be impossible),
11897       they could learn some coarse-grained information about which relays
11898       a client was picking (middle nodes in particular are likelier to
11899       be affected than exits). The timing attack might be mitigated by
11900       other factors (see bug 6537 for some discussion), but it's best
11901       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
11904 Changes in version 0.2.3.20-rc - 2012-08-05
11905   Tor 0.2.3.20-rc is the third release candidate for the Tor 0.2.3.x
11906   series. It fixes a pair of code security bugs and a potential anonymity
11907   issue, updates our RPM spec files, and cleans up other smaller issues.
11909   o Security fixes:
11910     - Avoid read-from-freed-memory and double-free bugs that could occur
11911       when a DNS request fails while launching it. Fixes bug 6480;
11912       bugfix on 0.2.0.1-alpha.
11913     - Avoid an uninitialized memory read when reading a vote or consensus
11914       document that has an unrecognized flavor name. This read could
11915       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
11916     - Try to leak less information about what relays a client is
11917       choosing to a side-channel attacker. Previously, a Tor client would
11918       stop iterating through the list of available relays as soon as it
11919       had chosen one, thus finishing a little earlier when it picked
11920       a router earlier in the list. If an attacker can recover this
11921       timing information (nontrivial but not proven to be impossible),
11922       they could learn some coarse-grained information about which relays
11923       a client was picking (middle nodes in particular are likelier to
11924       be affected than exits). The timing attack might be mitigated by
11925       other factors (see bug 6537 for some discussion), but it's best
11926       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
11928   o Minor features:
11929     - Try to make the warning when giving an obsolete SOCKSListenAddress
11930       a little more useful.
11931     - Terminate active server managed proxies if Tor stops being a
11932       relay. Addresses parts of bug 6274; bugfix on 0.2.3.6-alpha.
11933     - Provide a better error message about possible OSX Asciidoc failure
11934       reasons. Fixes bug 6436.
11935     - Warn when Tor is configured to use accounting in a way that can
11936       link a hidden service to some other hidden service or public
11937       address. Resolves ticket 6490.
11939   o Minor bugfixes:
11940     - Check return value of fputs() when writing authority certificate
11941       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
11942     - Ignore ServerTransportPlugin lines when Tor is not configured as
11943       a relay. Fixes bug 6274; bugfix on 0.2.3.6-alpha.
11944     - When disabling guards for having too high a proportion of failed
11945       circuits, make sure to look at each guard. Fixes bug 6397; bugfix
11946       on 0.2.3.17-beta.
11948   o Packaging (RPM):
11949     - Update our default RPM spec files to work with mock and rpmbuild
11950       on RHEL/Fedora. They have an updated set of dependencies and
11951       conflicts, a fix for an ancient typo when creating the "_tor"
11952       user, and better instructions. Thanks to Ondrej Mikle for the
11953       patch series. Fixes bug 6043.
11955   o Testing:
11956     - Make it possible to set the TestingTorNetwork configuration
11957       option using AlternateDirAuthority and AlternateBridgeAuthority
11958       as an alternative to setting DirServer. Addresses ticket 6377.
11960   o Documentation:
11961     - Clarify the documentation for the Alternate*Authority options.
11962       Fixes bug 6387.
11963     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
11965   o Code simplification and refactoring:
11966     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
11967       10 lines. Also, don't nest them. Doing so in the past has
11968       led to hard-to-debug code. The new style is to use the
11969       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
11972 Changes in version 0.2.3.19-rc - 2012-07-06
11973   Tor 0.2.3.19-rc is the second release candidate for the Tor 0.2.3.x
11974   series. It fixes the compile on Windows, reverts to a GeoIP database
11975   that isn't as broken, and fixes a flow control bug that has been around
11976   since the beginning of Tor.
11978   o Major bugfixes:
11979     - Fix a bug handling SENDME cells on nonexistent streams that could
11980       result in bizarre window values. Report and patch contributed
11981       pseudonymously. Fixes part of bug 6271. This bug was introduced
11982       before the first Tor release, in svn commit r152.
11983     - Revert to the May 1 2012 Maxmind GeoLite Country database. In the
11984       June 2012 database, Maxmind marked many Tor relays as country "A1",
11985       which will cause risky behavior for clients that set EntryNodes
11986       or ExitNodes. Addresses bug 6334; bugfix on 0.2.3.17-beta.
11987     - Instead of ENOBUFS on Windows, say WSAENOBUFS. Fixes compilation
11988       on Windows. Fixes bug 6296; bugfix on 0.2.3.18-rc.
11990   o Minor bugfixes:
11991     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
11992       bugfix on 0.2.1.10-alpha.
11995 Changes in version 0.2.3.18-rc - 2012-06-28
11996   Tor 0.2.3.18-rc is the first release candidate for the Tor 0.2.3.x
11997   series. It fixes a few smaller bugs, but generally appears stable.
11998   Please test it and let us know whether it is!
12000   o Major bugfixes:
12001     - Allow wildcarded mapaddress targets to be specified on the
12002       controlport. Partially fixes bug 6244; bugfix on 0.2.3.9-alpha.
12003     - Make our linker option detection code more robust against linkers
12004       such as on FreeBSD 8, where a bad combination of options completes
12005       successfully but makes an unrunnable binary. Fixes bug 6173;
12006       bugfix on 0.2.3.17-beta.
12008   o Minor bugfixes (on 0.2.2.x and earlier):
12009     - Avoid a false positive in the util/threads unit test by increasing
12010       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
12011     - Replace "Sending publish request" log messages with "Launching
12012       upload", so that they no longer confusingly imply that we're
12013       sending something to a directory we might not even be connected
12014       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
12015     - Make sure to set *socket_error in all error cases in
12016       connection_connect(), so it can't produce a warning about
12017       errno being zero from errno_to_orconn_end_reason(). Bugfix on
12018       0.2.1.1-alpha; resolves ticket 6028.
12019     - Downgrade "Got a certificate, but we already have it" log messages
12020       from warning to info, except when we're a dirauth. Fixes bug 5238;
12021       bugfix on 0.2.1.7-alpha.
12022     - When checking for requested signatures on the latest consensus
12023       before serving it to a client, make sure to check the right
12024       consensus flavor. Bugfix on 0.2.2.6-alpha.
12025     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
12026       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
12028   o Minor bugfixes (on 0.2.3.x):
12029     - Make format_helper_exit_status() avoid unnecessary space padding
12030       and stop confusing log_from_pipe(). Fixes ticket 5557; bugfix
12031       on 0.2.3.1-alpha.
12032     - Downgrade a message about cleaning the microdescriptor cache to
12033       "info" from "notice". Fixes bug 6238; bugfix on 0.2.3.1-alpha.
12034     - Log a BUG message at severity INFO if we have a networkstatus with
12035       a missing entry for some microdescriptor. Continues on a patch
12036       to 0.2.3.2-alpha.
12037     - Improve the log message when a managed proxy fails to launch. Fixes
12038       bug 5099; bugfix on 0.2.3.6-alpha.
12039     - Don't do DNS lookups when parsing corrupted managed proxy protocol
12040       messages. Fixes bug 6226; bugfix on 0.2.3.6-alpha.
12041     - When formatting wildcarded address mappings for the controller,
12042       be sure to include "*." as appropriate. Partially fixes bug 6244;
12043       bugfix on 0.2.3.9-alpha.
12044     - Avoid a warning caused by using strcspn() from glibc with clang 3.0.
12045       Bugfix on 0.2.3.13-alpha.
12046     - Stop logging messages about running with circuit timeout learning
12047       enabled at severity LD_BUG. Fixes bug 6169; bugfix on 0.2.3.17-beta.
12048     - Disable a spurious warning about reading on a marked and flushing
12049       connection. We shouldn't be doing that, but apparently we
12050       sometimes do. Fixes bug 6203; bugfix on 0.2.3.17-beta.
12051     - Fix a bug that stopped AllowDotExit from working on addresses
12052       that had an entry in the DNS cache. Fixes bug 6211; bugfix on
12053       0.2.3.17-beta.
12055   o Code simplification, refactoring, unit tests:
12056     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
12057       Libevent's notion of cached time when possible.
12058     - Remove duplicate code for invoking getrlimit() from control.c.
12059     - Add a unit test for the environment_variable_names_equal function.
12061   o Documentation:
12062     - Document the --defaults-torrc option, and the new (in 0.2.3)
12063       semantics for overriding, extending, and clearing lists of
12064       options. Closes bug 4748.
12067 Changes in version 0.2.3.17-beta - 2012-06-15
12068   Tor 0.2.3.17-beta enables compiler and linker hardening by default,
12069   gets our TLS handshake back on track for being able to blend in with
12070   Firefox, fixes a big bug in 0.2.3.16-alpha that broke Tor's interaction
12071   with Vidalia, and otherwise continues to get us closer to a release
12072   candidate.
12074   o Major features:
12075     - Enable gcc and ld hardening by default. Resolves ticket 5210.
12076     - Update TLS cipher list to match Firefox 8 and later. Resolves
12077       ticket 4744.
12078     - Implement the client side of proposal 198: remove support for
12079       clients falsely claiming to support standard ciphersuites that
12080       they can actually provide. As of modern OpenSSL versions, it's not
12081       necessary to fake any standard ciphersuite, and doing so prevents
12082       us from using better ciphersuites in the future, since servers
12083       can't know whether an advertised ciphersuite is really supported or
12084       not. Some hosts -- notably, ones with very old versions of OpenSSL
12085       or where OpenSSL has been built with ECC disabled -- will stand
12086       out because of this change; TBB users should not be affected.
12088   o Major bugfixes:
12089     - Change the default value for DynamicDHGroups (introduced in
12090       0.2.3.9-alpha) to 0. This feature can make Tor relays less
12091       identifiable by their use of the mod_ssl DH group, but at
12092       the cost of some usability (#4721) and bridge tracing (#6087)
12093       regressions. Resolves ticket 5598.
12094     - Send a CRLF at the end of each STATUS_* control protocol event. This
12095       bug tickled a bug in Vidalia which would make it freeze. Fixes
12096       bug 6094; bugfix on 0.2.3.16-alpha.
12098   o Minor bugfixes:
12099     - Disable writing on marked-for-close connections when they are
12100       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
12101       bug 5263; bugfix on 0.0.2pre13, where we first added a special
12102       case for flushing marked connections.
12103     - Detect SSL handshake even when the initial attempt to write the
12104       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
12105     - Change the AllowDotExit rules so they should actually work.
12106       We now enforce AllowDotExit only immediately after receiving an
12107       address via SOCKS or DNSPort: other sources are free to provide
12108       .exit addresses after the resolution occurs. Fixes bug 3940;
12109       bugfix on 0.2.2.1-alpha.
12110     - Fix a (harmless) integer overflow in cell statistics reported by
12111       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
12112     - Make sure circuitbuild.c checks LearnCircuitBuildTimeout in all the
12113       right places and never depends on the consensus parameters or
12114       computes adaptive timeouts when it is disabled. Fixes bug 5049;
12115       bugfix on 0.2.2.14-alpha.
12116     - When building Tor on Windows with -DUNICODE (not default), ensure
12117       that error messages, filenames, and DNS server names are always
12118       NUL-terminated when we convert them to a single-byte encoding.
12119       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
12120     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
12121       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
12122     - Fix an edge case where TestingTorNetwork is set but the authorities
12123       and relays all have an uptime of zero, where the private Tor network
12124       could briefly lack support for hidden services. Fixes bug 3886;
12125       bugfix on 0.2.2.18-alpha.
12126     - Correct the manpage's descriptions for the default values of
12127       DirReqStatistics and ExtraInfoStatistics. Fixes bug 2865; bugfix
12128       on 0.2.3.1-alpha.
12129     - Fix the documentation for the --hush and --quiet command line
12130       options, which changed their behavior back in 0.2.3.3-alpha.
12131     - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
12132       0.2.3.11-alpha.
12134   o Minor features:
12135     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
12136       more information to it, so that we can track it down in case it
12137       returns again. Mitigates bug 5235.
12138     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
12139       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
12140       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
12141     - Warn the user when HTTPProxy, but no other proxy type, is
12142       configured. This can cause surprising behavior: it doesn't send
12143       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
12144       directory traffic only. Resolves ticket 4663.
12145     - Issue a notice if a guard completes less than 40% of your circuits.
12146       Threshold is configurable by torrc option PathBiasNoticeRate and
12147       consensus parameter pb_noticepct. There is additional, off-by-
12148       default code to disable guards which fail too many circuits.
12149       Addresses ticket 5458.
12150     - Update to the June 6 2012 Maxmind GeoLite Country database.
12152   o Code simplifications and refactoring:
12153     - Remove validate_pluggable_transports_config(): its warning
12154       message is now handled by connection_or_connect().
12157 Changes in version 0.2.2.37 - 2012-06-06
12158   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
12159   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
12160   currently).
12162   o Major bugfixes:
12163     - Work around a bug in OpenSSL that broke renegotiation with TLS
12164       1.1 and TLS 1.2. Without this workaround, all attempts to speak
12165       the v2 Tor connection protocol when both sides were using OpenSSL
12166       1.0.1 would fail. Resolves ticket 6033.
12167     - When waiting for a client to renegotiate, don't allow it to add
12168       any bytes to the input buffer. This fixes a potential DoS issue.
12169       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
12170     - Fix an edge case where if we fetch or publish a hidden service
12171       descriptor, we might build a 4-hop circuit and then use that circuit
12172       for exiting afterwards -- even if the new last hop doesn't obey our
12173       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
12175   o Minor bugfixes:
12176     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
12177       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
12179   o Minor features:
12180     - Tell GCC and Clang to check for any errors in format strings passed
12181       to the tor_v*(print|scan)f functions.
12184 Changes in version 0.2.3.16-alpha - 2012-06-05
12185   Tor 0.2.3.16-alpha introduces a workaround for a critical renegotiation
12186   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
12187   currently). It also fixes a variety of smaller bugs and other cleanups
12188   that get us closer to a release candidate.
12190   o Major bugfixes (general):
12191     - Work around a bug in OpenSSL that broke renegotiation with TLS
12192       1.1 and TLS 1.2. Without this workaround, all attempts to speak
12193       the v2 Tor connection protocol when both sides were using OpenSSL
12194       1.0.1 would fail. Resolves ticket 6033.
12195     - When waiting for a client to renegotiate, don't allow it to add
12196       any bytes to the input buffer. This fixes a potential DoS issue.
12197       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
12198     - Pass correct OR address to managed proxies (like obfsproxy),
12199       even when ORListenAddress is used. Fixes bug 4865; bugfix on
12200       0.2.3.9-alpha.
12201     - The advertised platform of a router now includes only its operating
12202       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not its
12203       service pack level (for Windows) or its CPU architecture (for Unix).
12204       We also no longer include the "git-XYZ" tag in the version. Resolves
12205       part of bug 2988.
12207   o Major bugfixes (clients):
12208     - If we are unable to find any exit that supports our predicted ports,
12209       stop calling them predicted, so that we don't loop and build
12210       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
12211       which introduced predicted ports.
12212     - Fix an edge case where if we fetch or publish a hidden service
12213       descriptor, we might build a 4-hop circuit and then use that circuit
12214       for exiting afterwards -- even if the new last hop doesn't obey our
12215       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
12216     - Check at each new consensus whether our entry guards were picked
12217       long enough ago that we should rotate them. Previously, we only
12218       did this check at startup, which could lead to us holding a guard
12219       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
12220     - When fetching a bridge descriptor from a bridge authority,
12221       always do so anonymously, whether we have been able to open
12222       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
12223       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
12224       but we'll need to wait for bug 6010 before it's actually usable.
12226   o Major bugfixes (directory authorities):
12227     - When computing weight parameters, behave more robustly in the
12228       presence of a bad bwweightscale value. Previously, the authorities
12229       would crash if they agreed on a sufficiently broken weight_scale
12230       value: now, they use a reasonable default and carry on. Partial
12231       fix for 5786; bugfix on 0.2.2.17-alpha.
12232     - Check more thoroughly to prevent a rogue authority from
12233       double-voting on any consensus directory parameter. Previously,
12234       authorities would crash in this case if the total number of
12235       votes for any parameter exceeded the number of active voters,
12236       but would let it pass otherwise. Partial fix for bug 5786; bugfix
12237       on 0.2.2.2-alpha.
12239   o Minor features:
12240     - Rate-limit log messages when asked to connect anonymously to
12241       a private address. When these hit, they tended to hit fast and
12242       often. Also, don't bother trying to connect to addresses that we
12243       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
12244       reply makes us think we have been lied to, even when the address the
12245       client tried to connect to was "localhost." Resolves ticket 2822.
12246     - Allow packagers to insert an extra string in server descriptor
12247       platform lines by setting the preprocessor variable TOR_BUILD_TAG.
12248       Resolves the rest of ticket 2988.
12249     - Raise the threshold of server descriptors needed (75%) and exit
12250       server descriptors needed (50%) before we will declare ourselves
12251       bootstrapped. This will make clients start building circuits a
12252       little later, but makes the initially constructed circuits less
12253       skewed and less in conflict with further directory fetches. Fixes
12254       ticket 3196.
12255     - Close any connection that sends unrecognized junk before the
12256       handshake. Solves an issue noted in bug 4369.
12257     - Improve log messages about managed transports. Resolves ticket 5070.
12258     - Tag a bridge's descriptor as "never to be sent unencrypted".
12259       This shouldn't matter, since bridges don't open non-anonymous
12260       connections to the bridge authority and don't allow unencrypted
12261       directory connections from clients, but we might as well make
12262       sure. Closes bug 5139.
12263     - Expose our view of whether we have gone dormant to the controller,
12264       via a new "GETINFO dormant" value. Torbutton and other controllers
12265       can use this to avoid doing periodic requests through Tor while
12266       it's dormant (bug 4718). Fixes bug 5954.
12267     - Tell GCC and Clang to check for any errors in format strings passed
12268       to the tor_v*(print|scan)f functions.
12269     - Update to the May 1 2012 Maxmind GeoLite Country database.
12271   o Minor bugfixes (already included in 0.2.2.36):
12272     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
12273       Fixes bug 5346; bugfix on 0.0.8pre3.
12274     - Correct parsing of certain date types in parse_http_time().
12275       Without this patch, If-Modified-Since would behave
12276       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
12277       Esteban Manchado Velázques.
12278     - Make our number-parsing functions always treat too-large values
12279       as an error, even when those values exceed the width of the
12280       underlying type. Previously, if the caller provided these
12281       functions with minima or maxima set to the extreme values of the
12282       underlying integer type, these functions would return those
12283       values on overflow rather than treating overflow as an error.
12284       Fixes part of bug 5786; bugfix on 0.0.9.
12285     - If we hit the error case where routerlist_insert() replaces an
12286       existing (old) server descriptor, make sure to remove that
12287       server descriptor from the old_routers list. Fix related to bug
12288       1776. Bugfix on 0.2.2.18-alpha.
12289     - Clarify the behavior of MaxCircuitDirtiness with hidden service
12290       circuits. Fixes issue 5259.
12292   o Minor bugfixes (coding cleanup, on 0.2.2.x and earlier):
12293     - Prevent a null-pointer dereference when receiving a data cell
12294       for a nonexistent stream when the circuit in question has an
12295       empty deliver window. We don't believe this is triggerable,
12296       since we don't currently allow deliver windows to become empty,
12297       but the logic is tricky enough that it's better to make the code
12298       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
12299     - Fix a memory leak when trying to launch a DNS request when the
12300       network is disabled or the nameservers are unconfigurable. Fixes
12301       bug 5916; bugfix on Tor 0.1.2.1-alpha (for the unconfigurable
12302       nameserver case) and on 0.2.3.9-alpha (for the DisableNetwork case).
12303     - Don't hold a Windows file handle open for every file mapping;
12304       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
12305       0.1.2.1-alpha.
12306     - Avoid O(n^2) performance characteristics when parsing a large
12307       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
12308     - Format more doubles with %f, not %lf. Patch from grarpamp to make
12309       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
12310       Tor 0.2.0.8-alpha.
12311     - Make our replacement implementation of strtok_r() compatible with
12312       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
12313       bugfix on 0.2.2.1-alpha.
12314     - Fix a NULL-pointer dereference on a badly formed
12315       SETCIRCUITPURPOSE command. Found by mikeyc. Fixes bug 5796;
12316       bugfix on 0.2.2.9-alpha.
12317     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
12318       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
12319     - Defensively refactor rend_mid_rendezvous() so that protocol
12320       violations and length checks happen in the beginning. Fixes
12321       bug 5645.
12322     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
12323       that IPv6 stuff will compile on MSVC, and compilation issues
12324       will be easier to track down. Fixes bug 5861.
12326   o Minor bugfixes (correctness, on 0.2.2.x and earlier):
12327     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
12328       resource exhaustion, so that clients can adjust their load to
12329       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
12330       started using END_STREAM_REASON_RESOURCELIMIT.
12331     - Don't check for whether the address we're using for outbound
12332       connections has changed until after the outbound connection has
12333       completed. On Windows, getsockname() doesn't succeed until the
12334       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
12335     - If the configuration tries to set MyFamily on a bridge, refuse to
12336       do so, and warn about the security implications. Fixes bug 4657;
12337       bugfix on 0.2.0.3-alpha.
12338     - If the client fails to set a reasonable set of ciphersuites
12339       during its v2 handshake renegotiation, allow the renegotiation to
12340       continue nevertheless (i.e. send all the required certificates).
12341       Fixes bug 4591; bugfix on 0.2.0.20-rc.
12342     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
12343       option is set to 0 (which Vidalia version 0.2.16 now does when
12344       a SAVECONF attempt fails), perform other actions that SIGHUP
12345       usually causes (like reopening the logs). Fixes bug 5095; bugfix
12346       on 0.2.1.9-alpha.
12347     - If we fail to write a microdescriptor to the disk cache, do not
12348       continue replacing the old microdescriptor file. Fixes bug 2954;
12349       bugfix on 0.2.2.6-alpha.
12350     - Exit nodes don't need to fetch certificates for authorities that
12351       they don't recognize; only directory authorities, bridges,
12352       and caches need to do that. Fixes part of bug 2297; bugfix on
12353       0.2.2.11-alpha.
12354     - Correctly handle checking the permissions on the parent
12355       directory of a control socket in the root directory. Bug found
12356       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
12357       0.2.2.26-beta.
12358     - When told to add a bridge with the same digest as a preexisting
12359       bridge but a different addr:port, change the addr:port as
12360       requested. Previously we would not notice the change. Fixes half
12361       of bug 5603; fix on 0.2.2.26-beta.
12362     - End AUTHCHALLENGE error messages (in the control protocol) with
12363       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36 and 0.2.3.13-alpha.
12365   o Minor bugfixes (on 0.2.3.x):
12366     - Turn an assertion (that the number of handshakes received as a
12367       server is not < 1) into a warning. Fixes bug 4873; bugfix on
12368       0.2.3.1-alpha.
12369     - Format IPv4 addresses correctly in ADDRMAP events. (Previously,
12370       we had reversed them when the answer was cached.) Fixes bug
12371       5723; bugfix on 0.2.3.1-alpha.
12372     - Work correctly on Linux systems with accept4 support advertised in
12373       their headers, but without accept4 support in the kernel. Fix
12374       by murb. Fixes bug 5762; bugfix on 0.2.3.1-alpha.
12375     - When told to add a bridge with the same addr:port as a preexisting
12376       bridge but a different transport, change the transport as
12377       requested. Previously we would not notice the change. Fixes half
12378       of bug 5603; fix on 0.2.3.2-alpha.
12379     - Avoid a "double-reply" warning when replying to a SOCKS request
12380       with a parse error. Patch from Fabian Keil. Fixes bug 4108;
12381       bugfix on 0.2.3.4-alpha.
12382     - Fix a bug where a bridge authority crashes if it has seen no
12383       directory requests when it's time to write statistics to disk.
12384       Fixes bug 5891; bugfix on 0.2.3.6-alpha. Also fixes bug 5508 in
12385       a better way.
12386     - Don't try to open non-control listeners when DisableNetwork is set.
12387       Previously, we'd open all listeners, then immediately close them.
12388       Fixes bug 5604; bugfix on 0.2.3.9-alpha.
12389     - Don't abort the managed proxy protocol if the managed proxy
12390       sends us an unrecognized line; ignore it instead. Fixes bug
12391       5910; bugfix on 0.2.3.9-alpha.
12392     - Fix a compile warning in crypto.c when compiling with clang 3.1.
12393       Fixes bug 5969, bugfix on 0.2.3.9-alpha.
12394     - Fix a compilation issue on GNU Hurd, which doesn't have PATH_MAX.
12395       Fixes bug 5355; bugfix on 0.2.3.11-alpha.
12396     - Remove bogus definition of "_WIN32" from src/win32/orconfig.h, to
12397       unbreak the MSVC build. Fixes bug 5858; bugfix on 0.2.3.12-alpha.
12398     - Resolve numerous small warnings and build issues with MSVC. Resolves
12399       bug 5859.
12401   o Documentation fixes:
12402     - Improve the manual's documentation for the NT Service command-line
12403       options. Addresses ticket 3964.
12404     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
12405     - Document the changes to the ORPort and DirPort options, and the
12406       fact that {OR/Dir}ListenAddress is now unnecessary (and
12407       therefore deprecated). Resolves ticket 5597.
12409   o Removed files:
12410     - Remove the torrc.bridge file: we don't use it for anything, and
12411       it had become badly desynchronized from torrc.sample. Resolves
12412       bug 5622.
12415 Changes in version 0.2.2.36 - 2012-05-24
12416   Tor 0.2.2.36 updates the addresses for two of the eight directory
12417   authorities, fixes some potential anonymity and security issues,
12418   and fixes several crash bugs.
12420   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
12421   known flaws, and nobody should be using them. You should upgrade. If
12422   you're using a Linux or BSD and its packages are obsolete, stop using
12423   those packages and upgrade anyway.
12425   o Directory authority changes:
12426     - Change IP address for maatuska (v3 directory authority).
12427     - Change IP address for ides (v3 directory authority), and rename
12428       it to turtles.
12430   o Security fixes:
12431     - When building or running with any version of OpenSSL earlier
12432       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
12433       versions have a bug (CVE-2011-4576) in which their block cipher
12434       padding includes uninitialized data, potentially leaking sensitive
12435       information to any peer with whom they make a SSLv3 connection. Tor
12436       does not use SSL v3 by default, but a hostile client or server
12437       could force an SSLv3 connection in order to gain information that
12438       they shouldn't have been able to get. The best solution here is to
12439       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
12440       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
12441       to make sure that the bug can't happen.
12442     - Never use a bridge or a controller-supplied node as an exit, even
12443       if its exit policy allows it. Found by wanoskarnet. Fixes bug
12444       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
12445       and 0.2.0.3-alpha (for bridge-purpose descriptors).
12446     - Only build circuits if we have a sufficient threshold of the total
12447       descriptors that are marked in the consensus with the "Exit"
12448       flag. This mitigates an attack proposed by wanoskarnet, in which
12449       all of a client's bridges collude to restrict the exit nodes that
12450       the client knows about. Fixes bug 5343.
12451     - Provide controllers with a safer way to implement the cookie
12452       authentication mechanism. With the old method, if another locally
12453       running program could convince a controller that it was the Tor
12454       process, then that program could trick the controller into telling
12455       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
12456       authentication method uses a challenge-response approach to prevent
12457       this attack. Fixes bug 5185; implements proposal 193.
12459   o Major bugfixes:
12460     - Avoid logging uninitialized data when unable to decode a hidden
12461       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
12462     - Avoid a client-side assertion failure when receiving an INTRODUCE2
12463       cell on a general purpose circuit. Fixes bug 5644; bugfix on
12464       0.2.1.6-alpha.
12465     - Fix builds when the path to sed, openssl, or sha1sum contains
12466       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
12467       on 0.2.2.1-alpha.
12468     - Correct our replacements for the timeradd() and timersub() functions
12469       on platforms that lack them (for example, Windows). The timersub()
12470       function is used when expiring circuits, while timeradd() is
12471       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
12472       bugfix on 0.2.2.24-alpha.
12473     - Fix the SOCKET_OK test that we use to tell when socket
12474       creation fails so that it works on Win64. Fixes part of bug 4533;
12475       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
12477   o Minor bugfixes:
12478     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
12479       Fixes bug 5346; bugfix on 0.0.8pre3.
12480     - Make our number-parsing functions always treat too-large values
12481       as an error, even when those values exceed the width of the
12482       underlying type. Previously, if the caller provided these
12483       functions with minima or maxima set to the extreme values of the
12484       underlying integer type, these functions would return those
12485       values on overflow rather than treating overflow as an error.
12486       Fixes part of bug 5786; bugfix on 0.0.9.
12487     - Older Linux kernels erroneously respond to strange nmap behavior
12488       by having accept() return successfully with a zero-length
12489       socket. When this happens, just close the connection. Previously,
12490       we would try harder to learn the remote address: but there was
12491       no such remote address to learn, and our method for trying to
12492       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
12493       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
12494     - Correct parsing of certain date types in parse_http_time().
12495       Without this patch, If-Modified-Since would behave
12496       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
12497       Esteban Manchado Velázques.
12498     - Change the BridgePassword feature (part of the "bridge community"
12499       design, which is not yet implemented) to use a time-independent
12500       comparison. The old behavior might have allowed an adversary
12501       to use timing to guess the BridgePassword value. Fixes bug 5543;
12502       bugfix on 0.2.0.14-alpha.
12503     - Detect and reject certain misformed escape sequences in
12504       configuration values. Previously, these values would cause us
12505       to crash if received in a torrc file or over an authenticated
12506       control port. Bug found by Esteban Manchado Velázquez, and
12507       independently by Robert Connolly from Matta Consulting who further
12508       noted that it allows a post-authentication heap overflow. Patch
12509       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
12510       bugfix on 0.2.0.16-alpha.
12511     - Fix a compile warning when using the --enable-openbsd-malloc
12512       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
12513     - During configure, detect when we're building with clang version
12514       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
12515       CFLAGS. clang doesn't support them yet.
12516     - When sending an HTTP/1.1 proxy request, include a Host header.
12517       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
12518     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
12519       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
12520     - If we hit the error case where routerlist_insert() replaces an
12521       existing (old) server descriptor, make sure to remove that
12522       server descriptor from the old_routers list. Fix related to bug
12523       1776. Bugfix on 0.2.2.18-alpha.
12525   o Minor bugfixes (documentation and log messages):
12526     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
12527       Fixes bug 4856; bugfix on Tor 0.0.6.
12528     - Update "ClientOnly" man page entry to explain that there isn't
12529       really any point to messing with it. Resolves ticket 5005.
12530     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
12531       directory authority option (introduced in Tor 0.2.2.34).
12532     - Downgrade the "We're missing a certificate" message from notice
12533       to info: people kept mistaking it for a real problem, whereas it
12534       is seldom the problem even when we are failing to bootstrap. Fixes
12535       bug 5067; bugfix on 0.2.0.10-alpha.
12536     - Correctly spell "connect" in a log message on failure to create a
12537       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
12538     - Clarify the behavior of MaxCircuitDirtiness with hidden service
12539       circuits. Fixes issue 5259.
12541   o Minor features:
12542     - Directory authorities now reject versions of Tor older than
12543       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
12544       inclusive. These versions accounted for only a small fraction of
12545       the Tor network, and have numerous known security issues. Resolves
12546       issue 4788.
12547     - Update to the May 1 2012 Maxmind GeoLite Country database.
12549   - Feature removal:
12550     - When sending or relaying a RELAY_EARLY cell, we used to convert
12551       it to a RELAY cell if the connection was using the v1 link
12552       protocol. This was a workaround for older versions of Tor, which
12553       didn't handle RELAY_EARLY cells properly. Now that all supported
12554       versions can handle RELAY_EARLY cells, and now that we're enforcing
12555       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
12556       remove this workaround. Addresses bug 4786.
12559 Changes in version 0.2.3.15-alpha - 2012-04-30
12560   Tor 0.2.3.15-alpha fixes a variety of smaller bugs, including making
12561   the development branch build on Windows again.
12563   o Minor bugfixes (on 0.2.2.x and earlier):
12564     - Make sure that there are no unhandled pending TLS errors before
12565       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
12566       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
12567       Bugfix on 0.1.0.5-rc; fixes bug 4528.
12568     - Fix an assert that directory authorities could trigger on sighup
12569       during some configuration state transitions. We now don't treat
12570       it as a fatal error when the new descriptor we just generated in
12571       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
12572     - After we pick a directory mirror, we would refuse to use it if
12573       it's in our ExcludeExitNodes list, resulting in mysterious failures
12574       to bootstrap for people who just wanted to avoid exiting from
12575       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
12576     - When building with --enable-static-tor on OpenBSD, do not
12577       erroneously attempt to link -lrt. Fixes bug 5103.
12579   o Minor bugfixes (on 0.2.3.x):
12580     - When Tor is built with kernel headers from a recent (last few
12581       years) Linux kernel, do not fail to run on older (pre-2.6.28
12582       Linux kernels). Fixes bug 5112; bugfix on 0.2.3.1-alpha.
12583     - Fix cross-compilation issues with mingw. Bugfixes on 0.2.3.6-alpha
12584       and 0.2.3.12-alpha.
12585     - Fix compilation with miniupnpc version 1.6; patch from
12586       Anthony G. Basile. Fixes bug 5434; bugfix on 0.2.3.12-alpha.
12587     - Fix compilation with MSVC, which had defined MS_WINDOWS. Bugfix
12588       on 0.2.3.13-alpha; found and fixed by Gisle Vanem.
12589     - Fix compilation on platforms without unistd.h, or where environ
12590       is defined in stdlib.h. Fixes bug 5704; bugfix on 0.2.3.13-alpha.
12592   o Minor features:
12593     - Directory authorities are now a little more lenient at accepting
12594       older router descriptors, or newer router descriptors that don't
12595       make big changes. This should help ameliorate past and future
12596       issues where routers think they have uploaded valid descriptors,
12597       but the authorities don't think so. Fix for ticket 2479.
12598     - Make the code that clients use to detect an address change be
12599       IPv6-aware, so that it won't fill clients' logs with error
12600       messages when trying to get the IPv4 address of an IPv6
12601       connection. Implements ticket 5537.
12603   o Removed features:
12604     - Remove the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays option;
12605       authorities needed to use it for a while to keep the network working
12606       as people upgraded to 0.2.1.31, 0.2.2.34, or 0.2.3.6-alpha, but
12607       that was six months ago. As of now, it should no longer be needed
12608       or used.
12611 Changes in version 0.2.3.14-alpha - 2012-04-23
12612   Tor 0.2.3.14-alpha fixes yet more bugs to get us closer to a release
12613   candidate. It also dramatically speeds up AES: fast relays should
12614   consider switching to the newer OpenSSL library.
12616   o Directory authority changes:
12617     - Change IP address for ides (v3 directory authority), and rename
12618       it to turtles.
12620   o Major bugfixes:
12621     - Avoid logging uninitialized data when unable to decode a hidden
12622       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
12623     - Avoid a client-side assertion failure when receiving an INTRODUCE2
12624       cell on a general purpose circuit. Fixes bug 5644; bugfix on
12625       0.2.1.6-alpha.
12626     - If authorities are unable to get a v2 consensus document from other
12627       directory authorities, they no longer fall back to fetching
12628       them from regular directory caches. Fixes bug 5635; bugfix on
12629       0.2.2.26-beta, where routers stopped downloading v2 consensus
12630       documents entirely.
12631     - When we start a Tor client with a normal consensus already cached,
12632       be willing to download a microdescriptor consensus. Fixes bug 4011;
12633       fix on 0.2.3.1-alpha.
12635   o Major features (performance):
12636     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
12637       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
12638       vectorized AES implementations as appropriate. These can be much,
12639       much faster than other AES implementations.
12641   o Minor bugfixes (0.2.2.x and earlier):
12642     - Don't launch more than 10 service-side introduction-point circuits
12643       for a hidden service in five minutes. Previously, we would consider
12644       launching more introduction-point circuits if at least one second
12645       had passed without any introduction-point circuits failing. Fixes
12646       bug 4607; bugfix on 0.0.7pre1.
12647     - Change the BridgePassword feature (part of the "bridge community"
12648       design, which is not yet implemented) to use a time-independent
12649       comparison. The old behavior might have allowed an adversary
12650       to use timing to guess the BridgePassword value. Fixes bug 5543;
12651       bugfix on 0.2.0.14-alpha.
12652     - Enforce correct return behavior of tor_vsscanf() when the '%%'
12653       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
12654     - When sending an HTTP/1.1 proxy request, include a Host header.
12655       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
12656     - Don't log that we have "decided to publish new relay descriptor"
12657       unless we are actually publishing a descriptor. Fixes bug 3942;
12658       bugfix on 0.2.2.28-beta.
12660   o Minor bugfixes (0.2.3.x):
12661     - Fix a bug where a bridge authority crashes (on a failed assert)
12662       if it has seen no directory requests when it's time to write
12663       statistics to disk. Fixes bug 5508. Bugfix on 0.2.3.6-alpha.
12664     - Fix bug stomping on ORPort option NoListen and ignoring option
12665       NoAdvertise. Fixes bug 5151; bugfix on 0.2.3.9-alpha.
12666     - In the testsuite, provide a large enough buffer in the tor_sscanf
12667       unit test. Otherwise we'd overrun that buffer and crash during
12668       the unit tests. Found by weasel. Fixes bug 5449; bugfix on
12669       0.2.3.12-alpha.
12670     - Make sure we create the keys directory if it doesn't exist and we're
12671       about to store the dynamic Diffie-Hellman parameters. Fixes bug
12672       5572; bugfix on 0.2.3.13-alpha.
12673     - Fix a small memory leak when trying to decode incorrect base16
12674       authenticator during SAFECOOKIE authentication. Found by
12675       Coverity Scan. Fixes CID 507. Bugfix on 0.2.3.13-alpha.
12677   o Minor features:
12678     - Add more information to a log statement that might help track down
12679       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
12680       non-IP address" messages (or any Bug messages, for that matter!),
12681       please let us know about it.
12682     - Relays now understand an IPv6 address when they get one from a
12683       directory server. Resolves ticket 4875.
12684     - Resolve IPv6 addresses in bridge and entry statistics to country
12685       code "??" which means we at least count them. Resolves ticket 5053;
12686       improves on 0.2.3.9-alpha.
12687     - Update to the April 3 2012 Maxmind GeoLite Country database.
12688     - Begin a doc/state-contents.txt file to explain the contents of
12689       the Tor state file. Fixes bug 2987.
12691   o Default torrc changes:
12692     - Stop listing "socksport 9050" in torrc.sample. We open a socks
12693       port on 9050 by default anyway, so this should not change anything
12694       in practice.
12695     - Stop mentioning the deprecated *ListenAddress options in
12696       torrc.sample. Fixes bug 5438.
12697     - Document unit of bandwidth related options in sample torrc.
12698       Fixes bug 5621.
12700   o Removed features:
12701     - The "torify" script no longer supports the "tsocks" socksifier
12702       tool, since tsocks doesn't support DNS and UDP right for Tor.
12703       Everyone should be using torsocks instead. Fixes bugs 3530 and
12704       5180. Based on a patch by "ugh".
12706   o Code refactoring:
12707     - Change the symmetric cipher interface so that creating and
12708       initializing a stream cipher are no longer separate functions.
12709     - Remove all internal support for unpadded RSA. We never used it, and
12710       it would be a bad idea to start.
12713 Changes in version 0.2.3.13-alpha - 2012-03-26
12714   Tor 0.2.3.13-alpha fixes a variety of stability and correctness bugs
12715   in managed pluggable transports, as well as providing other cleanups
12716   that get us closer to a release candidate.
12718   o Directory authority changes:
12719     - Change IP address for maatuska (v3 directory authority).
12721   o Security fixes:
12722     - Provide controllers with a safer way to implement the cookie
12723       authentication mechanism. With the old method, if another locally
12724       running program could convince a controller that it was the Tor
12725       process, then that program could trick the controller into telling
12726       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
12727       authentication method uses a challenge-response approach to prevent
12728       this attack. Fixes bug 5185, implements proposal 193.
12729     - Never use a bridge or a controller-supplied node as an exit, even
12730       if its exit policy allows it. Found by wanoskarnet. Fixes bug
12731       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
12732       and 0.2.0.3-alpha (for bridge-purpose descriptors).
12733     - Only build circuits if we have a sufficient threshold of the total
12734       descriptors that are marked in the consensus with the "Exit"
12735       flag. This mitigates an attack proposed by wanoskarnet, in which
12736       all of a client's bridges collude to restrict the exit nodes that
12737       the client knows about. Fixes bug 5343.
12739   o Major bugfixes (on Tor 0.2.3.x):
12740     - Avoid an assert when managed proxies like obfsproxy are configured,
12741       and we receive HUP signals or setconf attempts too rapidly. This
12742       situation happens most commonly when Vidalia tries to attach to
12743       Tor or tries to configure the Tor it's attached to. Fixes bug 5084;
12744       bugfix on 0.2.3.6-alpha.
12745     - Fix a relay-side pluggable transports bug where managed proxies were
12746       unreachable from the Internet, because Tor asked them to bind on
12747       localhost. Fixes bug 4725; bugfix on 0.2.3.9-alpha.
12748     - Stop discarding command-line arguments when TestingTorNetwork
12749       is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
12750       0.2.3.9-alpha, where task 4552 added support for two layers of
12751       torrc files.
12752     - Resume allowing the unit tests to run in gdb. This was accidentally
12753       made impossible when the DisableDebuggerAttachment option was
12754       introduced. Fixes bug 5448; bugfix on 0.2.3.9-alpha.
12755     - Resume building with nat-pmp support. Fixes bug 4955; bugfix on
12756       0.2.3.11-alpha. Reported by Anthony G. Basile.
12758   o Minor bugfixes (on 0.2.2.x and earlier):
12759     - Ensure we don't cannibalize circuits that are longer than three hops
12760       already, so we don't end up making circuits with 5 or more
12761       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
12762       0.1.0.1-rc which introduced cannibalization.
12763     - Detect and reject certain misformed escape sequences in
12764       configuration values. Previously, these values would cause us
12765       to crash if received in a torrc file or over an authenticated
12766       control port. Bug found by Esteban Manchado Velázquez, and
12767       independently by Robert Connolly from Matta Consulting who further
12768       noted that it allows a post-authentication heap overflow. Patch
12769       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
12770       bugfix on 0.2.0.16-alpha.
12771     - Fix a compile warning when using the --enable-openbsd-malloc
12772       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
12773     - Directory caches no longer refuse to clean out descriptors because
12774       of missing v2 networkstatus documents, unless they're configured
12775       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
12776       0.2.2.26-beta. Patch by Daniel Bryg.
12777     - Update to the latest version of the tinytest unit testing framework.
12778       This includes a couple of bugfixes that can be relevant for
12779       running forked unit tests on Windows, and removes all reserved
12780       identifiers.
12782   o Minor bugfixes (on 0.2.3.x):
12783     - On a failed pipe() call, don't leak file descriptors. Fixes bug
12784       4296; bugfix on 0.2.3.1-alpha.
12785     - Spec conformance: on a v3 handshake, do not send a NETINFO cell
12786       until after we have received a CERTS cell. Fixes bug 4361; bugfix
12787       on 0.2.3.6-alpha. Patch by "frosty".
12788     - When binding to an IPv6 address, set the IPV6_V6ONLY socket
12789       option, so that the IP stack doesn't decide to use it for IPv4
12790       too. Fixes bug 4760; bugfix on 0.2.3.9-alpha.
12791     - Ensure that variables set in Tor's environment cannot override
12792       environment variables that Tor passes to a managed
12793       pluggable-transport proxy. Previously, Tor would pass every
12794       variable in its environment to managed proxies along with the new
12795       ones, in such a way that on many operating systems, the inherited
12796       environment variables would override those which Tor tried to
12797       explicitly set. Bugfix on 0.2.3.12-alpha for most Unixoid systems;
12798       bugfix on 0.2.3.9-alpha for Windows.
12800   o Minor features:
12801     - A wide variety of new unit tests by Esteban Manchado Velázquez.
12802     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
12803     - Update to the March 6 2012 Maxmind GeoLite Country database.
12806 Changes in version 0.2.3.12-alpha - 2012-02-13
12807   Tor 0.2.3.12-alpha lets fast exit relays scale better, allows clients
12808   to use bridges that run Tor 0.2.2.x, and resolves several big bugs
12809   when Tor is configured to use a pluggable transport like obfsproxy.
12811   o Major bugfixes:
12812     - Fix builds when the path to sed, openssl, or sha1sum contains
12813       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
12814       on 0.2.2.1-alpha.
12815     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
12816       connections. This change should allow busy exit relays to stop
12817       running out of available sockets as quickly. Fixes bug 4950;
12818       bugfix on 0.2.2.26-beta.
12819     - Allow 0.2.3.x clients to use 0.2.2.x bridges. Previously the client
12820       would ask the bridge for microdescriptors, which are only supported
12821       in 0.2.3.x, and then fail to bootstrap when it didn't get the
12822       answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.
12823     - Properly set up obfsproxy's environment when in managed mode. The
12824       Tor Browser Bundle needs LD_LIBRARY_PATH to be passed to obfsproxy,
12825       and when you run your Tor as a daemon, there's no HOME. Fixes bugs
12826       5076 and 5082; bugfix on 0.2.3.6-alpha.
12828   o Minor features:
12829     - Use the dead_strip option when building Tor on OS X. This reduces
12830       binary size by almost 19% when linking openssl and libevent
12831       statically, which we do for Tor Browser Bundle.
12832     - Fix broken URLs in the sample torrc file, and tell readers about
12833       the OutboundBindAddress, ExitPolicyRejectPrivate, and
12834       PublishServerDescriptor options. Addresses bug 4652.
12835     - Update to the February 7 2012 Maxmind GeoLite Country database.
12837   o Minor bugfixes:
12838     - Downgrade the "We're missing a certificate" message from notice
12839       to info: people kept mistaking it for a real problem, whereas it
12840       is seldom the problem even when we are failing to bootstrap. Fixes
12841       bug 5067; bugfix on 0.2.0.10-alpha.
12842     - Don't put "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200" in a
12843       managed pluggable transport server proxy's environment.
12844       Previously, we would put it there, even though Tor doesn't
12845       implement an 'extended server port' yet, and even though Tor
12846       almost certainly isn't listening at that address. For now, we set
12847       it to an empty string to avoid crashing older obfsproxies. Bugfix
12848       on 0.2.3.6-alpha.
12849     - Log the heartbeat message every HeartbeatPeriod seconds, not every
12850       HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
12851       0.2.3.1-alpha. Bug reported by Scott Bennett.
12852     - Calculate absolute paths correctly on Windows. Fixes bug 4973;
12853       bugfix on 0.2.3.11-alpha.
12854     - Update "ClientOnly" man page entry to explain that there isn't
12855       really any point to messing with it. Resolves ticket 5005.
12856     - Use the correct CVE number for CVE-2011-4576 in our comments and
12857       log messages. Found by "fermenthor". Resolves bug 5066; bugfix on
12858       0.2.3.11-alpha.
12860   o Code simplifications and refactoring:
12861     - Use the _WIN32 macro throughout our code to detect Windows.
12862       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
12863       'MS_WINDOWS'.)
12866 Changes in version 0.2.3.11-alpha - 2012-01-22
12867   Tor 0.2.3.11-alpha marks feature-freeze for the 0.2.3 tree. It deploys
12868   the last step of the plan to limit maximum circuit length, includes
12869   a wide variety of hidden service performance and correctness fixes,
12870   works around an OpenSSL security flaw if your distro is too stubborn
12871   to upgrade, and fixes a bunch of smaller issues.
12873   o Major features:
12874     - Now that Tor 0.2.0.x is completely deprecated, enable the final
12875       part of "Proposal 110: Avoiding infinite length circuits" by
12876       refusing all circuit-extend requests that do not use a relay_early
12877       cell. This change helps Tor resist a class of denial-of-service
12878       attacks by limiting the maximum circuit length.
12879     - Adjust the number of introduction points that a hidden service
12880       will try to maintain based on how long its introduction points
12881       remain in use and how many introductions they handle. Fixes
12882       part of bug 3825.
12883     - Try to use system facilities for enumerating local interface
12884       addresses, before falling back to our old approach (which was
12885       binding a UDP socket, and calling getsockname() on it). That
12886       approach was scaring OS X users whose draconian firewall
12887       software warned about binding to UDP sockets, regardless of
12888       whether packets were sent. Now we try to use getifaddrs(),
12889       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
12890       system supports. Resolves ticket 1827.
12892   o Major security workaround:
12893     - When building or running with any version of OpenSSL earlier
12894       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
12895       versions have a bug (CVE-2011-4576) in which their block cipher
12896       padding includes uninitialized data, potentially leaking sensitive
12897       information to any peer with whom they make a SSLv3 connection. Tor
12898       does not use SSL v3 by default, but a hostile client or server
12899       could force an SSLv3 connection in order to gain information that
12900       they shouldn't have been able to get. The best solution here is to
12901       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
12902       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
12903       to make sure that the bug can't happen.
12905   o Major bugfixes:
12906     - Fix the SOCKET_OK test that we use to tell when socket
12907       creation fails so that it works on Win64. Fixes part of bug 4533;
12908       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
12909     - Correct our replacements for the timeradd() and timersub() functions
12910       on platforms that lack them (for example, Windows). The timersub()
12911       function is used when expiring circuits, while timeradd() is
12912       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
12913       bugfix on 0.2.2.24-alpha and 0.2.3.1-alpha.
12914     - Do not use OpenSSL 1.0.0's counter mode: it has a critical bug
12915       that was fixed in OpenSSL 1.0.0a. We test for the counter mode
12916       bug at runtime, not compile time, because some distributions hack
12917       their OpenSSL to mis-report its version. Fixes bug 4779; bugfix
12918       on 0.2.3.9-alpha. Found by Pascal.
12920   o Minor features (controller):
12921     - Use absolute path names when reporting the torrc filename in the
12922       control protocol, so a controller can more easily find the torrc
12923       file. Resolves bug 1101.
12924     - Extend the control protocol to report flags that control a circuit's
12925       path selection in CIRC events and in replies to 'GETINFO
12926       circuit-status'. Implements part of ticket 2411.
12927     - Extend the control protocol to report the hidden service address
12928       and current state of a hidden-service-related circuit in CIRC
12929       events and in replies to 'GETINFO circuit-status'. Implements part
12930       of ticket 2411.
12931     - When reporting the path to the cookie file to the controller,
12932       give an absolute path. Resolves ticket 4881.
12933     - Allow controllers to request an event notification whenever a
12934       circuit is cannibalized or its purpose is changed. Implements
12935       part of ticket 3457.
12936     - Include the creation time of a circuit in CIRC and CIRC2
12937       control-port events and the list produced by the 'GETINFO
12938       circuit-status' control-port command.
12940   o Minor features (directory authorities):
12941     - Directory authorities now reject versions of Tor older than
12942       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
12943       inclusive. These versions accounted for only a small fraction of
12944       the Tor network, and have numerous known security issues. Resolves
12945       issue 4788.
12946     - Authority operators can now vote for all relays in a given
12947       set of countries to be BadDir/BadExit/Invalid/Rejected.
12948     - Provide two consensus parameters (FastFlagMinThreshold and
12949       FastFlagMaxThreshold) to control the range of allowable bandwidths
12950       for the Fast directory flag. These allow authorities to run
12951       experiments on appropriate requirements for being a "Fast" node.
12952       The AuthDirFastGuarantee config value still applies. Implements
12953       ticket 3946.
12954     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
12955       directory authority option (introduced in Tor 0.2.2.34).
12957   o Minor features (other):
12958     - Don't disable the DirPort when we cannot exceed our AccountingMax
12959       limit during this interval because the effective bandwidthrate is
12960       low enough. This is useful in a situation where AccountMax is only
12961       used as an additional safeguard or to provide statistics.
12962     - Prepend an informative header to generated dynamic_dh_params files.
12963     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
12964       EntryNodes will have no effect. Resolves issue 2571.
12965     - Log more useful messages when we fail to disable debugger
12966       attachment.
12967     - Log which authority we're missing votes from when we go to fetch
12968       them from the other auths.
12969     - Log (at debug level) whenever a circuit's purpose is changed.
12970     - Add missing documentation for the MaxClientCircuitsPending,
12971       UseMicrodescriptors, UserspaceIOCPBuffers, and
12972       _UseFilteringSSLBufferevents options, all introduced during
12973       the 0.2.3.x series.
12974     - Update to the January 3 2012 Maxmind GeoLite Country database.
12976   o Minor bugfixes (hidden services):
12977     - Don't close hidden service client circuits which have almost
12978       finished connecting to their destination when they reach
12979       the normal circuit-build timeout. Previously, we would close
12980       introduction circuits which are waiting for an acknowledgement
12981       from the introduction point, and rendezvous circuits which have
12982       been specified in an INTRODUCE1 cell sent to a hidden service,
12983       after the normal CBT. Now, we mark them as 'timed out', and launch
12984       another rendezvous attempt in parallel. This behavior change can
12985       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
12986       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
12987     - Don't close hidden-service-side rendezvous circuits when they
12988       reach the normal circuit-build timeout. This behavior change can
12989       be disabled using the new
12990       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
12991       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
12992     - Make sure we never mark the wrong rendezvous circuit as having
12993       had its introduction cell acknowleged by the introduction-point
12994       relay. Previously, when we received an INTRODUCE_ACK cell on a
12995       client-side hidden-service introduction circuit, we might have
12996       marked a rendezvous circuit other than the one we specified in
12997       the INTRODUCE1 cell as INTRO_ACKED, which would have produced
12998       a warning message and interfered with the hidden service
12999       connection-establishment process. Fixes bug 4759; bugfix on
13000       0.2.3.3-alpha, when we added the stream-isolation feature which
13001       might cause Tor to open multiple rendezvous circuits for the same
13002       hidden service.
13003     - Don't trigger an assertion failure when we mark a new client-side
13004       hidden-service introduction circuit for close during the process
13005       of creating it. Fixes bug 4796; bugfix on 0.2.3.6-alpha. Reported
13006       by murb.
13008   o Minor bugfixes (log messages):
13009     - Correctly spell "connect" in a log message on failure to create a
13010       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta and
13011       0.2.3.2-alpha.
13012     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
13013       Fixes bug 4856; bugfix on Tor 0.0.6.
13014     - Fix the log message describing how we work around discovering
13015       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
13016       4837; bugfix on 0.2.2.9-alpha.
13017     - When logging about a disallowed .exit name, do not also call it
13018       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
13020   o Minor bugfixes (build fixes):
13021     - During configure, detect when we're building with clang version
13022       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
13023       CFLAGS. clang doesn't support them yet.
13024     - During configure, search for library containing cos function as
13025       libm lives in libcore on some platforms (BeOS/Haiku). Linking
13026       against libm was hard-coded before. Fixes the first part of bug
13027       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
13028       Pedersen.
13029     - Detect attempts to build Tor on (as yet hypothetical) versions
13030       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
13031       fix for bug 4533. Bugfix on 0.2.2.28-beta.
13032     - Preprocessor directives should not be put inside the arguments
13033       of a macro. This would break compilation with GCC releases prior
13034       to version 3.3. We would never recommend such an old GCC version,
13035       but it is apparently required for binary compatibility on some
13036       platforms (namely, certain builds of Haiku). Fixes the other part
13037       of bug 4727; bugfix on 0.2.3.3-alpha. Patch and analysis by Martin
13038       Hebnes Pedersen.
13040   o Minor bugfixes (other):
13041     - Older Linux kernels erroneously respond to strange nmap behavior
13042       by having accept() return successfully with a zero-length
13043       socket. When this happens, just close the connection. Previously,
13044       we would try harder to learn the remote address: but there was
13045       no such remote address to learn, and our method for trying to
13046       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
13047       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
13048     - Fix null-pointer access that could occur if TLS allocation failed.
13049       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". This was
13050       erroneously listed as fixed in 0.2.3.9-alpha, but the fix had
13051       accidentally been reverted.
13052     - Fix our implementation of crypto_random_hostname() so it can't
13053       overflow on ridiculously large inputs. (No Tor version has ever
13054       provided this kind of bad inputs, but let's be correct in depth.)
13055       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
13056     - Find more places in the code that should have been testing for
13057       invalid sockets using the SOCKET_OK macro. Required for a fix
13058       for bug 4533. Bugfix on 0.2.2.28-beta.
13059     - Fix an assertion failure when, while running with bufferevents, a
13060       connection finishes connecting after it is marked for close, but
13061       before it is closed. Fixes bug 4697; bugfix on 0.2.3.1-alpha.
13062     - test_util_spawn_background_ok() hardcoded the expected value
13063       for ENOENT to 2. This isn't portable as error numbers are
13064       platform specific, and particularly the hurd has ENOENT at
13065       0x40000002. Construct expected string at runtime, using the correct
13066       value for ENOENT. Fixes bug 4733; bugfix on 0.2.3.1-alpha.
13067     - Reject attempts to disable DisableDebuggerAttachment while Tor is
13068       running. Fixes bug 4650; bugfix on 0.2.3.9-alpha.
13069     - Use an appropriate-width type for sockets in tor-fw-helper on
13070       win64. Fixes bug 1983 at last. Bugfix on 0.2.3.9-alpha.
13072   o Feature removal:
13073     - When sending or relaying a RELAY_EARLY cell, we used to convert
13074       it to a RELAY cell if the connection was using the v1 link
13075       protocol. This was a workaround for older versions of Tor, which
13076       didn't handle RELAY_EARLY cells properly. Now that all supported
13077       versions can handle RELAY_EARLY cells, and now that we're enforcing
13078       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
13079       remove this workaround. Addresses bug 4786.
13081   o Code simplifications and refactoring:
13082     - Use OpenSSL's built-in SSL_state_string_long() instead of our
13083       own homebrewed ssl_state_to_string() replacement. Patch from
13084       Emile Snyder. Fixes bug 4653.
13085     - Use macros to indicate OpenSSL versions, so we don't need to worry
13086       about accidental hexadecimal bit shifts.
13087     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
13088       supported).
13089     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
13090     - Use the smartlist_add_asprintf() alias more consistently.
13091     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
13092       invalid value, rather than just -1.
13093     - Rename a handful of old identifiers, mostly related to crypto
13094       structures and crypto functions. By convention, our "create an
13095       object" functions are called "type_new()", our "free an object"
13096       functions are called "type_free()", and our types indicate that
13097       they are types only with a final "_t". But a handful of older
13098       types and functions broke these rules, with function names like
13099       "type_create" or "subsystem_op_type", or with type names like
13100       type_env_t.
13103 Changes in version 0.2.3.10-alpha - 2011-12-16
13104   Tor 0.2.3.10-alpha fixes a critical heap-overflow security issue in
13105   Tor's buffers code. Absolutely everybody should upgrade.
13107   The bug relied on an incorrect calculation when making data continuous
13108   in one of our IO buffers, if the first chunk of the buffer was
13109   misaligned by just the wrong amount. The miscalculation would allow an
13110   attacker to overflow a piece of heap-allocated memory. To mount this
13111   attack, the attacker would need to either open a SOCKS connection to
13112   Tor's SocksPort (usually restricted to localhost), or target a Tor
13113   instance configured to make its connections through a SOCKS proxy
13114   (which Tor does not do by default).
13116   Good security practice requires that all heap-overflow bugs should be
13117   presumed to be exploitable until proven otherwise, so we are treating
13118   this as a potential code execution attack. Please upgrade immediately!
13119   This bug does not affect bufferevents-based builds of Tor. Special
13120   thanks to "Vektor" for reporting this issue to us!
13122   This release also contains a few minor bugfixes for issues discovered
13123   in 0.2.3.9-alpha.
13125   o Major bugfixes:
13126     - Fix a heap overflow bug that could occur when trying to pull
13127       data into the first chunk of a buffer, when that chunk had
13128       already had some data drained from it. Fixes CVE-2011-2778;
13129       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
13131   o Minor bugfixes:
13132     - If we can't attach streams to a rendezvous circuit when we
13133       finish connecting to a hidden service, clear the rendezvous
13134       circuit's stream-isolation state and try to attach streams
13135       again. Previously, we cleared rendezvous circuits' isolation
13136       state either too early (if they were freshly built) or not at all
13137       (if they had been built earlier and were cannibalized). Bugfix on
13138       0.2.3.3-alpha; fixes bug 4655.
13139     - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
13140       0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
13141     - Fix an assertion failure when a relay with accounting enabled
13142       starts up while dormant. Fixes bug 4702; bugfix on 0.2.3.9-alpha.
13144   o Minor features:
13145     - Update to the December 6 2011 Maxmind GeoLite Country database.
13148 Changes in version 0.2.2.35 - 2011-12-16
13149   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
13150   buffers code. Absolutely everybody should upgrade.
13152   The bug relied on an incorrect calculation when making data continuous
13153   in one of our IO buffers, if the first chunk of the buffer was
13154   misaligned by just the wrong amount. The miscalculation would allow an
13155   attacker to overflow a piece of heap-allocated memory. To mount this
13156   attack, the attacker would need to either open a SOCKS connection to
13157   Tor's SocksPort (usually restricted to localhost), or target a Tor
13158   instance configured to make its connections through a SOCKS proxy
13159   (which Tor does not do by default).
13161   Good security practice requires that all heap-overflow bugs should be
13162   presumed to be exploitable until proven otherwise, so we are treating
13163   this as a potential code execution attack. Please upgrade immediately!
13164   This bug does not affect bufferevents-based builds of Tor. Special
13165   thanks to "Vektor" for reporting this issue to us!
13167   Tor 0.2.2.35 also fixes several bugs in previous versions, including
13168   crash bugs for unusual configurations, and a long-term bug that
13169   would prevent Tor from starting on Windows machines with draconian
13170   AV software.
13172   With this release, we remind everyone that 0.2.0.x has reached its
13173   formal end-of-life. Those Tor versions have many known flaws, and
13174   nobody should be using them. You should upgrade -- ideally to the
13175   0.2.2.x series. If you're using a Linux or BSD and its packages are
13176   obsolete, stop using those packages and upgrade anyway.
13178   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
13179   longer receive support after some time in early 2012.
13181   o Major bugfixes:
13182     - Fix a heap overflow bug that could occur when trying to pull
13183       data into the first chunk of a buffer, when that chunk had
13184       already had some data drained from it. Fixes CVE-2011-2778;
13185       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
13186     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
13187       that it doesn't attempt to allocate a socketpair. This could cause
13188       some problems on Windows systems with overzealous firewalls. Fix for
13189       bug 4457; workaround for Libevent versions 2.0.1-alpha through
13190       2.0.15-stable.
13191     - If we mark an OR connection for close based on a cell we process,
13192       don't process any further cells on it. We already avoid further
13193       reads on marked-for-close connections, but now we also discard the
13194       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
13195       which was the first version where we might mark a connection for
13196       close based on processing a cell on it.
13197     - Correctly sanity-check that we don't underflow on a memory
13198       allocation (and then assert) for hidden service introduction
13199       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
13200       bugfix on 0.2.1.5-alpha.
13201     - Fix a memory leak when we check whether a hidden service
13202       descriptor has any usable introduction points left. Fixes bug
13203       4424. Bugfix on 0.2.2.25-alpha.
13204     - Don't crash when we're running as a relay and don't have a GeoIP
13205       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
13206       we've had in the 0.2.3.x branch already.
13207     - When running as a client, do not print a misleading (and plain
13208       wrong) log message that we're collecting "directory request"
13209       statistics: clients don't collect statistics. Also don't create a
13210       useless (because empty) stats file in the stats/ directory. Fixes
13211       bug 4353; bugfix on 0.2.2.34.
13213   o Minor bugfixes:
13214     - Detect failure to initialize Libevent. This fix provides better
13215       detection for future instances of bug 4457.
13216     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
13217       function. This was eating up hideously large amounts of time on some
13218       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
13219     - Resolve an integer overflow bug in smartlist_ensure_capacity().
13220       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
13221       Mansour Moufid.
13222     - Don't warn about unused log_mutex in log.c when building with
13223       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
13224       0.1.0.6-rc which introduced --disable-threads.
13225     - When configuring, starting, or stopping an NT service, stop
13226       immediately after the service configuration attempt has succeeded
13227       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
13228     - When sending a NETINFO cell, include the original address
13229       received for the other side, not its canonical address. Found
13230       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
13231     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
13232       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
13233     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
13234       occurred when a client tried to fetch a descriptor for a bridge
13235       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
13236     - Backport fixes for a pair of compilation warnings on Windows.
13237       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
13238     - If we had ever tried to call tor_addr_to_str on an address of
13239       unknown type, we would have done a strdup on an uninitialized
13240       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
13241       Reported by "troll_un".
13242     - Correctly detect and handle transient lookup failures from
13243       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
13244       Reported by "troll_un".
13245     - Fix null-pointer access that could occur if TLS allocation failed.
13246       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
13247     - Use tor_socket_t type for listener argument to accept(). Fixes bug
13248       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
13250   o Minor features:
13251     - Add two new config options for directory authorities:
13252       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
13253       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
13254       that is always sufficient to satisfy the bandwidth requirement for
13255       the Guard flag. Now it will be easier for researchers to simulate
13256       Tor networks with different values. Resolves ticket 4484.
13257     - When Tor ignores a hidden service specified in its configuration,
13258       include the hidden service's directory in the warning message.
13259       Previously, we would only tell the user that some hidden service
13260       was ignored. Bugfix on 0.0.6; fixes bug 4426.
13261     - Update to the December 6 2011 Maxmind GeoLite Country database.
13263   o Packaging changes:
13264     - Make it easier to automate expert package builds on Windows,
13265       by removing an absolute path from makensis.exe command.
13268 Changes in version 0.2.1.32 - 2011-12-16
13269   Tor 0.2.1.32 backports important security and privacy fixes for
13270   oldstable. This release is intended only for package maintainers and
13271   others who cannot use the 0.2.2 stable series. All others should be
13272   using Tor 0.2.2.x or newer.
13274   The Tor 0.2.1.x series will reach formal end-of-life some time in
13275   early 2012; we will stop releasing patches for it then.
13277   o Major bugfixes (also included in 0.2.2.x):
13278     - Correctly sanity-check that we don't underflow on a memory
13279       allocation (and then assert) for hidden service introduction
13280       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
13281       bugfix on 0.2.1.5-alpha.
13282     - Fix a heap overflow bug that could occur when trying to pull
13283       data into the first chunk of a buffer, when that chunk had
13284       already had some data drained from it. Fixes CVE-2011-2778;
13285       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
13287   o Minor features:
13288     - Update to the December 6 2011 Maxmind GeoLite Country database.
13291 Changes in version 0.2.3.9-alpha - 2011-12-08
13292   Tor 0.2.3.9-alpha introduces initial IPv6 support for bridges, adds
13293   a "DisableNetwork" security feature that bundles can use to avoid
13294   touching the network until bridges are configured, moves forward on
13295   the pluggable transport design, fixes a flaw in the hidden service
13296   design that unnecessarily prevented clients with wrong clocks from
13297   reaching hidden services, and fixes a wide variety of other issues.
13299   o Major features:
13300     - Clients can now connect to private bridges over IPv6. Bridges
13301       still need at least one IPv4 address in order to connect to
13302       other relays. Note that we don't yet handle the case where the
13303       user has two bridge lines for the same bridge (one IPv4, one
13304       IPv6). Implements parts of proposal 186.
13305     - New "DisableNetwork" config option to prevent Tor from launching any
13306       connections or accepting any connections except on a control port.
13307       Bundles and controllers can set this option before letting Tor talk
13308       to the rest of the network, for example to prevent any connections
13309       to a non-bridge address. Packages like Orbot can also use this
13310       option to instruct Tor to save power when the network is off.
13311     - Clients and bridges can now be configured to use a separate
13312       "transport" proxy. This approach makes the censorship arms race
13313       easier by allowing bridges to use protocol obfuscation plugins. It
13314       implements the "managed proxy" part of proposal 180 (ticket 3472).
13315     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
13316       implementation. It makes AES_CTR about 7% faster than our old one
13317       (which was about 10% faster than the one OpenSSL used to provide).
13318       Resolves ticket 4526.
13319     - Add a "tor2web mode" for clients that want to connect to hidden
13320       services non-anonymously (and possibly more quickly). As a safety
13321       measure to try to keep users from turning this on without knowing
13322       what they are doing, tor2web mode must be explicitly enabled at
13323       compile time, and a copy of Tor compiled to run in tor2web mode
13324       cannot be used as a normal Tor client. Implements feature 2553.
13325     - Add experimental support for running on Windows with IOCP and no
13326       kernel-space socket buffers. This feature is controlled by a new
13327       "UserspaceIOCPBuffers" config option (off by default), which has
13328       no effect unless Tor has been built with support for bufferevents,
13329       is running on Windows, and has enabled IOCP. This may, in the long
13330       run, help solve or mitigate bug 98.
13331     - Use a more secure consensus parameter voting algorithm. Now at
13332       least three directory authorities or a majority of them must
13333       vote on a given parameter before it will be included in the
13334       consensus. Implements proposal 178.
13336   o Major bugfixes:
13337     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
13338       They used to check that the timestamp was within 30 minutes
13339       of their system clock, so they could cap the size of their
13340       replay-detection cache, but that approach unnecessarily refused
13341       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
13342       the v3 intro-point protocol (the first one which sent a timestamp
13343       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
13344     - Only use the EVP interface when AES acceleration is enabled,
13345       to avoid a 5-7% performance regression. Resolves issue 4525;
13346       bugfix on 0.2.3.8-alpha.
13348   o Privacy/anonymity features (bridge detection):
13349     - Make bridge SSL certificates a bit more stealthy by using random
13350       serial numbers, in the same fashion as OpenSSL when generating
13351       self-signed certificates. Implements ticket 4584.
13352     - Introduce a new config option "DynamicDHGroups", enabled by
13353       default, which provides each bridge with a unique prime DH modulus
13354       to be used during SSL handshakes. This option attempts to help
13355       against censors who might use the Apache DH modulus as a static
13356       identifier for bridges. Addresses ticket 4548.
13358   o Minor features (new/different config options):
13359     - New configuration option "DisableDebuggerAttachment" (on by default)
13360       to prevent basic debugging attachment attempts by other processes.
13361       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
13362     - Allow MapAddress directives to specify matches against super-domains,
13363       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
13364       Implements issue 933.
13365     - Slightly change behavior of "list" options (that is, config
13366       options that can appear more than once) when they appear both in
13367       torrc and on the command line. Previously, the command-line options
13368       would be appended to the ones from torrc. Now, the command-line
13369       options override the torrc options entirely. This new behavior
13370       allows the user to override list options (like exit policies and
13371       ports to listen on) from the command line, rather than simply
13372       appending to the list.
13373     - You can get the old (appending) command-line behavior for "list"
13374       options by prefixing the option name with a "+".
13375     - You can remove all the values for a "list" option from the command
13376       line without adding any new ones by prefixing the option name
13377       with a "/".
13378     - Add experimental support for a "defaults" torrc file to be parsed
13379       before the regular torrc. Torrc options override the defaults file's
13380       options in the same way that the command line overrides the torrc.
13381       The SAVECONF controller command saves only those options which
13382       differ between the current configuration and the defaults file. HUP
13383       reloads both files. (Note: This is an experimental feature; its
13384       behavior will probably be refined in future 0.2.3.x-alpha versions
13385       to better meet packagers' needs.) Implements task 4552.
13387   o Minor features:
13388     - Try to make the introductory warning message that Tor prints on
13389       startup more useful for actually finding help and information.
13390       Resolves ticket 2474.
13391     - Running "make version" now displays the version of Tor that
13392       we're about to build. Idea from katmagic; resolves issue 4400.
13393     - Expire old or over-used hidden service introduction points.
13394       Required by fix for bug 3460.
13395     - Move the replay-detection cache for the RSA-encrypted parts of
13396       INTRODUCE2 cells to the introduction point data structures.
13397       Previously, we would use one replay-detection cache per hidden
13398       service. Required by fix for bug 3460.
13399     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
13400       public key replay-detection cache from 60 minutes to 5 minutes. This
13401       replay-detection cache is now used only to detect multiple
13402       INTRODUCE2 cells specifying the same rendezvous point, so we can
13403       avoid launching multiple simultaneous attempts to connect to it.
13405   o Minor bugfixes (on Tor 0.2.2.x and earlier):
13406     - Resolve an integer overflow bug in smartlist_ensure_capacity().
13407       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
13408       Mansour Moufid.
13409     - Fix a minor formatting issue in one of tor-gencert's error messages.
13410       Fixes bug 4574.
13411     - Prevent a false positive from the check-spaces script, by disabling
13412       the "whitespace between function name and (" check for functions
13413       named 'op()'.
13414     - Fix a log message suggesting that people contact a non-existent
13415       email address. Fixes bug 3448.
13416     - Fix null-pointer access that could occur if TLS allocation failed.
13417       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
13418     - Report a real bootstrap problem to the controller on router
13419       identity mismatch. Previously we just said "foo", which probably
13420       made a lot of sense at the time. Fixes bug 4169; bugfix on
13421       0.2.1.1-alpha.
13422     - If we had ever tried to call tor_addr_to_str() on an address of
13423       unknown type, we would have done a strdup() on an uninitialized
13424       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
13425       Reported by "troll_un".
13426     - Correctly detect and handle transient lookup failures from
13427       tor_addr_lookup(). Fixes bug 4530; bugfix on 0.2.1.5-alpha.
13428       Reported by "troll_un".
13429     - Use tor_socket_t type for listener argument to accept(). Fixes bug
13430       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
13431     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
13432       bug 4532; found by "troll_un".
13434   o Minor bugfixes (on Tor 0.2.3.x):
13435     - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
13436       fixes bug 4554.
13437     - Don't send two ESTABLISH_RENDEZVOUS cells when opening a new
13438       circuit for use as a hidden service client's rendezvous point.
13439       Fixes bugs 4641 and 4171; bugfix on 0.2.3.3-alpha. Diagnosed
13440       with help from wanoskarnet.
13441     - Restore behavior of overriding SocksPort, ORPort, and similar
13442       options from the command line. Bugfix on 0.2.3.3-alpha.
13444   o Build fixes:
13445     - Properly handle the case where the build-tree is not the same
13446       as the source tree when generating src/common/common_sha1.i,
13447       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
13448       bugfix on 0.2.0.1-alpha.
13450   o Code simplifications, cleanups, and refactorings:
13451     - Remove the pure attribute from all functions that used it
13452       previously. In many cases we assigned it incorrectly, because the
13453       functions might assert or call impure functions, and we don't have
13454       evidence that keeping the pure attribute is worthwhile. Implements
13455       changes suggested in ticket 4421.
13456     - Remove some dead code spotted by coverity. Fixes cid 432.
13457       Bugfix on 0.2.3.1-alpha, closes bug 4637.
13460 Changes in version 0.2.3.8-alpha - 2011-11-22
13461   Tor 0.2.3.8-alpha fixes some crash and assert bugs, including a
13462   socketpair-related bug that has been bothering Windows users. It adds
13463   support to serve microdescriptors to controllers, so Vidalia's network
13464   map can resume listing relays (once Vidalia implements its side),
13465   and adds better support for hardware AES acceleration. Finally, it
13466   starts the process of adjusting the bandwidth cutoff for getting the
13467   "Fast" flag from 20KB to (currently) 32KB -- preliminary results show
13468   that tiny relays harm performance more than they help network capacity.
13470   o Major bugfixes:
13471     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
13472       that it doesn't attempt to allocate a socketpair. This could cause
13473       some problems on Windows systems with overzealous firewalls. Fix for
13474       bug 4457; workaround for Libevent versions 2.0.1-alpha through
13475       2.0.15-stable.
13476     - Correctly sanity-check that we don't underflow on a memory
13477       allocation (and then assert) for hidden service introduction
13478       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
13479       bugfix on 0.2.1.5-alpha.
13480     - Remove the artificially low cutoff of 20KB to guarantee the Fast
13481       flag. In the past few years the average relay speed has picked
13482       up, and while the "top 7/8 of the network get the Fast flag" and
13483       "all relays with 20KB or more of capacity get the Fast flag" rules
13484       used to have the same result, now the top 7/8 of the network has
13485       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
13486     - Fix a rare assertion failure when checking whether a v0 hidden
13487       service descriptor has any usable introduction points left, and
13488       we don't have enough information to build a circuit to the first
13489       intro point named in the descriptor. The HS client code in
13490       0.2.3.x no longer uses v0 HS descriptors, but this assertion can
13491       trigger on (and crash) v0 HS authorities. Fixes bug 4411.
13492       Bugfix on 0.2.3.1-alpha; diagnosed by frosty_un.
13493     - Make bridge authorities not crash when they are asked for their own
13494       descriptor. Bugfix on 0.2.3.7-alpha, reported by Lucky Green.
13495     - When running as a client, do not print a misleading (and plain
13496       wrong) log message that we're collecting "directory request"
13497       statistics: clients don't collect statistics. Also don't create a
13498       useless (because empty) stats file in the stats/ directory. Fixes
13499       bug 4353; bugfix on 0.2.2.34 and 0.2.3.7-alpha.
13501   o Major features:
13502     - Allow Tor controllers like Vidalia to obtain the microdescriptor
13503       for a relay by identity digest or nickname. Previously,
13504       microdescriptors were only available by their own digests, so a
13505       controller would have to ask for and parse the whole microdescriptor
13506       consensus in order to look up a single relay's microdesc. Fixes
13507       bug 3832; bugfix on 0.2.3.1-alpha.
13508     - Use OpenSSL's EVP interface for AES encryption, so that all AES
13509       operations can use hardware acceleration (if present). Resolves
13510       ticket 4442.
13512   o Minor bugfixes (on 0.2.2.x and earlier):
13513     - Detect failure to initialize Libevent. This fix provides better
13514       detection for future instances of bug 4457.
13515     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
13516       function. This was eating up hideously large amounts of time on some
13517       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
13518     - Don't warn about unused log_mutex in log.c when building with
13519       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
13520       0.1.0.6-rc which introduced --disable-threads.
13521     - Allow manual 'authenticate' commands to the controller interface
13522       from netcat (nc) as well as telnet. We were rejecting them because
13523       they didn't come with the expected whitespace at the end of the
13524       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
13525     - Fix some (not actually triggerable) buffer size checks in usage of
13526       tor_inet_ntop. Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
13527       by Anders Sundman.
13528     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
13529       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
13530     - When configuring, starting, or stopping an NT service, stop
13531       immediately after the service configuration attempt has succeeded
13532       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
13533     - When sending a NETINFO cell, include the original address
13534       received for the other side, not its canonical address. Found
13535       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
13536     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
13537       can pick them up when the tests aren't disabled. Bugfix on
13538       0.2.2.4-alpha which introduced tinytest.
13539     - Fix a memory leak when we check whether a hidden service
13540       descriptor has any usable introduction points left. Fixes bug
13541       4424. Bugfix on 0.2.2.25-alpha.
13542     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
13543       occurred when a client tried to fetch a descriptor for a bridge
13544       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
13546   o Minor bugfixes (on 0.2.3.x):
13547     - Make util unit tests build correctly with MSVC. Bugfix on
13548       0.2.3.3-alpha. Patch by Gisle Vanem.
13549     - Successfully detect AUTH_CHALLENGE cells with no recognized
13550       authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
13551       Found by frosty_un.
13552     - If a relay receives an AUTH_CHALLENGE cell it can't answer,
13553       it should still send a NETINFO cell to allow the connection to
13554       become open. Fixes bug 4368; fix on 0.2.3.6-alpha; bug found by
13555       "frosty".
13556     - Log less loudly when we get an invalid authentication certificate
13557       from a source other than a directory authority: it's not unusual
13558       to see invalid certs because of clock skew. Fixes bug 4370; bugfix
13559       on 0.2.3.6-alpha.
13560     - Tolerate servers with more clock skew in their authentication
13561       certificates than previously. Fixes bug 4371; bugfix on
13562       0.2.3.6-alpha.
13563     - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
13564       on 0.2.3.4-alpha and 0.2.3.6-alpha.
13566   o Minor features:
13567     - Add two new config options for directory authorities:
13568       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
13569       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
13570       that is always sufficient to satisfy the bandwidth requirement for
13571       the Guard flag. Now it will be easier for researchers to simulate
13572       Tor networks with different values. Resolves ticket 4484.
13573     - When Tor ignores a hidden service specified in its configuration,
13574       include the hidden service's directory in the warning message.
13575       Previously, we would only tell the user that some hidden service
13576       was ignored. Bugfix on 0.0.6; fixes bug 4426.
13577     - When we fail to initialize Libevent, retry with IOCP disabled so we
13578       don't need to turn on multi-threading support in Libevent, which in
13579       turn requires a working socketpair(). This is a workaround for bug
13580       4457, which affects Libevent versions from 2.0.1-alpha through
13581       2.0.15-stable.
13582     - Detect when we try to build on a platform that doesn't define
13583       AF_UNSPEC to 0. We don't work there, so refuse to compile.
13584     - Update to the November 1 2011 Maxmind GeoLite Country database.
13586   o Packaging changes:
13587     - Make it easier to automate expert package builds on Windows,
13588       by removing an absolute path from makensis.exe command.
13590   o Code simplifications and refactoring:
13591     - Remove some redundant #include directives throughout the code.
13592       Patch from Andrea Gelmini.
13593     - Unconditionally use OpenSSL's AES implementation instead of our
13594       old built-in one. OpenSSL's AES has been better for a while, and
13595       relatively few servers should still be on any version of OpenSSL
13596       that doesn't have good optimized assembly AES.
13597     - Use the name "CERTS" consistently to refer to the new cell type;
13598       we were calling it CERT in some places and CERTS in others.
13600   o Testing:
13601     - Numerous new unit tests for functions in util.c and address.c by
13602       Anders Sundman.
13603     - The long-disabled benchmark tests are now split into their own
13604       ./src/test/bench binary.
13605     - The benchmark tests can now use more accurate timers than
13606       gettimeofday() when such timers are available.
13609 Changes in version 0.2.3.7-alpha - 2011-10-30
13610   Tor 0.2.3.7-alpha fixes a crash bug in 0.2.3.6-alpha introduced by
13611   the new v3 handshake. It also resolves yet another bridge address
13612   enumeration issue.
13614   o Major bugfixes:
13615     - If we mark an OR connection for close based on a cell we process,
13616       don't process any further cells on it. We already avoid further
13617       reads on marked-for-close connections, but now we also discard the
13618       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
13619       which was the first version where we might mark a connection for
13620       close based on processing a cell on it.
13621     - Fix a double-free bug that would occur when we received an invalid
13622       certificate in a CERT cell in the new v3 handshake. Fixes bug 4343;
13623       bugfix on 0.2.3.6-alpha.
13624     - Bridges no longer include their address in NETINFO cells on outgoing
13625       OR connections, to allow them to blend in better with clients.
13626       Removes another avenue for enumerating bridges. Reported by
13627       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
13628       cells were introduced.
13630   o Trivial fixes:
13631     - Fixed a typo in a hibernation-related log message. Fixes bug 4331;
13632       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
13635 Changes in version 0.2.3.6-alpha - 2011-10-26
13636   Tor 0.2.3.6-alpha includes the fix from 0.2.2.34 for a critical
13637   anonymity vulnerability where an attacker can deanonymize Tor
13638   users. Everybody should upgrade.
13640   This release also features support for a new v3 connection handshake
13641   protocol, and fixes to make hidden service connections more robust.
13643   o Major features:
13644     - Implement a new handshake protocol (v3) for authenticating Tors to
13645       each other over TLS. It should be more resistant to fingerprinting
13646       than previous protocols, and should require less TLS hacking for
13647       future Tor implementations. Implements proposal 176.
13648     - Allow variable-length padding cells to disguise the length of
13649       Tor's TLS records. Implements part of proposal 184.
13651   o Privacy/anonymity fixes (clients):
13652     - Clients and bridges no longer send TLS certificate chains on
13653       outgoing OR connections. Previously, each client or bridge would
13654       use the same cert chain for all outgoing OR connections until
13655       its IP address changes, which allowed any relay that the client
13656       or bridge contacted to determine which entry guards it is using.
13657       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
13658     - If a relay receives a CREATE_FAST cell on a TLS connection, it
13659       no longer considers that connection as suitable for satisfying a
13660       circuit EXTEND request. Now relays can protect clients from the
13661       CVE-2011-2768 issue even if the clients haven't upgraded yet.
13662     - Directory authorities no longer assign the Guard flag to relays
13663       that haven't upgraded to the above "refuse EXTEND requests
13664       to client connections" fix. Now directory authorities can
13665       protect clients from the CVE-2011-2768 issue even if neither
13666       the clients nor the relays have upgraded yet. There's a new
13667       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
13668       to let us transition smoothly, else tomorrow there would be no
13669       guard relays.
13671   o Major bugfixes (hidden services):
13672     - Improve hidden service robustness: when an attempt to connect to
13673       a hidden service ends, be willing to refetch its hidden service
13674       descriptors from each of the HSDir relays responsible for them
13675       immediately. Previously, we would not consider refetching the
13676       service's descriptors from each HSDir for 15 minutes after the last
13677       fetch, which was inconvenient if the hidden service was not running
13678       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
13679     - When one of a hidden service's introduction points appears to be
13680       unreachable, stop trying it. Previously, we would keep trying
13681       to build circuits to the introduction point until we lost the
13682       descriptor, usually because the user gave up and restarted Tor.
13683       Partly fixes bug 3825.
13684     - Don't launch a useless circuit after failing to use one of a
13685       hidden service's introduction points. Previously, we would
13686       launch a new introduction circuit, but not set the hidden service
13687       which that circuit was intended to connect to, so it would never
13688       actually be used. A different piece of code would then create a
13689       new introduction circuit correctly. Bug reported by katmagic and
13690       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
13692   o Major bugfixes (other):
13693     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
13694       that they initiated. Relays could distinguish incoming bridge
13695       connections from client connections, creating another avenue for
13696       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
13697       Found by "frosty_un".
13698     - Don't update the AccountingSoftLimitHitAt state file entry whenever
13699       tor gets started. This prevents a wrong average bandwidth
13700       estimate, which would cause relays to always start a new accounting
13701       interval at the earliest possible moment. Fixes bug 2003; bugfix
13702       on 0.2.2.7-alpha. Reported by BryonEldridge, who also helped
13703       immensely in tracking this bug down.
13704     - Fix a crash bug when changing node restrictions while a DNS lookup
13705       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
13706       by "Tey'".
13708   o Minor bugfixes (on 0.2.2.x and earlier):
13709     - When a hidden service turns an extra service-side introduction
13710       circuit into a general-purpose circuit, free the rend_data and
13711       intro_key fields first, so we won't leak memory if the circuit
13712       is cannibalized for use as another service-side introduction
13713       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
13714     - Rephrase the log message emitted if the TestSocks check is
13715       successful. Patch from Fabian Keil; fixes bug 4094.
13716     - Bridges now skip DNS self-tests, to act a little more stealthily.
13717       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
13718       bridges. Patch by "warms0x".
13719     - Remove a confusing dollar sign from the example fingerprint in the
13720       man page, and also make the example fingerprint a valid one. Fixes
13721       bug 4309; bugfix on 0.2.1.3-alpha.
13722     - Fix internal bug-checking logic that was supposed to catch
13723       failures in digest generation so that it will fail more robustly
13724       if we ask for a nonexistent algorithm. Found by Coverity Scan.
13725       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
13726     - Report any failure in init_keys() calls launched because our
13727       IP address has changed. Spotted by Coverity Scan. Bugfix on
13728       0.1.1.4-alpha; fixes CID 484.
13730   o Minor bugfixes (on 0.2.3.x):
13731     - Fix a bug in configure.in that kept it from building a configure
13732       script with autoconf versions earlier than 2.61. Fixes bug 2430;
13733       bugfix on 0.2.3.1-alpha.
13734     - Don't warn users that they are exposing a client port to the
13735       Internet if they have specified an RFC1918 address. Previously,
13736       we would warn if the user had specified any non-loopback
13737       address. Bugfix on 0.2.3.3-alpha. Fixes bug 4018; reported by Tas.
13738     - Fix memory leaks in the failing cases of the new SocksPort and
13739       ControlPort code. Found by Coverity Scan. Bugfix on 0.2.3.3-alpha;
13740       fixes coverity CIDs 485, 486, and 487.
13742   o Minor features:
13743     - When a hidden service's introduction point times out, consider
13744       trying it again during the next attempt to connect to the
13745       HS. Previously, we would not try it again unless a newly fetched
13746       descriptor contained it. Required by fixes for bugs 1297 and 3825.
13747     - The next version of Windows will be called Windows 8, and it has
13748       a major version of 6, minor version of 2. Correctly identify that
13749       version instead of calling it "Very recent version". Resolves
13750       ticket 4153; reported by funkstar.
13751     - The Bridge Authority now writes statistics on how many bridge
13752       descriptors it gave out in total, and how many unique descriptors
13753       it gave out. It also lists how often the most and least commonly
13754       fetched descriptors were given out, as well as the median and
13755       25th/75th percentile. Implements tickets 4200 and 4294.
13756     - Update to the October 4 2011 Maxmind GeoLite Country database.
13758   o Code simplifications and refactoring:
13759     - Remove some old code to remember statistics about which descriptors
13760       we've served as a directory mirror. The feature wasn't used and
13761       is outdated now that microdescriptors are around.
13762     - Rename Tor functions that turn strings into addresses, so that
13763       "parse" indicates that no hostname resolution occurs, and
13764       "lookup" indicates that hostname resolution may occur. This
13765       should help prevent mistakes in the future. Fixes bug 3512.
13768 Changes in version 0.2.2.34 - 2011-10-26
13769   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
13770   can deanonymize Tor users. Everybody should upgrade.
13772   The attack relies on four components: 1) Clients reuse their TLS cert
13773   when talking to different relays, so relays can recognize a user by
13774   the identity key in her cert. 2) An attacker who knows the client's
13775   identity key can probe each guard relay to see if that identity key
13776   is connected to that guard relay right now. 3) A variety of active
13777   attacks in the literature (starting from "Low-Cost Traffic Analysis
13778   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
13779   discover the guard relays that a Tor user visiting the website is using.
13780   4) Clients typically pick three guards at random, so the set of guards
13781   for a given user could well be a unique fingerprint for her. This
13782   release fixes components #1 and #2, which is enough to block the attack;
13783   the other two remain as open research problems. Special thanks to
13784   "frosty_un" for reporting the issue to us!
13786   Clients should upgrade so they are no longer recognizable by the TLS
13787   certs they present. Relays should upgrade so they no longer allow a
13788   remote attacker to probe them to test whether unpatched clients are
13789   currently connected to them.
13791   This release also fixes several vulnerabilities that allow an attacker
13792   to enumerate bridge relays. Some bridge enumeration attacks still
13793   remain; see for example proposal 188.
13795   o Privacy/anonymity fixes (clients):
13796     - Clients and bridges no longer send TLS certificate chains on
13797       outgoing OR connections. Previously, each client or bridge would
13798       use the same cert chain for all outgoing OR connections until
13799       its IP address changes, which allowed any relay that the client
13800       or bridge contacted to determine which entry guards it is using.
13801       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
13802     - If a relay receives a CREATE_FAST cell on a TLS connection, it
13803       no longer considers that connection as suitable for satisfying a
13804       circuit EXTEND request. Now relays can protect clients from the
13805       CVE-2011-2768 issue even if the clients haven't upgraded yet.
13806     - Directory authorities no longer assign the Guard flag to relays
13807       that haven't upgraded to the above "refuse EXTEND requests
13808       to client connections" fix. Now directory authorities can
13809       protect clients from the CVE-2011-2768 issue even if neither
13810       the clients nor the relays have upgraded yet. There's a new
13811       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
13812       to let us transition smoothly, else tomorrow there would be no
13813       guard relays.
13815   o Privacy/anonymity fixes (bridge enumeration):
13816     - Bridge relays now do their directory fetches inside Tor TLS
13817       connections, like all the other clients do, rather than connecting
13818       directly to the DirPort like public relays do. Removes another
13819       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
13820     - Bridges relays now build circuits for themselves in a more similar
13821       way to how clients build them. Removes another avenue for
13822       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
13823       when bridges were introduced.
13824     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
13825       that they initiated. Relays could distinguish incoming bridge
13826       connections from client connections, creating another avenue for
13827       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
13828       Found by "frosty_un".
13830   o Major bugfixes:
13831     - Fix a crash bug when changing node restrictions while a DNS lookup
13832       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
13833       by "Tey'".
13834     - Don't launch a useless circuit after failing to use one of a
13835       hidden service's introduction points. Previously, we would
13836       launch a new introduction circuit, but not set the hidden service
13837       which that circuit was intended to connect to, so it would never
13838       actually be used. A different piece of code would then create a
13839       new introduction circuit correctly. Bug reported by katmagic and
13840       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
13842   o Minor bugfixes:
13843     - Change an integer overflow check in the OpenBSD_Malloc code so
13844       that GCC is less likely to eliminate it as impossible. Patch
13845       from Mansour Moufid. Fixes bug 4059.
13846     - When a hidden service turns an extra service-side introduction
13847       circuit into a general-purpose circuit, free the rend_data and
13848       intro_key fields first, so we won't leak memory if the circuit
13849       is cannibalized for use as another service-side introduction
13850       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
13851     - Bridges now skip DNS self-tests, to act a little more stealthily.
13852       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
13853       bridges. Patch by "warms0x".
13854     - Fix internal bug-checking logic that was supposed to catch
13855       failures in digest generation so that it will fail more robustly
13856       if we ask for a nonexistent algorithm. Found by Coverity Scan.
13857       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
13858     - Report any failure in init_keys() calls launched because our
13859       IP address has changed. Spotted by Coverity Scan. Bugfix on
13860       0.1.1.4-alpha; fixes CID 484.
13862   o Minor bugfixes (log messages and documentation):
13863     - Remove a confusing dollar sign from the example fingerprint in the
13864       man page, and also make the example fingerprint a valid one. Fixes
13865       bug 4309; bugfix on 0.2.1.3-alpha.
13866     - The next version of Windows will be called Windows 8, and it has
13867       a major version of 6, minor version of 2. Correctly identify that
13868       version instead of calling it "Very recent version". Resolves
13869       ticket 4153; reported by funkstar.
13870     - Downgrade log messages about circuit timeout calibration from
13871       "notice" to "info": they don't require or suggest any human
13872       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
13873       bugfix on 0.2.2.14-alpha.
13875   o Minor features:
13876     - Turn on directory request statistics by default and include them in
13877       extra-info descriptors. Don't break if we have no GeoIP database.
13878       Backported from 0.2.3.1-alpha; implements ticket 3951.
13879     - Update to the October 4 2011 Maxmind GeoLite Country database.
13882 Changes in version 0.2.1.31 - 2011-10-26
13883   Tor 0.2.1.31 backports important security and privacy fixes for
13884   oldstable. This release is intended only for package maintainers and
13885   others who cannot use the 0.2.2 stable series. All others should be
13886   using Tor 0.2.2.x or newer.
13888   o Security fixes (also included in 0.2.2.x):
13889     - Replace all potentially sensitive memory comparison operations
13890       with versions whose runtime does not depend on the data being
13891       compared. This will help resist a class of attacks where an
13892       adversary can use variations in timing information to learn
13893       sensitive data. Fix for one case of bug 3122. (Safe memcmp
13894       implementation by Robert Ransom based partially on code by DJB.)
13895     - Fix an assert in parsing router descriptors containing IPv6
13896       addresses. This one took down the directory authorities when
13897       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
13899   o Privacy/anonymity fixes (also included in 0.2.2.x):
13900     - Clients and bridges no longer send TLS certificate chains on
13901       outgoing OR connections. Previously, each client or bridge would
13902       use the same cert chain for all outgoing OR connections until
13903       its IP address changes, which allowed any relay that the client
13904       or bridge contacted to determine which entry guards it is using.
13905       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
13906     - If a relay receives a CREATE_FAST cell on a TLS connection, it
13907       no longer considers that connection as suitable for satisfying a
13908       circuit EXTEND request. Now relays can protect clients from the
13909       CVE-2011-2768 issue even if the clients haven't upgraded yet.
13910     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
13911       that they initiated. Relays could distinguish incoming bridge
13912       connections from client connections, creating another avenue for
13913       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
13914       Found by "frosty_un".
13915     - When receiving a hidden service descriptor, check that it is for
13916       the hidden service we wanted. Previously, Tor would store any
13917       hidden service descriptors that a directory gave it, whether it
13918       wanted them or not. This wouldn't have let an attacker impersonate
13919       a hidden service, but it did let directories pre-seed a client
13920       with descriptors that it didn't want. Bugfix on 0.0.6.
13921     - Avoid linkability based on cached hidden service descriptors: forget
13922       all hidden service descriptors cached as a client when processing a
13923       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
13924     - Make the bridge directory authority refuse to answer directory
13925       requests for "all" descriptors. It used to include bridge
13926       descriptors in its answer, which was a major information leak.
13927       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
13928     - Don't attach new streams to old rendezvous circuits after SIGNAL
13929       NEWNYM. Previously, we would keep using an existing rendezvous
13930       circuit if it remained open (i.e. if it were kept open by a
13931       long-lived stream, or if a new stream were attached to it before
13932       Tor could notice that it was old and no longer in use). Bugfix on
13933       0.1.1.15-rc; fixes bug 3375.
13935   o Minor bugfixes (also included in 0.2.2.x):
13936     - When we restart our relay, we might get a successful connection
13937       from the outside before we've started our reachability tests,
13938       triggering a warning: "ORPort found reachable, but I have no
13939       routerinfo yet. Failing to inform controller of success." This
13940       bug was harmless unless Tor is running under a controller
13941       like Vidalia, in which case the controller would never get a
13942       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
13943       fixes bug 1172.
13944     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
13945       enabled. Fixes bug 1526.
13946     - Remove undocumented option "-F" from tor-resolve: it hasn't done
13947       anything since 0.2.1.16-rc.
13948     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
13949       None of the cases where we did this before were wrong, but by making
13950       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
13951     - Fix a rare crash bug that could occur when a client was configured
13952       with a large number of bridges. Fixes bug 2629; bugfix on
13953       0.2.1.2-alpha. Bugfix by trac user "shitlei".
13954     - Correct the warning displayed when a rendezvous descriptor exceeds
13955       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
13956       John Brooks.
13957     - Fix an uncommon assertion failure when running with DNSPort under
13958       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
13959     - When warning about missing zlib development packages during compile,
13960       give the correct package names. Bugfix on 0.2.0.1-alpha.
13961     - Require that introduction point keys and onion keys have public
13962       exponent 65537. Bugfix on 0.2.0.10-alpha.
13963     - Do not crash when our configuration file becomes unreadable, for
13964       example due to a permissions change, between when we start up
13965       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
13966       on 0.0.9pre6.
13967     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
13968       Fixes bug 3208.
13969     - Always NUL-terminate the sun_path field of a sockaddr_un before
13970       passing it to the kernel. (Not a security issue: kernels are
13971       smart enough to reject bad sockaddr_uns.) Found by Coverity;
13972       CID #428. Bugfix on Tor 0.2.0.3-alpha.
13973     - Don't stack-allocate the list of supplementary GIDs when we're
13974       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
13975       could take up to 256K, which is way too much stack. Found by
13976       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
13978   o Minor bugfixes (only in 0.2.1.x):
13979     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
13980       rely on them. Bugfix on 0.2.1.30.
13981     - Use git revisions instead of svn revisions when generating our
13982       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
13984   o Minor features (also included in 0.2.2.x):
13985     - Adjust the expiration time on our SSL session certificates to
13986       better match SSL certs seen in the wild. Resolves ticket 4014.
13987     - Allow nameservers with IPv6 address. Resolves bug 2574.
13988     - Update to the October 4 2011 Maxmind GeoLite Country database.
13991 Changes in version 0.2.3.5-alpha - 2011-09-28
13992   Tor 0.2.3.5-alpha fixes two bugs that make it possible to enumerate
13993   bridge relays; fixes an assertion error that many users started hitting
13994   today; and adds the ability to refill token buckets more often than
13995   once per second, allowing significant performance improvements.
13997   o Security fixes:
13998     - Bridge relays now do their directory fetches inside Tor TLS
13999       connections, like all the other clients do, rather than connecting
14000       directly to the DirPort like public relays do. Removes another
14001       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
14002     - Bridges relays now build circuits for themselves in a more similar
14003       way to how clients build them. Removes another avenue for
14004       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
14005       when bridges were introduced.
14007   o Major bugfixes:
14008     - Fix an "Assertion md->held_by_node == 1 failed" error that could
14009       occur when the same microdescriptor was referenced by two node_t
14010       objects at once. Fix for bug 4118; bugfix on Tor 0.2.3.1-alpha.
14012   o Major features (networking):
14013     - Add a new TokenBucketRefillInterval option to refill token buckets
14014       more frequently than once per second. This should improve network
14015       performance, alleviate queueing problems, and make traffic less
14016       bursty. Implements proposal 183; closes ticket 3630. Design by
14017       Florian Tschorsch and Björn Scheuermann; implementation by
14018       Florian Tschorsch.
14020   o Minor bugfixes:
14021     - Change an integer overflow check in the OpenBSD_Malloc code so
14022       that GCC is less likely to eliminate it as impossible. Patch
14023       from Mansour Moufid. Fixes bug 4059.
14025   o Minor bugfixes (usability):
14026     - Downgrade log messages about circuit timeout calibration from
14027       "notice" to "info": they don't require or suggest any human
14028       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
14029       bugfix on 0.2.2.14-alpha.
14031   o Minor features (diagnostics):
14032     - When the system call to create a listener socket fails, log the
14033       error message explaining why. This may help diagnose bug 4027.
14036 Changes in version 0.2.3.4-alpha - 2011-09-13
14037   Tor 0.2.3.4-alpha includes the fixes from 0.2.2.33, including a slight
14038   tweak to Tor's TLS handshake that makes relays and bridges that run
14039   this new version reachable from Iran again. It also fixes a few new
14040   bugs in 0.2.3.x, and teaches relays to recognize when they're not
14041   listed in the network consensus and republish.
14043   o Major bugfixes (also part of 0.2.2.33):
14044     - Avoid an assertion failure when reloading a configuration with
14045       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
14046       3923; bugfix on 0.2.2.25-alpha.
14048   o Minor features (security, also part of 0.2.2.33):
14049     - Check for replays of the public-key encrypted portion of an
14050       INTRODUCE1 cell, in addition to the current check for replays of
14051       the g^x value. This prevents a possible class of active attacks
14052       by an attacker who controls both an introduction point and a
14053       rendezvous point, and who uses the malleability of AES-CTR to
14054       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
14055       that these attacks are infeasible (requiring the attacker to send
14056       on the order of zettabytes of altered cells in a short interval),
14057       but we'd rather block them off in case there are any classes of
14058       this attack that we missed. Reported by Willem Pinckaers.
14060   o Minor features (also part of 0.2.2.33):
14061     - Adjust the expiration time on our SSL session certificates to
14062       better match SSL certs seen in the wild. Resolves ticket 4014.
14063     - Change the default required uptime for a relay to be accepted as
14064       a HSDir (hidden service directory) from 24 hours to 25 hours.
14065       Improves on 0.2.0.10-alpha; resolves ticket 2649.
14066     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
14067       authorities to abstain from voting on assignment of the HSDir
14068       consensus flag. Related to bug 2649.
14069     - Update to the September 6 2011 Maxmind GeoLite Country database.
14071   o Minor bugfixes (also part of 0.2.2.33):
14072     - Demote the 'replay detected' log message emitted when a hidden
14073       service receives the same Diffie-Hellman public key in two different
14074       INTRODUCE2 cells to info level. A normal Tor client can cause that
14075       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
14076       fixes part of bug 2442.
14077     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
14078       level. There is nothing that a hidden service's operator can do
14079       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
14080       of bug 2442.
14081     - Clarify a log message specifying the characters permitted in
14082       HiddenServiceAuthorizeClient client names. Previously, the log
14083       message said that "[A-Za-z0-9+-_]" were permitted; that could have
14084       given the impression that every ASCII character between "+" and "_"
14085       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
14087   o Build fixes (also part of 0.2.2.33):
14088     - Clean up some code issues that prevented Tor from building on older
14089       BSDs. Fixes bug 3894; reported by "grarpamp".
14090     - Search for a platform-specific version of "ar" when cross-compiling.
14091       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
14093   o Major bugfixes:
14094     - Fix a bug where the SocksPort option (for example) would get
14095       ignored and replaced by the default if a SocksListenAddress
14096       option was set. Bugfix on 0.2.3.3-alpha; fixes bug 3936. Fix by
14097       Fabian Keil.
14099   o Major features:
14100     - Relays now try regenerating and uploading their descriptor more
14101       frequently if they are not listed in the consensus, or if the
14102       version of their descriptor listed in the consensus is too
14103       old. This fix should prevent situations where a server declines
14104       to re-publish itself because it has done so too recently, even
14105       though the authorities decided not to list its recent-enough
14106       descriptor. Fix for bug 3327.
14108   o Minor features:
14109     - Relays now include a reason for regenerating their descriptors
14110       in an HTTP header when uploading to the authorities. This will
14111       make it easier to debug descriptor-upload issues in the future.
14112     - When starting as root and then changing our UID via the User
14113       control option, and we have a ControlSocket configured, make sure
14114       that the ControlSocket is owned by the same account that Tor will
14115       run under. Implements ticket 3421; fix by Jérémy Bobbio.
14117   o Minor bugfixes:
14118     - Abort if tor_vasprintf fails in connection_printf_to_buf (a
14119       utility function used in the control-port code). This shouldn't
14120       ever happen unless Tor is completely out of memory, but if it did
14121       happen and Tor somehow recovered from it, Tor could have sent a log
14122       message to a control port in the middle of a reply to a controller
14123       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
14124     - Make 'FetchUselessDescriptors' cause all descriptor types and
14125       all consensus types (including microdescriptors) to get fetched.
14126       Fixes bug 3851; bugfix on 0.2.3.1-alpha.
14128   o Code refactoring:
14129     - Make a new "entry connection" struct as an internal subtype of "edge
14130       connection", to simplify the code and make exit connections smaller.
14133 Changes in version 0.2.2.33 - 2011-09-13
14134   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
14135   TLS handshake that makes relays and bridges that run this new version
14136   reachable from Iran again.
14138   o Major bugfixes:
14139     - Avoid an assertion failure when reloading a configuration with
14140       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
14141       3923; bugfix on 0.2.2.25-alpha.
14143   o Minor features (security):
14144     - Check for replays of the public-key encrypted portion of an
14145       INTRODUCE1 cell, in addition to the current check for replays of
14146       the g^x value. This prevents a possible class of active attacks
14147       by an attacker who controls both an introduction point and a
14148       rendezvous point, and who uses the malleability of AES-CTR to
14149       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
14150       that these attacks are infeasible (requiring the attacker to send
14151       on the order of zettabytes of altered cells in a short interval),
14152       but we'd rather block them off in case there are any classes of
14153       this attack that we missed. Reported by Willem Pinckaers.
14155   o Minor features:
14156     - Adjust the expiration time on our SSL session certificates to
14157       better match SSL certs seen in the wild. Resolves ticket 4014.
14158     - Change the default required uptime for a relay to be accepted as
14159       a HSDir (hidden service directory) from 24 hours to 25 hours.
14160       Improves on 0.2.0.10-alpha; resolves ticket 2649.
14161     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
14162       authorities to abstain from voting on assignment of the HSDir
14163       consensus flag. Related to bug 2649.
14164     - Update to the September 6 2011 Maxmind GeoLite Country database.
14166   o Minor bugfixes (documentation and log messages):
14167     - Correct the man page to explain that HashedControlPassword and
14168       CookieAuthentication can both be set, in which case either method
14169       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
14170       when we decided to allow these config options to both be set. Issue
14171       raised by bug 3898.
14172     - Demote the 'replay detected' log message emitted when a hidden
14173       service receives the same Diffie-Hellman public key in two different
14174       INTRODUCE2 cells to info level. A normal Tor client can cause that
14175       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
14176       fixes part of bug 2442.
14177     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
14178       level. There is nothing that a hidden service's operator can do
14179       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
14180       of bug 2442.
14181     - Clarify a log message specifying the characters permitted in
14182       HiddenServiceAuthorizeClient client names. Previously, the log
14183       message said that "[A-Za-z0-9+-_]" were permitted; that could have
14184       given the impression that every ASCII character between "+" and "_"
14185       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
14187   o Build fixes:
14188     - Provide a substitute implementation of lround() for MSVC, which
14189       apparently lacks it. Patch from Gisle Vanem.
14190     - Clean up some code issues that prevented Tor from building on older
14191       BSDs. Fixes bug 3894; reported by "grarpamp".
14192     - Search for a platform-specific version of "ar" when cross-compiling.
14193       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
14196 Changes in version 0.2.3.3-alpha - 2011-09-01
14197   Tor 0.2.3.3-alpha adds a new "stream isolation" feature to improve Tor's
14198   security, and provides client-side support for the microdescriptor
14199   and optimistic data features introduced earlier in the 0.2.3.x
14200   series. It also includes numerous critical bugfixes in the (optional)
14201   bufferevent-based networking backend.
14203   o Major features (stream isolation):
14204     - You can now configure Tor so that streams from different
14205       applications are isolated on different circuits, to prevent an
14206       attacker who sees your streams as they leave an exit node from
14207       linking your sessions to one another. To do this, choose some way
14208       to distinguish the applications: have them connect to different
14209       SocksPorts, or have one of them use SOCKS4 while the other uses
14210       SOCKS5, or have them pass different authentication strings to the
14211       SOCKS proxy. Then, use the new SocksPort syntax to configure the
14212       degree of isolation you need. This implements Proposal 171.
14213     - There's a new syntax for specifying multiple client ports (such as
14214       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
14215       multiple *Port entries with full addr:port syntax on each.
14216       The old *ListenAddress format is still supported, but you can't
14217       mix it with the new *Port syntax.
14219   o Major features (other):
14220     - Enable microdescriptor fetching by default for clients. This allows
14221       clients to download a much smaller amount of directory information.
14222       To disable it (and go back to the old-style consensus and
14223       descriptors), set "UseMicrodescriptors 0" in your torrc file.
14224     - Tor's firewall-helper feature, introduced in 0.2.3.1-alpha (see the
14225       "PortForwarding" config option), now supports Windows.
14226     - When using an exit relay running 0.2.3.x, clients can now
14227       "optimistically" send data before the exit relay reports that
14228       the stream has opened. This saves a round trip when starting
14229       connections where the client speaks first (such as web browsing).
14230       This behavior is controlled by a consensus parameter (currently
14231       disabled). To turn it on or off manually, use the "OptimisticData"
14232       torrc option. Implements proposal 181; code by Ian Goldberg.
14234   o Major bugfixes (bufferevents, fixes on 0.2.3.1-alpha):
14235     - When using IOCP on Windows, we need to enable Libevent windows
14236       threading support.
14237     - The IOCP backend now works even when the user has not specified
14238       the (internal, debugging-only) _UseFilteringSSLBufferevents option.
14239       Fixes part of bug 3752.
14240     - Correctly record the bytes we've read and written when using
14241       bufferevents, so that we can include them in our bandwidth history
14242       and advertised bandwidth. Fixes bug 3803.
14243     - Apply rate-limiting only at the bottom of a chain of filtering
14244       bufferevents. This prevents us from filling up internal read
14245       buffers and violating rate-limits when filtering bufferevents
14246       are enabled. Fixes part of bug 3804.
14247     - Add high-watermarks to the output buffers for filtered
14248       bufferevents. This prevents us from filling up internal write
14249       buffers and wasting CPU cycles when filtering bufferevents are
14250       enabled. Fixes part of bug 3804.
14251     - Correctly notice when data has been written from a bufferevent
14252       without flushing it completely. Fixes bug 3805.
14253     - Fix a bug where server-side tunneled bufferevent-based directory
14254       streams would get closed prematurely. Fixes bug 3814.
14255     - Fix a use-after-free error with per-connection rate-limiting
14256       buckets. Fixes bug 3888.
14258   o Major bugfixes (also part of 0.2.2.31-rc):
14259     - If we're configured to write our ControlPorts to disk, only write
14260       them after switching UID and creating the data directory. This way,
14261       we don't fail when starting up with a nonexistent DataDirectory
14262       and a ControlPortWriteToFile setting based on that directory. Fixes
14263       bug 3747; bugfix on Tor 0.2.2.26-beta.
14265   o Minor features:
14266     - Added a new CONF_CHANGED event so that controllers can be notified
14267       of any configuration changes made by other controllers, or by the
14268       user. Implements ticket 1692.
14269     - Use evbuffer_copyout() in inspect_evbuffer(). This fixes a memory
14270       leak when using bufferevents, and lets Libevent worry about how to
14271       best copy data out of a buffer.
14272     - Replace files in stats/ rather than appending to them. Now that we
14273       include statistics in extra-info descriptors, it makes no sense to
14274       keep old statistics forever. Implements ticket 2930.
14276   o Minor features (build compatibility):
14277     - Limited, experimental support for building with nmake and MSVC.
14278     - Provide a substitute implementation of lround() for MSVC, which
14279       apparently lacks it. Patch from Gisle Vanem.
14281   o Minor features (also part of 0.2.2.31-rc):
14282     - Update to the August 2 2011 Maxmind GeoLite Country database.
14284   o Minor bugfixes (on 0.2.3.x-alpha):
14285     - Fix a spurious warning when parsing SOCKS requests with
14286       bufferevents enabled. Fixes bug 3615; bugfix on 0.2.3.2-alpha.
14287     - Get rid of a harmless warning that could happen on relays running
14288       with bufferevents. The warning was caused by someone doing an http
14289       request to a relay's orport. Also don't warn for a few related
14290       non-errors. Fixes bug 3700; bugfix on 0.2.3.1-alpha.
14292   o Minor bugfixes (on 2.2.x and earlier):
14293     - Correct the man page to explain that HashedControlPassword and
14294       CookieAuthentication can both be set, in which case either method
14295       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
14296       when we decided to allow these config options to both be set. Issue
14297       raised by bug 3898.
14298     - The "--quiet" and "--hush" options now apply not only to Tor's
14299       behavior before logs are configured, but also to Tor's behavior in
14300       the absense of configured logs. Fixes bug 3550; bugfix on
14301       0.2.0.10-alpha.
14303   o Minor bugfixes (also part of 0.2.2.31-rc):
14304     - Write several files in text mode, on OSes that distinguish text
14305       mode from binary mode (namely, Windows). These files are:
14306       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
14307       that collect those statistics; 'client_keys' and 'hostname' for
14308       hidden services that use authentication; and (in the tor-gencert
14309       utility) newly generated identity and signing keys. Previously,
14310       we wouldn't specify text mode or binary mode, leading to an
14311       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
14312       the DirRecordUsageByCountry option which would have triggered
14313       the assertion failure was added), although this assertion failure
14314       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
14315     - Selectively disable deprecation warnings on OS X because Lion
14316       started deprecating the shipped copy of openssl. Fixes bug 3643.
14317     - Remove an extra pair of quotation marks around the error
14318       message in control-port STATUS_GENERAL BUG events. Bugfix on
14319       0.1.2.6-alpha; fixes bug 3732.
14320     - When unable to format an address as a string, report its value
14321       as "???" rather than reusing the last formatted address. Bugfix
14322       on 0.2.1.5-alpha.
14324   o Code simplifications and refactoring:
14325     - Rewrite the listener-selection logic so that parsing which ports
14326       we want to listen on is now separate from binding to the ports
14327       we want.
14329   o Build changes:
14330     - Building Tor with bufferevent support now requires Libevent
14331       2.0.13-stable or later. Previous versions of Libevent had bugs in
14332       SSL-related bufferevents and related issues that would make Tor
14333       work badly with bufferevents. Requiring 2.0.13-stable also allows
14334       Tor with bufferevents to take advantage of Libevent APIs
14335       introduced after 2.0.8-rc.
14338 Changes in version 0.2.2.32 - 2011-08-27
14339   The Tor 0.2.2 release series is dedicated to the memory of Andreas
14340   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
14341   a founder of the PETS community, a leader in our field, a mentor,
14342   and a friend. He left us with these words: "I had the possibility
14343   to contribute to this world that is not as it should be. I hope I
14344   could help in some areas to make the world a better place, and that
14345   I could also encourage other people to be engaged in improving the
14346   world. Please, stay engaged. This world needs you, your love, your
14347   initiative -- now I cannot be part of that anymore."
14349   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
14350   ready. More than two years in the making, this release features improved
14351   client performance and hidden service reliability, better compatibility
14352   for Android, correct behavior for bridges that listen on more than
14353   one address, more extensible and flexible directory object handling,
14354   better reporting of network statistics, improved code security, and
14355   many many other features and bugfixes.
14358 Changes in version 0.2.2.31-rc - 2011-08-17
14359   Tor 0.2.2.31-rc is the second and hopefully final release candidate
14360   for the Tor 0.2.2.x series.
14362   o Major bugfixes:
14363     - Remove an extra pair of quotation marks around the error
14364       message in control-port STATUS_GENERAL BUG events. Bugfix on
14365       0.1.2.6-alpha; fixes bug 3732.
14366     - If we're configured to write our ControlPorts to disk, only write
14367       them after switching UID and creating the data directory. This way,
14368       we don't fail when starting up with a nonexistent DataDirectory
14369       and a ControlPortWriteToFile setting based on that directory. Fixes
14370       bug 3747; bugfix on Tor 0.2.2.26-beta.
14372   o Minor features:
14373     - Update to the August 2 2011 Maxmind GeoLite Country database.
14375   o Minor bugfixes:
14376     - Allow GETINFO fingerprint to return a fingerprint even when
14377       we have not yet built a router descriptor. Fixes bug 3577;
14378       bugfix on 0.2.0.1-alpha.
14379     - Write several files in text mode, on OSes that distinguish text
14380       mode from binary mode (namely, Windows). These files are:
14381       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
14382       that collect those statistics; 'client_keys' and 'hostname' for
14383       hidden services that use authentication; and (in the tor-gencert
14384       utility) newly generated identity and signing keys. Previously,
14385       we wouldn't specify text mode or binary mode, leading to an
14386       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
14387       the DirRecordUsageByCountry option which would have triggered
14388       the assertion failure was added), although this assertion failure
14389       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
14390     - Selectively disable deprecation warnings on OS X because Lion
14391       started deprecating the shipped copy of openssl. Fixes bug 3643.
14392     - When unable to format an address as a string, report its value
14393       as "???" rather than reusing the last formatted address. Bugfix
14394       on 0.2.1.5-alpha.
14397 Changes in version 0.2.3.2-alpha - 2011-07-18
14398   Tor 0.2.3.2-alpha introduces two new experimental features:
14399   microdescriptors and pluggable transports. It also continues cleaning
14400   up a variety of recently introduced features.
14402   o Major features:
14403     - Clients can now use microdescriptors instead of regular descriptors
14404       to build circuits. Microdescriptors are authority-generated
14405       summaries of regular descriptors' contents, designed to change
14406       very rarely (see proposal 158 for details). This feature is
14407       designed to save bandwidth, especially for clients on slow internet
14408       connections. It's off by default for now, since nearly no caches
14409       support it, but it will be on-by-default for clients in a future
14410       version. You can use the UseMicrodescriptors option to turn it on.
14411     - Tor clients using bridges can now be configured to use a separate
14412       'transport' proxy for each bridge. This approach helps to resist
14413       censorship by allowing bridges to use protocol obfuscation
14414       plugins. It implements part of proposal 180. Implements ticket 2841.
14415     - While we're trying to bootstrap, record how many TLS connections
14416       fail in each state, and report which states saw the most failures
14417       in response to any bootstrap failures. This feature may speed up
14418       diagnosis of censorship events. Implements ticket 3116.
14420   o Major bugfixes (on 0.2.3.1-alpha):
14421     - When configuring a large set of nodes in EntryNodes (as with
14422       'EntryNodes {cc}' or 'EntryNodes 1.1.1.1/16'), choose only a
14423       random subset to be guards, and choose them in random
14424       order. Fixes bug 2798.
14425     - Tor could crash when remembering a consensus in a non-used consensus
14426       flavor without having a current consensus set. Fixes bug 3361.
14427     - Comparing an unknown address to a microdescriptor's shortened exit
14428       policy would always give a "rejected" result. Fixes bug 3599.
14429     - Using microdescriptors as a client no longer prevents Tor from
14430       uploading and downloading hidden service descriptors. Fixes
14431       bug 3601.
14433   o Minor features:
14434     - Allow nameservers with IPv6 address. Resolves bug 2574.
14435     - Accept attempts to include a password authenticator in the
14436       handshake, as supported by SOCKS5. This handles SOCKS clients that
14437       don't know how to omit a password when authenticating. Resolves
14438       bug 1666.
14439     - When configuring a large set of nodes in EntryNodes, and there are
14440       enough of them listed as Guard so that we don't need to consider
14441       the non-guard entries, prefer the ones listed with the Guard flag.
14442     - Check for and recover from inconsistency in the microdescriptor
14443       cache. This will make it harder for us to accidentally free a
14444       microdescriptor without removing it from the appropriate data
14445       structures. Fixes issue 3135; issue noted by "wanoskarnet".
14446     - Log SSL state transitions at log level DEBUG, log domain
14447       HANDSHAKE. This can be useful for debugging censorship events.
14448       Implements ticket 3264.
14449     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
14450       implements ticket 3439.
14452   o Minor bugfixes (on 0.2.3.1-alpha):
14453     - Do not free all general-purpose regular descriptors just
14454       because microdescriptor use is enabled. Fixes bug 3113.
14455     - Correctly link libevent_openssl when --enable-static-libevent
14456       is passed to configure. Fixes bug 3118.
14457     - Bridges should not complain during their heartbeat log messages that
14458       they are unlisted in the consensus: that's more or less the point
14459       of being a bridge. Fixes bug 3183.
14460     - Report a SIGNAL event to controllers when acting on a delayed
14461       SIGNAL NEWNYM command. Previously, we would report a SIGNAL
14462       event to the controller if we acted on a SIGNAL NEWNYM command
14463       immediately, and otherwise not report a SIGNAL event for the
14464       command at all. Fixes bug 3349.
14465     - Fix a crash when handling the SIGNAL controller command or
14466       reporting ERR-level status events with bufferevents enabled. Found
14467       by Robert Ransom. Fixes bug 3367.
14468     - Always ship the tor-fw-helper manpage in our release tarballs.
14469       Fixes bug 3389. Reported by Stephen Walker.
14470     - Fix a class of double-mark-for-close bugs when bufferevents
14471       are enabled. Fixes bug 3403.
14472     - Update tor-fw-helper to support libnatpmp-20110618. Fixes bug 3434.
14473     - Add SIGNAL to the list returned by the 'GETINFO events/names'
14474       control-port command. Fixes part of bug 3465.
14475     - Prevent using negative indices during unit test runs when read_all()
14476       fails. Spotted by coverity.
14477     - Fix a rare memory leak when checking the nodelist without it being
14478       present. Found by coverity.
14479     - Only try to download a microdescriptor-flavored consensus from
14480       a directory cache that provides them.
14482   o Minor bugfixes (on 0.2.2.x and earlier):
14483     - Assert that hidden-service-related operations are not performed
14484       using single-hop circuits. Previously, Tor would assert that
14485       client-side streams are not attached to single-hop circuits,
14486       but not that other sensitive operations on the client and service
14487       side are not performed using single-hop circuits. Fixes bug 3332;
14488       bugfix on 0.0.6.
14489     - Don't publish a new relay descriptor when we reload our onion key,
14490       unless the onion key has actually changed. Fixes bug 3263 and
14491       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
14492     - Allow GETINFO fingerprint to return a fingerprint even when
14493       we have not yet built a router descriptor. Fixes bug 3577;
14494       bugfix on 0.2.0.1-alpha.
14495     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
14496       on 0.2.2.4-alpha; fixes bug 3427.
14498   o Code simplification and refactoring:
14499     - Use tor_sscanf() in place of scanf() in more places through the
14500       code. This makes us a little more locale-independent, and
14501       should help shut up code-analysis tools that can't tell
14502       a safe sscanf string from a dangerous one.
14503     - Use tt_assert(), not tor_assert(), for checking for test failures.
14504       This makes the unit tests more able to go on in the event that
14505       one of them fails.
14506     - Split connection_about_to_close() into separate functions for each
14507       connection type.
14509   o Build changes:
14510     - On Windows, we now define the _WIN32_WINNT macros only if they
14511       are not already defined. This lets the person building Tor decide,
14512       if they want, to require a later version of Windows.
14515 Changes in version 0.2.2.30-rc - 2011-07-07
14516   Tor 0.2.2.30-rc is the first release candidate for the Tor 0.2.2.x
14517   series. It fixes a few smaller bugs, but generally appears stable.
14518   Please test it and let us know whether it is!
14520   o Minor bugfixes:
14521     - Send a SUCCEEDED stream event to the controller when a reverse
14522       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
14523       discovered by katmagic.
14524     - Always NUL-terminate the sun_path field of a sockaddr_un before
14525       passing it to the kernel. (Not a security issue: kernels are
14526       smart enough to reject bad sockaddr_uns.) Found by Coverity;
14527       CID #428. Bugfix on Tor 0.2.0.3-alpha.
14528     - Don't stack-allocate the list of supplementary GIDs when we're
14529       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
14530       could take up to 256K, which is way too much stack. Found by
14531       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
14532     - Add BUILDTIMEOUT_SET to the list returned by the 'GETINFO
14533       events/names' control-port command. Bugfix on 0.2.2.9-alpha;
14534       fixes part of bug 3465.
14535     - Fix a memory leak when receiving a descriptor for a hidden
14536       service we didn't ask for. Found by Coverity; CID #30. Bugfix
14537       on 0.2.2.26-beta.
14539   o Minor features:
14540     - Update to the July 1 2011 Maxmind GeoLite Country database.
14543 Changes in version 0.2.2.29-beta - 2011-06-20
14544   Tor 0.2.2.29-beta reverts an accidental behavior change for users who
14545   have bridge lines in their torrc but don't want to use them; gets
14546   us closer to having the control socket feature working on Debian;
14547   and fixes a variety of smaller bugs.
14549   o Major bugfixes:
14550     - Revert the UseBridges option to its behavior before 0.2.2.28-beta.
14551       When we changed the default behavior to "use bridges if any
14552       are listed in the torrc", we surprised users who had bridges
14553       in their torrc files but who didn't actually want to use them.
14554       Partial resolution for bug 3354.
14556   o Privacy fixes:
14557     - Don't attach new streams to old rendezvous circuits after SIGNAL
14558       NEWNYM. Previously, we would keep using an existing rendezvous
14559       circuit if it remained open (i.e. if it were kept open by a
14560       long-lived stream, or if a new stream were attached to it before
14561       Tor could notice that it was old and no longer in use). Bugfix on
14562       0.1.1.15-rc; fixes bug 3375.
14564   o Minor bugfixes:
14565     - Fix a bug when using ControlSocketsGroupWritable with User. The
14566       directory's group would be checked against the current group, not
14567       the configured group. Patch by Jérémy Bobbio. Fixes bug 3393;
14568       bugfix on 0.2.2.26-beta.
14569     - Make connection_printf_to_buf()'s behavior sane. Its callers
14570       expect it to emit a CRLF iff the format string ends with CRLF;
14571       it actually emitted a CRLF iff (a) the format string ended with
14572       CRLF or (b) the resulting string was over 1023 characters long or
14573       (c) the format string did not end with CRLF *and* the resulting
14574       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
14575       fixes part of bug 3407.
14576     - Make send_control_event_impl()'s behavior sane. Its callers
14577       expect it to always emit a CRLF at the end of the string; it
14578       might have emitted extra control characters as well. Bugfix on
14579       0.1.1.9-alpha; fixes another part of bug 3407.
14580     - Make crypto_rand_int() check the value of its input correctly.
14581       Previously, it accepted values up to UINT_MAX, but could return a
14582       negative number if given a value above INT_MAX+1. Found by George
14583       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
14584     - Avoid a segfault when reading a malformed circuit build state
14585       with more than INT_MAX entries. Found by wanoskarnet. Bugfix on
14586       0.2.2.4-alpha.
14587     - When asked about a DNS record type we don't support via a
14588       client DNSPort, reply with NOTIMPL rather than an empty
14589       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
14590     - Fix a rare memory leak during stats writing. Found by coverity.
14592   o Minor features:
14593     - Update to the June 1 2011 Maxmind GeoLite Country database.
14595   o Code simplifications and refactoring:
14596     - Remove some dead code as indicated by coverity.
14597     - Remove a few dead assignments during router parsing. Found by
14598       coverity.
14599     - Add some forgotten return value checks during unit tests. Found
14600       by coverity.
14601     - Don't use 1-bit wide signed bit fields. Found by coverity.
14604 Changes in version 0.2.2.28-beta - 2011-06-04
14605   Tor 0.2.2.28-beta makes great progress towards a new stable release: we
14606   fixed a big bug in whether relays stay in the consensus consistently,
14607   we moved closer to handling bridges and hidden services correctly,
14608   and we started the process of better handling the dreaded "my Vidalia
14609   died, and now my Tor demands a password when I try to reconnect to it"
14610   usability issue.
14612   o Major bugfixes:
14613     - Don't decide to make a new descriptor when receiving a HUP signal.
14614       This bug has caused a lot of 0.2.2.x relays to disappear from the
14615       consensus periodically. Fixes the most common case of triggering
14616       bug 1810; bugfix on 0.2.2.7-alpha.
14617     - Actually allow nameservers with IPv6 addresses. Fixes bug 2574.
14618     - Don't try to build descriptors if "ORPort auto" is set and we
14619       don't know our actual ORPort yet. Fix for bug 3216; bugfix on
14620       0.2.2.26-beta.
14621     - Resolve a crash that occurred when setting BridgeRelay to 1 with
14622       accounting enabled. Fixes bug 3228; bugfix on 0.2.2.18-alpha.
14623     - Apply circuit timeouts to opened hidden-service-related circuits
14624       based on the correct start time. Previously, we would apply the
14625       circuit build timeout based on time since the circuit's creation;
14626       it was supposed to be applied based on time since the circuit
14627       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
14628     - Use the same circuit timeout for client-side introduction
14629       circuits as for other four-hop circuits, rather than the timeout
14630       for single-hop directory-fetch circuits; the shorter timeout may
14631       have been appropriate with the static circuit build timeout in
14632       0.2.1.x and earlier, but caused many hidden service access attempts
14633       to fail with the adaptive CBT introduced in 0.2.2.2-alpha. Bugfix
14634       on 0.2.2.2-alpha; fixes another part of bug 1297.
14635     - In ticket 2511 we fixed a case where you could use an unconfigured
14636       bridge if you had configured it as a bridge the last time you ran
14637       Tor. Now fix another edge case: if you had configured it as a bridge
14638       but then switched to a different bridge via the controller, you
14639       would still be willing to use the old one. Bugfix on 0.2.0.1-alpha;
14640       fixes bug 3321.
14642   o Major features:
14643     - Add an __OwningControllerProcess configuration option and a
14644       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
14645       that when it exits, Tor will shut down. Implements feature 3049.
14646     - If "UseBridges 1" is set and no bridges are configured, Tor will
14647       now refuse to build any circuits until some bridges are set.
14648       If "UseBridges auto" is set, Tor will use bridges if they are
14649       configured and we are not running as a server, but otherwise will
14650       make circuits as usual. The new default is "auto". Patch by anonym,
14651       so the Tails LiveCD can stop automatically revealing you as a Tor
14652       user on startup.
14654   o Minor bugfixes:
14655     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
14656     - Remove a trailing asterisk from "exit-policy/default" in the
14657       output of the control port command "GETINFO info/names". Bugfix
14658       on 0.1.2.5-alpha.
14659     - Use a wide type to hold sockets when built for 64-bit Windows builds.
14660       Fixes bug 3270.
14661     - Warn when the user configures two HiddenServiceDir lines that point
14662       to the same directory. Bugfix on 0.0.6 (the version introducing
14663       HiddenServiceDir); fixes bug 3289.
14664     - Remove dead code from rend_cache_lookup_v2_desc_as_dir. Fixes
14665       part of bug 2748; bugfix on 0.2.0.10-alpha.
14666     - Log malformed requests for rendezvous descriptors as protocol
14667       warnings, not warnings. Also, use a more informative log message
14668       in case someone sees it at log level warning without prior
14669       info-level messages. Fixes the other part of bug 2748; bugfix
14670       on 0.2.0.10-alpha.
14671     - Clear the table recording the time of the last request for each
14672       hidden service descriptor from each HS directory on SIGNAL NEWNYM.
14673       Previously, we would clear our HS descriptor cache on SIGNAL
14674       NEWNYM, but if we had previously retrieved a descriptor (or tried
14675       to) from every directory responsible for it, we would refuse to
14676       fetch it again for up to 15 minutes. Bugfix on 0.2.2.25-alpha;
14677       fixes bug 3309.
14678     - Fix a log message that said "bits" while displaying a value in
14679       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
14680       0.2.0.1-alpha.
14681     - When checking for 1024-bit keys, check for 1024 bits, not 128
14682       bytes. This allows Tor to correctly discard keys of length 1017
14683       through 1023. Bugfix on 0.0.9pre5.
14685   o Minor features:
14686     - Relays now log the reason for publishing a new relay descriptor,
14687       so we have a better chance of hunting down instances of bug 1810.
14688       Resolves ticket 3252.
14689     - Revise most log messages that refer to nodes by nickname to
14690       instead use the "$key=nickname at address" format. This should be
14691       more useful, especially since nicknames are less and less likely
14692       to be unique. Resolves ticket 3045.
14693     - Log (at info level) when purging pieces of hidden-service-client
14694       state because of SIGNAL NEWNYM.
14696   o Removed options:
14697     - Remove undocumented option "-F" from tor-resolve: it hasn't done
14698       anything since 0.2.1.16-rc.
14701 Changes in version 0.2.2.27-beta - 2011-05-18
14702   Tor 0.2.2.27-beta fixes a bridge-related stability bug in the previous
14703   release, and also adds a few more general bugfixes.
14705   o Major bugfixes:
14706     - Fix a crash bug when changing bridges in a running Tor process.
14707       Fixes bug 3213; bugfix on 0.2.2.26-beta.
14708     - When the controller configures a new bridge, don't wait 10 to 60
14709       seconds before trying to fetch its descriptor. Bugfix on
14710       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
14712   o Minor bugfixes:
14713     - Require that onion keys have exponent 65537 in microdescriptors too.
14714       Fixes more of bug 3207; bugfix on 0.2.2.26-beta.
14715     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
14716       Changed the limit to 512 characters by removing base64 newlines.
14717       Fixes bug 2752. Fix by Michael Yakubovich.
14718     - When a client starts or stops using bridges, never use a circuit
14719       that was built before the configuration change. This behavior could
14720       put at risk a user who uses bridges to ensure that her traffic
14721       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
14722       bug 3200.
14725 Changes in version 0.2.2.26-beta - 2011-05-17
14726   Tor 0.2.2.26-beta fixes a variety of potential privacy problems. It
14727   also introduces a new "socksport auto" approach that should make it
14728   easier to run multiple Tors on the same system, and does a lot of
14729   cleanup to get us closer to a release candidate.
14731   o Security/privacy fixes:
14732     - Replace all potentially sensitive memory comparison operations
14733       with versions whose runtime does not depend on the data being
14734       compared. This will help resist a class of attacks where an
14735       adversary can use variations in timing information to learn
14736       sensitive data. Fix for one case of bug 3122. (Safe memcmp
14737       implementation by Robert Ransom based partially on code by DJB.)
14738     - When receiving a hidden service descriptor, check that it is for
14739       the hidden service we wanted. Previously, Tor would store any
14740       hidden service descriptors that a directory gave it, whether it
14741       wanted them or not. This wouldn't have let an attacker impersonate
14742       a hidden service, but it did let directories pre-seed a client
14743       with descriptors that it didn't want. Bugfix on 0.0.6.
14744     - On SIGHUP, do not clear out all TrackHostExits mappings, client
14745       DNS cache entries, and virtual address mappings: that's what
14746       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
14748   o Major features:
14749     - The options SocksPort, ControlPort, and so on now all accept a
14750       value "auto" that opens a socket on an OS-selected port. A
14751       new ControlPortWriteToFile option tells Tor to write its
14752       actual control port or ports to a chosen file. If the option
14753       ControlPortFileGroupReadable is set, the file is created as
14754       group-readable. Now users can run two Tor clients on the same
14755       system without needing to manually mess with parameters. Resolves
14756       part of ticket 3076.
14757     - Set SO_REUSEADDR on all sockets, not just listeners. This should
14758       help busy exit nodes avoid running out of useable ports just
14759       because all the ports have been used in the near past. Resolves
14760       issue 2850.
14762   o Minor features:
14763     - New "GETINFO net/listeners/(type)" controller command to return
14764       a list of addresses and ports that are bound for listeners for a
14765       given connection type. This is useful when the user has configured
14766       "SocksPort auto" and the controller needs to know which port got
14767       chosen. Resolves another part of ticket 3076.
14768     - Add a new ControlSocketsGroupWritable configuration option: when
14769       it is turned on, ControlSockets are group-writeable by the default
14770       group of the current user. Patch by Jérémy Bobbio; implements
14771       ticket 2972.
14772     - Tor now refuses to create a ControlSocket in a directory that is
14773       world-readable (or group-readable if ControlSocketsGroupWritable
14774       is 0). This is necessary because some operating systems do not
14775       enforce permissions on an AF_UNIX sockets. Permissions on the
14776       directory holding the socket, however, seems to work everywhere.
14777     - Rate-limit a warning about failures to download v2 networkstatus
14778       documents. Resolves part of bug 1352.
14779     - Backport code from 0.2.3.x that allows directory authorities to
14780       clean their microdescriptor caches. Needed to resolve bug 2230.
14781     - When an HTTPS proxy reports "403 Forbidden", we now explain
14782       what it means rather than calling it an unexpected status code.
14783       Closes bug 2503. Patch from Michael Yakubovich.
14784     - Update to the May 1 2011 Maxmind GeoLite Country database.
14786   o Minor bugfixes:
14787     - Authorities now clean their microdesc cache periodically and when
14788       reading from disk initially, not only when adding new descriptors.
14789       This prevents a bug where we could lose microdescriptors. Bugfix
14790       on 0.2.2.6-alpha. Fixes bug 2230.
14791     - Do not crash when our configuration file becomes unreadable, for
14792       example due to a permissions change, between when we start up
14793       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
14794       on 0.0.9pre6.
14795     - Avoid a bug that would keep us from replacing a microdescriptor
14796       cache on Windows. (We would try to replace the file while still
14797       holding it open. That's fine on Unix, but Windows doesn't let us
14798       do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.
14799     - Add missing explanations for the authority-related torrc options
14800       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey in the
14801       man page. Resolves issue 2379.
14802     - As an authority, do not upload our own vote or signature set to
14803       ourself. It would tell us nothing new, and as of 0.2.2.24-alpha,
14804       it would get flagged as a duplicate. Resolves bug 3026.
14805     - Accept hidden service descriptors if we think we might be a hidden
14806       service directory, regardless of what our consensus says. This
14807       helps robustness, since clients and hidden services can sometimes
14808       have a more up-to-date view of the network consensus than we do,
14809       and if they think that the directory authorities list us a HSDir,
14810       we might actually be one. Related to bug 2732; bugfix on
14811       0.2.0.10-alpha.
14812     - When a controller changes TrackHostExits, remove mappings for
14813       hosts that should no longer have their exits tracked. Bugfix on
14814       0.1.0.1-rc.
14815     - When a controller changes VirtualAddrNetwork, remove any mappings
14816       for hosts that were automapped to the old network. Bugfix on
14817       0.1.1.19-rc.
14818     - When a controller changes one of the AutomapHosts* options, remove
14819       any mappings for hosts that should no longer be automapped. Bugfix
14820       on 0.2.0.1-alpha.
14821     - Do not reset the bridge descriptor download status every time we
14822       re-parse our configuration or get a configuration change. Fixes
14823       bug 3019; bugfix on 0.2.0.3-alpha.
14825   o Minor bugfixes (code cleanup):
14826     - When loading the microdesc journal, remember its current size.
14827       In 0.2.2, this helps prevent the microdesc journal from growing
14828       without limit on authorities (who are the only ones to use it in
14829       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
14830       Fix posted by "cypherpunks."
14831     - The microdesc journal is supposed to get rebuilt only if it is
14832       at least _half_ the length of the store, not _twice_ the length
14833       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
14834     - Fix a potential null-pointer dereference while computing a
14835       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
14836       clang's analyzer.
14837     - Avoid a possible null-pointer dereference when rebuilding the mdesc
14838       cache without actually having any descriptors to cache. Bugfix on
14839       0.2.2.6-alpha. Issue discovered using clang's static analyzer.
14840     - If we fail to compute the identity digest of a v3 legacy keypair,
14841       warn, and don't use a buffer-full of junk instead. Bugfix on
14842       0.2.1.1-alpha; fixes bug 3106.
14843     - Resolve an untriggerable issue in smartlist_string_num_isin(),
14844       where if the function had ever in the future been used to check
14845       for the presence of a too-large number, it would have given an
14846       incorrect result. (Fortunately, we only used it for 16-bit
14847       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
14848     - Require that introduction point keys and onion handshake keys
14849       have a public exponent of 65537. Starts to fix bug 3207; bugfix
14850       on 0.2.0.10-alpha.
14852   o Removed features:
14853     - Caches no longer download and serve v2 networkstatus documents
14854       unless FetchV2Networkstatus flag is set: these documents haven't
14855       haven't been used by clients or relays since 0.2.0.x. Resolves
14856       bug 3022.
14859 Changes in version 0.2.3.1-alpha - 2011-05-05
14860   Tor 0.2.3.1-alpha adds some new experimental features, including support
14861   for an improved network IO backend, IOCP networking on Windows,
14862   microdescriptor caching, "fast-start" support for streams, and automatic
14863   home router configuration. There are also numerous internal improvements
14864   to try to make the code easier for developers to work with.
14866   This is the first alpha release in a new series, so expect there to be
14867   bugs. Users who would rather test out a more stable branch should
14868   stay with 0.2.2.x for now.
14870   o Major features:
14871     - Tor can now optionally build with the "bufferevents" buffered IO
14872       backend provided by Libevent 2. To use this feature, make sure you
14873       have the latest possible version of Libevent, and pass the
14874       --enable-bufferevents flag to configure when building Tor from
14875       source. This feature will make our networking code more flexible,
14876       let us stack layers on each other, and let us use more efficient
14877       zero-copy transports where available.
14878     - As an experimental feature, Tor can use IOCP for networking on Windows.
14879       Once this code is tuned and optimized, it promises much better
14880       performance than the select-based backend we've used in the past. To
14881       try this feature, you must build Tor with Libevent 2, configure Tor
14882       with the "bufferevents" buffered IO backend, and add "DisableIOCP 0" to
14883       your torrc. There are known bugs here: only try this if you can help
14884       debug it as it breaks.
14885     - The EntryNodes option can now include country codes like {de} or IP
14886       addresses or network masks. Previously we had disallowed these options
14887       because we didn't have an efficient way to keep the list up to
14888       date. Fixes bug 1982, but see bug 2798 for an unresolved issue here.
14889     - Exit nodes now accept and queue data on not-yet-connected streams.
14890       Previously, the client wasn't allowed to send data until the stream was
14891       connected, which slowed down all connections. This change will enable
14892       clients to perform a "fast-start" on streams and send data without
14893       having to wait for a confirmation that the stream has opened. (Patch
14894       from Ian Goldberg; implements the server side of Proposal 174.)
14895     - Tor now has initial support for automatic port mapping on the many
14896       home routers that support NAT-PMP or UPnP. (Not yet supported on
14897       Windows). To build the support code, you'll need to have libnatpnp
14898       library and/or the libminiupnpc library, and you'll need to enable the
14899       feature specifically by passing "--enable-upnp" and/or
14900       "--enable-natpnp" to configure. To turn it on, use the new
14901       PortForwarding option.
14902     - Caches now download, cache, and serve multiple "flavors" of the
14903       consensus, including a flavor that describes microdescriptors.
14904     - Caches now download, cache, and serve microdescriptors -- small
14905       summaries of router descriptors that are authenticated by all of the
14906       directory authorities. Once enough caches are running this code,
14907       clients will be able to save significant amounts of directory bandwidth
14908       by downloading microdescriptors instead of router descriptors.
14910   o Minor features:
14911     - Make logging resolution configurable with a new LogTimeGranularity
14912       option, and change the default from 1 millisecond to 1 second.
14913       Implements enhancement 1668.
14914     - We log which torrc file we're using on startup. Implements ticket
14915       2444.
14916     - Ordinarily, Tor does not count traffic from private addresses (like
14917       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
14918       There is now a new option, CountPrivateBandwidth, to disable this
14919       behavior. Patch from Daniel Cagara.
14920     - New --enable-static-tor configure option for building Tor as
14921       statically as possible. Idea, general hackery and thoughts from
14922       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
14923       2702.
14924     - If you set the NumCPUs option to 0, Tor will now try to detect how
14925       many CPUs you have. This is the new default behavior.
14926     - Turn on directory request statistics by default and include them in
14927       extra-info descriptors. Don't break if we have no GeoIP database.
14928     - Relays that set "ConnDirectionStatistics 1" write statistics on the
14929       bidirectional use of connections to disk every 24 hours.
14930     - Add a GeoIP file digest to the extra-info descriptor. Implements
14931       enhancement 1883.
14932     - The NodeFamily option -- which let you declare that you want to
14933       consider nodes to be part of a family whether they list themselves
14934       that way or not -- now allows IP address ranges and country codes.
14935     - Add a new 'Heartbeat' log message type to periodically log a message
14936       describing Tor's status at level Notice. This feature is meant for
14937       operators who log at notice, and want to make sure that their Tor
14938       server is still working. Implementation by George Kadianakis.
14940   o Minor bugfixes (on 0.2.2.25-alpha):
14941     - When loading the microdesc journal, remember its current size.
14942       In 0.2.2, this helps prevent the microdesc journal from growing
14943       without limit on authorities (who are the only ones to use it in
14944       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
14945       Fix posted by "cypherpunks."
14946     - The microdesc journal is supposed to get rebuilt only if it is
14947       at least _half_ the length of the store, not _twice_ the length
14948       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
14949     - If as an authority we fail to compute the identity digest of a v3
14950       legacy keypair, warn, and don't use a buffer-full of junk instead.
14951       Bugfix on 0.2.1.1-alpha; fixes bug 3106.
14952     - Authorities now clean their microdesc cache periodically and when
14953       reading from disk initially, not only when adding new descriptors.
14954       This prevents a bug where we could lose microdescriptors. Bugfix
14955       on 0.2.2.6-alpha.
14957   o Minor features (controller):
14958     - Add a new SIGNAL event to the controller interface so that
14959       controllers can be notified when Tor handles a signal. Resolves
14960       issue 1955. Patch by John Brooks.
14961     - Add a new GETINFO option to get total bytes read and written. Patch
14962       from pipe, revised by atagar. Resolves ticket 2345.
14963     - Implement some GETINFO controller fields to provide information about
14964       the Tor process's pid, euid, username, and resource limits.
14966   o Build changes:
14967     - Our build system requires automake 1.6 or later to create the
14968       Makefile.in files. Previously, you could have used 1.4.
14969       This only affects developers and people building Tor from git;
14970       people who build Tor from the source distribution without changing
14971       the Makefile.am files should be fine.
14972     - Our autogen.sh script uses autoreconf to launch autoconf, automake, and
14973       so on. This is more robust against some of the failure modes
14974       associated with running the autotools pieces on their own.
14976   o Minor packaging issues:
14977     - On OpenSUSE, create the /var/run/tor directory on startup if it is not
14978       already created. Patch from Andreas Stieger. Fixes bug 2573.
14980   o Code simplifications and refactoring:
14981     - A major revision to our internal node-selecting and listing logic.
14982       Tor already had at least two major ways to look at the question of
14983       "which Tor servers do we know about": a list of router descriptors,
14984       and a list of entries in the current consensus. With
14985       microdescriptors, we're adding a third. Having so many systems
14986       without an abstraction layer over them was hurting the codebase.
14987       Now, we have a new "node_t" abstraction that presents a consistent
14988       interface to a client's view of a Tor node, and holds (nearly) all
14989       of the mutable state formerly in routerinfo_t and routerstatus_t.
14990     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
14991       no longer link against Libevent: they never used it, but
14992       our library structure used to force them to link it.
14994   o Removed features:
14995     - Remove some old code to work around even older versions of Tor that
14996       used forked processes to handle DNS requests. Such versions of Tor
14997       are no longer in use as servers.
14999   o Documentation fixes:
15000     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
15001     - Add missing documentation for the authority-related torrc options
15002       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey. Resolves
15003       issue 2379.
15006 Changes in version 0.2.2.25-alpha - 2011-04-29
15007   Tor 0.2.2.25-alpha fixes many bugs: hidden service clients are more
15008   robust, routers no longer overreport their bandwidth, Win7 should crash
15009   a little less, and NEWNYM (as used by Vidalia's "new identity" button)
15010   now prevents hidden service-related activity from being linkable. It
15011   provides more information to Vidalia so you can see if your bridge is
15012   working. Also, 0.2.2.25-alpha revamps the Entry/Exit/ExcludeNodes and
15013   StrictNodes configuration options to make them more reliable, more
15014   understandable, and more regularly applied. If you use those options,
15015   please see the revised documentation for them in the manual page.
15017   o Major bugfixes:
15018     - Relays were publishing grossly inflated bandwidth values because
15019       they were writing their state files wrong--now they write the
15020       correct value. Also, resume reading bandwidth history from the
15021       state file correctly. Fixes bug 2704; bugfix on 0.2.2.23-alpha.
15022     - Improve hidden service robustness: When we find that we have
15023       extended a hidden service's introduction circuit to a relay not
15024       listed as an introduction point in the HS descriptor we currently
15025       have, retry with an introduction point from the current
15026       descriptor. Previously we would just give up. Fixes bugs 1024 and
15027       1930; bugfix on 0.2.0.10-alpha.
15028     - Clients now stop trying to use an exit node associated with a given
15029       destination by TrackHostExits if they fail to reach that exit node.
15030       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
15031     - Fix crash bug on platforms where gmtime and localtime can return
15032       NULL. Windows 7 users were running into this one. Fixes part of bug
15033       2077. Bugfix on all versions of Tor. Found by boboper.
15035   o Security and stability fixes:
15036     - Don't double-free a parsable, but invalid, microdescriptor, even if
15037       it is followed in the blob we're parsing by an unparsable
15038       microdescriptor. Fixes an issue reported in a comment on bug 2954.
15039       Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
15040     - If the Nickname configuration option isn't given, Tor would pick a
15041       nickname based on the local hostname as the nickname for a relay.
15042       Because nicknames are not very important in today's Tor and the
15043       "Unnamed" nickname has been implemented, this is now problematic
15044       behavior: It leaks information about the hostname without being
15045       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
15046       introduced the Unnamed nickname. Reported by tagnaq.
15047     - Fix an uncommon assertion failure when running with DNSPort under
15048       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
15049     - Avoid linkability based on cached hidden service descriptors: forget
15050       all hidden service descriptors cached as a client when processing a
15051       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
15053   o Major features:
15054     - Export GeoIP information on bridge usage to controllers even if we
15055       have not yet been running for 24 hours. Now Vidalia bridge operators
15056       can get more accurate and immediate feedback about their
15057       contributions to the network.
15059   o Major features and bugfixes (node selection):
15060     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
15061       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and StrictNodes
15062       options. Previously, we had been ambiguous in describing what
15063       counted as an "exit" node, and what operations exactly "StrictNodes
15064       0" would permit. This created confusion when people saw nodes built
15065       through unexpected circuits, and made it hard to tell real bugs from
15066       surprises. Now the intended behavior is:
15067         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
15068           a node that delivers user traffic outside the Tor network.
15069         . "Entry", in the context of EntryNodes, means a node used as the
15070           first hop of a multihop circuit. It doesn't include direct
15071           connections to directory servers.
15072         . "ExcludeNodes" applies to all nodes.
15073         . "StrictNodes" changes the behavior of ExcludeNodes only. When
15074           StrictNodes is set, Tor should avoid all nodes listed in
15075           ExcludeNodes, even when it will make user requests fail. When
15076           StrictNodes is *not* set, then Tor should follow ExcludeNodes
15077           whenever it can, except when it must use an excluded node to
15078           perform self-tests, connect to a hidden service, provide a
15079           hidden service, fulfill a .exit request, upload directory
15080           information, or fetch directory information.
15081       Collectively, the changes to implement the behavior fix bug 1090.
15082     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
15083       a node is listed in both, it's treated as excluded.
15084     - ExcludeNodes now applies to directory nodes -- as a preference if
15085       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
15086       Don't exclude all the directory authorities and set StrictNodes to 1
15087       unless you really want your Tor to break.
15088     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
15089     - ExcludeExitNodes now overrides .exit requests.
15090     - We don't use bridges listed in ExcludeNodes.
15091     - When StrictNodes is 1:
15092        . We now apply ExcludeNodes to hidden service introduction points
15093          and to rendezvous points selected by hidden service users. This
15094          can make your hidden service less reliable: use it with caution!
15095        . If we have used ExcludeNodes on ourself, do not try relay
15096          reachability self-tests.
15097        . If we have excluded all the directory authorities, we will not
15098          even try to upload our descriptor if we're a relay.
15099        . Do not honor .exit requests to an excluded node.
15100     - Remove a misfeature that caused us to ignore the Fast/Stable flags
15101       when ExitNodes is set. Bugfix on 0.2.2.7-alpha.
15102     - When the set of permitted nodes changes, we now remove any mappings
15103       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
15104       0.1.0.1-rc.
15105     - We never cannibalize a circuit that had excluded nodes on it, even
15106       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
15107     - Revert a change where we would be laxer about attaching streams to
15108       circuits than when building the circuits. This was meant to prevent
15109       a set of bugs where streams were never attachable, but our improved
15110       code here should make this unnecessary. Bugfix on 0.2.2.7-alpha.
15111     - Keep track of how many times we launch a new circuit to handle a
15112       given stream. Too many launches could indicate an inconsistency
15113       between our "launch a circuit to handle this stream" logic and our
15114       "attach this stream to one of the available circuits" logic.
15115     - Improve log messages related to excluded nodes.
15117   o Minor bugfixes:
15118     - Fix a spurious warning when moving from a short month to a long
15119       month on relays with month-based BandwidthAccounting. Bugfix on
15120       0.2.2.17-alpha; fixes bug 3020.
15121     - When a client finds that an origin circuit has run out of 16-bit
15122       stream IDs, we now mark it as unusable for new streams. Previously,
15123       we would try to close the entire circuit. Bugfix on 0.0.6.
15124     - Add a forgotten cast that caused a compile warning on OS X 10.6.
15125       Bugfix on 0.2.2.24-alpha.
15126     - Be more careful about reporting the correct error from a failed
15127       connect() system call. Under some circumstances, it was possible to
15128       look at an incorrect value for errno when sending the end reason.
15129       Bugfix on 0.1.0.1-rc.
15130     - Correctly handle an "impossible" overflow cases in connection byte
15131       counting, where we write or read more than 4GB on an edge connection
15132       in a single second. Bugfix on 0.1.2.8-beta.
15133     - Correct the warning displayed when a rendezvous descriptor exceeds
15134       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
15135       John Brooks.
15136     - Clients and hidden services now use HSDir-flagged relays for hidden
15137       service descriptor downloads and uploads even if the relays have no
15138       DirPort set and the client has disabled TunnelDirConns. This will
15139       eventually allow us to give the HSDir flag to relays with no
15140       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
15141     - Downgrade "no current certificates known for authority" message from
15142       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
15143     - Make the SIGNAL DUMP control-port command work on FreeBSD. Fixes bug
15144       2917. Bugfix on 0.1.1.1-alpha.
15145     - Only limit the lengths of single HS descriptors, even when multiple
15146       HS descriptors are published to an HSDir relay in a single POST
15147       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
15148     - Write the current time into the LastWritten line in our state file,
15149       rather than the time from the previous write attempt. Also, stop
15150       trying to use a time of -1 in our log statements. Fixes bug 3039;
15151       bugfix on 0.2.2.14-alpha.
15152     - Be more consistent in our treatment of file system paths. "~" should
15153       get expanded to the user's home directory in the Log config option.
15154       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
15155       feature for the -f and --DataDirectory options.
15157   o Minor features:
15158     - Make sure every relay writes a state file at least every 12 hours.
15159       Previously, a relay could go for weeks without writing its state
15160       file, and on a crash could lose its bandwidth history, capacity
15161       estimates, client country statistics, and so on. Addresses bug 3012.
15162     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
15163       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
15164       clients are already deprecated because of security bugs.
15165     - Don't allow v0 hidden service authorities to act as clients.
15166       Required by fix for bug 3000.
15167     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
15168       by fix for bug 3000.
15169     - Ensure that no empty [dirreq-](read|write)-history lines are added
15170       to an extrainfo document. Implements ticket 2497.
15172   o Code simplification and refactoring:
15173     - Remove workaround code to handle directory responses from servers
15174       that had bug 539 (they would send HTTP status 503 responses _and_
15175       send a body too). Since only server versions before
15176       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
15177       keep the workaround in place.
15178     - Remove the old 'fuzzy time' logic. It was supposed to be used for
15179       handling calculations where we have a known amount of clock skew and
15180       an allowed amount of unknown skew. But we only used it in three
15181       places, and we never adjusted the known/unknown skew values. This is
15182       still something we might want to do someday, but if we do, we'll
15183       want to do it differently.
15184     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
15185       None of the cases where we did this before were wrong, but by making
15186       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
15187     - Use GetTempDir to find the proper temporary directory location on
15188       Windows when generating temporary files for the unit tests. Patch by
15189       Gisle Vanem.
15192 Changes in version 0.2.2.24-alpha - 2011-04-08
15193   Tor 0.2.2.24-alpha fixes a variety of bugs, including a big bug that
15194   prevented Tor clients from effectively using "multihomed" bridges,
15195   that is, bridges that listen on multiple ports or IP addresses so users
15196   can continue to use some of their addresses even if others get blocked.
15198   o Major bugfixes:
15199     - Fix a bug where bridge users who configure the non-canonical
15200       address of a bridge automatically switch to its canonical
15201       address. If a bridge listens at more than one address, it should be
15202       able to advertise those addresses independently and any non-blocked
15203       addresses should continue to work. Bugfix on Tor 0.2.0.x. Fixes
15204       bug 2510.
15205     - If you configured Tor to use bridge A, and then quit and
15206       configured Tor to use bridge B instead, it would happily continue
15207       to use bridge A if it's still reachable. While this behavior is
15208       a feature if your goal is connectivity, in some scenarios it's a
15209       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
15210     - Directory authorities now use data collected from their own
15211       uptime observations when choosing whether to assign the HSDir flag
15212       to relays, instead of trusting the uptime value the relay reports in
15213       its descriptor. This change helps prevent an attack where a small
15214       set of nodes with frequently-changing identity keys can blackhole
15215       a hidden service. (Only authorities need upgrade; others will be
15216       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
15218   o Minor bugfixes:
15219     - When we restart our relay, we might get a successful connection
15220       from the outside before we've started our reachability tests,
15221       triggering a warning: "ORPort found reachable, but I have no
15222       routerinfo yet. Failing to inform controller of success." This
15223       bug was harmless unless Tor is running under a controller
15224       like Vidalia, in which case the controller would never get a
15225       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
15226       fixes bug 1172.
15227     - Make directory authorities more accurate at recording when
15228       relays that have failed several reachability tests became
15229       unreachable, so we can provide more accuracy at assigning Stable,
15230       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
15231     - Fix an issue that prevented static linking of libevent on
15232       some platforms (notably Linux). Fixes bug 2698; bugfix on
15233       versions 0.2.1.23/0.2.2.8-alpha (the versions introducing
15234       the --with-static-libevent configure option).
15235     - We now ask the other side of a stream (the client or the exit)
15236       for more data on that stream when the amount of queued data on
15237       that stream dips low enough. Previously, we wouldn't ask the
15238       other side for more data until either it sent us more data (which
15239       it wasn't supposed to do if it had exhausted its window!) or we
15240       had completely flushed all our queued data. This flow control fix
15241       should improve throughput. Fixes bug 2756; bugfix on the earliest
15242       released versions of Tor (svn commit r152).
15243     - Avoid a double-mark-for-free warning when failing to attach a
15244       transparent proxy connection. (We thought we had fixed this in
15245       0.2.2.23-alpha, but it turns out our fix was checking the wrong
15246       connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
15247       bug) and 0.2.2.23-alpha (the incorrect fix).
15248     - When warning about missing zlib development packages during compile,
15249       give the correct package names. Bugfix on 0.2.0.1-alpha.
15251   o Minor features:
15252     - Directory authorities now log the source of a rejected POSTed v3
15253       networkstatus vote.
15254     - Make compilation with clang possible when using
15255       --enable-gcc-warnings by removing two warning options that clang
15256       hasn't implemented yet and by fixing a few warnings. Implements
15257       ticket 2696.
15258     - When expiring circuits, use microsecond timers rather than
15259       one-second timers. This can avoid an unpleasant situation where a
15260       circuit is launched near the end of one second and expired right
15261       near the beginning of the next, and prevent fluctuations in circuit
15262       timeout values.
15263     - Use computed circuit-build timeouts to decide when to launch
15264       parallel introduction circuits for hidden services. (Previously,
15265       we would retry after 15 seconds.)
15266     - Update to the April 1 2011 Maxmind GeoLite Country database.
15268   o Packaging fixes:
15269     - Create the /var/run/tor directory on startup on OpenSUSE if it is
15270       not already created. Patch from Andreas Stieger. Fixes bug 2573.
15272   o Documentation changes:
15273     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
15274     - Resolve all doxygen warnings except those for missing documentation.
15275       Fixes bug 2705.
15276     - Add doxygen documentation for more functions, fields, and types.
15279 Changes in version 0.2.2.23-alpha - 2011-03-08
15280   Tor 0.2.2.23-alpha lets relays record their bandwidth history so when
15281   they restart they don't lose their bandwidth capacity estimate. This
15282   release also fixes a diverse set of user-facing bugs, ranging from
15283   relays overrunning their rate limiting to clients falsely warning about
15284   clock skew to bridge descriptor leaks by our bridge directory authority.
15286   o Major bugfixes:
15287     - Stop sending a CLOCK_SKEW controller status event whenever
15288       we fetch directory information from a relay that has a wrong clock.
15289       Instead, only inform the controller when it's a trusted authority
15290       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
15291       the rest of bug 1074.
15292     - Fix an assert in parsing router descriptors containing IPv6
15293       addresses. This one took down the directory authorities when
15294       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
15295     - Make the bridge directory authority refuse to answer directory
15296       requests for "all" descriptors. It used to include bridge
15297       descriptors in its answer, which was a major information leak.
15298       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
15299     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
15300       Tor would ignore their RelayBandwidthBurst setting,
15301       potentially using more bandwidth than expected. Bugfix on
15302       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
15303     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
15304       hidserv" in her torrc. The 'hidserv' argument never controlled
15305       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
15307   o Major features:
15308     - Relays now save observed peak bandwidth throughput rates to their
15309       state file (along with total usage, which was already saved)
15310       so that they can determine their correct estimated bandwidth on
15311       restart. Resolves bug 1863, where Tor relays would reset their
15312       estimated bandwidth to 0 after restarting.
15313     - Directory authorities now take changes in router IP address and
15314       ORPort into account when determining router stability. Previously,
15315       if a router changed its IP or ORPort, the authorities would not
15316       treat it as having any downtime for the purposes of stability
15317       calculation, whereas clients would experience downtime since the
15318       change could take a while to propagate to them. Resolves issue 1035.
15319     - Enable Address Space Layout Randomization (ASLR) and Data Execution
15320       Prevention (DEP) by default on Windows to make it harder for
15321       attackers to exploit vulnerabilities. Patch from John Brooks.
15323   o Minor bugfixes (on 0.2.1.x and earlier):
15324     - Fix a rare crash bug that could occur when a client was configured
15325       with a large number of bridges. Fixes bug 2629; bugfix on
15326       0.2.1.2-alpha. Bugfix by trac user "shitlei".
15327     - Avoid a double mark-for-free warning when failing to attach a
15328       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
15329       bug 2279.
15330     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
15331       found by "cypherpunks". This bug was introduced before the first
15332       Tor release, in svn commit r110.
15333     - Country codes aren't supported in EntryNodes until 0.2.3.x, so
15334       don't mention them in the manpage. Fixes bug 2450; issue
15335       spotted by keb and G-Lo.
15336     - Fix a bug in bandwidth history state parsing that could have been
15337       triggered if a future version of Tor ever changed the timing
15338       granularity at which bandwidth history is measured. Bugfix on
15339       Tor 0.1.1.11-alpha.
15340     - When a relay decides that its DNS is too broken for it to serve
15341       as an exit server, it advertised itself as a non-exit, but
15342       continued to act as an exit. This could create accidental
15343       partitioning opportunities for users. Instead, if a relay is
15344       going to advertise reject *:* as its exit policy, it should
15345       really act with exit policy "reject *:*". Fixes bug 2366.
15346       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
15347     - In the special case where you configure a public exit relay as your
15348       bridge, Tor would be willing to use that exit relay as the last
15349       hop in your circuit as well. Now we fail that circuit instead.
15350       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
15351     - Fix a bug with our locking implementation on Windows that couldn't
15352       correctly detect when a file was already locked. Fixes bug 2504,
15353       bugfix on 0.2.1.6-alpha.
15354     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
15355       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
15356       "piebeer".
15357     - Set target port in get_interface_address6() correctly. Bugfix
15358       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
15359     - Directory authorities are now more robust to hops back in time
15360       when calculating router stability. Previously, if a run of uptime
15361       or downtime appeared to be negative, the calculation could give
15362       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
15363       bug 1035.
15364     - Fix an assert that got triggered when using the TestingTorNetwork
15365       configuration option and then issuing a GETINFO config-text control
15366       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
15368   o Minor bugfixes (on 0.2.2.x):
15369     - Clients should not weight BadExit nodes as Exits in their node
15370       selection. Similarly, directory authorities should not count BadExit
15371       bandwidth as Exit bandwidth when computing bandwidth-weights.
15372       Bugfix on 0.2.2.10-alpha; fixes bug 2203.
15373     - Correctly clear our dir_read/dir_write history when there is an
15374       error parsing any bw history value from the state file. Bugfix on
15375       Tor 0.2.2.15-alpha.
15376     - Resolve a bug in verifying signatures of directory objects
15377       with digests longer than SHA1. Bugfix on 0.2.2.20-alpha.
15378       Fixes bug 2409. Found by "piebeer".
15379     - Bridge authorities no longer crash on SIGHUP when they try to
15380       publish their relay descriptor to themselves. Fixes bug 2572. Bugfix
15381       on 0.2.2.22-alpha.
15383   o Minor features:
15384     - Log less aggressively about circuit timeout changes, and improve
15385       some other circuit timeout messages. Resolves bug 2004.
15386     - Log a little more clearly about the times at which we're no longer
15387       accepting new connections. Resolves bug 2181.
15388     - Reject attempts at the client side to open connections to private
15389       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
15390       a randomly chosen exit node. Attempts to do so are always
15391       ill-defined, generally prevented by exit policies, and usually
15392       in error. This will also help to detect loops in transparent
15393       proxy configurations. You can disable this feature by setting
15394       "ClientRejectInternalAddresses 0" in your torrc.
15395     - Always treat failure to allocate an RSA key as an unrecoverable
15396       allocation error.
15397     - Update to the March 1 2011 Maxmind GeoLite Country database.
15399   o Minor features (log subsystem):
15400     - Add documentation for configuring logging at different severities in
15401       different log domains. We've had this feature since 0.2.1.1-alpha,
15402       but for some reason it never made it into the manpage. Fixes
15403       bug 2215.
15404     - Make it simpler to specify "All log domains except for A and B".
15405       Previously you needed to say "[*,~A,~B]". Now you can just say
15406       "[~A,~B]".
15407     - Add a "LogMessageDomains 1" option to include the domains of log
15408       messages along with the messages. Without this, there's no way
15409       to use log domains without reading the source or doing a lot
15410       of guessing.
15412   o Packaging changes:
15413     - Stop shipping the Tor specs files and development proposal documents
15414       in the tarball. They are now in a separate git repository at
15415       git://git.torproject.org/torspec.git
15418 Changes in version 0.2.1.30 - 2011-02-23
15419   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
15420   change is a slight tweak to Tor's TLS handshake that makes relays
15421   and bridges that run this new version reachable from Iran again.
15422   We don't expect this tweak will win the arms race long-term, but it
15423   buys us time until we roll out a better solution.
15425   o Major bugfixes:
15426     - Stop sending a CLOCK_SKEW controller status event whenever
15427       we fetch directory information from a relay that has a wrong clock.
15428       Instead, only inform the controller when it's a trusted authority
15429       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
15430       the rest of bug 1074.
15431     - Fix a bounds-checking error that could allow an attacker to
15432       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
15433       Found by "piebeer".
15434     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
15435       Tor would ignore their RelayBandwidthBurst setting,
15436       potentially using more bandwidth than expected. Bugfix on
15437       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
15438     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
15439       hidserv" in her torrc. The 'hidserv' argument never controlled
15440       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
15442   o Minor features:
15443     - Adjust our TLS Diffie-Hellman parameters to match those used by
15444       Apache's mod_ssl.
15445     - Update to the February 1 2011 Maxmind GeoLite Country database.
15447   o Minor bugfixes:
15448     - Check for and reject overly long directory certificates and
15449       directory tokens before they have a chance to hit any assertions.
15450       Bugfix on 0.2.1.28. Found by "doorss".
15451     - Bring the logic that gathers routerinfos and assesses the
15452       acceptability of circuits into line. This prevents a Tor OP from
15453       getting locked in a cycle of choosing its local OR as an exit for a
15454       path (due to a .exit request) and then rejecting the circuit because
15455       its OR is not listed yet. It also prevents Tor clients from using an
15456       OR running in the same instance as an exit (due to a .exit request)
15457       if the OR does not meet the same requirements expected of an OR
15458       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
15460   o Packaging changes:
15461     - Stop shipping the Tor specs files and development proposal documents
15462       in the tarball. They are now in a separate git repository at
15463       git://git.torproject.org/torspec.git
15464     - Do not include Git version tags as though they are SVN tags when
15465       generating a tarball from inside a repository that has switched
15466       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
15469 Changes in version 0.2.2.22-alpha - 2011-01-25
15470   Tor 0.2.2.22-alpha fixes a few more less-critical security issues. The
15471   main other change is a slight tweak to Tor's TLS handshake that makes
15472   relays and bridges that run this new version reachable from Iran again.
15473   We don't expect this tweak will win the arms race long-term, but it
15474   will buy us a bit more time until we roll out a better solution.
15476   o Major bugfixes:
15477     - Fix a bounds-checking error that could allow an attacker to
15478       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
15479       Found by "piebeer".
15480     - Don't assert when changing from bridge to relay or vice versa
15481       via the controller. The assert happened because we didn't properly
15482       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
15483       bug 2433. Reported by bastik.
15485   o Minor features:
15486     - Adjust our TLS Diffie-Hellman parameters to match those used by
15487       Apache's mod_ssl.
15488     - Provide a log message stating which geoip file we're parsing
15489       instead of just stating that we're parsing the geoip file.
15490       Implements ticket 2432.
15492   o Minor bugfixes:
15493     - Check for and reject overly long directory certificates and
15494       directory tokens before they have a chance to hit any assertions.
15495       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
15498 Changes in version 0.2.2.21-alpha - 2011-01-15
15499   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
15500   continues our recent code security audit work. The main fix resolves
15501   a remote heap overflow vulnerability that can allow remote code
15502   execution (CVE-2011-0427). Other fixes address a variety of assert
15503   and crash bugs, most of which we think are hard to exploit remotely.
15505   o Major bugfixes (security), also included in 0.2.1.29:
15506     - Fix a heap overflow bug where an adversary could cause heap
15507       corruption. This bug probably allows remote code execution
15508       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
15509       0.1.2.10-rc.
15510     - Prevent a denial-of-service attack by disallowing any
15511       zlib-compressed data whose compression factor is implausibly
15512       high. Fixes part of bug 2324; reported by "doorss".
15513     - Zero out a few more keys in memory before freeing them. Fixes
15514       bug 2384 and part of bug 2385. These key instances found by
15515       "cypherpunks", based on Andrew Case's report about being able
15516       to find sensitive data in Tor's memory space if you have enough
15517       permissions. Bugfix on 0.0.2pre9.
15519   o Major bugfixes (crashes), also included in 0.2.1.29:
15520     - Prevent calls to Libevent from inside Libevent log handlers.
15521       This had potential to cause a nasty set of crashes, especially
15522       if running Libevent with debug logging enabled, and running
15523       Tor with a controller watching for low-severity log messages.
15524       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
15525     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
15526       underflow errors there too. Fixes the other part of bug 2324.
15527     - Fix a bug where we would assert if we ever had a
15528       cached-descriptors.new file (or another file read directly into
15529       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
15530       on 0.2.1.25. Found by doorss.
15531     - Fix some potential asserts and parsing issues with grossly
15532       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
15533       Found by doorss.
15535   o Minor bugfixes (other), also included in 0.2.1.29:
15536     - Fix a bug with handling misformed replies to reverse DNS lookup
15537       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
15538       bug reported by doorss.
15539     - Fix compilation on mingw when a pthreads compatibility library
15540       has been installed. (We don't want to use it, so we shouldn't
15541       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
15542     - Fix a bug where we would declare that we had run out of virtual
15543       addresses when the address space was only half-exhausted. Bugfix
15544       on 0.1.2.1-alpha.
15545     - Correctly handle the case where AutomapHostsOnResolve is set but
15546       no virtual addresses are available. Fixes bug 2328; bugfix on
15547       0.1.2.1-alpha. Bug found by doorss.
15548     - Correctly handle wrapping around when we run out of virtual
15549       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
15551   o Minor features, also included in 0.2.1.29:
15552     - Update to the January 1 2011 Maxmind GeoLite Country database.
15553     - Introduce output size checks on all of our decryption functions.
15555   o Build changes, also included in 0.2.1.29:
15556     - Tor does not build packages correctly with Automake 1.6 and earlier;
15557       added a check to Makefile.am to make sure that we're building with
15558       Automake 1.7 or later.
15559     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
15560       because we built it with a too-old version of automake. Thus that
15561       release broke ./configure --enable-openbsd-malloc, which is popular
15562       among really fast exit relays on Linux.
15564   o Major bugfixes, new in 0.2.2.21-alpha:
15565     - Prevent crash/heap corruption when the cbtnummodes consensus
15566       parameter is set to 0 or large values. Fixes bug 2317; bugfix
15567       on 0.2.2.14-alpha.
15569   o Major features, new in 0.2.2.21-alpha:
15570     - Introduce minimum/maximum values that clients will believe
15571       from the consensus. Now we'll have a better chance to avoid crashes
15572       or worse when a consensus param has a weird value.
15574   o Minor features, new in 0.2.2.21-alpha:
15575     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
15576       used on bridges, and it makes bridge scanning somewhat easier.
15577     - If writing the state file to disk fails, wait up to an hour before
15578       retrying again, rather than trying again each second. Fixes bug
15579       2346; bugfix on Tor 0.1.1.3-alpha.
15580     - Make Libevent log messages get delivered to controllers later,
15581       and not from inside the Libevent log handler. This prevents unsafe
15582       reentrant Libevent calls while still letting the log messages
15583       get through.
15584     - Detect platforms that brokenly use a signed size_t, and refuse to
15585       build there. Found and analyzed by doorss and rransom.
15586     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
15587       Resolves bug 2314.
15589   o Minor bugfixes, new in 0.2.2.21-alpha:
15590     - Handle SOCKS messages longer than 128 bytes long correctly, rather
15591       than waiting forever for them to finish. Fixes bug 2330; bugfix
15592       on 0.2.0.16-alpha. Found by doorss.
15593     - Add assertions to check for overflow in arguments to
15594       base32_encode() and base32_decode(); fix a signed-unsigned
15595       comparison there too. These bugs are not actually reachable in Tor,
15596       but it's good to prevent future errors too. Found by doorss.
15597     - Correctly detect failures to create DNS requests when using Libevent
15598       versions before v2. (Before Libevent 2, we used our own evdns
15599       implementation. Its return values for Libevent's evdns_resolve_*()
15600       functions are not consistent with those from Libevent.) Fixes bug
15601       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
15603   o Documentation, new in 0.2.2.21-alpha:
15604     - Document the default socks host and port (127.0.0.1:9050) for
15605       tor-resolve.
15608 Changes in version 0.2.1.29 - 2011-01-15
15609   Tor 0.2.1.29 continues our recent code security audit work. The main
15610   fix resolves a remote heap overflow vulnerability that can allow remote
15611   code execution. Other fixes address a variety of assert and crash bugs,
15612   most of which we think are hard to exploit remotely.
15614   o Major bugfixes (security):
15615     - Fix a heap overflow bug where an adversary could cause heap
15616       corruption. This bug probably allows remote code execution
15617       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
15618       0.1.2.10-rc.
15619     - Prevent a denial-of-service attack by disallowing any
15620       zlib-compressed data whose compression factor is implausibly
15621       high. Fixes part of bug 2324; reported by "doorss".
15622     - Zero out a few more keys in memory before freeing them. Fixes
15623       bug 2384 and part of bug 2385. These key instances found by
15624       "cypherpunks", based on Andrew Case's report about being able
15625       to find sensitive data in Tor's memory space if you have enough
15626       permissions. Bugfix on 0.0.2pre9.
15628   o Major bugfixes (crashes):
15629     - Prevent calls to Libevent from inside Libevent log handlers.
15630       This had potential to cause a nasty set of crashes, especially
15631       if running Libevent with debug logging enabled, and running
15632       Tor with a controller watching for low-severity log messages.
15633       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
15634     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
15635       underflow errors there too. Fixes the other part of bug 2324.
15636     - Fix a bug where we would assert if we ever had a
15637       cached-descriptors.new file (or another file read directly into
15638       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
15639       on 0.2.1.25. Found by doorss.
15640     - Fix some potential asserts and parsing issues with grossly
15641       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
15642       Found by doorss.
15644   o Minor bugfixes (other):
15645     - Fix a bug with handling misformed replies to reverse DNS lookup
15646       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
15647       bug reported by doorss.
15648     - Fix compilation on mingw when a pthreads compatibility library
15649       has been installed. (We don't want to use it, so we shouldn't
15650       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
15651     - Fix a bug where we would declare that we had run out of virtual
15652       addresses when the address space was only half-exhausted. Bugfix
15653       on 0.1.2.1-alpha.
15654     - Correctly handle the case where AutomapHostsOnResolve is set but
15655       no virtual addresses are available. Fixes bug 2328; bugfix on
15656       0.1.2.1-alpha. Bug found by doorss.
15657     - Correctly handle wrapping around to when we run out of virtual
15658       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
15659     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
15660       because we built it with a too-old version of automake. Thus that
15661       release broke ./configure --enable-openbsd-malloc, which is popular
15662       among really fast exit relays on Linux.
15664   o Minor features:
15665     - Update to the January 1 2011 Maxmind GeoLite Country database.
15666     - Introduce output size checks on all of our decryption functions.
15668   o Build changes:
15669     - Tor does not build packages correctly with Automake 1.6 and earlier;
15670       added a check to Makefile.am to make sure that we're building with
15671       Automake 1.7 or later.
15674 Changes in version 0.2.2.20-alpha - 2010-12-17
15675   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
15676   exploitable bugs. We also fix a variety of other significant bugs,
15677   change the IP address for one of our directory authorities, and update
15678   the minimum version that Tor relays must run to join the network.
15680   o Major bugfixes:
15681     - Fix a remotely exploitable bug that could be used to crash instances
15682       of Tor remotely by overflowing on the heap. Remote-code execution
15683       hasn't been confirmed, but can't be ruled out. Everyone should
15684       upgrade. Bugfix on the 0.1.1 series and later.
15685     - Fix a bug that could break accounting on 64-bit systems with large
15686       time_t values, making them hibernate for impossibly long intervals.
15687       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
15688     - Fix a logic error in directory_fetches_from_authorities() that
15689       would cause all _non_-exits refusing single-hop-like circuits
15690       to fetch from authorities, when we wanted to have _exits_ fetch
15691       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
15692       fix by boboper.
15693     - Fix a stream fairness bug that would cause newer streams on a given
15694       circuit to get preference when reading bytes from the origin or
15695       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
15696       introduced before the first Tor release, in svn revision r152.
15698   o Directory authority changes:
15699     - Change IP address and ports for gabelmoo (v3 directory authority).
15701   o Minor bugfixes:
15702     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
15703       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
15704     - Fix an off-by-one error in calculating some controller command
15705       argument lengths. Fortunately, this mistake is harmless since
15706       the controller code does redundant NUL termination too. Found by
15707       boboper. Bugfix on 0.1.1.1-alpha.
15708     - Do not dereference NULL if a bridge fails to build its
15709       extra-info descriptor. Found by an anonymous commenter on
15710       Trac. Bugfix on 0.2.2.19-alpha.
15712   o Minor features:
15713     - Update to the December 1 2010 Maxmind GeoLite Country database.
15714     - Directory authorities now reject relays running any versions of
15715       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
15716       known bugs that keep RELAY_EARLY cells from working on rendezvous
15717       circuits. Followup to fix for bug 2081.
15718     - Directory authorities now reject relays running any version of Tor
15719       older than 0.2.0.26-rc. That version is the earliest that fetches
15720       current directory information correctly. Fixes bug 2156.
15721     - Report only the top 10 ports in exit-port stats in order not to
15722       exceed the maximum extra-info descriptor length of 50 KB. Implements
15723       task 2196.
15726 Changes in version 0.2.1.28 - 2010-12-17
15727   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
15728   exploitable bugs. We also took this opportunity to change the IP address
15729   for one of our directory authorities, and to update the geoip database
15730   we ship.
15732   o Major bugfixes:
15733     - Fix a remotely exploitable bug that could be used to crash instances
15734       of Tor remotely by overflowing on the heap. Remote-code execution
15735       hasn't been confirmed, but can't be ruled out. Everyone should
15736       upgrade. Bugfix on the 0.1.1 series and later.
15738   o Directory authority changes:
15739     - Change IP address and ports for gabelmoo (v3 directory authority).
15741   o Minor features:
15742     - Update to the December 1 2010 Maxmind GeoLite Country database.
15745 Changes in version 0.2.1.27 - 2010-11-23
15746   Yet another OpenSSL security patch broke its compatibility with Tor:
15747   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
15748   also took this opportunity to fix several crash bugs, integrate a new
15749   directory authority, and update the bundled GeoIP database.
15751   o Major bugfixes:
15752     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
15753       No longer set the tlsext_host_name extension on server SSL objects;
15754       but continue to set it on client SSL objects. Our goal in setting
15755       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
15756       bugfix on 0.2.1.1-alpha.
15757     - Do not log messages to the controller while shrinking buffer
15758       freelists. Doing so would sometimes make the controller connection
15759       try to allocate a buffer chunk, which would mess up the internals
15760       of the freelist and cause an assertion failure. Fixes bug 1125;
15761       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
15762     - Learn our external IP address when we're a relay or bridge, even if
15763       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
15764       where we introduced bridge relays that don't need to publish to
15765       be useful. Fixes bug 2050.
15766     - Do even more to reject (and not just ignore) annotations on
15767       router descriptors received anywhere but from the cache. Previously
15768       we would ignore such annotations at first, but cache them to disk
15769       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
15770     - When you're using bridges and your network goes away and your
15771       bridges get marked as down, recover when you attempt a new socks
15772       connection (if the network is back), rather than waiting up to an
15773       hour to try fetching new descriptors for your bridges. Bugfix on
15774       0.2.0.3-alpha; fixes bug 1981.
15776   o Major features:
15777     - Move to the November 2010 Maxmind GeoLite country db (rather
15778       than the June 2009 ip-to-country GeoIP db) for our statistics that
15779       count how many users relays are seeing from each country. Now we'll
15780       have more accurate data, especially for many African countries.
15782   o New directory authorities:
15783     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
15784       authority.
15786   o Minor bugfixes:
15787     - Fix an assertion failure that could occur in directory caches or
15788       bridge users when using a very short voting interval on a testing
15789       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
15790       0.2.0.8-alpha.
15791     - Enforce multiplicity rules when parsing annotations. Bugfix on
15792       0.2.0.8-alpha. Found by piebeer.
15793     - Allow handshaking OR connections to take a full KeepalivePeriod
15794       seconds to handshake. Previously, we would close them after
15795       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
15796       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
15797       for analysis help.
15798     - When building with --enable-gcc-warnings on OpenBSD, disable
15799       warnings in system headers. This makes --enable-gcc-warnings
15800       pass on OpenBSD 4.8.
15802   o Minor features:
15803     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
15804       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
15805       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
15806       Servers can start sending this code when enough clients recognize
15807       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
15808     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
15809       Patch from mingw-san.
15811   o Removed files:
15812     - Remove the old debian/ directory from the main Tor distribution.
15813       The official Tor-for-debian git repository lives at the URL
15814       https://git.torproject.org/debian/tor.git
15815     - Stop shipping the old doc/website/ directory in the tarball. We
15816       changed the website format in late 2010, and what we shipped in
15817       0.2.1.26 really wasn't that useful anyway.
15820 Changes in version 0.2.2.19-alpha - 2010-11-22
15821   Yet another OpenSSL security patch broke its compatibility with Tor:
15822   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
15824   o Major bugfixes:
15825     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
15826       No longer set the tlsext_host_name extension on server SSL objects;
15827       but continue to set it on client SSL objects. Our goal in setting
15828       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
15829       bugfix on 0.2.1.1-alpha.
15831   o Minor bugfixes:
15832     - Try harder not to exceed the maximum length of 50 KB when writing
15833       statistics to extra-info descriptors. This bug was triggered by very
15834       fast relays reporting exit-port, entry, and dirreq statistics.
15835       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
15836     - Publish a router descriptor even if generating an extra-info
15837       descriptor fails. Previously we would not publish a router
15838       descriptor without an extra-info descriptor; this can cause fast
15839       exit relays collecting exit-port statistics to drop from the
15840       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
15843 Changes in version 0.2.2.18-alpha - 2010-11-16
15844   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
15845   us lately, makes unpublished bridge relays able to detect their IP
15846   address, and fixes a wide variety of other bugs to get us much closer
15847   to a stable release.
15849   o Major bugfixes:
15850     - Do even more to reject (and not just ignore) annotations on
15851       router descriptors received anywhere but from the cache. Previously
15852       we would ignore such annotations at first, but cache them to disk
15853       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
15854     - Do not log messages to the controller while shrinking buffer
15855       freelists. Doing so would sometimes make the controller connection
15856       try to allocate a buffer chunk, which would mess up the internals
15857       of the freelist and cause an assertion failure. Fixes bug 1125;
15858       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
15859     - Learn our external IP address when we're a relay or bridge, even if
15860       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
15861       where we introduced bridge relays that don't need to publish to
15862       be useful. Fixes bug 2050.
15863     - Maintain separate TLS contexts and certificates for incoming and
15864       outgoing connections in bridge relays. Previously we would use the
15865       same TLS contexts and certs for incoming and outgoing connections.
15866       Bugfix on 0.2.0.3-alpha; addresses bug 988.
15867     - Maintain separate identity keys for incoming and outgoing TLS
15868       contexts in bridge relays. Previously we would use the same
15869       identity keys for incoming and outgoing TLS contexts. Bugfix on
15870       0.2.0.3-alpha; addresses the other half of bug 988.
15871     - Avoid an assertion failure when we as an authority receive a
15872       duplicate upload of a router descriptor that we already have,
15873       but which we previously considered an obsolete descriptor.
15874       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
15875     - Avoid a crash bug triggered by looking at a dangling pointer while
15876       setting the network status consensus. Found by Robert Ransom.
15877       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
15878     - Fix a logic error where servers that _didn't_ act as exits would
15879       try to keep their server lists more aggressively up to date than
15880       exits, when it was supposed to be the other way around. Bugfix
15881       on 0.2.2.17-alpha.
15883   o Minor bugfixes (on Tor 0.2.1.x and earlier):
15884     - When we're trying to guess whether we know our IP address as
15885       a relay, we would log various ways that we failed to guess
15886       our address, but never log that we ended up guessing it
15887       successfully. Now add a log line to help confused and anxious
15888       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
15889     - Bring the logic that gathers routerinfos and assesses the
15890       acceptability of circuits into line. This prevents a Tor OP from
15891       getting locked in a cycle of choosing its local OR as an exit for a
15892       path (due to a .exit request) and then rejecting the circuit because
15893       its OR is not listed yet. It also prevents Tor clients from using an
15894       OR running in the same instance as an exit (due to a .exit request)
15895       if the OR does not meet the same requirements expected of an OR
15896       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
15897     - Correctly describe errors that occur when generating a TLS object.
15898       Previously we would attribute them to a failure while generating a
15899       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
15900       bug 1994.
15901     - Enforce multiplicity rules when parsing annotations. Bugfix on
15902       0.2.0.8-alpha. Found by piebeer.
15903     - Fix warnings that newer versions of autoconf produced during
15904       ./autogen.sh. These warnings appear to be harmless in our case,
15905       but they were extremely verbose. Fixes bug 2020.
15907   o Minor bugfixes (on Tor 0.2.2.x):
15908     - Enable protection of small arrays whenever we build with gcc
15909       hardening features, not only when also building with warnings
15910       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
15912   o Minor features:
15913     - Make hidden services work better in private Tor networks by not
15914       requiring any uptime to join the hidden service descriptor
15915       DHT. Implements ticket 2088.
15916     - Rate-limit the "your application is giving Tor only an IP address"
15917       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
15918     - When AllowSingleHopExits is set, print a warning to explain to the
15919       relay operator why most clients are avoiding her relay.
15920     - Update to the November 1 2010 Maxmind GeoLite Country database.
15922   o Code simplifications and refactoring:
15923     - When we fixed bug 1038 we had to put in a restriction not to send
15924       RELAY_EARLY cells on rend circuits. This was necessary as long
15925       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
15926       active. Now remove this obsolete check. Resolves bug 2081.
15927     - Some options used different conventions for uppercasing of acronyms
15928       when comparing manpage and source. Fix those in favor of the
15929       manpage, as it makes sense to capitalize acronyms.
15930     - Remove the torrc.complete file. It hasn't been kept up to date
15931       and users will have better luck checking out the manpage.
15932     - Remove the obsolete "NoPublish" option; it has been flagged
15933       as obsolete and has produced a warning since 0.1.1.18-rc.
15934     - Remove everything related to building the expert bundle for OS X.
15935       It has confused many users, doesn't work right on OS X 10.6,
15936       and is hard to get rid of once installed. Resolves bug 1274.
15939 Changes in version 0.2.2.17-alpha - 2010-09-30
15940   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
15941   to use one-hop circuits (which can put the exit relays at higher risk,
15942   plus unbalance the network); fixes a big bug in bandwidth accounting
15943   for relays that want to limit their monthly bandwidth use; fixes a
15944   big pile of bugs in how clients tolerate temporary network failure;
15945   and makes our adaptive circuit build timeout feature (which improves
15946   client performance if your network is fast while not breaking things
15947   if your network is slow) better handle bad networks.
15949   o Major features:
15950     - Exit relays now try harder to block exit attempts from unknown
15951       relays, to make it harder for people to use them as one-hop proxies
15952       a la tortunnel. Controlled by the refuseunknownexits consensus
15953       parameter (currently enabled), or you can override it on your
15954       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
15956   o Major bugfixes (0.2.1.x and earlier):
15957     - Fix a bug in bandwidth accounting that could make us use twice
15958       the intended bandwidth when our interval start changes due to
15959       daylight saving time. Now we tolerate skew in stored vs computed
15960       interval starts: if the start of the period changes by no more than
15961       50% of the period's duration, we remember bytes that we transferred
15962       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
15963     - Always search the Windows system directory for system DLLs, and
15964       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
15965     - When you're using bridges and your network goes away and your
15966       bridges get marked as down, recover when you attempt a new socks
15967       connection (if the network is back), rather than waiting up to an
15968       hour to try fetching new descriptors for your bridges. Bugfix on
15969       0.2.0.3-alpha; fixes bug 1981.
15971   o Major bugfixes (on 0.2.2.x):
15972     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
15973       bug 1797.
15974     - Fix a segfault that could happen when operating a bridge relay with
15975       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
15976     - The consensus bandwidth-weights (used by clients to choose fast
15977       relays) entered an unexpected edge case in September where
15978       Exits were much scarcer than Guards, resulting in bad weight
15979       recommendations. Now we compute them using new constraints that
15980       should succeed in all cases. Also alter directory authorities to
15981       not include the bandwidth-weights line if they fail to produce
15982       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
15983     - When weighting bridges during path selection, we used to trust
15984       the bandwidths they provided in their descriptor, only capping them
15985       at 10MB/s. This turned out to be problematic for two reasons:
15986       Bridges could claim to handle a lot more traffic then they
15987       actually would, thus making more clients pick them and have a
15988       pretty effective DoS attack. The other issue is that new bridges
15989       that might not have a good estimate for their bw capacity yet
15990       would not get used at all unless no other bridges are available
15991       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
15993   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
15994     - Ignore cannibalized circuits when recording circuit build times.
15995       This should provide for a minor performance improvement for hidden
15996       service users using 0.2.2.14-alpha, and should remove two spurious
15997       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
15998     - Simplify the logic that causes us to decide if the network is
15999       unavailable for purposes of recording circuit build times. If we
16000       receive no cells whatsoever for the entire duration of a circuit's
16001       full measured lifetime, the network is probably down. Also ignore
16002       one-hop directory fetching circuit timeouts when calculating our
16003       circuit build times. These changes should hopefully reduce the
16004       cases where we see ridiculous circuit build timeouts for people
16005       with spotty wireless connections. Fixes part of bug 1772; bugfix
16006       on 0.2.2.2-alpha.
16007     - Prevent the circuit build timeout from becoming larger than
16008       the maximum build time we have ever seen. Also, prevent the time
16009       period for measurement circuits from becoming larger than twice that
16010       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
16012   o Minor features:
16013     - When we run out of directory information such that we can't build
16014       circuits, but then get enough that we can build circuits, log when
16015       we actually construct a circuit, so the user has a better chance of
16016       knowing what's going on. Fixes bug 1362.
16017     - Be more generous with how much bandwidth we'd use up (with
16018       accounting enabled) before entering "soft hibernation". Previously,
16019       we'd refuse new connections and circuits once we'd used up 95% of
16020       our allotment. Now, we use up 95% of our allotment, AND make sure
16021       that we have no more than 500MB (or 3 hours of expected traffic,
16022       whichever is lower) remaining before we enter soft hibernation.
16023     - If we've configured EntryNodes and our network goes away and/or all
16024       our entrynodes get marked down, optimistically retry them all when
16025       a new socks application request appears. Fixes bug 1882.
16026     - Add some more defensive programming for architectures that can't
16027       handle unaligned integer accesses. We don't know of any actual bugs
16028       right now, but that's the best time to fix them. Fixes bug 1943.
16029     - Support line continuations in the torrc config file. If a line
16030       ends with a single backslash character, the newline is ignored, and
16031       the configuration value is treated as continuing on the next line.
16032       Resolves bug 1929.
16034   o Minor bugfixes (on 0.2.1.x and earlier):
16035     - For bandwidth accounting, calculate our expected bandwidth rate
16036       based on the time during which we were active and not in
16037       soft-hibernation during the last interval. Previously, we were
16038       also considering the time spent in soft-hibernation. If this
16039       was a long time, we would wind up underestimating our bandwidth
16040       by a lot, and skewing our wakeup time towards the start of the
16041       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
16043   o Minor bugfixes (on 0.2.2.x):
16044     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
16045       which were disabled by the circuit build timeout changes in
16046       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
16047     - Make sure we don't warn about missing bandwidth weights when
16048       choosing bridges or other relays not in the consensus. Bugfix on
16049       0.2.2.10-alpha; fixes bug 1805.
16050     - In our logs, do not double-report signatures from unrecognized
16051       authorities both as "from unknown authority" and "not
16052       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
16055 Changes in version 0.2.2.16-alpha - 2010-09-17
16056   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
16057   evident at exit relays), and also continues to resolve all the little
16058   bugs that have been filling up trac lately.
16060   o Major bugfixes (stream-level fairness):
16061     - When receiving a circuit-level SENDME for a blocked circuit, try
16062       to package cells fairly from all the streams that had previously
16063       been blocked on that circuit. Previously, we had started with the
16064       oldest stream, and allowed each stream to potentially exhaust
16065       the circuit's package window. This gave older streams on any
16066       given circuit priority over newer ones. Fixes bug 1937. Detected
16067       originally by Camilo Viecco. This bug was introduced before the
16068       first Tor release, in svn commit r152: it is the new winner of
16069       the longest-lived bug prize.
16070     - When the exit relay got a circuit-level sendme cell, it started
16071       reading on the exit streams, even if had 500 cells queued in the
16072       circuit queue already, so the circuit queue just grew and grew in
16073       some cases. We fix this by not re-enabling reading on receipt of a
16074       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
16075       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
16076       "yetonetime".
16077     - Newly created streams were allowed to read cells onto circuits,
16078       even if the circuit's cell queue was blocked and waiting to drain.
16079       This created potential unfairness, as older streams would be
16080       blocked, but newer streams would gladly fill the queue completely.
16081       We add code to detect this situation and prevent any stream from
16082       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
16083       fixes bug 1298.
16085   o Minor features:
16086     - Update to the September 1 2010 Maxmind GeoLite Country database.
16087     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
16088       not. This would lead to a cookie that is still not group readable.
16089       Closes bug 1843. Suggested by katmagic.
16090     - When logging a rate-limited warning, we now mention how many messages
16091       got suppressed since the last warning.
16092     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
16093       do individual connection-level rate limiting of clients. The torrc
16094       config options with the same names trump the consensus params, if
16095       both are present. Replaces the old "bwconnrate" and "bwconnburst"
16096       consensus params which were broken from 0.2.2.7-alpha through
16097       0.2.2.14-alpha. Closes bug 1947.
16098     - When a router changes IP address or port, authorities now launch
16099       a new reachability test for it. Implements ticket 1899.
16100     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
16101       2 no signature, 4 required" messages about consensus signatures
16102       easier to read, and make sure they get logged at the same severity
16103       as the messages explaining which keys are which. Fixes bug 1290.
16104     - Don't warn when we have a consensus that we can't verify because
16105       of missing certificates, unless those certificates are ones
16106       that we have been trying and failing to download. Fixes bug 1145.
16107     - If you configure your bridge with a known identity fingerprint,
16108       and the bridge authority is unreachable (as it is in at least
16109       one country now), fall back to directly requesting the descriptor
16110       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
16111       closes bug 1138.
16112     - When building with --enable-gcc-warnings on OpenBSD, disable
16113       warnings in system headers. This makes --enable-gcc-warnings
16114       pass on OpenBSD 4.8.
16116   o Minor bugfixes (on 0.2.1.x and earlier):
16117     - Authorities will now attempt to download consensuses if their
16118       own efforts to make a live consensus have failed. This change
16119       means authorities that restart will fetch a valid consensus, and
16120       it means authorities that didn't agree with the current consensus
16121       will still fetch and serve it if it has enough signatures. Bugfix
16122       on 0.2.0.9-alpha; fixes bug 1300.
16123     - Ensure DNS requests launched by "RESOLVE" commands from the
16124       controller respect the __LeaveStreamsUnattached setconf options. The
16125       same goes for requests launched via DNSPort or transparent
16126       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
16127     - Allow handshaking OR connections to take a full KeepalivePeriod
16128       seconds to handshake. Previously, we would close them after
16129       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
16130       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
16131       for analysis help.
16132     - Rate-limit "Failed to hand off onionskin" warnings.
16133     - Never relay a cell for a circuit we have already destroyed.
16134       Between marking a circuit as closeable and finally closing it,
16135       it may have been possible for a few queued cells to get relayed,
16136       even though they would have been immediately dropped by the next
16137       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
16138     - Never queue a cell for a circuit that's already been marked
16139       for close.
16140     - Never vote for a server as "Running" if we have a descriptor for
16141       it claiming to be hibernating, and that descriptor was published
16142       more recently than our last contact with the server. Bugfix on
16143       0.2.0.3-alpha; fixes bug 911.
16144     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
16145       bug 1848.
16147   o Minor bugfixes (on 0.2.2.x):
16148     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
16149       down if a directory fetch fails and you've configured either
16150       bridges or EntryNodes. The intent was to mark the relay as down
16151       _unless_ you're using bridges or EntryNodes, since if you are
16152       then you could quickly run out of entry points.
16153     - Fix the Windows directory-listing code. A bug introduced in
16154       0.2.2.14-alpha could make Windows directory servers forget to load
16155       some of their cached v2 networkstatus files.
16156     - Really allow clients to use relays as bridges. Fixes bug 1776;
16157       bugfix on 0.2.2.15-alpha.
16158     - Demote a warn to info that happens when the CellStatistics option
16159       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
16160       Reported by Moritz Bartl.
16161     - On Windows, build correctly either with or without Unicode support.
16162       This is necessary so that Tor can support fringe platforms like
16163       Windows 98 (which has no Unicode), or Windows CE (which has no
16164       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
16166   o Testing
16167     - Add a unit test for cross-platform directory-listing code.
16170 Changes in version 0.2.2.15-alpha - 2010-08-18
16171   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
16172   fixes a variety of other bugs that were preventing performance
16173   experiments from moving forward, fixes several bothersome memory leaks,
16174   and generally closes a lot of smaller bugs that have been filling up
16175   trac lately.
16177   o Major bugfixes:
16178     - Stop assigning the HSDir flag to relays that disable their
16179       DirPort (and thus will refuse to answer directory requests). This
16180       fix should dramatically improve the reachability of hidden services:
16181       hidden services and hidden service clients pick six HSDir relays
16182       to store and retrieve the hidden service descriptor, and currently
16183       about half of the HSDir relays will refuse to work. Bugfix on
16184       0.2.0.10-alpha; fixes part of bug 1693.
16185     - The PerConnBWRate and Burst config options, along with the
16186       bwconnrate and bwconnburst consensus params, initialized each conn's
16187       token bucket values only when the connection is established. Now we
16188       update them if the config options change, and update them every time
16189       we get a new consensus. Otherwise we can encounter an ugly edge
16190       case where we initialize an OR conn to client-level bandwidth,
16191       but then later the relay joins the consensus and we leave it
16192       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
16193     - Fix a regression that caused Tor to rebind its ports if it receives
16194       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
16196   o Major features:
16197     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
16198       should give us approximately 40-50% more Guard-flagged nodes,
16199       improving the anonymity the Tor network can provide and also
16200       decreasing the dropoff in throughput that relays experience when
16201       they first get the Guard flag.
16202     - Allow enabling or disabling the *Statistics config options while
16203       Tor is running.
16205   o Minor features:
16206     - Update to the August 1 2010 Maxmind GeoLite Country database.
16207     - Have the controller interface give a more useful message than
16208       "Internal Error" in response to failed GETINFO requests.
16209     - Warn when the same option is provided more than once in a torrc
16210       file, on the command line, or in a single SETCONF statement, and
16211       the option is one that only accepts a single line. Closes bug 1384.
16212     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
16213       Patch from mingw-san.
16214     - Add support for the country code "{??}" in torrc options like
16215       ExcludeNodes, to indicate all routers of unknown country. Closes
16216       bug 1094.
16217     - Relays report the number of bytes spent on answering directory
16218       requests in extra-info descriptors similar to {read,write}-history.
16219       Implements enhancement 1790.
16221   o Minor bugfixes (on 0.2.1.x and earlier):
16222     - Complain if PublishServerDescriptor is given multiple arguments that
16223       include 0 or 1. This configuration will be rejected in the future.
16224       Bugfix on 0.2.0.1-alpha; closes bug 1107.
16225     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
16226       Bugfix on 0.2.0.13-alpha; closes bug 928.
16227     - Change "Application request when we're believed to be offline."
16228       notice to "Application request when we haven't used client
16229       functionality lately.", to clarify that it's not an error. Bugfix
16230       on 0.0.9.3; fixes bug 1222.
16231     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
16232       would return "551 Internal error" rather than "552 Unrecognized key
16233       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
16234     - Users can't configure a regular relay to be their bridge. It didn't
16235       work because when Tor fetched the bridge descriptor, it found
16236       that it already had it, and didn't realize that the purpose of the
16237       descriptor had changed. Now we replace routers with a purpose other
16238       than bridge with bridge descriptors when fetching them. Bugfix on
16239       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
16240       refetch the descriptor with router purpose 'general', disabling
16241       it as a bridge.
16242     - Fix a rare bug in rend_fn unit tests: we would fail a test when
16243       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
16244       on 0.2.0.10-alpha; fixes bug 1808.
16245     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
16246       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
16247       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
16248       Servers can start sending this code when enough clients recognize
16249       it. Also update the spec to reflect this new reason. Bugfix on
16250       0.1.0.1-rc; fixes part of bug 1793.
16251     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
16252       when we switch from being a public relay to a bridge. Otherwise
16253       there will still be clients that see the relay in their consensus,
16254       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
16255       932 even more.
16256     - Instead of giving an assertion failure on an internal mismatch
16257       on estimated freelist size, just log a BUG warning and try later.
16258       Mitigates but does not fix bug 1125.
16259     - Fix an assertion failure that could occur in caches or bridge users
16260       when using a very short voting interval on a testing network.
16261       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
16263   o Minor bugfixes (on 0.2.2.x):
16264     - Alter directory authorities to always consider Exit-flagged nodes
16265       as potential Guard nodes in their votes. The actual decision to
16266       use Exits as Guards is done in the consensus bandwidth weights.
16267       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
16268     - When the controller is reporting the purpose of circuits that
16269       didn't finish building before the circuit build timeout, it was
16270       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
16271     - Our libevent version parsing code couldn't handle versions like
16272       1.4.14b-stable and incorrectly warned the user about using an
16273       old and broken version of libevent. Treat 1.4.14b-stable like
16274       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
16275       on 0.2.2.1-alpha.
16276     - Don't use substitution references like $(VAR:MOD) when
16277       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
16278       '$(:x)' to 'x' rather than the empty string. This bites us in
16279       doc/ when configured with --disable-asciidoc. Bugfix on
16280       0.2.2.9-alpha; fixes bug 1773.
16281     - Remove a spurious hidden service server-side log notice about
16282       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
16283       bug 1741.
16284     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
16285       fixes bug 1832.
16286     - Correctly report written bytes on linked connections. Found while
16287       implementing 1790. Bugfix on 0.2.2.4-alpha.
16288     - Fix three memory leaks: one in circuit_build_times_parse_state(),
16289       one in dirvote_add_signatures_to_pending_consensus(), and one every
16290       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
16291       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
16293   o Code simplifications and refactoring:
16294     - Take a first step towards making or.h smaller by splitting out
16295       function definitions for all source files in src/or/. Leave
16296       structures and defines in or.h for now.
16297     - Remove a bunch of unused function declarations as well as a block of
16298       #if 0'd code from the unit tests. Closes bug 1824.
16299     - New unit tests for exit-port history statistics; refactored exit
16300       statistics code to be more easily tested.
16301     - Remove the old debian/ directory from the main Tor distribution.
16302       The official Tor-for-debian git repository lives at the URL
16303       https://git.torproject.org/debian/tor.git
16306 Changes in version 0.2.2.14-alpha - 2010-07-12
16307   Tor 0.2.2.14-alpha greatly improves client-side handling of
16308   circuit build timeouts, which are used to estimate speed and improve
16309   performance. We also move to a much better GeoIP database, port Tor to
16310   Windows CE, introduce new compile flags that improve code security,
16311   add an eighth v3 directory authority, and address a lot of more
16312   minor issues.
16314   o Major bugfixes:
16315     - Tor directory authorities no longer crash when started with a
16316       cached-microdesc-consensus file in their data directory. Bugfix
16317       on 0.2.2.6-alpha; fixes bug 1532.
16318     - Treat an unset $HOME like an empty $HOME rather than triggering an
16319       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
16320     - Ignore negative and large circuit build timeout values that can
16321       happen during a suspend or hibernate. These values caused various
16322       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
16323     - Alter calculation of Pareto distribution parameter 'Xm' for
16324       Circuit Build Timeout learning to use the weighted average of the
16325       top N=3 modes (because we have three entry guards). Considering
16326       multiple modes should improve the timeout calculation in some cases,
16327       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
16328       fixes bug 1335.
16329     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
16330       right censored distribution model. This approach improves over the
16331       synthetic timeout generation approach that was producing insanely
16332       high timeout values. Now we calculate build timeouts using truncated
16333       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
16334     - Do not close circuits that are under construction when they reach
16335       the circuit build timeout. Instead, leave them building (but do not
16336       use them) for up until the time corresponding to the 95th percentile
16337       on the Pareto CDF or 60 seconds, whichever is greater. This is done
16338       to provide better data for the new Pareto model. This percentile
16339       can be controlled by the consensus.
16341   o Major features:
16342     - Move to the June 2010 Maxmind GeoLite country db (rather than the
16343       June 2009 ip-to-country GeoIP db) for our statistics that count
16344       how many users relays are seeing from each country. Now we have
16345       more accurate data for many African countries.
16346     - Port Tor to build and run correctly on Windows CE systems, using
16347       the wcecompat library. Contributed by Valerio Lupi.
16348     - New "--enable-gcc-hardening" ./configure flag (off by default)
16349       to turn on gcc compile time hardening options. It ensures
16350       that signed ints have defined behavior (-fwrapv), enables
16351       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
16352       with canaries (-fstack-protector-all), turns on ASLR protection if
16353       supported by the kernel (-fPIE, -pie), and adds additional security
16354       related warnings. Verified to work on Mac OS X and Debian Lenny.
16355     - New "--enable-linker-hardening" ./configure flag (off by default)
16356       to turn on ELF specific hardening features (relro, now). This does
16357       not work with Mac OS X or any other non-ELF binary format.
16359   o New directory authorities:
16360     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
16361       authority.
16363   o Minor features:
16364     - New config option "WarnUnsafeSocks 0" disables the warning that
16365       occurs whenever Tor receives a socks handshake using a version of
16366       the socks protocol that can only provide an IP address (rather
16367       than a hostname). Setups that do DNS locally over Tor are fine,
16368       and we shouldn't spam the logs in that case.
16369     - Convert the HACKING file to asciidoc, and add a few new sections
16370       to it, explaining how we use Git, how we make changelogs, and
16371       what should go in a patch.
16372     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
16373       event, to give information on the current rate of circuit timeouts
16374       over our stored history.
16375     - Add ability to disable circuit build time learning via consensus
16376       parameter and via a LearnCircuitBuildTimeout config option. Also
16377       automatically disable circuit build time calculation if we are
16378       either a AuthoritativeDirectory, or if we fail to write our state
16379       file. Fixes bug 1296.
16380     - More gracefully handle corrupt state files, removing asserts
16381       in favor of saving a backup and resetting state.
16382     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
16383       system headers.
16385   o Minor bugfixes:
16386     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
16387       enabled.
16388     - When a2x fails, mention that the user could disable manpages instead
16389       of trying to fix their asciidoc installation.
16390     - Where available, use Libevent 2.0's periodic timers so that our
16391       once-per-second cleanup code gets called even more closely to
16392       once per second than it would otherwise. Fixes bug 943.
16393     - If you run a bridge that listens on multiple IP addresses, and
16394       some user configures a bridge address that uses a different IP
16395       address than your bridge writes in its router descriptor, and the
16396       user doesn't specify an identity key, their Tor would discard the
16397       descriptor because "it isn't one of our configured bridges", and
16398       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
16399       Bugfix on 0.2.0.3-alpha.
16400     - If OpenSSL fails to make a duplicate of a private or public key, log
16401       an error message and try to exit cleanly. May help with debugging
16402       if bug 1209 ever remanifests.
16403     - Save a couple bytes in memory allocation every time we escape
16404       certain characters in a string. Patch from Florian Zumbiehl.
16405     - Make it explicit that we don't cannibalize one-hop circuits. This
16406       happens in the wild, but doesn't turn out to be a problem because
16407       we fortunately don't use those circuits. Many thanks to outofwords
16408       for the initial analysis and to swissknife who confirmed that
16409       two-hop circuits are actually created.
16410     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
16411       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
16412     - Eliminate a case where a circuit build time warning was displayed
16413       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
16416 Changes in version 0.2.1.26 - 2010-05-02
16417   Tor 0.2.1.26 addresses the recent connection and memory overload
16418   problems we've been seeing on relays, especially relays with their
16419   DirPort open. If your relay has been crashing, or you turned it off
16420   because it used too many resources, give this release a try.
16422   This release also fixes yet another instance of broken OpenSSL libraries
16423   that was causing some relays to drop out of the consensus.
16425   o Major bugfixes:
16426     - Teach relays to defend themselves from connection overload. Relays
16427       now close idle circuits early if it looks like they were intended
16428       for directory fetches. Relays are also more aggressive about closing
16429       TLS connections that have no circuits on them. Such circuits are
16430       unlikely to be re-used, and tens of thousands of them were piling
16431       up at the fast relays, causing the relays to run out of sockets
16432       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
16433       their directory fetches over TLS).
16434     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
16435       that claim to be earlier than 0.9.8m, but which have in reality
16436       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
16437       behavior. Possible fix for some cases of bug 1346.
16438     - Directory mirrors were fetching relay descriptors only from v2
16439       directory authorities, rather than v3 authorities like they should.
16440       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
16441       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
16443   o Minor bugfixes:
16444     - Finally get rid of the deprecated and now harmful notion of "clique
16445       mode", where directory authorities maintain TLS connections to
16446       every other relay.
16448   o Testsuite fixes:
16449     - In the util/threads test, no longer free the test_mutex before all
16450       worker threads have finished. Bugfix on 0.2.1.6-alpha.
16451     - The master thread could starve the worker threads quite badly on
16452       certain systems, causing them to run only partially in the allowed
16453       window. This resulted in test failures. Now the master thread sleeps
16454       occasionally for a few microseconds while the two worker-threads
16455       compete for the mutex. Bugfix on 0.2.0.1-alpha.
16458 Changes in version 0.2.2.13-alpha - 2010-04-24
16459   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
16460   problems we've been seeing on relays, especially relays with their
16461   DirPort open. If your relay has been crashing, or you turned it off
16462   because it used too many resources, give this release a try.
16464   o Major bugfixes:
16465     - Teach relays to defend themselves from connection overload. Relays
16466       now close idle circuits early if it looks like they were intended
16467       for directory fetches. Relays are also more aggressive about closing
16468       TLS connections that have no circuits on them. Such circuits are
16469       unlikely to be re-used, and tens of thousands of them were piling
16470       up at the fast relays, causing the relays to run out of sockets
16471       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
16472       their directory fetches over TLS).
16474   o Minor features:
16475     - Finally get rid of the deprecated and now harmful notion of "clique
16476       mode", where directory authorities maintain TLS connections to
16477       every other relay.
16478     - Directory authorities now do an immediate reachability check as soon
16479       as they hear about a new relay. This change should slightly reduce
16480       the time between setting up a relay and getting listed as running
16481       in the consensus. It should also improve the time between setting
16482       up a bridge and seeing use by bridge users.
16483     - Directory authorities no longer launch a TLS connection to every
16484       relay as they startup. Now that we have 2k+ descriptors cached,
16485       the resulting network hiccup is becoming a burden. Besides,
16486       authorities already avoid voting about Running for the first half
16487       hour of their uptime.
16490 Changes in version 0.2.2.12-alpha - 2010-04-20
16491   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
16492   handle and vote on descriptors. It was causing relays to drop out of
16493   the consensus.
16495   o Major bugfixes:
16496     - Many relays have been falling out of the consensus lately because
16497       not enough authorities know about their descriptor for them to get
16498       a majority of votes. When we deprecated the v2 directory protocol,
16499       we got rid of the only way that v3 authorities can hear from each
16500       other about other descriptors. Now authorities examine every v3
16501       vote for new descriptors, and fetch them from that authority. Bugfix
16502       on 0.2.1.23.
16503     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
16504       and a warning in or.h related to bandwidth_weight_rule_t that
16505       prevented clean compile on OS X. Fixes bug 1363; bugfix on
16506       0.2.2.11-alpha.
16507     - Fix a segfault on relays when DirReqStatistics is enabled
16508       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
16509       0.2.2.11-alpha.
16511   o Minor bugfixes:
16512     - Demote a confusing TLS warning that relay operators might get when
16513       someone tries to talk to their OrPort. It is neither the operator's
16514       fault nor can they do anything about it. Fixes bug 1364; bugfix
16515       on 0.2.0.14-alpha.
16518 Changes in version 0.2.2.11-alpha - 2010-04-15
16519   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
16520   libraries that was causing some relays to drop out of the consensus.
16522   o Major bugfixes:
16523     - Directory mirrors were fetching relay descriptors only from v2
16524       directory authorities, rather than v3 authorities like they should.
16525       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
16526       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
16527     - Fix a parsing error that made every possible value of
16528       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
16529       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
16530       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
16531       about the option without breaking older ones.
16532     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
16533       that claim to be earlier than 0.9.8m, but which have in reality
16534       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
16535       behavior. Possible fix for some cases of bug 1346.
16537   o Minor features:
16538     - Experiment with a more aggressive approach to preventing clients
16539       from making one-hop exit streams. Exit relays who want to try it
16540       out can set "RefuseUnknownExits 1" in their torrc, and then look
16541       for "Attempt by %s to open a stream" log messages. Let us know
16542       how it goes!
16543     - Add support for statically linking zlib by specifying
16544       --enable-static-zlib, to go with our support for statically linking
16545       openssl and libevent. Resolves bug 1358.
16547   o Minor bugfixes:
16548     - Fix a segfault that happens whenever a Tor client that is using
16549       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
16550       fixes bug 1341.
16551     - When we cleaned up the contrib/tor-exit-notice.html file, we left
16552       out the first line. Fixes bug 1295.
16553     - When building the manpage from a tarball, we required asciidoc, but
16554       the asciidoc -> roff/html conversion was already done for the
16555       tarball. Make 'make' complain only when we need asciidoc (either
16556       because we're compiling directly from git, or because we altered
16557       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
16558     - When none of the directory authorities vote on any params, Tor
16559       segfaulted when trying to make the consensus from the votes. We
16560       didn't trigger the bug in practice, because authorities do include
16561       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
16563   o Testsuite fixes:
16564     - In the util/threads test, no longer free the test_mutex before all
16565       worker threads have finished. Bugfix on 0.2.1.6-alpha.
16566     - The master thread could starve the worker threads quite badly on
16567       certain systems, causing them to run only partially in the allowed
16568       window. This resulted in test failures. Now the master thread sleeps
16569       occasionally for a few microseconds while the two worker-threads
16570       compete for the mutex. Bugfix on 0.2.0.1-alpha.
16573 Changes in version 0.2.2.10-alpha - 2010-03-07
16574   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
16575   could prevent relays from guessing their IP address correctly. It also
16576   starts the groundwork for another client-side performance boost, since
16577   currently we're not making efficient use of relays that have both the
16578   Guard flag and the Exit flag.
16580   o Major bugfixes:
16581     - Fix a regression from our patch for bug 1244 that caused relays
16582       to guess their IP address incorrectly if they didn't set Address
16583       in their torrc and/or their address fails to resolve. Bugfix on
16584       0.2.2.9-alpha; fixes bug 1269.
16586   o Major features (performance):
16587     - Directory authorities now compute consensus weightings that instruct
16588       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
16589       and no flag. Clients that use these weightings will distribute
16590       network load more evenly across these different relay types. The
16591       weightings are in the consensus so we can change them globally in
16592       the future. Extra thanks to "outofwords" for finding some nasty
16593       security bugs in the first implementation of this feature.
16595   o Minor features (performance):
16596     - Always perform router selections using weighted relay bandwidth,
16597       even if we don't need a high capacity circuit at the time. Non-fast
16598       circuits now only differ from fast ones in that they can use relays
16599       not marked with the Fast flag. This "feature" could turn out to
16600       be a horrible bug; we should investigate more before it goes into
16601       a stable release.
16603   o Minor features:
16604     - Allow disabling building of the manpages. Skipping the manpage
16605       speeds up the build considerably.
16607   o Minor bugfixes (on 0.2.2.x):
16608     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
16609       Bugfix on 0.2.2.9-alpha.
16610     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
16611       config option. Bugfix on 0.2.2.7-alpha.
16612     - Ship the asciidoc-helper file in the tarball, so that people can
16613       build from source if they want to, and touching the .1.txt files
16614       doesn't break the build. Bugfix on 0.2.2.9-alpha.
16616   o Minor bugfixes (on 0.2.1.x or earlier):
16617     - Fix a dereference-then-NULL-check sequence when publishing
16618       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
16619       bug 1255.
16620     - Fix another dereference-then-NULL-check sequence. Bugfix on
16621       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
16622     - Make sure we treat potentially not NUL-terminated strings correctly.
16623       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
16625   o Code simplifications and refactoring:
16626     - Fix some urls in the exit notice file and make it XHTML1.1 strict
16627       compliant. Based on a patch from Christian Kujau.
16628     - Don't use sed in asciidoc-helper anymore.
16629     - Make the build process fail if asciidoc cannot be found and
16630       building with asciidoc isn't disabled.
16633 Changes in version 0.2.2.9-alpha - 2010-02-22
16634   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
16635   location of a directory authority, and cleans up a bunch of small bugs.
16637   o Directory authority changes:
16638     - Change IP address for dannenberg (v3 directory authority), and
16639       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
16640       service directory authority) from the list.
16642   o Major bugfixes:
16643     - Make Tor work again on the latest OS X: when deciding whether to
16644       use strange flags to turn TLS renegotiation on, detect the OpenSSL
16645       version at run-time, not compile time. We need to do this because
16646       Apple doesn't update its dev-tools headers when it updates its
16647       libraries in a security patch.
16648     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
16649       that could happen on 32-bit platforms with 64-bit time_t. Also fix
16650       a memory leak when requesting a hidden service descriptor we've
16651       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
16652       by aakova.
16653     - Authorities could be tricked into giving out the Exit flag to relays
16654       that didn't allow exiting to any ports. This bug could screw
16655       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
16656       1238. Bug discovered by Martin Kowalczyk.
16657     - When freeing a session key, zero it out completely. We only zeroed
16658       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
16659       patched by ekir. Fixes bug 1254.
16661   o Minor bugfixes:
16662     - Fix static compilation by listing the openssl libraries in the right
16663       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
16664     - Resume handling .exit hostnames in a special way: originally we
16665       stripped the .exit part and used the requested exit relay. In
16666       0.2.2.1-alpha we stopped treating them in any special way, meaning
16667       if you use a .exit address then Tor will pass it on to the exit
16668       relay. Now we reject the .exit stream outright, since that behavior
16669       might be more expected by the user. Found and diagnosed by Scott
16670       Bennett and Downie on or-talk.
16671     - Don't spam the controller with events when we have no file
16672       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
16673       for log messages was already solved from bug 748.)
16674     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
16675       "memcpyfail".
16676     - Make the DNSPort option work with libevent 2.x. Don't alter the
16677       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
16678     - Emit a GUARD DROPPED controller event for a case we missed.
16679     - Make more fields in the controller protocol case-insensitive, since
16680       control-spec.txt said they were.
16681     - Refactor resolve_my_address() to not use gethostbyname() anymore.
16682       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
16683     - Fix a spec conformance issue: the network-status-version token
16684       must be the first token in a v3 consensus or vote. Discovered by
16685       parakeep. Bugfix on 0.2.0.3-alpha.
16687   o Code simplifications and refactoring:
16688     - Generate our manpage and HTML documentation using Asciidoc. This
16689       change should make it easier to maintain the documentation, and
16690       produce nicer HTML.
16691     - Remove the --enable-iphone option. According to reports from Marco
16692       Bonetti, Tor builds fine without any special tweaking on recent
16693       iPhone SDK versions.
16694     - Removed some unnecessary files from the source distribution. The
16695       AUTHORS file has now been merged into the people page on the
16696       website. The roadmaps and design doc can now be found in the
16697       projects directory in svn.
16698     - Enabled various circuit build timeout constants to be controlled
16699       by consensus parameters. Also set better defaults for these
16700       parameters based on experimentation on broadband and simulated
16701       high latency links.
16703   o Minor features:
16704     - The 'EXTENDCIRCUIT' control port command can now be used with
16705       a circ id of 0 and no path. This feature will cause Tor to build
16706       a new 'fast' general purpose circuit using its own path selection
16707       algorithms.
16708     - Added a BUILDTIMEOUT_SET controller event to describe changes
16709       to the circuit build timeout.
16710     - Future-proof the controller protocol a bit by ignoring keyword
16711       arguments we do not recognize.
16712     - Expand homedirs passed to tor-checkkey. This should silence a
16713       coverity complaint about passing a user-supplied string into
16714       open() without checking it.
16717 Changes in version 0.2.1.25 - 2010-03-16
16718   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
16719   prevent relays from guessing their IP address correctly. It also fixes
16720   several minor potential security bugs.
16722   o Major bugfixes:
16723     - Fix a regression from our patch for bug 1244 that caused relays
16724       to guess their IP address incorrectly if they didn't set Address
16725       in their torrc and/or their address fails to resolve. Bugfix on
16726       0.2.1.23; fixes bug 1269.
16727     - When freeing a session key, zero it out completely. We only zeroed
16728       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
16729       patched by ekir. Fixes bug 1254.
16731   o Minor bugfixes:
16732     - Fix a dereference-then-NULL-check sequence when publishing
16733       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
16734       bug 1255.
16735     - Fix another dereference-then-NULL-check sequence. Bugfix on
16736       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
16737     - Make sure we treat potentially not NUL-terminated strings correctly.
16738       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
16742 Changes in version 0.2.1.24 - 2010-02-21
16743   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
16744   for sure!
16746   o Minor bugfixes:
16747     - Work correctly out-of-the-box with even more vendor-patched versions
16748       of OpenSSL. In particular, make it so Debian and OS X don't need
16749       customized patches to run/build.
16752 Changes in version 0.2.1.23 - 2010-02-13
16753   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
16754   again on the latest OS X, and updates the location of a directory
16755   authority.
16757   o Major bugfixes (performance):
16758     - We were selecting our guards uniformly at random, and then weighting
16759       which of our guards we'd use uniformly at random. This imbalance
16760       meant that Tor clients were severely limited on throughput (and
16761       probably latency too) by the first hop in their circuit. Now we
16762       select guards weighted by currently advertised bandwidth. We also
16763       automatically discard guards picked using the old algorithm. Fixes
16764       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
16766   o Major bugfixes:
16767     - Make Tor work again on the latest OS X: when deciding whether to
16768       use strange flags to turn TLS renegotiation on, detect the OpenSSL
16769       version at run-time, not compile time. We need to do this because
16770       Apple doesn't update its dev-tools headers when it updates its
16771       libraries in a security patch.
16772     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
16773       that could happen on 32-bit platforms with 64-bit time_t. Also fix
16774       a memory leak when requesting a hidden service descriptor we've
16775       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
16776       by aakova.
16778   o Directory authority changes:
16779     - Change IP address for dannenberg (v3 directory authority), and
16780       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
16781       service directory authority) from the list.
16783   o Minor bugfixes:
16784     - Refactor resolve_my_address() to not use gethostbyname() anymore.
16785       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
16787   o Minor features:
16788     - Avoid a mad rush at the beginning of each month when each client
16789       rotates half of its guards. Instead we spread the rotation out
16790       throughout the month, but we still avoid leaving a precise timestamp
16791       in the state file about when we first picked the guard. Improves
16792       over the behavior introduced in 0.1.2.17.
16795 Changes in version 0.2.2.8-alpha - 2010-01-26
16796   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
16797   causing bridge relays to disappear. If you're running a bridge,
16798   please upgrade.
16800   o Major bugfixes:
16801     - Fix a memory corruption bug on bridges that occured during the
16802       inclusion of stats data in extra-info descriptors. Also fix the
16803       interface for geoip_get_bridge_stats* to prevent similar bugs in
16804       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
16805       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
16807   o Minor bugfixes:
16808     - Ignore OutboundBindAddress when connecting to localhost.
16809       Connections to localhost need to come _from_ localhost, or else
16810       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
16811       refuse to listen.
16814 Changes in version 0.2.2.7-alpha - 2010-01-19
16815   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
16816   as laying the groundwork for further relay-side performance fixes. It
16817   also starts cleaning up client behavior with respect to the EntryNodes,
16818   ExitNodes, and StrictNodes config options.
16820   This release also rotates two directory authority keys, due to a
16821   security breach of some of the Torproject servers.
16823   o Directory authority changes:
16824     - Rotate keys (both v3 identity and relay identity) for moria1
16825       and gabelmoo.
16827   o Major features (performance):
16828     - We were selecting our guards uniformly at random, and then weighting
16829       which of our guards we'd use uniformly at random. This imbalance
16830       meant that Tor clients were severely limited on throughput (and
16831       probably latency too) by the first hop in their circuit. Now we
16832       select guards weighted by currently advertised bandwidth. We also
16833       automatically discard guards picked using the old algorithm. Fixes
16834       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
16835     - When choosing which cells to relay first, relays can now favor
16836       circuits that have been quiet recently, to provide lower latency
16837       for low-volume circuits. By default, relays enable or disable this
16838       feature based on a setting in the consensus. You can override
16839       this default by using the new "CircuitPriorityHalflife" config
16840       option. Design and code by Ian Goldberg, Can Tang, and Chris
16841       Alexander.
16842     - Add separate per-conn write limiting to go with the per-conn read
16843       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
16844       but never per-conn write limits.
16845     - New consensus params "bwconnrate" and "bwconnburst" to let us
16846       rate-limit client connections as they enter the network. It's
16847       controlled in the consensus so we can turn it on and off for
16848       experiments. It's starting out off. Based on proposal 163.
16850   o Major features (relay selection options):
16851     - Switch to a StrictNodes config option, rather than the previous
16852       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
16853       "StrictExcludeNodes" option.
16854     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
16855       change during a config reload, mark and discard all our origin
16856       circuits. This fix should address edge cases where we change the
16857       config options and but then choose a circuit that we created before
16858       the change.
16859     - If EntryNodes or ExitNodes are set, be more willing to use an
16860       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
16861       they get it.
16862     - Make EntryNodes config option much more aggressive even when
16863       StrictNodes is not set. Before it would prepend your requested
16864       entrynodes to your list of guard nodes, but feel free to use others
16865       after that. Now it chooses only from your EntryNodes if any of
16866       those are available, and only falls back to others if a) they're
16867       all down and b) StrictNodes is not set.
16868     - Now we refresh your entry guards from EntryNodes at each consensus
16869       fetch -- rather than just at startup and then they slowly rot as
16870       the network changes.
16872   o Major bugfixes:
16873     - Stop bridge directory authorities from answering dbg-stability.txt
16874       directory queries, which would let people fetch a list of all
16875       bridge identities they track. Bugfix on 0.2.1.6-alpha.
16877   o Minor features:
16878     - Log a notice when we get a new control connection. Now it's easier
16879       for security-conscious users to recognize when a local application
16880       is knocking on their controller door. Suggested by bug 1196.
16881     - New config option "CircuitStreamTimeout" to override our internal
16882       timeout schedule for how many seconds until we detach a stream from
16883       a circuit and try a new circuit. If your network is particularly
16884       slow, you might want to set this to a number like 60.
16885     - New controller command "getinfo config-text". It returns the
16886       contents that Tor would write if you send it a SAVECONF command,
16887       so the controller can write the file to disk itself.
16888     - New options for SafeLogging to allow scrubbing only log messages
16889       generated while acting as a relay.
16890     - Ship the bridges spec file in the tarball too.
16891     - Avoid a mad rush at the beginning of each month when each client
16892       rotates half of its guards. Instead we spread the rotation out
16893       throughout the month, but we still avoid leaving a precise timestamp
16894       in the state file about when we first picked the guard. Improves
16895       over the behavior introduced in 0.1.2.17.
16897   o Minor bugfixes (compiling):
16898     - Fix compilation on OS X 10.3, which has a stub mlockall() but
16899       hides it. Bugfix on 0.2.2.6-alpha.
16900     - Fix compilation on Solaris by removing support for the
16901       DisableAllSwap config option. Solaris doesn't have an rlimit for
16902       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
16903       0.2.2.6-alpha.
16905   o Minor bugfixes (crashes):
16906     - Do not segfault when writing buffer stats when we haven't observed
16907       a single circuit to report about. Found by Fabian Lanze. Bugfix on
16908       0.2.2.1-alpha.
16909     - If we're in the pathological case where there's no exit bandwidth
16910       but there is non-exit bandwidth, or no guard bandwidth but there
16911       is non-guard bandwidth, don't crash during path selection. Bugfix
16912       on 0.2.0.3-alpha.
16913     - Fix an impossible-to-actually-trigger buffer overflow in relay
16914       descriptor generation. Bugfix on 0.1.0.15.
16916   o Minor bugfixes (privacy):
16917     - Fix an instance where a Tor directory mirror might accidentally
16918       log the IP address of a misbehaving Tor client. Bugfix on
16919       0.1.0.1-rc.
16920     - Don't list Windows capabilities in relay descriptors. We never made
16921       use of them, and maybe it's a bad idea to publish them. Bugfix
16922       on 0.1.1.8-alpha.
16924   o Minor bugfixes (other):
16925     - Resolve an edge case in path weighting that could make us misweight
16926       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
16927     - Fix statistics on client numbers by country as seen by bridges that
16928       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
16929       intervals instead of variable 12-to-48-hour intervals.
16930     - After we free an internal connection structure, overwrite it
16931       with a different memory value than we use for overwriting a freed
16932       internal circuit structure. Should help with debugging. Suggested
16933       by bug 1055.
16934     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
16935       too.
16937   o Removed features:
16938     - Remove the HSAuthorityRecordStats option that version 0 hidden
16939       service authorities could have used to track statistics of overall
16940       hidden service usage.
16943 Changes in version 0.2.1.22 - 2010-01-19
16944   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
16945   authorities -- it would tell you its whole history of bridge descriptors
16946   if you make the right directory request. This stable update also
16947   rotates two of the seven v3 directory authority keys and locations.
16949   o Directory authority changes:
16950     - Rotate keys (both v3 identity and relay identity) for moria1
16951       and gabelmoo.
16953   o Major bugfixes:
16954     - Stop bridge directory authorities from answering dbg-stability.txt
16955       directory queries, which would let people fetch a list of all
16956       bridge identities they track. Bugfix on 0.2.1.6-alpha.
16959 Changes in version 0.2.1.21 - 2009-12-21
16960   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
16961   library. If you use Tor on Linux / Unix and you're getting SSL
16962   renegotiation errors, upgrading should help. We also recommend an
16963   upgrade if you're an exit relay.
16965   o Major bugfixes:
16966     - Work around a security feature in OpenSSL 0.9.8l that prevents our
16967       handshake from working unless we explicitly tell OpenSSL that we
16968       are using SSL renegotiation safely. We are, of course, but OpenSSL
16969       0.9.8l won't work unless we say we are.
16970     - Avoid crashing if the client is trying to upload many bytes and the
16971       circuit gets torn down at the same time, or if the flip side
16972       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
16974   o Minor bugfixes:
16975     - Do not refuse to learn about authority certs and v2 networkstatus
16976       documents that are older than the latest consensus. This bug might
16977       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
16978       Spotted and fixed by xmux.
16979     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
16980       trigger platform-specific option misparsing case found by Coverity
16981       Scan.
16982     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
16983       trigger assert. Fixes bug 1173.
16986 Changes in version 0.2.2.6-alpha - 2009-11-19
16987   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
16988   support for the new lower-footprint "microdescriptor" directory design,
16989   future-proofing our consensus format against new hash functions or
16990   other changes, and an Android port. It also makes Tor compatible with
16991   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
16993   o Major features:
16994     - Directory authorities can now create, vote on, and serve multiple
16995       parallel formats of directory data as part of their voting process.
16996       Partially implements Proposal 162: "Publish the consensus in
16997       multiple flavors".
16998     - Directory authorities can now agree on and publish small summaries
16999       of router information that clients can use in place of regular
17000       server descriptors. This transition will eventually allow clients
17001       to use far less bandwidth for downloading information about the
17002       network. Begins the implementation of Proposal 158: "Clients
17003       download consensus + microdescriptors".
17004     - The directory voting system is now extensible to use multiple hash
17005       algorithms for signatures and resource selection. Newer formats
17006       are signed with SHA256, with a possibility for moving to a better
17007       hash algorithm in the future.
17008     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
17009       current and future memory pages via mlockall(). On supported
17010       platforms (modern Linux and probably BSD but not Windows or OS X),
17011       this should effectively disable any and all attempts to page out
17012       memory. This option requires that you start your Tor as root --
17013       if you use DisableAllSwap, please consider using the User option
17014       to properly reduce the privileges of your Tor.
17015     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
17016       to help Tor build correctly for Android phones.
17018   o Major bugfixes:
17019     - Work around a security feature in OpenSSL 0.9.8l that prevents our
17020       handshake from working unless we explicitly tell OpenSSL that we
17021       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
17022       won't work unless we say we are.
17024   o Minor bugfixes:
17025     - Fix a crash bug when trying to initialize the evdns module in
17026       Libevent 2. Bugfix on 0.2.1.16-rc.
17027     - Stop logging at severity 'warn' when some other Tor client tries
17028       to establish a circuit with us using weak DH keys. It's a protocol
17029       violation, but that doesn't mean ordinary users need to hear about
17030       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
17031     - Do not refuse to learn about authority certs and v2 networkstatus
17032       documents that are older than the latest consensus. This bug might
17033       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
17034       Spotted and fixed by xmux.
17035     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
17036     - If all authorities restart at once right before a consensus vote,
17037       nobody will vote about "Running", and clients will get a consensus
17038       with no usable relays. Instead, authorities refuse to build a
17039       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
17040     - If your relay can't keep up with the number of incoming create
17041       cells, it would log one warning per failure into your logs. Limit
17042       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
17043     - Bridges now use "reject *:*" as their default exit policy. Bugfix
17044       on 0.2.0.3-alpha; fixes bug 1113.
17045     - Fix a memory leak on directory authorities during voting that was
17046       introduced in 0.2.2.1-alpha. Found via valgrind.
17049 Changes in version 0.2.1.20 - 2009-10-15
17050   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
17051   services at once, prepares for more performance improvements, and
17052   fixes a bunch of smaller bugs.
17054   The Windows and OS X bundles also include a more recent Vidalia,
17055   and switch from Privoxy to Polipo.
17057   The OS X installers are now drag and drop. It's best to un-install
17058   Tor/Vidalia and then install this new bundle, rather than upgrade. If
17059   you want to upgrade, you'll need to update the paths for Tor and Polipo
17060   in the Vidalia Settings window.
17062   o Major bugfixes:
17063     - Send circuit or stream sendme cells when our window has decreased
17064       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
17065       by Karsten when testing the "reduce circuit window" performance
17066       patch. Bugfix on the 54th commit on Tor -- from July 2002,
17067       before the release of Tor 0.0.0. This is the new winner of the
17068       oldest-bug prize.
17069     - Fix a remotely triggerable memory leak when a consensus document
17070       contains more than one signature from the same voter. Bugfix on
17071       0.2.0.3-alpha.
17072     - Avoid segfault in rare cases when finishing an introduction circuit
17073       as a client and finding out that we don't have an introduction key
17074       for it. Fixes bug 1073. Reported by Aaron Swartz.
17076   o Major features:
17077     - Tor now reads the "circwindow" parameter out of the consensus,
17078       and uses that value for its circuit package window rather than the
17079       default of 1000 cells. Begins the implementation of proposal 168.
17081   o New directory authorities:
17082     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
17083       authority.
17084     - Move moria1 and tonga to alternate IP addresses.
17086   o Minor bugfixes:
17087     - Fix a signed/unsigned compile warning in 0.2.1.19.
17088     - Fix possible segmentation fault on directory authorities. Bugfix on
17089       0.2.1.14-rc.
17090     - Fix an extremely rare infinite recursion bug that could occur if
17091       we tried to log a message after shutting down the log subsystem.
17092       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
17093     - Fix an obscure bug where hidden services on 64-bit big-endian
17094       systems might mis-read the timestamp in v3 introduce cells, and
17095       refuse to connect back to the client. Discovered by "rotor".
17096       Bugfix on 0.2.1.6-alpha.
17097     - We were triggering a CLOCK_SKEW controller status event whenever
17098       we connect via the v2 connection protocol to any relay that has
17099       a wrong clock. Instead, we should only inform the controller when
17100       it's a trusted authority that claims our clock is wrong. Bugfix
17101       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
17102     - We were telling the controller about CHECKING_REACHABILITY and
17103       REACHABILITY_FAILED status events whenever we launch a testing
17104       circuit or notice that one has failed. Instead, only tell the
17105       controller when we want to inform the user of overall success or
17106       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
17107       by SwissTorExit.
17108     - Don't warn when we're using a circuit that ends with a node
17109       excluded in ExcludeExitNodes, but the circuit is not used to access
17110       the outside world. This should help fix bug 1090. Bugfix on
17111       0.2.1.6-alpha.
17112     - Work around a small memory leak in some versions of OpenSSL that
17113       stopped the memory used by the hostname TLS extension from being
17114       freed.
17116   o Minor features:
17117     - Add a "getinfo status/accepted-server-descriptor" controller
17118       command, which is the recommended way for controllers to learn
17119       whether our server descriptor has been successfully received by at
17120       least on directory authority. Un-recommend good-server-descriptor
17121       getinfo and status events until we have a better design for them.
17124 Changes in version 0.2.2.5-alpha - 2009-10-11
17125   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
17127   o Major bugfixes:
17128     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
17130   o Directory authorities:
17131     - Temporarily (just for this release) move dizum to an alternate
17132       IP address.
17135 Changes in version 0.2.2.4-alpha - 2009-10-10
17136   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
17137   introduces a new unit test framework, shifts directry authority
17138   addresses around to reduce the impact from recent blocking events,
17139   and fixes a few smaller bugs.
17141   o Major bugfixes:
17142     - Fix several more asserts in the circuit_build_times code, for
17143       example one that causes Tor to fail to start once we have
17144       accumulated 5000 build times in the state file. Bugfixes on
17145       0.2.2.2-alpha; fixes bug 1108.
17147   o New directory authorities:
17148     - Move moria1 and Tonga to alternate IP addresses.
17150   o Minor features:
17151     - Log SSL state transitions at debug level during handshake, and
17152       include SSL states in error messages. This may help debug future
17153       SSL handshake issues.
17154     - Add a new "Handshake" log domain for activities that happen
17155       during the TLS handshake.
17156     - Revert to the "June 3 2009" ip-to-country file. The September one
17157       seems to have removed most US IP addresses.
17158     - Directory authorities now reject Tor relays with versions less than
17159       0.1.2.14. This step cuts out four relays from the current network,
17160       none of which are very big.
17162   o Minor bugfixes:
17163     - Fix a couple of smaller issues with gathering statistics. Bugfixes
17164       on 0.2.2.1-alpha.
17165     - Fix two memory leaks in the error case of
17166       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
17167     - Don't count one-hop circuits when we're estimating how long it
17168       takes circuits to build on average. Otherwise we'll set our circuit
17169       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
17170     - Directory authorities no longer change their opinion of, or vote on,
17171       whether a router is Running, unless they have themselves been
17172       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
17173       Fixes bug 1023.
17175   o Code simplifications and refactoring:
17176     - Revise our unit tests to use the "tinytest" framework, so we
17177       can run tests in their own processes, have smarter setup/teardown
17178       code, and so on. The unit test code has moved to its own
17179       subdirectory, and has been split into multiple modules.
17182 Changes in version 0.2.2.3-alpha - 2009-09-23
17183   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
17185   o Major bugfixes:
17186     - Fix an overzealous assert in our new circuit build timeout code.
17187       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
17189   o Minor bugfixes:
17190     - If the networkstatus consensus tells us that we should use a
17191       negative circuit package window, ignore it. Otherwise we'll
17192       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
17195 Changes in version 0.2.2.2-alpha - 2009-09-21
17196   Tor 0.2.2.2-alpha introduces our latest performance improvement for
17197   clients: Tor tracks the average time it takes to build a circuit, and
17198   avoids using circuits that take too long to build. For fast connections,
17199   this feature can cut your expected latency in half. For slow or flaky
17200   connections, it could ruin your Tor experience. Let us know if it does!
17202   o Major features:
17203     - Tor now tracks how long it takes to build client-side circuits
17204       over time, and adapts its timeout to local network performance.
17205       Since a circuit that takes a long time to build will also provide
17206       bad performance, we get significant latency improvements by
17207       discarding the slowest 20% of circuits. Specifically, Tor creates
17208       circuits more aggressively than usual until it has enough data
17209       points for a good timeout estimate. Implements proposal 151.
17210       We are especially looking for reports (good and bad) from users with
17211       both EDGE and broadband connections that can move from broadband
17212       to EDGE and find out if the build-time data in the .tor/state gets
17213       reset without loss of Tor usability. You should also see a notice
17214       log message telling you that Tor has reset its timeout.
17215     - Directory authorities can now vote on arbitary integer values as
17216       part of the consensus process. This is designed to help set
17217       network-wide parameters. Implements proposal 167.
17218     - Tor now reads the "circwindow" parameter out of the consensus,
17219       and uses that value for its circuit package window rather than the
17220       default of 1000 cells. Begins the implementation of proposal 168.
17222   o Major bugfixes:
17223     - Fix a remotely triggerable memory leak when a consensus document
17224       contains more than one signature from the same voter. Bugfix on
17225       0.2.0.3-alpha.
17227   o Minor bugfixes:
17228     - Fix an extremely rare infinite recursion bug that could occur if
17229       we tried to log a message after shutting down the log subsystem.
17230       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
17231     - Fix parsing for memory or time units given without a space between
17232       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
17233     - A networkstatus vote must contain exactly one signature. Spec
17234       conformance issue. Bugfix on 0.2.0.3-alpha.
17235     - Fix an obscure bug where hidden services on 64-bit big-endian
17236       systems might mis-read the timestamp in v3 introduce cells, and
17237       refuse to connect back to the client. Discovered by "rotor".
17238       Bugfix on 0.2.1.6-alpha.
17239     - We were triggering a CLOCK_SKEW controller status event whenever
17240       we connect via the v2 connection protocol to any relay that has
17241       a wrong clock. Instead, we should only inform the controller when
17242       it's a trusted authority that claims our clock is wrong. Bugfix
17243       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
17244     - We were telling the controller about CHECKING_REACHABILITY and
17245       REACHABILITY_FAILED status events whenever we launch a testing
17246       circuit or notice that one has failed. Instead, only tell the
17247       controller when we want to inform the user of overall success or
17248       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
17249       by SwissTorExit.
17250     - Don't warn when we're using a circuit that ends with a node
17251       excluded in ExcludeExitNodes, but the circuit is not used to access
17252       the outside world. This should help fix bug 1090, but more problems
17253       remain. Bugfix on 0.2.1.6-alpha.
17254     - Work around a small memory leak in some versions of OpenSSL that
17255       stopped the memory used by the hostname TLS extension from being
17256       freed.
17257     - Make our 'torify' script more portable; if we have only one of
17258       'torsocks' or 'tsocks' installed, don't complain to the user;
17259       and explain our warning about tsocks better.
17261   o Minor features:
17262     - Add a "getinfo status/accepted-server-descriptor" controller
17263       command, which is the recommended way for controllers to learn
17264       whether our server descriptor has been successfully received by at
17265       least on directory authority. Un-recommend good-server-descriptor
17266       getinfo and status events until we have a better design for them.
17267     - Update to the "September 4 2009" ip-to-country file.
17270 Changes in version 0.2.2.1-alpha - 2009-08-26
17271   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
17272   Tor clients to bootstrap on networks where only port 80 is reachable,
17273   makes it more straightforward to support hardware crypto accelerators,
17274   and starts the groundwork for gathering stats safely at relays.
17276   o Security fixes:
17277     - Start the process of disabling ".exit" address notation, since it
17278       can be used for a variety of esoteric application-level attacks
17279       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
17280       on 0.0.9rc5.
17282   o New directory authorities:
17283     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
17284       authority.
17286   o Major features:
17287     - New AccelName and AccelDir options add support for dynamic OpenSSL
17288       hardware crypto acceleration engines.
17289     - Tor now supports tunneling all of its outgoing connections over
17290       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
17291       configuration options. Code by Christopher Davis.
17293   o Major bugfixes:
17294     - Send circuit or stream sendme cells when our window has decreased
17295       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
17296       by Karsten when testing the "reduce circuit window" performance
17297       patch. Bugfix on the 54th commit on Tor -- from July 2002,
17298       before the release of Tor 0.0.0. This is the new winner of the
17299       oldest-bug prize.
17301   o New options for gathering stats safely:
17302     - Directory mirrors that set "DirReqStatistics 1" write statistics
17303       about directory requests to disk every 24 hours. As compared to the
17304       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
17305       1) stats are written to disk exactly every 24 hours; 2) estimated
17306       shares of v2 and v3 requests are determined as mean values, not at
17307       the end of a measurement period; 3) unresolved requests are listed
17308       with country code '??'; 4) directories also measure download times.
17309     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
17310       number of exit streams and transferred bytes per port to disk every
17311       24 hours.
17312     - Relays that set "CellStatistics 1" write statistics on how long
17313       cells spend in their circuit queues to disk every 24 hours.
17314     - Entry nodes that set "EntryStatistics 1" write statistics on the
17315       rough number and origins of connecting clients to disk every 24
17316       hours.
17317     - Relays that write any of the above statistics to disk and set
17318       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
17319       their extra-info documents.
17321   o Minor features:
17322     - New --digests command-line switch to output the digests of the
17323       source files Tor was built with.
17324     - The "torify" script now uses torsocks where available.
17325     - The memarea code now uses a sentinel value at the end of each area
17326       to make sure nothing writes beyond the end of an area. This might
17327       help debug some conceivable causes of bug 930.
17328     - Time and memory units in the configuration file can now be set to
17329       fractional units. For example, "2.5 GB" is now a valid value for
17330       AccountingMax.
17331     - Certain Tor clients (such as those behind check.torproject.org) may
17332       want to fetch the consensus in an extra early manner. To enable this
17333       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
17334       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
17335       as only certain clients who must have this information sooner should
17336       set this option.
17337     - Instead of adding the svn revision to the Tor version string, report
17338       the git commit (when we're building from a git checkout).
17340   o Minor bugfixes:
17341     - If any of the v3 certs we download are unparseable, we should
17342       actually notice the failure so we don't retry indefinitely. Bugfix
17343       on 0.2.0.x; reported by "rotator".
17344     - If the cached cert file is unparseable, warn but don't exit.
17345     - Fix possible segmentation fault on directory authorities. Bugfix on
17346       0.2.1.14-rc.
17347     - When Tor fails to parse a descriptor of any kind, dump it to disk.
17348       Might help diagnosing bug 1051.
17350   o Deprecated and removed features:
17351     - The controller no longer accepts the old obsolete "addr-mappings/"
17352       or "unregistered-servers-" GETINFO values.
17353     - Hidden services no longer publish version 0 descriptors, and clients
17354       do not request or use version 0 descriptors. However, the old hidden
17355       service authorities still accept and serve version 0 descriptors
17356       when contacted by older hidden services/clients.
17357     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
17358       always on; using them is necessary for correct forward-compatible
17359       controllers.
17360     - Remove support for .noconnect style addresses. Nobody was using
17361       them, and they provided another avenue for detecting Tor users
17362       via application-level web tricks.
17364   o Packaging changes:
17365     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
17366       installer bundles. See
17367       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
17368       for details of what's new in Vidalia 0.2.3.
17369     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
17370     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
17371       configuration file, rather than the old Privoxy.
17372     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
17373       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
17374     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
17375       better compatibility with OS X 10.6, aka Snow Leopard.
17376     - OS X Vidalia Bundle: The multi-package installer is now replaced
17377       by a simple drag and drop to the /Applications folder. This change
17378       occurred with the upgrade to Vidalia 0.2.3.
17381 Changes in version 0.2.1.19 - 2009-07-28
17382   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
17383   services on Tor 0.2.1.3-alpha through 0.2.1.18.
17385   o Major bugfixes:
17386     - Make accessing hidden services on 0.2.1.x work right again.
17387       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
17388       part of patch provided by "optimist".
17390   o Minor features:
17391     - When a relay/bridge is writing out its identity key fingerprint to
17392       the "fingerprint" file and to its logs, write it without spaces. Now
17393       it will look like the fingerprints in our bridges documentation,
17394       and confuse fewer users.
17396   o Minor bugfixes:
17397     - Relays no longer publish a new server descriptor if they change
17398       their MaxAdvertisedBandwidth config option but it doesn't end up
17399       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
17400       fixes bug 1026. Patch from Sebastian.
17401     - Avoid leaking memory every time we get a create cell but we have
17402       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
17403       fixes bug 1034. Reported by BarkerJr.
17406 Changes in version 0.2.1.18 - 2009-07-24
17407   Tor 0.2.1.18 lays the foundations for performance improvements,
17408   adds status events to help users diagnose bootstrap problems, adds
17409   optional authentication/authorization for hidden services, fixes a
17410   variety of potential anonymity problems, and includes a huge pile of
17411   other features and bug fixes.
17413   o Build fixes:
17414     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
17417 Changes in version 0.2.1.17-rc - 2009-07-07
17418   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
17419   candidate for the 0.2.1.x series. It lays the groundwork for further
17420   client performance improvements, and also fixes a big bug with directory
17421   authorities that were causing them to assign Guard and Stable flags
17422   poorly.
17424   The Windows bundles also finally include the geoip database that we
17425   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
17426   should actually install Torbutton rather than giving you a cryptic
17427   failure message (oops).
17429   o Major features:
17430     - Clients now use the bandwidth values in the consensus, rather than
17431       the bandwidth values in each relay descriptor. This approach opens
17432       the door to more accurate bandwidth estimates once the directory
17433       authorities start doing active measurements. Implements more of
17434       proposal 141.
17436   o Major bugfixes:
17437     - When Tor clients restart after 1-5 days, they discard all their
17438       cached descriptors as too old, but they still use the cached
17439       consensus document. This approach is good for robustness, but
17440       bad for performance: since they don't know any bandwidths, they
17441       end up choosing at random rather than weighting their choice by
17442       speed. Fixed by the above feature of putting bandwidths in the
17443       consensus. Bugfix on 0.2.0.x.
17444     - Directory authorities were neglecting to mark relays down in their
17445       internal histories if the relays fall off the routerlist without
17446       ever being found unreachable. So there were relays in the histories
17447       that haven't been seen for eight months, and are listed as being
17448       up for eight months. This wreaked havoc on the "median wfu"
17449       and "median mtbf" calculations, in turn making Guard and Stable
17450       flags very wrong, hurting network performance. Fixes bugs 696 and
17451       969. Bugfix on 0.2.0.6-alpha.
17453   o Minor bugfixes:
17454     - Serve the DirPortFrontPage page even when we have been approaching
17455       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
17456     - The control port would close the connection before flushing long
17457       replies, such as the network consensus, if a QUIT command was issued
17458       before the reply had completed. Now, the control port flushes all
17459       pending replies before closing the connection. Also fixed a spurious
17460       warning when a QUIT command is issued after a malformed or rejected
17461       AUTHENTICATE command, but before the connection was closed. Patch
17462       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
17463     - When we can't find an intro key for a v2 hidden service descriptor,
17464       fall back to the v0 hidden service descriptor and log a bug message.
17465       Workaround for bug 1024.
17466     - Fix a log message that did not respect the SafeLogging option.
17467       Resolves bug 1027.
17469   o Minor features:
17470     - If we're a relay and we change our IP address, be more verbose
17471       about the reason that made us change. Should help track down
17472       further bugs for relays on dynamic IP addresses.
17475 Changes in version 0.2.0.35 - 2009-06-24
17476   o Security fix:
17477     - Avoid crashing in the presence of certain malformed descriptors.
17478       Found by lark, and by automated fuzzing.
17479     - Fix an edge case where a malicious exit relay could convince a
17480       controller that the client's DNS question resolves to an internal IP
17481       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
17483   o Major bugfixes:
17484     - Finally fix the bug where dynamic-IP relays disappear when their
17485       IP address changes: directory mirrors were mistakenly telling
17486       them their old address if they asked via begin_dir, so they
17487       never got an accurate answer about their new address, so they
17488       just vanished after a day. For belt-and-suspenders, relays that
17489       don't set Address in their config now avoid using begin_dir for
17490       all direct connections. Should fix bugs 827, 883, and 900.
17491     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
17492       that would occur on some exit nodes when DNS failures and timeouts
17493       occurred in certain patterns. Fix for bug 957.
17495   o Minor bugfixes:
17496     - When starting with a cache over a few days old, do not leak
17497       memory for the obsolete router descriptors in it. Bugfix on
17498       0.2.0.33; fixes bug 672.
17499     - Hidden service clients didn't use a cached service descriptor that
17500       was older than 15 minutes, but wouldn't fetch a new one either,
17501       because there was already one in the cache. Now, fetch a v2
17502       descriptor unless the same descriptor was added to the cache within
17503       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
17506 Changes in version 0.2.1.16-rc - 2009-06-20
17507   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
17508   a bunch of minor bugs.
17510   o Security fixes:
17511     - Fix an edge case where a malicious exit relay could convince a
17512       controller that the client's DNS question resolves to an internal IP
17513       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
17515   o Major performance improvements (on 0.2.0.x):
17516     - Disable and refactor some debugging checks that forced a linear scan
17517       over the whole server-side DNS cache. These accounted for over 50%
17518       of CPU time on a relatively busy exit node's gprof profile. Found
17519       by Jacob.
17520     - Disable some debugging checks that appeared in exit node profile
17521       data.
17523   o Minor features:
17524     - Update to the "June 3 2009" ip-to-country file.
17525     - Do not have tor-resolve automatically refuse all .onion addresses;
17526       if AutomapHostsOnResolve is set in your torrc, this will work fine.
17528   o Minor bugfixes (on 0.2.0.x):
17529     - Log correct error messages for DNS-related network errors on
17530       Windows.
17531     - Fix a race condition that could cause crashes or memory corruption
17532       when running as a server with a controller listening for log
17533       messages.
17534     - Avoid crashing when we have a policy specified in a DirPolicy or
17535       SocksPolicy or ReachableAddresses option with ports set on it,
17536       and we re-load the policy. May fix bug 996.
17537     - Hidden service clients didn't use a cached service descriptor that
17538       was older than 15 minutes, but wouldn't fetch a new one either,
17539       because there was already one in the cache. Now, fetch a v2
17540       descriptor unless the same descriptor was added to the cache within
17541       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
17543   o Minor bugfixes (on 0.2.1.x):
17544     - Don't warn users about low port and hibernation mix when they
17545       provide a *ListenAddress directive to fix that. Bugfix on
17546       0.2.1.15-rc.
17547     - When switching back and forth between bridge mode, do not start
17548       gathering GeoIP data until two hours have passed.
17549     - Do not complain that the user has requested an excluded node as
17550       an exit when the node is not really an exit. This could happen
17551       because the circuit was for testing, or an introduction point.
17552       Fix for bug 984.
17555 Changes in version 0.2.1.15-rc - 2009-05-25
17556   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
17557   series. It fixes a major bug on fast exit relays, as well as a variety
17558   of more minor bugs.
17560   o Major bugfixes (on 0.2.0.x):
17561     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
17562       that would occur on some exit nodes when DNS failures and timeouts
17563       occurred in certain patterns. Fix for bug 957.
17565   o Minor bugfixes (on 0.2.0.x):
17566     - Actually return -1 in the error case for read_bandwidth_usage().
17567       Harmless bug, since we currently don't care about the return value
17568       anywhere. Bugfix on 0.2.0.9-alpha.
17569     - Provide a more useful log message if bug 977 (related to buffer
17570       freelists) ever reappears, and do not crash right away.
17571     - Fix an assertion failure on 64-bit platforms when we allocated
17572       memory right up to the end of a memarea, then realigned the memory
17573       one step beyond the end. Fixes a possible cause of bug 930.
17574     - Protect the count of open sockets with a mutex, so we can't
17575       corrupt it when two threads are closing or opening sockets at once.
17576       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
17577     - Don't allow a bridge to publish its router descriptor to a
17578       non-bridge directory authority. Fixes part of bug 932.
17579     - When we change to or from being a bridge, reset our counts of
17580       client usage by country. Fixes bug 932.
17581     - Fix a bug that made stream bandwidth get misreported to the
17582       controller.
17583     - Stop using malloc_usable_size() to use more area than we had
17584       actually allocated: it was safe, but made valgrind really unhappy.
17585     - Fix a memory leak when v3 directory authorities load their keys
17586       and cert from disk. Bugfix on 0.2.0.1-alpha.
17588   o Minor bugfixes (on 0.2.1.x):
17589     - Fix use of freed memory when deciding to mark a non-addable
17590       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
17593 Changes in version 0.2.1.14-rc - 2009-04-12
17594   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
17595   series. It begins fixing some major performance problems, and also
17596   finally addresses the bug that was causing relays on dynamic IP
17597   addresses to fall out of the directory.
17599   o Major features:
17600     - Clients replace entry guards that were chosen more than a few months
17601       ago. This change should significantly improve client performance,
17602       especially once more people upgrade, since relays that have been
17603       a guard for a long time are currently overloaded.
17605   o Major bugfixes (on 0.2.0):
17606     - Finally fix the bug where dynamic-IP relays disappear when their
17607       IP address changes: directory mirrors were mistakenly telling
17608       them their old address if they asked via begin_dir, so they
17609       never got an accurate answer about their new address, so they
17610       just vanished after a day. For belt-and-suspenders, relays that
17611       don't set Address in their config now avoid using begin_dir for
17612       all direct connections. Should fix bugs 827, 883, and 900.
17613     - Relays were falling out of the networkstatus consensus for
17614       part of a day if they changed their local config but the
17615       authorities discarded their new descriptor as "not sufficiently
17616       different". Now directory authorities accept a descriptor as changed
17617       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
17618       patch by Sebastian.
17619     - Avoid crashing in the presence of certain malformed descriptors.
17620       Found by lark, and by automated fuzzing.
17622   o Minor features:
17623     - When generating circuit events with verbose nicknames for
17624       controllers, try harder to look up nicknames for routers on a
17625       circuit. (Previously, we would look in the router descriptors we had
17626       for nicknames, but not in the consensus.) Partial fix for bug 941.
17627     - If the bridge config line doesn't specify a port, assume 443.
17628       This makes bridge lines a bit smaller and easier for users to
17629       understand.
17630     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
17631       bytes (aka 20KB/s), to match our documentation. Also update
17632       directory authorities so they always assign the Fast flag to relays
17633       with 20KB/s of capacity. Now people running relays won't suddenly
17634       find themselves not seeing any use, if the network gets faster
17635       on average.
17636     - Update to the "April 3 2009" ip-to-country file.
17638   o Minor bugfixes:
17639     - Avoid trying to print raw memory to the logs when we decide to
17640       give up on downloading a given relay descriptor. Bugfix on
17641       0.2.1.9-alpha.
17642     - In tor-resolve, when the Tor client to use is specified by
17643       <hostname>:<port>, actually use the specified port rather than
17644       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
17645     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
17646     - When starting with a cache over a few days old, do not leak
17647       memory for the obsolete router descriptors in it. Bugfix on
17648       0.2.0.33.
17649     - Avoid double-free on list of successfully uploaded hidden
17650       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
17651     - Change memarea_strndup() implementation to work even when
17652       duplicating a string at the end of a page. This bug was
17653       harmless for now, but could have meant crashes later. Fix by
17654       lark. Bugfix on 0.2.1.1-alpha.
17655     - Limit uploaded directory documents to be 16M rather than 500K.
17656       The directory authorities were refusing v3 consensus votes from
17657       other authorities, since the votes are now 504K. Fixes bug 959;
17658       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
17659     - Directory authorities should never send a 503 "busy" response to
17660       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
17661       bug 959.
17664 Changes in version 0.2.1.13-alpha - 2009-03-09
17665   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
17666   cleanups. We're finally getting close to a release candidate.
17668   o Major bugfixes:
17669     - Correctly update the list of which countries we exclude as
17670       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
17671       lark. Bugfix on 0.2.1.6-alpha.
17673   o Minor bugfixes (on 0.2.0.x and earlier):
17674     - Automatically detect MacOSX versions earlier than 10.4.0, and
17675       disable kqueue from inside Tor when running with these versions.
17676       We previously did this from the startup script, but that was no
17677       help to people who didn't use the startup script. Resolves bug 863.
17678     - When we had picked an exit node for a connection, but marked it as
17679       "optional", and it turned out we had no onion key for the exit,
17680       stop wanting that exit and try again. This situation may not
17681       be possible now, but will probably become feasible with proposal
17682       158. Spotted by rovv. Fixes another case of bug 752.
17683     - Clients no longer cache certificates for authorities they do not
17684       recognize. Bugfix on 0.2.0.9-alpha.
17685     - When we can't transmit a DNS request due to a network error, retry
17686       it after a while, and eventually transmit a failing response to
17687       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
17688     - If the controller claimed responsibility for a stream, but that
17689       stream never finished making its connection, it would live
17690       forever in circuit_wait state. Now we close it after SocksTimeout
17691       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
17692     - Drop begin cells to a hidden service if they come from the middle
17693       of a circuit. Patch from lark.
17694     - When we erroneously receive two EXTEND cells for the same circuit
17695       ID on the same connection, drop the second. Patch from lark.
17696     - Fix a crash that occurs on exit nodes when a nameserver request
17697       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
17698       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
17699       bug 929.
17700     - Do not assume that a stack-allocated character array will be
17701       64-bit aligned on platforms that demand that uint64_t access is
17702       aligned. Possible fix for bug 604.
17703     - Parse dates and IPv4 addresses in a locale- and libc-independent
17704       manner, to avoid platform-dependent behavior on malformed input.
17705     - Build correctly when configured to build outside the main source
17706       path. Patch from Michael Gold.
17707     - We were already rejecting relay begin cells with destination port
17708       of 0. Now also reject extend cells with destination port or address
17709       of 0. Suggested by lark.
17711   o Minor bugfixes (on 0.2.1.x):
17712     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
17713       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
17714     - If we're an exit node, scrub the IP address to which we are exiting
17715       in the logs. Bugfix on 0.2.1.8-alpha.
17717   o Minor features:
17718     - On Linux, use the prctl call to re-enable core dumps when the user
17719       is option is set.
17720     - New controller event NEWCONSENSUS that lists the networkstatus
17721       lines for every recommended relay. Now controllers like Torflow
17722       can keep up-to-date on which relays they should be using.
17723     - Update to the "February 26 2009" ip-to-country file.
17726 Changes in version 0.2.0.34 - 2009-02-08
17727   Tor 0.2.0.34 features several more security-related fixes. You should
17728   upgrade, especially if you run an exit relay (remote crash) or a
17729   directory authority (remote infinite loop), or you're on an older
17730   (pre-XP) or not-recently-patched Windows (remote exploit).
17732   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
17733   have many known flaws, and nobody should be using them. You should
17734   upgrade. If you're using a Linux or BSD and its packages are obsolete,
17735   stop using those packages and upgrade anyway.
17737   o Security fixes:
17738     - Fix an infinite-loop bug on handling corrupt votes under certain
17739       circumstances. Bugfix on 0.2.0.8-alpha.
17740     - Fix a temporary DoS vulnerability that could be performed by
17741       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
17742     - Avoid a potential crash on exit nodes when processing malformed
17743       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
17744     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
17745       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
17747   o Minor bugfixes:
17748     - Fix compilation on systems where time_t is a 64-bit integer.
17749       Patch from Matthias Drochner.
17750     - Don't consider expiring already-closed client connections. Fixes
17751       bug 893. Bugfix on 0.0.2pre20.
17754 Changes in version 0.2.1.12-alpha - 2009-02-08
17755   Tor 0.2.1.12-alpha features several more security-related fixes. You
17756   should upgrade, especially if you run an exit relay (remote crash) or
17757   a directory authority (remote infinite loop), or you're on an older
17758   (pre-XP) or not-recently-patched Windows (remote exploit). It also
17759   includes a big pile of minor bugfixes and cleanups.
17761   o Security fixes:
17762     - Fix an infinite-loop bug on handling corrupt votes under certain
17763       circumstances. Bugfix on 0.2.0.8-alpha.
17764     - Fix a temporary DoS vulnerability that could be performed by
17765       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
17766     - Avoid a potential crash on exit nodes when processing malformed
17767       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
17769   o Minor bugfixes:
17770     - Let controllers actually ask for the "clients_seen" event for
17771       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
17772       reported by Matt Edman.
17773     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
17774       0.2.1.11-alpha.
17775     - Fix a bug in address parsing that was preventing bridges or hidden
17776       service targets from being at IPv6 addresses.
17777     - Solve a bug that kept hardware crypto acceleration from getting
17778       enabled when accounting was turned on. Fixes bug 907. Bugfix on
17779       0.0.9pre6.
17780     - Remove a bash-ism from configure.in to build properly on non-Linux
17781       platforms. Bugfix on 0.2.1.1-alpha.
17782     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
17783       headers. Bugfix on 0.2.0.10-alpha.
17784     - Don't consider expiring already-closed client connections. Fixes
17785       bug 893. Bugfix on 0.0.2pre20.
17786     - Fix another interesting corner-case of bug 891 spotted by rovv:
17787       Previously, if two hosts had different amounts of clock drift, and
17788       one of them created a new connection with just the wrong timing,
17789       the other might decide to deprecate the new connection erroneously.
17790       Bugfix on 0.1.1.13-alpha.
17791     - Resolve a very rare crash bug that could occur when the user forced
17792       a nameserver reconfiguration during the middle of a nameserver
17793       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
17794     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
17795       Bugfix on 0.2.1.7-alpha.
17796     - If we're using bridges and our network goes away, be more willing
17797       to forgive our bridges and try again when we get an application
17798       request. Bugfix on 0.2.0.x.
17800   o Minor features:
17801     - Support platforms where time_t is 64 bits long. (Congratulations,
17802       NetBSD!) Patch from Matthias Drochner.
17803     - Add a 'getinfo status/clients-seen' controller command, in case
17804       controllers want to hear clients_seen events but connect late.
17806   o Build changes:
17807     - Disable GCC's strict alias optimization by default, to avoid the
17808       likelihood of its introducing subtle bugs whenever our code violates
17809       the letter of C99's alias rules.
17812 Changes in version 0.2.0.33 - 2009-01-21
17813   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
17814   useful to users. It also finally fixes a bug where a relay or client
17815   that's been off for many days would take a long time to bootstrap.
17817   This update also fixes an important security-related bug reported by
17818   Ilja van Sprundel. You should upgrade. (We'll send out more details
17819   about the bug once people have had some time to upgrade.)
17821   o Security fixes:
17822     - Fix a heap-corruption bug that may be remotely triggerable on
17823       some platforms. Reported by Ilja van Sprundel.
17825   o Major bugfixes:
17826     - When a stream at an exit relay is in state "resolving" or
17827       "connecting" and it receives an "end" relay cell, the exit relay
17828       would silently ignore the end cell and not close the stream. If
17829       the client never closes the circuit, then the exit relay never
17830       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
17831       reported by "wood".
17832     - When sending CREATED cells back for a given circuit, use a 64-bit
17833       connection ID to find the right connection, rather than an addr:port
17834       combination. Now that we can have multiple OR connections between
17835       the same ORs, it is no longer possible to use addr:port to uniquely
17836       identify a connection.
17837     - Bridge relays that had DirPort set to 0 would stop fetching
17838       descriptors shortly after startup, and then briefly resume
17839       after a new bandwidth test and/or after publishing a new bridge
17840       descriptor. Bridge users that try to bootstrap from them would
17841       get a recent networkstatus but would get descriptors from up to
17842       18 hours earlier, meaning most of the descriptors were obsolete
17843       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
17844     - Prevent bridge relays from serving their 'extrainfo' document
17845       to anybody who asks, now that extrainfo docs include potentially
17846       sensitive aggregated client geoip summaries. Bugfix on
17847       0.2.0.13-alpha.
17848     - If the cached networkstatus consensus is more than five days old,
17849       discard it rather than trying to use it. In theory it could be
17850       useful because it lists alternate directory mirrors, but in practice
17851       it just means we spend many minutes trying directory mirrors that
17852       are long gone from the network. Also discard router descriptors as
17853       we load them if they are more than five days old, since the onion
17854       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
17856   o Minor bugfixes:
17857     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
17858       could make gcc generate non-functional binary search code. Bugfix
17859       on 0.2.0.10-alpha.
17860     - Build correctly on platforms without socklen_t.
17861     - Compile without warnings on solaris.
17862     - Avoid potential crash on internal error during signature collection.
17863       Fixes bug 864. Patch from rovv.
17864     - Correct handling of possible malformed authority signing key
17865       certificates with internal signature types. Fixes bug 880.
17866       Bugfix on 0.2.0.3-alpha.
17867     - Fix a hard-to-trigger resource leak when logging credential status.
17868       CID 349.
17869     - When we can't initialize DNS because the network is down, do not
17870       automatically stop Tor from starting. Instead, we retry failed
17871       dns_init() every 10 minutes, and change the exit policy to reject
17872       *:* until one succeeds. Fixes bug 691.
17873     - Use 64 bits instead of 32 bits for connection identifiers used with
17874       the controller protocol, to greatly reduce risk of identifier reuse.
17875     - When we're choosing an exit node for a circuit, and we have
17876       no pending streams, choose a good general exit rather than one that
17877       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
17878     - Fix another case of assuming, when a specific exit is requested,
17879       that we know more than the user about what hosts it allows.
17880       Fixes one case of bug 752. Patch from rovv.
17881     - Clip the MaxCircuitDirtiness config option to a minimum of 10
17882       seconds. Warn the user if lower values are given in the
17883       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
17884     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
17885       user if lower values are given in the configuration. Bugfix on
17886       0.1.1.17-rc. Patch by Sebastian.
17887     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
17888       the cache because we already had a v0 descriptor with the same ID.
17889       Bugfix on 0.2.0.18-alpha.
17890     - Fix a race condition when freeing keys shared between main thread
17891       and CPU workers that could result in a memory leak. Bugfix on
17892       0.1.0.1-rc. Fixes bug 889.
17893     - Send a valid END cell back when a client tries to connect to a
17894       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
17895       840. Patch from rovv.
17896     - Check which hops rendezvous stream cells are associated with to
17897       prevent possible guess-the-streamid injection attacks from
17898       intermediate hops. Fixes another case of bug 446. Based on patch
17899       from rovv.
17900     - If a broken client asks a non-exit router to connect somewhere,
17901       do not even do the DNS lookup before rejecting the connection.
17902       Fixes another case of bug 619. Patch from rovv.
17903     - When a relay gets a create cell it can't decrypt (e.g. because it's
17904       using the wrong onion key), we were dropping it and letting the
17905       client time out. Now actually answer with a destroy cell. Fixes
17906       bug 904. Bugfix on 0.0.2pre8.
17908   o Minor bugfixes (hidden services):
17909     - Do not throw away existing introduction points on SIGHUP. Bugfix on
17910       0.0.6pre1. Patch by Karsten. Fixes bug 874.
17912   o Minor features:
17913     - Report the case where all signatures in a detached set are rejected
17914       differently than the case where there is an error handling the
17915       detached set.
17916     - When we realize that another process has modified our cached
17917       descriptors, print out a more useful error message rather than
17918       triggering an assertion. Fixes bug 885. Patch from Karsten.
17919     - Implement the 0x20 hack to better resist DNS poisoning: set the
17920       case on outgoing DNS requests randomly, and reject responses that do
17921       not match the case correctly. This logic can be disabled with the
17922       ServerDNSRamdomizeCase setting, if you are using one of the 0.3%
17923       of servers that do not reliably preserve case in replies. See
17924       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
17925       for more info.
17926     - Check DNS replies for more matching fields to better resist DNS
17927       poisoning.
17928     - Never use OpenSSL compression: it wastes RAM and CPU trying to
17929       compress cells, which are basically all encrypted, compressed, or
17930       both.
17933 Changes in version 0.2.1.11-alpha - 2009-01-20
17934   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
17935   week it will take a long time to bootstrap again" bug. It also fixes
17936   an important security-related bug reported by Ilja van Sprundel. You
17937   should upgrade. (We'll send out more details about the bug once people
17938   have had some time to upgrade.)
17940   o Security fixes:
17941     - Fix a heap-corruption bug that may be remotely triggerable on
17942       some platforms. Reported by Ilja van Sprundel.
17944   o Major bugfixes:
17945     - Discard router descriptors as we load them if they are more than
17946       five days old. Otherwise if Tor is off for a long time and then
17947       starts with cached descriptors, it will try to use the onion
17948       keys in those obsolete descriptors when building circuits. Bugfix
17949       on 0.2.0.x. Fixes bug 887.
17951   o Minor features:
17952     - Try to make sure that the version of Libevent we're running with
17953       is binary-compatible with the one we built with. May address bug
17954       897 and others.
17955     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
17956       for bug 905. Bugfix on 0.2.1.7-alpha.
17957     - Add a new --enable-local-appdata configuration switch to change
17958       the default location of the datadir on win32 from APPDATA to
17959       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
17960       entirely. Patch from coderman.
17962   o Minor bugfixes:
17963     - Make outbound DNS packets respect the OutboundBindAddress setting.
17964       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
17965     - When our circuit fails at the first hop (e.g. we get a destroy
17966       cell back), avoid using that OR connection anymore, and also
17967       tell all the one-hop directory requests waiting for it that they
17968       should fail. Bugfix on 0.2.1.3-alpha.
17969     - In the torify(1) manpage, mention that tsocks will leak your
17970       DNS requests.
17973 Changes in version 0.2.1.10-alpha - 2009-01-06
17974   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
17975   would make the bridge relay not so useful if it had DirPort set to 0,
17976   and one that could let an attacker learn a little bit of information
17977   about the bridge's users), and a bug that would cause your Tor relay
17978   to ignore a circuit create request it can't decrypt (rather than reply
17979   with an error). It also fixes a wide variety of other bugs.
17981   o Major bugfixes:
17982     - If the cached networkstatus consensus is more than five days old,
17983       discard it rather than trying to use it. In theory it could
17984       be useful because it lists alternate directory mirrors, but in
17985       practice it just means we spend many minutes trying directory
17986       mirrors that are long gone from the network. Helps bug 887 a bit;
17987       bugfix on 0.2.0.x.
17988     - Bridge relays that had DirPort set to 0 would stop fetching
17989       descriptors shortly after startup, and then briefly resume
17990       after a new bandwidth test and/or after publishing a new bridge
17991       descriptor. Bridge users that try to bootstrap from them would
17992       get a recent networkstatus but would get descriptors from up to
17993       18 hours earlier, meaning most of the descriptors were obsolete
17994       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
17995     - Prevent bridge relays from serving their 'extrainfo' document
17996       to anybody who asks, now that extrainfo docs include potentially
17997       sensitive aggregated client geoip summaries. Bugfix on
17998       0.2.0.13-alpha.
18000   o Minor features:
18001     - New controller event "clients_seen" to report a geoip-based summary
18002       of which countries we've seen clients from recently. Now controllers
18003       like Vidalia can show bridge operators that they're actually making
18004       a difference.
18005     - Build correctly against versions of OpenSSL 0.9.8 or later built
18006       without support for deprecated functions.
18007     - Update to the "December 19 2008" ip-to-country file.
18009   o Minor bugfixes (on 0.2.0.x):
18010     - Authorities now vote for the Stable flag for any router whose
18011       weighted MTBF is at least 5 days, regardless of the mean MTBF.
18012     - Do not remove routers as too old if we do not have any consensus
18013       document. Bugfix on 0.2.0.7-alpha.
18014     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
18015       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
18016     - When an exit relay resolves a stream address to a local IP address,
18017       do not just keep retrying that same exit relay over and
18018       over. Instead, just close the stream. Addresses bug 872. Bugfix
18019       on 0.2.0.32. Patch from rovv.
18020     - If a hidden service sends us an END cell, do not consider
18021       retrying the connection; just close it. Patch from rovv.
18022     - When we made bridge authorities stop serving bridge descriptors over
18023       unencrypted links, we also broke DirPort reachability testing for
18024       bridges. So bridges with a non-zero DirPort were printing spurious
18025       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
18026     - When a relay gets a create cell it can't decrypt (e.g. because it's
18027       using the wrong onion key), we were dropping it and letting the
18028       client time out. Now actually answer with a destroy cell. Fixes
18029       bug 904. Bugfix on 0.0.2pre8.
18030     - Squeeze 2-5% out of client performance (according to oprofile) by
18031       improving the implementation of some policy-manipulation functions.
18033   o Minor bugfixes (on 0.2.1.x):
18034     - Make get_interface_address() function work properly again; stop
18035       guessing the wrong parts of our address as our address.
18036     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
18037       send on that circuit. Otherwise we might violate the proposal-110
18038       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
18039       thanks to Karsten.
18040     - When we're sending non-EXTEND cells to the first hop in a circuit,
18041       for example to use an encrypted directory connection, we don't need
18042       to use RELAY_EARLY cells: the first hop knows what kind of cell
18043       it is, and nobody else can even see the cell type. Conserving
18044       RELAY_EARLY cells makes it easier to cannibalize circuits like
18045       this later.
18046     - Stop logging nameserver addresses in reverse order.
18047     - If we are retrying a directory download slowly over and over, do
18048       not automatically give up after the 254th failure. Bugfix on
18049       0.2.1.9-alpha.
18050     - Resume reporting accurate "stream end" reasons to the local control
18051       port. They were lost in the changes for Proposal 148. Bugfix on
18052       0.2.1.9-alpha.
18054   o Deprecated and removed features:
18055     - The old "tor --version --version" command, which would print out
18056       the subversion "Id" of most of the source files, is now removed. It
18057       turned out to be less useful than we'd expected, and harder to
18058       maintain.
18060   o Code simplifications and refactoring:
18061     - Change our header file guard macros to be less likely to conflict
18062       with system headers. Adam Langley noticed that we were conflicting
18063       with log.h on Android.
18064     - Tool-assisted documentation cleanup. Nearly every function or
18065       static variable in Tor should have its own documentation now.
18068 Changes in version 0.2.1.9-alpha - 2008-12-25
18069   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
18071   o New directory authorities:
18072     - gabelmoo (the authority run by Karsten Loesing) now has a new
18073       IP address.
18075   o Security fixes:
18076     - Never use a connection with a mismatched address to extend a
18077       circuit, unless that connection is canonical. A canonical
18078       connection is one whose address is authenticated by the router's
18079       identity key, either in a NETINFO cell or in a router descriptor.
18080     - Avoid a possible memory corruption bug when receiving hidden service
18081       descriptors. Bugfix on 0.2.1.6-alpha.
18083   o Major bugfixes:
18084     - Fix a logic error that would automatically reject all but the first
18085       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
18086       part of bug 813/868. Bug spotted by coderman.
18087     - When a stream at an exit relay is in state "resolving" or
18088       "connecting" and it receives an "end" relay cell, the exit relay
18089       would silently ignore the end cell and not close the stream. If
18090       the client never closes the circuit, then the exit relay never
18091       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
18092       reported by "wood".
18093     - When we can't initialize DNS because the network is down, do not
18094       automatically stop Tor from starting. Instead, retry failed
18095       dns_init() every 10 minutes, and change the exit policy to reject
18096       *:* until one succeeds. Fixes bug 691.
18098   o Minor features:
18099     - Give a better error message when an overzealous init script says
18100       "sudo -u username tor --user username". Makes Bug 882 easier for
18101       users to diagnose.
18102     - When a directory authority gives us a new guess for our IP address,
18103       log which authority we used. Hopefully this will help us debug
18104       the recent complaints about bad IP address guesses.
18105     - Detect svn revision properly when we're using git-svn.
18106     - Try not to open more than one descriptor-downloading connection
18107       to an authority at once. This should reduce load on directory
18108       authorities. Fixes bug 366.
18109     - Add cross-certification to newly generated certificates, so that
18110       a signing key is enough information to look up a certificate.
18111       Partial implementation of proposal 157.
18112     - Start serving certificates by <identity digest, signing key digest>
18113       pairs. Partial implementation of proposal 157.
18114     - Clients now never report any stream end reason except 'MISC'.
18115       Implements proposal 148.
18116     - On platforms with a maximum syslog string length, truncate syslog
18117       messages to that length ourselves, rather than relying on the
18118       system to do it for us.
18119     - Optimize out calls to time(NULL) that occur for every IO operation,
18120       or for every cell. On systems where time() is a slow syscall,
18121       this fix will be slightly helpful.
18122     - Exit servers can now answer resolve requests for ip6.arpa addresses.
18123     - When we download a descriptor that we then immediately (as
18124       a directory authority) reject, do not retry downloading it right
18125       away. Should save some bandwidth on authorities. Fix for bug
18126       888. Patch by Sebastian Hahn.
18127     - When a download gets us zero good descriptors, do not notify
18128       Tor that new directory information has arrived.
18129     - Avoid some nasty corner cases in the logic for marking connections
18130       as too old or obsolete or noncanonical for circuits. Partial
18131       bugfix on bug 891.
18133   o Minor features (controller):
18134     - New CONSENSUS_ARRIVED event to note when a new consensus has
18135       been fetched and validated.
18136     - When we realize that another process has modified our cached
18137       descriptors file, print out a more useful error message rather
18138       than triggering an assertion. Fixes bug 885. Patch from Karsten.
18139     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
18140       controllers to prevent SIGHUP from reloading the
18141       configuration. Fixes bug 856.
18143   o Minor bugfixes:
18144     - Resume using the correct "REASON=" stream when telling the
18145       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
18146     - When a canonical connection appears later in our internal list
18147       than a noncanonical one for a given OR ID, always use the
18148       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
18149       Spotted by rovv.
18150     - Clip the MaxCircuitDirtiness config option to a minimum of 10
18151       seconds. Warn the user if lower values are given in the
18152       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
18153     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
18154       user if lower values are given in the configuration. Bugfix on
18155       0.1.1.17-rc. Patch by Sebastian.
18156     - Fix a race condition when freeing keys shared between main thread
18157       and CPU workers that could result in a memory leak. Bugfix on
18158       0.1.0.1-rc. Fixes bug 889.
18160   o Minor bugfixes (hidden services):
18161     - Do not throw away existing introduction points on SIGHUP (bugfix on
18162       0.0.6pre1); also, do not stall hidden services because we're
18163       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
18164       by John Brooks. Patch by Karsten. Fixes bug 874.
18165     - Fix a memory leak when we decline to add a v2 rendezvous
18166       descriptor to the cache because we already had a v0 descriptor
18167       with the same ID. Bugfix on 0.2.0.18-alpha.
18169   o Deprecated and removed features:
18170     - RedirectExits has been removed. It was deprecated since
18171       0.2.0.3-alpha.
18172     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
18173       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
18174     - Cell pools are now always enabled; --disable-cell-pools is ignored.
18176   o Code simplifications and refactoring:
18177     - Rename the confusing or_is_obsolete field to the more appropriate
18178       is_bad_for_new_circs, and move it to or_connection_t where it
18179       belongs.
18180     - Move edge-only flags from connection_t to edge_connection_t: not
18181       only is this better coding, but on machines of plausible alignment,
18182       it should save 4-8 bytes per connection_t. "Every little bit helps."
18183     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
18184       for consistency; keep old option working for backward compatibility.
18185     - Simplify the code for finding connections to use for a circuit.
18188 Changes in version 0.2.1.8-alpha - 2008-12-08
18189   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
18190   builds better on unusual platforms like Solaris and old OS X, and
18191   fixes a variety of other issues.
18193   o Major features:
18194     - New DirPortFrontPage option that takes an html file and publishes
18195       it as "/" on the DirPort. Now relay operators can provide a
18196       disclaimer without needing to set up a separate webserver. There's
18197       a sample disclaimer in contrib/tor-exit-notice.html.
18199   o Security fixes:
18200     - When the client is choosing entry guards, now it selects at most
18201       one guard from a given relay family. Otherwise we could end up with
18202       all of our entry points into the network run by the same operator.
18203       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
18205   o Major bugfixes:
18206     - Fix a DOS opportunity during the voting signature collection process
18207       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
18208     - Fix a possible segfault when establishing an exit connection. Bugfix
18209       on 0.2.1.5-alpha.
18211   o Minor bugfixes:
18212     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
18213       bug 859.
18214     - Made Tor a little less aggressive about deleting expired
18215       certificates. Partial fix for bug 854.
18216     - Stop doing unaligned memory access that generated bus errors on
18217       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
18218     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
18219       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
18220     - Make USR2 log-level switch take effect immediately. Bugfix on
18221       0.1.2.8-beta.
18222     - If one win32 nameserver fails to get added, continue adding the
18223       rest, and don't automatically fail.
18224     - Use fcntl() for locking when flock() is not available. Should fix
18225       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
18226     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
18227       could make gcc generate non-functional binary search code. Bugfix
18228       on 0.2.0.10-alpha.
18229     - Build correctly on platforms without socklen_t.
18230     - Avoid potential crash on internal error during signature collection.
18231       Fixes bug 864. Patch from rovv.
18232     - Do not use C's stdio library for writing to log files. This will
18233       improve logging performance by a minute amount, and will stop
18234       leaking fds when our disk is full. Fixes bug 861.
18235     - Stop erroneous use of O_APPEND in cases where we did not in fact
18236       want to re-seek to the end of a file before every last write().
18237     - Correct handling of possible malformed authority signing key
18238       certificates with internal signature types. Fixes bug 880. Bugfix
18239       on 0.2.0.3-alpha.
18240     - Fix a hard-to-trigger resource leak when logging credential status.
18241       CID 349.
18243   o Minor features:
18244     - Directory mirrors no longer fetch the v1 directory or
18245       running-routers files. They are obsolete, and nobody asks for them
18246       anymore. This is the first step to making v1 authorities obsolete.
18248   o Minor features (controller):
18249     - Return circuit purposes in response to GETINFO circuit-status. Fixes
18250       bug 858.
18253 Changes in version 0.2.0.32 - 2008-11-20
18254   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
18255   packages (and maybe other packages) noticed by Theo de Raadt, fixes
18256   a smaller security flaw that might allow an attacker to access local
18257   services, further improves hidden service performance, and fixes a
18258   variety of other issues.
18260   o Security fixes:
18261     - The "User" and "Group" config options did not clear the
18262       supplementary group entries for the Tor process. The "User" option
18263       is now more robust, and we now set the groups to the specified
18264       user's primary group. The "Group" option is now ignored. For more
18265       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
18266       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
18267       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
18268     - The "ClientDNSRejectInternalAddresses" config option wasn't being
18269       consistently obeyed: if an exit relay refuses a stream because its
18270       exit policy doesn't allow it, we would remember what IP address
18271       the relay said the destination address resolves to, even if it's
18272       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
18274   o Major bugfixes:
18275     - Fix a DOS opportunity during the voting signature collection process
18276       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
18278   o Major bugfixes (hidden services):
18279     - When fetching v0 and v2 rendezvous service descriptors in parallel,
18280       we were failing the whole hidden service request when the v0
18281       descriptor fetch fails, even if the v2 fetch is still pending and
18282       might succeed. Similarly, if the last v2 fetch fails, we were
18283       failing the whole hidden service request even if a v0 fetch is
18284       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
18285     - When extending a circuit to a hidden service directory to upload a
18286       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
18287       requests failed, because the router descriptor has not been
18288       downloaded yet. In these cases, do not attempt to upload the
18289       rendezvous descriptor, but wait until the router descriptor is
18290       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
18291       descriptor from a hidden service directory for which the router
18292       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
18293       on 0.2.0.10-alpha.
18295   o Minor bugfixes:
18296     - Fix several infrequent memory leaks spotted by Coverity.
18297     - When testing for libevent functions, set the LDFLAGS variable
18298       correctly. Found by Riastradh.
18299     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
18300       bootstrapping with tunneled directory connections. Bugfix on
18301       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
18302     - When asked to connect to A.B.exit:80, if we don't know the IP for A
18303       and we know that server B rejects most-but-not all connections to
18304       port 80, we would previously reject the connection. Now, we assume
18305       the user knows what they were asking for. Fixes bug 752. Bugfix
18306       on 0.0.9rc5. Diagnosed by BarkerJr.
18307     - If we overrun our per-second write limits a little, count this as
18308       having used up our write allocation for the second, and choke
18309       outgoing directory writes. Previously, we had only counted this when
18310       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
18311       Bugfix on 0.2.0.x (??).
18312     - Remove the old v2 directory authority 'lefkada' from the default
18313       list. It has been gone for many months.
18314     - Stop doing unaligned memory access that generated bus errors on
18315       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
18316     - Make USR2 log-level switch take effect immediately. Bugfix on
18317       0.1.2.8-beta.
18319   o Minor bugfixes (controller):
18320     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
18321       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
18324 Changes in version 0.2.1.7-alpha - 2008-11-08
18325   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
18326   packages (and maybe other packages) noticed by Theo de Raadt, fixes
18327   a smaller security flaw that might allow an attacker to access local
18328   services, adds better defense against DNS poisoning attacks on exit
18329   relays, further improves hidden service performance, and fixes a
18330   variety of other issues.
18332   o Security fixes:
18333     - The "ClientDNSRejectInternalAddresses" config option wasn't being
18334       consistently obeyed: if an exit relay refuses a stream because its
18335       exit policy doesn't allow it, we would remember what IP address
18336       the relay said the destination address resolves to, even if it's
18337       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
18338     - The "User" and "Group" config options did not clear the
18339       supplementary group entries for the Tor process. The "User" option
18340       is now more robust, and we now set the groups to the specified
18341       user's primary group. The "Group" option is now ignored. For more
18342       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
18343       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
18344       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
18345     - Do not use or believe expired v3 authority certificates. Patch
18346       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
18348   o Minor features:
18349     - Now NodeFamily and MyFamily config options allow spaces in
18350       identity fingerprints, so it's easier to paste them in.
18351       Suggested by Lucky Green.
18352     - Implement the 0x20 hack to better resist DNS poisoning: set the
18353       case on outgoing DNS requests randomly, and reject responses that do
18354       not match the case correctly. This logic can be disabled with the
18355       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
18356       of servers that do not reliably preserve case in replies. See
18357       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
18358       for more info.
18359     - Preserve case in replies to DNSPort requests in order to support
18360       the 0x20 hack for resisting DNS poisoning attacks.
18362   o Hidden service performance improvements:
18363     - When the client launches an introduction circuit, retry with a
18364       new circuit after 30 seconds rather than 60 seconds.
18365     - Launch a second client-side introduction circuit in parallel
18366       after a delay of 15 seconds (based on work by Christian Wilms).
18367     - Hidden services start out building five intro circuits rather
18368       than three, and when the first three finish they publish a service
18369       descriptor using those. Now we publish our service descriptor much
18370       faster after restart.
18372   o Minor bugfixes:
18373     - Minor fix in the warning messages when you're having problems
18374       bootstrapping; also, be more forgiving of bootstrap problems when
18375       we're still making incremental progress on a given bootstrap phase.
18376     - When we're choosing an exit node for a circuit, and we have
18377       no pending streams, choose a good general exit rather than one that
18378       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
18379     - Send a valid END cell back when a client tries to connect to a
18380       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
18381       840. Patch from rovv.
18382     - If a broken client asks a non-exit router to connect somewhere,
18383       do not even do the DNS lookup before rejecting the connection.
18384       Fixes another case of bug 619. Patch from rovv.
18385     - Fix another case of assuming, when a specific exit is requested,
18386       that we know more than the user about what hosts it allows.
18387       Fixes another case of bug 752. Patch from rovv.
18388     - Check which hops rendezvous stream cells are associated with to
18389       prevent possible guess-the-streamid injection attacks from
18390       intermediate hops. Fixes another case of bug 446. Based on patch
18391       from rovv.
18392     - Avoid using a negative right-shift when comparing 32-bit
18393       addresses. Possible fix for bug 845 and bug 811.
18394     - Make the assert_circuit_ok() function work correctly on circuits that
18395       have already been marked for close.
18396     - Fix read-off-the-end-of-string error in unit tests when decoding
18397       introduction points.
18398     - Fix uninitialized size field for memory area allocation: may improve
18399       memory performance during directory parsing.
18400     - Treat duplicate certificate fetches as failures, so that we do
18401       not try to re-fetch an expired certificate over and over and over.
18402     - Do not say we're fetching a certificate when we'll in fact skip it
18403       because of a pending download.
18406 Changes in version 0.2.1.6-alpha - 2008-09-30
18407   Tor 0.2.1.6-alpha further improves performance and robustness of
18408   hidden services, starts work on supporting per-country relay selection,
18409   and fixes a variety of smaller issues.
18411   o Major features:
18412     - Implement proposal 121: make it possible to build hidden services
18413       that only certain clients are allowed to connect to. This is
18414       enforced at several points, so that unauthorized clients are unable
18415       to send INTRODUCE cells to the service, or even (depending on the
18416       type of authentication) to learn introduction points. This feature
18417       raises the bar for certain kinds of active attacks against hidden
18418       services. Code by Karsten Loesing.
18419     - Relays now store and serve v2 hidden service descriptors by default,
18420       i.e., the new default value for HidServDirectoryV2 is 1. This is
18421       the last step in proposal 114, which aims to make hidden service
18422       lookups more reliable.
18423     - Start work to allow node restrictions to include country codes. The
18424       syntax to exclude nodes in a country with country code XX is
18425       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
18426       refinement to decide what config options should take priority if
18427       you ask to both use a particular node and exclude it.
18428     - Allow ExitNodes list to include IP ranges and country codes, just
18429       like the Exclude*Nodes lists. Patch from Robert Hogan.
18431   o Major bugfixes:
18432     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
18433       Tor to fail to start if you had it configured to use a bridge
18434       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
18435     - When extending a circuit to a hidden service directory to upload a
18436       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
18437       requests failed, because the router descriptor had not been
18438       downloaded yet. In these cases, we now wait until the router
18439       descriptor is downloaded, and then retry. Likewise, clients
18440       now skip over a hidden service directory if they don't yet have
18441       its router descriptor, rather than futilely requesting it and
18442       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
18443       on 0.2.0.10-alpha.
18444     - When fetching v0 and v2 rendezvous service descriptors in parallel,
18445       we were failing the whole hidden service request when the v0
18446       descriptor fetch fails, even if the v2 fetch is still pending and
18447       might succeed. Similarly, if the last v2 fetch fails, we were
18448       failing the whole hidden service request even if a v0 fetch is
18449       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
18450     - DNS replies need to have names matching their requests, but
18451       these names should be in the questions section, not necessarily
18452       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
18454   o Minor features:
18455     - Update to the "September 1 2008" ip-to-country file.
18456     - Allow ports 465 and 587 in the default exit policy again. We had
18457       rejected them in 0.1.0.15, because back in 2005 they were commonly
18458       misconfigured and ended up as spam targets. We hear they are better
18459       locked down these days.
18460     - Use a lockfile to make sure that two Tor processes are not
18461       simultaneously running with the same datadir.
18462     - Serve the latest v3 networkstatus consensus via the control
18463       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
18464     - Better logging about stability/reliability calculations on directory
18465       servers.
18466     - Drop the requirement to have an open dir port for storing and
18467       serving v2 hidden service descriptors.
18468     - Directory authorities now serve a /tor/dbg-stability.txt URL to
18469       help debug WFU and MTBF calculations.
18470     - Implement most of Proposal 152: allow specialized servers to permit
18471       single-hop circuits, and clients to use those servers to build
18472       single-hop circuits when using a specialized controller. Patch
18473       from Josh Albrecht. Resolves feature request 768.
18474     - Add a -p option to tor-resolve for specifying the SOCKS port: some
18475       people find host:port too confusing.
18476     - Make TrackHostExit mappings expire a while after their last use, not
18477       after their creation. Patch from Robert Hogan.
18478     - Provide circuit purposes along with circuit events to the controller.
18480   o Minor bugfixes:
18481     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
18482       Reported by Tas.
18483     - Fixed some memory leaks -- some quite frequent, some almost
18484       impossible to trigger -- based on results from Coverity.
18485     - When testing for libevent functions, set the LDFLAGS variable
18486       correctly. Found by Riastradh.
18487     - Fix an assertion bug in parsing policy-related options; possible fix
18488       for bug 811.
18489     - Catch and report a few more bootstrapping failure cases when Tor
18490       fails to establish a TCP connection. Cleanup on 0.2.1.x.
18491     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
18492       bootstrapping with tunneled directory connections. Bugfix on
18493       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
18494     - When asked to connect to A.B.exit:80, if we don't know the IP for A
18495       and we know that server B rejects most-but-not all connections to
18496       port 80, we would previously reject the connection. Now, we assume
18497       the user knows what they were asking for. Fixes bug 752. Bugfix
18498       on 0.0.9rc5. Diagnosed by BarkerJr.
18499     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
18500       service directories if they have no advertised dir port. Bugfix
18501       on 0.2.0.10-alpha.
18502     - If we overrun our per-second write limits a little, count this as
18503       having used up our write allocation for the second, and choke
18504       outgoing directory writes. Previously, we had only counted this when
18505       we had met our limits precisely. Fixes bug 824. Patch by rovv.
18506       Bugfix on 0.2.0.x (??).
18507     - Avoid a "0 divided by 0" calculation when calculating router uptime
18508       at directory authorities. Bugfix on 0.2.0.8-alpha.
18509     - Make DNS resolved controller events into "CLOSED", not
18510       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
18511       bug 807.
18512     - Fix a bug where an unreachable relay would establish enough
18513       reachability testing circuits to do a bandwidth test -- if
18514       we already have a connection to the middle hop of the testing
18515       circuit, then it could establish the last hop by using the existing
18516       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
18517       circuits no longer use entry guards in 0.2.1.3-alpha.
18518     - If we have correct permissions on $datadir, we complain to stdout
18519       and fail to start. But dangerous permissions on
18520       $datadir/cached-status/ would cause us to open a log and complain
18521       there. Now complain to stdout and fail to start in both cases. Fixes
18522       bug 820, reported by seeess.
18523     - Remove the old v2 directory authority 'lefkada' from the default
18524       list. It has been gone for many months.
18526   o Code simplifications and refactoring:
18527     - Revise the connection_new functions so that a more typesafe variant
18528       exists. This will work better with Coverity, and let us find any
18529       actual mistakes we're making here.
18530     - Refactor unit testing logic so that dmalloc can be used sensibly
18531       with unit tests to check for memory leaks.
18532     - Move all hidden-service related fields from connection and circuit
18533       structure to substructures: this way they won't eat so much memory.
18536 Changes in version 0.2.0.31 - 2008-09-03
18537   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
18538   a big bug we're seeing where in rare cases traffic from one Tor stream
18539   gets mixed into another stream, and fixes a variety of smaller issues.
18541   o Major bugfixes:
18542     - Make sure that two circuits can never exist on the same connection
18543       with the same circuit ID, even if one is marked for close. This
18544       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
18545     - Relays now reject risky extend cells: if the extend cell includes
18546       a digest of all zeroes, or asks to extend back to the relay that
18547       sent the extend cell, tear down the circuit. Ideas suggested
18548       by rovv.
18549     - If not enough of our entry guards are available so we add a new
18550       one, we might use the new one even if it overlapped with the
18551       current circuit's exit relay (or its family). Anonymity bugfix
18552       pointed out by rovv.
18554   o Minor bugfixes:
18555     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
18556       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
18557     - Correctly detect the presence of the linux/netfilter_ipv4.h header
18558       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
18559     - Pick size of default geoip filename string correctly on windows.
18560       Fixes bug 806. Bugfix on 0.2.0.30.
18561     - Make the autoconf script accept the obsolete --with-ssl-dir
18562       option as an alias for the actually-working --with-openssl-dir
18563       option. Fix the help documentation to recommend --with-openssl-dir.
18564       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
18565     - When using the TransPort option on OpenBSD, and using the User
18566       option to change UID and drop privileges, make sure to open
18567       /dev/pf before dropping privileges. Fixes bug 782. Patch from
18568       Christopher Davis. Bugfix on 0.1.2.1-alpha.
18569     - Try to attach connections immediately upon receiving a RENDEZVOUS2
18570       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
18571       on the client side when connecting to a hidden service. Bugfix
18572       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
18573     - When closing an application-side connection because its circuit is
18574       getting torn down, generate the stream event correctly. Bugfix on
18575       0.1.2.x. Anonymous patch.
18578 Changes in version 0.2.1.5-alpha - 2008-08-31
18579   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
18580   in a lot of the infrastructure for adding authorization to hidden
18581   services, lays the groundwork for having clients read their load
18582   balancing information out of the networkstatus consensus rather than
18583   the individual router descriptors, addresses two potential anonymity
18584   issues, and fixes a variety of smaller issues.
18586   o Major features:
18587     - Convert many internal address representations to optionally hold
18588       IPv6 addresses.
18589     - Generate and accept IPv6 addresses in many protocol elements.
18590     - Make resolver code handle nameservers located at ipv6 addresses.
18591     - Begin implementation of proposal 121 ("Client authorization for
18592       hidden services"): configure hidden services with client
18593       authorization, publish descriptors for them, and configure
18594       authorization data for hidden services at clients. The next
18595       step is to actually access hidden services that perform client
18596       authorization.
18597     - More progress toward proposal 141: Network status consensus
18598       documents and votes now contain bandwidth information for each
18599       router and a summary of that router's exit policy. Eventually this
18600       will be used by clients so that they do not have to download every
18601       known descriptor before building circuits.
18603   o Major bugfixes (on 0.2.0.x and before):
18604     - When sending CREATED cells back for a given circuit, use a 64-bit
18605       connection ID to find the right connection, rather than an addr:port
18606       combination. Now that we can have multiple OR connections between
18607       the same ORs, it is no longer possible to use addr:port to uniquely
18608       identify a connection.
18609     - Relays now reject risky extend cells: if the extend cell includes
18610       a digest of all zeroes, or asks to extend back to the relay that
18611       sent the extend cell, tear down the circuit. Ideas suggested
18612       by rovv.
18613     - If not enough of our entry guards are available so we add a new
18614       one, we might use the new one even if it overlapped with the
18615       current circuit's exit relay (or its family). Anonymity bugfix
18616       pointed out by rovv.
18618   o Minor bugfixes:
18619     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
18620       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
18621     - When using the TransPort option on OpenBSD, and using the User
18622       option to change UID and drop privileges, make sure to open /dev/pf
18623       before dropping privileges. Fixes bug 782. Patch from Christopher
18624       Davis. Bugfix on 0.1.2.1-alpha.
18625     - Correctly detect the presence of the linux/netfilter_ipv4.h header
18626       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
18627     - Add a missing safe_str() call for a debug log message.
18628     - Use 64 bits instead of 32 bits for connection identifiers used with
18629       the controller protocol, to greatly reduce risk of identifier reuse.
18630     - Make the autoconf script accept the obsolete --with-ssl-dir
18631       option as an alias for the actually-working --with-openssl-dir
18632       option. Fix the help documentation to recommend --with-openssl-dir.
18633       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
18635   o Minor features:
18636     - Rate-limit too-many-sockets messages: when they happen, they happen
18637       a lot. Resolves bug 748.
18638     - Resist DNS poisoning a little better by making sure that names in
18639       answer sections match.
18640     - Print the SOCKS5 error message string as well as the error code
18641       when a tor-resolve request fails. Patch from Jacob.
18644 Changes in version 0.2.1.4-alpha - 2008-08-04
18645   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
18647   o Major bugfixes:
18648     - The address part of exit policies was not correctly written
18649       to router descriptors. This generated router descriptors that failed
18650       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
18651       on 0.2.1.3-alpha.
18652     - Tor triggered a false assert when extending a circuit to a relay
18653       but we already have a connection open to that relay. Noticed by
18654       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
18656   o Minor bugfixes:
18657     - Fix a hidden service logging bug: in some edge cases, the router
18658       descriptor of a previously picked introduction point becomes
18659       obsolete and we need to give up on it rather than continually
18660       complaining that it has become obsolete. Observed by xiando. Bugfix
18661       on 0.2.1.3-alpha.
18663   o Removed features:
18664     - Take out the TestVia config option, since it was a workaround for
18665       a bug that was fixed in Tor 0.1.1.21.
18668 Changes in version 0.2.1.3-alpha - 2008-08-03
18669   Tor 0.2.1.3-alpha implements most of the pieces to prevent
18670   infinite-length circuit attacks (see proposal 110); fixes a bug that
18671   might cause exit relays to corrupt streams they send back; allows
18672   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
18673   ExcludeExitNodes config options; and fixes a big pile of bugs.
18675   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
18676     - Send a bootstrap problem "warn" event on the first problem if the
18677       reason is NO_ROUTE (that is, our network is down).
18679   o Major features:
18680     - Implement most of proposal 110: The first K cells to be sent
18681       along a circuit are marked as special "early" cells; only K "early"
18682       cells will be allowed. Once this code is universal, we can block
18683       certain kinds of DOS attack by requiring that EXTEND commands must
18684       be sent using an "early" cell.
18686   o Major bugfixes:
18687     - Try to attach connections immediately upon receiving a RENDEZVOUS2
18688       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
18689       on the client side when connecting to a hidden service. Bugfix
18690       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
18691     - Ensure that two circuits can never exist on the same connection
18692       with the same circuit ID, even if one is marked for close. This
18693       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
18695   o Minor features:
18696     - When relays do their initial bandwidth measurement, don't limit
18697       to just our entry guards for the test circuits. Otherwise we tend
18698       to have multiple test circuits going through a single entry guard,
18699       which makes our bandwidth test less accurate. Fixes part of bug 654;
18700       patch contributed by Josh Albrecht.
18701     - Add an ExcludeExitNodes option so users can list a set of nodes
18702       that should be be excluded from the exit node position, but
18703       allowed elsewhere. Implements proposal 151.
18704     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
18705       ExcludeNodes and ExcludeExitNodes lists.
18706     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
18707       be more efficient. Formerly it was quadratic in the number of
18708       servers; now it should be linear. Fixes bug 509.
18709     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
18710       and n_conn_id_digest fields into a separate structure that's
18711       only needed when the circuit has not yet attached to an n_conn.
18713   o Minor bugfixes:
18714     - Change the contrib/tor.logrotate script so it makes the new
18715       logs as "_tor:_tor" rather than the default, which is generally
18716       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
18717     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
18718       warnings (occasionally), but it can also cause the compiler to
18719       eliminate error-checking code. Suggested by Peter Gutmann.
18720     - When a hidden service is giving up on an introduction point candidate
18721       that was not included in the last published rendezvous descriptor,
18722       don't reschedule publication of the next descriptor. Fixes bug 763.
18723       Bugfix on 0.0.9.3.
18724     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
18725       HiddenServiceExcludeNodes as obsolete: they never worked properly,
18726       and nobody claims to be using them. Fixes bug 754. Bugfix on
18727       0.1.0.1-rc. Patch from Christian Wilms.
18728     - Fix a small alignment and memory-wasting bug on buffer chunks.
18729       Spotted by rovv.
18731   o Minor bugfixes (controller):
18732     - When closing an application-side connection because its circuit
18733       is getting torn down, generate the stream event correctly.
18734       Bugfix on 0.1.2.x. Anonymous patch.
18736   o Removed features:
18737     - Remove all backward-compatibility code to support relays running
18738       versions of Tor so old that they no longer work at all on the
18739       Tor network.
18742 Changes in version 0.2.0.30 - 2008-07-15
18743   o Minor bugfixes:
18744     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
18745       warnings (occasionally), but it can also cause the compiler to
18746       eliminate error-checking code. Suggested by Peter Gutmann.
18749 Changes in version 0.2.0.29-rc - 2008-07-08
18750   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
18751   hidden-service performance bugs, and fixes a bunch of smaller bugs.
18753   o Major bugfixes:
18754     - If you have more than one bridge but don't know their keys,
18755       you would only launch a request for the descriptor of the first one
18756       on your list. (Tor considered launching requests for the others, but
18757       found that it already had a connection on the way for $0000...0000
18758       so it didn't open another.) Bugfix on 0.2.0.x.
18759     - If you have more than one bridge but don't know their keys, and the
18760       connection to one of the bridges failed, you would cancel all
18761       pending bridge connections. (After all, they all have the same
18762       digest.) Bugfix on 0.2.0.x.
18763     - When a hidden service was trying to establish an introduction point,
18764       and Tor had built circuits preemptively for such purposes, we
18765       were ignoring all the preemptive circuits and launching a new one
18766       instead. Bugfix on 0.2.0.14-alpha.
18767     - When a hidden service was trying to establish an introduction point,
18768       and Tor *did* manage to reuse one of the preemptively built
18769       circuits, it didn't correctly remember which one it used,
18770       so it asked for another one soon after, until there were no
18771       more preemptive circuits, at which point it launched one from
18772       scratch. Bugfix on 0.0.9.x.
18773     - Make directory servers include the X-Your-Address-Is: http header in
18774       their responses even for begin_dir conns. Now clients who only
18775       ever use begin_dir connections still have a way to learn their IP
18776       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
18778   o Minor bugfixes:
18779     - Fix a macro/CPP interaction that was confusing some compilers:
18780       some GCCs don't like #if/#endif pairs inside macro arguments.
18781       Fixes bug 707.
18782     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
18783       Fixes bug 704; fix from Steven Murdoch.
18784     - When opening /dev/null in finish_daemonize(), do not pass the
18785       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
18786       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
18787     - Correctly detect transparent proxy support on Linux hosts that
18788       require in.h to be included before netfilter_ipv4.h. Patch
18789       from coderman.
18790     - Disallow session resumption attempts during the renegotiation
18791       stage of the v2 handshake protocol. Clients should never be trying
18792       session resumption at this point, but apparently some did, in
18793       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
18794       found by Geoff Goodell.
18797 Changes in version 0.2.1.2-alpha - 2008-06-20
18798   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
18799   make it easier to set up your own private Tor network; fixes several
18800   big bugs with using more than one bridge relay; fixes a big bug with
18801   offering hidden services quickly after Tor starts; and uses a better
18802   API for reporting potential bootstrapping problems to the controller.
18804   o Major features:
18805     - New TestingTorNetwork config option to allow adjustment of
18806       previously constant values that, while reasonable, could slow
18807       bootstrapping. Implements proposal 135. Patch from Karsten.
18809   o Major bugfixes:
18810     - If you have more than one bridge but don't know their digests,
18811       you would only learn a request for the descriptor of the first one
18812       on your list. (Tor considered launching requests for the others, but
18813       found that it already had a connection on the way for $0000...0000
18814       so it didn't open another.) Bugfix on 0.2.0.x.
18815     - If you have more than one bridge but don't know their digests,
18816       and the connection to one of the bridges failed, you would cancel
18817       all pending bridge connections. (After all, they all have the
18818       same digest.) Bugfix on 0.2.0.x.
18819     - When establishing a hidden service, introduction points that
18820       originate from cannibalized circuits are completely ignored and not
18821       included in rendezvous service descriptors. This might be another
18822       reason for delay in making a hidden service available. Bugfix
18823       from long ago (0.0.9.x?)
18825   o Minor features:
18826     - Allow OpenSSL to use dynamic locks if it wants.
18827     - When building a consensus, do not include routers that are down.
18828       This will cut down 30% to 40% on consensus size. Implements
18829       proposal 138.
18830     - In directory authorities' approved-routers files, allow
18831       fingerprints with or without space.
18832     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
18833       controller can query our current bootstrap state in case it attaches
18834       partway through and wants to catch up.
18835     - Send an initial "Starting" bootstrap status event, so we have a
18836       state to start out in.
18838   o Minor bugfixes:
18839     - Asking for a conditional consensus at .../consensus/<fingerprints>
18840       would crash a dirserver if it did not already have a
18841       consensus. Bugfix on 0.2.1.1-alpha.
18842     - Clean up some macro/CPP interactions: some GCC versions don't like
18843       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
18844       0.2.0.x.
18846   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
18847     - Directory authorities shouldn't complain about bootstrapping
18848       problems just because they do a lot of reachability testing and
18849       some of the connection attempts fail.
18850     - Start sending "count" and "recommendation" key/value pairs in
18851       bootstrap problem status events, so the controller can hear about
18852       problems even before Tor decides they're worth reporting for sure.
18853     - If you're using bridges, generate "bootstrap problem" warnings
18854       as soon as you run out of working bridges, rather than waiting
18855       for ten failures -- which will never happen if you have less than
18856       ten bridges.
18857     - If we close our OR connection because there's been a circuit
18858       pending on it for too long, we were telling our bootstrap status
18859       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
18862 Changes in version 0.2.1.1-alpha - 2008-06-13
18863   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
18864   were making the Tor process bloat especially on Linux; makes our TLS
18865   handshake blend in better; sends "bootstrap phase" status events to
18866   the controller, so it can keep the user informed of progress (and
18867   problems) fetching directory information and establishing circuits;
18868   and adds a variety of smaller features.
18870   o Major features:
18871     - More work on making our TLS handshake blend in: modify the list
18872       of ciphers advertised by OpenSSL in client mode to even more
18873       closely resemble a common web browser. We cheat a little so that
18874       we can advertise ciphers that the locally installed OpenSSL doesn't
18875       know about.
18876     - Start sending "bootstrap phase" status events to the controller,
18877       so it can keep the user informed of progress fetching directory
18878       information and establishing circuits. Also inform the controller
18879       if we think we're stuck at a particular bootstrap phase. Implements
18880       proposal 137.
18881     - Resume using OpenSSL's RAND_poll() for better (and more portable)
18882       cross-platform entropy collection again. We used to use it, then
18883       stopped using it because of a bug that could crash systems that
18884       called RAND_poll when they had a lot of fds open. It looks like the
18885       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
18886       at startup, and to call RAND_poll() when we reseed later only if
18887       we have a non-buggy OpenSSL version.
18889   o Major bugfixes:
18890     - When we choose to abandon a new entry guard because we think our
18891       older ones might be better, close any circuits pending on that
18892       new entry guard connection. This fix should make us recover much
18893       faster when our network is down and then comes back. Bugfix on
18894       0.1.2.8-beta; found by lodger.
18896   o Memory fixes and improvements:
18897     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
18898       to avoid unused RAM in buffer chunks and memory pools.
18899     - Speed up parsing and cut down on memory fragmentation by using
18900       stack-style allocations for parsing directory objects. Previously,
18901       this accounted for over 40% of allocations from within Tor's code
18902       on a typical directory cache.
18903     - Use a Bloom filter rather than a digest-based set to track which
18904       descriptors we need to keep around when we're cleaning out old
18905       router descriptors. This speeds up the computation significantly,
18906       and may reduce fragmentation.
18907     - Reduce the default smartlist size from 32 to 16; it turns out that
18908       most smartlists hold around 8-12 elements tops.
18909     - Make dumpstats() log the fullness and size of openssl-internal
18910       buffers.
18911     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
18912       patch to their OpenSSL, turn it on to save memory on servers. This
18913       patch will (with any luck) get included in a mainline distribution
18914       before too long.
18915     - Never use OpenSSL compression: it wastes RAM and CPU trying to
18916       compress cells, which are basically all encrypted, compressed,
18917       or both.
18919   o Minor bugfixes:
18920     - Stop reloading the router list from disk for no reason when we
18921       run out of reachable directory mirrors. Once upon a time reloading
18922       it would set the 'is_running' flag back to 1 for them. It hasn't
18923       done that for a long time.
18924     - In very rare situations new hidden service descriptors were
18925       published earlier than 30 seconds after the last change to the
18926       service. (We currently think that a hidden service descriptor
18927       that's been stable for 30 seconds is worth publishing.)
18929   o Minor features:
18930     - Allow separate log levels to be configured for different logging
18931       domains. For example, this allows one to log all notices, warnings,
18932       or errors, plus all memory management messages of level debug or
18933       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
18934     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
18935       and stop using a warning that had become unfixably verbose under
18936       GCC 4.3.
18937     - New --hush command-line option similar to --quiet. While --quiet
18938       disables all logging to the console on startup, --hush limits the
18939       output to messages of warning and error severity.
18940     - Servers support a new URL scheme for consensus downloads that
18941       allows the client to specify which authorities are trusted.
18942       The server then only sends the consensus if the client will trust
18943       it. Otherwise a 404 error is sent back. Clients use this
18944       new scheme when the server supports it (meaning it's running
18945       0.2.1.1-alpha or later). Implements proposal 134.
18946     - New configure/torrc options (--enable-geoip-stats,
18947       DirRecordUsageByCountry) to record how many IPs we've served
18948       directory info to in each country code, how many status documents
18949       total we've sent to each country code, and what share of the total
18950       directory requests we should expect to see.
18951     - Use the TLS1 hostname extension to more closely resemble browser
18952       behavior.
18953     - Lots of new unit tests.
18954     - Add a macro to implement the common pattern of iterating through
18955       two parallel lists in lockstep.
18958 Changes in version 0.2.0.28-rc - 2008-06-13
18959   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
18960   performance bug, and fixes a bunch of smaller bugs.
18962   o Anonymity fixes:
18963     - Fix a bug where, when we were choosing the 'end stream reason' to
18964       put in our relay end cell that we send to the exit relay, Tor
18965       clients on Windows were sometimes sending the wrong 'reason'. The
18966       anonymity problem is that exit relays may be able to guess whether
18967       the client is running Windows, thus helping partition the anonymity
18968       set. Down the road we should stop sending reasons to exit relays,
18969       or otherwise prevent future versions of this bug.
18971   o Major bugfixes:
18972     - While setting up a hidden service, some valid introduction circuits
18973       were overlooked and abandoned. This might be the reason for
18974       the long delay in making a hidden service available. Bugfix on
18975       0.2.0.14-alpha.
18977   o Minor features:
18978     - Update to the "June 9 2008" ip-to-country file.
18979     - Run 'make test' as part of 'make dist', so we stop releasing so
18980       many development snapshots that fail their unit tests.
18982   o Minor bugfixes:
18983     - When we're checking if we have enough dir info for each relay
18984       to begin establishing circuits, make sure that we actually have
18985       the descriptor listed in the consensus, not just any descriptor.
18986       Bugfix on 0.1.2.x.
18987     - Bridge relays no longer print "xx=0" in their extrainfo document
18988       for every single country code in the geoip db. Bugfix on
18989       0.2.0.27-rc.
18990     - Only warn when we fail to load the geoip file if we were planning to
18991       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
18992     - If we change our MaxAdvertisedBandwidth and then reload torrc,
18993       Tor won't realize it should publish a new relay descriptor. Fixes
18994       bug 688, reported by mfr. Bugfix on 0.1.2.x.
18995     - When we haven't had any application requests lately, don't bother
18996       logging that we have expired a bunch of descriptors. Bugfix
18997       on 0.1.2.x.
18998     - Make relay cells written on a connection count as non-padding when
18999       tracking how long a connection has been in use. Bugfix on
19000       0.2.0.1-alpha. Spotted by lodger.
19001     - Fix unit tests in 0.2.0.27-rc.
19002     - Fix compile on Windows.
19005 Changes in version 0.2.0.27-rc - 2008-06-03
19006   Tor 0.2.0.27-rc adds a few features we left out of the earlier
19007   release candidates. In particular, we now include an IP-to-country
19008   GeoIP database, so controllers can easily look up what country a
19009   given relay is in, and so bridge relays can give us some sanitized
19010   summaries about which countries are making use of bridges. (See proposal
19011   126-geoip-fetching.txt for details.)
19013   o Major features:
19014     - Include an IP-to-country GeoIP file in the tarball, so bridge
19015       relays can report sanitized summaries of the usage they're seeing.
19017   o Minor features:
19018     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
19019       Robert Hogan. Fixes the first part of bug 681.
19020     - Make bridge authorities never serve extrainfo docs.
19021     - Add support to detect Libevent versions in the 1.4.x series
19022       on mingw.
19023     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
19024     - Include a new contrib/tor-exit-notice.html file that exit relay
19025       operators can put on their website to help reduce abuse queries.
19027   o Minor bugfixes:
19028     - When tunneling an encrypted directory connection, and its first
19029       circuit fails, do not leave it unattached and ask the controller
19030       to deal. Fixes the second part of bug 681.
19031     - Make bridge authorities correctly expire old extrainfo documents
19032       from time to time.
19035 Changes in version 0.2.0.26-rc - 2008-05-13
19036   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
19037   in Debian's OpenSSL packages. All users running any 0.2.0.x version
19038   should upgrade, whether they're running Debian or not.
19040   o Major security fixes:
19041     - Use new V3 directory authority keys on the tor26, gabelmoo, and
19042       moria1 V3 directory authorities. The old keys were generated with
19043       a vulnerable version of Debian's OpenSSL package, and must be
19044       considered compromised. Other authorities' keys were not generated
19045       with an affected version of OpenSSL.
19047   o Major bugfixes:
19048     - List authority signatures as "unrecognized" based on DirServer
19049       lines, not on cert cache. Bugfix on 0.2.0.x.
19051   o Minor features:
19052     - Add a new V3AuthUseLegacyKey option to make it easier for
19053       authorities to change their identity keys if they have to.
19056 Changes in version 0.2.0.25-rc - 2008-04-23
19057   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
19059   o Major bugfixes:
19060     - Remember to initialize threading before initializing logging.
19061       Otherwise, many BSD-family implementations will crash hard on
19062       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
19064   o Minor bugfixes:
19065     - Authorities correctly free policies on bad servers on
19066       exit. Fixes bug 672. Bugfix on 0.2.0.x.
19069 Changes in version 0.2.0.24-rc - 2008-04-22
19070   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
19071   v3 directory authority, makes relays with dynamic IP addresses and no
19072   DirPort notice more quickly when their IP address changes, fixes a few
19073   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
19075   o New directory authorities:
19076     - Take lefkada out of the list of v3 directory authorities, since
19077       it has been down for months.
19078     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
19079       authority.
19081   o Major bugfixes:
19082     - Detect address changes more quickly on non-directory mirror
19083       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
19085   o Minor features (security):
19086     - Reject requests for reverse-dns lookup of names that are in
19087       a private address space. Patch from lodger.
19088     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
19089       from lodger.
19091   o Minor bugfixes (crashes):
19092     - Avoid a rare assert that can trigger when Tor doesn't have much
19093       directory information yet and it tries to fetch a v2 hidden
19094       service descriptor. Fixes bug 651, reported by nwf.
19095     - Initialize log mutex before initializing dmalloc. Otherwise,
19096       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
19097     - Use recursive pthread mutexes in order to avoid deadlock when
19098       logging debug-level messages to a controller. Bug spotted by nwf,
19099       bugfix on 0.2.0.16-alpha.
19101   o Minor bugfixes (resource management):
19102     - Keep address policies from leaking memory: start their refcount
19103       at 1, not 2. Bugfix on 0.2.0.16-alpha.
19104     - Free authority certificates on exit, so they don't look like memory
19105       leaks. Bugfix on 0.2.0.19-alpha.
19106     - Free static hashtables for policy maps and for TLS connections on
19107       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
19108     - Avoid allocating extra space when computing consensuses on 64-bit
19109       platforms. Bug spotted by aakova.
19111   o Minor bugfixes (misc):
19112     - Do not read the configuration file when we've only been told to
19113       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
19114       based on patch from Sebastian Hahn.
19115     - Exit relays that are used as a client can now reach themselves
19116       using the .exit notation, rather than just launching an infinite
19117       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
19118     - When attempting to open a logfile fails, tell us why.
19119     - Fix a dumb bug that was preventing us from knowing that we should
19120       preemptively build circuits to handle expected directory requests.
19121       Fixes bug 660. Bugfix on 0.1.2.x.
19122     - Warn less verbosely about clock skew from netinfo cells from
19123       untrusted sources. Fixes bug 663.
19124     - Make controller stream events for DNS requests more consistent,
19125       by adding "new stream" events for DNS requests, and removing
19126       spurious "stream closed" events" for cached reverse resolves.
19127       Patch from mwenge. Fixes bug 646.
19128     - Correctly notify one-hop connections when a circuit build has
19129       failed. Possible fix for bug 669. Found by lodger.
19132 Changes in version 0.2.0.23-rc - 2008-03-24
19133   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
19134   makes bootstrapping faster if the first directory mirror you contact
19135   is down. The bundles also include the new Vidalia 0.1.2 release.
19137   o Major bugfixes:
19138     - When a tunneled directory request is made to a directory server
19139       that's down, notice after 30 seconds rather than 120 seconds. Also,
19140       fail any begindir streams that are pending on it, so they can
19141       retry elsewhere. This was causing multi-minute delays on bootstrap.
19144 Changes in version 0.2.0.22-rc - 2008-03-18
19145   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
19146   enables encrypted directory connections by default for non-relays, fixes
19147   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
19148   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
19150   o Major features:
19151     - Enable encrypted directory connections by default for non-relays,
19152       so censor tools that block Tor directory connections based on their
19153       plaintext patterns will no longer work. This means Tor works in
19154       certain censored countries by default again.
19156   o Major bugfixes:
19157     - Make sure servers always request certificates from clients during
19158       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
19159     - Do not enter a CPU-eating loop when a connection is closed in
19160       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
19161       diagnosed by lodger; bugfix on 0.2.0.20-rc.
19162     - Fix assertion failure that could occur when a blocked circuit
19163       became unblocked, and it had pending client DNS requests. Bugfix
19164       on 0.2.0.1-alpha. Fixes bug 632.
19166   o Minor bugfixes (on 0.1.2.x):
19167     - Generate "STATUS_SERVER" events rather than misspelled
19168       "STATUS_SEVER" events. Caught by mwenge.
19169     - When counting the number of bytes written on a TLS connection,
19170       look at the BIO actually used for writing to the network, not
19171       at the BIO used (sometimes) to buffer data for the network.
19172       Looking at different BIOs could result in write counts on the
19173       order of ULONG_MAX. Fixes bug 614.
19174     - On Windows, correctly detect errors when listing the contents of
19175       a directory. Fix from lodger.
19177   o Minor bugfixes (on 0.2.0.x):
19178     - Downgrade "sslv3 alert handshake failure" message to INFO.
19179     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
19180       left BandwidthRate and BandwidthBurst at the default, we would be
19181       silently limited by those defaults. Now raise them to match the
19182       RelayBandwidth* values.
19183     - Fix the SVK version detection logic to work correctly on a branch.
19184     - Make --enable-openbsd-malloc work correctly on Linux with alpha
19185       CPUs. Fixes bug 625.
19186     - Logging functions now check that the passed severity is sane.
19187     - Use proper log levels in the testsuite call of
19188       get_interface_address6().
19189     - When using a nonstandard malloc, do not use the platform values for
19190       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
19191     - Make the openbsd malloc code use 8k pages on alpha CPUs and
19192       16k pages on ia64.
19193     - Detect mismatched page sizes when using --enable-openbsd-malloc.
19194     - Avoid double-marked-for-close warning when certain kinds of invalid
19195       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
19196       for bug 617. Bugfix on 0.2.0.1-alpha.
19197     - Make sure that the "NULL-means-reject *:*" convention is followed by
19198       all the policy manipulation functions, avoiding some possible crash
19199       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
19200     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
19201       actually works, and doesn't warn about every single reverse lookup.
19202       Fixes the other part of bug 617. Bugfix on 0.2.0.1-alpha.
19204   o Minor features:
19205     - Only log guard node status when guard node status has changed.
19206     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
19207       make "INFO" 75% less verbose.
19210 Changes in version 0.2.0.21-rc - 2008-03-02
19211   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
19212   makes Tor work well with Vidalia again, fixes a rare assert bug,
19213   and fixes a pair of more minor bugs. The bundles also include Vidalia
19214   0.1.0 and Torbutton 1.1.16.
19216   o Major bugfixes:
19217     - The control port should declare that it requires password auth
19218       when HashedControlSessionPassword is set too. Patch from Matt Edman;
19219       bugfix on 0.2.0.20-rc. Fixes bug 615.
19220     - Downgrade assert in connection_buckets_decrement() to a log message.
19221       This may help us solve bug 614, and in any case will make its
19222       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
19223     - We were sometimes miscounting the number of bytes read from the
19224       network, causing our rate limiting to not be followed exactly.
19225       Bugfix on 0.2.0.16-alpha. Reported by lodger.
19227   o Minor bugfixes:
19228     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
19229       OpenSSL versions should have been working fine. Diagnosis and patch
19230       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
19231       Bugfix on 0.2.0.20-rc.
19234 Changes in version 0.2.0.20-rc - 2008-02-24
19235   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
19236   makes more progress towards normalizing Tor's TLS handshake, makes
19237   hidden services work better again, helps relays bootstrap if they don't
19238   know their IP address, adds optional support for linking in openbsd's
19239   allocator or tcmalloc, allows really fast relays to scale past 15000
19240   sockets, and fixes a bunch of minor bugs reported by Veracode.
19242   o Major features:
19243     - Enable the revised TLS handshake based on the one designed by
19244       Steven Murdoch in proposal 124, as revised in proposal 130. It
19245       includes version negotiation for OR connections as described in
19246       proposal 105. The new handshake is meant to be harder for censors
19247       to fingerprint, and it adds the ability to detect certain kinds of
19248       man-in-the-middle traffic analysis attacks. The version negotiation
19249       feature will allow us to improve Tor's link protocol more safely
19250       in the future.
19251     - Choose which bridge to use proportional to its advertised bandwidth,
19252       rather than uniformly at random. This should speed up Tor for
19253       bridge users. Also do this for people who set StrictEntryNodes.
19254     - When a TrackHostExits-chosen exit fails too many times in a row,
19255       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
19257   o Major bugfixes:
19258     - Resolved problems with (re-)fetching hidden service descriptors.
19259       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
19260       and 0.2.0.19-alpha.
19261     - If we only ever used Tor for hidden service lookups or posts, we
19262       would stop building circuits and start refusing connections after
19263       24 hours, since we falsely believed that Tor was dormant. Reported
19264       by nwf; bugfix on 0.1.2.x.
19265     - Servers that don't know their own IP address should go to the
19266       authorities for their first directory fetch, even if their DirPort
19267       is off or if they don't know they're reachable yet. This will help
19268       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
19269     - When counting the number of open sockets, count not only the number
19270       of sockets we have received from the socket() call, but also
19271       the number we've gotten from accept() and socketpair(). This bug
19272       made us fail to count all sockets that we were using for incoming
19273       connections. Bugfix on 0.2.0.x.
19274     - Fix code used to find strings within buffers, when those strings
19275       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
19276     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
19277     - Add a new __HashedControlSessionPassword option for controllers
19278       to use for one-off session password hashes that shouldn't get
19279       saved to disk by SAVECONF --- Vidalia users were accumulating a
19280       pile of HashedControlPassword lines in their torrc files, one for
19281       each time they had restarted Tor and then clicked Save. Make Tor
19282       automatically convert "HashedControlPassword" to this new option but
19283       only when it's given on the command line. Partial fix for bug 586.
19285   o Minor features (performance):
19286     - Tune parameters for cell pool allocation to minimize amount of
19287       RAM overhead used.
19288     - Add OpenBSD malloc code from phk as an optional malloc
19289       replacement on Linux: some glibc libraries do very poorly
19290       with Tor's memory allocation patterns. Pass
19291       --enable-openbsd-malloc to get the replacement malloc code.
19292     - Add a --with-tcmalloc option to the configure script to link
19293       against tcmalloc (if present). Does not yet search for
19294       non-system include paths.
19295     - Stop imposing an arbitrary maximum on the number of file descriptors
19296       used for busy servers. Bug reported by Olaf Selke; patch from
19297       Sebastian Hahn.
19299   o Minor features (other):
19300     - When SafeLogging is disabled, log addresses along with all TLS
19301       errors.
19302     - When building with --enable-gcc-warnings, check for whether Apple's
19303       warning "-Wshorten-64-to-32" is available.
19304     - Add a --passphrase-fd argument to the tor-gencert command for
19305       scriptability.
19307   o Minor bugfixes (memory leaks and code problems):
19308     - We were leaking a file descriptor if Tor started with a zero-length
19309       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
19310     - Detect size overflow in zlib code. Reported by Justin Ferguson and
19311       Dan Kaminsky.
19312     - We were comparing the raw BridgePassword entry with a base64'ed
19313       version of it, when handling a "/tor/networkstatus-bridges"
19314       directory request. Now compare correctly. Noticed by Veracode.
19315     - Recover from bad tracked-since value in MTBF-history file.
19316       Should fix bug 537.
19317     - Alter the code that tries to recover from unhandled write
19318       errors, to not try to flush onto a socket that's given us
19319       unhandled errors. Bugfix on 0.1.2.x.
19320     - Make Unix controlsockets work correctly on OpenBSD. Patch from
19321       tup. Bugfix on 0.2.0.3-alpha.
19323   o Minor bugfixes (other):
19324     - If we have an extra-info document for our server, always make
19325       it available on the control port, even if we haven't gotten
19326       a copy of it from an authority yet. Patch from mwenge.
19327     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
19328     - Directory mirrors no longer include a guess at the client's IP
19329       address if the connection appears to be coming from the same /24
19330       network; it was producing too many wrong guesses.
19331     - Make the new hidden service code respect the SafeLogging setting.
19332       Bugfix on 0.2.0.x. Patch from Karsten.
19333     - When starting as an authority, do not overwrite all certificates
19334       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
19335     - If we're trying to flush the last bytes on a connection (for
19336       example, when answering a directory request), reset the
19337       time-to-give-up timeout every time we manage to write something
19338       on the socket. Bugfix on 0.1.2.x.
19339     - Change the behavior of "getinfo status/good-server-descriptor"
19340       so it doesn't return failure when any authority disappears.
19341     - Even though the man page said that "TrackHostExits ." should
19342       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
19343     - Report TLS "zero return" case as a "clean close" and "IO error"
19344       as a "close". Stop calling closes "unexpected closes": existing
19345       Tors don't use SSL_close(), so having a connection close without
19346       the TLS shutdown handshake is hardly unexpected.
19347     - Send NAMESERVER_STATUS messages for a single failed nameserver
19348       correctly.
19350   o Code simplifications and refactoring:
19351     - Remove the tor_strpartition function: its logic was confused,
19352       and it was only used for one thing that could be implemented far
19353       more easily.
19356 Changes in version 0.2.0.19-alpha - 2008-02-09
19357   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
19358   handshake, makes path selection for relays more secure and IP address
19359   guessing more robust, and generally fixes a lot of bugs in preparation
19360   for calling the 0.2.0 branch stable.
19362   o Major features:
19363     - Do not include recognizeable strings in the commonname part of
19364       Tor's x509 certificates.
19366   o Major bugfixes:
19367     - If we're a relay, avoid picking ourselves as an introduction point,
19368       a rendezvous point, or as the final hop for internal circuits. Bug
19369       reported by taranis and lodger. Bugfix on 0.1.2.x.
19370     - Patch from "Andrew S. Lists" to catch when we contact a directory
19371       mirror at IP address X and he says we look like we're coming from
19372       IP address X. Bugfix on 0.1.2.x.
19374   o Minor features (security):
19375     - Be more paranoid about overwriting sensitive memory on free(),
19376       as a defensive programming tactic to ensure forward secrecy.
19378   o Minor features (directory authority):
19379     - Actually validate the options passed to AuthDirReject,
19380       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
19381     - Reject router descriptors with out-of-range bandwidthcapacity or
19382       bandwidthburst values.
19384   o Minor features (controller):
19385     - Reject controller commands over 1MB in length. This keeps rogue
19386       processes from running us out of memory.
19388   o Minor features (misc):
19389     - Give more descriptive well-formedness errors for out-of-range
19390       hidden service descriptor/protocol versions.
19391     - Make memory debugging information describe more about history
19392       of cell allocation, so we can help reduce our memory use.
19394   o Deprecated features (controller):
19395     - The status/version/num-versioning and status/version/num-concurring
19396       GETINFO options are no longer useful in the v3 directory protocol:
19397       treat them as deprecated, and warn when they're used.
19399   o Minor bugfixes:
19400     - When our consensus networkstatus has been expired for a while, stop
19401       being willing to build circuits using it. Fixes bug 401. Bugfix
19402       on 0.1.2.x.
19403     - Directory caches now fetch certificates from all authorities
19404       listed in a networkstatus consensus, even when they do not
19405       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
19406     - When connecting to a bridge without specifying its key, insert
19407       the connection into the identity-to-connection map as soon as
19408       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
19409     - Detect versions of OS X where malloc_good_size() is present in the
19410       library but never actually declared. Resolves bug 587. Bugfix
19411       on 0.2.0.x.
19412     - Stop incorrectly truncating zlib responses to directory authority
19413       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
19414     - Stop recommending that every server operator send mail to tor-ops.
19415       Resolves bug 597. Bugfix on 0.1.2.x.
19416     - Don't trigger an assert if we start a directory authority with a
19417       private IP address (like 127.0.0.1).
19418     - Avoid possible failures when generating a directory with routers
19419       with over-long versions strings, or too many flags set. Bugfix
19420       on 0.1.2.x.
19421     - If an attempt to launch a DNS resolve request over the control
19422       port fails because we have overrun the limit on the number of
19423       connections, tell the controller that the request has failed.
19424     - Avoid using too little bandwidth when our clock skips a few
19425       seconds. Bugfix on 0.1.2.x.
19426     - Fix shell error when warning about missing packages in configure
19427       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
19428     - Do not become confused when receiving a spurious VERSIONS-like
19429       cell from a confused v1 client. Bugfix on 0.2.0.x.
19430     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
19431       introduction points for a hidden service have failed. Patch from
19432       Karsten Loesing. Bugfix on 0.2.0.x.
19434   o Code simplifications and refactoring:
19435     - Remove some needless generality from cpuworker code, for improved
19436       type-safety.
19437     - Stop overloading the circuit_t.onionskin field for both "onionskin
19438       from a CREATE cell that we are waiting for a cpuworker to be
19439       assigned" and "onionskin from an EXTEND cell that we are going to
19440       send to an OR as soon as we are connected". Might help with bug 600.
19441     - Add an in-place version of aes_crypt() so that we can avoid doing a
19442       needless memcpy() call on each cell payload.
19445 Changes in version 0.2.0.18-alpha - 2008-01-25
19446   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
19447   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
19448   that can warn or reject connections to ports generally associated with
19449   vulnerable-plaintext protocols.
19451   o New directory authorities:
19452     - Set up dannenberg (run by CCC) as the sixth v3 directory
19453       authority.
19455   o Major bugfixes:
19456     - Fix a major memory leak when attempting to use the v2 TLS
19457       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
19458     - We accidentally enabled the under-development v2 TLS handshake
19459       code, which was causing log entries like "TLS error while
19460       renegotiating handshake". Disable it again. Resolves bug 590.
19461     - We were computing the wrong Content-Length: header for directory
19462       responses that need to be compressed on the fly, causing clients
19463       asking for those items to always fail. Bugfix on 0.2.0.x; partially
19464       fixes bug 593.
19466   o Major features:
19467     - Avoid going directly to the directory authorities even if you're a
19468       relay, if you haven't found yourself reachable yet or if you've
19469       decided not to advertise your dirport yet. Addresses bug 556.
19470     - If we've gone 12 hours since our last bandwidth check, and we
19471       estimate we have less than 50KB bandwidth capacity but we could
19472       handle more, do another bandwidth test.
19473     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
19474       Tor can warn and/or refuse connections to ports commonly used with
19475       vulnerable-plaintext protocols. Currently we warn on ports 23,
19476       109, 110, and 143, but we don't reject any.
19478   o Minor bugfixes:
19479     - When we setconf ClientOnly to 1, close any current OR and Dir
19480       listeners. Reported by mwenge.
19481     - When we get a consensus that's been signed by more people than
19482       we expect, don't log about it; it's not a big deal. Reported
19483       by Kyle Williams.
19485   o Minor features:
19486     - Don't answer "/tor/networkstatus-bridges" directory requests if
19487       the request isn't encrypted.
19488     - Make "ClientOnly 1" config option disable directory ports too.
19489     - Patches from Karsten Loesing to make v2 hidden services more
19490       robust: work even when there aren't enough HSDir relays available;
19491       retry when a v2 rend desc fetch fails; but don't retry if we
19492       already have a usable v0 rend desc.
19495 Changes in version 0.2.0.17-alpha - 2008-01-17
19496   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
19498   o Compile fixes:
19499     - Make the tor-gencert man page get included correctly in the tarball.
19502 Changes in version 0.2.0.16-alpha - 2008-01-17
19503   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
19504   Loesing, and generally cleans up a lot of features and minor bugs.
19506   o New directory authorities:
19507     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
19508       authority.
19510   o Major performance improvements:
19511     - Switch our old ring buffer implementation for one more like that
19512       used by free Unix kernels. The wasted space in a buffer with 1mb
19513       of data will now be more like 8k than 1mb. The new implementation
19514       also avoids realloc();realloc(); patterns that can contribute to
19515       memory fragmentation.
19517   o Minor features:
19518     - Configuration files now accept C-style strings as values. This
19519       helps encode characters not allowed in the current configuration
19520       file format, such as newline or #. Addresses bug 557.
19521     - Although we fixed bug 539 (where servers would send HTTP status 503
19522       responses _and_ send a body too), there are still servers out
19523       there that haven't upgraded. Therefore, make clients parse such
19524       bodies when they receive them.
19525     - When we're not serving v2 directory information, there is no reason
19526       to actually keep any around. Remove the obsolete files and directory
19527       on startup if they are very old and we aren't going to serve them.
19529   o Minor performance improvements:
19530     - Reference-count and share copies of address policy entries; only 5%
19531       of them were actually distinct.
19532     - Never walk through the list of logs if we know that no log is
19533       interested in a given message.
19535   o Minor bugfixes:
19536     - When an authority has not signed a consensus, do not try to
19537       download a nonexistent "certificate with key 00000000". Bugfix
19538       on 0.2.0.x. Fixes bug 569.
19539     - Fix a rare assert error when we're closing one of our threads:
19540       use a mutex to protect the list of logs, so we never write to the
19541       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
19542       bug 575, which is kind of the revenge of bug 222.
19543     - Patch from Karsten Loesing to complain less at both the client
19544       and the relay when a relay used to have the HSDir flag but doesn't
19545       anymore, and we try to upload a hidden service descriptor.
19546     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
19547       0.2.0.15-alpha.
19548     - Do not try to download missing certificates until we have tried
19549       to check our fallback consensus. Fixes bug 583.
19550     - Make bridges round reported GeoIP stats info up to the nearest
19551       estimate, not down. Now we can distinguish between "0 people from
19552       this country" and "1 person from this country".
19553     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
19554     - Avoid possible segfault if key generation fails in
19555       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
19556     - Avoid segfault in the case where a badly behaved v2 versioning
19557       directory sends a signed networkstatus with missing client-versions.
19558       Bugfix on 0.1.2.
19559     - Avoid segfaults on certain complex invocations of
19560       router_get_by_hexdigest(). Bugfix on 0.1.2.
19561     - Correct bad index on array access in parse_http_time(). Bugfix
19562       on 0.2.0.
19563     - Fix possible bug in vote generation when server versions are present
19564       but client versions are not.
19565     - Fix rare bug on REDIRECTSTREAM control command when called with no
19566       port set: it could erroneously report an error when none had
19567       happened.
19568     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
19569       compressing large objects and find ourselves with more than 4k
19570       left over. Bugfix on 0.2.0.
19571     - Fix a small memory leak when setting up a hidden service.
19572     - Fix a few memory leaks that could in theory happen under bizarre
19573       error conditions.
19574     - Fix an assert if we post a general-purpose descriptor via the
19575       control port but that descriptor isn't mentioned in our current
19576       network consensus. Bug reported by Jon McLachlan; bugfix on
19577       0.2.0.9-alpha.
19579   o Minor features (controller):
19580     - Get NS events working again. Patch from tup.
19581     - The GETCONF command now escapes and quotes configuration values
19582       that don't otherwise fit into the torrc file.
19583     - The SETCONF command now handles quoted values correctly.
19585   o Minor features (directory authorities):
19586     - New configuration options to override default maximum number of
19587       servers allowed on a single IP address. This is important for
19588       running a test network on a single host.
19589     - Actually implement the -s option to tor-gencert.
19590     - Add a manual page for tor-gencert.
19592   o Minor features (bridges):
19593     - Bridge authorities no longer serve bridge descriptors over
19594       unencrypted connections.
19596   o Minor features (other):
19597     - Add hidden services and DNSPorts to the list of things that make
19598       Tor accept that it has running ports. Change starting Tor with no
19599       ports from a fatal error to a warning; we might change it back if
19600       this turns out to confuse anybody. Fixes bug 579.
19603 Changes in version 0.1.2.19 - 2008-01-17
19604   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
19605   exit policy a little bit more conservative so it's safer to run an
19606   exit relay on a home system, and fixes a variety of smaller issues.
19608   o Security fixes:
19609     - Exit policies now reject connections that are addressed to a
19610       relay's public (external) IP address too, unless
19611       ExitPolicyRejectPrivate is turned off. We do this because too
19612       many relays are running nearby to services that trust them based
19613       on network address.
19615   o Major bugfixes:
19616     - When the clock jumps forward a lot, do not allow the bandwidth
19617       buckets to become negative. Fixes bug 544.
19618     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
19619       on every successful resolve. Reported by Mike Perry.
19620     - Purge old entries from the "rephist" database and the hidden
19621       service descriptor database even when DirPort is zero.
19622     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
19623       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
19624       crashing or mis-answering these requests.
19625     - When we decide to send a 503 response to a request for servers, do
19626       not then also send the server descriptors: this defeats the whole
19627       purpose. Fixes bug 539.
19629   o Minor bugfixes:
19630     - Changing the ExitPolicyRejectPrivate setting should cause us to
19631       rebuild our server descriptor.
19632     - Fix handling of hex nicknames when answering controller requests for
19633       networkstatus by name, or when deciding whether to warn about
19634       unknown routers in a config option. (Patch from mwenge.)
19635     - Fix a couple of hard-to-trigger autoconf problems that could result
19636       in really weird results on platforms whose sys/types.h files define
19637       nonstandard integer types.
19638     - Don't try to create the datadir when running --verify-config or
19639       --hash-password. Resolves bug 540.
19640     - If we were having problems getting a particular descriptor from the
19641       directory caches, and then we learned about a new descriptor for
19642       that router, we weren't resetting our failure count. Reported
19643       by lodger.
19644     - Although we fixed bug 539 (where servers would send HTTP status 503
19645       responses _and_ send a body too), there are still servers out there
19646       that haven't upgraded. Therefore, make clients parse such bodies
19647       when they receive them.
19648     - Run correctly on systems where rlim_t is larger than unsigned long.
19649       This includes some 64-bit systems.
19650     - Run correctly on platforms (like some versions of OS X 10.5) where
19651       the real limit for number of open files is OPEN_FILES, not rlim_max
19652       from getrlimit(RLIMIT_NOFILES).
19653     - Avoid a spurious free on base64 failure.
19654     - Avoid segfaults on certain complex invocations of
19655       router_get_by_hexdigest().
19656     - Fix rare bug on REDIRECTSTREAM control command when called with no
19657       port set: it could erroneously report an error when none had
19658       happened.
19661 Changes in version 0.2.0.15-alpha - 2007-12-25
19662   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
19663   features added in 0.2.0.13-alpha.
19665   o Major bugfixes:
19666     - Fix several remotely triggerable asserts based on DirPort requests
19667       for a v2 or v3 networkstatus object before we were prepared. This
19668       was particularly bad for 0.2.0.13 and later bridge relays, who
19669       would never have a v2 networkstatus and would thus always crash
19670       when used. Bugfixes on 0.2.0.x.
19671     - Estimate the v3 networkstatus size more accurately, rather than
19672       estimating it at zero bytes and giving it artificially high priority
19673       compared to other directory requests. Bugfix on 0.2.0.x.
19675   o Minor bugfixes:
19676     - Fix configure.in logic for cross-compilation.
19677     - When we load a bridge descriptor from the cache, and it was
19678       previously unreachable, mark it as retriable so we won't just
19679       ignore it. Also, try fetching a new copy immediately. Bugfixes
19680       on 0.2.0.13-alpha.
19681     - The bridge GeoIP stats were counting other relays, for example
19682       self-reachability and authority-reachability tests.
19684   o Minor features:
19685     - Support compilation to target iPhone; patch from cjacker huang.
19686       To build for iPhone, pass the --enable-iphone option to configure.
19689 Changes in version 0.2.0.14-alpha - 2007-12-23
19690   o Major bugfixes:
19691     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
19692       without a datadirectory from a previous Tor install. Reported
19693       by Zax.
19694     - Fix a crash when we fetch a descriptor that turns out to be
19695       unexpected (it used to be in our networkstatus when we started
19696       fetching it, but it isn't in our current networkstatus), and we
19697       aren't using bridges. Bugfix on 0.2.0.x.
19698     - Fix a crash when accessing hidden services: it would work the first
19699       time you use a given introduction point for your service, but
19700       on subsequent requests we'd be using garbage memory. Fixed by
19701       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
19702     - Fix a crash when we load a bridge descriptor from disk but we don't
19703       currently have a Bridge line for it in our torrc. Bugfix on
19704       0.2.0.13-alpha.
19706   o Major features:
19707     - If bridge authorities set BridgePassword, they will serve a
19708       snapshot of known bridge routerstatuses from their DirPort to
19709       anybody who knows that password. Unset by default.
19711   o Minor bugfixes:
19712     - Make the unit tests build again.
19713     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
19714     - Make PublishServerDescriptor default to 1, so the default doesn't
19715       have to change as we invent new directory protocol versions.
19716     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
19717       be included unless sys/time.h is already included. Fixes
19718       bug 553. Bugfix on 0.2.0.x.
19719     - If we receive a general-purpose descriptor and then receive an
19720       identical bridge-purpose descriptor soon after, don't discard
19721       the next one as a duplicate.
19723   o Minor features:
19724     - If BridgeRelay is set to 1, then the default for
19725       PublishServerDescriptor is now "bridge" rather than "v2,v3".
19726     - If the user sets RelayBandwidthRate but doesn't set
19727       RelayBandwidthBurst, then make them equal rather than erroring out.
19730 Changes in version 0.2.0.13-alpha - 2007-12-21
19731   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
19732   Goodell, fixes many more bugs, and adds a lot of infrastructure for
19733   upcoming features.
19735   o New directory authorities:
19736     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
19737       authority.
19739   o Major bugfixes:
19740     - Only update guard status (usable / not usable) once we have
19741       enough directory information. This was causing us to always pick
19742       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
19743       causing us to discard all our guards on startup if we hadn't been
19744       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
19745     - Purge old entries from the "rephist" database and the hidden
19746       service descriptor databases even when DirPort is zero. Bugfix
19747       on 0.1.2.x.
19748     - We were ignoring our RelayBandwidthRate for the first 30 seconds
19749       after opening a circuit -- even a relayed circuit. Bugfix on
19750       0.2.0.3-alpha.
19751     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
19752       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
19753       crashing or mis-answering these types of requests.
19754     - Relays were publishing their server descriptor to v1 and v2
19755       directory authorities, but they didn't try publishing to v3-only
19756       authorities. Fix this; and also stop publishing to v1 authorities.
19757       Bugfix on 0.2.0.x.
19758     - When we were reading router descriptors from cache, we were ignoring
19759       the annotations -- so for example we were reading in bridge-purpose
19760       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
19761     - When we decided to send a 503 response to a request for servers, we
19762       were then also sending the server descriptors: this defeats the
19763       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
19765   o Major features:
19766     - Bridge relays now behave like clients with respect to time
19767       intervals for downloading new consensus documents -- otherwise they
19768       stand out. Bridge users now wait until the end of the interval,
19769       so their bridge relay will be sure to have a new consensus document.
19770     - Three new config options (AlternateDirAuthority,
19771       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
19772       user selectively replace the default directory authorities by type,
19773       rather than the all-or-nothing replacement that DirServer offers.
19774     - Tor can now be configured to read a GeoIP file from disk in one
19775       of two formats. This can be used by controllers to map IP addresses
19776       to countries. Eventually, it may support exit-by-country.
19777     - When possible, bridge relays remember which countries users
19778       are coming from, and report aggregate information in their
19779       extra-info documents, so that the bridge authorities can learn
19780       where Tor is blocked.
19781     - Bridge directory authorities now do reachability testing on the
19782       bridges they know. They provide router status summaries to the
19783       controller via "getinfo ns/purpose/bridge", and also dump summaries
19784       to a file periodically.
19785     - Stop fetching directory info so aggressively if your DirPort is
19786       on but your ORPort is off; stop fetching v2 dir info entirely.
19787       You can override these choices with the new FetchDirInfoEarly
19788       config option.
19790   o Minor bugfixes:
19791     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
19792       consensus documents when there are too many relays at a single
19793       IP address. Now clear it in v2 network status documents too, and
19794       also clear it in routerinfo_t when the relay is no longer listed
19795       in the relevant networkstatus document.
19796     - Don't crash if we get an unexpected value for the
19797       PublishServerDescriptor config option. Reported by Matt Edman;
19798       bugfix on 0.2.0.9-alpha.
19799     - Our new v2 hidden service descriptor format allows descriptors
19800       that have no introduction points. But Tor crashed when we tried
19801       to build a descriptor with no intro points (and it would have
19802       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
19803       by Karsten Loesing.
19804     - Fix building with dmalloc 5.5.2 with glibc.
19805     - Reject uploaded descriptors and extrainfo documents if they're
19806       huge. Otherwise we'll cache them all over the network and it'll
19807       clog everything up. Reported by Aljosha Judmayer.
19808     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
19809       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
19810     - When the DANGEROUS_VERSION controller status event told us we're
19811       running an obsolete version, it used the string "OLD" to describe
19812       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
19813       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
19814     - If we can't expand our list of entry guards (e.g. because we're
19815       using bridges or we have StrictEntryNodes set), don't mark relays
19816       down when they fail a directory request. Otherwise we're too quick
19817       to mark all our entry points down. Bugfix on 0.1.2.x.
19818     - Fix handling of hex nicknames when answering controller requests for
19819       networkstatus by name, or when deciding whether to warn about unknown
19820       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
19821     - Fix a couple of hard-to-trigger autoconf problems that could result
19822       in really weird results on platforms whose sys/types.h files define
19823       nonstandard integer types. Bugfix on 0.1.2.x.
19824     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
19825     - Don't crash on name lookup when we have no current consensus. Fixes
19826       bug 538; bugfix on 0.2.0.x.
19827     - Only Tors that want to mirror the v2 directory info should
19828       create the "cached-status" directory in their datadir. (All Tors
19829       used to create it.) Bugfix on 0.2.0.9-alpha.
19830     - Directory authorities should only automatically download Extra Info
19831       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
19833   o Minor features:
19834     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
19835       consumers. (We already do this on HUP.)
19836     - Authorities and caches fetch the v2 networkstatus documents
19837       less often, now that v3 is encouraged.
19838     - Add a new config option BridgeRelay that specifies you want to
19839       be a bridge relay. Right now the only difference is that it makes
19840       you answer begin_dir requests, and it makes you cache dir info,
19841       even if your DirPort isn't on.
19842     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
19843       ask about source, timestamp of arrival, purpose, etc. We need
19844       something like this to help Vidalia not do GeoIP lookups on bridge
19845       addresses.
19846     - Allow multiple HashedControlPassword config lines, to support
19847       multiple controller passwords.
19848     - Authorities now decide whether they're authoritative for a given
19849       router based on the router's purpose.
19850     - New config options AuthDirBadDir and AuthDirListBadDirs for
19851       authorities to mark certain relays as "bad directories" in the
19852       networkstatus documents. Also supports the "!baddir" directive in
19853       the approved-routers file.
19856 Changes in version 0.2.0.12-alpha - 2007-11-16
19857   This twelfth development snapshot fixes some more build problems as
19858   well as a few minor bugs.
19860   o Compile fixes:
19861     - Make it build on OpenBSD again. Patch from tup.
19862     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
19863       package-building for Red Hat, OS X, etc.
19865   o Minor bugfixes (on 0.1.2.x):
19866     - Changing the ExitPolicyRejectPrivate setting should cause us to
19867       rebuild our server descriptor.
19869   o Minor bugfixes (on 0.2.0.x):
19870     - When we're lacking a consensus, don't try to perform rendezvous
19871       operations. Reported by Karsten Loesing.
19872     - Fix a small memory leak whenever we decide against using a
19873       newly picked entry guard. Reported by Mike Perry.
19874     - When authorities detected more than two relays running on the same
19875       IP address, they were clearing all the status flags but forgetting
19876       to clear the "hsdir" flag. So clients were being told that a
19877       given relay was the right choice for a v2 hsdir lookup, yet they
19878       never had its descriptor because it was marked as 'not running'
19879       in the consensus.
19880     - If we're trying to fetch a bridge descriptor and there's no way
19881       the bridge authority could help us (for example, we don't know
19882       a digest, or there is no bridge authority), don't be so eager to
19883       fall back to asking the bridge authority.
19884     - If we're using bridges or have strictentrynodes set, and our
19885       chosen exit is in the same family as all our bridges/entry guards,
19886       then be flexible about families.
19888   o Minor features:
19889     - When we negotiate a v2 link-layer connection (not yet implemented),
19890       accept RELAY_EARLY cells and turn them into RELAY cells if we've
19891       negotiated a v1 connection for their next step. Initial code for
19892       proposal 110.
19895 Changes in version 0.2.0.11-alpha - 2007-11-12
19896   This eleventh development snapshot fixes some build problems with
19897   the previous snapshot. It also includes a more secure-by-default exit
19898   policy for relays, fixes an enormous memory leak for exit relays, and
19899   fixes another bug where servers were falling out of the directory list.
19901   o Security fixes:
19902     - Exit policies now reject connections that are addressed to a
19903       relay's public (external) IP address too, unless
19904       ExitPolicyRejectPrivate is turned off. We do this because too
19905       many relays are running nearby to services that trust them based
19906       on network address. Bugfix on 0.1.2.x.
19908   o Major bugfixes:
19909     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
19910       on every successful resolve. Reported by Mike Perry; bugfix
19911       on 0.1.2.x.
19912     - On authorities, never downgrade to old router descriptors simply
19913       because they're listed in the consensus. This created a catch-22
19914       where we wouldn't list a new descriptor because there was an
19915       old one in the consensus, and we couldn't get the new one in the
19916       consensus because we wouldn't list it. Possible fix for bug 548.
19917       Also, this might cause bug 543 to appear on authorities; if so,
19918       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
19920   o Packaging fixes on 0.2.0.10-alpha:
19921     - We were including instructions about what to do with the
19922       src/config/fallback-consensus file, but we weren't actually
19923       including it in the tarball. Disable all of that for now.
19925   o Minor features:
19926     - Allow people to say PreferTunnelledDirConns rather than
19927       PreferTunneledDirConns, for those alternate-spellers out there.
19929   o Minor bugfixes:
19930     - Don't reevaluate all the information from our consensus document
19931       just because we've downloaded a v2 networkstatus that we intend
19932       to cache. Fixes bug 545; bugfix on 0.2.0.x.
19935 Changes in version 0.2.0.10-alpha - 2007-11-10
19936   This tenth development snapshot adds a third v3 directory authority
19937   run by Mike Perry, adds most of Karsten Loesing's new hidden service
19938   descriptor format, fixes a bad crash bug and new bridge bugs introduced
19939   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
19940   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
19941   addresses many more minor issues.
19943   o New directory authorities:
19944     - Set up ides (run by Mike Perry) as the third v3 directory authority.
19946   o Major features:
19947     - Allow tunnelled directory connections to ask for an encrypted
19948       "begin_dir" connection or an anonymized "uses a full Tor circuit"
19949       connection independently. Now we can make anonymized begin_dir
19950       connections for (e.g.) more secure hidden service posting and
19951       fetching.
19952     - More progress on proposal 114: code from Karsten Loesing to
19953       implement new hidden service descriptor format.
19954     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
19955       accommodate the growing number of servers that use the default
19956       and are reaching it.
19957     - Directory authorities use a new formula for selecting which nodes
19958       to advertise as Guards: they must be in the top 7/8 in terms of
19959       how long we have known about them, and above the median of those
19960       nodes in terms of weighted fractional uptime.
19961     - Make "not enough dir info yet" warnings describe *why* Tor feels
19962       it doesn't have enough directory info yet.
19964   o Major bugfixes:
19965     - Stop servers from crashing if they set a Family option (or
19966       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
19967       by Fabian Keil.
19968     - Make bridge users work again -- the move to v3 directories in
19969       0.2.0.9-alpha had introduced a number of bugs that made bridges
19970       no longer work for clients.
19971     - When the clock jumps forward a lot, do not allow the bandwidth
19972       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
19974   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
19975     - When the consensus lists a router descriptor that we previously were
19976       mirroring, but that we considered non-canonical, reload the
19977       descriptor as canonical. This fixes bug 543 where Tor servers
19978       would start complaining after a few days that they don't have
19979       enough directory information to build a circuit.
19980     - Consider replacing the current consensus when certificates arrive
19981       that make the pending consensus valid. Previously, we were only
19982       considering replacement when the new certs _didn't_ help.
19983     - Fix an assert error on startup if we didn't already have the
19984       consensus and certs cached in our datadirectory: we were caching
19985       the consensus in consensus_waiting_for_certs but then free'ing it
19986       right after.
19987     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
19988       Request) if we need more v3 certs but we've already got pending
19989       requests for all of them.
19990     - Correctly back off from failing certificate downloads. Fixes
19991       bug 546.
19992     - Authorities don't vote on the Running flag if they have been running
19993       for less than 30 minutes themselves. Fixes bug 547, where a newly
19994       started authority would vote that everyone was down.
19996   o New requirements:
19997     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
19998       it, it had no AES, and it hasn't seen any security patches since
19999       2004.
20001   o Minor features:
20002     - Clients now hold circuitless TLS connections open for 1.5 times
20003       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
20004       rebuild a new circuit over them within that timeframe. Previously,
20005       they held them open only for KeepalivePeriod (5 minutes).
20006     - Use "If-Modified-Since" to avoid retrieving consensus
20007       networkstatuses that we already have.
20008     - When we have no consensus, check FallbackNetworkstatusFile (defaults
20009       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
20010       we start knowing some directory caches.
20011     - When we receive a consensus from the future, warn about skew.
20012     - Improve skew reporting: try to give the user a better log message
20013       about how skewed they are, and how much this matters.
20014     - When we have a certificate for an authority, believe that
20015       certificate's claims about the authority's IP address.
20016     - New --quiet command-line option to suppress the default console log.
20017       Good in combination with --hash-password.
20018     - Authorities send back an X-Descriptor-Not-New header in response to
20019       an accepted-but-discarded descriptor upload. Partially implements
20020       fix for bug 535.
20021     - Make the log message for "tls error. breaking." more useful.
20022     - Better log messages about certificate downloads, to attempt to
20023       track down the second incarnation of bug 546.
20025   o Minor features (bridges):
20026     - If bridge users set UpdateBridgesFromAuthority, but the digest
20027       they ask for is a 404 from the bridge authority, they now fall
20028       back to trying the bridge directly.
20029     - Bridges now use begin_dir to publish their server descriptor to
20030       the bridge authority, even when they haven't set TunnelDirConns.
20032   o Minor features (controller):
20033     - When reporting clock skew, and we know that the clock is _at least
20034       as skewed_ as some value, but we don't know the actual value,
20035       report the value as a "minimum skew."
20037   o Utilities:
20038     - Update linux-tor-prio.sh script to allow QoS based on the uid of
20039       the Tor process. Patch from Marco Bonetti with tweaks from Mike
20040       Perry.
20042   o Minor bugfixes:
20043     - Refuse to start if both ORPort and UseBridges are set. Bugfix
20044       on 0.2.0.x, suggested by Matt Edman.
20045     - Don't stop fetching descriptors when FetchUselessDescriptors is
20046       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
20047       reported by tup and ioerror.
20048     - Better log message on vote from unknown authority.
20049     - Don't log "Launching 0 request for 0 router" message.
20051   o Minor bugfixes (memory leaks):
20052     - Stop leaking memory every time we parse a v3 certificate. Bugfix
20053       on 0.2.0.1-alpha.
20054     - Stop leaking memory every time we load a v3 certificate. Bugfix
20055       on 0.2.0.1-alpha. Fixes bug 536.
20056     - Stop leaking a cached networkstatus on exit. Bugfix on
20057       0.2.0.3-alpha.
20058     - Stop leaking voter information every time we free a consensus.
20059       Bugfix on 0.2.0.3-alpha.
20060     - Stop leaking signed data every time we check a voter signature.
20061       Bugfix on 0.2.0.3-alpha.
20062     - Stop leaking a signature every time we fail to parse a consensus or
20063       a vote. Bugfix on 0.2.0.3-alpha.
20064     - Stop leaking v2_download_status_map on shutdown. Bugfix on
20065       0.2.0.9-alpha.
20066     - Stop leaking conn->nickname every time we make a connection to a
20067       Tor relay without knowing its expected identity digest (e.g. when
20068       using bridges). Bugfix on 0.2.0.3-alpha.
20070   - Minor bugfixes (portability):
20071     - Run correctly on platforms where rlim_t is larger than unsigned
20072       long, and/or where the real limit for number of open files is
20073       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
20074       particular, these may be needed for OS X 10.5.
20077 Changes in version 0.1.2.18 - 2007-10-28
20078   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
20079   hidden service introduction that were causing huge delays, and a big
20080   bug that was causing some servers to disappear from the network status
20081   lists for a few hours each day.
20083   o Major bugfixes (crashes):
20084     - If a connection is shut down abruptly because of something that
20085       happened inside connection_flushed_some(), do not call
20086       connection_finished_flushing(). Should fix bug 451:
20087       "connection_stop_writing: Assertion conn->write_event failed"
20088       Bugfix on 0.1.2.7-alpha.
20089     - Fix possible segfaults in functions called from
20090       rend_process_relay_cell().
20092   o Major bugfixes (hidden services):
20093     - Hidden services were choosing introduction points uniquely by
20094       hexdigest, but when constructing the hidden service descriptor
20095       they merely wrote the (potentially ambiguous) nickname.
20096     - Clients now use the v2 intro format for hidden service
20097       connections: they specify their chosen rendezvous point by identity
20098       digest rather than by (potentially ambiguous) nickname. These
20099       changes could speed up hidden service connections dramatically.
20101   o Major bugfixes (other):
20102     - Stop publishing a new server descriptor just because we get a
20103       HUP signal. This led (in a roundabout way) to some servers getting
20104       dropped from the networkstatus lists for a few hours each day.
20105     - When looking for a circuit to cannibalize, consider family as well
20106       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
20107       circuit cannibalization).
20108     - When a router wasn't listed in a new networkstatus, we were leaving
20109       the flags for that router alone -- meaning it remained Named,
20110       Running, etc -- even though absence from the networkstatus means
20111       that it shouldn't be considered to exist at all anymore. Now we
20112       clear all the flags for routers that fall out of the networkstatus
20113       consensus. Fixes bug 529.
20115   o Minor bugfixes:
20116     - Don't try to access (or alter) the state file when running
20117       --list-fingerprint or --verify-config or --hash-password. Resolves
20118       bug 499.
20119     - When generating information telling us how to extend to a given
20120       router, do not try to include the nickname if it is
20121       absent. Resolves bug 467.
20122     - Fix a user-triggerable segfault in expand_filename(). (There isn't
20123       a way to trigger this remotely.)
20124     - When sending a status event to the controller telling it that an
20125       OR address is reachable, set the port correctly. (Previously we
20126       were reporting the dir port.)
20127     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
20128       command. Bugfix on 0.1.2.17.
20129     - When loading bandwidth history, do not believe any information in
20130       the future. Fixes bug 434.
20131     - When loading entry guard information, do not believe any information
20132       in the future.
20133     - When we have our clock set far in the future and generate an
20134       onion key, then re-set our clock to be correct, we should not stop
20135       the onion key from getting rotated.
20136     - On some platforms, accept() can return a broken address. Detect
20137       this more quietly, and deal accordingly. Fixes bug 483.
20138     - It's not actually an error to find a non-pending entry in the DNS
20139       cache when canceling a pending resolve. Don't log unless stuff
20140       is fishy. Resolves bug 463.
20141     - Don't reset trusted dir server list when we set a configuration
20142       option. Patch from Robert Hogan.
20143     - Don't try to create the datadir when running --verify-config or
20144       --hash-password. Resolves bug 540.
20147 Changes in version 0.2.0.9-alpha - 2007-10-24
20148   This ninth development snapshot switches clients to the new v3 directory
20149   system; allows servers to be listed in the network status even when they
20150   have the same nickname as a registered server; and fixes many other
20151   bugs including a big one that was causing some servers to disappear
20152   from the network status lists for a few hours each day.
20154   o Major features (directory system):
20155     - Clients now download v3 consensus networkstatus documents instead
20156       of v2 networkstatus documents. Clients and caches now base their
20157       opinions about routers on these consensus documents. Clients only
20158       download router descriptors listed in the consensus.
20159     - Authorities now list servers who have the same nickname as
20160       a different named server, but list them with a new flag,
20161       "Unnamed". Now we can list servers that happen to pick the same
20162       nickname as a server that registered two years ago and then
20163       disappeared. Partially implements proposal 122.
20164     - If the consensus lists a router as "Unnamed", the name is assigned
20165       to a different router: do not identify the router by that name.
20166       Partially implements proposal 122.
20167     - Authorities can now come to a consensus on which method to use to
20168       compute the consensus. This gives us forward compatibility.
20170   o Major bugfixes:
20171     - Stop publishing a new server descriptor just because we HUP or
20172       when we find our DirPort to be reachable but won't actually publish
20173       it. New descriptors without any real changes are dropped by the
20174       authorities, and can screw up our "publish every 18 hours" schedule.
20175       Bugfix on 0.1.2.x.
20176     - When a router wasn't listed in a new networkstatus, we were leaving
20177       the flags for that router alone -- meaning it remained Named,
20178       Running, etc -- even though absence from the networkstatus means
20179       that it shouldn't be considered to exist at all anymore. Now we
20180       clear all the flags for routers that fall out of the networkstatus
20181       consensus. Fixes bug 529; bugfix on 0.1.2.x.
20182     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
20183       extrainfo documents and then discard them immediately for not
20184       matching the latest router. Bugfix on 0.2.0.1-alpha.
20186   o Minor features (v3 directory protocol):
20187     - Allow tor-gencert to generate a new certificate without replacing
20188       the signing key.
20189     - Allow certificates to include an address.
20190     - When we change our directory-cache settings, reschedule all voting
20191       and download operations.
20192     - Reattempt certificate downloads immediately on failure, as long as
20193       we haven't failed a threshold number of times yet.
20194     - Delay retrying consensus downloads while we're downloading
20195       certificates to verify the one we just got. Also, count getting a
20196       consensus that we already have (or one that isn't valid) as a failure,
20197       and count failing to get the certificates after 20 minutes as a
20198       failure.
20199     - Build circuits and download descriptors even if our consensus is a
20200       little expired. (This feature will go away once authorities are
20201       more reliable.)
20203   o Minor features (router descriptor cache):
20204     - If we find a cached-routers file that's been sitting around for more
20205       than 28 days unmodified, then most likely it's a leftover from
20206       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
20207       routers anyway.
20208     - When we (as a cache) download a descriptor because it was listed
20209       in a consensus, remember when the consensus was supposed to expire,
20210       and don't expire the descriptor until then.
20212   o Minor features (performance):
20213     - Call routerlist_remove_old_routers() much less often. This should
20214       speed startup, especially on directory caches.
20215     - Don't try to launch new descriptor downloads quite so often when we
20216       already have enough directory information to build circuits.
20217     - Base64 decoding was actually showing up on our profile when parsing
20218       the initial descriptor file; switch to an in-process all-at-once
20219       implementation that's about 3.5x times faster than calling out to
20220       OpenSSL.
20222   o Minor features (compilation):
20223     - Detect non-ASCII platforms (if any still exist) and refuse to
20224       build there: some of our code assumes that 'A' is 65 and so on.
20226   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
20227     - Make the "next period" votes into "current period" votes immediately
20228       after publishing the consensus; avoid a heisenbug that made them
20229       stick around indefinitely.
20230     - When we discard a vote as a duplicate, do not report this as
20231       an error.
20232     - Treat missing v3 keys or certificates as an error when running as a
20233       v3 directory authority.
20234     - When we're configured to be a v3 authority, but we're only listed
20235       as a non-v3 authority in our DirServer line for ourself, correct
20236       the listing.
20237     - If an authority doesn't have a qualified hostname, just put
20238       its address in the vote. This fixes the problem where we referred to
20239       "moria on moria:9031."
20240     - Distinguish between detached signatures for the wrong period, and
20241       detached signatures for a divergent vote.
20242     - Fix a small memory leak when computing a consensus.
20243     - When there's no concensus, we were forming a vote every 30
20244       minutes, but writing the "valid-after" line in our vote based
20245       on our configured V3AuthVotingInterval: so unless the intervals
20246       matched up, we immediately rejected our own vote because it didn't
20247       start at the voting interval that caused us to construct a vote.
20249   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
20250     - Delete unverified-consensus when the real consensus is set.
20251     - Consider retrying a consensus networkstatus fetch immediately
20252       after one fails: don't wait 60 seconds to notice.
20253     - When fetching a consensus as a cache, wait until a newer consensus
20254       should exist before trying to replace the current one.
20255     - Use a more forgiving schedule for retrying failed consensus
20256       downloads than for other types.
20258   o Minor bugfixes (other directory issues):
20259     - Correct the implementation of "download votes by digest." Bugfix on
20260       0.2.0.8-alpha.
20261     - Authorities no longer send back "400 you're unreachable please fix
20262       it" errors to Tor servers that aren't online all the time. We're
20263       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
20265   o Minor bugfixes (controller):
20266     - Don't reset trusted dir server list when we set a configuration
20267       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
20268     - Respond to INT and TERM SIGNAL commands before we execute the
20269       signal, in case the signal shuts us down. We had a patch in
20270       0.1.2.1-alpha that tried to do this by queueing the response on
20271       the connection's buffer before shutting down, but that really
20272       isn't the same thing at all. Bug located by Matt Edman.
20274   o Minor bugfixes (misc):
20275     - Correctly check for bad options to the "PublishServerDescriptor"
20276       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
20277     - Stop leaking memory on failing case of base32_decode, and make
20278       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
20279     - Don't try to download extrainfo documents when we're trying to
20280       fetch enough directory info to build a circuit: having enough
20281       info should get priority. Bugfix on 0.2.0.x.
20282     - Don't complain that "your server has not managed to confirm that its
20283       ports are reachable" if we haven't been able to build any circuits
20284       yet. Bug found by spending four hours without a v3 consensus. Bugfix
20285       on 0.1.2.x.
20286     - Detect the reason for failing to mmap a descriptor file we just
20287       wrote, and give a more useful log message. Fixes bug 533. Bugfix
20288       on 0.1.2.x.
20290   o Code simplifications and refactoring:
20291     - Remove support for the old bw_accounting file: we've been storing
20292       bandwidth accounting information in the state file since
20293       0.1.2.5-alpha. This may result in bandwidth accounting errors
20294       if you try to upgrade from 0.1.1.x or earlier, or if you try to
20295       downgrade to 0.1.1.x or earlier.
20296     - New convenience code to locate a file within the DataDirectory.
20297     - Move non-authority functionality out of dirvote.c.
20298     - Refactor the arguments for router_pick_{directory_|trusteddir}server
20299       so that they all take the same named flags.
20301   o Utilities
20302     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
20303       Unix users an easy way to script their Tor process (e.g. by
20304       adjusting bandwidth based on the time of the day).
20307 Changes in version 0.2.0.8-alpha - 2007-10-12
20308   This eighth development snapshot fixes a crash bug that's been bothering
20309   us since February 2007, lets bridge authorities store a list of bridge
20310   descriptors they've seen, gets v3 directory voting closer to working,
20311   starts caching v3 directory consensus documents on directory mirrors,
20312   and fixes a variety of smaller issues including some minor memory leaks.
20314   o Major features (router descriptor cache):
20315     - Store routers in a file called cached-descriptors instead of in
20316       cached-routers. Initialize cached-descriptors from cached-routers
20317       if the old format is around. The new format allows us to store
20318       annotations along with descriptors.
20319     - Use annotations to record the time we received each descriptor, its
20320       source, and its purpose.
20321     - Disable the SETROUTERPURPOSE controller command: it is now
20322       obsolete.
20323     - Controllers should now specify cache=no or cache=yes when using
20324       the +POSTDESCRIPTOR command.
20325     - Bridge authorities now write bridge descriptors to disk, meaning
20326       we can export them to other programs and begin distributing them
20327       to blocked users.
20329   o Major features (directory authorities):
20330     - When a v3 authority is missing votes or signatures, it now tries
20331       to fetch them.
20332     - Directory authorities track weighted fractional uptime as well as
20333       weighted mean-time-between failures. WFU is suitable for deciding
20334       whether a node is "usually up", while MTBF is suitable for deciding
20335       whether a node is "likely to stay up." We need both, because
20336       "usually up" is a good requirement for guards, while "likely to
20337       stay up" is a good requirement for long-lived connections.
20339   o Major features (v3 directory system):
20340     - Caches now download v3 network status documents as needed,
20341       and download the descriptors listed in them.
20342     - All hosts now attempt to download and keep fresh v3 authority
20343       certificates, and re-attempt after failures.
20344     - More internal-consistency checks for vote parsing.
20346   o Major bugfixes (crashes):
20347     - If a connection is shut down abruptly because of something that
20348       happened inside connection_flushed_some(), do not call
20349       connection_finished_flushing(). Should fix bug 451. Bugfix on
20350       0.1.2.7-alpha.
20352   o Major bugfixes (performance):
20353     - Fix really bad O(n^2) performance when parsing a long list of
20354       routers: Instead of searching the entire list for an "extra-info "
20355       string which usually wasn't there, once for every routerinfo
20356       we read, just scan lines forward until we find one we like.
20357       Bugfix on 0.2.0.1.
20358     - When we add data to a write buffer in response to the data on that
20359       write buffer getting low because of a flush, do not consider the
20360       newly added data as a candidate for immediate flushing, but rather
20361       make it wait until the next round of writing. Otherwise, we flush
20362       and refill recursively, and a single greedy TLS connection can
20363       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
20365   o Minor features (v3 authority system):
20366     - Add more ways for tools to download the votes that lead to the
20367       current consensus.
20368     - Send a 503 when low on bandwidth and a vote, consensus, or
20369       certificate is requested.
20370     - If-modified-since is now implemented properly for all kinds of
20371       certificate requests.
20373   o Minor bugfixes (network statuses):
20374     - Tweak the implementation of proposal 109 slightly: allow at most
20375       two Tor servers on the same IP address, except if it's the location
20376       of a directory authority, in which case allow five. Bugfix on
20377       0.2.0.3-alpha.
20379   o Minor bugfixes (controller):
20380     - When sending a status event to the controller telling it that an
20381       OR address is reachable, set the port correctly. (Previously we
20382       were reporting the dir port.) Bugfix on 0.1.2.x.
20384   o Minor bugfixes (v3 directory system):
20385     - Fix logic to look up a cert by its signing key digest. Bugfix on
20386       0.2.0.7-alpha.
20387     - Only change the reply to a vote to "OK" if it's not already
20388       set. This gets rid of annoying "400 OK" log messages, which may
20389       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
20390     - When we get a valid consensus, recompute the voting schedule.
20391     - Base the valid-after time of a vote on the consensus voting
20392       schedule, not on our preferred schedule.
20393     - Make the return values and messages from signature uploads and
20394       downloads more sensible.
20395     - Fix a memory leak when serving votes and consensus documents, and
20396       another when serving certificates.
20398   o Minor bugfixes (performance):
20399     - Use a slightly simpler string hashing algorithm (copying Python's
20400       instead of Java's) and optimize our digest hashing algorithm to take
20401       advantage of 64-bit platforms and to remove some possibly-costly
20402       voodoo.
20403     - Fix a minor memory leak whenever we parse guards from our state
20404       file. Bugfix on 0.2.0.7-alpha.
20405     - Fix a minor memory leak whenever we write out a file. Bugfix on
20406       0.2.0.7-alpha.
20407     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
20408       command. Bugfix on 0.2.0.5-alpha.
20410   o Minor bugfixes (portability):
20411     - On some platforms, accept() can return a broken address. Detect
20412       this more quietly, and deal accordingly. Fixes bug 483.
20413     - Stop calling tor_strlower() on uninitialized memory in some cases.
20414       Bugfix in 0.2.0.7-alpha.
20416   o Minor bugfixes (usability):
20417     - Treat some 403 responses from directory servers as INFO rather than
20418       WARN-severity events.
20419     - It's not actually an error to find a non-pending entry in the DNS
20420       cache when canceling a pending resolve. Don't log unless stuff is
20421       fishy. Resolves bug 463.
20423   o Minor bugfixes (anonymity):
20424     - Never report that we've used more bandwidth than we're willing to
20425       relay: it leaks how much non-relay traffic we're using. Resolves
20426       bug 516.
20427     - When looking for a circuit to cannibalize, consider family as well
20428       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
20429       circuit cannibalization).
20431   o Code simplifications and refactoring:
20432     - Make a bunch of functions static. Remove some dead code.
20433     - Pull out about a third of the really big routerlist.c; put it in a
20434       new module, networkstatus.c.
20435     - Merge the extra fields in local_routerstatus_t back into
20436       routerstatus_t: we used to need one routerstatus_t for each
20437       authority's opinion, plus a local_routerstatus_t for the locally
20438       computed consensus opinion. To save space, we put the locally
20439       modified fields into local_routerstatus_t, and only the common
20440       stuff into routerstatus_t. But once v3 directories are in use,
20441       clients and caches will no longer need to hold authority opinions;
20442       thus, the rationale for keeping the types separate is now gone.
20443     - Make the code used to reschedule and reattempt downloads more
20444       uniform.
20445     - Turn all 'Are we a directory server/mirror?' logic into a call to
20446       dirserver_mode().
20447     - Remove the code to generate the oldest (v1) directory format.
20448       The code has been disabled since 0.2.0.5-alpha.
20451 Changes in version 0.2.0.7-alpha - 2007-09-21
20452   This seventh development snapshot makes bridges work again, makes bridge
20453   authorities work for the first time, fixes two huge performance flaws
20454   in hidden services, and fixes a variety of minor issues.
20456   o New directory authorities:
20457     - Set up moria1 and tor26 as the first v3 directory authorities. See
20458       doc/spec/dir-spec.txt for details on the new directory design.
20460   o Major bugfixes (crashes):
20461     - Fix possible segfaults in functions called from
20462       rend_process_relay_cell(). Bugfix on 0.1.2.x.
20464   o Major bugfixes (bridges):
20465     - Fix a bug that made servers send a "404 Not found" in response to
20466       attempts to fetch their server descriptor. This caused Tor servers
20467       to take many minutes to establish reachability for their DirPort,
20468       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
20469     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
20470       users configure that and specify a bridge with an identity
20471       fingerprint, now they will lookup the bridge descriptor at the
20472       default bridge authority via a one-hop tunnel, but once circuits
20473       are established they will switch to a three-hop tunnel for later
20474       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
20476   o Major bugfixes (hidden services):
20477     - Hidden services were choosing introduction points uniquely by
20478       hexdigest, but when constructing the hidden service descriptor
20479       they merely wrote the (potentially ambiguous) nickname.
20480     - Clients now use the v2 intro format for hidden service
20481       connections: they specify their chosen rendezvous point by identity
20482       digest rather than by (potentially ambiguous) nickname. Both
20483       are bugfixes on 0.1.2.x, and they could speed up hidden service
20484       connections dramatically. Thanks to Karsten Loesing.
20486   o Minor features (security):
20487     - As a client, do not believe any server that tells us that an
20488       address maps to an internal address space.
20489     - Make it possible to enable HashedControlPassword and
20490       CookieAuthentication at the same time.
20492   o Minor features (guard nodes):
20493     - Tag every guard node in our state file with the version that
20494       we believe added it, or with our own version if we add it. This way,
20495       if a user temporarily runs an old version of Tor and then switches
20496       back to a new one, she doesn't automatically lose her guards.
20498   o Minor features (speed):
20499     - When implementing AES counter mode, update only the portions of the
20500       counter buffer that need to change, and don't keep separate
20501       network-order and host-order counters when they are the same (i.e.,
20502       on big-endian hosts.)
20504   o Minor features (controller):
20505     - Accept LF instead of CRLF on controller, since some software has a
20506       hard time generating real Internet newlines.
20507     - Add GETINFO values for the server status events
20508       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
20509       Robert Hogan.
20511   o Removed features:
20512      - Routers no longer include bandwidth-history lines in their
20513        descriptors; this information is already available in extra-info
20514        documents, and including it in router descriptors took up 60%
20515        (!) of compressed router descriptor downloads. Completes
20516        implementation of proposal 104.
20517      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
20518        and TorControl.py, as they use the old v0 controller protocol,
20519        and are obsoleted by TorFlow anyway.
20520      - Drop support for v1 rendezvous descriptors, since we never used
20521        them anyway, and the code has probably rotted by now. Based on
20522        patch from Karsten Loesing.
20523      - On OSX, stop warning the user that kqueue support in libevent is
20524       "experimental", since it seems to have worked fine for ages.
20526   o Minor bugfixes:
20527     - When generating information telling us how to extend to a given
20528       router, do not try to include the nickname if it is absent. Fixes
20529       bug 467. Bugfix on 0.2.0.3-alpha.
20530     - Fix a user-triggerable (but not remotely-triggerable) segfault
20531       in expand_filename(). Bugfix on 0.1.2.x.
20532     - Fix a memory leak when freeing incomplete requests from DNSPort.
20533       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
20534     - Don't try to access (or alter) the state file when running
20535       --list-fingerprint or --verify-config or --hash-password. (Resolves
20536       bug 499.) Bugfix on 0.1.2.x.
20537     - Servers used to decline to publish their DirPort if their
20538       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
20539       were below a threshold. Now they only look at BandwidthRate and
20540       RelayBandwidthRate. Bugfix on 0.1.2.x.
20541     - Remove an optimization in the AES counter-mode code that assumed
20542       that the counter never exceeded 2^68. When the counter can be set
20543       arbitrarily as an IV (as it is by Karsten's new hidden services
20544       code), this assumption no longer holds. Bugfix on 0.1.2.x.
20545     - Resume listing "AUTHORITY" flag for authorities in network status.
20546       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
20548   o Code simplifications and refactoring:
20549     - Revamp file-writing logic so we don't need to have the entire
20550       contents of a file in memory at once before we write to disk. Tor,
20551       meet stdio.
20552     - Turn "descriptor store" into a full-fledged type.
20553     - Move all NT services code into a separate source file.
20554     - Unify all code that computes medians, percentile elements, etc.
20555     - Get rid of a needless malloc when parsing address policies.
20558 Changes in version 0.1.2.17 - 2007-08-30
20559   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
20560   X bundles. Vidalia 0.0.14 makes authentication required for the
20561   ControlPort in the default configuration, which addresses important
20562   security risks. Everybody who uses Vidalia (or another controller)
20563   should upgrade.
20565   In addition, this Tor update fixes major load balancing problems with
20566   path selection, which should speed things up a lot once many people
20567   have upgraded.
20569   o Major bugfixes (security):
20570     - We removed support for the old (v0) control protocol. It has been
20571       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
20572       become more of a headache than it's worth.
20574   o Major bugfixes (load balancing):
20575     - When choosing nodes for non-guard positions, weight guards
20576       proportionally less, since they already have enough load. Patch
20577       from Mike Perry.
20578     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
20579       will allow fast Tor servers to get more attention.
20580     - When we're upgrading from an old Tor version, forget our current
20581       guards and pick new ones according to the new weightings. These
20582       three load balancing patches could raise effective network capacity
20583       by a factor of four. Thanks to Mike Perry for measurements.
20585   o Major bugfixes (stream expiration):
20586     - Expire not-yet-successful application streams in all cases if
20587       they've been around longer than SocksTimeout. Right now there are
20588       some cases where the stream will live forever, demanding a new
20589       circuit every 15 seconds. Fixes bug 454; reported by lodger.
20591   o Minor features (controller):
20592     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
20593       is valid before any authentication has been received. It tells
20594       a controller what kind of authentication is expected, and what
20595       protocol is spoken. Implements proposal 119.
20597   o Minor bugfixes (performance):
20598     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
20599       greatly speeding up loading cached-routers from disk on startup.
20600     - Disable sentinel-based debugging for buffer code: we squashed all
20601       the bugs that this was supposed to detect a long time ago, and now
20602       its only effect is to change our buffer sizes from nice powers of
20603       two (which platform mallocs tend to like) to values slightly over
20604       powers of two (which make some platform mallocs sad).
20606   o Minor bugfixes (misc):
20607     - If exit bandwidth ever exceeds one third of total bandwidth, then
20608       use the correct formula to weight exit nodes when choosing paths.
20609       Based on patch from Mike Perry.
20610     - Choose perfectly fairly among routers when choosing by bandwidth and
20611       weighting by fraction of bandwidth provided by exits. Previously, we
20612       would choose with only approximate fairness, and correct ourselves
20613       if we ran off the end of the list.
20614     - If we require CookieAuthentication but we fail to write the
20615       cookie file, we would warn but not exit, and end up in a state
20616       where no controller could authenticate. Now we exit.
20617     - If we require CookieAuthentication, stop generating a new cookie
20618       every time we change any piece of our config.
20619     - Refuse to start with certain directory authority keys, and
20620       encourage people using them to stop.
20621     - Terminate multi-line control events properly. Original patch
20622       from tup.
20623     - Fix a minor memory leak when we fail to find enough suitable
20624       servers to choose a circuit.
20625     - Stop leaking part of the descriptor when we run into a particularly
20626       unparseable piece of it.
20629 Changes in version 0.2.0.6-alpha - 2007-08-26
20630   This sixth development snapshot features a new Vidalia version in the
20631   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
20632   the ControlPort in the default configuration, which addresses important
20633   security risks.
20635   In addition, this snapshot fixes major load balancing problems
20636   with path selection, which should speed things up a lot once many
20637   people have upgraded. The directory authorities also use a new
20638   mean-time-between-failure approach to tracking which servers are stable,
20639   rather than just looking at the most recent uptime.
20641   o New directory authorities:
20642     - Set up Tonga as the default bridge directory authority.
20644   o Major features:
20645     - Directory authorities now track servers by weighted
20646       mean-times-between-failures. When we have 4 or more days of data,
20647       use measured MTBF rather than declared uptime to decide whether
20648       to call a router Stable. Implements proposal 108.
20650   o Major bugfixes (load balancing):
20651     - When choosing nodes for non-guard positions, weight guards
20652       proportionally less, since they already have enough load. Patch
20653       from Mike Perry.
20654     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
20655       will allow fast Tor servers to get more attention.
20656     - When we're upgrading from an old Tor version, forget our current
20657       guards and pick new ones according to the new weightings. These
20658       three load balancing patches could raise effective network capacity
20659       by a factor of four. Thanks to Mike Perry for measurements.
20661   o Major bugfixes (descriptor parsing):
20662     - Handle unexpected whitespace better in malformed descriptors. Bug
20663       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
20665   o Minor features:
20666     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
20667       GETINFO for Torstat to use until it can switch to using extrainfos.
20668     - Optionally (if built with -DEXPORTMALLINFO) export the output
20669       of mallinfo via http, as tor/mallinfo.txt. Only accessible
20670       from localhost.
20672   o Minor bugfixes:
20673     - Do not intermix bridge routers with controller-added
20674       routers. (Bugfix on 0.2.0.x)
20675     - Do not fail with an assert when accept() returns an unexpected
20676       address family. Addresses but does not wholly fix bug 483. (Bugfix
20677       on 0.2.0.x)
20678     - Let directory authorities startup even when they can't generate
20679       a descriptor immediately, e.g. because they don't know their
20680       address.
20681     - Stop putting the authentication cookie in a file called "0"
20682       in your working directory if you don't specify anything for the
20683       new CookieAuthFile option. Reported by Matt Edman.
20684     - Make it possible to read the PROTOCOLINFO response in a way that
20685       conforms to our control-spec. Reported by Matt Edman.
20686     - Fix a minor memory leak when we fail to find enough suitable
20687       servers to choose a circuit. Bugfix on 0.1.2.x.
20688     - Stop leaking part of the descriptor when we run into a particularly
20689       unparseable piece of it. Bugfix on 0.1.2.x.
20690     - Unmap the extrainfo cache file on exit.
20693 Changes in version 0.2.0.5-alpha - 2007-08-19
20694   This fifth development snapshot fixes compilation on Windows again;
20695   fixes an obnoxious client-side bug that slowed things down and put
20696   extra load on the network; gets us closer to using the v3 directory
20697   voting scheme; makes it easier for Tor controllers to use cookie-based
20698   authentication; and fixes a variety of other bugs.
20700   o Removed features:
20701     - Version 1 directories are no longer generated in full. Instead,
20702       authorities generate and serve "stub" v1 directories that list
20703       no servers. This will stop Tor versions 0.1.0.x and earlier from
20704       working, but (for security reasons) nobody should be running those
20705       versions anyway.
20707   o Major bugfixes (compilation, 0.2.0.x):
20708     - Try to fix Win32 compilation again: improve checking for IPv6 types.
20709     - Try to fix MSVC compilation: build correctly on platforms that do
20710       not define s6_addr16 or s6_addr32.
20711     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
20712       Zhou.
20714   o Major bugfixes (stream expiration):
20715     - Expire not-yet-successful application streams in all cases if
20716       they've been around longer than SocksTimeout. Right now there are
20717       some cases where the stream will live forever, demanding a new
20718       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
20719       reported by lodger.
20721   o Minor features (directory servers):
20722     - When somebody requests a list of statuses or servers, and we have
20723       none of those, return a 404 rather than an empty 200.
20725   o Minor features (directory voting):
20726     - Store v3 consensus status consensuses on disk, and reload them
20727       on startup.
20729   o Minor features (security):
20730     - Warn about unsafe ControlPort configurations.
20731     - Refuse to start with certain directory authority keys, and
20732       encourage people using them to stop.
20734   o Minor features (controller):
20735     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
20736       is valid before any authentication has been received. It tells
20737       a controller what kind of authentication is expected, and what
20738       protocol is spoken. Implements proposal 119.
20739     - New config option CookieAuthFile to choose a new location for the
20740       cookie authentication file, and config option
20741       CookieAuthFileGroupReadable to make it group-readable.
20743   o Minor features (unit testing):
20744     - Add command-line arguments to unit-test executable so that we can
20745       invoke any chosen test from the command line rather than having
20746       to run the whole test suite at once; and so that we can turn on
20747       logging for the unit tests.
20749   o Minor bugfixes (on 0.1.2.x):
20750     - If we require CookieAuthentication but we fail to write the
20751       cookie file, we would warn but not exit, and end up in a state
20752       where no controller could authenticate. Now we exit.
20753     - If we require CookieAuthentication, stop generating a new cookie
20754       every time we change any piece of our config.
20755     - When loading bandwidth history, do not believe any information in
20756       the future. Fixes bug 434.
20757     - When loading entry guard information, do not believe any information
20758       in the future.
20759     - When we have our clock set far in the future and generate an
20760       onion key, then re-set our clock to be correct, we should not stop
20761       the onion key from getting rotated.
20762     - Clean up torrc sample config file.
20763     - Do not automatically run configure from autogen.sh. This
20764       non-standard behavior tended to annoy people who have built other
20765       programs.
20767   o Minor bugfixes (on 0.2.0.x):
20768     - Fix a bug with AutomapHostsOnResolve that would always cause
20769       the second request to fail. Bug reported by Kate. Bugfix on
20770       0.2.0.3-alpha.
20771     - Fix a bug in ADDRMAP controller replies that would sometimes
20772       try to print a NULL. Patch from tup.
20773     - Read v3 directory authority keys from the right location.
20774     - Numerous bugfixes to directory voting code.
20777 Changes in version 0.1.2.16 - 2007-08-01
20778   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
20779   remote attacker in certain situations to rewrite the user's torrc
20780   configuration file. This can completely compromise anonymity of users
20781   in most configurations, including those running the Vidalia bundles,
20782   TorK, etc. Or worse.
20784   o Major security fixes:
20785     - Close immediately after missing authentication on control port;
20786       do not allow multiple authentication attempts.
20789 Changes in version 0.2.0.4-alpha - 2007-08-01
20790   This fourth development snapshot fixes a critical security vulnerability
20791   for most users, specifically those running Vidalia, TorK, etc. Everybody
20792   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
20794   o Major security fixes:
20795     - Close immediately after missing authentication on control port;
20796       do not allow multiple authentication attempts.
20798   o Major bugfixes (compilation):
20799     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
20800       defined there.
20802   o Minor features (performance):
20803     - Be even more aggressive about releasing RAM from small
20804       empty buffers. Thanks to our free-list code, this shouldn't be too
20805       performance-intensive.
20806     - Disable sentinel-based debugging for buffer code: we squashed all
20807       the bugs that this was supposed to detect a long time ago, and
20808       now its only effect is to change our buffer sizes from nice
20809       powers of two (which platform mallocs tend to like) to values
20810       slightly over powers of two (which make some platform mallocs sad).
20811     - Log malloc statistics from mallinfo() on platforms where it
20812       exists.
20815 Changes in version 0.2.0.3-alpha - 2007-07-29
20816   This third development snapshot introduces new experimental
20817   blocking-resistance features and a preliminary version of the v3
20818   directory voting design, and includes many other smaller features
20819   and bugfixes.
20821   o Major features:
20822     - The first pieces of our "bridge" design for blocking-resistance
20823       are implemented. People can run bridge directory authorities;
20824       people can run bridges; and people can configure their Tor clients
20825       with a set of bridges to use as the first hop into the Tor network.
20826       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
20827       details.
20828     - Create listener connections before we setuid to the configured
20829       User and Group. Now non-Windows users can choose port values
20830       under 1024, start Tor as root, and have Tor bind those ports
20831       before it changes to another UID. (Windows users could already
20832       pick these ports.)
20833     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
20834       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
20835       on "vserver" accounts. (Patch from coderman.)
20836     - Be even more aggressive about separating local traffic from relayed
20837       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
20839   o Major features (experimental):
20840     - First cut of code for "v3 dir voting": directory authorities will
20841       vote on a common network status document rather than each publishing
20842       their own opinion. This code needs more testing and more corner-case
20843       handling before it's ready for use.
20845   o Security fixes:
20846     - Directory authorities now call routers Fast if their bandwidth is
20847       at least 100KB/s, and consider their bandwidth adequate to be a
20848       Guard if it is at least 250KB/s, no matter the medians. This fix
20849       complements proposal 107. [Bugfix on 0.1.2.x]
20850     - Directory authorities now never mark more than 3 servers per IP as
20851       Valid and Running. (Implements proposal 109, by Kevin Bauer and
20852       Damon McCoy.)
20853     - Minor change to organizationName and commonName generation
20854       procedures in TLS certificates during Tor handshakes, to invalidate
20855       some earlier censorware approaches. This is not a long-term
20856       solution, but applying it will give us a bit of time to look into
20857       the epidemiology of countermeasures as they spread.
20859   o Major bugfixes (directory):
20860     - Rewrite directory tokenization code to never run off the end of
20861       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
20863   o Minor features (controller):
20864     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
20865       match requests to applications. (Patch from Robert Hogan.)
20866     - Report address and port correctly on connections to DNSPort. (Patch
20867       from Robert Hogan.)
20868     - Add a RESOLVE command to launch hostname lookups. (Original patch
20869       from Robert Hogan.)
20870     - Add GETINFO status/enough-dir-info to let controllers tell whether
20871       Tor has downloaded sufficient directory information. (Patch
20872       from Tup.)
20873     - You can now use the ControlSocket option to tell Tor to listen for
20874       controller connections on Unix domain sockets on systems that
20875       support them. (Patch from Peter Palfrader.)
20876     - STREAM NEW events are generated for DNSPort requests and for
20877       tunneled directory connections. (Patch from Robert Hogan.)
20878     - New "GETINFO address-mappings/*" command to get address mappings
20879       with expiry information. "addr-mappings/*" is now deprecated.
20880       (Patch from Tup.)
20882   o Minor features (misc):
20883     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
20884       from croup.)
20885     - The tor-gencert tool for v3 directory authorities now creates all
20886       files as readable to the file creator only, and write-protects
20887       the authority identity key.
20888     - When dumping memory usage, list bytes used in buffer memory
20889       free-lists.
20890     - When running with dmalloc, dump more stats on hup and on exit.
20891     - Directory authorities now fail quickly and (relatively) harmlessly
20892       if they generate a network status document that is somehow
20893       malformed.
20895   o Traffic load balancing improvements:
20896     - If exit bandwidth ever exceeds one third of total bandwidth, then
20897       use the correct formula to weight exit nodes when choosing paths.
20898       (Based on patch from Mike Perry.)
20899     - Choose perfectly fairly among routers when choosing by bandwidth and
20900       weighting by fraction of bandwidth provided by exits. Previously, we
20901       would choose with only approximate fairness, and correct ourselves
20902       if we ran off the end of the list. [Bugfix on 0.1.2.x]
20904   o Performance improvements:
20905     - Be more aggressive with freeing buffer RAM or putting it on the
20906       memory free lists.
20907     - Use Critical Sections rather than Mutexes for synchronizing threads
20908       on win32; Mutexes are heavier-weight, and designed for synchronizing
20909       between processes.
20911   o Deprecated and removed features:
20912     - RedirectExits is now deprecated.
20913     - Stop allowing address masks that do not correspond to bit prefixes.
20914       We have warned about these for a really long time; now it's time
20915       to reject them. (Patch from croup.)
20917   o Minor bugfixes (directory):
20918     - Fix another crash bug related to extra-info caching. (Bug found by
20919       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
20920     - Directories no longer return a "304 not modified" when they don't
20921       have the networkstatus the client asked for. Also fix a memory
20922       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
20923     - We had accidentally labelled 0.1.2.x directory servers as not
20924       suitable for begin_dir requests, and had labelled no directory
20925       servers as suitable for uploading extra-info documents. [Bugfix
20926       on 0.2.0.1-alpha]
20928   o Minor bugfixes (dns):
20929     - Fix a crash when DNSPort is set more than once. (Patch from Robert
20930       Hogan.) [Bugfix on 0.2.0.2-alpha]
20931     - Add DNSPort connections to the global connection list, so that we
20932       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
20933       on 0.2.0.2-alpha]
20934     - Fix a dangling reference that could lead to a crash when DNSPort is
20935       changed or closed (Patch from Robert Hogan.) [Bugfix on
20936       0.2.0.2-alpha]
20938   o Minor bugfixes (controller):
20939     - Provide DNS expiry times in GMT, not in local time. For backward
20940       compatibility, ADDRMAP events only provide GMT expiry in an extended
20941       field. "GETINFO address-mappings" always does the right thing.
20942     - Use CRLF line endings properly in NS events.
20943     - Terminate multi-line control events properly. (Original patch
20944       from tup.) [Bugfix on 0.1.2.x-alpha]
20945     - Do not include spaces in SOURCE_ADDR fields in STREAM
20946       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
20949 Changes in version 0.1.2.15 - 2007-07-17
20950   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
20951   problems, fixes compilation on BSD, and fixes a variety of other
20952   bugs. Everybody should upgrade.
20954   o Major bugfixes (compilation):
20955     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
20957   o Major bugfixes (crashes):
20958     - Try even harder not to dereference the first character after
20959       an mmap(). Reported by lodger.
20960     - Fix a crash bug in directory authorities when we re-number the
20961       routerlist while inserting a new router.
20962     - When the cached-routers file is an even multiple of the page size,
20963       don't run off the end and crash. (Fixes bug 455; based on idea
20964       from croup.)
20965     - Fix eventdns.c behavior on Solaris: It is critical to include
20966       orconfig.h _before_ sys/types.h, so that we can get the expected
20967       definition of _FILE_OFFSET_BITS.
20969   o Major bugfixes (security):
20970     - Fix a possible buffer overrun when using BSD natd support. Bug
20971       found by croup.
20972     - When sending destroy cells from a circuit's origin, don't include
20973       the reason for tearing down the circuit. The spec says we didn't,
20974       and now we actually don't. Reported by lodger.
20975     - Keep streamids from different exits on a circuit separate. This
20976       bug may have allowed other routers on a given circuit to inject
20977       cells into streams. Reported by lodger; fixes bug 446.
20978     - If there's a never-before-connected-to guard node in our list,
20979       never choose any guards past it. This way we don't expand our
20980       guard list unless we need to.
20982   o Minor bugfixes (guard nodes):
20983     - Weight guard selection by bandwidth, so that low-bandwidth nodes
20984       don't get overused as guards.
20986   o Minor bugfixes (directory):
20987     - Correctly count the number of authorities that recommend each
20988       version. Previously, we were under-counting by 1.
20989     - Fix a potential crash bug when we load many server descriptors at
20990       once and some of them make others of them obsolete. Fixes bug 458.
20992   o Minor bugfixes (hidden services):
20993     - Stop tearing down the whole circuit when the user asks for a
20994       connection to a port that the hidden service didn't configure.
20995       Resolves bug 444.
20997   o Minor bugfixes (misc):
20998     - On Windows, we were preventing other processes from reading
20999       cached-routers while Tor was running. Reported by janbar.
21000     - Fix a possible (but very unlikely) bug in picking routers by
21001       bandwidth. Add a log message to confirm that it is in fact
21002       unlikely. Patch from lodger.
21003     - Backport a couple of memory leak fixes.
21004     - Backport miscellaneous cosmetic bugfixes.
21007 Changes in version 0.2.0.2-alpha - 2007-06-02
21008   o Major bugfixes on 0.2.0.1-alpha:
21009     - Fix an assertion failure related to servers without extra-info digests.
21010       Resolves bugs 441 and 442.
21012   o Minor features (directory):
21013     - Support "If-Modified-Since" when answering HTTP requests for
21014       directories, running-routers documents, and network-status documents.
21015       (There's no need to support it for router descriptors, since those
21016       are downloaded by descriptor digest.)
21018   o Minor build issues:
21019     - Clear up some MIPSPro compiler warnings.
21020     - When building from a tarball on a machine that happens to have SVK
21021       installed, report the micro-revision as whatever version existed
21022       in the tarball, not as "x".
21025 Changes in version 0.2.0.1-alpha - 2007-06-01
21026   This early development snapshot provides new features for people running
21027   Tor as both a client and a server (check out the new RelayBandwidth
21028   config options); lets Tor run as a DNS proxy; and generally moves us
21029   forward on a lot of fronts.
21031   o Major features, server usability:
21032     - New config options RelayBandwidthRate and RelayBandwidthBurst:
21033       a separate set of token buckets for relayed traffic. Right now
21034       relayed traffic is defined as answers to directory requests, and
21035       OR connections that don't have any local circuits on them.
21037   o Major features, client usability:
21038     - A client-side DNS proxy feature to replace the need for
21039       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
21040       for DNS requests on port 9999, use the Tor network to resolve them
21041       anonymously, and send the reply back like a regular DNS server.
21042       The code still only implements a subset of DNS.
21043     - Make PreferTunneledDirConns and TunnelDirConns work even when
21044       we have no cached directory info. This means Tor clients can now
21045       do all of their connections protected by TLS.
21047   o Major features, performance and efficiency:
21048     - Directory authorities accept and serve "extra info" documents for
21049       routers. These documents contain fields from router descriptors
21050       that aren't usually needed, and that use a lot of excess
21051       bandwidth. Once these fields are removed from router descriptors,
21052       the bandwidth savings should be about 60%. [Partially implements
21053       proposal 104.]
21054     - Servers upload extra-info documents to any authority that accepts
21055       them. Authorities (and caches that have been configured to download
21056       extra-info documents) download them as needed. [Partially implements
21057       proposal 104.]
21058     - Change the way that Tor buffers data that it is waiting to write.
21059       Instead of queueing data cells in an enormous ring buffer for each
21060       client->OR or OR->OR connection, we now queue cells on a separate
21061       queue for each circuit. This lets us use less slack memory, and
21062       will eventually let us be smarter about prioritizing different kinds
21063       of traffic.
21064     - Use memory pools to allocate cells with better speed and memory
21065       efficiency, especially on platforms where malloc() is inefficient.
21066     - Stop reading on edge connections when their corresponding circuit
21067       buffers are full; start again as the circuits empty out.
21069   o Major features, other:
21070     - Add an HSAuthorityRecordStats option that hidden service authorities
21071       can use to track statistics of overall hidden service usage without
21072       logging information that would be very useful to an attacker.
21073     - Start work implementing multi-level keys for directory authorities:
21074       Add a standalone tool to generate key certificates. (Proposal 103.)
21076   o Security fixes:
21077     - Directory authorities now call routers Stable if they have an
21078       uptime of at least 30 days, even if that's not the median uptime
21079       in the network. Implements proposal 107, suggested by Kevin Bauer
21080       and Damon McCoy.
21082   o Minor fixes (resource management):
21083     - Count the number of open sockets separately from the number
21084       of active connection_t objects. This will let us avoid underusing
21085       our allocated connection limit.
21086     - We no longer use socket pairs to link an edge connection to an
21087       anonymous directory connection or a DirPort test connection.
21088       Instead, we track the link internally and transfer the data
21089       in-process. This saves two sockets per "linked" connection (at the
21090       client and at the server), and avoids the nasty Windows socketpair()
21091       workaround.
21092     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
21093       for every single inactive connection_t. Free items from the
21094       4k/16k-buffer free lists when they haven't been used for a while.
21096   o Minor features (build):
21097     - Make autoconf search for libevent, openssl, and zlib consistently.
21098     - Update deprecated macros in configure.in.
21099     - When warning about missing headers, tell the user to let us
21100       know if the compile succeeds anyway, so we can downgrade the
21101       warning.
21102     - Include the current subversion revision as part of the version
21103       string: either fetch it directly if we're in an SVN checkout, do
21104       some magic to guess it if we're in an SVK checkout, or use
21105       the last-detected version if we're building from a .tar.gz.
21106       Use this version consistently in log messages.
21108   o Minor features (logging):
21109     - Always prepend "Bug: " to any log message about a bug.
21110     - Put a platform string (e.g. "Linux i686") in the startup log
21111       message, so when people paste just their logs, we know if it's
21112       OpenBSD or Windows or what.
21113     - When logging memory usage, break down memory used in buffers by
21114       buffer type.
21116   o Minor features (directory system):
21117     - New config option V2AuthoritativeDirectory that all directory
21118       authorities should set. This will let future authorities choose
21119       not to serve V2 directory information.
21120     - Directory authorities allow multiple router descriptors and/or extra
21121       info documents to be uploaded in a single go. This will make
21122       implementing proposal 104 simpler.
21124   o Minor features (controller):
21125     - Add a new config option __DisablePredictedCircuits designed for
21126       use by the controller, when we don't want Tor to build any circuits
21127       preemptively.
21128     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
21129       so we can exit from the middle of the circuit.
21130     - Implement "getinfo status/circuit-established".
21131     - Implement "getinfo status/version/..." so a controller can tell
21132       whether the current version is recommended, and whether any versions
21133       are good, and how many authorities agree. (Patch from shibz.)
21135   o Minor features (hidden services):
21136     - Allow multiple HiddenServicePort directives with the same virtual
21137       port; when they occur, the user is sent round-robin to one
21138       of the target ports chosen at random. Partially fixes bug 393 by
21139       adding limited ad-hoc round-robining.
21141   o Minor features (other):
21142     - More unit tests.
21143     - Add a new AutomapHostsOnResolve option: when it is enabled, any
21144       resolve request for hosts matching a given pattern causes Tor to
21145       generate an internal virtual address mapping for that host. This
21146       allows DNSPort to work sensibly with hidden service users. By
21147       default, .exit and .onion addresses are remapped; the list of
21148       patterns can be reconfigured with AutomapHostsSuffixes.
21149     - Add an "-F" option to tor-resolve to force a resolve for a .onion
21150       address. Thanks to the AutomapHostsOnResolve option, this is no
21151       longer a completely silly thing to do.
21152     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
21153       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
21154     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
21155       minus 1 byte: the actual maximum declared bandwidth.
21157   o Removed features:
21158     - Removed support for the old binary "version 0" controller protocol.
21159       This has been deprecated since 0.1.1, and warnings have been issued
21160       since 0.1.2. When we encounter a v0 control message, we now send
21161       back an error and close the connection.
21162     - Remove the old "dns worker" server DNS code: it hasn't been default
21163       since 0.1.2.2-alpha, and all the servers seem to be using the new
21164       eventdns code.
21166   o Minor bugfixes (portability):
21167     - Even though Windows is equally happy with / and \ as path separators,
21168       try to use \ consistently on Windows and / consistently on Unix: it
21169       makes the log messages nicer.
21170     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
21171     - Read resolv.conf files correctly on platforms where read() returns
21172       partial results on small file reads.
21174   o Minor bugfixes (directory):
21175     - Correctly enforce that elements of directory objects do not appear
21176       more often than they are allowed to appear.
21177     - When we are reporting the DirServer line we just parsed, we were
21178       logging the second stanza of the key fingerprint, not the first.
21180   o Minor bugfixes (logging):
21181     - When we hit an EOF on a log (probably because we're shutting down),
21182       don't try to remove the log from the list: just mark it as
21183       unusable. (Bulletproofs against bug 222.)
21185   o Minor bugfixes (other):
21186     - In the exitlist script, only consider the most recently published
21187       server descriptor for each server. Also, when the user requests
21188       a list of servers that _reject_ connections to a given address,
21189       explicitly exclude the IPs that also have servers that accept
21190       connections to that address. (Resolves bug 405.)
21191     - Stop allowing hibernating servers to be "stable" or "fast".
21192     - On Windows, we were preventing other processes from reading
21193       cached-routers while Tor was running. (Reported by janbar)
21194     - Make the NodeFamilies config option work. (Reported by
21195       lodger -- it has never actually worked, even though we added it
21196       in Oct 2004.)
21197     - Check return values from pthread_mutex functions.
21198     - Don't save non-general-purpose router descriptors to the disk cache,
21199       because we have no way of remembering what their purpose was when
21200       we restart.
21201     - Add even more asserts to hunt down bug 417.
21202     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
21203     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
21204       Add a log message to confirm that it is in fact unlikely.
21206   o Minor bugfixes (controller):
21207     - Make 'getinfo fingerprint' return a 551 error if we're not a
21208       server, so we match what the control spec claims we do. Reported
21209       by daejees.
21210     - Fix a typo in an error message when extendcircuit fails that
21211       caused us to not follow the \r\n-based delimiter protocol. Reported
21212       by daejees.
21214   o Code simplifications and refactoring:
21215     - Stop passing around circuit_t and crypt_path_t pointers that are
21216       implicit in other procedure arguments.
21217     - Drop the old code to choke directory connections when the
21218       corresponding OR connections got full: thanks to the cell queue
21219       feature, OR conns don't get full any more.
21220     - Make dns_resolve() handle attaching connections to circuits
21221       properly, so the caller doesn't have to.
21222     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
21223     - Keep the connection array as a dynamic smartlist_t, rather than as
21224       a fixed-sized array. This is important, as the number of connections
21225       is becoming increasingly decoupled from the number of sockets.
21228 Changes in version 0.1.2.14 - 2007-05-25
21229   Tor 0.1.2.14 changes the addresses of two directory authorities (this
21230   change especially affects those who serve or use hidden services),
21231   and fixes several other crash- and security-related bugs.
21233   o Directory authority changes:
21234     - Two directory authorities (moria1 and moria2) just moved to new
21235       IP addresses. This change will particularly affect those who serve
21236       or use hidden services.
21238   o Major bugfixes (crashes):
21239     - If a directory server runs out of space in the connection table
21240       as it's processing a begin_dir request, it will free the exit stream
21241       but leave it attached to the circuit, leading to unpredictable
21242       behavior. (Reported by seeess, fixes bug 425.)
21243     - Fix a bug in dirserv_remove_invalid() that would cause authorities
21244       to corrupt memory under some really unlikely scenarios.
21245     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
21246     - Avoid segfaults when reading from mmaped descriptor file. (Reported
21247       by lodger.)
21249   o Major bugfixes (security):
21250     - When choosing an entry guard for a circuit, avoid using guards
21251       that are in the same family as the chosen exit -- not just guards
21252       that are exactly the chosen exit. (Reported by lodger.)
21254   o Major bugfixes (resource management):
21255     - If a directory authority is down, skip it when deciding where to get
21256       networkstatus objects or descriptors. Otherwise we keep asking
21257       every 10 seconds forever. Fixes bug 384.
21258     - Count it as a failure if we fetch a valid network-status but we
21259       don't want to keep it. Otherwise we'll keep fetching it and keep
21260       not wanting to keep it. Fixes part of bug 422.
21261     - If all of our dirservers have given us bad or no networkstatuses
21262       lately, then stop hammering them once per minute even when we
21263       think they're failed. Fixes another part of bug 422.
21265   o Minor bugfixes:
21266     - Actually set the purpose correctly for descriptors inserted with
21267       purpose=controller.
21268     - When we have k non-v2 authorities in our DirServer config,
21269       we ignored the last k authorities in the list when updating our
21270       network-statuses.
21271     - Correctly back-off from requesting router descriptors that we are
21272       having a hard time downloading.
21273     - Read resolv.conf files correctly on platforms where read() returns
21274       partial results on small file reads.
21275     - Don't rebuild the entire router store every time we get 32K of
21276       routers: rebuild it when the journal gets very large, or when
21277       the gaps in the store get very large.
21279   o Minor features:
21280     - When routers publish SVN revisions in their router descriptors,
21281       authorities now include those versions correctly in networkstatus
21282       documents.
21283     - Warn when using a version of libevent before 1.3b to run a server on
21284       OSX or BSD: these versions interact badly with userspace threads.
21287 Changes in version 0.1.2.13 - 2007-04-24
21288   This release features some major anonymity fixes, such as safer path
21289   selection; better client performance; faster bootstrapping, better
21290   address detection, and better DNS support for servers; write limiting as
21291   well as read limiting to make servers easier to run; and a huge pile of
21292   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
21294   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
21295   of the Freenode IRC network, remembering his patience and vision for
21296   free speech on the Internet.
21298   o Minor fixes:
21299     - Fix a memory leak when we ask for "all" networkstatuses and we
21300       get one we don't recognize.
21301     - Add more asserts to hunt down bug 417.
21302     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
21305 Changes in version 0.1.2.12-rc - 2007-03-16
21306   o Major bugfixes:
21307     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
21308       directory information requested inside Tor connections (i.e. via
21309       begin_dir cells). It only triggered when the same connection was
21310       serving other data at the same time. Reported by seeess.
21312   o Minor bugfixes:
21313     - When creating a circuit via the controller, send a 'launched'
21314       event when we're done, so we follow the spec better.
21317 Changes in version 0.1.2.11-rc - 2007-03-15
21318   o Minor bugfixes (controller), reported by daejees:
21319     - Correct the control spec to match how the code actually responds
21320       to 'getinfo addr-mappings/*'.
21321     - The control spec described a GUARDS event, but the code
21322       implemented a GUARD event. Standardize on GUARD, but let people
21323       ask for GUARDS too.
21326 Changes in version 0.1.2.10-rc - 2007-03-07
21327   o Major bugfixes (Windows):
21328     - Do not load the NT services library functions (which may not exist)
21329       just to detect if we're a service trying to shut down. Now we run
21330       on Win98 and friends again.
21332   o Minor bugfixes (other):
21333     - Clarify a couple of log messages.
21334     - Fix a misleading socks5 error number.
21337 Changes in version 0.1.2.9-rc - 2007-03-02
21338   o Major bugfixes (Windows):
21339     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
21340       of the usual GCC "%llu". This prevents a bug when saving 64-bit
21341       int configuration values: the high-order 32 bits would get
21342       truncated. In particular, we were being bitten by the default
21343       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
21344       and maybe also bug 397.)
21346   o Minor bugfixes (performance):
21347     - Use OpenSSL's AES implementation on platforms where it's faster.
21348       This could save us as much as 10% CPU usage.
21350   o Minor bugfixes (server):
21351     - Do not rotate onion key immediately after setting it for the first
21352       time.
21354   o Minor bugfixes (directory authorities):
21355     - Stop calling servers that have been hibernating for a long time
21356       "stable". Also, stop letting hibernating or obsolete servers affect
21357       uptime and bandwidth cutoffs.
21358     - Stop listing hibernating servers in the v1 directory.
21360   o Minor bugfixes (hidden services):
21361     - Upload hidden service descriptors slightly less often, to reduce
21362       load on authorities.
21364   o Minor bugfixes (other):
21365     - Fix an assert that could trigger if a controller quickly set then
21366       cleared EntryNodes. Bug found by Udo van den Heuvel.
21367     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
21368       to INT32_MAX.
21369     - Fix a potential race condition in the rpm installer. Found by
21370       Stefan Nordhausen.
21371     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
21372       of 2 as indicating that the server is completely bad; it sometimes
21373       means that the server is just bad for the request in question. (may fix
21374       the last of bug 326.)
21375     - Disable encrypted directory connections when we don't have a server
21376       descriptor for the destination. We'll get this working again in
21377       the 0.2.0 branch.
21380 Changes in version 0.1.2.8-beta - 2007-02-26
21381   o Major bugfixes (crashes):
21382     - Stop crashing when the controller asks us to resetconf more than
21383       one config option at once. (Vidalia 0.0.11 does this.)
21384     - Fix a crash that happened on Win98 when we're given command-line
21385       arguments: don't try to load NT service functions from advapi32.dll
21386       except when we need them. (Bug introduced in 0.1.2.7-alpha;
21387       resolves bug 389.)
21388     - Fix a longstanding obscure crash bug that could occur when
21389       we run out of DNS worker processes. (Resolves bug 390.)
21391   o Major bugfixes (hidden services):
21392     - Correctly detect whether hidden service descriptor downloads are
21393       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
21395   o Major bugfixes (accounting):
21396     - When we start during an accounting interval before it's time to wake
21397       up, remember to wake up at the correct time. (May fix bug 342.)
21399   o Minor bugfixes (controller):
21400     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
21401       clear the corresponding on_circuit variable, and remember later
21402       that we don't need to send a redundant CLOSED event. Resolves part
21403       3 of bug 367.
21404     - Report events where a resolve succeeded or where we got a socks
21405       protocol error correctly, rather than calling both of them
21406       "INTERNAL".
21407     - Change reported stream target addresses to IP consistently when
21408       we finally get the IP from an exit node.
21409     - Send log messages to the controller even if they happen to be very
21410       long.
21412   o Minor bugfixes (other):
21413     - Display correct results when reporting which versions are
21414       recommended, and how recommended they are. (Resolves bug 383.)
21415     - Improve our estimates for directory bandwidth to be less random:
21416       guess that an unrecognized directory will have the average bandwidth
21417       from all known directories, not that it will have the average
21418       bandwidth from those directories earlier than it on the list.
21419     - If we start a server with ClientOnly 1, then set ClientOnly to 0
21420       and hup, stop triggering an assert based on an empty onion_key.
21421     - On platforms with no working mmap() equivalent, don't warn the
21422       user when cached-routers doesn't exist.
21423     - Warn the user when mmap() [or its equivalent] fails for some reason
21424       other than file-not-found.
21425     - Don't warn the user when cached-routers.new doesn't exist: that's
21426       perfectly fine when starting up for the first time.
21427     - When EntryNodes are configured, rebuild the guard list to contain,
21428       in order: the EntryNodes that were guards before; the rest of the
21429       EntryNodes; the nodes that were guards before.
21430     - Mask out all signals in sub-threads; only the libevent signal
21431       handler should be processing them. This should prevent some crashes
21432       on some machines using pthreads. (Patch from coderman.)
21433     - Fix switched arguments on memset in the implementation of
21434       tor_munmap() for systems with no mmap() call.
21435     - When Tor receives a router descriptor that it asked for, but
21436       no longer wants (because it has received fresh networkstatuses
21437       in the meantime), do not warn the user. Cache the descriptor if
21438       we're a cache; drop it if we aren't.
21439     - Make earlier entry guards _really_ get retried when the network
21440       comes back online.
21441     - On a malformed DNS reply, always give an error to the corresponding
21442       DNS request.
21443     - Build with recent libevents on platforms that do not define the
21444       nonstandard types "u_int8_t" and friends.
21446   o Minor features (controller):
21447     - Warn the user when an application uses the obsolete binary v0
21448       control protocol. We're planning to remove support for it during
21449       the next development series, so it's good to give people some
21450       advance warning.
21451     - Add STREAM_BW events to report per-entry-stream bandwidth
21452       use. (Patch from Robert Hogan.)
21453     - Rate-limit SIGNEWNYM signals in response to controllers that
21454       impolitely generate them for every single stream. (Patch from
21455       mwenge; closes bug 394.)
21456     - Make REMAP stream events have a SOURCE (cache or exit), and
21457       make them generated in every case where we get a successful
21458       connected or resolved cell.
21460   o Minor bugfixes (performance):
21461     - Call router_have_min_dir_info half as often. (This is showing up in
21462       some profiles, but not others.)
21463     - When using GCC, make log_debug never get called at all, and its
21464       arguments never get evaluated, when no debug logs are configured.
21465       (This is showing up in some profiles, but not others.)
21467   o Minor features:
21468     - Remove some never-implemented options. Mark PathlenCoinWeight as
21469       obsolete.
21470     - Implement proposal 106: Stop requiring clients to have well-formed
21471       certificates; stop checking nicknames in certificates. (Clients
21472       have certificates so that they can look like Tor servers, but in
21473       the future we might want to allow them to look like regular TLS
21474       clients instead. Nicknames in certificates serve no purpose other
21475       than making our protocol easier to recognize on the wire.)
21476     - Revise messages on handshake failure again to be even more clear about
21477       which are incoming connections and which are outgoing.
21478     - Discard any v1 directory info that's over 1 month old (for
21479       directories) or over 1 week old (for running-routers lists).
21480     - Do not warn when individual nodes in the configuration's EntryNodes,
21481       ExitNodes, etc are down: warn only when all possible nodes
21482       are down. (Fixes bug 348.)
21483     - Always remove expired routers and networkstatus docs before checking
21484       whether we have enough information to build circuits. (Fixes
21485       bug 373.)
21486     - Put a lower-bound on MaxAdvertisedBandwidth.
21489 Changes in version 0.1.2.7-alpha - 2007-02-06
21490   o Major bugfixes (rate limiting):
21491     - Servers decline directory requests much more aggressively when
21492       they're low on bandwidth. Otherwise they end up queueing more and
21493       more directory responses, which can't be good for latency.
21494     - But never refuse directory requests from local addresses.
21495     - Fix a memory leak when sending a 503 response for a networkstatus
21496       request.
21497     - Be willing to read or write on local connections (e.g. controller
21498       connections) even when the global rate limiting buckets are empty.
21499     - If our system clock jumps back in time, don't publish a negative
21500       uptime in the descriptor. Also, don't let the global rate limiting
21501       buckets go absurdly negative.
21502     - Flush local controller connection buffers periodically as we're
21503       writing to them, so we avoid queueing 4+ megabytes of data before
21504       trying to flush.
21506   o Major bugfixes (NT services):
21507     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
21508       command-line flag so that admins can override the default by saying
21509       "tor --service install --user "SomeUser"". This will not affect
21510       existing installed services. Also, warn the user that the service
21511       will look for its configuration file in the service user's
21512       %appdata% directory. (We can't do the 'hardwire the user's appdata
21513       directory' trick any more, since we may not have read access to that
21514       directory.)
21516   o Major bugfixes (other):
21517     - Previously, we would cache up to 16 old networkstatus documents
21518       indefinitely, if they came from nontrusted authorities. Now we
21519       discard them if they are more than 10 days old.
21520     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
21521       Del Vecchio).
21522     - Detect and reject malformed DNS responses containing circular
21523       pointer loops.
21524     - If exits are rare enough that we're not marking exits as guards,
21525       ignore exit bandwidth when we're deciding the required bandwidth
21526       to become a guard.
21527     - When we're handling a directory connection tunneled over Tor,
21528       don't fill up internal memory buffers with all the data we want
21529       to tunnel; instead, only add it if the OR connection that will
21530       eventually receive it has some room for it. (This can lead to
21531       slowdowns in tunneled dir connections; a better solution will have
21532       to wait for 0.2.0.)
21534   o Minor bugfixes (dns):
21535     - Add some defensive programming to eventdns.c in an attempt to catch
21536       possible memory-stomping bugs.
21537     - Detect and reject DNS replies containing IPv4 or IPv6 records with
21538       an incorrect number of bytes. (Previously, we would ignore the
21539       extra bytes.)
21540     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
21541       in the correct order, and doesn't crash.
21542     - Free memory held in recently-completed DNS lookup attempts on exit.
21543       This was not a memory leak, but may have been hiding memory leaks.
21544     - Handle TTL values correctly on reverse DNS lookups.
21545     - Treat failure to parse resolv.conf as an error.
21547   o Minor bugfixes (other):
21548     - Fix crash with "tor --list-fingerprint" (reported by seeess).
21549     - When computing clock skew from directory HTTP headers, consider what
21550       time it was when we finished asking for the directory, not what
21551       time it is now.
21552     - Expire socks connections if they spend too long waiting for the
21553       handshake to finish. Previously we would let them sit around for
21554       days, if the connecting application didn't close them either.
21555     - And if the socks handshake hasn't started, don't send a
21556       "DNS resolve socks failed" handshake reply; just close it.
21557     - Stop using C functions that OpenBSD's linker doesn't like.
21558     - Don't launch requests for descriptors unless we have networkstatuses
21559       from at least half of the authorities. This delays the first
21560       download slightly under pathological circumstances, but can prevent
21561       us from downloading a bunch of descriptors we don't need.
21562     - Do not log IPs with TLS failures for incoming TLS
21563       connections. (Fixes bug 382.)
21564     - If the user asks to use invalid exit nodes, be willing to use
21565       unstable ones.
21566     - Stop using the reserved ac_cv namespace in our configure script.
21567     - Call stat() slightly less often; use fstat() when possible.
21568     - Refactor the way we handle pending circuits when an OR connection
21569       completes or fails, in an attempt to fix a rare crash bug.
21570     - Only rewrite a conn's address based on X-Forwarded-For: headers
21571       if it's a parseable public IP address; and stop adding extra quotes
21572       to the resulting address.
21574   o Major features:
21575     - Weight directory requests by advertised bandwidth. Now we can
21576       let servers enable write limiting but still allow most clients to
21577       succeed at their directory requests. (We still ignore weights when
21578       choosing a directory authority; I hope this is a feature.)
21580   o Minor features:
21581     - Create a new file ReleaseNotes which was the old ChangeLog. The
21582       new ChangeLog file now includes the summaries for all development
21583       versions too.
21584     - Check for addresses with invalid characters at the exit as well
21585       as at the client, and warn less verbosely when they fail. You can
21586       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
21587     - Adapt a patch from goodell to let the contrib/exitlist script
21588       take arguments rather than require direct editing.
21589     - Inform the server operator when we decide not to advertise a
21590       DirPort due to AccountingMax enabled or a low BandwidthRate. It
21591       was confusing Zax, so now we're hopefully more helpful.
21592     - Bring us one step closer to being able to establish an encrypted
21593       directory tunnel without knowing a descriptor first. Still not
21594       ready yet. As part of the change, now assume we can use a
21595       create_fast cell if we don't know anything about a router.
21596     - Allow exit nodes to use nameservers running on ports other than 53.
21597     - Servers now cache reverse DNS replies.
21598     - Add an --ignore-missing-torrc command-line option so that we can
21599       get the "use sensible defaults if the configuration file doesn't
21600       exist" behavior even when specifying a torrc location on the command
21601       line.
21603   o Minor features (controller):
21604     - Track reasons for OR connection failure; make these reasons
21605       available via the controller interface. (Patch from Mike Perry.)
21606     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
21607       can learn when clients are sending malformed hostnames to Tor.
21608     - Clean up documentation for controller status events.
21609     - Add a REMAP status to stream events to note that a stream's
21610       address has changed because of a cached address or a MapAddress
21611       directive.
21614 Changes in version 0.1.2.6-alpha - 2007-01-09
21615   o Major bugfixes:
21616     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
21617       connection handles more than 4 gigs in either direction, we crash.
21618     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
21619       advertised exit node, somebody might try to exit from us when
21620       we're bootstrapping and before we've built our descriptor yet.
21621       Refuse the connection rather than crashing.
21623   o Minor bugfixes:
21624     - Warn if we (as a server) find that we've resolved an address that we
21625       weren't planning to resolve.
21626     - Warn that using select() on any libevent version before 1.1 will be
21627       unnecessarily slow (even for select()).
21628     - Flush ERR-level controller status events just like we currently
21629       flush ERR-level log events, so that a Tor shutdown doesn't prevent
21630       the controller from learning about current events.
21632   o Minor features (more controller status events):
21633     - Implement EXTERNAL_ADDRESS server status event so controllers can
21634       learn when our address changes.
21635     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
21636       can learn when directories reject our descriptor.
21637     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
21638       can learn when a client application is speaking a non-socks protocol
21639       to our SocksPort.
21640     - Implement DANGEROUS_SOCKS client status event so controllers
21641       can learn when a client application is leaking DNS addresses.
21642     - Implement BUG general status event so controllers can learn when
21643       Tor is unhappy about its internal invariants.
21644     - Implement CLOCK_SKEW general status event so controllers can learn
21645       when Tor thinks the system clock is set incorrectly.
21646     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
21647       server status events so controllers can learn when their descriptors
21648       are accepted by a directory.
21649     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
21650       server status events so controllers can learn about Tor's progress in
21651       deciding whether it's reachable from the outside.
21652     - Implement BAD_LIBEVENT general status event so controllers can learn
21653       when we have a version/method combination in libevent that needs to
21654       be changed.
21655     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
21656       and DNS_USELESS server status events so controllers can learn
21657       about changes to DNS server status.
21659   o Minor features (directory):
21660     - Authorities no longer recommend exits as guards if this would shift
21661       too much load to the exit nodes.
21664 Changes in version 0.1.2.5-alpha - 2007-01-06
21665   o Major features:
21666     - Enable write limiting as well as read limiting. Now we sacrifice
21667       capacity if we're pushing out lots of directory traffic, rather
21668       than overrunning the user's intended bandwidth limits.
21669     - Include TLS overhead when counting bandwidth usage; previously, we
21670       would count only the bytes sent over TLS, but not the bytes used
21671       to send them.
21672     - Support running the Tor service with a torrc not in the same
21673       directory as tor.exe and default to using the torrc located in
21674       the %appdata%\Tor\ of the user who installed the service. Patch
21675       from Matt Edman.
21676     - Servers now check for the case when common DNS requests are going to
21677       wildcarded addresses (i.e. all getting the same answer), and change
21678       their exit policy to reject *:* if it's happening.
21679     - Implement BEGIN_DIR cells, so we can connect to the directory
21680       server via TLS to do encrypted directory requests rather than
21681       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
21682       config options if you like.
21684   o Minor features (config and docs):
21685     - Start using the state file to store bandwidth accounting data:
21686       the bw_accounting file is now obsolete. We'll keep generating it
21687       for a while for people who are still using 0.1.2.4-alpha.
21688     - Try to batch changes to the state file so that we do as few
21689       disk writes as possible while still storing important things in
21690       a timely fashion.
21691     - The state file and the bw_accounting file get saved less often when
21692       the AvoidDiskWrites config option is set.
21693     - Make PIDFile work on Windows (untested).
21694     - Add internal descriptions for a bunch of configuration options:
21695       accessible via controller interface and in comments in saved
21696       options files.
21697     - Reject *:563 (NNTPS) in the default exit policy. We already reject
21698       NNTP by default, so this seems like a sensible addition.
21699     - Clients now reject hostnames with invalid characters. This should
21700       avoid some inadvertent info leaks. Add an option
21701       AllowNonRFC953Hostnames to disable this behavior, in case somebody
21702       is running a private network with hosts called @, !, and #.
21703     - Add a maintainer script to tell us which options are missing
21704       documentation: "make check-docs".
21705     - Add a new address-spec.txt document to describe our special-case
21706       addresses: .exit, .onion, and .noconnnect.
21708   o Minor features (DNS):
21709     - Ongoing work on eventdns infrastructure: now it has dns server
21710       and ipv6 support. One day Tor will make use of it.
21711     - Add client-side caching for reverse DNS lookups.
21712     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
21713     - When we change nameservers or IP addresses, reset and re-launch
21714       our tests for DNS hijacking.
21716   o Minor features (directory):
21717     - Authorities now specify server versions in networkstatus. This adds
21718       about 2% to the size of compressed networkstatus docs, and allows
21719       clients to tell which servers support BEGIN_DIR and which don't.
21720       The implementation is forward-compatible with a proposed future
21721       protocol version scheme not tied to Tor versions.
21722     - DirServer configuration lines now have an orport= option so
21723       clients can open encrypted tunnels to the authorities without
21724       having downloaded their descriptors yet. Enabled for moria1,
21725       moria2, tor26, and lefkada now in the default configuration.
21726     - Directory servers are more willing to send a 503 "busy" if they
21727       are near their write limit, especially for v1 directory requests.
21728       Now they can use their limited bandwidth for actual Tor traffic.
21729     - Clients track responses with status 503 from dirservers. After a
21730       dirserver has given us a 503, we try not to use it until an hour has
21731       gone by, or until we have no dirservers that haven't given us a 503.
21732     - When we get a 503 from a directory, and we're not a server, we don't
21733       count the failure against the total number of failures allowed
21734       for the thing we're trying to download.
21735     - Report X-Your-Address-Is correctly from tunneled directory
21736       connections; don't report X-Your-Address-Is when it's an internal
21737       address; and never believe reported remote addresses when they're
21738       internal.
21739     - Protect against an unlikely DoS attack on directory servers.
21740     - Add a BadDirectory flag to network status docs so that authorities
21741       can (eventually) tell clients about caches they believe to be
21742       broken.
21744   o Minor features (controller):
21745     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
21746     - Reimplement GETINFO so that info/names stays in sync with the
21747       actual keys.
21748     - Implement "GETINFO fingerprint".
21749     - Implement "SETEVENTS GUARD" so controllers can get updates on
21750       entry guard status as it changes.
21752   o Minor features (clean up obsolete pieces):
21753     - Remove some options that have been deprecated since at least
21754       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
21755       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
21756       to set log options.
21757     - We no longer look for identity and onion keys in "identity.key" and
21758       "onion.key" -- these were replaced by secret_id_key and
21759       secret_onion_key in 0.0.8pre1.
21760     - We no longer require unrecognized directory entries to be
21761       preceded by "opt".
21763   o Major bugfixes (security):
21764     - Stop sending the HttpProxyAuthenticator string to directory
21765       servers when directory connections are tunnelled through Tor.
21766     - Clients no longer store bandwidth history in the state file.
21767     - Do not log introduction points for hidden services if SafeLogging
21768       is set.
21769     - When generating bandwidth history, round down to the nearest
21770       1k. When storing accounting data, round up to the nearest 1k.
21771     - When we're running as a server, remember when we last rotated onion
21772       keys, so that we will rotate keys once they're a week old even if
21773       we never stay up for a week ourselves.
21775   o Major bugfixes (other):
21776     - Fix a longstanding bug in eventdns that prevented the count of
21777       timed-out resolves from ever being reset. This bug caused us to
21778       give up on a nameserver the third time it timed out, and try it
21779       10 seconds later... and to give up on it every time it timed out
21780       after that.
21781     - Take out the '5 second' timeout from the connection retry
21782       schedule. Now the first connect attempt will wait a full 10
21783       seconds before switching to a new circuit. Perhaps this will help
21784       a lot. Based on observations from Mike Perry.
21785     - Fix a bug on the Windows implementation of tor_mmap_file() that
21786       would prevent the cached-routers file from ever loading. Reported
21787       by John Kimble.
21789   o Minor bugfixes:
21790     - Fix an assert failure when a directory authority sets
21791       AuthDirRejectUnlisted and then receives a descriptor from an
21792       unlisted router. Reported by seeess.
21793     - Avoid a double-free when parsing malformed DirServer lines.
21794     - Fix a bug when a BSD-style PF socket is first used. Patch from
21795       Fabian Keil.
21796     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
21797       to resolve an address at a given exit node even when they ask for
21798       it by name.
21799     - Servers no longer ever list themselves in their "family" line,
21800       even if configured to do so. This makes it easier to configure
21801       family lists conveniently.
21802     - When running as a server, don't fall back to 127.0.0.1 when no
21803       nameservers are configured in /etc/resolv.conf; instead, make the
21804       user fix resolv.conf or specify nameservers explicitly. (Resolves
21805       bug 363.)
21806     - Stop accepting certain malformed ports in configured exit policies.
21807     - Don't re-write the fingerprint file every restart, unless it has
21808       changed.
21809     - Stop warning when a single nameserver fails: only warn when _all_ of
21810       our nameservers have failed. Also, when we only have one nameserver,
21811       raise the threshold for deciding that the nameserver is dead.
21812     - Directory authorities now only decide that routers are reachable
21813       if their identity keys are as expected.
21814     - When the user uses bad syntax in the Log config line, stop
21815       suggesting other bad syntax as a replacement.
21816     - Correctly detect ipv6 DNS capability on OpenBSD.
21818   o Minor bugfixes (controller):
21819     - Report the circuit number correctly in STREAM CLOSED events. Bug
21820       reported by Mike Perry.
21821     - Do not report bizarre values for results of accounting GETINFOs
21822       when the last second's write or read exceeds the allotted bandwidth.
21823     - Report "unrecognized key" rather than an empty string when the
21824       controller tries to fetch a networkstatus that doesn't exist.
21827 Changes in version 0.1.1.26 - 2006-12-14
21828   o Security bugfixes:
21829     - Stop sending the HttpProxyAuthenticator string to directory
21830       servers when directory connections are tunnelled through Tor.
21831     - Clients no longer store bandwidth history in the state file.
21832     - Do not log introduction points for hidden services if SafeLogging
21833       is set.
21835   o Minor bugfixes:
21836     - Fix an assert failure when a directory authority sets
21837       AuthDirRejectUnlisted and then receives a descriptor from an
21838       unlisted router (reported by seeess).
21841 Changes in version 0.1.2.4-alpha - 2006-12-03
21842   o Major features:
21843     - Add support for using natd; this allows FreeBSDs earlier than
21844       5.1.2 to have ipfw send connections through Tor without using
21845       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
21847   o Minor features:
21848     - Make all connections to addresses of the form ".noconnect"
21849       immediately get closed. This lets application/controller combos
21850       successfully test whether they're talking to the same Tor by
21851       watching for STREAM events.
21852     - Make cross.sh cross-compilation script work even when autogen.sh
21853       hasn't been run. (Patch from Michael Mohr.)
21854     - Statistics dumped by -USR2 now include a breakdown of public key
21855       operations, for profiling.
21857   o Major bugfixes:
21858     - Fix a major leak when directory authorities parse their
21859       approved-routers list, a minor memory leak when we fail to pick
21860       an exit node, and a few rare leaks on errors.
21861     - Handle TransPort connections even when the server sends data before
21862       the client sends data. Previously, the connection would just hang
21863       until the client sent data. (Patch from tup based on patch from
21864       Zajcev Evgeny.)
21865     - Avoid assert failure when our cached-routers file is empty on
21866       startup.
21868   o Minor bugfixes:
21869     - Don't log spurious warnings when we see a circuit close reason we
21870       don't recognize; it's probably just from a newer version of Tor.
21871     - Have directory authorities allow larger amounts of drift in uptime
21872       without replacing the server descriptor: previously, a server that
21873       restarted every 30 minutes could have 48 "interesting" descriptors
21874       per day.
21875     - Start linking to the Tor specification and Tor reference manual
21876       correctly in the Windows installer.
21877     - Add Vidalia to the OS X uninstaller script, so when we uninstall
21878       Tor/Privoxy we also uninstall Vidalia.
21879     - Resume building on Irix64, and fix a lot of warnings from its
21880       MIPSpro C compiler.
21881     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
21882       when we're running as a client.
21885 Changes in version 0.1.1.25 - 2006-11-04
21886   o Major bugfixes:
21887     - When a client asks us to resolve (rather than connect to)
21888       an address, and we have a cached answer, give them the cached
21889       answer. Previously, we would give them no answer at all.
21890     - We were building exactly the wrong circuits when we predict
21891       hidden service requirements, meaning Tor would have to build all
21892       its circuits on demand.
21893     - If none of our live entry guards have a high uptime, but we
21894       require a guard with a high uptime, try adding a new guard before
21895       we give up on the requirement. This patch should make long-lived
21896       connections more stable on average.
21897     - When testing reachability of our DirPort, don't launch new
21898       tests when there's already one in progress -- unreachable
21899       servers were stacking up dozens of testing streams.
21901   o Security bugfixes:
21902     - When the user sends a NEWNYM signal, clear the client-side DNS
21903       cache too. Otherwise we continue to act on previous information.
21905   o Minor bugfixes:
21906     - Avoid a memory corruption bug when creating a hash table for
21907       the first time.
21908     - Avoid possibility of controller-triggered crash when misusing
21909       certain commands from a v0 controller on platforms that do not
21910       handle printf("%s",NULL) gracefully.
21911     - Avoid infinite loop on unexpected controller input.
21912     - Don't log spurious warnings when we see a circuit close reason we
21913       don't recognize; it's probably just from a newer version of Tor.
21914     - Add Vidalia to the OS X uninstaller script, so when we uninstall
21915       Tor/Privoxy we also uninstall Vidalia.
21918 Changes in version 0.1.2.3-alpha - 2006-10-29
21919   o Minor features:
21920     - Prepare for servers to publish descriptors less often: never
21921       discard a descriptor simply for being too old until either it is
21922       recommended by no authorities, or until we get a better one for
21923       the same router. Make caches consider retaining old recommended
21924       routers for even longer.
21925     - If most authorities set a BadExit flag for a server, clients
21926       don't think of it as a general-purpose exit. Clients only consider
21927       authorities that advertise themselves as listing bad exits.
21928     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
21929       headers for content, so that we can work better in the presence of
21930       caching HTTP proxies.
21931     - Allow authorities to list nodes as bad exits by fingerprint or by
21932       address.
21934   o Minor features, controller:
21935     - Add a REASON field to CIRC events; for backward compatibility, this
21936       field is sent only to controllers that have enabled the extended
21937       event format. Also, add additional reason codes to explain why
21938       a given circuit has been destroyed or truncated. (Patches from
21939       Mike Perry)
21940     - Add a REMOTE_REASON field to extended CIRC events to tell the
21941       controller about why a remote OR told us to close a circuit.
21942     - Stream events also now have REASON and REMOTE_REASON fields,
21943       working much like those for circuit events.
21944     - There's now a GETINFO ns/... field so that controllers can ask Tor
21945       about the current status of a router.
21946     - A new event type "NS" to inform a controller when our opinion of
21947       a router's status has changed.
21948     - Add a GETINFO events/names and GETINFO features/names so controllers
21949       can tell which events and features are supported.
21950     - A new CLEARDNSCACHE signal to allow controllers to clear the
21951       client-side DNS cache without expiring circuits.
21953   o Security bugfixes:
21954     - When the user sends a NEWNYM signal, clear the client-side DNS
21955       cache too. Otherwise we continue to act on previous information.
21957   o Minor bugfixes:
21958     - Avoid sending junk to controllers or segfaulting when a controller
21959       uses EVENT_NEW_DESC with verbose nicknames.
21960     - Stop triggering asserts if the controller tries to extend hidden
21961       service circuits (reported by mwenge).
21962     - Avoid infinite loop on unexpected controller input.
21963     - When the controller does a "GETINFO network-status", tell it
21964       about even those routers whose descriptors are very old, and use
21965       long nicknames where appropriate.
21966     - Change NT service functions to be loaded on demand. This lets us
21967       build with MinGW without breaking Tor for Windows 98 users.
21968     - Do DirPort reachability tests less often, since a single test
21969       chews through many circuits before giving up.
21970     - In the hidden service example in torrc.sample, stop recommending
21971       esoteric and discouraged hidden service options.
21972     - When stopping an NT service, wait up to 10 sec for it to actually
21973       stop. Patch from Matt Edman; resolves bug 295.
21974     - Fix handling of verbose nicknames with ORCONN controller events:
21975       make them show up exactly when requested, rather than exactly when
21976       not requested.
21977     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
21978       printing a duplicate "$" in the keys we send (reported by mwenge).
21979     - Correctly set maximum connection limit on Cygwin. (This time
21980       for sure!)
21981     - Try to detect Windows correctly when cross-compiling.
21982     - Detect the size of the routers file correctly even if it is
21983       corrupted (on systems without mmap) or not page-aligned (on systems
21984       with mmap). This bug was harmless.
21985     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
21986       to open a stream fails; now we do in more cases. This should
21987       make clients able to find a good exit faster in some cases, since
21988       unhandleable requests will now get an error rather than timing out.
21989     - Resolve two memory leaks when rebuilding the on-disk router cache
21990       (reported by fookoowa).
21991     - Clean up minor code warnings suggested by the MIPSpro C compiler,
21992       and reported by some Centos users.
21993     - Controller signals now work on non-Unix platforms that don't define
21994       SIGUSR1 and SIGUSR2 the way we expect.
21995     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
21996       values before failing, and always enables eventdns.
21997     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
21998       Try to fix this in configure.in by checking for most functions
21999       before we check for libevent.
22002 Changes in version 0.1.2.2-alpha - 2006-10-07
22003   o Major features:
22004     - Make our async eventdns library on-by-default for Tor servers,
22005       and plan to deprecate the separate dnsworker threads.
22006     - Add server-side support for "reverse" DNS lookups (using PTR
22007       records so clients can determine the canonical hostname for a given
22008       IPv4 address). Only supported by servers using eventdns; servers
22009       now announce in their descriptors whether they support eventdns.
22010     - Specify and implement client-side SOCKS5 interface for reverse DNS
22011       lookups (see doc/socks-extensions.txt).
22012     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
22013       connect to directory servers through Tor. Previously, clients needed
22014       to find Tor exits to make private connections to directory servers.
22015     - Avoid choosing Exit nodes for entry or middle hops when the
22016       total bandwidth available from non-Exit nodes is much higher than
22017       the total bandwidth available from Exit nodes.
22018     - Workaround for name servers (like Earthlink's) that hijack failing
22019       DNS requests and replace the no-such-server answer with a "helpful"
22020       redirect to an advertising-driven search portal. Also work around
22021       DNS hijackers who "helpfully" decline to hijack known-invalid
22022       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
22023       lets you turn it off.
22024     - Send out a burst of long-range padding cells once we've established
22025       that we're reachable. Spread them over 4 circuits, so hopefully
22026       a few will be fast. This exercises our bandwidth and bootstraps
22027       us into the directory more quickly.
22029   o New/improved config options:
22030     - Add new config option "ResolvConf" to let the server operator
22031       choose an alternate resolve.conf file when using eventdns.
22032     - Add an "EnforceDistinctSubnets" option to control our "exclude
22033       servers on the same /16" behavior. It's still on by default; this
22034       is mostly for people who want to operate private test networks with
22035       all the machines on the same subnet.
22036     - If one of our entry guards is on the ExcludeNodes list, or the
22037       directory authorities don't think it's a good guard, treat it as
22038       if it were unlisted: stop using it as a guard, and throw it off
22039       the guards list if it stays that way for a long time.
22040     - Allow directory authorities to be marked separately as authorities
22041       for the v1 directory protocol, the v2 directory protocol, and
22042       as hidden service directories, to make it easier to retire old
22043       authorities. V1 authorities should set "HSAuthoritativeDir 1"
22044       to continue being hidden service authorities too.
22045     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
22047   o Minor features, controller:
22048     - Fix CIRC controller events so that controllers can learn the
22049       identity digests of non-Named servers used in circuit paths.
22050     - Let controllers ask for more useful identifiers for servers. Instead
22051       of learning identity digests for un-Named servers and nicknames
22052       for Named servers, the new identifiers include digest, nickname,
22053       and indication of Named status. Off by default; see control-spec.txt
22054       for more information.
22055     - Add a "getinfo address" controller command so it can display Tor's
22056       best guess to the user.
22057     - New controller event to alert the controller when our server
22058       descriptor has changed.
22059     - Give more meaningful errors on controller authentication failure.
22061   o Minor features, other:
22062     - When asked to resolve a hostname, don't use non-exit servers unless
22063       requested to do so. This allows servers with broken DNS to be
22064       useful to the network.
22065     - Divide eventdns log messages into warn and info messages.
22066     - Reserve the nickname "Unnamed" for routers that can't pick
22067       a hostname: any router can call itself Unnamed; directory
22068       authorities will never allocate Unnamed to any particular router;
22069       clients won't believe that any router is the canonical Unnamed.
22070     - Only include function names in log messages for info/debug messages.
22071       For notice/warn/err, the content of the message should be clear on
22072       its own, and printing the function name only confuses users.
22073     - Avoid some false positives during reachability testing: don't try
22074       to test via a server that's on the same /24 as us.
22075     - If we fail to build a circuit to an intended enclave, and it's
22076       not mandatory that we use that enclave, stop wanting it.
22077     - When eventdns is enabled, allow multithreaded builds on NetBSD and
22078       OpenBSD. (We had previously disabled threads on these platforms
22079       because they didn't have working thread-safe resolver functions.)
22081   o Major bugfixes, anonymity/security:
22082     - If a client asked for a server by name, and there's a named server
22083       in our network-status but we don't have its descriptor yet, we
22084       could return an unnamed server instead.
22085     - Fix NetBSD bug that could allow someone to force uninitialized RAM
22086       to be sent to a server's DNS resolver. This only affects NetBSD
22087       and other platforms that do not bounds-check tolower().
22088     - Reject (most) attempts to use Tor circuits with length one. (If
22089       many people start using Tor as a one-hop proxy, exit nodes become
22090       a more attractive target for compromise.)
22091     - Just because your DirPort is open doesn't mean people should be
22092       able to remotely teach you about hidden service descriptors. Now
22093       only accept rendezvous posts if you've got HSAuthoritativeDir set.
22095   o Major bugfixes, other:
22096     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
22097     - When a client asks the server to resolve (not connect to)
22098       an address, and it has a cached answer, give them the cached answer.
22099       Previously, the server would give them no answer at all.
22100     - Allow really slow clients to not hang up five minutes into their
22101       directory downloads (suggested by Adam J. Richter).
22102     - We were building exactly the wrong circuits when we anticipated
22103       hidden service requirements, meaning Tor would have to build all
22104       its circuits on demand.
22105     - Avoid crashing when we mmap a router cache file of size 0.
22106     - When testing reachability of our DirPort, don't launch new
22107       tests when there's already one in progress -- unreachable
22108       servers were stacking up dozens of testing streams.
22110   o Minor bugfixes, correctness:
22111     - If we're a directory mirror and we ask for "all" network status
22112       documents, we would discard status documents from authorities
22113       we don't recognize.
22114     - Avoid a memory corruption bug when creating a hash table for
22115       the first time.
22116     - Avoid controller-triggered crash when misusing certain commands
22117       from a v0 controller on platforms that do not handle
22118       printf("%s",NULL) gracefully.
22119     - Don't crash when a controller sends a third argument to an
22120       "extendcircuit" request.
22121     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
22122       response; fix error code when "getinfo dir/status/" fails.
22123     - Avoid crash when telling controller stream-status and a stream
22124       is detached.
22125     - Patch from Adam Langley to fix assert() in eventdns.c.
22126     - Fix a debug log message in eventdns to say "X resolved to Y"
22127       instead of "X resolved to X".
22128     - Make eventdns give strings for DNS errors, not just error numbers.
22129     - Track unreachable entry guards correctly: don't conflate
22130       'unreachable by us right now' with 'listed as down by the directory
22131       authorities'. With the old code, if a guard was unreachable by
22132       us but listed as running, it would clog our guard list forever.
22133     - Behave correctly in case we ever have a network with more than
22134       2GB/s total advertised capacity.
22135     - Make TrackExitHosts case-insensitive, and fix the behavior of
22136       ".suffix" TrackExitHosts items to avoid matching in the middle of
22137       an address.
22138     - Finally fix the openssl warnings from newer gccs that believe that
22139       ignoring a return value is okay, but casting a return value and
22140       then ignoring it is a sign of madness.
22141     - Prevent the contrib/exitlist script from printing the same
22142       result more than once.
22143     - Patch from Steve Hildrey: Generate network status correctly on
22144       non-versioning dirservers.
22145     - Don't listen to the X-Your-Address-Is hint if you did the lookup
22146       via Tor; otherwise you'll think you're the exit node's IP address.
22148   o Minor bugfixes, performance:
22149     - Two small performance improvements on parsing descriptors.
22150     - Major performance improvement on inserting descriptors: change
22151       algorithm from O(n^2) to O(n).
22152     - Make the common memory allocation path faster on machines where
22153       malloc(0) returns a pointer.
22154     - Start remembering X-Your-Address-Is directory hints even if you're
22155       a client, so you can become a server more smoothly.
22156     - Avoid duplicate entries on MyFamily line in server descriptor.
22158   o Packaging, features:
22159     - Remove architecture from OS X builds. The official builds are
22160       now universal binaries.
22161     - The Debian package now uses --verify-config when (re)starting,
22162       to distinguish configuration errors from other errors.
22163     - Update RPMs to require libevent 1.1b.
22165   o Packaging, bugfixes:
22166     - Patches so Tor builds with MinGW on Windows.
22167     - Patches so Tor might run on Cygwin again.
22168     - Resume building on non-gcc compilers and ancient gcc. Resume
22169       building with the -O0 compile flag. Resume building cleanly on
22170       Debian woody.
22171     - Run correctly on OS X platforms with case-sensitive filesystems.
22172     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
22173     - Add autoconf checks so Tor can build on Solaris x86 again.
22175   o Documentation
22176     - Documented (and renamed) ServerDNSSearchDomains and
22177       ServerDNSResolvConfFile options.
22178     - Be clearer that the *ListenAddress directives can be repeated
22179       multiple times.
22182 Changes in version 0.1.1.24 - 2006-09-29
22183   o Major bugfixes:
22184     - Allow really slow clients to not hang up five minutes into their
22185       directory downloads (suggested by Adam J. Richter).
22186     - Fix major performance regression from 0.1.0.x: instead of checking
22187       whether we have enough directory information every time we want to
22188       do something, only check when the directory information has changed.
22189       This should improve client CPU usage by 25-50%.
22190     - Don't crash if, after a server has been running for a while,
22191       it can't resolve its hostname.
22193   o Minor bugfixes:
22194     - Allow Tor to start when RunAsDaemon is set but no logs are set.
22195     - Don't crash when the controller receives a third argument to an
22196       "extendcircuit" request.
22197     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
22198       response; fix error code when "getinfo dir/status/" fails.
22199     - Fix configure.in to not produce broken configure files with
22200       more recent versions of autoconf. Thanks to Clint for his auto*
22201       voodoo.
22202     - Fix security bug on NetBSD that could allow someone to force
22203       uninitialized RAM to be sent to a server's DNS resolver. This
22204       only affects NetBSD and other platforms that do not bounds-check
22205       tolower().
22206     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
22207       methods: these are known to be buggy.
22208     - If we're a directory mirror and we ask for "all" network status
22209       documents, we would discard status documents from authorities
22210       we don't recognize.
22213 Changes in version 0.1.2.1-alpha - 2006-08-27
22214   o Major features:
22215     - Add "eventdns" async dns library from Adam Langley, tweaked to
22216       build on OSX and Windows. Only enabled if you pass the
22217       --enable-eventdns argument to configure.
22218     - Allow servers with no hostname or IP address to learn their
22219       IP address by asking the directory authorities. This code only
22220       kicks in when you would normally have exited with a "no address"
22221       error. Nothing's authenticated, so use with care.
22222     - Rather than waiting a fixed amount of time between retrying
22223       application connections, we wait only 5 seconds for the first,
22224       10 seconds for the second, and 15 seconds for each retry after
22225       that. Hopefully this will improve the expected user experience.
22226     - Patch from Tup to add support for transparent AP connections:
22227       this basically bundles the functionality of trans-proxy-tor
22228       into the Tor mainline. Now hosts with compliant pf/netfilter
22229       implementations can redirect TCP connections straight to Tor
22230       without diverting through SOCKS. Needs docs.
22231     - Busy directory servers save lots of memory by spooling server
22232       descriptors, v1 directories, and v2 networkstatus docs to buffers
22233       as needed rather than en masse. Also mmap the cached-routers
22234       files, so we don't need to keep the whole thing in memory too.
22235     - Automatically avoid picking more than one node from the same
22236       /16 network when constructing a circuit.
22237     - Revise and clean up the torrc.sample that we ship with; add
22238       a section for BandwidthRate and BandwidthBurst.
22240   o Minor features:
22241     - Split circuit_t into origin_circuit_t and or_circuit_t, and
22242       split connection_t into edge, or, dir, control, and base structs.
22243       These will save quite a bit of memory on busy servers, and they'll
22244       also help us track down bugs in the code and bugs in the spec.
22245     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
22246       or later. Log when we are doing this, so we can diagnose it when
22247       it fails. (Also, recommend libevent 1.1b for kqueue and
22248       win32 methods; deprecate libevent 1.0b harder; make libevent
22249       recommendation system saner.)
22250     - Start being able to build universal binaries on OS X (thanks
22251       to Phobos).
22252     - Export the default exit policy via the control port, so controllers
22253       don't need to guess what it is / will be later.
22254     - Add a man page entry for ProtocolWarnings.
22255     - Add TestVia config option to the man page.
22256     - Remove even more protocol-related warnings from Tor server logs,
22257       such as bad TLS handshakes and malformed begin cells.
22258     - Stop fetching descriptors if you're not a dir mirror and you
22259       haven't tried to establish any circuits lately. [This currently
22260       causes some dangerous behavior, because when you start up again
22261       you'll use your ancient server descriptors.]
22262     - New DirPort behavior: if you have your dirport set, you download
22263       descriptors aggressively like a directory mirror, whether or not
22264       your ORPort is set.
22265     - Get rid of the router_retry_connections notion. Now routers
22266       no longer try to rebuild long-term connections to directory
22267       authorities, and directory authorities no longer try to rebuild
22268       long-term connections to all servers. We still don't hang up
22269       connections in these two cases though -- we need to look at it
22270       more carefully to avoid flapping, and we likely need to wait til
22271       0.1.1.x is obsolete.
22272     - Drop compatibility with obsolete Tors that permit create cells
22273       to have the wrong circ_id_type.
22274     - Re-enable per-connection rate limiting. Get rid of the "OP
22275       bandwidth" concept. Lay groundwork for "bandwidth classes" --
22276       separate global buckets that apply depending on what sort of conn
22277       it is.
22278     - Start publishing one minute or so after we find our ORPort
22279       to be reachable. This will help reduce the number of descriptors
22280       we have for ourselves floating around, since it's quite likely
22281       other things (e.g. DirPort) will change during that minute too.
22282     - Fork the v1 directory protocol into its own spec document,
22283       and mark dir-spec.txt as the currently correct (v2) spec.
22285   o Major bugfixes:
22286     - When we find our DirPort to be reachable, publish a new descriptor
22287       so we'll tell the world (reported by pnx).
22288     - Publish a new descriptor after we hup/reload. This is important
22289       if our config has changed such that we'll want to start advertising
22290       our DirPort now, etc.
22291     - Allow Tor to start when RunAsDaemon is set but no logs are set.
22292     - When we have a state file we cannot parse, tell the user and
22293       move it aside. Now we avoid situations where the user starts
22294       Tor in 1904, Tor writes a state file with that timestamp in it,
22295       the user fixes her clock, and Tor refuses to start.
22296     - Fix configure.in to not produce broken configure files with
22297       more recent versions of autoconf. Thanks to Clint for his auto*
22298       voodoo.
22299     - "tor --verify-config" now exits with -1(255) or 0 depending on
22300       whether the config options are bad or good.
22301     - Resolve bug 321 when using dnsworkers: append a period to every
22302       address we resolve at the exit node, so that we do not accidentally
22303       pick up local addresses, and so that failing searches are retried
22304       in the resolver search domains. (This is already solved for
22305       eventdns.) (This breaks Blossom servers for now.)
22306     - If we are using an exit enclave and we can't connect, e.g. because
22307       its webserver is misconfigured to not listen on localhost, then
22308       back off and try connecting from somewhere else before we fail.
22310   o Minor bugfixes:
22311     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
22312     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
22313     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
22314       when the IP address is mapped through MapAddress to a hostname.
22315     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
22316       useless IPv6 DNS resolves.
22317     - Patch suggested by Karsten Loesing: respond to SIGNAL command
22318       before we execute the signal, in case the signal shuts us down.
22319     - Clean up AllowInvalidNodes man page entry.
22320     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
22321     - Add more asserts to track down an assert error on a windows Tor
22322       server with connection_add being called with socket == -1.
22323     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
22324     - Fix misleading log messages: an entry guard that is "unlisted",
22325       as well as not known to be "down" (because we've never heard
22326       of it), is not therefore "up".
22327     - Remove code to special-case "-cvs" ending, since it has not
22328       actually mattered since 0.0.9.
22329     - Make our socks5 handling more robust to broken socks clients:
22330       throw out everything waiting on the buffer in between socks
22331       handshake phases, since they can't possibly (so the theory
22332       goes) have predicted what we plan to respond to them.
22335 Changes in version 0.1.1.23 - 2006-07-30
22336   o Major bugfixes:
22337     - Fast Tor servers, especially exit nodes, were triggering asserts
22338       due to a bug in handling the list of pending DNS resolves. Some
22339       bugs still remain here; we're hunting them.
22340     - Entry guards could crash clients by sending unexpected input.
22341     - More fixes on reachability testing: if you find yourself reachable,
22342       then don't ever make any client requests (so you stop predicting
22343       circuits), then hup or have your clock jump, then later your IP
22344       changes, you won't think circuits are working, so you won't try to
22345       test reachability, so you won't publish.
22347   o Minor bugfixes:
22348     - Avoid a crash if the controller does a resetconf firewallports
22349       and then a setconf fascistfirewall=1.
22350     - Avoid an integer underflow when the dir authority decides whether
22351       a router is stable: we might wrongly label it stable, and compute
22352       a slightly wrong median stability, when a descriptor is published
22353       later than now.
22354     - Fix a place where we might trigger an assert if we can't build our
22355       own server descriptor yet.
22358 Changes in version 0.1.1.22 - 2006-07-05
22359   o Major bugfixes:
22360     - Fix a big bug that was causing servers to not find themselves
22361       reachable if they changed IP addresses. Since only 0.1.1.22+
22362       servers can do reachability testing correctly, now we automatically
22363       make sure to test via one of these.
22364     - Fix to allow clients and mirrors to learn directory info from
22365       descriptor downloads that get cut off partway through.
22366     - Directory authorities had a bug in deciding if a newly published
22367       descriptor was novel enough to make everybody want a copy -- a few
22368       servers seem to be publishing new descriptors many times a minute.
22369   o Minor bugfixes:
22370     - Fix a rare bug that was causing some servers to complain about
22371       "closing wedged cpuworkers" and skip some circuit create requests.
22372     - Make the Exit flag in directory status documents actually work.
22375 Changes in version 0.1.1.21 - 2006-06-10
22376   o Crash and assert fixes from 0.1.1.20:
22377     - Fix a rare crash on Tor servers that have enabled hibernation.
22378     - Fix a seg fault on startup for Tor networks that use only one
22379       directory authority.
22380     - Fix an assert from a race condition that occurs on Tor servers
22381       while exiting, where various threads are trying to log that they're
22382       exiting, and delete the logs, at the same time.
22383     - Make our unit tests pass again on certain obscure platforms.
22385   o Other fixes:
22386     - Add support for building SUSE RPM packages.
22387     - Speed up initial bootstrapping for clients: if we are making our
22388       first ever connection to any entry guard, then don't mark it down
22389       right after that.
22390     - When only one Tor server in the network is labelled as a guard,
22391       and we've already picked him, we would cycle endlessly picking him
22392       again, being unhappy about it, etc. Now we specifically exclude
22393       current guards when picking a new guard.
22394     - Servers send create cells more reliably after the TLS connection
22395       is established: we were sometimes forgetting to send half of them
22396       when we had more than one pending.
22397     - If we get a create cell that asks us to extend somewhere, but the
22398       Tor server there doesn't match the expected digest, we now send
22399       a destroy cell back, rather than silently doing nothing.
22400     - Make options->RedirectExit work again.
22401     - Make cookie authentication for the controller work again.
22402     - Stop being picky about unusual characters in the arguments to
22403       mapaddress. It's none of our business.
22404     - Add a new config option "TestVia" that lets you specify preferred
22405       middle hops to use for test circuits. Perhaps this will let me
22406       debug the reachability problems better.
22408   o Log / documentation fixes:
22409     - If we're a server and some peer has a broken TLS certificate, don't
22410       log about it unless ProtocolWarnings is set, i.e., we want to hear
22411       about protocol violations by others.
22412     - Fix spelling of VirtualAddrNetwork in man page.
22413     - Add a better explanation at the top of the autogenerated torrc file
22414       about what happened to our old torrc.
22417 Changes in version 0.1.1.20 - 2006-05-23
22418   o Bugfixes:
22419     - Downgrade a log severity where servers complain that they're
22420       invalid.
22421     - Avoid a compile warning on FreeBSD.
22422     - Remove string size limit on NEWDESC messages; solve bug 291.
22423     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
22424       more thoroughly when we're running on windows.
22427 Changes in version 0.1.1.19-rc - 2006-05-03
22428   o Minor bugs:
22429     - Regenerate our local descriptor if it's dirty and we try to use
22430       it locally (e.g. if it changes during reachability detection).
22431     - If we setconf our ORPort to 0, we continued to listen on the
22432       old ORPort and receive connections.
22433     - Avoid a second warning about machine/limits.h on Debian
22434       GNU/kFreeBSD.
22435     - Be willing to add our own routerinfo into the routerlist.
22436       Now authorities will include themselves in their directories
22437       and network-statuses.
22438     - Stop trying to upload rendezvous descriptors to every
22439       directory authority: only try the v1 authorities.
22440     - Servers no longer complain when they think they're not
22441       registered with the directory authorities. There were too many
22442       false positives.
22443     - Backport dist-rpm changes so rpms can be built without errors.
22445   o Features:
22446     - Implement an option, VirtualAddrMask, to set which addresses
22447       get handed out in response to mapaddress requests. This works
22448       around a bug in tsocks where 127.0.0.0/8 is never socksified.
22451 Changes in version 0.1.1.18-rc - 2006-04-10
22452   o Major fixes:
22453     - Work harder to download live network-statuses from all the
22454       directory authorities we know about. Improve the threshold
22455       decision logic so we're more robust to edge cases.
22456     - When fetching rendezvous descriptors, we were willing to ask
22457       v2 authorities too, which would always return 404.
22459   o Minor fixes:
22460     - Stop listing down or invalid nodes in the v1 directory. This will
22461       reduce its bulk by about 1/3, and reduce load on directory
22462       mirrors.
22463     - When deciding whether a router is Fast or Guard-worthy, consider
22464       his advertised BandwidthRate and not just the BandwidthCapacity.
22465     - No longer ship INSTALL and README files -- they are useless now.
22466     - Force rpmbuild to behave and honor target_cpu.
22467     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
22468     - Start to include translated versions of the tor-doc-*.html
22469       files, along with the screenshots. Still needs more work.
22470     - Start sending back 512 and 451 errors if mapaddress fails,
22471       rather than not sending anything back at all.
22472     - When we fail to bind or listen on an incoming or outgoing
22473       socket, we should close it before failing. otherwise we just
22474       leak it. (thanks to weasel for finding.)
22475     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
22476       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
22477     - Make NoPublish (even though deprecated) work again.
22478     - Fix a minor security flaw where a versioning auth dirserver
22479       could list a recommended version many times in a row to make
22480       clients more convinced that it's recommended.
22481     - Fix crash bug if there are two unregistered servers running
22482       with the same nickname, one of them is down, and you ask for
22483       them by nickname in your EntryNodes or ExitNodes. Also, try
22484       to pick the one that's running rather than an arbitrary one.
22485     - Fix an infinite loop we could hit if we go offline for too long.
22486     - Complain when we hit WSAENOBUFS on recv() or write() too.
22487       Perhaps this will help us hunt the bug.
22488     - If you're not a versioning dirserver, don't put the string
22489       "client-versions \nserver-versions \n" in your network-status.
22490     - Lower the minimum required number of file descriptors to 1000,
22491       so we can have some overhead for Valgrind on Linux, where the
22492       default ulimit -n is 1024.
22494   o New features:
22495     - Add tor.dizum.com as the fifth authoritative directory server.
22496     - Add a new config option FetchUselessDescriptors, off by default,
22497       for when you plan to run "exitlist" on your client and you want
22498       to know about even the non-running descriptors.
22501 Changes in version 0.1.1.17-rc - 2006-03-28
22502   o Major fixes:
22503     - Clients and servers since 0.1.1.10-alpha have been expiring
22504       connections whenever they are idle for 5 minutes and they *do*
22505       have circuits on them. Oops. With this new version, clients will
22506       discard their previous entry guard choices and avoid choosing
22507       entry guards running these flawed versions.
22508     - Fix memory leak when uncompressing concatenated zlib streams. This
22509       was causing substantial leaks over time on Tor servers.
22510     - The v1 directory was including servers as much as 48 hours old,
22511       because that's how the new routerlist->routers works. Now only
22512       include them if they're 20 hours old or less.
22514   o Minor fixes:
22515     - Resume building on irix64, netbsd 2.0, etc.
22516     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
22517       "-Wall -g -O2".
22518     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
22519       and it is confusing some users.
22520     - Mirrors stop caching the v1 directory so often.
22521     - Make the max number of old descriptors that a cache will hold
22522       rise with the number of directory authorities, so we can scale.
22523     - Change our win32 uname() hack to be more forgiving about what
22524       win32 versions it thinks it's found.
22526   o New features:
22527     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
22528       server.
22529     - When the controller's *setconf commands fail, collect an error
22530       message in a string and hand it back to the controller.
22531     - Make the v2 dir's "Fast" flag based on relative capacity, just
22532       like "Stable" is based on median uptime. Name everything in the
22533       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
22534     - Log server fingerprint on startup, so new server operators don't
22535       have to go hunting around their filesystem for it.
22536     - Return a robots.txt on our dirport to discourage google indexing.
22537     - Let the controller ask for GETINFO dir/status/foo so it can ask
22538       directly rather than connecting to the dir port. Only works when
22539       dirport is set for now.
22541   o New config options rather than constants in the code:
22542     - SocksTimeout: How long do we let a socks connection wait
22543       unattached before we fail it?
22544     - CircuitBuildTimeout: Cull non-open circuits that were born
22545       at least this many seconds ago.
22546     - CircuitIdleTimeout: Cull open clean circuits that were born
22547       at least this many seconds ago.
22550 Changes in version 0.1.1.16-rc - 2006-03-18
22551   o Bugfixes on 0.1.1.15-rc:
22552     - Fix assert when the controller asks to attachstream a connect-wait
22553       or resolve-wait stream.
22554     - Now do address rewriting when the controller asks us to attach
22555       to a particular circuit too. This will let Blossom specify
22556       "moria2.exit" without having to learn what moria2's IP address is.
22557     - Make the "tor --verify-config" command-line work again, so people
22558       can automatically check if their torrc will parse.
22559     - Authoritative dirservers no longer require an open connection from
22560       a server to consider him "reachable". We need this change because
22561       when we add new auth dirservers, old servers won't know not to
22562       hang up on them.
22563     - Let Tor build on Sun CC again.
22564     - Fix an off-by-one buffer size in dirserv.c that magically never
22565       hit our three authorities but broke sjmurdoch's own tor network.
22566     - If we as a directory mirror don't know of any v1 directory
22567       authorities, then don't try to cache any v1 directories.
22568     - Stop warning about unknown servers in our family when they are
22569       given as hex digests.
22570     - Stop complaining as quickly to the server operator that he
22571       hasn't registered his nickname/key binding.
22572     - Various cleanups so we can add new V2 Auth Dirservers.
22573     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
22574       reflect the updated flags in our v2 dir protocol.
22575     - Resume allowing non-printable characters for exit streams (both
22576       for connecting and for resolving). Now we tolerate applications
22577       that don't follow the RFCs. But continue to block malformed names
22578       at the socks side.
22580   o Bugfixes on 0.1.0.x:
22581     - Fix assert bug in close_logs(): when we close and delete logs,
22582       remove them all from the global "logfiles" list.
22583     - Fix minor integer overflow in calculating when we expect to use up
22584       our bandwidth allocation before hibernating.
22585     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
22586       there are multiple SSLs installed with different versions.
22587     - When we try to be a server and Address is not explicitly set and
22588       our hostname resolves to a private IP address, try to use an
22589       interface address if it has a public address. Now Windows machines
22590       that think of themselves as localhost can work by default.
22592   o New features:
22593     - Let the controller ask for GETINFO dir/server/foo so it can ask
22594       directly rather than connecting to the dir port.
22595     - Let the controller tell us about certain router descriptors
22596       that it doesn't want Tor to use in circuits. Implement
22597       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
22598     - New config option SafeSocks to reject all application connections
22599       using unsafe socks protocols. Defaults to off.
22602 Changes in version 0.1.1.15-rc - 2006-03-11
22603   o Bugfixes and cleanups:
22604     - When we're printing strings from the network, don't try to print
22605       non-printable characters. This protects us against shell escape
22606       sequence exploits, and also against attacks to fool humans into
22607       misreading their logs.
22608     - Fix a bug where Tor would fail to establish any connections if you
22609       left it off for 24 hours and then started it: we were happy with
22610       the obsolete network statuses, but they all referred to router
22611       descriptors that were too old to fetch, so we ended up with no
22612       valid router descriptors.
22613     - Fix a seg fault in the controller's "getinfo orconn-status"
22614       command while listing status on incoming handshaking connections.
22615       Introduce a status name "NEW" for these connections.
22616     - If we get a linelist or linelist_s config option from the torrc
22617       (e.g. ExitPolicy) and it has no value, warn and skip rather than
22618       silently resetting it to its default.
22619     - Don't abandon entry guards until they've been down or gone for
22620       a whole month.
22621     - Cleaner and quieter log messages.
22623   o New features:
22624     - New controller signal NEWNYM that makes new application requests
22625       use clean circuits.
22626     - Add a new circuit purpose 'controller' to let the controller ask
22627       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
22628       controller command to let you specify the purpose if you're
22629       starting a new circuit. Add a new SETCIRCUITPURPOSE controller
22630       command to let you change a circuit's purpose after it's been
22631       created.
22632     - Accept "private:*" in routerdesc exit policies; not generated yet
22633       because older Tors do not understand it.
22634     - Add BSD-style contributed startup script "rc.subr" from Peter
22635       Thoenen.
22638 Changes in version 0.1.1.14-alpha - 2006-02-20
22639   o Bugfixes on 0.1.1.x:
22640     - Don't die if we ask for a stdout or stderr log (even implicitly)
22641       and we're set to RunAsDaemon -- just warn.
22642     - We still had a few bugs in the OR connection rotation code that
22643       caused directory servers to slowly aggregate connections to other
22644       fast Tor servers. This time for sure!
22645     - Make log entries on Win32 include the name of the function again.
22646     - We were treating a pair of exit policies if they were equal even
22647       if one said accept and the other said reject -- causing us to
22648       not always publish a new descriptor since we thought nothing
22649       had changed.
22650     - Retry pending server downloads as well as pending networkstatus
22651       downloads when we unexpectedly get a socks request.
22652     - We were ignoring the IS_FAST flag in the directory status,
22653       meaning we were willing to pick trivial-bandwidth nodes for "fast"
22654       connections.
22655     - If the controller's SAVECONF command fails (e.g. due to file
22656       permissions), let the controller know that it failed.
22658   o Features:
22659     - If we're trying to be a Tor server and running Windows 95/98/ME
22660       as a server, explain that we'll likely crash.
22661     - When we're a server, a client asks for an old-style directory,
22662       and our write bucket is empty, don't give it to him. This way
22663       small servers can continue to serve the directory *sometimes*,
22664       without getting overloaded.
22665     - Compress exit policies even more -- look for duplicate lines
22666       and remove them.
22667     - Clients now honor the "guard" flag in the router status when
22668       picking entry guards, rather than looking at is_fast or is_stable.
22669     - Retain unrecognized lines in $DATADIR/state file, so that we can
22670       be forward-compatible.
22671     - Generate 18.0.0.0/8 address policy format in descs when we can;
22672       warn when the mask is not reducible to a bit-prefix.
22673     - Let the user set ControlListenAddress in the torrc. This can be
22674       dangerous, but there are some cases (like a secured LAN) where it
22675       makes sense.
22676     - Split ReachableAddresses into ReachableDirAddresses and
22677       ReachableORAddresses, so we can restrict Dir conns to port 80
22678       and OR conns to port 443.
22679     - Now we can target arch and OS in rpm builds (contributed by
22680       Phobos). Also make the resulting dist-rpm filename match the
22681       target arch.
22682     - New config options to help controllers: FetchServerDescriptors
22683       and FetchHidServDescriptors for whether to fetch server
22684       info and hidserv info or let the controller do it, and
22685       PublishServerDescriptor and PublishHidServDescriptors.
22686     - Also let the controller set the __AllDirActionsPrivate config
22687       option if you want all directory fetches/publishes to happen via
22688       Tor (it assumes your controller bootstraps your circuits).
22691 Changes in version 0.1.0.17 - 2006-02-17
22692   o Crash bugfixes on 0.1.0.x:
22693     - When servers with a non-zero DirPort came out of hibernation,
22694       sometimes they would trigger an assert.
22696   o Other important bugfixes:
22697     - On platforms that don't have getrlimit (like Windows), we were
22698       artificially constraining ourselves to a max of 1024
22699       connections. Now just assume that we can handle as many as 15000
22700       connections. Hopefully this won't cause other problems.
22702   o Backported features:
22703     - When we're a server, a client asks for an old-style directory,
22704       and our write bucket is empty, don't give it to him. This way
22705       small servers can continue to serve the directory *sometimes*,
22706       without getting overloaded.
22707     - Whenever you get a 503 in response to a directory fetch, try
22708       once more. This will become important once servers start sending
22709       503's whenever they feel busy.
22710     - Fetch a new directory every 120 minutes, not every 40 minutes.
22711       Now that we have hundreds of thousands of users running the old
22712       directory algorithm, it's starting to hurt a lot.
22713     - Bump up the period for forcing a hidden service descriptor upload
22714       from 20 minutes to 1 hour.
22717 Changes in version 0.1.1.13-alpha - 2006-02-09
22718   o Crashes in 0.1.1.x:
22719     - When you tried to setconf ORPort via the controller, Tor would
22720       crash. So people using TorCP to become a server were sad.
22721     - Solve (I hope) the stack-smashing bug that we were seeing on fast
22722       servers. The problem appears to be something do with OpenSSL's
22723       random number generation, or how we call it, or something. Let me
22724       know if the crashes continue.
22725     - Turn crypto hardware acceleration off by default, until we find
22726       somebody smart who can test it for us. (It appears to produce
22727       seg faults in at least some cases.)
22728     - Fix a rare assert error when we've tried all intro points for
22729       a hidden service and we try fetching the service descriptor again:
22730       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
22732   o Major fixes:
22733     - Fix a major load balance bug: we were round-robining in 16 KB
22734       chunks, and servers with bandwidthrate of 20 KB, while downloading
22735       a 600 KB directory, would starve their other connections. Now we
22736       try to be a bit more fair.
22737     - Dir authorities and mirrors were never expiring the newest
22738       descriptor for each server, causing memory and directory bloat.
22739     - Fix memory-bloating and connection-bloating bug on servers: We
22740       were never closing any connection that had ever had a circuit on
22741       it, because we were checking conn->n_circuits == 0, yet we had a
22742       bug that let it go negative.
22743     - Make Tor work using squid as your http proxy again -- squid
22744       returns an error if you ask for a URL that's too long, and it uses
22745       a really generic error message. Plus, many people are behind a
22746       transparent squid so they don't even realize it.
22747     - On platforms that don't have getrlimit (like Windows), we were
22748       artificially constraining ourselves to a max of 1024
22749       connections. Now just assume that we can handle as many as 15000
22750       connections. Hopefully this won't cause other problems.
22751     - Add a new config option ExitPolicyRejectPrivate which defaults to
22752       1. This means all exit policies will begin with rejecting private
22753       addresses, unless the server operator explicitly turns it off.
22755   o Major features:
22756     - Clients no longer download descriptors for non-running
22757       descriptors.
22758     - Before we add new directory authorities, we should make it
22759       clear that only v1 authorities should receive/publish hidden
22760       service descriptors.
22762   o Minor features:
22763     - As soon as we've fetched some more directory info, immediately
22764       try to download more server descriptors. This way we don't have
22765       a 10 second pause during initial bootstrapping.
22766     - Remove even more loud log messages that the server operator can't
22767       do anything about.
22768     - When we're running an obsolete or un-recommended version, make
22769       the log message more clear about what the problem is and what
22770       versions *are* still recommended.
22771     - Provide a more useful warn message when our onion queue gets full:
22772       the CPU is too slow or the exit policy is too liberal.
22773     - Don't warn when we receive a 503 from a dirserver/cache -- this
22774       will pave the way for them being able to refuse if they're busy.
22775     - When we fail to bind a listener, try to provide a more useful
22776       log message: e.g., "Is Tor already running?"
22777     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
22778       Goldberg can prove things about our handshake protocol more
22779       easily.
22780     - MaxConn has been obsolete for a while now. Document the ConnLimit
22781       config option, which is a *minimum* number of file descriptors
22782       that must be available else Tor refuses to start.
22783     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
22784       if you log to syslog and want something other than LOG_DAEMON.
22785     - Make dirservers generate a separate "guard" flag to mean,
22786       "would make a good entry guard". Make clients parse it and vote
22787       on it. Not used by clients yet.
22788     - Implement --with-libevent-dir option to ./configure. Also, improve
22789       search techniques to find libevent, and use those for openssl too.
22790     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
22791     - Only start testing reachability once we've established a
22792       circuit. This will make startup on dirservers less noisy.
22793     - Don't try to upload hidden service descriptors until we have
22794       established a circuit.
22795     - Fix the controller's "attachstream 0" command to treat conn like
22796       it just connected, doing address remapping, handling .exit and
22797       .onion idioms, and so on. Now we're more uniform in making sure
22798       that the controller hears about new and closing connections.
22801 Changes in version 0.1.1.12-alpha - 2006-01-11
22802   o Bugfixes on 0.1.1.x:
22803     - The fix to close duplicate server connections was closing all
22804       Tor client connections if they didn't establish a circuit
22805       quickly enough. Oops.
22806     - Fix minor memory issue (double-free) that happened on exit.
22808   o Bugfixes on 0.1.0.x:
22809     - Tor didn't warn when it failed to open a log file.
22812 Changes in version 0.1.1.11-alpha - 2006-01-10
22813   o Crashes in 0.1.1.x:
22814     - Include all the assert/crash fixes from 0.1.0.16.
22815     - If you start Tor and then quit very quickly, there were some
22816       races that tried to free things that weren't allocated yet.
22817     - Fix a rare memory stomp if you're running hidden services.
22818     - Fix segfault when specifying DirServer in config without nickname.
22819     - Fix a seg fault when you finish connecting to a server but at
22820       that moment you dump his server descriptor.
22821     - Extendcircuit and Attachstream controller commands would
22822       assert/crash if you don't give them enough arguments.
22823     - Fix an assert error when we're out of space in the connection_list
22824       and we try to post a hidden service descriptor (reported by weasel).
22825     - If you specify a relative torrc path and you set RunAsDaemon in
22826       your torrc, then it chdir()'s to the new directory. If you HUP,
22827       it tries to load the new torrc location, fails, and exits.
22828       The fix: no longer allow a relative path to torrc using -f.
22830   o Major features:
22831     - Implement "entry guards": automatically choose a handful of entry
22832       nodes and stick with them for all circuits. Only pick new guards
22833       when the ones you have are unsuitable, and if the old guards
22834       become suitable again, switch back. This will increase security
22835       dramatically against certain end-point attacks. The EntryNodes
22836       config option now provides some hints about which entry guards you
22837       want to use most; and StrictEntryNodes means to only use those.
22838     - New directory logic: download by descriptor digest, not by
22839       fingerprint. Caches try to download all listed digests from
22840       authorities; clients try to download "best" digests from caches.
22841       This avoids partitioning and isolating attacks better.
22842     - Make the "stable" router flag in network-status be the median of
22843       the uptimes of running valid servers, and make clients pay
22844       attention to the network-status flags. Thus the cutoff adapts
22845       to the stability of the network as a whole, making IRC, IM, etc
22846       connections more reliable.
22848   o Major fixes:
22849     - Tor servers with dynamic IP addresses were needing to wait 18
22850       hours before they could start doing reachability testing using
22851       the new IP address and ports. This is because they were using
22852       the internal descriptor to learn what to test, yet they were only
22853       rebuilding the descriptor once they decided they were reachable.
22854     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
22855       to download certain server descriptors, throw them away, and then
22856       fetch them again after 30 minutes. Now mirrors throw away these
22857       server descriptors so clients can't get them.
22858     - We were leaving duplicate connections to other ORs open for a week,
22859       rather than closing them once we detect a duplicate. This only
22860       really affected authdirservers, but it affected them a lot.
22861     - Spread the authdirservers' reachability testing over the entire
22862       testing interval, so we don't try to do 500 TLS's at once every
22863       20 minutes.
22865   o Minor fixes:
22866     - If the network is down, and we try to connect to a conn because
22867       we have a circuit in mind, and we timeout (30 seconds) because the
22868       network never answers, we were expiring the circuit, but we weren't
22869       obsoleting the connection or telling the entry_guards functions.
22870     - Some Tor servers process billions of cells per day. These statistics
22871       need to be uint64_t's.
22872     - Check for integer overflows in more places, when adding elements
22873       to smartlists. This could possibly prevent a buffer overflow
22874       on malicious huge inputs. I don't see any, but I haven't looked
22875       carefully.
22876     - ReachableAddresses kept growing new "reject *:*" lines on every
22877       setconf/reload.
22878     - When you "setconf log" via the controller, it should remove all
22879       logs. We were automatically adding back in a "log notice stdout".
22880     - Newly bootstrapped Tor networks couldn't establish hidden service
22881       circuits until they had nodes with high uptime. Be more tolerant.
22882     - We were marking servers down when they could not answer every piece
22883       of the directory request we sent them. This was far too harsh.
22884     - Fix the torify (tsocks) config file to not use Tor for localhost
22885       connections.
22886     - Directory authorities now go to the proper authority when asking for
22887       a networkstatus, even when they want a compressed one.
22888     - Fix a harmless bug that was causing Tor servers to log
22889       "Got an end because of misc error, but we're not an AP. Closing."
22890     - Authorities were treating their own descriptor changes as cosmetic,
22891       meaning the descriptor available in the network-status and the
22892       descriptor that clients downloaded were different.
22893     - The OS X installer was adding a symlink for tor_resolve but
22894       the binary was called tor-resolve (reported by Thomas Hardly).
22895     - Workaround a problem with some http proxies where they refuse GET
22896       requests that specify "Content-Length: 0" (reported by Adrian).
22897     - Fix wrong log message when you add a "HiddenServiceNodes" config
22898       line without any HiddenServiceDir line (reported by Chris Thomas).
22900   o Minor features:
22901     - Write the TorVersion into the state file so we have a prayer of
22902       keeping forward and backward compatibility.
22903     - Revive the FascistFirewall config option rather than eliminating it:
22904       now it's a synonym for ReachableAddresses *:80,*:443.
22905     - Clients choose directory servers from the network status lists,
22906       not from their internal list of router descriptors. Now they can
22907       go to caches directly rather than needing to go to authorities
22908       to bootstrap.
22909     - Directory authorities ignore router descriptors that have only
22910       cosmetic differences: do this for 0.1.0.x servers now too.
22911     - Add a new flag to network-status indicating whether the server
22912       can answer v2 directory requests too.
22913     - Authdirs now stop whining so loudly about bad descriptors that
22914       they fetch from other dirservers. So when there's a log complaint,
22915       it's for sure from a freshly uploaded descriptor.
22916     - Reduce memory requirements in our structs by changing the order
22917       of fields.
22918     - There used to be two ways to specify your listening ports in a
22919       server descriptor: on the "router" line and with a separate "ports"
22920       line. Remove support for the "ports" line.
22921     - New config option "AuthDirRejectUnlisted" for auth dirservers as
22922       a panic button: if we get flooded with unusable servers we can
22923       revert to only listing servers in the approved-routers file.
22924     - Auth dir servers can now mark a fingerprint as "!reject" or
22925       "!invalid" in the approved-routers file (as its nickname), to
22926       refuse descriptors outright or include them but marked as invalid.
22927     - Servers store bandwidth history across restarts/crashes.
22928     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
22929       get a better idea of why their circuits failed. Not used yet.
22930     - Directory mirrors now cache up to 16 unrecognized network-status
22931       docs. Now we can add new authdirservers and they'll be cached too.
22932     - When picking a random directory, prefer non-authorities if any
22933       are known.
22934     - New controller option "getinfo desc/all-recent" to fetch the
22935       latest server descriptor for every router that Tor knows about.
22938 Changes in version 0.1.0.16 - 2006-01-02
22939   o Crash bugfixes on 0.1.0.x:
22940     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
22941       corrupting the heap, losing FDs, or crashing when we need to resize
22942       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
22943     - It turns out sparc64 platforms crash on unaligned memory access
22944       too -- so detect and avoid this.
22945     - Handle truncated compressed data correctly (by detecting it and
22946       giving an error).
22947     - Fix possible-but-unlikely free(NULL) in control.c.
22948     - When we were closing connections, there was a rare case that
22949       stomped on memory, triggering seg faults and asserts.
22950     - Avoid potential infinite recursion when building a descriptor. (We
22951       don't know that it ever happened, but better to fix it anyway.)
22952     - We were neglecting to unlink marked circuits from soon-to-close OR
22953       connections, which caused some rare scribbling on freed memory.
22954     - Fix a memory stomping race bug when closing the joining point of two
22955       rendezvous circuits.
22956     - Fix an assert in time parsing found by Steven Murdoch.
22958   o Other bugfixes on 0.1.0.x:
22959     - When we're doing reachability testing, provide more useful log
22960       messages so the operator knows what to expect.
22961     - Do not check whether DirPort is reachable when we are suppressing
22962       advertising it because of hibernation.
22963     - When building with -static or on Solaris, we sometimes needed -ldl.
22964     - When we're deciding whether a stream has enough circuits around
22965       that can handle it, count the freshly dirty ones and not the ones
22966       that are so dirty they won't be able to handle it.
22967     - When we're expiring old circuits, we had a logic error that caused
22968       us to close new rendezvous circuits rather than old ones.
22969     - Give a more helpful log message when you try to change ORPort via
22970       the controller: you should upgrade Tor if you want that to work.
22971     - We were failing to parse Tor versions that start with "Tor ".
22972     - Tolerate faulty streams better: when a stream fails for reason
22973       exitpolicy, stop assuming that the router is lying about his exit
22974       policy. When a stream fails for reason misc, allow it to retry just
22975       as if it was resolvefailed. When a stream has failed three times,
22976       reset its failure count so we can try again and get all three tries.
22979 Changes in version 0.1.1.10-alpha - 2005-12-11
22980   o Correctness bugfixes on 0.1.0.x:
22981     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
22982       corrupting the heap, losing FDs, or crashing when we need to resize
22983       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
22984     - Stop doing the complex voodoo overkill checking for insecure
22985       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
22986     - When we were closing connections, there was a rare case that
22987       stomped on memory, triggering seg faults and asserts.
22988     - We were neglecting to unlink marked circuits from soon-to-close OR
22989       connections, which caused some rare scribbling on freed memory.
22990     - When we're deciding whether a stream has enough circuits around
22991       that can handle it, count the freshly dirty ones and not the ones
22992       that are so dirty they won't be able to handle it.
22993     - Recover better from TCP connections to Tor servers that are
22994       broken but don't tell you (it happens!); and rotate TLS
22995       connections once a week.
22996     - When we're expiring old circuits, we had a logic error that caused
22997       us to close new rendezvous circuits rather than old ones.
22998     - Fix a scary-looking but apparently harmless bug where circuits
22999       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
23000       servers, and never switch to state CIRCUIT_STATE_OPEN.
23001     - When building with -static or on Solaris, we sometimes needed to
23002       build with -ldl.
23003     - Give a useful message when people run Tor as the wrong user,
23004       rather than telling them to start chowning random directories.
23005     - We were failing to inform the controller about new .onion streams.
23007   o Security bugfixes on 0.1.0.x:
23008     - Refuse server descriptors if the fingerprint line doesn't match
23009       the included identity key. Tor doesn't care, but other apps (and
23010       humans) might actually be trusting the fingerprint line.
23011     - We used to kill the circuit when we receive a relay command we
23012       don't recognize. Now we just drop it.
23013     - Start obeying our firewall options more rigorously:
23014       . If we can't get to a dirserver directly, try going via Tor.
23015       . Don't ever try to connect (as a client) to a place our
23016         firewall options forbid.
23017       . If we specify a proxy and also firewall options, obey the
23018         firewall options even when we're using the proxy: some proxies
23019         can only proxy to certain destinations.
23020     - Fix a bug found by Lasse Overlier: when we were making internal
23021       circuits (intended to be cannibalized later for rendezvous and
23022       introduction circuits), we were picking them so that they had
23023       useful exit nodes. There was no need for this, and it actually
23024       aids some statistical attacks.
23025     - Start treating internal circuits and exit circuits separately.
23026       It's important to keep them separate because internal circuits
23027       have their last hops picked like middle hops, rather than like
23028       exit hops. So exiting on them will break the user's expectations.
23030   o Bugfixes on 0.1.1.x:
23031     - Take out the mis-feature where we tried to detect IP address
23032       flapping for people with DynDNS, and chose not to upload a new
23033       server descriptor sometimes.
23034     - Try to be compatible with OpenSSL 0.9.6 again.
23035     - Log fix: when the controller is logging about .onion addresses,
23036       sometimes it didn't include the ".onion" part of the address.
23037     - Don't try to modify options->DirServers internally -- if the
23038       user didn't specify any, just add the default ones directly to
23039       the trusted dirserver list. This fixes a bug where people running
23040       controllers would use SETCONF on some totally unrelated config
23041       option, and Tor would start yelling at them about changing their
23042       DirServer lines.
23043     - Let the controller's redirectstream command specify a port, in
23044       case the controller wants to change that too.
23045     - When we requested a pile of server descriptors, we sometimes
23046       accidentally launched a duplicate request for the first one.
23047     - Bugfix for trackhostexits: write down the fingerprint of the
23048       chosen exit, not its nickname, because the chosen exit might not
23049       be verified.
23050     - When parsing foo.exit, if foo is unknown, and we are leaving
23051       circuits unattached, set the chosen_exit field and leave the
23052       address empty. This matters because controllers got confused
23053       otherwise.
23054     - Directory authorities no longer try to download server
23055       descriptors that they know they will reject.
23057   o Features and updates:
23058     - Replace balanced trees with hash tables: this should make stuff
23059       significantly faster.
23060     - Resume using the AES counter-mode implementation that we ship,
23061       rather than OpenSSL's. Ours is significantly faster.
23062     - Many other CPU and memory improvements.
23063     - Add a new config option FastFirstHopPK (on by default) so clients
23064       do a trivial crypto handshake for their first hop, since TLS has
23065       already taken care of confidentiality and authentication.
23066     - Add a new config option TestSocks so people can see if their
23067       applications are using socks4, socks4a, socks5-with-ip, or
23068       socks5-with-hostname. This way they don't have to keep mucking
23069       with tcpdump and wondering if something got cached somewhere.
23070     - Warn when listening on a public address for socks. I suspect a
23071       lot of people are setting themselves up as open socks proxies,
23072       and they have no idea that jerks on the Internet are using them,
23073       since they simply proxy the traffic into the Tor network.
23074     - Add "private:*" as an alias in configuration for policies. Now
23075       you can simplify your exit policy rather than needing to list
23076       every single internal or nonroutable network space.
23077     - Add a new controller event type that allows controllers to get
23078       all server descriptors that were uploaded to a router in its role
23079       as authoritative dirserver.
23080     - Start shipping socks-extensions.txt, tor-doc-unix.html,
23081       tor-doc-server.html, and stylesheet.css in the tarball.
23082     - Stop shipping tor-doc.html in the tarball.
23085 Changes in version 0.1.1.9-alpha - 2005-11-15
23086   o Usability improvements:
23087     - Start calling it FooListenAddress rather than FooBindAddress,
23088       since few of our users know what it means to bind an address
23089       or port.
23090     - Reduce clutter in server logs. We're going to try to make
23091       them actually usable now. New config option ProtocolWarnings that
23092       lets you hear about how _other Tors_ are breaking the protocol. Off
23093       by default.
23094     - Divide log messages into logging domains. Once we put some sort
23095       of interface on this, it will let people looking at more verbose
23096       log levels specify the topics they want to hear more about.
23097     - Make directory servers return better http 404 error messages
23098       instead of a generic "Servers unavailable".
23099     - Check for even more Windows version flags when writing the platform
23100       string in server descriptors, and note any we don't recognize.
23101     - Clean up more of the OpenSSL memory when exiting, so we can detect
23102       memory leaks better.
23103     - Make directory authorities be non-versioning, non-naming by
23104       default. Now we can add new directory servers without requiring
23105       their operators to pay close attention.
23106     - When logging via syslog, include the pid whenever we provide
23107       a log entry. Suggested by Todd Fries.
23109   o Performance improvements:
23110     - Directory servers now silently throw away new descriptors that
23111       haven't changed much if the timestamps are similar. We do this to
23112       tolerate older Tor servers that upload a new descriptor every 15
23113       minutes. (It seemed like a good idea at the time.)
23114     - Inline bottleneck smartlist functions; use fast versions by default.
23115     - Add a "Map from digest to void*" abstraction digestmap_t so we
23116       can do less hex encoding/decoding. Use it in router_get_by_digest()
23117       to resolve a performance bottleneck.
23118     - Allow tor_gzip_uncompress to extract as much as possible from
23119       truncated compressed data. Try to extract as many
23120       descriptors as possible from truncated http responses (when
23121       DIR_PURPOSE_FETCH_ROUTERDESC).
23122     - Make circ->onionskin a pointer, not a static array. moria2 was using
23123       125000 circuit_t's after it had been up for a few weeks, which
23124       translates to 20+ megs of wasted space.
23125     - The private half of our EDH handshake keys are now chosen out
23126       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
23128   o Security improvements:
23129     - Start making directory caches retain old routerinfos, so soon
23130       clients can start asking by digest of descriptor rather than by
23131       fingerprint of server.
23132     - Add half our entropy from RAND_poll in OpenSSL. This knows how
23133       to use egd (if present), openbsd weirdness (if present), vms/os2
23134       weirdness (if we ever port there), and more in the future.
23136   o Bugfixes on 0.1.0.x:
23137     - Do round-robin writes of at most 16 kB per write. This might be
23138       more fair on loaded Tor servers, and it might resolve our Windows
23139       crash bug. It might also slow things down.
23140     - Our TLS handshakes were generating a single public/private
23141       keypair for the TLS context, rather than making a new one for
23142       each new connections. Oops. (But we were still rotating them
23143       periodically, so it's not so bad.)
23144     - When we were cannibalizing a circuit with a particular exit
23145       node in mind, we weren't checking to see if that exit node was
23146       already present earlier in the circuit. Oops.
23147     - When a Tor server's IP changes (e.g. from a dyndns address),
23148       upload a new descriptor so clients will learn too.
23149     - Really busy servers were keeping enough circuits open on stable
23150       connections that they were wrapping around the circuit_id
23151       space. (It's only two bytes.) This exposed a bug where we would
23152       feel free to reuse a circuit_id even if it still exists but has
23153       been marked for close. Try to fix this bug. Some bug remains.
23154     - If we would close a stream early (e.g. it asks for a .exit that
23155       we know would refuse it) but the LeaveStreamsUnattached config
23156       option is set by the controller, then don't close it.
23158   o Bugfixes on 0.1.1.8-alpha:
23159     - Fix a big pile of memory leaks, some of them serious.
23160     - Do not try to download a routerdesc if we would immediately reject
23161       it as obsolete.
23162     - Resume inserting a newline between all router descriptors when
23163       generating (old style) signed directories, since our spec says
23164       we do.
23165     - When providing content-type application/octet-stream for
23166       server descriptors using .z, we were leaving out the
23167       content-encoding header. Oops. (Everything tolerated this just
23168       fine, but that doesn't mean we need to be part of the problem.)
23169     - Fix a potential seg fault in getconf and getinfo using version 1
23170       of the controller protocol.
23171     - Avoid crash: do not check whether DirPort is reachable when we
23172       are suppressing it because of hibernation.
23173     - Make --hash-password not crash on exit.
23176 Changes in version 0.1.1.8-alpha - 2005-10-07
23177   o New features (major):
23178     - Clients don't download or use the directory anymore. Now they
23179       download and use network-statuses from the trusted dirservers,
23180       and fetch individual server descriptors as needed from mirrors.
23181       See dir-spec.txt for all the gory details.
23182     - Be more conservative about whether to advertise our DirPort.
23183       The main change is to not advertise if we're running at capacity
23184       and either a) we could hibernate or b) our capacity is low and
23185       we're using a default DirPort.
23186     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
23188   o New features (minor):
23189     - Try to be smart about when to retry network-status and
23190       server-descriptor fetches. Still needs some tuning.
23191     - Stop parsing, storing, or using running-routers output (but
23192       mirrors still cache and serve it).
23193     - Consider a threshold of versioning dirservers (dirservers who have
23194       an opinion about which Tor versions are still recommended) before
23195       deciding whether to warn the user that he's obsolete.
23196     - Dirservers can now reject/invalidate by key and IP, with the
23197       config options "AuthDirInvalid" and "AuthDirReject". This is
23198       useful since currently we automatically list servers as running
23199       and usable even if we know they're jerks.
23200     - Provide dire warnings to any users who set DirServer; move it out
23201       of torrc.sample and into torrc.complete.
23202     - Add MyFamily to torrc.sample in the server section.
23203     - Add nicknames to the DirServer line, so we can refer to them
23204       without requiring all our users to memorize their IP addresses.
23205     - When we get an EOF or a timeout on a directory connection, note
23206       how many bytes of serverdesc we are dropping. This will help
23207       us determine whether it is smart to parse incomplete serverdesc
23208       responses.
23209     - Add a new function to "change pseudonyms" -- that is, to stop
23210       using any currently-dirty circuits for new streams, so we don't
23211       link new actions to old actions. Currently it's only called on
23212       HUP (or SIGNAL RELOAD).
23213     - On sighup, if UseHelperNodes changed to 1, use new circuits.
23214     - Start using RAND_bytes rather than RAND_pseudo_bytes from
23215       OpenSSL. Also, reseed our entropy every hour, not just at
23216       startup. And entropy in 512-bit chunks, not 160-bit chunks.
23218   o Fixes on 0.1.1.7-alpha:
23219     - Nobody ever implemented EVENT_ADDRMAP for control protocol
23220       version 0, so don't let version 0 controllers ask for it.
23221     - If you requested something with too many newlines via the
23222       v1 controller protocol, you could crash tor.
23223     - Fix a number of memory leaks, including some pretty serious ones.
23224     - Re-enable DirPort testing again, so Tor servers will be willing
23225       to advertise their DirPort if it's reachable.
23226     - On TLS handshake, only check the other router's nickname against
23227       its expected nickname if is_named is set.
23229   o Fixes forward-ported from 0.1.0.15:
23230     - Don't crash when we don't have any spare file descriptors and we
23231       try to spawn a dns or cpu worker.
23232     - Make the numbers in read-history and write-history into uint64s,
23233       so they don't overflow and publish negatives in the descriptor.
23235   o Fixes on 0.1.0.x:
23236     - For the OS X package's modified privoxy config file, comment
23237       out the "logfile" line so we don't log everything passed
23238       through privoxy.
23239     - We were whining about using socks4 or socks5-with-local-lookup
23240       even when it's an IP in the "virtual" range we designed exactly
23241       for this case.
23242     - We were leaking some memory every time the client changes IPs.
23243     - Never call free() on tor_malloc()d memory. This will help us
23244       use dmalloc to detect memory leaks.
23245     - Check for named servers when looking them up by nickname;
23246       warn when we'recalling a non-named server by its nickname;
23247       don't warn twice about the same name.
23248     - Try to list MyFamily elements by key, not by nickname, and warn
23249       if we've not heard of the server.
23250     - Make windows platform detection (uname equivalent) smarter.
23251     - It turns out sparc64 doesn't like unaligned access either.
23254 Changes in version 0.1.0.15 - 2005-09-23
23255   o Bugfixes on 0.1.0.x:
23256     - Reject ports 465 and 587 (spam targets) in default exit policy.
23257     - Don't crash when we don't have any spare file descriptors and we
23258       try to spawn a dns or cpu worker.
23259     - Get rid of IgnoreVersion undocumented config option, and make us
23260       only warn, never exit, when we're running an obsolete version.
23261     - Don't try to print a null string when your server finds itself to
23262       be unreachable and the Address config option is empty.
23263     - Make the numbers in read-history and write-history into uint64s,
23264       so they don't overflow and publish negatives in the descriptor.
23265     - Fix a minor memory leak in smartlist_string_remove().
23266     - We were only allowing ourselves to upload a server descriptor at
23267       most every 20 minutes, even if it changed earlier than that.
23268     - Clean up log entries that pointed to old URLs.
23271 Changes in version 0.1.1.7-alpha - 2005-09-14
23272   o Fixes on 0.1.1.6-alpha:
23273     - Exit servers were crashing when people asked them to make a
23274       connection to an address not in their exit policy.
23275     - Looking up a non-existent stream for a v1 control connection would
23276       cause a segfault.
23277     - Fix a seg fault if we ask a dirserver for a descriptor by
23278       fingerprint but he doesn't know about him.
23279     - SETCONF was appending items to linelists, not clearing them.
23280     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
23281       out and refuse the setconf if it would fail.
23282     - Downgrade the dirserver log messages when whining about
23283       unreachability.
23285   o New features:
23286     - Add Peter Palfrader's check-tor script to tor/contrib/
23287       It lets you easily check whether a given server (referenced by
23288       nickname) is reachable by you.
23289     - Numerous changes to move towards client-side v2 directories. Not
23290       enabled yet.
23292   o Fixes on 0.1.0.x:
23293     - If the user gave tor an odd number of command-line arguments,
23294       we were silently ignoring the last one. Now we complain and fail.
23295       [This wins the oldest-bug prize -- this bug has been present since
23296        November 2002, as released in Tor 0.0.0.]
23297     - Do not use unaligned memory access on alpha, mips, or mipsel.
23298       It *works*, but is very slow, so we treat them as if it doesn't.
23299     - Retry directory requests if we fail to get an answer we like
23300       from a given dirserver (we were retrying before, but only if
23301       we fail to connect).
23302     - When writing the RecommendedVersions line, sort them first.
23303     - When the client asked for a rendezvous port that the hidden
23304       service didn't want to provide, we were sending an IP address
23305       back along with the end cell. Fortunately, it was zero. But stop
23306       that anyway.
23307     - Correct "your server is reachable" log entries to indicate that
23308       it was self-testing that told us so.
23311 Changes in version 0.1.1.6-alpha - 2005-09-09
23312   o Fixes on 0.1.1.5-alpha:
23313     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
23314     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
23315     - Fix bug with tor_memmem finding a match at the end of the string.
23316     - Make unit tests run without segfaulting.
23317     - Resolve some solaris x86 compile warnings.
23318     - Handle duplicate lines in approved-routers files without warning.
23319     - Fix bug where as soon as a server refused any requests due to his
23320       exit policy (e.g. when we ask for localhost and he tells us that's
23321       127.0.0.1 and he won't do it), we decided he wasn't obeying his
23322       exit policy using him for any exits.
23323     - Only do openssl hardware accelerator stuff if openssl version is
23324       at least 0.9.7.
23326   o New controller features/fixes:
23327     - Add a "RESETCONF" command so you can set config options like
23328       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
23329       a config option in the torrc with no value, then it clears it
23330       entirely (rather than setting it to its default).
23331     - Add a "GETINFO config-file" to tell us where torrc is.
23332     - Avoid sending blank lines when GETINFO replies should be empty.
23333     - Add a QUIT command for the controller (for using it manually).
23334     - Fix a bug in SAVECONF that was adding default dirservers and
23335       other redundant entries to the torrc file.
23337   o Start on the new directory design:
23338     - Generate, publish, cache, serve new network-status format.
23339     - Publish individual descriptors (by fingerprint, by "all", and by
23340       "tell me yours").
23341     - Publish client and server recommended versions separately.
23342     - Allow tor_gzip_uncompress() to handle multiple concatenated
23343       compressed strings. Serve compressed groups of router
23344       descriptors. The compression logic here could be more
23345       memory-efficient.
23346     - Distinguish v1 authorities (all currently trusted directories)
23347       from v2 authorities (all trusted directories).
23348     - Change DirServers config line to note which dirs are v1 authorities.
23349     - Add configuration option "V1AuthoritativeDirectory 1" which
23350       moria1, moria2, and tor26 should set.
23351     - Remove option when getting directory cache to see whether they
23352       support running-routers; they all do now. Replace it with one
23353       to see whether caches support v2 stuff.
23355   o New features:
23356     - Dirservers now do their own external reachability testing of each
23357       Tor server, and only list them as running if they've been found to
23358       be reachable. We also send back warnings to the server's logs if
23359       it uploads a descriptor that we already believe is unreachable.
23360     - Implement exit enclaves: if we know an IP address for the
23361       destination, and there's a running Tor server at that address
23362       which allows exit to the destination, then extend the circuit to
23363       that exit first. This provides end-to-end encryption and end-to-end
23364       authentication. Also, if the user wants a .exit address or enclave,
23365       use 4 hops rather than 3, and cannibalize a general circ for it
23366       if you can.
23367     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
23368       controller. Also, rotate dns and cpu workers if the controller
23369       changes options that will affect them; and initialize the dns
23370       worker cache tree whether or not we start out as a server.
23371     - Only upload a new server descriptor when options change, 18
23372       hours have passed, uptime is reset, or bandwidth changes a lot.
23373     - Check [X-]Forwarded-For headers in HTTP requests when generating
23374       log messages. This lets people run dirservers (and caches) behind
23375       Apache but still know which IP addresses are causing warnings.
23377   o Config option changes:
23378     - Replace (Fascist)Firewall* config options with a new
23379       ReachableAddresses option that understands address policies.
23380       For example, "ReachableAddresses *:80,*:443"
23381     - Get rid of IgnoreVersion undocumented config option, and make us
23382       only warn, never exit, when we're running an obsolete version.
23383     - Make MonthlyAccountingStart config option truly obsolete now.
23385   o Fixes on 0.1.0.x:
23386     - Reject ports 465 and 587 in the default exit policy, since
23387       people have started using them for spam too.
23388     - It turns out we couldn't bootstrap a network since we added
23389       reachability detection in 0.1.0.1-rc. Good thing the Tor network
23390       has never gone down. Add an AssumeReachable config option to let
23391       servers and dirservers bootstrap. When we're trying to build a
23392       high-uptime or high-bandwidth circuit but there aren't enough
23393       suitable servers, try being less picky rather than simply failing.
23394     - Our logic to decide if the OR we connected to was the right guy
23395       was brittle and maybe open to a mitm for unverified routers.
23396     - We weren't cannibalizing circuits correctly for
23397       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
23398       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
23399       build those from scratch. This should make hidden services faster.
23400     - Predict required circuits better, with an eye toward making hidden
23401       services faster on the service end.
23402     - Retry streams if the exit node sends back a 'misc' failure. This
23403       should result in fewer random failures. Also, after failing
23404       from resolve failed or misc, reset the num failures, so we give
23405       it a fair shake next time we try.
23406     - Clean up the rendezvous warn log msgs, and downgrade some to info.
23407     - Reduce severity on logs about dns worker spawning and culling.
23408     - When we're shutting down and we do something like try to post a
23409       server descriptor or rendezvous descriptor, don't complain that
23410       we seem to be unreachable. Of course we are, we're shutting down.
23411     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
23412       We don't use them yet, but maybe one day our DNS resolver will be
23413       able to discover them.
23414     - Make ContactInfo mandatory for authoritative directory servers.
23415     - Require server descriptors to list IPv4 addresses -- hostnames
23416       are no longer allowed. This also fixes some potential security
23417       problems with people providing hostnames as their address and then
23418       preferentially resolving them to partition users.
23419     - Change log line for unreachability to explicitly suggest /etc/hosts
23420       as the culprit. Also make it clearer what IP address and ports we're
23421       testing for reachability.
23422     - Put quotes around user-supplied strings when logging so users are
23423       more likely to realize if they add bad characters (like quotes)
23424       to the torrc.
23425     - Let auth dir servers start without specifying an Address config
23426       option.
23427     - Make unit tests (and other invocations that aren't the real Tor)
23428       run without launching listeners, creating subdirectories, and so on.
23431 Changes in version 0.1.1.5-alpha - 2005-08-08
23432   o Bugfixes included in 0.1.0.14.
23434   o Bugfixes on 0.1.0.x:
23435     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
23436       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
23437       it would silently using ignore the 6668.
23440 Changes in version 0.1.0.14 - 2005-08-08
23441   o Bugfixes on 0.1.0.x:
23442       - Fix the other half of the bug with crypto handshakes
23443         (CVE-2005-2643).
23444       - Fix an assert trigger if you send a 'signal term' via the
23445         controller when it's listening for 'event info' messages.
23448 Changes in version 0.1.1.4-alpha - 2005-08-04
23449   o Bugfixes included in 0.1.0.13.
23451   o Features:
23452     - Improve tor_gettimeofday() granularity on windows.
23453     - Make clients regenerate their keys when their IP address changes.
23454     - Implement some more GETINFO goodness: expose helper nodes, config
23455       options, getinfo keys.
23458 Changes in version 0.1.0.13 - 2005-08-04
23459   o Bugfixes on 0.1.0.x:
23460     - Fix a critical bug in the security of our crypto handshakes.
23461     - Fix a size_t underflow in smartlist_join_strings2() that made
23462       it do bad things when you hand it an empty smartlist.
23463     - Fix Windows installer to ship Tor license (thanks to Aphex for
23464       pointing out this oversight) and put a link to the doc directory
23465       in the start menu.
23466     - Explicitly set no-unaligned-access for sparc: it turns out the
23467       new gcc's let you compile broken code, but that doesn't make it
23468       not-broken.
23471 Changes in version 0.1.1.3-alpha - 2005-07-23
23472   o Bugfixes on 0.1.1.2-alpha:
23473     - Fix a bug in handling the controller's "post descriptor"
23474       function.
23475     - Fix several bugs in handling the controller's "extend circuit"
23476       function.
23477     - Fix a bug in handling the controller's "stream status" event.
23478     - Fix an assert failure if we have a controller listening for
23479       circuit events and we go offline.
23480     - Re-allow hidden service descriptors to publish 0 intro points.
23481     - Fix a crash when generating your hidden service descriptor if
23482       you don't have enough intro points already.
23484   o New features on 0.1.1.2-alpha:
23485     - New controller function "getinfo accounting", to ask how
23486       many bytes we've used in this time period.
23487     - Experimental support for helper nodes: a lot of the risk from
23488       a small static adversary comes because users pick new random
23489       nodes every time they rebuild a circuit. Now users will try to
23490       stick to the same small set of entry nodes if they can. Not
23491       enabled by default yet.
23493   o Bugfixes on 0.1.0.12:
23494     - If you're an auth dir server, always publish your dirport,
23495       even if you haven't yet found yourself to be reachable.
23496     - Fix a size_t underflow in smartlist_join_strings2() that made
23497       it do bad things when you hand it an empty smartlist.
23500 Changes in version 0.1.0.12 - 2005-07-18
23501   o New directory servers:
23502       - tor26 has changed IP address.
23504   o Bugfixes on 0.1.0.x:
23505     - Fix a possible double-free in tor_gzip_uncompress().
23506     - When --disable-threads is set, do not search for or link against
23507       pthreads libraries.
23508     - Don't trigger an assert if an authoritative directory server
23509       claims its dirport is 0.
23510     - Fix bug with removing Tor as an NT service: some people were
23511       getting "The service did not return an error." Thanks to Matt
23512       Edman for the fix.
23515 Changes in version 0.1.1.2-alpha - 2005-07-15
23516   o New directory servers:
23517     - tor26 has changed IP address.
23519   o Bugfixes on 0.1.0.x, crashes/leaks:
23520     - Port the servers-not-obeying-their-exit-policies fix from
23521       0.1.0.11.
23522     - Fix an fd leak in start_daemon().
23523     - On Windows, you can't always reopen a port right after you've
23524       closed it. So change retry_listeners() to only close and re-open
23525       ports that have changed.
23526     - Fix a possible double-free in tor_gzip_uncompress().
23528   o Bugfixes on 0.1.0.x, usability:
23529     - When tor_socketpair() fails in Windows, give a reasonable
23530       Windows-style errno back.
23531     - Let people type "tor --install" as well as "tor -install" when
23532       they
23533       want to make it an NT service.
23534     - NT service patch from Matt Edman to improve error messages.
23535     - When the controller asks for a config option with an abbreviated
23536       name, give the full name in our response.
23537     - Correct the man page entry on TrackHostExitsExpire.
23538     - Looks like we were never delivering deflated (i.e. compressed)
23539       running-routers lists, even when asked. Oops.
23540     - When --disable-threads is set, do not search for or link against
23541       pthreads libraries.
23543   o Bugfixes on 0.1.1.x:
23544     - Fix a seg fault with autodetecting which controller version is
23545       being used.
23547   o Features:
23548     - New hidden service descriptor format: put a version in it, and
23549       let people specify introduction/rendezvous points that aren't
23550       in "the directory" (which is subjective anyway).
23551     - Allow the DEBUG controller event to work again. Mark certain log
23552       entries as "don't tell this to controllers", so we avoid cycles.
23555 Changes in version 0.1.0.11 - 2005-06-30
23556   o Bugfixes on 0.1.0.x:
23557     - Fix major security bug: servers were disregarding their
23558       exit policies if clients behaved unexpectedly.
23559     - Make OS X init script check for missing argument, so we don't
23560       confuse users who invoke it incorrectly.
23561     - Fix a seg fault in "tor --hash-password foo".
23562     - The MAPADDRESS control command was broken.
23565 Changes in version 0.1.1.1-alpha - 2005-06-29
23566   o Bugfixes:
23567     - Make OS X init script check for missing argument, so we don't
23568       confuse users who invoke it incorrectly.
23569     - Fix a seg fault in "tor --hash-password foo".
23570     - Fix a possible way to DoS dirservers.
23571     - When we complain that your exit policy implicitly allows local or
23572       private address spaces, name them explicitly so operators can
23573       fix it.
23574     - Make the log message less scary when all the dirservers are
23575       temporarily unreachable.
23576     - We were printing the number of idle dns workers incorrectly when
23577       culling them.
23579   o Features:
23580     - Revised controller protocol (version 1) that uses ascii rather
23581       than binary. Add supporting libraries in python and java so you
23582       can use the controller from your applications without caring how
23583       our protocol works.
23584     - Spiffy new support for crypto hardware accelerators. Can somebody
23585       test this?
23588 Changes in version 0.0.9.10 - 2005-06-16
23589   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
23590     - Refuse relay cells that claim to have a length larger than the
23591       maximum allowed. This prevents a potential attack that could read
23592       arbitrary memory (e.g. keys) from an exit server's process
23593       (CVE-2005-2050).
23596 Changes in version 0.1.0.10 - 2005-06-14
23597   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
23598     libevent before 1.1a.
23601 Changes in version 0.1.0.9-rc - 2005-06-09
23602   o Bugfixes:
23603     - Reset buf->highwater every time buf_shrink() is called, not just on
23604       a successful shrink. This was causing significant memory bloat.
23605     - Fix buffer overflow when checking hashed passwords.
23606     - Security fix: if seeding the RNG on Win32 fails, quit.
23607     - Allow seeding the RNG on Win32 even when you're not running as
23608       Administrator.
23609     - Disable threading on Solaris too. Something is wonky with it,
23610       cpuworkers, and reentrant libs.
23611     - Reenable the part of the code that tries to flush as soon as an
23612       OR outbuf has a full TLS record available. Perhaps this will make
23613       OR outbufs not grow as huge except in rare cases, thus saving lots
23614       of CPU time plus memory.
23615     - Reject malformed .onion addresses rather then passing them on as
23616       normal web requests.
23617     - Adapt patch from Adam Langley: fix possible memory leak in
23618       tor_lookup_hostname().
23619     - Initialize libevent later in the startup process, so the logs are
23620       already established by the time we start logging libevent warns.
23621     - Use correct errno on win32 if libevent fails.
23622     - Check and warn about known-bad/slow libevent versions.
23623     - Pay more attention to the ClientOnly config option.
23624     - Have torctl.in/tor.sh.in check for location of su binary (needed
23625       on FreeBSD)
23626     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
23627       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
23628       HttpProxyAuthenticator
23629     - Stop warning about sigpipes in the logs. We're going to
23630       pretend that getting these occassionally is normal and fine.
23631     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
23632       certain
23633       installer screens; and don't put stuff into StartupItems unless
23634       the user asks you to.
23635     - Require servers that use the default dirservers to have public IP
23636       addresses. We have too many servers that are configured with private
23637       IPs and their admins never notice the log entries complaining that
23638       their descriptors are being rejected.
23639     - Add OSX uninstall instructions. An actual uninstall script will
23640       come later.
23643 Changes in version 0.1.0.8-rc - 2005-05-23
23644   o Bugfixes:
23645     - It turns out that kqueue on OS X 10.3.9 was causing kernel
23646       panics. Disable kqueue on all OS X Tors.
23647     - Fix RPM: remove duplicate line accidentally added to the rpm
23648       spec file.
23649     - Disable threads on openbsd too, since its gethostaddr is not
23650       reentrant either.
23651     - Tolerate libevent 0.8 since it still works, even though it's
23652       ancient.
23653     - Enable building on Red Hat 9.0 again.
23654     - Allow the middle hop of the testing circuit to be running any
23655       version, now that most of them have the bugfix to let them connect
23656       to unknown servers. This will allow reachability testing to work
23657       even when 0.0.9.7-0.0.9.9 become obsolete.
23658     - Handle relay cells with rh.length too large. This prevents
23659       a potential attack that could read arbitrary memory (maybe even
23660       keys) from the exit server's process.
23661     - We screwed up the dirport reachability testing when we don't yet
23662       have a cached version of the directory. Hopefully now fixed.
23663     - Clean up router_load_single_router() (used by the controller),
23664       so it doesn't seg fault on error.
23665     - Fix a minor memory leak when somebody establishes an introduction
23666       point at your Tor server.
23667     - If a socks connection ends because read fails, don't warn that
23668       you're not sending a socks reply back.
23670   o Features:
23671     - Add HttpProxyAuthenticator config option too, that works like
23672       the HttpsProxyAuthenticator config option.
23673     - Encode hashed controller passwords in hex instead of base64,
23674       to make it easier to write controllers.
23677 Changes in version 0.1.0.7-rc - 2005-05-17
23678   o Bugfixes:
23679     - Fix a bug in the OS X package installer that prevented it from
23680       installing on Tiger.
23681     - Fix a script bug in the OS X package installer that made it
23682       complain during installation.
23683     - Find libevent even if it's hiding in /usr/local/ and your
23684       CFLAGS and LDFLAGS don't tell you to look there.
23685     - Be able to link with libevent as a shared library (the default
23686       after 1.0d), even if it's hiding in /usr/local/lib and even
23687       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
23688       assuming you're running gcc. Otherwise fail and give a useful
23689       error message.
23690     - Fix a bug in the RPM packager: set home directory for _tor to
23691       something more reasonable when first installing.
23692     - Free a minor amount of memory that is still reachable on exit.
23695 Changes in version 0.1.0.6-rc - 2005-05-14
23696   o Bugfixes:
23697     - Implement --disable-threads configure option. Disable threads on
23698       netbsd by default, because it appears to have no reentrant resolver
23699       functions.
23700     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
23701       release (1.1) detects and disables kqueue if it's broken.
23702     - Append default exit policy before checking for implicit internal
23703       addresses. Now we don't log a bunch of complaints on startup
23704       when using the default exit policy.
23705     - Some people were putting "Address  " in their torrc, and they had
23706       a buggy resolver that resolved " " to 0.0.0.0. Oops.
23707     - If DataDir is ~/.tor, and that expands to /.tor, then default to
23708       LOCALSTATEDIR/tor instead.
23709     - Fix fragmented-message bug in TorControl.py.
23710     - Resolve a minor bug which would prevent unreachable dirports
23711       from getting suppressed in the published descriptor.
23712     - When the controller gave us a new descriptor, we weren't resolving
23713       it immediately, so Tor would think its address was 0.0.0.0 until
23714       we fetched a new directory.
23715     - Fix an uppercase/lowercase case error in suppressing a bogus
23716       libevent warning on some Linuxes.
23718   o Features:
23719     - Begin scrubbing sensitive strings from logs by default. Turn off
23720       the config option SafeLogging if you need to do debugging.
23721     - Switch to a new buffer management algorithm, which tries to avoid
23722       reallocing and copying quite as much. In first tests it looks like
23723       it uses *more* memory on average, but less cpu.
23724     - First cut at support for "create-fast" cells. Clients can use
23725       these when extending to their first hop, since the TLS already
23726       provides forward secrecy and authentication. Not enabled on
23727       clients yet.
23728     - When dirservers refuse a router descriptor, we now log its
23729       contactinfo, platform, and the poster's IP address.
23730     - Call tor_free_all instead of connections_free_all after forking, to
23731       save memory on systems that need to fork.
23732     - Whine at you if you're a server and you don't set your contactinfo.
23733     - Implement --verify-config command-line option to check if your torrc
23734       is valid without actually launching Tor.
23735     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
23736       rather than just rejecting it.
23739 Changes in version 0.1.0.5-rc - 2005-04-27
23740   o Bugfixes:
23741     - Stop trying to print a null pointer if an OR conn fails because
23742       we didn't like its cert.
23743   o Features:
23744     - Switch our internal buffers implementation to use a ring buffer,
23745       to hopefully improve performance for fast servers a lot.
23746     - Add HttpsProxyAuthenticator support (basic auth only), based
23747       on patch from Adam Langley.
23748     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
23749       the fast servers that have been joining lately.
23750     - Give hidden service accesses extra time on the first attempt,
23751       since 60 seconds is often only barely enough. This might improve
23752       robustness more.
23753     - Improve performance for dirservers: stop re-parsing the whole
23754       directory every time you regenerate it.
23755     - Add more debugging info to help us find the weird dns freebsd
23756       pthreads bug; cleaner debug messages to help track future issues.
23759 Changes in version 0.0.9.9 - 2005-04-23
23760   o Bugfixes on 0.0.9.x:
23761     - If unofficial Tor clients connect and send weird TLS certs, our
23762       Tor server triggers an assert. This release contains a minimal
23763       backport from the broader fix that we put into 0.1.0.4-rc.
23766 Changes in version 0.1.0.4-rc - 2005-04-23
23767   o Bugfixes:
23768     - If unofficial Tor clients connect and send weird TLS certs, our
23769       Tor server triggers an assert. Stop asserting, and start handling
23770       TLS errors better in other situations too.
23771     - When the controller asks us to tell it about all the debug-level
23772       logs, it turns out we were generating debug-level logs while
23773       telling it about them, which turns into a bad loop. Now keep
23774       track of whether you're sending a debug log to the controller,
23775       and don't log when you are.
23776     - Fix the "postdescriptor" feature of the controller interface: on
23777       non-complete success, only say "done" once.
23778   o Features:
23779     - Clients are now willing to load balance over up to 2mB, not 1mB,
23780       of advertised bandwidth capacity.
23781     - Add a NoPublish config option, so you can be a server (e.g. for
23782       testing running Tor servers in other Tor networks) without
23783       publishing your descriptor to the primary dirservers.
23786 Changes in version 0.1.0.3-rc - 2005-04-08
23787   o Improvements on 0.1.0.2-rc:
23788     - Client now retries when streams end early for 'hibernating' or
23789       'resource limit' reasons, rather than failing them.
23790     - More automated handling for dirserver operators:
23791       - Automatically approve nodes running 0.1.0.2-rc or later,
23792         now that the the reachability detection stuff is working.
23793       - Now we allow two unverified servers with the same nickname
23794         but different keys. But if a nickname is verified, only that
23795         nickname+key are allowed.
23796       - If you're an authdirserver connecting to an address:port,
23797         and it's not the OR you were expecting, forget about that
23798         descriptor. If he *was* the one you were expecting, then forget
23799         about all other descriptors for that address:port.
23800       - Allow servers to publish descriptors from 12 hours in the future.
23801         Corollary: only whine about clock skew from the dirserver if
23802         he's a trusted dirserver (since now even verified servers could
23803         have quite wrong clocks).
23804     - Adjust maximum skew and age for rendezvous descriptors: let skew
23805       be 48 hours rather than 90 minutes.
23806     - Efficiency improvements:
23807       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
23808         it much faster to look up a circuit for each relay cell.
23809       - Remove most calls to assert_all_pending_dns_resolves_ok(),
23810         since they're eating our cpu on exit nodes.
23811       - Stop wasting time doing a case insensitive comparison for every
23812         dns name every time we do any lookup. Canonicalize the names to
23813         lowercase and be done with it.
23814     - Start sending 'truncated' cells back rather than destroy cells,
23815       if the circuit closes in front of you. This means we won't have
23816       to abandon partially built circuits.
23817     - Only warn once per nickname from add_nickname_list_to_smartlist
23818       per failure, so an entrynode or exitnode choice that's down won't
23819       yell so much.
23820     - Put a note in the torrc about abuse potential with the default
23821       exit policy.
23822     - Revise control spec and implementation to allow all log messages to
23823       be sent to controller with their severities intact (suggested by
23824       Matt Edman). Update TorControl to handle new log event types.
23825     - Provide better explanation messages when controller's POSTDESCRIPTOR
23826       fails.
23827     - Stop putting nodename in the Platform string in server descriptors.
23828       It doesn't actually help, and it is confusing/upsetting some people.
23830   o Bugfixes on 0.1.0.2-rc:
23831     - We were printing the host mask wrong in exit policies in server
23832       descriptors. This isn't a critical bug though, since we were still
23833       obeying the exit policy internally.
23834     - Fix Tor when compiled with libevent but without pthreads: move
23835       connection_unregister() from _connection_free() to
23836       connection_free().
23837     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
23838       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
23839       when we look through the connection array, we'll find any of the
23840       cpu/dnsworkers. This is no good.
23842   o Bugfixes on 0.0.9.8:
23843     - Fix possible bug on threading platforms (e.g. win32) which was
23844       leaking a file descriptor whenever a cpuworker or dnsworker died.
23845     - When using preferred entry or exit nodes, ignore whether the
23846       circuit wants uptime or capacity. They asked for the nodes, they
23847       get the nodes.
23848     - chdir() to your datadirectory at the *end* of the daemonize process,
23849       not the beginning. This was a problem because the first time you
23850       run tor, if your datadir isn't there, and you have runasdaemon set
23851       to 1, it will try to chdir to it before it tries to create it. Oops.
23852     - Handle changed router status correctly when dirserver reloads
23853       fingerprint file. We used to be dropping all unverified descriptors
23854       right then. The bug was hidden because we would immediately
23855       fetch a directory from another dirserver, which would include the
23856       descriptors we just dropped.
23857     - When we're connecting to an OR and he's got a different nickname/key
23858       than we were expecting, only complain loudly if we're an OP or a
23859       dirserver. Complaining loudly to the OR admins just confuses them.
23860     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
23861       artificially capped at 500kB.
23864 Changes in version 0.0.9.8 - 2005-04-07
23865   o Bugfixes on 0.0.9.x:
23866     - We have a bug that I haven't found yet. Sometimes, very rarely,
23867       cpuworkers get stuck in the 'busy' state, even though the cpuworker
23868       thinks of itself as idle. This meant that no new circuits ever got
23869       established. Here's a workaround to kill any cpuworker that's been
23870       busy for more than 100 seconds.
23873 Changes in version 0.1.0.2-rc - 2005-04-01
23874   o Bugfixes on 0.1.0.1-rc:
23875     - Fixes on reachability detection:
23876       - Don't check for reachability while hibernating.
23877       - If ORPort is reachable but DirPort isn't, still publish the
23878         descriptor, but zero out DirPort until it's found reachable.
23879       - When building testing circs for ORPort testing, use only
23880         high-bandwidth nodes, so fewer circuits fail.
23881       - Complain about unreachable ORPort separately from unreachable
23882         DirPort, so the user knows what's going on.
23883       - Make sure we only conclude ORPort reachability if we didn't
23884         initiate the conn. Otherwise we could falsely conclude that
23885         we're reachable just because we connected to the guy earlier
23886         and he used that same pipe to extend to us.
23887       - Authdirservers shouldn't do ORPort reachability detection,
23888         since they're in clique mode, so it will be rare to find a
23889         server not already connected to them.
23890       - When building testing circuits, always pick middle hops running
23891         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
23892         bug. (This is a kludge; it will go away when 0.0.9.x becomes
23893         obsolete.)
23894       - When we decide we're reachable, actually publish our descriptor
23895         right then.
23896     - Fix bug in redirectstream in the controller.
23897     - Fix the state descriptor strings so logs don't claim edge streams
23898       are in a different state than they actually are.
23899     - Use recent libevent features when possible (this only really affects
23900       win32 and osx right now, because the new libevent with these
23901       features hasn't been released yet). Add code to suppress spurious
23902       libevent log msgs.
23903     - Prevent possible segfault in connection_close_unattached_ap().
23904     - Fix newlines on torrc in win32.
23905     - Improve error msgs when tor-resolve fails.
23907   o Improvements on 0.0.9.x:
23908     - New experimental script tor/contrib/ExerciseServer.py (needs more
23909       work) that uses the controller interface to build circuits and
23910       fetch pages over them. This will help us bootstrap servers that
23911       have lots of capacity but haven't noticed it yet.
23912     - New experimental script tor/contrib/PathDemo.py (needs more work)
23913       that uses the controller interface to let you choose whole paths
23914       via addresses like
23915       "<hostname>.<path,separated by dots>.<length of path>.path"
23916     - When we've connected to an OR and handshaked but didn't like
23917       the result, we were closing the conn without sending destroy
23918       cells back for pending circuits. Now send those destroys.
23921 Changes in version 0.0.9.7 - 2005-04-01
23922   o Bugfixes on 0.0.9.x:
23923     - Fix another race crash bug (thanks to Glenn Fink for reporting).
23924     - Compare identity to identity, not to nickname, when extending to
23925       a router not already in the directory. This was preventing us from
23926       extending to unknown routers. Oops.
23927     - Make sure to create OS X Tor user in <500 range, so we aren't
23928       creating actual system users.
23929     - Note where connection-that-hasn't-sent-end was marked, and fix
23930       a few really loud instances of this harmless bug (it's fixed more
23931       in 0.1.0.x).
23934 Changes in version 0.1.0.1-rc - 2005-03-28
23935   o New features:
23936     - Add reachability testing. Your Tor server will automatically try
23937       to see if its ORPort and DirPort are reachable from the outside,
23938       and it won't upload its descriptor until it decides they are.
23939     - Handle unavailable hidden services better. Handle slow or busy
23940       hidden services better.
23941     - Add support for CONNECTing through https proxies, with "HttpsProxy"
23942       config option.
23943     - New exit policy: accept most low-numbered ports, rather than
23944       rejecting most low-numbered ports.
23945     - More Tor controller support (still experimental). See
23946       http://tor.eff.org/doc/control-spec.txt for all the new features,
23947       including signals to emulate unix signals from any platform;
23948       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
23949       closestream; closecircuit; etc.
23950     - Make nt services work and start on startup on win32 (based on
23951       patch by Matt Edman).
23952     - Add a new AddressMap config directive to rewrite incoming socks
23953       addresses. This lets you, for example, declare an implicit
23954       required exit node for certain sites.
23955     - Add a new TrackHostExits config directive to trigger addressmaps
23956       for certain incoming socks addresses -- for sites that break when
23957       your exit keeps changing (based on patch by Mike Perry).
23958     - Redo the client-side dns cache so it's just an addressmap too.
23959     - Notice when our IP changes, and reset stats/uptime/reachability.
23960     - When an application is using socks5, give him the whole variety of
23961       potential socks5 responses (connect refused, host unreachable, etc),
23962       rather than just "success" or "failure".
23963     - A more sane version numbering system. See
23964       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
23965     - New contributed script "exitlist": a simple python script to
23966       parse directories and find Tor nodes that exit to listed
23967       addresses/ports.
23968     - New contributed script "privoxy-tor-toggle" to toggle whether
23969       Privoxy uses Tor. Seems to be configured for Debian by default.
23970     - Report HTTP reasons to client when getting a response from directory
23971       servers -- so you can actually know what went wrong.
23972     - New config option MaxAdvertisedBandwidth which lets you advertise
23973       a low bandwidthrate (to not attract as many circuits) while still
23974       allowing a higher bandwidthrate in reality.
23976   o Robustness/stability fixes:
23977     - Make Tor use Niels Provos's libevent instead of its current
23978       poll-but-sometimes-select mess. This will let us use faster async
23979       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
23980       on Windows too.
23981     - pthread support now too. This was forced because when we forked,
23982       we ended up wasting a lot of duplicate ram over time. Also switch
23983       to foo_r versions of some library calls to allow reentry and
23984       threadsafeness.
23985     - Better handling for heterogeneous / unreliable nodes:
23986       - Annotate circuits w/ whether they aim to contain high uptime nodes
23987         and/or high capacity nodes. When building circuits, choose
23988         appropriate nodes.
23989       - This means that every single node in an intro rend circuit,
23990         not just the last one, will have a minimum uptime.
23991       - New config option LongLivedPorts to indicate application streams
23992         that will want high uptime circuits.
23993       - Servers reset uptime when a dir fetch entirely fails. This
23994         hopefully reflects stability of the server's network connectivity.
23995       - If somebody starts his tor server in Jan 2004 and then fixes his
23996         clock, don't make his published uptime be a year.
23997       - Reset published uptime when you wake up from hibernation.
23998     - Introduce a notion of 'internal' circs, which are chosen without
23999       regard to the exit policy of the last hop. Intro and rendezvous
24000       circs must be internal circs, to avoid leaking information. Resolve
24001       and connect streams can use internal circs if they want.
24002     - New circuit pooling algorithm: make sure to have enough circs around
24003       to satisfy any predicted ports, and also make sure to have 2 internal
24004       circs around if we've required internal circs lately (and with high
24005       uptime if we've seen that lately too).
24006     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
24007       which describes how often we retry making new circuits if current
24008       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
24009       how long we're willing to make use of an already-dirty circuit.
24010     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
24011       circ as necessary, if there are any completed ones lying around
24012       when we try to launch one.
24013     - Make hidden services try to establish a rendezvous for 30 seconds,
24014       rather than for n (where n=3) attempts to build a circuit.
24015     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
24016       "ShutdownWaitLength".
24017     - Try to be more zealous about calling connection_edge_end when
24018       things go bad with edge conns in connection.c.
24019     - Revise tor-spec to add more/better stream end reasons.
24020     - Revise all calls to connection_edge_end to avoid sending "misc",
24021       and to take errno into account where possible.
24023   o Bug fixes:
24024     - Fix a race condition that can trigger an assert, when we have a
24025       pending create cell and an OR connection fails right then.
24026     - Fix several double-mark-for-close bugs, e.g. where we were finding
24027       a conn for a cell even if that conn is already marked for close.
24028     - Make sequence of log messages when starting on win32 with no config
24029       file more reasonable.
24030     - When choosing an exit node for a new non-internal circ, don't take
24031       into account whether it'll be useful for any pending x.onion
24032       addresses -- it won't.
24033     - Turn addr_policy_compare from a tristate to a quadstate; this should
24034       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
24035       for google.com" problem.
24036     - Make "platform" string in descriptor more accurate for Win32 servers,
24037       so it's not just "unknown platform".
24038     - Fix an edge case in parsing config options (thanks weasel).
24039       If they say "--" on the commandline, it's not an option.
24040     - Reject odd-looking addresses at the client (e.g. addresses that
24041       contain a colon), rather than having the server drop them because
24042       they're malformed.
24043     - tor-resolve requests were ignoring .exit if there was a working circuit
24044       they could use instead.
24045     - REUSEADDR on normal platforms means you can rebind to the port
24046       right after somebody else has let it go. But REUSEADDR on win32
24047       means to let you bind to the port _even when somebody else
24048       already has it bound_! So, don't do that on Win32.
24049     - Change version parsing logic: a version is "obsolete" if it is not
24050       recommended and (1) there is a newer recommended version in the
24051       same series, or (2) there are no recommended versions in the same
24052       series, but there are some recommended versions in a newer series.
24053       A version is "new" if it is newer than any recommended version in
24054       the same series.
24055     - Stop most cases of hanging up on a socks connection without sending
24056       the socks reject.
24058   o Helpful fixes:
24059     - Require BandwidthRate to be at least 20kB/s for servers.
24060     - When a dirserver causes you to give a warn, mention which dirserver
24061       it was.
24062     - New config option DirAllowPrivateAddresses for authdirservers.
24063       Now by default they refuse router descriptors that have non-IP or
24064       private-IP addresses.
24065     - Stop publishing socksport in the directory, since it's not
24066       actually meant to be public. For compatibility, publish a 0 there
24067       for now.
24068     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
24069       smart" value, that is low for servers and high for clients.
24070     - If our clock jumps forward by 100 seconds or more, assume something
24071       has gone wrong with our network and abandon all not-yet-used circs.
24072     - Warn when exit policy implicitly allows local addresses.
24073     - If we get an incredibly skewed timestamp from a dirserver mirror
24074       that isn't a verified OR, don't warn -- it's probably him that's
24075       wrong.
24076     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
24077       cookies to disk and doesn't log each web request to disk. (Thanks
24078       to Brett Carrington for pointing this out.)
24079     - When a client asks us for a dir mirror and we don't have one,
24080       launch an attempt to get a fresh one.
24081     - If we're hibernating and we get a SIGINT, exit immediately.
24082     - Add --with-dmalloc ./configure option, to track memory leaks.
24083     - And try to free all memory on closing, so we can detect what
24084       we're leaking.
24085     - Cache local dns resolves correctly even when they're .exit
24086       addresses.
24087     - Give a better warning when some other server advertises an
24088       ORPort that is actually an apache running ssl.
24089     - Add "opt hibernating 1" to server descriptor to make it clearer
24090       whether the server is hibernating.
24093 Changes in version 0.0.9.6 - 2005-03-24
24094   o Bugfixes on 0.0.9.x (crashes and asserts):
24095     - Add new end stream reasons to maintainance branch. Fix bug where
24096       reason (8) could trigger an assert. Prevent bug from recurring.
24097     - Apparently win32 stat wants paths to not end with a slash.
24098     - Fix assert triggers in assert_cpath_layer_ok(), where we were
24099       blowing away the circuit that conn->cpath_layer points to, then
24100       checking to see if the circ is well-formed. Backport check to make
24101       sure we dont use the cpath on a closed connection.
24102     - Prevent circuit_resume_edge_reading_helper() from trying to package
24103       inbufs for marked-for-close streams.
24104     - Don't crash on hup if your options->address has become unresolvable.
24105     - Some systems (like OS X) sometimes accept() a connection and tell
24106       you the remote host is 0.0.0.0:0. If this happens, due to some
24107       other mis-features, we get confused; so refuse the conn for now.
24109   o Bugfixes on 0.0.9.x (other):
24110     - Fix harmless but scary "Unrecognized content encoding" warn message.
24111     - Add new stream error reason: TORPROTOCOL reason means "you are not
24112       speaking a version of Tor I understand; say bye-bye to your stream."
24113     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
24114       into the future, now that we are more tolerant of skew. This
24115       resolves a bug where a Tor server would refuse to cache a directory
24116       because all the directories it gets are too far in the future;
24117       yet the Tor server never logs any complaints about clock skew.
24118     - Mac packaging magic: make man pages useable, and do not overwrite
24119       existing torrc files.
24120     - Make OS X log happily to /var/log/tor/tor.log
24123 Changes in version 0.0.9.5 - 2005-02-22
24124   o Bugfixes on 0.0.9.x:
24125     - Fix an assert race at exit nodes when resolve requests fail.
24126     - Stop picking unverified dir mirrors--it only leads to misery.
24127     - Patch from Matt Edman to make NT services work better. Service
24128       support is still not compiled into the executable by default.
24129     - Patch from Dmitri Bely so the Tor service runs better under
24130       the win32 SYSTEM account.
24131     - Make tor-resolve actually work (?) on Win32.
24132     - Fix a sign bug when getrlimit claims to have 4+ billion
24133       file descriptors available.
24134     - Stop refusing to start when bandwidthburst == bandwidthrate.
24135     - When create cells have been on the onion queue more than five
24136       seconds, just send back a destroy and take them off the list.
24139 Changes in version 0.0.9.4 - 2005-02-03
24140   o Bugfixes on 0.0.9:
24141     - Fix an assert bug that took down most of our servers: when
24142       a server claims to have 1 GB of bandwidthburst, don't
24143       freak out.
24144     - Don't crash as badly if we have spawned the max allowed number
24145       of dnsworkers, or we're out of file descriptors.
24146     - Block more file-sharing ports in the default exit policy.
24147     - MaxConn is now automatically set to the hard limit of max
24148       file descriptors we're allowed (ulimit -n), minus a few for
24149       logs, etc.
24150     - Give a clearer message when servers need to raise their
24151       ulimit -n when they start running out of file descriptors.
24152     - SGI Compatibility patches from Jan Schaumann.
24153     - Tolerate a corrupt cached directory better.
24154     - When a dirserver hasn't approved your server, list which one.
24155     - Go into soft hibernation after 95% of the bandwidth is used,
24156       not 99%. This is especially important for daily hibernators who
24157       have a small accounting max. Hopefully it will result in fewer
24158       cut connections when the hard hibernation starts.
24159     - Load-balance better when using servers that claim more than
24160       800kB/s of capacity.
24161     - Make NT services work (experimental, only used if compiled in).
24164 Changes in version 0.0.9.3 - 2005-01-21
24165   o Bugfixes on 0.0.9:
24166     - Backport the cpu use fixes from main branch, so busy servers won't
24167       need as much processor time.
24168     - Work better when we go offline and then come back, or when we
24169       run Tor at boot before the network is up. We do this by
24170       optimistically trying to fetch a new directory whenever an
24171       application request comes in and we think we're offline -- the
24172       human is hopefully a good measure of when the network is back.
24173     - Backport some minimal hidserv bugfixes: keep rend circuits open as
24174       long as you keep using them; actually publish hidserv descriptors
24175       shortly after they change, rather than waiting 20-40 minutes.
24176     - Enable Mac startup script by default.
24177     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
24178     - When you update AllowUnverifiedNodes or FirewallPorts via the
24179       controller's setconf feature, we were always appending, never
24180       resetting.
24181     - When you update HiddenServiceDir via setconf, it was screwing up
24182       the order of reading the lines, making it fail.
24183     - Do not rewrite a cached directory back to the cache; otherwise we
24184       will think it is recent and not fetch a newer one on startup.
24185     - Workaround for webservers that lie about Content-Encoding: Tor
24186       now tries to autodetect compressed directories and compression
24187       itself. This lets us Proxypass dir fetches through apache.
24190 Changes in version 0.0.9.2 - 2005-01-04
24191   o Bugfixes on 0.0.9 (crashes and asserts):
24192     - Fix an assert on startup when the disk is full and you're logging
24193       to a file.
24194     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
24195       style address, then we'd crash.
24196     - Fix an assert trigger when the running-routers string we get from
24197       a dirserver is broken.
24198     - Make worker threads start and run on win32. Now win32 servers
24199       may work better.
24200     - Bandaid (not actually fix, but now it doesn't crash) an assert
24201       where the dns worker dies mysteriously and the main Tor process
24202       doesn't remember anything about the address it was resolving.
24204   o Bugfixes on 0.0.9 (Win32):
24205     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
24206       name out of the warning/assert messages.
24207     - Fix a superficial "unhandled error on read" bug on win32.
24208     - The win32 installer no longer requires a click-through for our
24209       license, since our Free Software license grants rights but does not
24210       take any away.
24211     - Win32: When connecting to a dirserver fails, try another one
24212       immediately. (This was already working for non-win32 Tors.)
24213     - Stop trying to parse $HOME on win32 when hunting for default
24214       DataDirectory.
24215     - Make tor-resolve.c work on win32 by calling network_init().
24217   o Bugfixes on 0.0.9 (other):
24218     - Make 0.0.9.x build on Solaris again.
24219     - Due to a fencepost error, we were blowing away the \n when reporting
24220       confvalue items in the controller. So asking for multiple config
24221       values at once couldn't work.
24222     - When listing circuits that are pending on an opening OR connection,
24223       if we're an OR we were listing circuits that *end* at us as
24224       being pending on every listener, dns/cpu worker, etc. Stop that.
24225     - Dirservers were failing to create 'running-routers' or 'directory'
24226       strings if we had more than some threshold of routers. Fix them so
24227       they can handle any number of routers.
24228     - Fix a superficial "Duplicate mark for close" bug.
24229     - Stop checking for clock skew for OR connections, even for servers.
24230     - Fix a fencepost error that was chopping off the last letter of any
24231       nickname that is the maximum allowed nickname length.
24232     - Update URLs in log messages so they point to the new website.
24233     - Fix a potential problem in mangling server private keys while
24234       writing to disk (not triggered yet, as far as we know).
24235     - Include the licenses for other free software we include in Tor,
24236       now that we're shipping binary distributions more regularly.
24239 Changes in version 0.0.9.1 - 2004-12-15
24240   o Bugfixes on 0.0.9:
24241     - Make hibernation actually work.
24242     - Make HashedControlPassword config option work.
24243     - When we're reporting event circuit status to a controller,
24244       don't use the stream status code.
24247 Changes in version 0.0.9 - 2004-12-12
24248   o Cleanups:
24249     - Clean up manpage and torrc.sample file.
24250     - Clean up severities and text of log warnings.
24251   o Mistakes:
24252     - Make servers trigger an assert when they enter hibernation.
24255 Changes in version 0.0.9rc7 - 2004-12-08
24256   o Bugfixes on 0.0.9rc:
24257     - Fix a stack-trashing crash when an exit node begins hibernating.
24258     - Avoid looking at unallocated memory while considering which
24259       ports we need to build circuits to cover.
24260     - Stop a sigpipe: when an 'end' cell races with eof from the app,
24261       we shouldn't hold-open-until-flush if the eof arrived first.
24262     - Fix a bug with init_cookie_authentication() in the controller.
24263     - When recommending new-format log lines, if the upper bound is
24264       LOG_ERR, leave it implicit.
24266   o Bugfixes on 0.0.8.1:
24267     - Fix a whole slew of memory leaks.
24268     - Fix isspace() and friends so they still make Solaris happy
24269       but also so they don't trigger asserts on win32.
24270     - Fix parse_iso_time on platforms without strptime (eg win32).
24271     - win32: tolerate extra "readable" events better.
24272     - win32: when being multithreaded, leave parent fdarray open.
24273     - Make unit tests work on win32.
24276 Changes in version 0.0.9rc6 - 2004-12-06
24277   o Bugfixes on 0.0.9pre:
24278     - Clean up some more integer underflow opportunities (not exploitable
24279       we think).
24280     - While hibernating, hup should not regrow our listeners.
24281     - Send an end to the streams we close when we hibernate, rather
24282       than just chopping them off.
24283     - React to eof immediately on non-open edge connections.
24285   o Bugfixes on 0.0.8.1:
24286     - Calculate timeout for waiting for a connected cell from the time
24287       we sent the begin cell, not from the time the stream started. If
24288       it took a long time to establish the circuit, we would time out
24289       right after sending the begin cell.
24290     - Fix router_compare_addr_to_addr_policy: it was not treating a port
24291       of * as always matching, so we were picking reject *:* nodes as
24292       exit nodes too. Oops.
24294   o Features:
24295     - New circuit building strategy: keep a list of ports that we've
24296       used in the past 6 hours, and always try to have 2 circuits open
24297       or on the way that will handle each such port. Seed us with port
24298       80 so web users won't complain that Tor is "slow to start up".
24299     - Make kill -USR1 dump more useful stats about circuits.
24300     - When warning about retrying or giving up, print the address, so
24301       the user knows which one it's talking about.
24302     - If you haven't used a clean circuit in an hour, throw it away,
24303       just to be on the safe side. (This means after 6 hours a totally
24304       unused Tor client will have no circuits open.)
24307 Changes in version 0.0.9rc5 - 2004-12-01
24308   o Bugfixes on 0.0.8.1:
24309     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
24310     - Let resolve conns retry/expire also, rather than sticking around
24311       forever.
24312     - If we are using select, make sure we stay within FD_SETSIZE.
24314   o Bugfixes on 0.0.9pre:
24315     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
24316       but doesn't seem to be currently; thanks to Ilja van Sprundel for
24317       finding it.
24318     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
24319       instead. Impose minima and maxima for all *Period options; impose
24320       even tighter maxima for fetching if we are a caching dirserver.
24321       Clip rather than rejecting.
24322     - Fetch cached running-routers from servers that serve it (that is,
24323       authdirservers and servers running 0.0.9rc5-cvs or later.)
24325   o Features:
24326     - Accept *:706 (silc) in default exit policy.
24327     - Implement new versioning format for post 0.1.
24328     - Support "foo.nickname.exit" addresses, to let Alice request the
24329       address "foo" as viewed by exit node "nickname". Based on a patch
24330       by Geoff Goodell.
24331     - Make tor --version --version dump the cvs Id of every file.
24334 Changes in version 0.0.9rc4 - 2004-11-28
24335   o Bugfixes on 0.0.8.1:
24336     - Make windows sockets actually non-blocking (oops), and handle
24337       win32 socket errors better.
24339   o Bugfixes on 0.0.9rc1:
24340     - Actually catch the -USR2 signal.
24343 Changes in version 0.0.9rc3 - 2004-11-25
24344   o Bugfixes on 0.0.8.1:
24345     - Flush the log file descriptor after we print "Tor opening log file",
24346       so we don't see those messages days later.
24348   o Bugfixes on 0.0.9rc1:
24349     - Make tor-resolve work again.
24350     - Avoid infinite loop in tor-resolve if tor hangs up on it.
24351     - Fix an assert trigger for clients/servers handling resolves.
24354 Changes in version 0.0.9rc2 - 2004-11-24
24355   o Bugfixes on 0.0.9rc1:
24356     - I broke socks5 support while fixing the eof bug.
24357     - Allow unitless bandwidths and intervals; they default to bytes
24358       and seconds.
24359     - New servers don't start out hibernating; they are active until
24360       they run out of bytes, so they have a better estimate of how
24361       long it takes, and so their operators can know they're working.
24364 Changes in version 0.0.9rc1 - 2004-11-23
24365   o Bugfixes on 0.0.8.1:
24366     - Finally fix a bug that's been plaguing us for a year:
24367       With high load, circuit package window was reaching 0. Whenever
24368       we got a circuit-level sendme, we were reading a lot on each
24369       socket, but only writing out a bit. So we would eventually reach
24370       eof. This would be noticed and acted on even when there were still
24371       bytes sitting in the inbuf.
24372     - When poll() is interrupted, we shouldn't believe the revents values.
24374   o Bugfixes on 0.0.9pre6:
24375     - Fix hibernate bug that caused pre6 to be broken.
24376     - Don't keep rephist info for routers that haven't had activity for
24377       24 hours. (This matters now that clients have keys, since we track
24378       them too.)
24379     - Never call close_temp_logs while validating log options.
24380     - Fix backslash-escaping on tor.sh.in and torctl.in.
24382   o Features:
24383     - Implement weekly/monthly/daily accounting: now you specify your
24384       hibernation properties by
24385       AccountingMax N bytes|KB|MB|GB|TB
24386       AccountingStart day|week|month [day] HH:MM
24387         Defaults to "month 1 0:00".
24388     - Let bandwidth and interval config options be specified as 5 bytes,
24389       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
24390     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
24391       get back to normal.)
24392     - If your requested entry or exit node has advertised bandwidth 0,
24393       pick it anyway.
24394     - Be more greedy about filling up relay cells -- we try reading again
24395       once we've processed the stuff we read, in case enough has arrived
24396       to fill the last cell completely.
24397     - Apply NT service patch from Osamu Fujino. Still needs more work.
24400 Changes in version 0.0.9pre6 - 2004-11-15
24401   o Bugfixes on 0.0.8.1:
24402     - Fix assert failure on malformed socks4a requests.
24403     - Use identity comparison, not nickname comparison, to choose which
24404       half of circuit-ID-space each side gets to use. This is needed
24405       because sometimes we think of a router as a nickname, and sometimes
24406       as a hex ID, and we can't predict what the other side will do.
24407     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
24408       write() call will fail and we handle it there.
24409     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
24410       and smartlist_len, which are two major profiling offenders.
24412   o Bugfixes on 0.0.9pre5:
24413     - Fix a bug in read_all that was corrupting config files on windows.
24414     - When we're raising the max number of open file descriptors to
24415       'unlimited', don't log that we just raised it to '-1'.
24416     - Include event code with events, as required by control-spec.txt.
24417     - Don't give a fingerprint when clients do --list-fingerprint:
24418       it's misleading, because it will never be the same again.
24419     - Stop using strlcpy in tor_strndup, since it was slowing us
24420       down a lot.
24421     - Remove warn on startup about missing cached-directory file.
24422     - Make kill -USR1 work again.
24423     - Hibernate if we start tor during the "wait for wakeup-time" phase
24424       of an accounting interval. Log our hibernation plans better.
24425     - Authoritative dirservers now also cache their directory, so they
24426       have it on start-up.
24428   o Features:
24429     - Fetch running-routers; cache running-routers; compress
24430       running-routers; serve compressed running-routers.z
24431     - Add NSI installer script contributed by J Doe.
24432     - Commit VC6 and VC7 workspace/project files.
24433     - Commit a tor.spec for making RPM files, with help from jbash.
24434     - Add contrib/torctl.in contributed by Glenn Fink.
24435     - Implement the control-spec's SAVECONF command, to write your
24436       configuration to torrc.
24437     - Get cookie authentication for the controller closer to working.
24438     - Include control-spec.txt in the tarball.
24439     - When set_conf changes our server descriptor, upload a new copy.
24440       But don't upload it too often if there are frequent changes.
24441     - Document authentication config in man page, and document signals
24442       we catch.
24443     - Clean up confusing parts of man page and torrc.sample.
24444     - Make expand_filename handle ~ and ~username.
24445     - Use autoconf to enable largefile support where necessary. Use
24446       ftello where available, since ftell can fail at 2GB.
24447     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
24448       log more informatively.
24449     - Give a slightly more useful output for "tor -h".
24450     - Refuse application socks connections to port 0.
24451     - Check clock skew for verified servers, but allow unverified
24452       servers and clients to have any clock skew.
24453     - Break DirFetchPostPeriod into:
24454       - DirFetchPeriod for fetching full directory,
24455       - StatusFetchPeriod for fetching running-routers,
24456       - DirPostPeriod for posting server descriptor,
24457       - RendPostPeriod for posting hidden service descriptors.
24458     - Make sure the hidden service descriptors are at a random offset
24459       from each other, to hinder linkability.
24462 Changes in version 0.0.9pre5 - 2004-11-09
24463   o Bugfixes on 0.0.9pre4:
24464     - Fix a seg fault in unit tests (doesn't affect main program).
24465     - Fix an assert bug where a hidden service provider would fail if
24466       the first hop of his rendezvous circuit was down.
24467     - Hidden service operators now correctly handle version 1 style
24468       INTRODUCE1 cells (nobody generates them still, so not a critical
24469       bug).
24470     - If do_hup fails, actually notice.
24471     - Handle more errnos from accept() without closing the listener.
24472       Some OpenBSD machines were closing their listeners because
24473       they ran out of file descriptors.
24474     - Send resolve cells to exit routers that are running a new
24475       enough version of the resolve code to work right.
24476     - Better handling of winsock includes on non-MSV win32 compilers.
24477     - Some people had wrapped their tor client/server in a script
24478       that would restart it whenever it died. This did not play well
24479       with our "shut down if your version is obsolete" code. Now people
24480       don't fetch a new directory if their local cached version is
24481       recent enough.
24482     - Make our autogen.sh work on ksh as well as bash.
24484   o Major Features:
24485     - Hibernation: New config option "AccountingMaxKB" lets you
24486       set how many KBytes per month you want to allow your server to
24487       consume. Rather than spreading those bytes out evenly over the
24488       month, we instead hibernate for some of the month and pop up
24489       at a deterministic time, work until the bytes are consumed, then
24490       hibernate again. Config option "MonthlyAccountingStart" lets you
24491       specify which day of the month your billing cycle starts on.
24492     - Control interface: a separate program can now talk to your
24493       client/server over a socket, and get/set config options, receive
24494       notifications of circuits and streams starting/finishing/dying,
24495       bandwidth used, etc. The next step is to get some GUIs working.
24496       Let us know if you want to help out. See doc/control-spec.txt .
24497     - Ship a contrib/tor-control.py as an example script to interact
24498       with the control port.
24499     - "tor --hash-password zzyxz" will output a salted password for
24500       use in authenticating to the control interface.
24501     - New log format in config:
24502       "Log minsev[-maxsev] stdout|stderr|syslog" or
24503       "Log minsev[-maxsev] file /var/foo"
24505   o Minor Features:
24506     - DirPolicy config option, to let people reject incoming addresses
24507       from their dirserver.
24508     - "tor --list-fingerprint" will list your identity key fingerprint
24509       and then exit.
24510     - Add "pass" target for RedirectExit, to make it easier to break
24511       out of a sequence of RedirectExit rules.
24512     - Clients now generate a TLS cert too, in preparation for having
24513       them act more like real nodes.
24514     - Ship src/win32/ in the tarball, so people can use it to build.
24515     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
24516       is broken.
24517     - New "router-status" line in directory, to better bind each verified
24518       nickname to its identity key.
24519     - Deprecate unofficial config option abbreviations, and abbreviations
24520       not on the command line.
24521     - Add a pure-C tor-resolve implementation.
24522     - Use getrlimit and friends to ensure we can reach MaxConn (currently
24523       1024) file descriptors.
24525   o Code security improvements, inspired by Ilja:
24526     - Replace sprintf with snprintf. (I think they were all safe, but
24527       hey.)
24528     - Replace strcpy/strncpy with strlcpy in more places.
24529     - Avoid strcat; use snprintf or strlcat instead.
24530     - snprintf wrapper with consistent (though not C99) overflow behavior.
24533 Changes in version 0.0.9pre4 - 2004-10-17
24534   o Bugfixes on 0.0.9pre3:
24535     - If the server doesn't specify an exit policy, use the real default
24536       exit policy, not reject *:*.
24537     - Ignore fascistfirewall when uploading/downloading hidden service
24538       descriptors, since we go through Tor for those; and when using
24539       an HttpProxy, since we assume it can reach them all.
24540     - When looking for an authoritative dirserver, use only the ones
24541       configured at boot. Don't bother looking in the directory.
24542     - The rest of the fix for get_default_conf_file() on older win32.
24543     - Make 'Routerfile' config option obsolete.
24545   o Features:
24546     - New 'MyFamily nick1,...' config option for a server to
24547       specify other servers that shouldn't be used in the same circuit
24548       with it. Only believed if nick1 also specifies us.
24549     - New 'NodeFamily nick1,nick2,...' config option for a client to
24550       specify nodes that it doesn't want to use in the same circuit.
24551     - New 'Redirectexit pattern address:port' config option for a
24552       server to redirect exit connections, e.g. to a local squid.
24555 Changes in version 0.0.9pre3 - 2004-10-13
24556   o Bugfixes on 0.0.8.1:
24557     - Better torrc example lines for dirbindaddress and orbindaddress.
24558     - Improved bounds checking on parsed ints (e.g. config options and
24559       the ones we find in directories.)
24560     - Better handling of size_t vs int, so we're more robust on 64
24561       bit platforms.
24562     - Fix the rest of the bug where a newly started OR would appear
24563       as unverified even after we've added his fingerprint and hupped
24564       the dirserver.
24565     - Fix a bug from 0.0.7: when read() failed on a stream, we would
24566       close it without sending back an end. So 'connection refused'
24567       would simply be ignored and the user would get no response.
24569   o Bugfixes on 0.0.9pre2:
24570     - Serving the cached-on-disk directory to people is bad. We now
24571       provide no directory until we've fetched a fresh one.
24572     - Workaround for bug on windows where cached-directories get crlf
24573       corruption.
24574     - Make get_default_conf_file() work on older windows too.
24575     - If we write a *:* exit policy line in the descriptor, don't write
24576       any more exit policy lines.
24578   o Features:
24579     - Use only 0.0.9pre1 and later servers for resolve cells.
24580     - Make the dirservers file obsolete.
24581       - Include a dir-signing-key token in directories to tell the
24582         parsing entity which key is being used to sign.
24583       - Remove the built-in bulky default dirservers string.
24584       - New config option "Dirserver %s:%d [fingerprint]", which can be
24585         repeated as many times as needed. If no dirservers specified,
24586         default to moria1,moria2,tor26.
24587     - Make moria2 advertise a dirport of 80, so people behind firewalls
24588       will be able to get a directory.
24589     - Http proxy support
24590       - Dirservers translate requests for http://%s:%d/x to /x
24591       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
24592         be routed through this host.
24593       - Clients ask for /tor/x rather than /x for new enough dirservers.
24594         This way we can one day coexist peacefully with apache.
24595       - Clients specify a "Host: %s%d" http header, to be compatible
24596         with more proxies, and so running squid on an exit node can work.
24599 Changes in version 0.0.8.1 - 2004-10-13
24600   o Bugfixes:
24601     - Fix a seg fault that can be triggered remotely for Tor
24602       clients/servers with an open dirport.
24603     - Fix a rare assert trigger, where routerinfos for entries in
24604       our cpath would expire while we're building the path.
24605     - Fix a bug in OutboundBindAddress so it (hopefully) works.
24606     - Fix a rare seg fault for people running hidden services on
24607       intermittent connections.
24608     - Fix a bug in parsing opt keywords with objects.
24609     - Fix a stale pointer assert bug when a stream detaches and
24610       reattaches.
24611     - Fix a string format vulnerability (probably not exploitable)
24612       in reporting stats locally.
24613     - Fix an assert trigger: sometimes launching circuits can fail
24614       immediately, e.g. because too many circuits have failed recently.
24615     - Fix a compile warning on 64 bit platforms.
24618 Changes in version 0.0.9pre2 - 2004-10-03
24619   o Bugfixes:
24620     - Make fetching a cached directory work for 64-bit platforms too.
24621     - Make zlib.h a required header, not an optional header.
24624 Changes in version 0.0.9pre1 - 2004-10-01
24625   o Bugfixes:
24626     - Stop using separate defaults for no-config-file and
24627       empty-config-file. Now you have to explicitly turn off SocksPort,
24628       if you don't want it open.
24629     - Fix a bug in OutboundBindAddress so it (hopefully) works.
24630     - Improve man page to mention more of the 0.0.8 features.
24631     - Fix a rare seg fault for people running hidden services on
24632       intermittent connections.
24633     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
24634       happier.
24635     - Fix more dns related bugs: send back resolve_failed and end cells
24636       more reliably when the resolve fails, rather than closing the
24637       circuit and then trying to send the cell. Also attach dummy resolve
24638       connections to a circuit *before* calling dns_resolve(), to fix
24639       a bug where cached answers would never be sent in RESOLVED cells.
24640     - When we run out of disk space, or other log writing error, don't
24641       crash. Just stop logging to that log and continue.
24642     - We were starting to daemonize before we opened our logs, so if
24643       there were any problems opening logs, we would complain to stderr,
24644       which wouldn't work, and then mysteriously exit.
24645     - Fix a rare bug where sometimes a verified OR would connect to us
24646       before he'd uploaded his descriptor, which would cause us to
24647       assign conn->nickname as though he's unverified. Now we look through
24648       the fingerprint list to see if he's there.
24649     - Fix a rare assert trigger, where routerinfos for entries in
24650       our cpath would expire while we're building the path.
24652   o Features:
24653     - Clients can ask dirservers for /dir.z to get a compressed version
24654       of the directory. Only works for servers running 0.0.9, of course.
24655     - Make clients cache directories and use them to seed their router
24656       lists at startup. This means clients have a datadir again.
24657     - Configuration infrastructure support for warning on obsolete
24658       options.
24659     - Respond to content-encoding headers by trying to uncompress as
24660       appropriate.
24661     - Reply with a deflated directory when a client asks for "dir.z".
24662       We could use allow-encodings instead, but allow-encodings isn't
24663       specified in HTTP 1.0.
24664     - Raise the max dns workers from 50 to 100.
24665     - Discourage people from setting their dirfetchpostperiod more often
24666       than once per minute.
24667     - Protect dirservers from overzealous descriptor uploading -- wait
24668       10 seconds after directory gets dirty, before regenerating.
24671 Changes in version 0.0.8 - 2004-08-25
24672   o Port it to SunOS 5.9 / Athena
24675 Changes in version 0.0.8rc2 - 2004-08-20
24676   o Make it compile on cygwin again.
24677   o When picking unverified routers, skip those with low uptime and/or
24678     low bandwidth, depending on what properties you care about.
24681 Changes in version 0.0.8rc1 - 2004-08-18
24682   o Changes from 0.0.7.3:
24683     - Bugfixes:
24684       - Fix assert triggers: if the other side returns an address 0.0.0.0,
24685         don't put it into the client dns cache.
24686       - If a begin failed due to exit policy, but we believe the IP address
24687         should have been allowed, switch that router to exitpolicy reject *:*
24688         until we get our next directory.
24689     - Features:
24690       - Clients choose nodes proportional to advertised bandwidth.
24691       - Avoid using nodes with low uptime as introduction points.
24692       - Handle servers with dynamic IP addresses: don't replace
24693         options->Address with the resolved one at startup, and
24694         detect our address right before we make a routerinfo each time.
24695       - 'FascistFirewall' option to pick dirservers and ORs on specific
24696         ports; plus 'FirewallPorts' config option to tell FascistFirewall
24697         which ports are open. (Defaults to 80,443)
24698       - Be more aggressive about trying to make circuits when the network
24699         has changed (e.g. when you unsuspend your laptop).
24700       - Check for time skew on http headers; report date in response to
24701         "GET /".
24702       - If the entrynode config line has only one node, don't pick it as
24703         an exitnode.
24704       - Add strict{entry|exit}nodes config options. If set to 1, then
24705         we refuse to build circuits that don't include the specified entry
24706         or exit nodes.
24707       - OutboundBindAddress config option, to bind to a specific
24708         IP address for outgoing connect()s.
24709       - End truncated log entries (e.g. directories) with "[truncated]".
24711   o Patches to 0.0.8preX:
24712     - Bugfixes:
24713       - Patches to compile and run on win32 again (maybe)?
24714       - Fix crash when looking for ~/.torrc with no $HOME set.
24715       - Fix a race bug in the unit tests.
24716       - Handle verified/unverified name collisions better when new
24717         routerinfo's arrive in a directory.
24718       - Sometimes routers were getting entered into the stats before
24719         we'd assigned their identity_digest. Oops.
24720       - Only pick and establish intro points after we've gotten a
24721         directory.
24722     - Features:
24723       - AllowUnverifiedNodes config option to let circuits choose no-name
24724         routers in entry,middle,exit,introduction,rendezvous positions.
24725         Allow middle and rendezvous positions by default.
24726       - Add a man page for tor-resolve.
24729 Changes in version 0.0.7.3 - 2004-08-12
24730   o Stop dnsworkers from triggering an assert failure when you
24731     ask them to resolve the host "".
24734 Changes in version 0.0.8pre3 - 2004-08-09
24735   o Changes from 0.0.7.2:
24736     - Allow multiple ORs with same nickname in routerlist -- now when
24737       people give us one identity key for a nickname, then later
24738       another, we don't constantly complain until the first expires.
24739     - Remember used bandwidth (both in and out), and publish 15-minute
24740       snapshots for the past day into our descriptor.
24741     - You can now fetch $DIRURL/running-routers to get just the
24742       running-routers line, not the whole descriptor list. (But
24743       clients don't use this yet.)
24744     - When people mistakenly use Tor as an http proxy, point them
24745       at the tor-doc.html rather than the INSTALL.
24746     - Remove our mostly unused -- and broken -- hex_encode()
24747       function. Use base16_encode() instead. (Thanks to Timo Lindfors
24748       for pointing out this bug.)
24749     - Rotate onion keys every 12 hours, not every 2 hours, so we have
24750       fewer problems with people using the wrong key.
24751     - Change the default exit policy to reject the default edonkey,
24752       kazaa, gnutella ports.
24753     - Add replace_file() to util.[ch] to handle win32's rename().
24755   o Changes from 0.0.8preX:
24756     - Fix two bugs in saving onion keys to disk when rotating, so
24757       hopefully we'll get fewer people using old onion keys.
24758     - Fix an assert error that was making SocksPolicy not work.
24759     - Be willing to expire routers that have an open dirport -- it's
24760       just the authoritative dirservers we want to not forget.
24761     - Reject tor-resolve requests for .onion addresses early, so we
24762       don't build a whole rendezvous circuit and then fail.
24763     - When you're warning a server that he's unverified, don't cry
24764       wolf unpredictably.
24765     - Fix a race condition: don't try to extend onto a connection
24766       that's still handshaking.
24767     - For servers in clique mode, require the conn to be open before
24768       you'll choose it for your path.
24769     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
24770       end relay cell, etc.
24771     - Measure bandwidth capacity over the last 24 hours, not just 12
24772     - Bugfix: authoritative dirservers were making and signing a new
24773       directory for each client, rather than reusing the cached one.
24776 Changes in version 0.0.8pre2 - 2004-08-04
24777   o Changes from 0.0.7.2:
24778     - Security fixes:
24779       - Check directory signature _before_ you decide whether you're
24780         you're running an obsolete version and should exit.
24781       - Check directory signature _before_ you parse the running-routers
24782         list to decide who's running or verified.
24783     - Bugfixes and features:
24784       - Check return value of fclose while writing to disk, so we don't
24785         end up with broken files when servers run out of disk space.
24786       - Log a warning if the user uses an unsafe socks variant, so people
24787         are more likely to learn about privoxy or socat.
24788       - Dirservers now include RFC1123-style dates in the HTTP headers,
24789         which one day we will use to better detect clock skew.
24791   o Changes from 0.0.8pre1:
24792     - Make it compile without warnings again on win32.
24793     - Log a warning if you're running an unverified server, to let you
24794       know you might want to get it verified.
24795     - Only pick a default nickname if you plan to be a server.
24798 Changes in version 0.0.8pre1 - 2004-07-23
24799   o Bugfixes:
24800     - Made our unit tests compile again on OpenBSD 3.5, and tor
24801       itself compile again on OpenBSD on a sparc64.
24802     - We were neglecting milliseconds when logging on win32, so
24803       everything appeared to happen at the beginning of each second.
24805   o Protocol changes:
24806     - 'Extend' relay cell payloads now include the digest of the
24807       intended next hop's identity key. Now we can verify that we're
24808       extending to the right router, and also extend to routers we
24809       hadn't heard of before.
24811   o Features:
24812     - Tor nodes can now act as relays (with an advertised ORPort)
24813       without being manually verified by the dirserver operators.
24814       - Uploaded descriptors of unverified routers are now accepted
24815         by the dirservers, and included in the directory.
24816       - Verified routers are listed by nickname in the running-routers
24817         list; unverified routers are listed as "$<fingerprint>".
24818       - We now use hash-of-identity-key in most places rather than
24819         nickname or addr:port, for improved security/flexibility.
24820       - To avoid Sybil attacks, paths still use only verified servers.
24821         But now we have a chance to play around with hybrid approaches.
24822       - Nodes track bandwidth usage to estimate capacity (not used yet).
24823       - ClientOnly option for nodes that never want to become servers.
24824     - Directory caching.
24825       - "AuthoritativeDir 1" option for the official dirservers.
24826       - Now other nodes (clients and servers) will cache the latest
24827         directory they've pulled down.
24828       - They can enable their DirPort to serve it to others.
24829       - Clients will pull down a directory from any node with an open
24830         DirPort, and check the signature/timestamp correctly.
24831       - Authoritative dirservers now fetch directories from other
24832         authdirservers, to stay better synced.
24833       - Running-routers list tells who's down also, along with noting
24834         if they're verified (listed by nickname) or unverified (listed
24835         by hash-of-key).
24836       - Allow dirservers to serve running-router list separately.
24837         This isn't used yet.
24838     - ORs connect-on-demand to other ORs
24839       - If you get an extend cell to an OR you're not connected to,
24840         connect, handshake, and forward the create cell.
24841       - The authoritative dirservers stay connected to everybody,
24842         and everybody stays connected to 0.0.7 servers, but otherwise
24843         clients/servers expire unused connections after 5 minutes.
24844     - When servers get a sigint, they delay 30 seconds (refusing new
24845       connections) then exit. A second sigint causes immediate exit.
24846     - File and name management:
24847       - Look for .torrc if no CONFDIR "torrc" is found.
24848       - If no datadir is defined, then choose, make, and secure ~/.tor
24849         as datadir.
24850       - If torrc not found, exitpolicy reject *:*.
24851       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
24852       - If no nickname is defined, derive default from hostname.
24853       - Rename secret key files, e.g. identity.key -> secret_id_key,
24854         to discourage people from mailing their identity key to tor-ops.
24855     - Refuse to build a circuit before the directory has arrived --
24856       it won't work anyway, since you won't know the right onion keys
24857       to use.
24858     - Try other dirservers immediately if the one you try is down. This
24859       should tolerate down dirservers better now.
24860     - Parse tor version numbers so we can do an is-newer-than check
24861       rather than an is-in-the-list check.
24862     - New socks command 'resolve', to let us shim gethostbyname()
24863       locally.
24864       - A 'tor_resolve' script to access the socks resolve functionality.
24865       - A new socks-extensions.txt doc file to describe our
24866         interpretation and extensions to the socks protocols.
24867     - Add a ContactInfo option, which gets published in descriptor.
24868     - Publish OR uptime in descriptor (and thus in directory) too.
24869     - Write tor version at the top of each log file
24870     - New docs in the tarball:
24871       - tor-doc.html.
24872       - Document that you should proxy your SSL traffic too.
24875 Changes in version 0.0.7.2 - 2004-07-07
24876   o A better fix for the 0.0.0.0 problem, that will hopefully
24877     eliminate the remaining related assertion failures.
24880 Changes in version 0.0.7.1 - 2004-07-04
24881   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
24882     since internally we use 0.0.0.0 to signify "not yet resolved".
24885 Changes in version 0.0.7 - 2004-06-07
24886   o Updated the man page to reflect the new features.
24889 Changes in version 0.0.7rc2 - 2004-06-06
24890   o Changes from 0.0.7rc1:
24891     - Make it build on Win32 again.
24892   o Changes from 0.0.6.2:
24893     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
24894       settings too.
24897 Changes in version 0.0.7rc1 - 2004-06-02
24898   o Bugfixes:
24899     - On sighup, we were adding another log without removing the first
24900       one. So log messages would get duplicated n times for n sighups.
24901     - Several cases of using a connection after we'd freed it. The
24902       problem was that connections that are pending resolve are in both
24903       the pending_resolve tree, and also the circuit's resolving_streams
24904       list. When you want to remove one, you must remove it from both.
24905     - Fix a double-mark-for-close where an end cell arrived for a
24906       resolving stream, and then the resolve failed.
24907     - Check directory signatures based on name of signer, not on whom
24908       we got the directory from. This will let us cache directories more
24909       easily.
24910   o Features:
24911     - Crank up some of our constants to handle more users.
24914 Changes in version 0.0.7pre1 - 2004-06-02
24915   o Fixes for crashes and other obnoxious bugs:
24916     - Fix an epipe bug: sometimes when directory connections failed
24917       to connect, we would give them a chance to flush before closing
24918       them.
24919     - When we detached from a circuit because of resolvefailed, we
24920       would immediately try the same circuit twice more, and then
24921       give up on the resolve thinking we'd tried three different
24922       exit nodes.
24923     - Limit the number of intro circuits we'll attempt to build for a
24924       hidden service per 15-minute period.
24925     - Check recommended-software string *early*, before actually parsing
24926       the directory. Thus we can detect an obsolete version and exit,
24927       even if the new directory format doesn't parse.
24928   o Fixes for security bugs:
24929     - Remember which nodes are dirservers when you startup, and if a
24930       random OR enables his dirport, don't automatically assume he's
24931       a trusted dirserver.
24932   o Other bugfixes:
24933     - Directory connections were asking the wrong poll socket to
24934       start writing, and not asking themselves to start writing.
24935     - When we detached from a circuit because we sent a begin but
24936       didn't get a connected, we would use it again the first time;
24937       but after that we would correctly switch to a different one.
24938     - Stop warning when the first onion decrypt attempt fails; they
24939       will sometimes legitimately fail now that we rotate keys.
24940     - Override unaligned-access-ok check when $host_cpu is ia64 or
24941       arm. Apparently they allow it but the kernel whines.
24942     - Dirservers try to reconnect periodically too, in case connections
24943       have failed.
24944     - Fix some memory leaks in directory servers.
24945     - Allow backslash in Win32 filenames.
24946     - Made Tor build complain-free on FreeBSD, hopefully without
24947       breaking other BSD builds. We'll see.
24948   o Features:
24949     - Doxygen markup on all functions and global variables.
24950     - Make directory functions update routerlist, not replace it. So
24951       now directory disagreements are not so critical a problem.
24952     - Remove the upper limit on number of descriptors in a dirserver's
24953       directory (not that we were anywhere close).
24954     - Allow multiple logfiles at different severity ranges.
24955     - Allow *BindAddress to specify ":port" rather than setting *Port
24956       separately. Allow multiple instances of each BindAddress config
24957       option, so you can bind to multiple interfaces if you want.
24958     - Allow multiple exit policy lines, which are processed in order.
24959       Now we don't need that huge line with all the commas in it.
24960     - Enable accept/reject policies on SOCKS connections, so you can bind
24961       to 0.0.0.0 but still control who can use your OP.
24964 Changes in version 0.0.6.2 - 2004-05-16
24965   o Our integrity-checking digest was checking only the most recent cell,
24966     not the previous cells like we'd thought.
24967     Thanks to Stefan Mark for finding the flaw!
24970 Changes in version 0.0.6.1 - 2004-05-06
24971   o Fix two bugs in our AES counter-mode implementation (this affected
24972     onion-level stream encryption, but not TLS-level). It turns
24973     out we were doing something much more akin to a 16-character
24974     polyalphabetic cipher. Oops.
24975     Thanks to Stefan Mark for finding the flaw!
24976   o Retire moria3 as a directory server, and add tor26 as a directory
24977     server.
24980 Changes in version 0.0.6 - 2004-05-02
24981   [version bump only]
24984 Changes in version 0.0.6rc4 - 2004-05-01
24985   o Update the built-in dirservers list to use the new directory format
24986   o Fix a rare seg fault: if a node offering a hidden service attempts
24987     to build a circuit to Alice's rendezvous point and fails before it
24988     reaches the last hop, it retries with a different circuit, but
24989     then dies.
24990   o Handle windows socket errors correctly.
24993 Changes in version 0.0.6rc3 - 2004-04-28
24994   o Don't expire non-general excess circuits (if we had enough
24995     circuits open, we were expiring rendezvous circuits -- even
24996     when they had a stream attached. oops.)
24997   o Fetch randomness from /dev/urandom better (not via fopen/fread)
24998   o Better debugging for tls errors
24999   o Some versions of openssl have an SSL_pending function that erroneously
25000     returns bytes when there is a non-application record pending.
25001   o Set Content-Type on the directory and hidserv descriptor.
25002   o Remove IVs from cipher code, since AES-ctr has none.
25003   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
25004     o We were using an array of length zero in a few places.
25005     o win32's gethostbyname can't resolve an IP to an IP.
25006     o win32's close can't close a socket.
25009 Changes in version 0.0.6rc2 - 2004-04-26
25010   o Fix a bug where we were closing tls connections intermittently.
25011     It turns out openssl keeps its errors around -- so if an error
25012     happens, and you don't ask about it, and then another openssl
25013     operation happens and succeeds, and you ask if there was an error,
25014     it tells you about the first error. Fun fun.
25015   o Fix a bug that's been lurking since 27 may 03 (!)
25016     When passing back a destroy cell, we would use the wrong circ id.
25017     'Mostly harmless', but still worth fixing.
25018   o Since we don't support truncateds much, don't bother sending them;
25019     just close the circ.
25020   o check for <machine/limits.h> so we build on NetBSD again (I hope).
25021   o don't crash if a conn that sent a begin has suddenly lost its circuit
25022     (this was quite rare).
25025 Changes in version 0.0.6rc1 - 2004-04-25
25026   o We now rotate link (tls context) keys and onion keys.
25027   o CREATE cells now include oaep padding, so you can tell
25028     if you decrypted them correctly.
25029   o Add bandwidthburst to server descriptor.
25030   o Directories now say which dirserver signed them.
25031   o Use a tor_assert macro that logs failed assertions too.
25034 Changes in version 0.0.6pre5 - 2004-04-18
25035   o changes from 0.0.6pre4:
25036     - make tor build on broken freebsd 5.2 installs
25037     - fix a failed assert when you try an intro point, get a nack, and try
25038       a second one and it works.
25039     - when alice uses a port that the hidden service doesn't accept,
25040       it now sends back an end cell (denied by exit policy). otherwise
25041       alice would just have to wait to time out.
25042     - fix another rare bug: when we had tried all the intro
25043       points for a hidden service, we fetched the descriptor
25044       again, but we left our introcirc thinking it had already
25045       sent an intro, so it kept waiting for a response...
25046     - bugfix: when you sleep your hidden-service laptop, as soon
25047       as it wakes up it tries to upload a service descriptor, but
25048       socketpair fails for some reason (localhost not up yet?).
25049       now we simply give up on that upload, and we'll try again later.
25050       i'd still like to find the bug though.
25051     - if an intro circ waiting for an ack dies before getting one, then
25052       count it as a nack
25053     - we were reusing stale service descriptors and refetching usable
25054       ones. oops.
25057 Changes in version 0.0.6pre4 - 2004-04-14
25058   o changes from 0.0.6pre3:
25059     - when bob fails to connect to the rendezvous point, and his
25060       circ didn't fail because of the rendezvous point itself, then
25061       he retries a couple of times
25062     - we expire introduction and rendezvous circs more thoroughly
25063       (sometimes they were hanging around forever)
25064     - we expire unattached rendezvous streams that have been around
25065       too long (they were sticking around forever).
25066     - fix a measly fencepost error that was crashing everybody with
25067       a strict glibc.
25070 Changes in version 0.0.6pre3 - 2004-04-14
25071   o changes from 0.0.6pre2:
25072     - make hup work again
25073     - fix some memory leaks for dirservers
25074     - allow more skew in rendezvous descriptor timestamps, to help
25075       handle people like blanu who don't know what time it is
25076     - normal circs are 3 hops, but some rend/intro circs are 4, if
25077       the initiator doesn't get to choose the last hop
25078     - send acks for introductions, so alice can know whether to try
25079       again
25080     - bob publishes intro points more correctly
25081   o changes from 0.0.5:
25082     - fix an assert trigger that's been plaguing us since the days
25083       of 0.0.2prexx (thanks weasel!)
25084     - retry stream correctly when we fail to connect because of
25085       exit-policy-reject (should try another) or can't-resolve-address
25086       (also should try another, because dns on random internet servers
25087       is flaky).
25088     - when we hup a dirserver and we've *removed* a server from the
25089       approved-routers list, now we remove that server from the
25090       in-memory directories too
25093 Changes in version 0.0.6pre2 - 2004-04-08
25094   o We fixed our base32 implementation. Now it works on all architectures.
25097 Changes in version 0.0.6pre1 - 2004-04-08
25098   o Features:
25099     - Hidden services and rendezvous points are implemented. Go to
25100       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
25101       hidden services. (This only works via a socks4a proxy such as
25102       Privoxy, and currently it's quite slow.)
25105 Changes in version 0.0.5 - 2004-03-30
25106   [version bump only]
25109 Changes in version 0.0.5rc3 - 2004-03-29
25110   o Install torrc as torrc.sample -- we no longer clobber your
25111     torrc. (Woo!)
25112   o Re-enable recommendedversion checking (we broke it in rc2, oops)
25113   o Add in a 'notice' log level for things the operator should hear
25114     but that aren't warnings
25117 Changes in version 0.0.5rc2 - 2004-03-29
25118   o Hold socks connection open until reply is flushed (if possible)
25119   o Make exit nodes resolve IPs to IPs immediately, rather than asking
25120     the dns farm to do it.
25121   o Fix c99 aliasing warnings in rephist.c
25122   o Don't include server descriptors that are older than 24 hours in the
25123     directory.
25124   o Give socks 'reject' replies their whole 15s to attempt to flush,
25125     rather than seeing the 60s timeout and assuming the flush had failed.
25126   o Clean automake droppings from the cvs repository
25129 Changes in version 0.0.5rc1 - 2004-03-28
25130   o Fix mangled-state bug in directory fetching (was causing sigpipes).
25131   o Only build circuits after we've fetched the directory: clients were
25132     using only the directory servers before they'd fetched a directory.
25133     This also means longer startup time; so it goes.
25134   o Fix an assert trigger where an OP would fail to handshake, and we'd
25135     expect it to have a nickname.
25136   o Work around a tsocks bug: do a socks reject when AP connection dies
25137     early, else tsocks goes into an infinite loop.
25140 Changes in version 0.0.4 - 2004-03-26
25141   o When connecting to a dirserver or OR and the network is down,
25142     we would crash.
25145 Changes in version 0.0.3 - 2004-03-26
25146   o Warn and fail if server chose a nickname with illegal characters
25147   o Port to Solaris and Sparc:
25148     - include missing header fcntl.h
25149     - have autoconf find -lsocket -lnsl automatically
25150     - deal with hardware word alignment
25151     - make uname() work (solaris has a different return convention)
25152     - switch from using signal() to sigaction()
25153   o Preliminary work on reputation system:
25154     - Keep statistics on success/fail of connect attempts; they're published
25155       by kill -USR1 currently.
25156     - Add a RunTesting option to try to learn link state by creating test
25157       circuits, even when SocksPort is off.
25158     - Remove unused open circuits when there are too many.
25161 Changes in version 0.0.2 - 2004-03-19
25162     - Include strlcpy and strlcat for safer string ops
25163     - define INADDR_NONE so we compile (but still not run) on solaris
25166 Changes in version 0.0.2pre27 - 2004-03-14
25167   o Bugfixes:
25168     - Allow internal tor networks (we were rejecting internal IPs,
25169       now we allow them if they're set explicitly).
25170     - And fix a few endian issues.
25173 Changes in version 0.0.2pre26 - 2004-03-14
25174   o New features:
25175     - If a stream times out after 15s without a connected cell, don't
25176       try that circuit again: try a new one.
25177     - Retry streams at most 4 times. Then give up.
25178     - When a dirserver gets a descriptor from an unknown router, it
25179       logs its fingerprint (so the dirserver operator can choose to
25180       accept it even without mail from the server operator).
25181     - Inform unapproved servers when we reject their descriptors.
25182     - Make tor build on Windows again. It works as a client, who knows
25183       about as a server.
25184     - Clearer instructions in the torrc for how to set up a server.
25185     - Be more efficient about reading fd's when our global token bucket
25186       (used for rate limiting) becomes empty.
25187   o Bugfixes:
25188     - Stop asserting that computers always go forward in time. It's
25189       simply not true.
25190     - When we sent a cell (e.g. destroy) and then marked an OR connection
25191       expired, we might close it before finishing a flush if the other
25192       side isn't reading right then.
25193     - Don't allow dirservers to start if they haven't defined
25194       RecommendedVersions
25195     - We were caching transient dns failures. Oops.
25196     - Prevent servers from publishing an internal IP as their address.
25197     - Address a strcat vulnerability in circuit.c
25200 Changes in version 0.0.2pre25 - 2004-03-04
25201   o New features:
25202     - Put the OR's IP in its router descriptor, not its fqdn. That way
25203       we'll stop being stalled by gethostbyname for nodes with flaky dns,
25204       e.g. poblano.
25205   o Bugfixes:
25206     - If the user typed in an address that didn't resolve, the server
25207       crashed.
25210 Changes in version 0.0.2pre24 - 2004-03-03
25211   o Bugfixes:
25212     - Fix an assertion failure in dns.c, where we were trying to dequeue
25213       a pending dns resolve even if it wasn't pending
25214     - Fix a spurious socks5 warning about still trying to write after the
25215       connection is finished.
25216     - Hold certain marked_for_close connections open until they're finished
25217       flushing, rather than losing bytes by closing them too early.
25218     - Correctly report the reason for ending a stream
25219     - Remove some duplicate calls to connection_mark_for_close
25220     - Put switch_id and start_daemon earlier in the boot sequence, so it
25221       will actually try to chdir() to options.DataDirectory
25222     - Make 'make test' exit(1) if a test fails; fix some unit tests
25223     - Make tor fail when you use a config option it doesn't know about,
25224       rather than warn and continue.
25225     - Make --version work
25226     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
25229 Changes in version 0.0.2pre23 - 2004-02-29
25230   o New features:
25231     - Print a statement when the first circ is finished, so the user
25232       knows it's working.
25233     - If a relay cell is unrecognized at the end of the circuit,
25234       send back a destroy. (So attacks to mutate cells are more
25235       clearly thwarted.)
25236     - New config option 'excludenodes' to avoid certain nodes for circuits.
25237     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
25238       so you can collect coredumps there.
25239  o Bugfixes:
25240     - Fix a bug in tls flushing where sometimes data got wedged and
25241       didn't flush until more data got sent. Hopefully this bug was
25242       a big factor in the random delays we were seeing.
25243     - Make 'connected' cells include the resolved IP, so the client
25244       dns cache actually gets populated.
25245     - Disallow changing from ORPort=0 to ORPort>0 on hup.
25246     - When we time-out on a stream and detach from the circuit, send an
25247       end cell down it first.
25248     - Only warn about an unknown router (in exitnodes, entrynodes,
25249       excludenodes) after we've fetched a directory.
25252 Changes in version 0.0.2pre22 - 2004-02-26
25253   o New features:
25254     - Servers publish less revealing uname information in descriptors.
25255     - More memory tracking and assertions, to crash more usefully when
25256       errors happen.
25257     - If the default torrc isn't there, just use some default defaults.
25258       Plus provide an internal dirservers file if they don't have one.
25259     - When the user tries to use Tor as an http proxy, give them an http
25260       501 failure explaining that we're a socks proxy.
25261     - Dump a new router.desc on hup, to help confused people who change
25262       their exit policies and then wonder why router.desc doesn't reflect
25263       it.
25264     - Clean up the generic tor.sh init script that we ship with.
25265   o Bugfixes:
25266     - If the exit stream is pending on the resolve, and a destroy arrives,
25267       then the stream wasn't getting removed from the pending list. I
25268       think this was the one causing recent server crashes.
25269     - Use a more robust poll on OSX 10.3, since their poll is flaky.
25270     - When it couldn't resolve any dirservers, it was useless from then on.
25271       Now it reloads the RouterFile (or default dirservers) if it has no
25272       dirservers.
25273     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
25274       many users don't even *have* a /usr/local/sbin/.
25277 Changes in version 0.0.2pre21 - 2004-02-18
25278   o New features:
25279     - There's a ChangeLog file that actually reflects the changelog.
25280     - There's a 'torify' wrapper script, with an accompanying
25281       tor-tsocks.conf, that simplifies the process of using tsocks for
25282       tor. It even has a man page.
25283     - The tor binary gets installed to sbin rather than bin now.
25284     - Retry streams where the connected cell hasn't arrived in 15 seconds
25285     - Clean up exit policy handling -- get the default out of the torrc,
25286       so we can update it without forcing each server operator to fix
25287       his/her torrc.
25288     - Allow imaps and pop3s in default exit policy
25289   o Bugfixes:
25290     - Prevent picking middleman nodes as the last node in the circuit
25293 Changes in version 0.0.2pre20 - 2004-01-30
25294   o New features:
25295     - We now have a deb package, and it's in debian unstable. Go to
25296       it, apt-getters. :)
25297     - I've split the TotalBandwidth option into BandwidthRate (how many
25298       bytes per second you want to allow, long-term) and
25299       BandwidthBurst (how many bytes you will allow at once before the cap
25300       kicks in). This better token bucket approach lets you, say, set
25301       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
25302       performance while not exceeding your monthly bandwidth quota.
25303     - Push out a tls record's worth of data once you've got it, rather
25304       than waiting until you've read everything waiting to be read. This
25305       may improve performance by pipelining better. We'll see.
25306     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
25307       from failed circuits (if they haven't been connected yet) and attach
25308       to new ones.
25309     - Expire old streams that haven't managed to connect. Some day we'll
25310       have them reattach to new circuits instead.
25312   o Bugfixes:
25313     - Fix several memory leaks that were causing servers to become bloated
25314       after a while.
25315     - Fix a few very rare assert triggers. A few more remain.
25316     - Setuid to User _before_ complaining about running as root.
25319 Changes in version 0.0.2pre19 - 2004-01-07
25320   o Bugfixes:
25321     - Fix deadlock condition in dns farm. We were telling a child to die by
25322       closing the parent's file descriptor to him. But newer children were
25323       inheriting the open file descriptor from the parent, and since they
25324       weren't closing it, the socket never closed, so the child never read
25325       eof, so he never knew to exit. Similarly, dns workers were holding
25326       open other sockets, leading to all sorts of chaos.
25327     - New cleaner daemon() code for forking and backgrounding.
25328     - If you log to a file, it now prints an entry at the top of the
25329       logfile so you know it's working.
25330     - The onionskin challenge length was 30 bytes longer than necessary.
25331     - Started to patch up the spec so it's not quite so out of date.
25334 Changes in version 0.0.2pre18 - 2004-01-02
25335   o Bugfixes:
25336     - Fix endian issues with the 'integrity' field in the relay header.
25337     - Fix a potential bug where connections in state
25338       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
25341 Changes in version 0.0.2pre17 - 2003-12-30
25342   o Bugfixes:
25343     - Made --debuglogfile (or any second log file, actually) work.
25344     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
25345       adversary could force us into an infinite loop.
25347   o Features:
25348     - Each onionskin handshake now includes a hash of the computed key,
25349       to prove the server's identity and help perfect forward secrecy.
25350     - Changed cell size from 256 to 512 bytes (working toward compatibility
25351       with MorphMix).
25352     - Changed cell length to 2 bytes, and moved it to the relay header.
25353     - Implemented end-to-end integrity checking for the payloads of
25354       relay cells.
25355     - Separated streamid from 'recognized' (otherwise circuits will get
25356       messed up when we try to have streams exit from the middle). We
25357       use the integrity-checking to confirm that a cell is addressed to
25358       this hop.
25359     - Randomize the initial circid and streamid values, so an adversary who
25360       breaks into a node can't learn how many circuits or streams have
25361       been made so far.
25364 Changes in version 0.0.2pre16 - 2003-12-14
25365   o Bugfixes:
25366     - Fixed a bug that made HUP trigger an assert
25367     - Fixed a bug where a circuit that immediately failed wasn't being
25368       counted as a failed circuit in counting retries.
25370   o Features:
25371     - Now we close the circuit when we get a truncated cell: otherwise we're
25372       open to an anonymity attack where a bad node in the path truncates
25373       the circuit and then we open streams at him.
25374     - Add port ranges to exit policies
25375     - Add a conservative default exit policy
25376     - Warn if you're running tor as root
25377     - on HUP, retry OR connections and close/rebind listeners
25378     - options.EntryNodes: try these nodes first when picking the first node
25379     - options.ExitNodes: if your best choices happen to include any of
25380       your preferred exit nodes, you choose among just those preferred
25381       exit nodes.
25382     - options.ExcludedNodes: nodes that are never picked in path building
25385 Changes in version 0.0.2pre15 - 2003-12-03
25386   o Robustness and bugfixes:
25387     - Sometimes clients would cache incorrect DNS resolves, which would
25388       really screw things up.
25389     - An OP that goes offline would slowly leak all its sockets and stop
25390       working.
25391     - A wide variety of bugfixes in exit node selection, exit policy
25392       handling, and processing pending streams when a new circuit is
25393       established.
25394     - Pick nodes for a path only from those the directory says are up
25395     - Choose randomly from all running dirservers, not always the first one
25396     - Increase allowed http header size for directory fetch.
25397     - Stop writing to stderr (if we're daemonized it will be closed).
25398     - Enable -g always, so cores will be more useful to me.
25399     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
25401   o Documentation:
25402     - Wrote a man page. It lists commonly used options.
25404   o Configuration:
25405     - Change default loglevel to warn.
25406     - Make PidFile default to null rather than littering in your CWD.
25407     - OnionRouter config option is now obsolete. Instead it just checks
25408       ORPort>0.
25409     - Moved to a single unified torrc file for both clients and servers.
25412 Changes in version 0.0.2pre14 - 2003-11-29
25413   o Robustness and bugfixes:
25414     - Force the admin to make the DataDirectory himself
25415       - to get ownership/permissions right
25416       - so clients no longer make a DataDirectory and then never use it
25417     - fix bug where a client who was offline for 45 minutes would never
25418       pull down a directory again
25419     - fix (or at least hide really well) the dns assert bug that was
25420       causing server crashes
25421     - warnings and improved robustness wrt clockskew for certs
25422     - use the native daemon(3) to daemonize, when available
25423     - exit if bind() fails
25424     - exit if neither socksport nor orport is defined
25425     - include our own tor_timegm (Win32 doesn't have its own)
25426     - bugfix for win32 with lots of connections
25427     - fix minor bias in PRNG
25428     - make dirserver more robust to corrupt cached directory
25430   o Documentation:
25431     - Wrote the design document (woo)
25433   o Circuit building and exit policies:
25434     - Circuits no longer try to use nodes that the directory has told them
25435       are down.
25436     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
25437       bitcounts (18.0.0.0/8).
25438     - Make AP connections standby for a circuit if no suitable circuit
25439       exists, rather than failing
25440     - Circuits choose exit node based on addr/port, exit policies, and
25441       which AP connections are standing by
25442     - Bump min pathlen from 2 to 3
25443     - Relay end cells have a payload to describe why the stream ended.
25444     - If the stream failed because of exit policy, try again with a new
25445       circuit.
25446     - Clients have a dns cache to remember resolved addresses.
25447     - Notice more quickly when we have no working circuits
25449   o Configuration:
25450     - APPort is now called SocksPort
25451     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
25452       where to bind
25453     - RecommendedVersions is now a config variable rather than
25454       hardcoded (for dirservers)
25455     - Reloads config on HUP
25456     - Usage info on -h or --help
25457     - If you set User and Group config vars, it'll setu/gid to them.
25460 Changes in version 0.0.2pre13 - 2003-10-19
25461   o General stability:
25462     - SSL_write no longer fails when it returns WANTWRITE and the number
25463       of bytes in the buf has changed by the next SSL_write call.
25464     - Fix segfault fetching directory when network is down
25465     - Fix a variety of minor memory leaks
25466     - Dirservers reload the fingerprints file on HUP, so I don't have
25467       to take down the network when I approve a new router
25468     - Default server config file has explicit Address line to specify fqdn
25470   o Buffers:
25471     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
25472     - Make listener connections not ever alloc bufs
25474   o Autoconf improvements:
25475     - don't clobber an external CFLAGS in ./configure
25476     - Make install now works
25477     - create var/lib/tor on make install
25478     - autocreate a tor.sh initscript to help distribs
25479     - autocreate the torrc and sample-server-torrc with correct paths
25481   o Log files and Daemonizing now work:
25482     - If --DebugLogFile is specified, log to it at -l debug
25483     - If --LogFile is specified, use it instead of commandline
25484     - If --RunAsDaemon is set, tor forks and backgrounds on startup