forward-port changelog from 0.4.5.5-rc
[tor.git] / ChangeLog
blobe181c7dd3982315f70d6af39f954d7d4e45ed2a1
1 Changes in version 0.4.5.5-rc - 2021-02-01
2   Tor 0.4.5.5-rc is the third release candidate in its series. We're
3   coming closer and closer to a stable release series. This release
4   fixes an annoyance with address detection code, and somewhat mitigates
5   an ongoing denial-of-service attack.
7   We anticipate no more code changes between this and the stable
8   release, though of course that could change.
10   o Major feature (exit):
11     - Re-entry into the network is now denied at the Exit level to all
12       relays' ORPorts and authorities' ORPorts and DirPorts. This change
13       should help mitgate a set of denial-of-service attacks. Closes
14       ticket 2667.
16   o Minor bugfixes (relay, configuration):
17     - Don't attempt to discover our address (IPv4 or IPv6) if no ORPort
18       for it can be found in the configuration. Fixes bug 40254; bugfix
19       on 0.4.5.1-alpha.
22 Changes in version 0.4.5.4-rc - 2021-01-22
23   Tor 0.4.5.4-rc is the second release candidate in its series. It fixes
24   several bugs present in previous releases.
26   We expect that the stable release will be the same, or almost the
27   same, as this release candidate, unless serious bugs are found.
29   o Major bugfixes (authority, IPv6):
30     - Do not consider multiple relays in the same IPv6 /64 network to be
31       sybils. Fixes bug 40243; bugfix on 0.4.5.1-alpha.
33   o Major bugfixes (directory cache, performance, windows):
34     - Limit the number of items in the consensus diff cache to 64 on
35       Windows. We hope this will mitigate an issue where Windows relay
36       operators reported Tor using 100% CPU, while we investigate better
37       solutions. Fixes bug 24857; bugfix on 0.3.1.1-alpha.
39   o Minor feature (build system):
40     - New "make lsp" command to generate the compile_commands.json file
41       used by the ccls language server. The "bear" program is needed for
42       this. Closes ticket 40227.
44   o Minor features (authority, logging):
45     - Log more information for directory authority operators during the
46       consensus voting process, and while processing relay descriptors.
47       Closes ticket 40245.
48     - Reject obsolete router/extrainfo descriptors earlier and more
49       quietly, to avoid spamming the logs. Fixes bug 40238; bugfix
50       on 0.4.5.1-alpha.
52   o Minor bugfixes (compilation):
53     - Fix another warning about unreachable fallthrough annotations when
54       building with "--enable-all-bugs-are-fatal" on some compilers.
55       Fixes bug 40241; bugfix on 0.4.5.3-rc.
56     - Change the linker flag ordering in our library search code so that
57       it works for compilers that need the libraries to be listed in the
58       right order. Fixes bug 33624; bugfix on 0.1.1.0-alpha.
60   o Minor bugfixes (config, bridge):
61     - Don't initiate a connection to a bridge configured to use a
62       missing transport. This change reverts an earlier fix that would
63       try to avoid such situations during configuration chcecking, but
64       which doesn't work with DisableNetwork. Fixes bug 40106; bugfix
65       on 0.4.5.1-alpha.
67   o Minor bugfixes (onion services):
68     - Avoid a non-fatal assertion in certain edge-cases when
69       establishing a circuit to an onion service. Fixes bug 32666;
70       bugfix on 0.3.0.3-alpha.
72   o Minor bugfixes (relay):
73     - If we were unable to build our descriptor, don't mark it as having
74       been advertised. Also remove an harmless BUG(). Fixes bug 40231;
75       bugfix on 0.4.5.1-alpha.
78 Changes in version 0.4.5.3-rc - 2021-01-12
79   Tor 0.4.5.3-rc is the first release candidate in its series. It fixes
80   several bugs, including one that broke onion services on certain older
81   ARM CPUs, and another that made v3 onion services less reliable.
83   Though we anticipate that we'll be doing a bit more clean-up between
84   now and the stable release, we expect that our remaining changes will
85   be fairly simple. There will be at least one more release candidate
86   before 0.4.5.x is stable.
88   o Major bugfixes (onion service v3):
89     - Stop requiring a live consensus for v3 clients and services, and
90       allow a "reasonably live" consensus instead. This allows v3 onion
91       services to work even if the authorities fail to generate a
92       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
93       on 0.3.5.1-alpha.
95   o Minor features (crypto):
96     - Fix undefined behavior on our Keccak library. The bug only
97       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
98       and would result in wrong digests. Fixes bug 40210; bugfix on
99       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
100       weasel for diagnosing this.
102   o Minor features (documentation):
103     - Mention the "!badexit" directive that can appear in an authority's
104       approved-routers file, and update the description of the
105       "!invalid" directive. Closes ticket 40188.
107   o Minor bugfixes (compilation):
108     - Fix a compilation warning about unreachable fallthrough
109       annotations when building with "--enable-all-bugs-are-fatal" on
110       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
111     - Fix the "--enable-static-tor" switch to properly set the "-static"
112       compile option onto the tor binary only. Fixes bug 40111; bugfix
113       on 0.2.3.1-alpha.
115   o Minor bugfixes (config, bridge):
116     - Really fix the case where torrc has a missing ClientTransportPlugin
117       but is configured with a Bridge line and UseBridges. Previously,
118       we didn't look at the managed proxy list and thus would fail for
119       the "exec" case. Fixes bug 40106; bugfix on 0.4.5.1-alpha.
121   o Minor bugfixes (logging, relay):
122     - Log our address as reported by the directory authorities, if none
123       was configured or detected before. Fixes bug 40201; bugfix
124       on 0.4.5.1-alpha.
125     - When a launching bandwidth testing circuit, don't incorrectly call
126       it a reachability test, or trigger a "CHECKING_REACHABILITY"
127       control event. Fixes bug 40205; bugfix on 0.4.5.1-alpha.
129   o Minor bugfixes (relay, statistics):
130     - Report the correct connection statistics in our extrainfo
131       documents. Previously there was a problem in the file loading
132       function which would wrongly truncate a state file, causing the
133       wrong information to be reported. Fixes bug 40226; bugfix
134       on 0.4.5.1-alpha.
136   o Minor bugfixes (SOCKS5):
137     - Handle partial SOCKS5 messages correctly. Previously, our code
138       would send an incorrect error message if it got a SOCKS5 request
139       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
142 Changes in version 0.4.5.2-alpha - 2020-11-23
143   Tor 0.4.5.2-alpha is the second alpha release in the 0.4.5.x series.
144   It fixes several bugs present in earlier releases, including one that
145   made it impractical to run relays on Windows. It also adds a few small
146   safety features to improve Tor's behavior in the presence of strange
147   compile-time options, misbehaving proxies, and future versions
148   of OpenSSL.
150   o Major bugfixes (relay, windows):
151     - Fix a bug in our implementation of condition variables on Windows.
152       Previously, a relay on Windows would use 100% CPU after running
153       for some time. Because of this change, Tor now require Windows
154       Vista or later to build and run. Fixes bug 30187; bugfix on
155       0.2.6.3-alpha. (This bug became more serious in 0.3.1.1-alpha with
156       the introduction of consensus diffs.) Patch by Daniel Pinto.
158   o Minor features (compilation):
159     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
160       later. There are a number of APIs newly deprecated in OpenSSL
161       3.0.0 that Tor still requires. (A later version of Tor will try to
162       stop depending on these APIs.) Closes ticket 40165.
164   o Minor features (protocol, proxy support, defense in depth):
165     - Respond more deliberately to misbehaving proxies that leave
166       leftover data on their connections, so as to make Tor even less
167       likely to allow the proxies to pass their data off as having come
168       from a relay. Closes ticket 40017.
170   o Minor features (safety):
171     - Log a warning at startup if Tor is built with compile-time options
172       that are likely to make it less stable or reliable. Closes
173       ticket 18888.
175   o Minor bugfixes (circuit, handshake):
176     - In the v3 handshaking code, use connection_or_change_state() to
177       change the state. Previously, we changed the state directly, but
178       this did not pass the state change to the pubsub or channel
179       objects, potentially leading to bugs. Fixes bug 32880; bugfix on
180       0.2.3.6-alpha. Patch by Neel Chauhan.
182   o Minor bugfixes (compilation):
183     - Use the correct 'ranlib' program when building libtor.a.
184       Previously we used the default ranlib, which broke some kinds of
185       cross-compilation. Fixes bug 40172; bugfix on 0.4.5.1-alpha.
186     - Remove a duplicate typedef in metrics_store.c. Fixes bug 40177;
187       bugfix on 0.4.5.1-alpha.
188     - When USDT tracing is enabled, and STAP_PROBEV() is missing, don't
189       attempt to build. Linux supports that macro but not the BSDs.
190       Fixes bug 40174; bugfix on 0.4.5.1-alpha.
192   o Minor bugfixes (configuration):
193     - Exit Tor on a misconfiguration when the Bridge line is configured
194       to use a transport but no corresponding ClientTransportPlugin can
195       be found. Prior to this fix, Tor would attempt to connect to the
196       bridge directly without using the transport, making it easier for
197       adversaries to notice the bridge. Fixes bug 25528; bugfix
198       on 0.2.6.1-alpha.
199     - Fix an issue where an ORPort was compared with other kinds of
200       ports, when it should have been only checked against other
201       ORPorts. This bug would lead to "DirPort auto" getting ignored.
202       Fixes bug 40195; bugfix on 0.4.5.1-alpha.
203     - Fix a bug where a second non-ORPort with a variant family (ex:
204       SocksPort [::1]:9050) would be ignored due to a configuration
205       parsing error. Fixes bug 40183; bugfix on 0.4.5.1-alpha.
207   o Minor bugfixes (crash, relay, signing key):
208     - Avoid assertion failures when we run Tor from the command line
209       with `--key-expiration sign`, but an ORPort is not set. Fixes bug
210       40015; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
212   o Minor bugfixes (logging):
213     - Remove trailing whitespace from control event log messages. Fixes
214       bug 32178; bugfix on 0.1.1.1-alpha. Based on a patch by
215       Amadeusz Pawlik.
216     - Turn warning-level log message about SENDME failure into a debug-
217       level message. (This event can happen naturally, and is no reason
218       for concern). Fixes bug 40142; bugfix on 0.4.1.1-alpha.
220   o Minor bugfixes (relay, address discovery):
221     - Don't trigger an IP change when no new valid IP can be found.
222       Fixes bug 40071; bugfix on 0.4.5.1-alpha.
223     - When attempting to discover our IP, use a simple test circuit,
224       rather than a descriptor fetch: the same address information is
225       present in NETINFO cells, and is better authenticated there. Fixes
226       bug 40071; bugfix on 0.4.5.1-alpha.
228   o Minor bugfixes (testing):
229     - Fix the `config/parse_tcp_proxy_line` test so that it works
230       correctly on systems where the DNS provider hijacks invalid
231       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
232     - Fix unit tests that used newly generated list of routers so that
233       they check them with respect to the date when they were generated,
234       not with respect to the current time. Fixes bug 40187; bugfix
235       on 0.4.5.1-alpha.
236     - Fix our Python reference-implementation for the v3 onion service
237       handshake so that it works correctly with the version of hashlib
238       provided by Python 3.9. Fixes part of bug 40179; bugfix
239       on 0.3.1.6-rc.
240     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
241       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
243   o Removed features (controller):
244     - Remove the "GETINFO network-status" controller command. It has
245       been deprecated since 0.3.1.1-alpha. Closes ticket 22473.
248 Changes in version 0.4.4.6 - 2020-11-12
249   Tor 0.4.4.6 is the second stable release in the 0.4.4.x series. It
250   backports fixes from later releases, including a fix for TROVE-2020-
251   005, a security issue that could be used, under certain cases, by an
252   adversary to observe traffic patterns on a limited number of circuits
253   intended for a different relay.
255   o Major bugfixes (security, backport from 0.4.5.1-alpha):
256     - When completing a channel, relays now check more thoroughly to
257       make sure that it matches any pending circuits before attaching
258       those circuits. Previously, address correctness and Ed25519
259       identities were not checked in this case, but only when extending
260       circuits on an existing channel. Fixes bug 40080; bugfix on
261       0.2.7.2-alpha. Resolves TROVE-2020-005.
263   o Minor features (directory authorities, backport from 0.4.5.1-alpha):
264     - Authorities now list a different set of protocols as required and
265       recommended. These lists have been chosen so that only truly
266       recommended and/or required protocols are included, and so that
267       clients using 0.2.9 or later will continue to work (even though
268       they are not supported), whereas only relays running 0.3.5 or
269       later will meet the requirements. Closes ticket 40162.
270     - Make it possible to specify multiple ConsensusParams torrc lines.
271       Now directory authority operators can for example put the main
272       ConsensusParams config in one torrc file and then add to it from a
273       different torrc file. Closes ticket 40164.
275   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
276     - Tor no longer allows subprotocol versions larger than 63.
277       Previously version numbers up to UINT32_MAX were allowed, which
278       significantly complicated our code. Implements proposal 318;
279       closes ticket 40133.
281   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
282     - Fix a rendezvous cache unit test that was triggering an underflow
283       on the global rend cache allocation. Fixes bug 40125; bugfix
284       on 0.2.8.1-alpha.
285     - Fix another rendezvous cache unit test that was triggering an
286       underflow on the global rend cache allocation. Fixes bug 40126;
287       bugfix on 0.2.8.1-alpha.
289   o Minor bugfixes (compilation, backport from 0.4.5.1-alpha):
290     - Fix compiler warnings that would occur when building with
291       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
292       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
293     - Resolve a compilation warning that could occur in
294       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
296   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
297     - Remove a debug logging statement that uselessly spammed the logs.
298       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
300   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
301     - Avoid a fatal assert() when failing to create a listener
302       connection for an address that was in use. Fixes bug 40073; bugfix
303       on 0.3.5.1-alpha.
305   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
306     - For HSFETCH commands on v2 onion services addresses, check the
307       length of bytes decoded, not the base32 length. Fixes bug 34400;
308       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
311 Changes in version 0.4.3.7 - 2020-11-12
312   Tor 0.4.3.7 backports several bugfixes from later releases. It
313   includes a fix for TROVE-2020-005, a security issue that could be
314   used, under certain cases, by an adversary to observe traffic patterns
315   on a limited number of circuits intended for a different relay.
317   Please be aware that support for the 0.4.3.x series will end on 15
318   February 2021. Please upgrade to 0.4.4.x or 0.4.5.x before then, or
319   downgrade to 0.3.5.x, which will be supported until at least 1
320   February 2022.
322   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
323     - Replace the 148 fallback directories originally included in Tor
324       0.4.1.4-rc (of which around 105 are still functional) with a list
325       of 144 fallbacks generated in July 2020. Closes ticket 40061.
327   o Major bugfixes (security, backport from 0.4.5.1-alpha):
328     - When completing a channel, relays now check more thoroughly to
329       make sure that it matches any pending circuits before attaching
330       those circuits. Previously, address correctness and Ed25519
331       identities were not checked in this case, but only when extending
332       circuits on an existing channel. Fixes bug 40080; bugfix on
333       0.2.7.2-alpha. Resolves TROVE-2020-005.
335   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
336     - When running with NSS enabled, make sure that NSS knows to expect
337       nonblocking sockets. Previously, we set our TCP sockets as
338       nonblocking, but did not tell NSS, which in turn could lead to
339       unexpected blocking behavior. Fixes bug 40035; bugfix
340       on 0.3.5.1-alpha.
342   o Minor features (security, backport from 0.4.4.4-rc):
343     - Channels using obsolete versions of the Tor link protocol are no
344       longer allowed to circumvent address-canonicity checks. (This is
345       only a minor issue, since such channels have no way to set ed25519
346       keys, and therefore should always be rejected for circuits that
347       specify ed25519 identities.) Closes ticket 40081.
349   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
350     - Tor no longer allows subprotocol versions larger than 63.
351       Previously version numbers up to UINT32_MAX were allowed, which
352       significantly complicated our code. Implements proposal 318;
353       closes ticket 40133.
355   o Minor features (tests, backport from 0.4.4.5):
356     - Our "make check" target now runs the unit tests in 8 parallel
357       chunks. Doing this speeds up hardened CI builds by more than a
358       factor of two. Closes ticket 40098.
360   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
361     - Fix a rendezvous cache unit test that was triggering an underflow
362       on the global rend cache allocation. Fixes bug 40125; bugfix
363       on 0.2.8.1-alpha.
364     - Fix another rendezvous cache unit test that was triggering an
365       underflow on the global rend cache allocation. Fixes bug 40126;
366       bugfix on 0.2.8.1-alpha.
368   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
369     - Fix a correctness bug that could cause an assertion failure if we
370       ever tried using the buf_move_all() function with an empty input
371       buffer. As far as we know, no released versions of Tor do this.
372       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
374   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
375     - Remove a debug logging statement that uselessly spammed the logs.
376       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
378   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
379     - On a bridge, treat all connections from an ExtORPort as remote by
380       default for the purposes of rate-limiting. Previously, bridges
381       would treat the connection as local unless they explicitly
382       received a "USERADDR" command. ExtORPort connections still count
383       as local if there is a USERADDR command with an explicit local
384       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
386   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
387     - Avoid a fatal assert() when failing to create a listener
388       connection for an address that was in use. Fixes bug 40073; bugfix
389       on 0.3.5.1-alpha.
391   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
392     - Adjust the rules for when to warn about having too many
393       connections to other relays. Previously we'd tolerate up to 1.5
394       connections per relay on average. Now we tolerate more connections
395       for directory authorities, and raise the number of total
396       connections we need to see before we warn. Fixes bug 33880; bugfix
397       on 0.3.1.1-alpha.
399   o Minor bugfixes (tests, 0.4.4.5):
400     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
401       on its own. Previously, it would exit with an error. Fixes bug
402       40099; bugfix on 0.2.8.1-alpha.
404   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
405     - For HSFETCH commands on v2 onion services addresses, check the
406       length of bytes decoded, not the base32 length. Fixes bug 34400;
407       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
409   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
410     - Fix a bug that prevented Tor from starting if its log file grew
411       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
413   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
414     - Add a deprecation warning for version 2 onion services. Closes
415       ticket 40003.
417   o Removed features (backport from 0.4.4.3-alpha):
418     - Our "check-local" test target no longer tries to use the
419       Coccinelle semantic patching tool parse all the C files. While it
420       is a good idea to try to make sure Coccinelle works on our C
421       before we run a Coccinelle patch, doing so on every test run has
422       proven to be disruptive. You can still run this tool manually with
423       "make check-cocci". Closes ticket 40030. ticket 40030.
426 Changes in version 0.3.5.12 - 2020-11-12
427   Tor 0.4.3.7 backports several bugfixes from later releases. It
428   includes a fix for TROVE-2020-005, a security issue that could be
429   used, under certain cases, by an adversary to observe traffic patterns
430   on a limited number of circuits intended for a different relay.
432   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
433     - Replace the 148 fallback directories originally included in Tor
434       0.4.1.4-rc (of which around 105 are still functional) with a list
435       of 144 fallbacks generated in July 2020. Closes ticket 40061.
437   o Major bugfixes (security, backport from 0.4.5.1-alpha):
438     - When completing a channel, relays now check more thoroughly to
439       make sure that it matches any pending circuits before attaching
440       those circuits. Previously, address correctness and Ed25519
441       identities were not checked in this case, but only when extending
442       circuits on an existing channel. Fixes bug 40080; bugfix on
443       0.2.7.2-alpha. Resolves TROVE-2020-005.
445   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
446     - When running with NSS enabled, make sure that NSS knows to expect
447       nonblocking sockets. Previously, we set our TCP sockets as
448       nonblocking, but did not tell NSS, which in turn could lead to
449       unexpected blocking behavior. Fixes bug 40035; bugfix
450       on 0.3.5.1-alpha.
452   o Minor features (security, backport from 0.4.4.4-rc):
453     - Channels using obsolete versions of the Tor link protocol are no
454       longer allowed to circumvent address-canonicity checks. (This is
455       only a minor issue, since such channels have no way to set ed25519
456       keys, and therefore should always be rejected for circuits that
457       specify ed25519 identities.) Closes ticket 40081.
459   o Minor features (debugging, directory system):
460     - Don't crash when we find a non-guard with a guard-fraction value
461       set. Instead, log a bug warning, in an attempt to figure out how
462       this happened. Diagnostic for ticket 32868.
464   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
465     - Tor no longer allows subprotocol versions larger than 63.
466       Previously version numbers up to UINT32_MAX were allowed, which
467       significantly complicated our code. Implements proposal 318;
468       closes ticket 40133.
470   o Minor features (tests, backport from 0.4.4.5):
471     - Our "make check" target now runs the unit tests in 8 parallel
472       chunks. Doing this speeds up hardened CI builds by more than a
473       factor of two. Closes ticket 40098.
475   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
476     - Fix a rendezvous cache unit test that was triggering an underflow
477       on the global rend cache allocation. Fixes bug 40125; bugfix
478       on 0.2.8.1-alpha.
479     - Fix another rendezvous cache unit test that was triggering an
480       underflow on the global rend cache allocation. Fixes bug 40126;
481       bugfix on 0.2.8.1-alpha.
483   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
484     - Fix a correctness bug that could cause an assertion failure if we
485       ever tried using the buf_move_all() function with an empty input
486       buffer. As far as we know, no released versions of Tor do this.
487       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
489   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
490     - Remove a debug logging statement that uselessly spammed the logs.
491       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
493   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
494     - On a bridge, treat all connections from an ExtORPort as remote by
495       default for the purposes of rate-limiting. Previously, bridges
496       would treat the connection as local unless they explicitly
497       received a "USERADDR" command. ExtORPort connections still count
498       as local if there is a USERADDR command with an explicit local
499       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
501   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
502     - Avoid a fatal assert() when failing to create a listener
503       connection for an address that was in use. Fixes bug 40073; bugfix
504       on 0.3.5.1-alpha.
506   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
507     - Adjust the rules for when to warn about having too many
508       connections to other relays. Previously we'd tolerate up to 1.5
509       connections per relay on average. Now we tolerate more connections
510       for directory authorities, and raise the number of total
511       connections we need to see before we warn. Fixes bug 33880; bugfix
512       on 0.3.1.1-alpha.
514   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
515     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
516       descriptors, when the IPv6 port was configured as "auto". Fixes
517       bug 32588; bugfix on 0.2.3.9-alpha.
519   o Minor bugfixes (tests, 0.4.4.5):
520     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
521       on its own. Previously, it would exit with an error. Fixes bug
522       40099; bugfix on 0.2.8.1-alpha.
524   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
525     - Fix a bug that prevented Tor from starting if its log file grew
526       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
528   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
529     - Add a deprecation warning for version 2 onion services. Closes
530       ticket 40003.
533 Changes in version 0.4.5.1-alpha - 2020-11-01
534   Tor 0.4.5.1-alpha is the first alpha release in the 0.4.5.x series. It
535   improves support for IPv6, address discovery and self-testing, code
536   metrics and tracing.
538   This release also fixes TROVE-2020-005, a security issue that could be
539   used, under certain cases, by an adversary to observe traffic patterns
540   on a limited number of circuits intended for a different relay. To
541   mount this attack, the adversary would need to actively extend
542   circuits to an incorrect address, as well as compromise a relay's
543   legacy RSA-1024 key. We'll be backporting this fix to other release
544   series soon, after it has had some testing.
546   Here are the changes since 0.4.4.5.
548   o Major features (build):
549     - When building Tor, first link all object files into a single
550       static library. This may help with embedding Tor in other
551       programs. Note that most Tor functions do not constitute a part of
552       a stable or supported API: only those functions in tor_api.h
553       should be used if embedding Tor. Closes ticket 40127.
555   o Major features (metrics):
556     - Introduce a new MetricsPort which exposes, through an HTTP
557       interface, a series of metrics that tor collects at runtime. At
558       the moment, the only supported output format is Prometheus data
559       model. Closes ticket 40063. See the manual page for more
560       information and security considerations.
561   o Major features (relay, IPv6):
562     - The torrc option Address now supports IPv6. This unifies our
563       address discovery interface to support IPv4, IPv6, and hostnames.
564       Closes ticket 33233.
565     - Launch IPv4 and IPv6 ORPort self-test circuits on relays and
566       bridges. Closes ticket 33222.
567     - Relays now automatically bind on IPv6 for their ORPort, unless
568       specified otherwise with the IPv4Only flag. Closes ticket 33246.
569     - When a relay with IPv6 support is told to open a connection to
570       another relay, and the extend cell lists both IPv4 and IPv6
571       addresses, the first relay now picks randomly which address to
572       use. Closes ticket 33220.
573     - Relays now track their IPv6 ORPort reachability separately from
574       the reachability of their IPv4 ORPort. They will not publish a
575       descriptor unless _both_ ports appear to be externally reachable.
576       Closes ticket 34067.
578   o Major features (tracing):
579     - Add event-tracing library support for USDT and LTTng-UST, and a
580       few tracepoints in the circuit subsystem. More will come
581       incrementally. This feature is compiled out by default: it needs
582       to be enabled at configure time. See documentation in
583       doc/HACKING/Tracing.md. Closes ticket 32910.
585   o Major bugfixes (security):
586     - When completing a channel, relays now check more thoroughly to
587       make sure that it matches any pending circuits before attaching
588       those circuits. Previously, address correctness and Ed25519
589       identities were not checked in this case, but only when extending
590       circuits on an existing channel. Fixes bug 40080; bugfix on
591       0.2.7.2-alpha. Resolves TROVE-2020-005.
593   o Major bugfixes (TLS, buffer):
594     - When attempting to read N bytes on a TLS connection, really try to
595       read all N bytes. Previously, Tor would stop reading after the
596       first TLS record, which can be smaller than the N bytes requested,
597       and not check for more data until the next mainloop event. Fixes
598       bug 40006; bugfix on 0.1.0.5-rc.
600   o Minor features (address discovery):
601     - If no Address statements are found, relays now prioritize guessing
602       their address by looking at the local interface instead of the
603       local hostname. If the interface address can't be found, the local
604       hostname is used. Closes ticket 33238.
606   o Minor features (admin tools):
607     - Add a new --format argument to -key-expiration option to allow
608       specifying the time format of the expiration date. Adds Unix
609       timestamp format support. Patch by Daniel Pinto. Closes
610       ticket 30045.
612   o Minor features (bootstrap reporting):
613     - When reporting bootstrapping status on a relay, do not consider
614       connections that have never been the target of an origin circuit.
615       Previously, all connection failures were treated as potential
616       bootstrapping failures, including connections that had been opened
617       because of client requests. Closes ticket 25061.
619   o Minor features (build):
620     - When running the configure script, try to detect version
621       mismatches between the OpenSSL headers and libraries, and suggest
622       that the user should try "--with-openssl-dir". Closes 40138.
623     - If the configure script has given any warnings, remind the user
624       about them at the end of the script. Related to 40138.
626   o Minor features (configuration):
627     - Allow using wildcards (* and ?) with the %include option on
628       configuration files. Closes ticket 25140. Patch by Daniel Pinto.
629     - Allow the configuration options EntryNodes, ExcludeNodes,
630       ExcludeExitNodes, ExitNodes, MiddleNodes, HSLayer2Nodes and
631       HSLayer3Nodes to be specified multiple times. Closes ticket 28361.
632       Patch by Daniel Pinto.
634   o Minor features (control port):
635     - Add a DROPTIMEOUTS command to drop circuit build timeout history
636       and reset the current timeout. Closes ticket 40002.
637     - When a stream enters the AP_CONN_STATE_CONTROLLER_WAIT status,
638       send a control port event. Closes ticket 32190. Patch by
639       Neel Chauhan.
640     - Introduce GETINFO "stats/ntor/{assigned/requested}" and
641       "stats/tap/{assigned/requested}" to get the NTor and TAP circuit
642       onion handshake counts respectively. Closes ticket 28279. Patch by
643       Neel Chauhan.
645   o Minor features (control port, IPv6):
646     - Tor relays now try to report to the controller when they are
647       launching an IPv6 self-test. Closes ticket 34068.
648     - Introduce "GETINFO address/v4" and "GETINFO address/v6" in the
649       control port to fetch the Tor host's respective IPv4 or IPv6
650       address. We keep "GETINFO address" for backwards-compatibility.
651       Closes ticket 40039. Patch by Neel Chauhan.
653   o Minor features (directory authorities):
654     - Authorities now list a different set of protocols as required and
655       recommended. These lists have been chosen so that only truly
656       recommended and/or required protocols are included, and so that
657       clients using 0.2.9 or later will continue to work (even though
658       they are not supported), whereas only relays running 0.3.5 or
659       later will meet the requirements. Closes ticket 40162.
660     - Add a new consensus method 30 that removes the unnecessary "="
661       padding from ntor-onion-key. Closes ticket 7869. Patch by
662       Daniel Pinto.
663     - Directory authorities now reject descriptors from relays running
664       Tor versions from the obsolete 0.4.1 series. Resolves ticket
665       34357. Patch by Neel Chauhan.
666     - Make it possible to specify multiple ConsensusParams torrc lines.
667       Now directory authority operators can for example put the main
668       ConsensusParams config in one torrc file and then add to it from a
669       different torrc file. Closes ticket 40164.
670     - The AssumeReachable option no longer stops directory authorities
671       from checking whether other relays are running. A new
672       AuthDirTestReachability option can be used to disable these
673       checks. Closes ticket 34445.
674     - When looking for possible Sybil attacks, also consider IPv6
675       addresses. Two routers are considered to have "the same" address
676       by this metric if they are in the same /64 network. Patch from
677       Maurice Pibouin. Closes ticket 7193.
679   o Minor features (directory authorities, IPv6):
680     - Make authorities add their IPv6 ORPort (if any) to the trusted
681       servers list. Authorities previously added only their IPv4
682       addresses. Closes ticket 32822.
684   o Minor features (ed25519, relay):
685     - Save a relay's base64-encoded ed25519 identity key to the data
686       directory in a file named fingerprint-ed25519. Closes ticket
687       30642. Patch by Neel Chauhan.
689   o Minor features (heartbeat):
690     - Include the total number of inbound and outbound IPv4 and IPv6
691       connections in the heartbeat message. Closes ticket 29113.
693   o Minor features (IPv6, ExcludeNodes):
694     - Handle IPv6 addresses in ExcludeNodes; previously they were
695       ignored. Closes ticket 34065. Patch by Neel Chauhan.
697   o Minor features (logging):
698     - Add the running glibc version to the log, and the compiled glibc
699       version to the library list returned when using --library-versions.
700       Patch from Daniel Pinto. Closes ticket 40047.
701     - Consider an HTTP 301 response to be an error (like a 404) when
702       processing a directory response. Closes ticket 40053.
703     - Log directory fetch statistics as a single line. Closes
704       ticket 40159.
705     - Provide more complete descriptions of our connections when logging
706       about them. Closes ticket 40041.
707     - When describing a relay in the logs, we now include its ed25519
708       identity. Closes ticket 22668.
710   o Minor features (onion services):
711     - Only overwrite an onion service's existing hostname file if its
712       contents are wrong. This enables read-only onion-service
713       directories. Resolves ticket 40062. Patch by Neel Chauhan.
715   o Minor features (pluggable transports):
716     - Add an OutboundBindAddressPT option to allow users to specify
717       which IPv4 and IPv6 address pluggable transports should use for
718       outgoing IP packets. Tor does not have a way to enforce that the
719       pluggable transport honors this option, so each pluggable transport
720       needs to implement support on its own. Closes ticket 5304.
722   o Minor features (relay address tracking):
723     - We now store relay addresses for OR connections in a more logical
724       way. Previously we would sometimes overwrite the actual address of
725       a connection with a "canonical address", and then store the "real
726       address" elsewhere to remember it. We now track the "canonical
727       address" elsewhere for the cases where we need it, and leave the
728       connection's address alone. Closes ticket 33898.
730   o Minor features (relay):
731     - If a relay is unable to discover its address, attempt to learn it
732       from the NETINFO cell. Closes ticket 40022.
733     - Log immediately when launching a relay self-check. Previously we
734       would try to log before launching checks, or approximately when we
735       intended to launch checks, but this tended to be error-prone.
736       Closes ticket 34137.
738   o Minor features (relay, address discovery):
739     - If Address option is not found in torrc, attempt to learn our
740       address with the configured ORPort address if any. Closes
741       ticket 33236.
743   o Minor features (relay, IPv6):
744     - Add an AssumeReachableIPv6 option to disable self-checking IPv6
745       reachability. Closes part of ticket 33224.
746     - Add new "assume-reachable" and "assume-reachable-ipv6" consensus
747       parameters to be used in an emergency to tell relays that they
748       should publish even if they cannot complete their ORPort self-
749       checks. Closes ticket 34064 and part of 33224.
750     - Allow relays to send IPv6-only extend cells. Closes ticket 33222.
751     - Declare support for the Relay=3 subprotocol version. Closes
752       ticket 33226.
753     - When launching IPv6 ORPort self-test circuits, make sure that the
754       second-last hop can initiate an IPv6 extend. Closes ticket 33222.
756   o Minor features (specification update):
757     - Several fields in microdescriptors, router descriptors, and
758       consensus documents that were formerly optional are now required.
759       Implements proposal 315; closes ticket 40132.
761   o Minor features (state management):
762     - When loading the state file, remove entries from the statefile
763       that have been obsolete for a long time. Ordinarily Tor preserves
764       unrecognized entries in order to keep forward-compatibility, but
765       these entries have not actually been used in any release since
766       before 0.3.5.x. Closes ticket 40137.
768   o Minor features (statistics, ipv6):
769     - Relays now publish IPv6-specific counts of single-direction versus
770       bidirectional relay connections. Closes ticket 33264.
771     - Relays now publish their IPv6 read and write statistics over time,
772       if statistics are enabled. Closes ticket 33263.
774   o Minor features (subprotocol versions):
775     - Tor no longer allows subprotocol versions larger than 63.
776       Previously version numbers up to UINT32_MAX were allowed, which
777       significantly complicated our code. Implements proposal 318;
778       closes ticket 40133.
779     - Use the new limitations on subprotocol versions due to proposal
780       318 to simplify our implementation. Part of ticket 40133.
782   o Minor features (testing configuration):
783     - The TestingTorNetwork option no longer implicitly sets
784       AssumeReachable to 1. This change allows us to test relays' self-
785       testing mechanisms, and to test authorities' relay-testing
786       functionality. Closes ticket 34446.
788   o Minor features (testing):
789     - Added unit tests for channel_matches_target_addr_for_extend().
790       Closes Ticket 33919. Patch by MrSquanchee.
792   o Minor features (tests, v2 onion services):
793     - Fix a rendezvous cache unit test that was triggering an underflow
794       on the global rend cache allocation. Fixes bug 40125; bugfix
795       on 0.2.8.1-alpha.
796     - Fix another rendezvous cache unit test that was triggering an
797       underflow on the global rend cache allocation. Fixes bug 40126;
798       bugfix on 0.2.8.1-alpha.
800   o Minor bugfixes (circuit padding):
801     - When circpad_send_padding_cell_for_callback is called,
802       `is_padding_timer_scheduled` flag was not reset. Now it is set to
803       0 at the top of that function. Fixes bug 32671; bugfix
804       on 0.4.0.1-alpha.
805     - Add a per-circuit padding machine instance counter, so we can
806       differentiate between shutdown requests for old machines on a
807       circuit. Fixes bug 30992; bugfix on 0.4.1.1-alpha.
808     - Add the ability to keep circuit padding machines if they match a
809       set of circuit states or purposes. This allows us to have machines
810       that start up under some conditions but don't shut down under
811       others. We now use this mask to avoid starting up introduction
812       circuit padding again after the machines have already completed.
813       Fixes bug 32040; bugfix on 0.4.1.1-alpha.
815   o Minor bugfixes (compatibility):
816     - Strip '\r' characters when reading text files on Unix platforms.
817       This should resolve an issue where a relay operator migrates a
818       relay from Windows to Unix, but does not change the line ending of
819       Tor's various state files to match the platform, and the CRLF line
820       endings from Windows end up leaking into other files such as the
821       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
823   o Minor bugfixes (compilation):
824     - Fix compiler warnings that would occur when building with
825       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
826       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
827     - Resolve a compilation warning that could occur in
828       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
830   o Minor bugfixes (configuration):
831     - Fix bug where %including a pattern ending with */ would include
832       files and folders (instead of folders only) in versions of glibc <
833       2.19. Fixes bug 40141; bugfix on 0.4.5.0-alpha-dev. Patch by
834       Daniel Pinto.
836   o Minor bugfixes (control port):
837     - Make sure we send the SOCKS request address in relay begin cells
838       when a stream is attached with the purpose
839       CIRCUIT_PURPOSE_CONTROLLER. Fixes bug 33124; bugfix on 0.0.5.
840       Patch by Neel Chauhan.
842   o Minor bugfixes (logging):
843     - Remove a debug logging statement that uselessly spammed the logs.
844       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
845     - When logging a rate-limited message about how many messages have
846       been suppressed in the last N seconds, give an accurate value for
847       N, rounded up to the nearest minute. Previously we would report
848       the size of the rate-limiting interval, regardless of when the
849       messages started to occur. Fixes bug 19431; bugfix
850       on 0.2.2.16-alpha.
852   o Minor bugfixes (relay configuration, crash):
853     - Avoid a fatal assert() when failing to create a listener
854       connection for an address that was in use. Fixes bug 40073; bugfix
855       on 0.3.5.1-alpha.
857   o Minor bugfixes (rust, protocol versions):
858     - Declare support for the onion service introduction point denial of
859       service extensions when building with Rust. Fixes bug 34248;
860       bugfix on 0.4.2.1-alpha.
861     - Make Rust protocol version support checks consistent with the
862       undocumented error behavior of the corresponding C code. Fixes bug
863       34251; bugfix on 0.3.3.5-rc.
865   o Minor bugfixes (self-testing):
866     - When receiving an incoming circuit, only accept it as evidence
867       that we are reachable if the declared address of its channel is
868       the same address we think that we have. Otherwise, it could be
869       evidence that we're reachable on some other address. Fixes bug
870       20165; bugfix on 0.1.0.1-rc.
872   o Minor bugfixes (spec conformance):
873     - Use the correct key type when generating signing->link
874       certificates. Fixes bug 40124; bugfix on 0.2.7.2-alpha.
876   o Minor bugfixes (subprotocol versions):
877     - Consistently reject extra commas, instead of only rejecting
878       leading commas. Fixes bug 27194; bugfix on 0.2.9.4-alpha.
879     - In summarize_protover_flags(), treat empty strings the same as
880       NULL. This prevents protocols_known from being set. Previously, we
881       treated empty strings as normal strings, which led to
882       protocols_known being set. Fixes bug 34232; bugfix on
883       0.3.3.2-alpha. Patch by Neel Chauhan.
885   o Minor bugfixes (v2 onion services):
886     - For HSFETCH commands on v2 onion services addresses, check the
887       length of bytes decoded, not the base32 length. Fixes bug 34400;
888       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
890   o Code simplification and refactoring:
891     - Add and use a set of functions to perform down-casts on constant
892       connection and channel pointers. Closes ticket 40046.
893     - Refactor our code that logs descriptions of connections, channels,
894       and the peers on them, to use a single call path. This change
895       enables us to refactor the data types that they use, and eliminates
896       many confusing usages of those types. Closes ticket 40041.
897     - Refactor some common node selection code into a single function.
898       Closes ticket 34200.
899     - Remove the now-redundant 'outbuf_flushlen' field from our
900       connection type. It was previously used for an older version of
901       our rate-limiting logic. Closes ticket 33097.
902     - Rename "fascist_firewall_*" identifiers to "reachable_addr_*"
903       instead, for consistency with other code. Closes ticket 18106.
904     - Rename functions about "advertised" ports which are not in fact
905       guaranteed to return the ports that have been advertised. Closes
906       ticket 40055.
907     - Split implementation of several command line options from
908       options_init_from_torrc into smaller isolated functions. Patch by
909       Daniel Pinto. Closes ticket 40102.
910     - When an extend cell is missing an IPv4 or IPv6 address, fill in
911       the address from the extend info. This is similar to what was done
912       in ticket 33633 for ed25519 keys. Closes ticket 33816. Patch by
913       Neel Chauhan.
915   o Deprecated features:
916     - The "non-builtin" argument to the "--dump-config" command is now
917       deprecated. When it works, it behaves the same as "short", which
918       you should use instead. Closes ticket 33398.
920   o Documentation:
921     - Replace URLs from our old bugtracker so that they refer to the new
922       bugtracker and wiki. Closes ticket 40101.
924   o Removed features:
925     - We no longer ship or build a "tor.service" file for use with
926       systemd. No distribution included this script unmodified, and we
927       don't have the expertise ourselves to maintain this in a way that
928       all the various systemd-based distributions can use. Closes
929       ticket 30797.
930     - We no longer ship support for the Android logging API. Modern
931       versions of Android can use the syslog API instead. Closes
932       ticket 32181.
933     - The "optimistic data" feature is now always on; there is no longer
934       an option to disable it from the torrc file or from the consensus
935       directory. Closes part of 40139.
936     - The "usecreatefast" network parameter is now removed; there is no
937       longer an option for authorities to turn it off. Closes part
938       of 40139.
940   o Testing:
941     - Add unit tests for bandwidth statistics manipulation functions.
942       Closes ticket 33812. Patch by MrSquanchee.
944   o Code simplification and refactoring (autoconf):
945     - Remove autoconf checks for unused funcs and headers. Closes ticket
946       31699; Patch by @bduszel
948   o Code simplification and refactoring (maintainer scripts):
949     - Disable by default the pre-commit hook. Use the environment
950       variable TOR_EXTRA_PRE_COMMIT_CHECKS in order to run it.
951       Furthermore, stop running practracker in the pre-commit hook and
952       make check-local. Closes ticket 40019.
954   o Code simplification and refactoring (relay address):
955     - Most of IPv4 representation was using "uint32_t". It has now been
956       moved to use the internal "tor_addr_t" interface instead. This is
957       so we can properly integrate IPv6 along IPv4 with common
958       interfaces. Closes ticket 40043.
960   o Documentation (manual page):
961     - Move them from doc/ to doc/man/. Closes ticket 40044.
962     - Describe the status of the "Sandbox" option more accurately. It is
963       no longer "experimental", but it _is_ dependent on kernel and libc
964       versions. Closes ticket 23378.
966   o Documentation (tracing):
967     - Document in depth the circuit subsystem trace events in the new
968       doc/tracing/EventsCircuit.md. Closes ticket 40036.
971 Changes in version 0.4.4.5 - 2020-09-15
972   Tor 0.4.4.5 is the first stable release in the 0.4.4.x series. This
973   series improves our guard selection algorithms, adds v3 onion balance
974   support, improves the amount of code that can be disabled when running
975   without relay support, and includes numerous small bugfixes and
976   enhancements. It also lays the ground for some IPv6 features that
977   we'll be developing more in the next (0.4.5) series.
979   Per our support policy, we support each stable release series for nine
980   months after its first stable release, or three months after the first
981   stable release of the next series: whichever is longer. This means
982   that 0.4.4.x will be supported until around June 2021--or later, if
983   0.4.5.x is later than anticipated.
985   Note also that support for 0.4.2.x has just ended; support for 0.4.3
986   will continue until Feb 15, 2021. We still plan to continue supporting
987   0.3.5.x, our long-term stable series, until Feb 2022.
989   Below are the changes since 0.4.4.4-rc. For a complete list of changes
990   since 0.4.3.6, see the ReleaseNotes file.
992   o Major bugfixes (onion services, DoS):
993     - Correct handling of parameters for the onion service DoS defense.
994       Previously, the consensus parameters for the onion service DoS
995       defenses were overwriting the parameters set by the service
996       operator using HiddenServiceEnableIntroDoSDefense. Fixes bug
997       40109; bugfix on 0.4.2.1-alpha.
999   o Major bugfixes (stats, onion services):
1000     - Fix a bug where we were undercounting the Tor network's total
1001       onion service traffic, by ignoring any traffic originating from
1002       clients. Now we count traffic from both clients and services.
1003       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
1005   o Minor features (control port):
1006     - If a ClientName was specified in ONION_CLIENT_AUTH_ADD for an
1007       onion service, display it when we use ONION_CLIENT_AUTH_VIEW.
1008       Closes ticket 40089. Patch by Neel Chauhan.
1010   o Minor features (denial-of-service memory limiter):
1011     - Allow the user to configure even lower values for the
1012       MaxMemInQueues parameter. Relays now enforce a minimum of 64 MB,
1013       when previously the minimum was 256 MB. On clients, there is no
1014       minimum. Relays and clients will both warn if the value is set so
1015       low that Tor is likely to stop working. Closes ticket 24308.
1017   o Minor features (tests):
1018     - Our "make check" target now runs the unit tests in 8 parallel
1019       chunks. Doing this speeds up hardened CI builds by more than a
1020       factor of two. Closes ticket 40098.
1022   o Minor bugfixes (guard selection algorithm):
1023     - Avoid needless guard-related warning when upgrading from 0.4.3 to
1024       0.4.4. Fixes bug 40105; bugfix on 0.4.4.1-alpha.
1026   o Minor bugfixes (tests):
1027     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
1028       on its own. Previously, it would exit with an error. Fixes bug
1029       40099; bugfix on 0.2.8.1-alpha.
1032 Changes in version 0.4.4.3-alpha - 2020-07-27
1033   Tor 0.4.4.3-alpha fixes several annoyances in previous versions,
1034   including one affecting NSS users, and several affecting the Linux
1035   seccomp2 sandbox.
1037   o Major features (fallback directory list):
1038     - Replace the 148 fallback directories originally included in Tor
1039       0.4.1.4-rc (of which around 105 are still functional) with a list
1040       of 144 fallbacks generated in July 2020. Closes ticket 40061.
1042   o Major bugfixes (NSS):
1043     - When running with NSS enabled, make sure that NSS knows to expect
1044       nonblocking sockets. Previously, we set our TCP sockets as
1045       nonblocking, but did not tell NSS, which in turn could lead to
1046       unexpected blocking behavior. Fixes bug 40035; bugfix
1047       on 0.3.5.1-alpha.
1049   o Minor bugfixes (linux seccomp2 sandbox):
1050     - Fix a regression on sandboxing rules for the openat() syscall. The
1051       fix for bug 25440 fixed the problem on systems with glibc >= 2.27
1052       but broke with versions of glibc. We now choose a rule based on
1053       the glibc version. Patch from Daniel Pinto. Fixes bug 27315;
1054       bugfix on 0.3.5.11.
1055     - Makes the seccomp sandbox allow the correct syscall for opendir
1056       according to the running glibc version. This fixes crashes when
1057       reloading torrc with sandbox enabled when running on glibc 2.15 to
1058       2.21 and 2.26. Patch from Daniel Pinto. Fixes bug 40020; bugfix
1059       on 0.3.5.11.
1061   o Minor bugfixes (relay, usability):
1062     - Adjust the rules for when to warn about having too many
1063       connections to other relays. Previously we'd tolerate up to 1.5
1064       connections per relay on average. Now we tolerate more connections
1065       for directory authorities, and raise the number of total
1066       connections we need to see before we warn. Fixes bug 33880; bugfix
1067       on 0.3.1.1-alpha.
1069   o Documentation:
1070     - Replace most http:// URLs in our code and documentation with
1071       https:// URLs. (We have left unchanged the code in src/ext/, and
1072       the text in LICENSE.) Closes ticket 31812. Patch from Jeremy Rand.
1074   o Removed features:
1075     - Our "check-local" test target no longer tries to use the
1076       Coccinelle semantic patching tool parse all the C files. While it
1077       is a good idea to try to make sure Coccinelle works on our C
1078       before we run a Coccinelle patch, doing so on every test run has
1079       proven to be disruptive. You can still run this tool manually with
1080       "make check-cocci". Closes ticket 40030.
1083 Changes in version 0.3.5.11 - 2020-07-09
1084   Tor 0.3.5.11 backports fixes from later tor releases, including several
1085   usability, portability, and reliability fixes.
1087   This release also fixes TROVE-2020-001, a medium-severity denial of
1088   service vulnerability affecting all versions of Tor when compiled with
1089   the NSS encryption library. (This is not the default configuration.)
1090   Using this vulnerability, an attacker could cause an affected Tor
1091   instance to crash remotely. This issue is also tracked as CVE-2020-
1092   15572. Anybody running a version of Tor built with the NSS library
1093   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1094   or later.
1096   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1097     - Fix a crash due to an out-of-bound memory access when Tor is
1098       compiled with NSS support. Fixes bug 33119; bugfix on
1099       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1100       and CVE-2020-15572.
1102   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
1103     - Fix a bug that was preventing DoS defenses from running on bridges
1104       with a pluggable transport. Previously, the DoS subsystem was not
1105       given the transport name of the client connection, thus failed to
1106       find the GeoIP cache entry for that client address. Fixes bug
1107       33491; bugfix on 0.3.3.2-alpha.
1109   o Minor features (testing, backport from 0.4.3.4-rc):
1110     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
1111       variable to specify a list of space-separated test cases that
1112       should not be executed. We will use this to disable certain tests
1113       that are failing on Appveyor because of mismatched OpenSSL
1114       libraries. Part of ticket 33643.
1116   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1117     - Use the correct 64-bit printf format when compiling with MINGW on
1118       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1120   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
1121     - Warn if the ContactInfo field is not set, and tell the relay
1122       operator that not having a ContactInfo field set might cause their
1123       relay to get rejected in the future. Fixes bug 33361; bugfix
1124       on 0.1.1.10-alpha.
1126   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1127     - Resume use of preemptively-built circuits when UseEntryGuards is set
1128       to 0. We accidentally disabled this feature with that config
1129       setting, leading to slower load times. Fixes bug 34303; bugfix
1130       on 0.3.3.2-alpha.
1132   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
1133     - Avoid compiler warnings from Clang 10 related to the use of GCC-
1134       style "/* falls through */" comments. Both Clang and GCC allow
1135       __attribute__((fallthrough)) instead, so that's what we're using
1136       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
1138   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1139     - Fix a compiler warning on platforms with 32-bit time_t values.
1140       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1142   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
1143     - When starting Tor any time after the first time in a process,
1144       register the thread in which it is running as the main thread.
1145       Previously, we only did this on Windows, which could lead to bugs
1146       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
1147       on 0.3.3.1-alpha.
1149   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
1150     - When reading PEM-encoded key data, tolerate CRLF line-endings even
1151       if we are not running on Windows. Previously, non-Windows hosts
1152       would reject these line-endings in certain positions, making
1153       certain key files hard to move from one host to another. Fixes bug
1154       33032; bugfix on 0.3.5.1-alpha.
1156   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1157     - Downgrade a noisy log message that could occur naturally when
1158       receiving an extrainfo document that we no longer want. Fixes bug
1159       16016; bugfix on 0.2.6.3-alpha.
1161   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
1162     - Remove a BUG() warning that would cause a stack trace if an onion
1163       service descriptor was freed while we were waiting for a
1164       rendezvous circuit to complete. Fixes bug 28992; bugfix
1165       on 0.3.2.1-alpha.
1167   o Testing (CI, backport from 0.4.3.4-rc):
1168     - In our Appveyor Windows CI, copy required DLLs to test and app
1169       directories, before running tor's tests. This ensures that tor.exe
1170       and test*.exe use the correct version of each DLL. This fix is not
1171       required, but we hope it will avoid DLL search issues in future.
1172       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
1173     - On Appveyor, skip the crypto/openssl_version test, which is
1174       failing because of a mismatched library installation. Fix
1175       for 33643.
1178 Changes in version 0.4.2.8 - 2020-07-09
1179   Tor 0.4.2.8 backports various fixes from later releases, including
1180   several that affect usability and portability.
1182   This release also fixes TROVE-2020-001, a medium-severity denial of
1183   service vulnerability affecting all versions of Tor when compiled with
1184   the NSS encryption library. (This is not the default configuration.)
1185   Using this vulnerability, an attacker could cause an affected Tor
1186   instance to crash remotely. This issue is also tracked as CVE-2020-
1187   15572. Anybody running a version of Tor built with the NSS library
1188   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1189   or later.
1191   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1192     - Fix a crash due to an out-of-bound memory access when Tor is
1193       compiled with NSS support. Fixes bug 33119; bugfix on
1194       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1195       and CVE-2020-15572.
1197   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
1198     - Fix a bug that was preventing DoS defenses from running on bridges
1199       with a pluggable transport. Previously, the DoS subsystem was not
1200       given the transport name of the client connection, thus failed to
1201       find the GeoIP cache entry for that client address. Fixes bug
1202       33491; bugfix on 0.3.3.2-alpha.
1204   o Minor feature (sendme, flow control, backport form 0.4.3.4-rc):
1205     - Default to sending SENDME version 1 cells. (Clients are already
1206       sending these, because of a consensus parameter telling them to do
1207       so: this change only affects what clients would do if the
1208       consensus didn't contain a recommendation.) Closes ticket 33623.
1210   o Minor features (diagnostic, backport from 0.4.3.3-alpha):
1211     - Improve assertions and add some memory-poisoning code to try to
1212       track down possible causes of a rare crash (32564) in the EWMA
1213       code. Closes ticket 33290.
1215   o Minor features (testing, backport from 0.4.3.4-rc):
1216     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
1217       variable to specify a list of space-separated test cases that
1218       should not be executed. We will use this to disable certain tests
1219       that are failing on Appveyor because of mismatched OpenSSL
1220       libraries. Part of ticket 33643.
1222   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1223     - Use the correct 64-bit printf format when compiling with MINGW on
1224       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1226   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
1227     - Warn if the ContactInfo field is not set, and tell the relay
1228       operator that not having a ContactInfo field set might cause their
1229       relay to get rejected in the future. Fixes bug 33361; bugfix
1230       on 0.1.1.10-alpha.
1232   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1233     - Resume use of preemptively-built circuits when UseEntryGuards is set
1234       to 0. We accidentally disabled this feature with that config
1235       setting, leading to slower load times. Fixes bug 34303; bugfix
1236       on 0.3.3.2-alpha.
1238   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
1239     - Avoid compiler warnings from Clang 10 related to the use of GCC-
1240       style "/* falls through */" comments. Both Clang and GCC allow
1241       __attribute__((fallthrough)) instead, so that's what we're using
1242       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
1243     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
1244       on 0.4.0.3-alpha.
1246   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1247     - Fix a compiler warning on platforms with 32-bit time_t values.
1248       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1250   o Minor bugfixes (controller protocol, backport from 0.4.3.2-alpha):
1251     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
1252       report them as SIGNAL events. Previously we would log a bug
1253       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
1255   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
1256     - When starting Tor any time after the first time in a process,
1257       register the thread in which it is running as the main thread.
1258       Previously, we only did this on Windows, which could lead to bugs
1259       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
1260       on 0.3.3.1-alpha.
1262   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
1263     - When reading PEM-encoded key data, tolerate CRLF line-endings even
1264       if we are not running on Windows. Previously, non-Windows hosts
1265       would reject these line-endings in certain positions, making
1266       certain key files hard to move from one host to another. Fixes bug
1267       33032; bugfix on 0.3.5.1-alpha.
1269   o Minor bugfixes (logging, backport from 0.4.3.2-rc):
1270     - When logging a bug, do not say "Future instances of this warning
1271       will be silenced" unless we are actually going to silence them.
1272       Previously we would say this whenever a BUG() check failed in the
1273       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
1275   o Minor bugfixes (logging, backport from 0.4.3.4-rc):
1276     - Flush stderr, stdout, and file logs during shutdown, if supported
1277       by the OS. This change helps make sure that any final logs are
1278       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
1280   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1281     - Downgrade a noisy log message that could occur naturally when
1282       receiving an extrainfo document that we no longer want. Fixes bug
1283       16016; bugfix on 0.2.6.3-alpha.
1285   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
1286     - Remove a BUG() warning that would cause a stack trace if an onion
1287       service descriptor was freed while we were waiting for a
1288       rendezvous circuit to complete. Fixes bug 28992; bugfix
1289       on 0.3.2.1-alpha.
1291   o Testing (CI, backport from 0.4.3.4-rc):
1292     - In our Appveyor Windows CI, copy required DLLs to test and app
1293       directories, before running tor's tests. This ensures that tor.exe
1294       and test*.exe use the correct version of each DLL. This fix is not
1295       required, but we hope it will avoid DLL search issues in future.
1296       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
1297     - On Appveyor, skip the crypto/openssl_version test, which is
1298       failing because of a mismatched library installation. Fix
1299       for 33643.
1302 Changes in version 0.4.3.6 - 2020-07-09
1303   Tor 0.4.3.6 backports several bugfixes from later releases, including
1304   some affecting usability.
1306   This release also fixes TROVE-2020-001, a medium-severity denial of
1307   service vulnerability affecting all versions of Tor when compiled with
1308   the NSS encryption library. (This is not the default configuration.)
1309   Using this vulnerability, an attacker could cause an affected Tor
1310   instance to crash remotely. This issue is also tracked as CVE-2020-
1311   15572. Anybody running a version of Tor built with the NSS library
1312   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1313   or later.
1315   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1316     - Fix a crash due to an out-of-bound memory access when Tor is
1317       compiled with NSS support. Fixes bug 33119; bugfix on
1318       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1319       and CVE-2020-15572.
1321   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1322     - Use the correct 64-bit printf format when compiling with MINGW on
1323       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1325   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1326     - Resume use of preemptively-built circuits when UseEntryGuards is set
1327       to 0. We accidentally disabled this feature with that config
1328       setting, leading to slower load times. Fixes bug 34303; bugfix
1329       on 0.3.3.2-alpha.
1331   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1332     - Fix a compiler warning on platforms with 32-bit time_t values.
1333       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1335   o Minor bugfixes (linux seccomp sandbox, nss, backport from 0.4.4.1-alpha):
1336     - Fix a startup crash when tor is compiled with --enable-nss and
1337       sandbox support is enabled. Fixes bug 34130; bugfix on
1338       0.3.5.1-alpha. Patch by Daniel Pinto.
1340   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1341     - Downgrade a noisy log message that could occur naturally when
1342       receiving an extrainfo document that we no longer want. Fixes bug
1343       16016; bugfix on 0.2.6.3-alpha.
1345   o Minor bugfixes (manual page, backport from 0.4.4.1-alpha):
1346     - Update the man page to reflect that MinUptimeHidServDirectoryV2
1347       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
1349   o Minor bugfixes (onion service v3, backport from 0.4.4.1-alpha):
1350     - Prevent an assert() that would occur when cleaning the client
1351       descriptor cache, and attempting to close circuits for a non-
1352       decrypted descriptor (lacking client authorization). Fixes bug
1353       33458; bugfix on 0.4.2.1-alpha.
1355   o Minor bugfixes (portability, backport from 0.4.4.1-alpha):
1356     - Fix a portability error in the configure script, where we were
1357       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
1359   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
1360     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
1361       descriptors, when the IPv6 port was configured as "auto". Fixes
1362       bug 32588; bugfix on 0.2.3.9-alpha.
1364   o Documentation (backport from 0.4.4.1-alpha):
1365     - Fix several doxygen warnings related to imbalanced groups. Closes
1366       ticket 34255.
1369 Changes in version 0.4.4.2-alpha - 2020-07-09
1370   This is the second alpha release in the 0.4.4.x series. It fixes a few
1371   bugs in the previous release, and solves a few usability,
1372   compatibility, and portability issues.
1374   This release also fixes TROVE-2020-001, a medium-severity denial of
1375   service vulnerability affecting all versions of Tor when compiled with
1376   the NSS encryption library. (This is not the default configuration.)
1377   Using this vulnerability, an attacker could cause an affected Tor
1378   instance to crash remotely. This issue is also tracked as CVE-2020-
1379   15572. Anybody running a version of Tor built with the NSS library
1380   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1381   or later.
1383   o Major bugfixes (NSS, security):
1384     - Fix a crash due to an out-of-bound memory access when Tor is
1385       compiled with NSS support. Fixes bug 33119; bugfix on
1386       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1387       and CVE-2020-15572.
1389   o Minor features (bootstrap reporting):
1390     - Report more detailed reasons for bootstrap failure when the
1391       failure happens due to a TLS error. Previously we would just call
1392       these errors "MISC" when they happened during read, and "DONE"
1393       when they happened during any other TLS operation. Closes
1394       ticket 32622.
1396   o Minor features (directory authority):
1397     - Authorities now recommend the protocol versions that are supported
1398       by Tor 0.3.5 and later. (Earlier versions of Tor have been
1399       deprecated since January of this year.) This recommendation will
1400       cause older clients and relays to give a warning on startup, or
1401       when they download a consensus directory. Closes ticket 32696.
1403   o Minor features (entry guards):
1404     - Reinstate support for GUARD NEW/UP/DOWN control port events.
1405       Closes ticket 40001.
1407   o Minor features (linux seccomp2 sandbox, portability):
1408     - Allow Tor to build on platforms where it doesn't know how to
1409       report which syscall caused the linux seccomp2 sandbox to fail.
1410       This change should make the sandbox code more portable to less
1411       common Linux architectures. Closes ticket 34382.
1412     - Permit the unlinkat() syscall, which some Libc implementations use
1413       to implement unlink(). Closes ticket 33346.
1415   o Minor bugfix (CI, Windows):
1416     - Use the correct 64-bit printf format when compiling with MINGW on
1417       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1419   o Minor bugfix (onion service v3 client):
1420     - Remove a BUG() warning that could occur naturally. Fixes bug
1421       34087; bugfix on 0.3.2.1-alpha.
1423   o Minor bugfix (SOCKS, onion service client):
1424     - Detect v3 onion service addresses of the wrong length when
1425       returning the F6 ExtendedErrors code. Fixes bug 33873; bugfix
1426       on 0.4.3.1-alpha.
1428   o Minor bugfixes (compiler warnings):
1429     - Fix a compiler warning on platforms with 32-bit time_t values.
1430       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1432   o Minor bugfixes (control port, onion service):
1433     - Consistently use 'address' in "Invalid v3 address" response to
1434       ONION_CLIENT_AUTH commands. Previously, we would sometimes say
1435       'addr'. Fixes bug 40005; bugfix on 0.4.3.1-alpha.
1437   o Minor bugfixes (logging):
1438     - Downgrade a noisy log message that could occur naturally when
1439       receiving an extrainfo document that we no longer want. Fixes bug
1440       16016; bugfix on 0.2.6.3-alpha.
1442   o Minor bugfixes (onion services v3):
1443     - Avoid a non-fatal assertion failure in certain edge-cases when
1444       opening an intro circuit as a client. Fixes bug 34084; bugfix
1445       on 0.3.2.1-alpha.
1447   o Deprecated features (onion service v2):
1448     - Add a deprecation warning for version 2 onion services. Closes
1449       ticket 40003.
1451   o Removed features (IPv6, revert):
1452     - Revert the change in the default value of ClientPreferIPv6OrPort:
1453       it breaks the torsocks use case. The SOCKS resolve command has no
1454       mechanism to ask for a specific address family (v4 or v6), and so
1455       prioritizing IPv6 when an IPv4 address is requested on the SOCKS
1456       interface resulted in a failure. Tor Browser explicitly sets
1457       PreferIPv6, so this should not affect the majority of our users.
1458       Closes ticket 33796; bugfix on 0.4.4.1-alpha.
1461 Changes in version 0.4.4.1-alpha - 2020-06-16
1462   This is the first alpha release in the 0.4.4.x series.  It improves
1463   our guard selection algorithms, improves the amount of code that
1464   can be disabled when running without relay support, and includes numerous
1465   small bugfixes and enhancements.  It also lays the ground for some IPv6
1466   features that we'll be developing more in the next (0.4.5) series.
1468   Here are the changes since 0.4.3.5.
1470   o Major features (Proposal 310, performance + security):
1471     - Implements Proposal 310, "Bandaid on guard selection". Proposal
1472       310 solves load-balancing issues with older versions of the guard
1473       selection algorithm, and improves its security. Under this new
1474       algorithm, a newly selected guard never becomes Primary unless all
1475       previously sampled guards are unreachable. Implements
1476       recommendation from 32088. (Proposal 310 is linked to the CLAPS
1477       project researching optimal client location-aware path selections.
1478       This project is a collaboration between the UCLouvain Crypto Group,
1479       the U.S. Naval Research Laboratory, and Princeton University.)
1481   o Major features (IPv6, relay):
1482     - Consider IPv6-only EXTEND2 cells valid on relays. Log a protocol
1483       warning if the IPv4 or IPv6 address is an internal address, and
1484       internal addresses are not allowed. But continue to use the other
1485       address, if it is valid. Closes ticket 33817.
1486     - If a relay can extend over IPv4 and IPv6, and both addresses are
1487       provided, it chooses between them uniformly at random. Closes
1488       ticket 33817.
1489     - Re-use existing IPv6 connections for circuit extends. Closes
1490       ticket 33817.
1491     - Relays may extend circuits over IPv6, if the relay has an IPv6
1492       ORPort, and the client supplies the other relay's IPv6 ORPort in
1493       the EXTEND2 cell. IPv6 extends will be used by the relay IPv6
1494       ORPort self-tests in 33222. Closes ticket 33817.
1496   o Major features (v3 onion services):
1497     - Allow v3 onion services to act as OnionBalance backend instances,
1498       by using the HiddenServiceOnionBalanceInstance torrc option.
1499       Closes ticket 32709.
1501   o Minor feature (developer tools):
1502     - Add a script to help check the alphabetical ordering of option
1503       names in the manual page. Closes ticket 33339.
1505   o Minor feature (onion service client, SOCKS5):
1506     - Add 3 new SocksPort ExtendedErrors (F2, F3, F7) that reports back
1507       new type of onion service connection failures. The semantics of
1508       these error codes are documented in proposal 309. Closes
1509       ticket 32542.
1511   o Minor feature (onion service v3):
1512     - If a service cannot upload its descriptor(s), log why at INFO
1513       level. Closes ticket 33400; bugfix on 0.3.2.1-alpha.
1515   o Minor feature (python scripts):
1516     - Stop assuming that /usr/bin/python exists. Instead of using a
1517       hardcoded path in scripts that still use Python 2, use
1518       /usr/bin/env, similarly to the scripts that use Python 3. Fixes
1519       bug 33192; bugfix on 0.4.2.
1521   o Minor features (client-only compilation):
1522     - Disable more code related to the ext_orport protocol when
1523       compiling without support for relay mode. Closes ticket 33368.
1524     - Disable more of our self-testing code when support for relay mode
1525       is disabled. Closes ticket 33370.
1527   o Minor features (code safety):
1528     - Check for failures of tor_inet_ntop() and tor_inet_ntoa()
1529       functions in DNS and IP address processing code, and adjust
1530       codepaths to make them less likely to crash entire Tor instances.
1531       Resolves issue 33788.
1533   o Minor features (compilation size):
1534     - Most server-side DNS code is now disabled when building without
1535       support for relay mode. Closes ticket 33366.
1537   o Minor features (continuous integration):
1538     - Run unit-test and integration test (Stem, Chutney) jobs with
1539       ALL_BUGS_ARE_FATAL macro being enabled on Travis and Appveyor.
1540       Resolves ticket 32143.
1542   o Minor features (control port):
1543     - Return a descriptive error message from the 'GETINFO status/fresh-
1544       relay-descs' command on the control port. Previously, we returned
1545       a generic error of "Error generating descriptor". Closes ticket
1546       32873. Patch by Neel Chauhan.
1548   o Minor features (developer tooling):
1549     - Refrain from listing all .a files that are generated by the Tor
1550       build in .gitignore. Add a single wildcard *.a entry that covers
1551       all of them for present and future. Closes ticket 33642.
1552     - Add a script ("git-install-tools.sh") to install git hooks and
1553       helper scripts. Closes ticket 33451.
1555   o Minor features (directory authority, shared random):
1556     - Refactor more authority-only parts of the shared-random scheduling
1557       code to reside in the dirauth module, and to be disabled when
1558       compiling with --disable-module-dirauth. Closes ticket 33436.
1560   o Minor features (directory):
1561     - Remember the number of bytes we have downloaded for each directory
1562       purpose while bootstrapping, and while fully bootstrapped. Log
1563       this information as part of the heartbeat message. Closes
1564       ticket 32720.
1566   o Minor features (IPv6 support):
1567     - Adds IPv6 support to tor_addr_is_valid(). Adds tests for the above
1568       changes and tor_addr_is_null(). Closes ticket 33679. Patch
1569       by MrSquanchee.
1570     - Allow clients and relays to send dual-stack and IPv6-only EXTEND2
1571       cells. Parse dual-stack and IPv6-only EXTEND2 cells on relays.
1572       Closes ticket 33901.
1574   o Minor features (logging):
1575     - When trying to find our own address, add debug-level logging to
1576       report the sources of candidate addresses. Closes ticket 32888.
1578   o Minor features (testing, architecture):
1579     - Our test scripts now double-check that subsystem initialization
1580       order is consistent with the inter-module dependencies established
1581       by our .may_include files. Implements ticket 31634.
1582     - Initialize all subsystems at the beginning of our unit test
1583       harness, to avoid crashes due to uninitialized subsystems. Follow-
1584       up from ticket 33316.
1586   o Minor features (v3 onion services):
1587     - Add v3 onion service status to the dumpstats() call which is
1588       triggered by a SIGUSR1 signal. Previously, we only did v2 onion
1589       services. Closes ticket 24844. Patch by Neel Chauhan.
1591   o Minor features (windows):
1592     - Add support for console control signals like Ctrl+C in Windows.
1593       Closes ticket 34211. Patch from Damon Harris (TheDcoder).
1595   o Minor bugfix (onion service v3):
1596     - Prevent an assert() that would occur when cleaning the client
1597       descriptor cache, and attempting to close circuits for a non-
1598       decrypted descriptor (lacking client authorization). Fixes bug
1599       33458; bugfix on 0.4.2.1-alpha.
1601   o Minor bugfix (refactoring):
1602     - Lift circuit_build_times_disabled() out of the
1603       circuit_expire_building() loop, to save CPU time when there are
1604       many circuits open. Fixes bug 33977; bugfix on 0.3.5.9.
1606   o Minor bugfixes (client performance):
1607     - Resume use of preemptively-built circuits when UseEntryGuards is set
1608       to 0. We accidentally disabled this feature with that config
1609       setting, leading to slower load times. Fixes bug 34303; bugfix
1610       on 0.3.3.2-alpha.
1612   o Minor bugfixes (directory authorities):
1613     - Directory authorities now reject votes that arrive too late. In
1614       particular, once an authority has started fetching missing votes,
1615       it no longer accepts new votes posted by other authorities. This
1616       change helps prevent a consensus split, where only some authorities
1617       have the late vote. Fixes bug 4631; bugfix on 0.2.0.5-alpha.
1619   o Minor bugfixes (git scripts):
1620     - Stop executing the checked-out pre-commit hook from the pre-push
1621       hook. Instead, execute the copy in the user's git directory. Fixes
1622       bug 33284; bugfix on 0.4.1.1-alpha.
1624   o Minor bugfixes (initialization):
1625     - Initialize the subsystems in our code in an order more closely
1626       corresponding to their dependencies, so that every system is
1627       initialized before the ones that (theoretically) depend on it.
1628       Fixes bug 33316; bugfix on 0.4.0.1-alpha.
1630   o Minor bugfixes (IPv4, relay):
1631     - Check for invalid zero IPv4 addresses and ports when sending and
1632       receiving extend cells. Fixes bug 33900; bugfix on 0.2.4.8-alpha.
1634   o Minor bugfixes (IPv6, relay):
1635     - Consider IPv6 addresses when checking if a connection is
1636       canonical. In 17604, relays assumed that a remote relay could
1637       consider an IPv6 connection canonical, but did not set the
1638       canonical flag on their side of the connection. Fixes bug 33899;
1639       bugfix on 0.3.1.1-alpha.
1640     - Log IPv6 addresses on connections where this relay is the
1641       responder. Previously, responding relays would replace the remote
1642       IPv6 address with the IPv4 address from the consensus. Fixes bug
1643       33899; bugfix on 0.3.1.1-alpha.
1645   o Minor bugfixes (linux seccomp sandbox nss):
1646     - Fix a startup crash when tor is compiled with --enable-nss and
1647       sandbox support is enabled. Fixes bug 34130; bugfix on
1648       0.3.5.1-alpha. Patch by Daniel Pinto.
1650   o Minor bugfixes (logging, testing):
1651     - Make all of tor's assertion macros support the ALL_BUGS_ARE_FATAL
1652       and DISABLE_ASSERTS_IN_UNIT_TESTS debugging modes. (IF_BUG_ONCE()
1653       used to log a non-fatal warning, regardless of the debugging
1654       mode.) Fixes bug 33917; bugfix on 0.2.9.1-alpha.
1656   o Minor bugfixes (logs):
1657     - Remove surprising empty line in the INFO-level log about circuit
1658       build timeout. Fixes bug 33531; bugfix on 0.3.3.1-alpha.
1660   o Minor bugfixes (mainloop):
1661     - Better guard against growing a buffer past its maximum 2GB in
1662       size. Fixes bug 33131; bugfix on 0.3.0.4-rc.
1664   o Minor bugfixes (manual page):
1665     - Update the man page to reflect that MinUptimeHidServDirectoryV2
1666       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
1668   o Minor bugfixes (onion service v3, client):
1669     - Remove a BUG() that was causing a stacktrace when a descriptor
1670       changed at an unexpected time. Fixes bug 28992; bugfix
1671       on 0.3.2.1-alpha.
1673   o Minor bugfixes (onion service, logging):
1674     - Fix a typo in a log message PublishHidServDescriptors is set to 0.
1675       Fixes bug 33779; bugfix on 0.3.2.1-alpha.
1677   o Minor bugfixes (portability):
1678     - Fix a portability error in the configure script, where we were
1679       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
1681   o Minor bugfixes (protocol versions):
1682     - Sort tor's supported protocol version lists, as recommended by the
1683       tor directory specification. Fixes bug 33285; bugfix
1684       on 0.4.0.1-alpha.
1686   o Minor bugfixes (relays):
1687     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
1688       descriptors, when the IPv6 port was configured as "auto". Fixes
1689       bug 32588; bugfix on 0.2.3.9-alpha.
1691   o Code simplification and refactoring:
1692     - Define and use a new constant TOR_ADDRPORT_BUF_LEN which is like
1693       TOR_ADDR_BUF_LEN but includes enough space for an IP address,
1694       brackets, separating colon, and port number. Closes ticket 33956.
1695       Patch by Neel Chauhan.
1696     - Merge the orconn and ocirc events into the "core" subsystem, which
1697       manages or connections and origin circuits. Previously they were
1698       isolated in subsystems of their own.
1699     - Move LOG_PROTOCOL_WARN to app/config. Resolves a dependency
1700       inversion. Closes ticket 33633.
1701     - Move the circuit extend code to the relay module. Split the
1702       circuit extend function into smaller functions. Closes
1703       ticket 33633.
1704     - Rewrite port_parse_config() to use the default port flags from
1705       port_cfg_new(). Closes ticket 32994. Patch by MrSquanchee.
1706     - Updated comments in 'scheduler.c' to reflect old code changes, and
1707       simplified the scheduler channel state change code. Closes
1708       ticket 33349.
1710   o Documentation:
1711     - Document the limitations of using %include on config files with
1712       seccomp sandbox enabled. Fixes documentation bug 34133; bugfix on
1713       0.3.1.1-alpha. Patch by Daniel Pinto.
1714     - Fix several doxygen warnings related to imbalanced groups. Closes
1715       ticket 34255.
1717   o Removed features:
1718     - Remove the ClientAutoIPv6ORPort option. This option attempted to
1719       randomly choose between IPv4 and IPv6 for client connections, and
1720       wasn't a true implementation of Happy Eyeballs. Often, this option
1721       failed on IPv4-only or IPv6-only connections. Closes ticket 32905.
1722       Patch by Neel Chauhan.
1723     - Stop shipping contrib/dist/rc.subr file, as it is not being used
1724       on FreeBSD anymore. Closes issue 31576.
1726   o Testing:
1727     - Add a basic IPv6 test to "make test-network". This test only runs
1728       when the local machine has an IPv6 stack. Closes ticket 33300.
1729     - Add test-network-ipv4 and test-network-ipv6 jobs to the Makefile.
1730       These jobs run the IPv4-only and dual-stack chutney flavours from
1731       test-network-all. Closes ticket 33280.
1732     - Remove a redundant distcheck job. Closes ticket 33194.
1733     - Run the test-network-ipv6 Makefile target in the Travis CI IPv6
1734       chutney job. This job runs on macOS, so it's a bit slow. Closes
1735       ticket 33303.
1736     - Sort the Travis jobs in order of speed. Putting the slowest jobs
1737       first takes full advantage of Travis job concurrency. Closes
1738       ticket 33194.
1739     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
1740       previously configured to fast_finish (which requires
1741       allow_failure), to speed up the build. Closes ticket 33195.
1742     - Test v3 onion services to tor's mixed IPv4 chutney network. And
1743       add a mixed IPv6 chutney network. These networks are used in the
1744       test-network-all, test-network-ipv4, and test-network-ipv6 make
1745       targets. Closes ticket 33334.
1746     - Use the "bridges+hs-v23" chutney network flavour in "make test-
1747       network". This test requires a recent version of chutney (mid-
1748       February 2020). Closes ticket 28208.
1749     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
1750       tool to produce detailed diagnostic output. Closes ticket 32792.
1752   o Code simplification and refactoring (onion service):
1753     - Refactor configuration parsing to use the new config subsystem
1754       code. Closes ticket 33014.
1756   o Code simplification and refactoring (relay address):
1757     - Move a series of functions related to address resolving into their
1758       own files. Closes ticket 33789.
1760   o Documentation (manual page):
1761     - Add cross reference links and a table of contents to the HTML tor
1762       manual page. Closes ticket 33369. Work by Swati Thacker as part of
1763       Google Season of Docs.
1764     - Alphabetize the Denial of Service Mitigation Options, Directory
1765       Authority Server Options, Hidden Service Options, and Testing
1766       Network Options sections of the tor(1) manual page. Closes ticket
1767       33275. Work by Swati Thacker as part of Google Season of Docs.
1768     - Refrain from mentioning nicknames in manpage section for MyFamily
1769       torrc option. Resolves issue 33417.
1770     - Updated the options set by TestingTorNetwork in the manual page.
1771       Closes ticket 33778.
1774 Changes in version 0.4.3.5 - 2020-05-15
1775   Tor 0.4.3.5 is the first stable release in the 0.4.3.x series. This
1776   series adds support for building without relay code enabled, and
1777   implements functionality needed for OnionBalance with v3 onion
1778   services. It includes significant refactoring of our configuration and
1779   controller functionality, and fixes numerous smaller bugs and
1780   performance issues.
1782   Per our support policy, we support each stable release series for nine
1783   months after its first stable release, or three months after the first
1784   stable release of the next series: whichever is longer. This means
1785   that 0.4.3.x will be supported until around February 2021--later, if
1786   0.4.4.x is later than anticipated.
1788   Note also that support for 0.4.1.x is about to end on May 20 of this
1789   year; 0.4.2.x will be supported until September 15. We still plan to
1790   continue supporting 0.3.5.x, our long-term stable series, until
1791   Feb 2022.
1793   Below are the changes since 0.4.3.4-rc. For a complete list of changes
1794   since 0.4.2.6, see the ReleaseNotes file.
1796   o Minor bugfixes (compiler compatibility):
1797     - Avoid compiler warnings from Clang 10 related to the use of GCC-
1798       style "/* falls through */" comments. Both Clang and GCC allow
1799       __attribute__((fallthrough)) instead, so that's what we're using
1800       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
1801     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
1802       on 0.4.0.3-alpha.
1804   o Minor bugfixes (logging):
1805     - Stop truncating IPv6 addresses and ports in channel and connection
1806       logs. Fixes bug 33918; bugfix on 0.2.4.4-alpha.
1807     - Fix a logic error in a log message about whether an address was
1808       invalid. Previously, the code would never report that onion
1809       addresses were onion addresses. Fixes bug 34131; bugfix
1810       on 0.4.3.1-alpha.
1813 Changes in version 0.4.3.4-rc - 2020-04-13
1814   Tor 0.4.3.4-rc is the first release candidate in its series. It fixes
1815   several bugs from earlier versions, including one affecting DoS
1816   defenses on bridges using pluggable transports.
1818   o Major bugfixes (DoS defenses, bridges, pluggable transport):
1819     - Fix a bug that was preventing DoS defenses from running on bridges
1820       with a pluggable transport. Previously, the DoS subsystem was not
1821       given the transport name of the client connection, thus failed to
1822       find the GeoIP cache entry for that client address. Fixes bug
1823       33491; bugfix on 0.3.3.2-alpha.
1825   o Minor feature (sendme, flow control):
1826     - Default to sending SENDME version 1 cells. (Clients are already
1827       sending these, because of a consensus parameter telling them to do
1828       so: this change only affects what clients would do if the
1829       consensus didn't contain a recommendation.) Closes ticket 33623.
1831   o Minor features (testing):
1832     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
1833       variable to specify a list of space-separated test cases that
1834       should not be executed. We will use this to disable certain tests
1835       that are failing on Appveyor because of mismatched OpenSSL
1836       libraries. Part of ticket 33643.
1838   o Minor bugfixes (--disable-module-relay):
1839     - Fix an assertion failure when Tor is built without the relay
1840       module, and then invoked with the "User" option. Fixes bug 33668;
1841       bugfix on 0.4.3.1-alpha.
1843   o Minor bugfixes (--disable-module-relay,--disable-module-dirauth):
1844     - Set some output arguments in the relay and dirauth module stubs,
1845       to guard against future stub argument handling bugs like 33668.
1846       Fixes bug 33674; bugfix on 0.4.3.1-alpha.
1848   o Minor bugfixes (build system):
1849     - Correctly output the enabled module in the configure summary.
1850       Before that, the list shown was just plain wrong. Fixes bug 33646;
1851       bugfix on 0.4.3.2-alpha.
1853   o Minor bugfixes (client, IPv6):
1854     - Stop forcing all non-SocksPorts to prefer IPv6 exit connections.
1855       Instead, prefer IPv6 connections by default, but allow users to
1856       change their configs using the "NoPreferIPv6" port flag. Fixes bug
1857       33608; bugfix on 0.4.3.1-alpha.
1858     - Revert PreferIPv6 set by default on the SocksPort because it broke
1859       the torsocks use case. Tor doesn't have a way for an application
1860       to request the hostname to be resolved for a specific IP version,
1861       but torsocks requires that. Up until now, IPv4 was used by default
1862       so torsocks is expecting that, and can't handle a possible IPv6
1863       being returned. Fixes bug 33804; bugfix on 0.4.3.1-alpha.
1865   o Minor bugfixes (key portability):
1866     - When reading PEM-encoded key data, tolerate CRLF line-endings even
1867       if we are not running on Windows. Previously, non-Windows hosts
1868       would reject these line-endings in certain positions, making
1869       certain key files hard to move from one host to another. Fixes bug
1870       33032; bugfix on 0.3.5.1-alpha.
1872   o Minor bugfixes (logging):
1873     - Flush stderr, stdout, and file logs during shutdown, if supported
1874       by the OS. This change helps make sure that any final logs are
1875       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
1876     - Stop closing stderr and stdout during shutdown. Closing these file
1877       descriptors can hide sanitiser logs. Fixes bug 33087; bugfix
1878       on 0.4.1.6.
1880   o Minor bugfixes (onion services v3):
1881     - Relax severity of a log message that can appear naturally when
1882       decoding onion service descriptors as a relay. Also add some
1883       diagnostics to debug any future bugs in that area. Fixes bug
1884       31669; bugfix on 0.3.0.1-alpha.
1885     - Block a client-side assertion by disallowing the registration of
1886       an x25519 client auth key that's all zeroes. Fixes bug 33545;
1887       bugfix on 0.4.3.1-alpha. Based on patch from "cypherpunks".
1889   o Code simplification and refactoring:
1890     - Disable our coding standards best practices tracker in our git
1891       hooks. (0.4.3 branches only.) Closes ticket 33678.
1893   o Testing:
1894     - Avoid conflicts between the fake sockets in tor's unit tests, and
1895       real file descriptors. Resolves issues running unit tests with
1896       GitHub Actions, where the process that embeds or launches the
1897       tests has already opened a large number of file descriptors. Fixes
1898       bug 33782; bugfix on 0.2.8.1-alpha. Found and fixed by
1899       Putta Khunchalee.
1901   o Testing (CI):
1902     - In our Appveyor Windows CI, copy required DLLs to test and app
1903       directories, before running tor's tests. This ensures that tor.exe
1904       and test*.exe use the correct version of each DLL. This fix is not
1905       required, but we hope it will avoid DLL search issues in future.
1906       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
1907     - On Appveyor, skip the crypto/openssl_version test, which is
1908       failing because of a mismatched library installation. Fix
1909       for 33643.
1912 Changes in version 0.4.3.3-alpha - 2020-03-18
1913   Tor 0.4.3.3-alpha fixes several bugs in previous releases, including
1914   TROVE-2020-002, a major denial-of-service vulnerability that affected
1915   all released Tor instances since 0.2.1.5-alpha. Using this
1916   vulnerability, an attacker could cause Tor instances to consume a huge
1917   amount of CPU, disrupting their operations for several seconds or
1918   minutes. This attack could be launched by anybody against a relay, or
1919   by a directory cache against any client that had connected to it. The
1920   attacker could launch this attack as much as they wanted, thereby
1921   disrupting service or creating patterns that could aid in traffic
1922   analysis. This issue was found by OSS-Fuzz, and is also tracked
1923   as CVE-2020-10592.
1925   We do not have reason to believe that this attack is currently being
1926   exploited in the wild, but nonetheless we advise everyone to upgrade
1927   as soon as packages are available.
1929   o Major bugfixes (security, denial-of-service):
1930     - Fix a denial-of-service bug that could be used by anyone to
1931       consume a bunch of CPU on any Tor relay or authority, or by
1932       directories to consume a bunch of CPU on clients or hidden
1933       services. Because of the potential for CPU consumption to
1934       introduce observable timing patterns, we are treating this as a
1935       high-severity security issue. Fixes bug 33119; bugfix on
1936       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
1937       as TROVE-2020-002 and CVE-2020-10592.
1939   o Major bugfixes (circuit padding, memory leak):
1940     - Avoid a remotely triggered memory leak in the case that a circuit
1941       padding machine is somehow negotiated twice on the same circuit.
1942       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
1943       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
1945   o Major bugfixes (directory authority):
1946     - Directory authorities will now send a 503 (not enough bandwidth)
1947       code to clients when under bandwidth pressure. Known relays and
1948       other authorities will always be answered regardless of the
1949       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
1951   o Minor features (diagnostic):
1952     - Improve assertions and add some memory-poisoning code to try to
1953       track down possible causes of a rare crash (32564) in the EWMA
1954       code. Closes ticket 33290.
1956   o Minor features (directory authorities):
1957     - Directory authorities now reject descriptors from relays running
1958       Tor versions from the 0.2.9 and 0.4.0 series. The 0.3.5 series is
1959       still allowed. Resolves ticket 32672. Patch by Neel Chauhan.
1961   o Minor features (usability):
1962     - Include more information when failing to parse a configuration
1963       value. This should make it easier to tell what's going wrong when
1964       a configuration file doesn't parse. Closes ticket 33460.
1966   o Minor bugfix (relay, configuration):
1967     - Warn if the ContactInfo field is not set, and tell the relay
1968       operator that not having a ContactInfo field set might cause their
1969       relay to get rejected in the future. Fixes bug 33361; bugfix
1970       on 0.1.1.10-alpha.
1972   o Minor bugfixes (coding best practices checks):
1973     - Allow the "practracker" script to read unicode files when using
1974       Python 2. We made the script use unicode literals in 0.4.3.1-alpha,
1975       but didn't change the codec for opening files. Fixes bug 33374;
1976       bugfix on 0.4.3.1-alpha.
1978   o Minor bugfixes (continuous integration):
1979     - Remove the buggy and unused mirroring job. Fixes bug 33213; bugfix
1980       on 0.3.2.2-alpha.
1982   o Minor bugfixes (onion service v3, client):
1983     - Remove a BUG() warning that would cause a stack trace if an onion
1984       service descriptor was freed while we were waiting for a
1985       rendezvous circuit to complete. Fixes bug 28992; bugfix
1986       on 0.3.2.1-alpha.
1988   o Minor bugfixes (onion services v3):
1989     - Fix an assertion failure that could result from a corrupted
1990       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
1991       bugfix on 0.3.3.1-alpha. This issue is also tracked
1992       as TROVE-2020-003.
1994   o Documentation (manpage):
1995     - Alphabetize the Server and Directory server sections of the tor
1996       manpage. Also split Statistics options into their own section of
1997       the manpage. Closes ticket 33188. Work by Swati Thacker as part of
1998       Google Season of Docs.
1999     - Document the __OwningControllerProcess torrc option and specify
2000       its polling interval. Resolves issue 32971.
2002   o Testing (Travis CI):
2003     - Remove a redundant distcheck job. Closes ticket 33194.
2004     - Sort the Travis jobs in order of speed: putting the slowest jobs
2005       first takes full advantage of Travis job concurrency. Closes
2006       ticket 33194.
2007     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2008       previously configured to fast_finish (which requires
2009       allow_failure), to speed up the build. Closes ticket 33195.
2010     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2011       tool to produce detailed diagnostic output. Closes ticket 32792.
2014 Changes in version 0.4.2.7 - 2020-03-18
2015   This is the third stable release in the 0.4.2.x series. It backports
2016   numerous fixes from later releases, including a fix for TROVE-2020-
2017   002, a major denial-of-service vulnerability that affected all
2018   released Tor instances since 0.2.1.5-alpha. Using this vulnerability,
2019   an attacker could cause Tor instances to consume a huge amount of CPU,
2020   disrupting their operations for several seconds or minutes. This
2021   attack could be launched by anybody against a relay, or by a directory
2022   cache against any client that had connected to it. The attacker could
2023   launch this attack as much as they wanted, thereby disrupting service
2024   or creating patterns that could aid in traffic analysis. This issue
2025   was found by OSS-Fuzz, and is also tracked as CVE-2020-10592.
2027   We do not have reason to believe that this attack is currently being
2028   exploited in the wild, but nonetheless we advise everyone to upgrade
2029   as soon as packages are available.
2031   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2032     - Fix a denial-of-service bug that could be used by anyone to
2033       consume a bunch of CPU on any Tor relay or authority, or by
2034       directories to consume a bunch of CPU on clients or hidden
2035       services. Because of the potential for CPU consumption to
2036       introduce observable timing patterns, we are treating this as a
2037       high-severity security issue. Fixes bug 33119; bugfix on
2038       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2039       as TROVE-2020-002 and CVE-2020-10592.
2041   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
2042     - Avoid a remotely triggered memory leak in the case that a circuit
2043       padding machine is somehow negotiated twice on the same circuit.
2044       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
2045       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
2047   o Major bugfixes (directory authority, backport from 0.4.3.3-alpha):
2048     - Directory authorities will now send a 503 (not enough bandwidth)
2049       code to clients when under bandwidth pressure. Known relays and
2050       other authorities will always be answered regardless of the
2051       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
2053   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
2054     - Stop allowing failures on the Travis CI stem tests job. It looks
2055       like all the stem hangs we were seeing before are now fixed.
2056       Closes ticket 33075.
2058   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2059     - Lowercase the configured value of BridgeDistribution before adding
2060       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2062   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2063     - If we encounter a bug when flushing a buffer to a TLS connection,
2064       only log the bug once per invocation of the Tor process.
2065       Previously we would log with every occurrence, which could cause
2066       us to run out of disk space. Fixes bug 33093; bugfix
2067       on 0.3.2.2-alpha.
2069   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2070     - Fix an assertion failure that could result from a corrupted
2071       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2072       bugfix on 0.3.3.1-alpha. This issue is also tracked
2073       as TROVE-2020-003.
2075   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2076     - Fix a syntax warning given by newer versions of Rust that was
2077       creating problems for our continuous integration. Fixes bug 33212;
2078       bugfix on 0.3.5.1-alpha.
2080   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2081     - Remove a redundant distcheck job. Closes ticket 33194.
2082     - Sort the Travis jobs in order of speed: putting the slowest jobs
2083       first takes full advantage of Travis job concurrency. Closes
2084       ticket 33194.
2085     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2086       previously configured to fast_finish (which requires
2087       allow_failure), to speed up the build. Closes ticket 33195.
2088     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2089       tool to produce detailed diagnostic output. Closes ticket 32792.
2092 Changes in version 0.4.1.9 - 2020-03-18
2093   Tor 0.4.1.9 backports important fixes from later Tor releases,
2094   including a fix for TROVE-2020-002, a major denial-of-service
2095   vulnerability that affected all released Tor instances since
2096   0.2.1.5-alpha. Using this vulnerability, an attacker could cause Tor
2097   instances to consume a huge amount of CPU, disrupting their operations
2098   for several seconds or minutes. This attack could be launched by
2099   anybody against a relay, or by a directory cache against any client
2100   that had connected to it. The attacker could launch this attack as
2101   much as they wanted, thereby disrupting service or creating patterns
2102   that could aid in traffic analysis. This issue was found by OSS-Fuzz,
2103   and is also tracked as CVE-2020-10592.
2105   We do not have reason to believe that this attack is currently being
2106   exploited in the wild, but nonetheless we advise everyone to upgrade
2107   as soon as packages are available.
2109   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2110     - Fix a denial-of-service bug that could be used by anyone to
2111       consume a bunch of CPU on any Tor relay or authority, or by
2112       directories to consume a bunch of CPU on clients or hidden
2113       services. Because of the potential for CPU consumption to
2114       introduce observable timing patterns, we are treating this as a
2115       high-severity security issue. Fixes bug 33119; bugfix on
2116       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2117       as TROVE-2020-002 and CVE-2020-10592.
2119   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
2120     - Avoid a remotely triggered memory leak in the case that a circuit
2121       padding machine is somehow negotiated twice on the same circuit.
2122       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
2123       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
2125   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2126     - Lowercase the configured value of BridgeDistribution before adding
2127       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2129   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2130     - If we encounter a bug when flushing a buffer to a TLS connection,
2131       only log the bug once per invocation of the Tor process.
2132       Previously we would log with every occurrence, which could cause
2133       us to run out of disk space. Fixes bug 33093; bugfix
2134       on 0.3.2.2-alpha.
2136   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2137     - Fix an assertion failure that could result from a corrupted
2138       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2139       bugfix on 0.3.3.1-alpha. This issue is also tracked
2140       as TROVE-2020-003.
2142   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2143     - Fix a syntax warning given by newer versions of Rust that was
2144       creating problems for our continuous integration. Fixes bug 33212;
2145       bugfix on 0.3.5.1-alpha.
2147   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2148     - Remove a redundant distcheck job. Closes ticket 33194.
2149     - Sort the Travis jobs in order of speed: putting the slowest jobs
2150       first takes full advantage of Travis job concurrency. Closes
2151       ticket 33194.
2152     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2153       previously configured to fast_finish (which requires
2154       allow_failure), to speed up the build. Closes ticket 33195.
2155     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2156       tool to produce detailed diagnostic output. Closes ticket 32792.
2159 Changes in version 0.3.5.10 - 2020-03-18
2160   Tor 0.3.5.10 backports many fixes from later Tor releases, including a
2161   fix for TROVE-2020-002, a major denial-of-service vulnerability that
2162   affected all released Tor instances since 0.2.1.5-alpha. Using this
2163   vulnerability, an attacker could cause Tor instances to consume a huge
2164   amount of CPU, disrupting their operations for several seconds or
2165   minutes. This attack could be launched by anybody against a relay, or
2166   by a directory cache against any client that had connected to it. The
2167   attacker could launch this attack as much as they wanted, thereby
2168   disrupting service or creating patterns that could aid in traffic
2169   analysis. This issue was found by OSS-Fuzz, and is also tracked
2170   as CVE-2020-10592.
2172   We do not have reason to believe that this attack is currently being
2173   exploited in the wild, but nonetheless we advise everyone to upgrade
2174   as soon as packages are available.
2176   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2177     - Fix a denial-of-service bug that could be used by anyone to
2178       consume a bunch of CPU on any Tor relay or authority, or by
2179       directories to consume a bunch of CPU on clients or hidden
2180       services. Because of the potential for CPU consumption to
2181       introduce observable timing patterns, we are treating this as a
2182       high-severity security issue. Fixes bug 33119; bugfix on
2183       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2184       as TROVE-2020-002 and CVE-2020-10592.
2186   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2187     - Correct how we use libseccomp. Particularly, stop assuming that
2188       rules are applied in a particular order or that more rules are
2189       processed after the first match. Neither is the case! In
2190       libseccomp <2.4.0 this lead to some rules having no effect.
2191       libseccomp 2.4.0 changed how rules are generated, leading to a
2192       different ordering, which in turn led to a fatal crash during
2193       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2194       Peter Gerber.
2196   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
2197     - Stop allowing failures on the Travis CI stem tests job. It looks
2198       like all the stem hangs we were seeing before are now fixed.
2199       Closes ticket 33075.
2201   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2202     - Lowercase the configured value of BridgeDistribution before adding
2203       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2205   o Minor bugfixes (crash, backport from 0.4.2.4-rc):
2206     - When running Tor with an option like --verify-config or
2207       --dump-config that does not start the event loop, avoid crashing
2208       if we try to exit early because of an error. Fixes bug 32407;
2209       bugfix on 0.3.3.1-alpha.
2211   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2212     - If we encounter a bug when flushing a buffer to a TLS connection,
2213       only log the bug once per invocation of the Tor process.
2214       Previously we would log with every occurrence, which could cause
2215       us to run out of disk space. Fixes bug 33093; bugfix
2216       on 0.3.2.2-alpha.
2218   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2219     - Fix an assertion failure that could result from a corrupted
2220       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2221       bugfix on 0.3.3.1-alpha. This issue is also tracked
2222       as TROVE-2020-003.
2224   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2225     - Fix a syntax warning given by newer versions of Rust that was
2226       creating problems for our continuous integration. Fixes bug 33212;
2227       bugfix on 0.3.5.1-alpha.
2229   o Testing (backport from 0.4.3.1-alpha):
2230     - Re-enable the Travis CI macOS Chutney build, but don't let it
2231       prevent the Travis job from finishing. (The Travis macOS jobs are
2232       slow, so we don't want to have it delay the whole CI process.)
2233       Closes ticket 32629.
2234     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2235       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2236       fix the sandbox errors in 32722. Closes ticket 32240.
2238   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2239     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2241   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2242     - Remove a redundant distcheck job. Closes ticket 33194.
2243     - Sort the Travis jobs in order of speed: putting the slowest jobs
2244       first takes full advantage of Travis job concurrency. Closes
2245       ticket 33194.
2246     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2247       previously configured to fast_finish (which requires
2248     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2249       tool to produce detailed diagnostic output. Closes ticket 32792.
2252 Changes in version 0.4.3.2-alpha - 2020-02-10
2253   This is the second stable alpha release in the Tor 0.4.3.x series. It
2254   fixes several bugs present in the previous alpha release. Anybody
2255   running the previous alpha should upgrade, and look for bugs in this
2256   one instead.
2258   o Major bugfixes (onion service client, authorization):
2259     - On a NEWNYM signal, purge entries from the ephemeral client
2260       authorization cache. The permanent ones are kept. Fixes bug 33139;
2261       bugfix on 0.4.3.1-alpha.
2263   o Minor features (best practices tracker):
2264     - Practracker now supports a --regen-overbroad option to regenerate
2265       the exceptions file, but only to revise exceptions to be _less_
2266       tolerant of best-practices violations. Closes ticket 32372.
2268   o Minor features (continuous integration):
2269     - Run Doxygen Makefile target on Travis, so we can learn about
2270       regressions in our internal documentation. Closes ticket 32455.
2271     - Stop allowing failures on the Travis CI stem tests job. It looks
2272       like all the stem hangs we were seeing before are now fixed.
2273       Closes ticket 33075.
2275   o Minor bugfixes (build system):
2276     - Revise configure options that were either missing or incorrect in
2277       the configure summary. Fixes bug 32230; bugfix on 0.4.3.1-alpha.
2279   o Minor bugfixes (controller protocol):
2280     - Fix a memory leak introduced by refactoring of control reply
2281       formatting code. Fixes bug 33039; bugfix on 0.4.3.1-alpha.
2282     - Fix a memory leak in GETINFO responses. Fixes bug 33103; bugfix
2283       on 0.4.3.1-alpha.
2284     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
2285       report them as SIGNAL events. Previously we would log a bug
2286       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
2288   o Minor bugfixes (logging):
2289     - If we encounter a bug when flushing a buffer to a TLS connection,
2290       only log the bug once per invocation of the Tor process.
2291       Previously we would log with every occurrence, which could cause
2292       us to run out of disk space. Fixes bug 33093; bugfix
2293       on 0.3.2.2-alpha.
2294     - When logging a bug, do not say "Future instances of this warning
2295       will be silenced" unless we are actually going to silence them.
2296       Previously we would say this whenever a BUG() check failed in the
2297       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
2299   o Minor bugfixes (onion service v2):
2300     - Move a series of v2 onion service warnings to protocol-warning
2301       level because they can all be triggered remotely by a malformed
2302       request. Fixes bug 32706; bugfix on 0.1.1.14-alpha.
2304   o Minor bugfixes (onion service v3, client authorization):
2305     - When removing client authorization credentials using the control
2306       port, also remove the associated descriptor, so the onion service
2307       can no longer be contacted. Fixes bug 33148; bugfix
2308       on 0.4.3.1-alpha.
2310   o Minor bugfixes (pluggable transports):
2311     - When receiving a message on standard error from a pluggable
2312       transport, log it at info level, rather than as a warning. Fixes
2313       bug 33005; bugfix on 0.4.0.1-alpha.
2315   o Minor bugfixes (rust, build):
2316     - Fix a syntax warning given by newer versions of Rust that was
2317       creating problems for our continuous integration. Fixes bug 33212;
2318       bugfix on 0.3.5.1-alpha.
2320   o Minor bugfixes (TLS bug handling):
2321     - When encountering a bug in buf_read_from_tls(), return a "MISC"
2322       error code rather than "WANTWRITE". This change might help avoid
2323       some CPU-wasting loops if the bug is ever triggered. Bug reported
2324       by opara. Fixes bug 32673; bugfix on 0.3.0.4-alpha.
2326   o Code simplification and refactoring (mainloop):
2327     - Simplify the ip_address_changed() function by removing redundant
2328       checks. Closes ticket 33091.
2330   o Documentation (manpage):
2331     - Split "Circuit Timeout" options and "Node Selection" options into
2332       their own sections of the tor manpage. Closes tickets 32928 and
2333       32929. Work by Swati Thacker as part of Google Season of Docs.
2336 Changes in version 0.4.2.6 - 2020-01-30
2337   This is the second stable release in the 0.4.2.x series. It backports
2338   several bugfixes from 0.4.3.1-alpha, including some that had affected
2339   the Linux seccomp2 sandbox or Windows services. If you're running with
2340   one of those configurations, you'll probably want to upgrade;
2341   otherwise, you should be fine with 0.4.2.5.
2343   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2344     - Correct how we use libseccomp. Particularly, stop assuming that
2345       rules are applied in a particular order or that more rules are
2346       processed after the first match. Neither is the case! In
2347       libseccomp <2.4.0 this led to some rules having no effect.
2348       libseccomp 2.4.0 changed how rules are generated, leading to a
2349       different ordering, which in turn led to a fatal crash during
2350       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2351       Peter Gerber.
2352     - Fix crash when reloading logging configuration while the
2353       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2354       0.4.1.7. Patch by Peter Gerber.
2356   o Minor bugfixes (correctness checks, backport from 0.4.3.1-alpha):
2357     - Use GCC/Clang's printf-checking feature to make sure that
2358       tor_assertf() arguments are correctly typed. Fixes bug 32765;
2359       bugfix on 0.4.1.1-alpha.
2361   o Minor bugfixes (logging, crash, backport from 0.4.3.1-alpha):
2362     - Avoid a possible crash when trying to log a (fatal) assertion
2363       failure about mismatched magic numbers in configuration objects.
2364       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
2366   o Minor bugfixes (testing, backport from 0.4.3.1-alpha):
2367     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
2368       test_practracker.sh script. Doing so caused a test failure. Fixes
2369       bug 32705; bugfix on 0.4.2.1-alpha.
2370     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
2371       skipping practracker checks. Fixes bug 32705; bugfix
2372       on 0.4.2.1-alpha.
2374   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
2375     - Initialize the publish/subscribe system when running as a windows
2376       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
2378   o Testing (backport from 0.4.3.1-alpha):
2379     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2380       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2381       fix the sandbox errors in 32722. Closes ticket 32240.
2382     - Re-enable the Travis CI macOS Chutney build, but don't let it
2383       prevent the Travis job from finishing. (The Travis macOS jobs are
2384       slow, so we don't want to have it delay the whole CI process.)
2385       Closes ticket 32629.
2387   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2388     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2391 Changes in version 0.4.1.8 - 2020-01-30
2392   This release backports several bugfixes from later release series,
2393   including some that had affected the Linux seccomp2 sandbox or Windows
2394   services. If you're running with one of those configurations, you'll
2395   probably want to upgrade; otherwise, you should be fine with your
2396   current version of 0.4.1.x.
2398   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2399     - Correct how we use libseccomp. Particularly, stop assuming that
2400       rules are applied in a particular order or that more rules are
2401       processed after the first match. Neither is the case! In
2402       libseccomp <2.4.0 this led to some rules having no effect.
2403       libseccomp 2.4.0 changed how rules are generated, leading to a
2404       different ordering, which in turn led to a fatal crash during
2405       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2406       Peter Gerber.
2407     - Fix crash when reloading logging configuration while the
2408       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2409       0.4.1.7. Patch by Peter Gerber.
2411   o Minor bugfixes (crash, backport form 0.4.2.4-rc):
2412     - When running Tor with an option like --verify-config or
2413       --dump-config that does not start the event loop, avoid crashing
2414       if we try to exit early because of an error. Fixes bug 32407;
2415       bugfix on 0.3.3.1-alpha.
2417   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
2418     - Initialize the publish/subscribe system when running as a windows
2419       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
2421   o Testing (backport from 0.4.3.1-alpha):
2422     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2423       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2424       fix the sandbox errors in 32722. Closes ticket 32240.
2425     - Re-enable the Travis CI macOS Chutney build, but don't let it
2426       prevent the Travis job from finishing. (The Travis macOS jobs are
2427       slow, so we don't want to have it delay the whole CI process.)
2428       Closes ticket 32629.
2430   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2431     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2434 Changes in version 0.4.3.1-alpha - 2020-01-22
2435   This is the first alpha release in the 0.4.3.x series. It includes
2436   improved support for application integration of onion services, support
2437   for building in a client-only mode, and newly improved internal
2438   documentation (online at https://src-ref.docs.torproject.org/tor/). It
2439   also has numerous other small bugfixes and features, as well as
2440   improvements to our code's internal organization that should help us
2441   write better code in the future.
2443   o New system requirements:
2444     - When building Tor, you now need to have Python 3 in order to run
2445       the integration tests. (Python 2 is officially unsupported
2446       upstream, as of 1 Jan 2020.) Closes ticket 32608.
2448   o Major features (build system):
2449     - The relay code can now be disabled using the --disable-module-relay
2450       configure option. When this option is set, we also disable the
2451       dirauth module. Closes ticket 32123.
2452     - When Tor is compiled --disable-module-relay, we also omit the code
2453       used to act as a directory cache. Closes ticket 32487.
2455   o Major features (directory authority, ed25519):
2456     - Add support for banning a relay's ed25519 keys in the approved-
2457       routers file. This will help us migrate away from RSA keys in the
2458       future. Previously, only RSA keys could be banned in approved-
2459       routers. Resolves ticket 22029. Patch by Neel Chauhan.
2461   o Major features (onion service, controller):
2462     - New control port commands to manage client-side onion service
2463       authorization credentials. The ONION_CLIENT_AUTH_ADD command adds
2464       a credential, ONION_CLIENT_AUTH_REMOVE deletes a credential, and
2465       ONION_CLIENT_AUTH_VIEW lists the credentials. Closes ticket 30381.
2467   o Major features (onion service, SOCKS5):
2468     - Introduce a new SocksPort flag, ExtendedErrors, to support more
2469       detailed error codes in information for applications that support
2470       them. Closes ticket 30382; implements proposal 304.
2472   o Major features (proxy):
2473     - In addition to its current supported proxy types (HTTP CONNECT,
2474       SOCKS4, and SOCKS5), Tor can now make its OR connections through a
2475       HAProxy server. A new torrc option was added to specify the
2476       address/port of the server: TCPProxy <protocol> <host>:<port>.
2477       Currently the only supported protocol for the option is haproxy.
2478       Closes ticket 31518. Patch done by Suphanat Chunhapanya (haxxpop).
2480   o Major bugfixes (linux seccomp sandbox):
2481     - Correct how we use libseccomp. Particularly, stop assuming that
2482       rules are applied in a particular order or that more rules are
2483       processed after the first match. Neither is the case! In
2484       libseccomp <2.4.0 this led to some rules having no effect.
2485       libseccomp 2.4.0 changed how rules are generated, leading to a
2486       different ordering, which in turn led to a fatal crash during
2487       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2488       Peter Gerber.
2489     - Fix crash when reloading logging configuration while the
2490       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2491       0.4.1.7. Patch by Peter Gerber.
2493   o Major bugfixes (networking):
2494     - Correctly handle IPv6 addresses in SOCKS5 RESOLVE_PTR requests,
2495       and accept strings as well as binary addresses. Fixes bug 32315;
2496       bugfix on 0.3.5.1-alpha.
2498   o Major bugfixes (onion service):
2499     - Report HS circuit failure back into the HS subsystem so we take
2500       appropriate action with regards to the client introduction point
2501       failure cache. This improves reachability of onion services, since
2502       now clients notice failing introduction circuits properly. Fixes
2503       bug 32020; bugfix on 0.3.2.1-alpha.
2505   o Minor feature (configure, build system):
2506     - Output a list of enabled/disabled features at the end of the
2507       configure process in a pleasing way. Closes ticket 31373.
2509   o Minor feature (heartbeat, onion service):
2510     - Add the DoS INTRODUCE2 defenses counter to the heartbeat DoS
2511       message. Closes ticket 31371.
2513   o Minor features (configuration validation):
2514     - Configuration validation can now be done by per-module callbacks,
2515       rather than a global validation function. This will let us reduce
2516       the size of config.c and some of its more cumbersome functions.
2517       Closes ticket 31241.
2519   o Minor features (configuration):
2520     - If a configured hardware crypto accelerator in AccelName is
2521       prefixed with "!", Tor now exits when it cannot be found. Closes
2522       ticket 32406.
2523     - We now use flag-driven logic to warn about obsolete configuration
2524       fields, so that we can include their names. In 0.4.2, we used a
2525       special type, which prevented us from generating good warnings.
2526       Implements ticket 32404.
2528   o Minor features (controller):
2529     - Add stream isolation data to STREAM event. Closes ticket 19859.
2530     - Implement a new GETINFO command to fetch microdescriptor
2531       consensus. Closes ticket 31684.
2533   o Minor features (debugging, directory system):
2534     - Don't crash when we find a non-guard with a guard-fraction value
2535       set. Instead, log a bug warning, in an attempt to figure out how
2536       this happened. Diagnostic for ticket 32868.
2538   o Minor features (defense in depth):
2539     - Add additional checks around tor_vasprintf() usage, in case the
2540       function returns an error. Patch by Tobias Stoeckmann. Fixes
2541       ticket 31147.
2543   o Minor features (developer tooling):
2544     - Remove the 0.2.9.x series branches from git scripts (git-merge-
2545       forward.sh, git-pull-all.sh, git-push-all.sh, git-setup-dirs.sh).
2546       Closes ticket 32772.
2548   o Minor features (developer tools):
2549     - Add a check_cocci_parse.sh script that checks that new code is
2550       parseable by Coccinelle. Add an exceptions file for unparseable
2551       files, and run the script from travis CI. Closes ticket 31919.
2552     - Call the check_cocci_parse.sh script from a 'check-cocci' Makefile
2553       target. Closes ticket 31919.
2554     - Add a rename_c_identifiers.py tool to rename a bunch of C
2555       identifiers at once, and generate a well-formed commit message
2556       describing the change. This should help with refactoring. Closes
2557       ticket 32237.
2558     - Add some scripts in "scripts/coccinelle" to invoke the Coccinelle
2559       semantic patching tool with the correct flags. These flags are
2560       fairly easy to forget, and these scripts should help us use
2561       Coccinelle more effectively in the future. Closes ticket 31705.
2563   o Minor features (Doxygen):
2564     - Update Doxygen configuration file to a more recent template (from
2565       1.8.15). Closes ticket 32110.
2566     - "make doxygen" now works with out-of-tree builds. Closes
2567       ticket 32113.
2568     - Make sure that doxygen outputs documentation for all of our C
2569       files. Previously, some were missing @file declarations, causing
2570       them to be ignored. Closes ticket 32307.
2571     - Our "make doxygen" target now respects --enable-fatal-warnings by
2572       default, and does not warn about items that are missing
2573       documentation. To warn about missing documentation, run configure
2574       with the "--enable-missing-doc-warnings" flag: doing so suspends
2575       fatal warnings for doxygen. Closes ticket 32385.
2577   o Minor features (git scripts):
2578     - Add TOR_EXTRA_CLONE_ARGS to git-setup-dirs.sh for git clone
2579       customisation. Closes ticket 32347.
2580     - Add git-setup-dirs.sh, which sets up an upstream git repository
2581       and worktrees for tor maintainers. Closes ticket 29603.
2582     - Add TOR_EXTRA_REMOTE_* to git-setup-dirs.sh for a custom extra
2583       remote. Closes ticket 32347.
2584     - Call the check_cocci_parse.sh script from the git commit and push
2585       hooks. Closes ticket 31919.
2586     - Make git-push-all.sh skip unchanged branches when pushing to
2587       upstream. The script already skipped unchanged test branches.
2588       Closes ticket 32216.
2589     - Make git-setup-dirs.sh create a master symlink in the worktree
2590       directory. Closes ticket 32347.
2591     - Skip unmodified source files when doing some existing git hook
2592       checks. Related to ticket 31919.
2594   o Minor features (IPv6, client):
2595     - Make Tor clients tell dual-stack exits that they prefer IPv6
2596       connections. This change is equivalent to setting the PreferIPv6
2597       flag on SOCKSPorts (and most other listener ports). Tor Browser
2598       has been setting this flag for some time, and we want to remove a
2599       client distinguisher at exits. Closes ticket 32637.
2601   o Minor features (portability, android):
2602     - When building for Android, disable some tests that depend on $HOME
2603       and/or pwdb, which Android doesn't have. Closes ticket 32825.
2604       Patch from Hans-Christoph Steiner.
2606   o Minor features (relay modularity):
2607     - Split the relay and server pluggable transport config code into
2608       separate files in the relay module. Disable this code when the
2609       relay module is disabled. Closes part of ticket 32213.
2610     - When the relay module is disabled, reject attempts to set the
2611       ORPort, DirPort, DirCache, BridgeRelay, ExtORPort, or
2612       ServerTransport* options, rather than ignoring the values of these
2613       options. Closes part of ticket 32213.
2615   o Minor features (relay):
2616     - When the relay module is disabled, change the default config so
2617       that DirCache is 0, and ClientOnly is 1. Closes ticket 32410.
2619   o Minor features (release tools):
2620     - Port our ChangeLog formatting and sorting tools to Python 3.
2621       Closes ticket 32704.
2623   o Minor features (testing):
2624     - Detect some common failure cases for test_parseconf.sh in
2625       src/test/conf_failures. Closes ticket 32451.
2626     - Allow test_parseconf.sh to test expected log outputs for successful
2627       configs, as well as failed configs. Closes ticket 32451.
2628     - The test_parseconf.sh script now supports result variants for any
2629       combination of the optional libraries lzma, nss, and zstd. Closes
2630       ticket 32397.
2632   o Minor features (tests, Android):
2633     - When running the unit tests on Android, create temporary files in
2634       a subdirectory of /data/local/tmp. Closes ticket 32172. Based on a
2635       patch from Hans-Christoph Steiner.
2637   o Minor bugfixes (bridges):
2638     - Lowercase the configured value of BridgeDistribution before adding
2639       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2641   o Minor bugfixes (build system):
2642     - Fix "make autostyle" for out-of-tree builds. Fixes bug 32370;
2643       bugfix on 0.4.1.2-alpha.
2645   o Minor bugfixes (configuration handling):
2646     - Make control_event_conf_changed() take in a config_line_t instead
2647       of a smartlist of alternating key/value entries. Fixes bug 31531;
2648       bugfix on 0.2.3.3-alpha. Patch by Neel Chauhan.
2650   o Minor bugfixes (configuration):
2651     - Check for multiplication overflow when parsing memory units inside
2652       configuration. Fixes bug 30920; bugfix on 0.0.9rc1.
2653     - When dumping the configuration, stop adding a trailing space after
2654       the option name when there is no option value. This issue only
2655       affects options that accept an empty value or list. (Most options
2656       reject empty values, or delete the entire line from the dumped
2657       options.) Fixes bug 32352; bugfix on 0.0.9pre6.
2658     - Avoid changing the user's value of HardwareAccel as stored by
2659       SAVECONF, when AccelName is set but HardwareAccel is not. Fixes
2660       bug 32382; bugfix on 0.2.2.1-alpha.
2661     - When creating a KeyDirectory with the same location as the
2662       DataDirectory (not recommended), respect the DataDirectory's
2663       group-readable setting if one has not been set for the
2664       KeyDirectory. Fixes bug 27992; bugfix on 0.3.3.1-alpha.
2666   o Minor bugfixes (controller):
2667     - In routerstatus_has_changed(), check all the fields that are
2668       output over the control port. Fixes bug 20218; bugfix
2669       on 0.1.1.11-alpha
2671   o Minor bugfixes (correctness checks):
2672     - Use GCC/Clang's printf-checking feature to make sure that
2673       tor_assertf() arguments are correctly typed. Fixes bug 32765;
2674       bugfix on 0.4.1.1-alpha.
2676   o Minor bugfixes (developer tools):
2677     - Allow paths starting with ./ in scripts/add_c_file.py. Fixes bug
2678       31336; bugfix on 0.4.1.2-alpha.
2680   o Minor bugfixes (dirauth module):
2681     - Split the dirauth config code into a separate file in the dirauth
2682       module. Disable this code when the dirauth module is disabled.
2683       Closes ticket 32213.
2684     - When the dirauth module is disabled, reject attempts to set the
2685       AuthoritativeDir option, rather than ignoring the value of the
2686       option. Fixes bug 32213; bugfix on 0.3.4.1-alpha.
2688   o Minor bugfixes (embedded Tor):
2689     - When starting Tor any time after the first time in a process,
2690       register the thread in which it is running as the main thread.
2691       Previously, we only did this on Windows, which could lead to bugs
2692       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
2693       on 0.3.3.1-alpha.
2695   o Minor bugfixes (git scripts):
2696     - Avoid sleeping before the last push in git-push-all.sh. Closes
2697       ticket 32216.
2698     - Forward all unrecognised arguments in git-push-all.sh to git push.
2699       Closes ticket 32216.
2701   o Minor bugfixes (hidden service v3):
2702     - Do not rely on a "circuit established" flag for intro circuits but
2703       instead always query the HS circuit map. This is to avoid sync
2704       issue with that flag and the map. Fixes bug 32094; bugfix
2705       on 0.3.2.1-alpha.
2707   o Minor bugfixes (logging, crash):
2708     - Avoid a possible crash when trying to log a (fatal) assertion
2709       failure about mismatched magic numbers in configuration objects.
2710       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
2712   o Minor bugfixes (onion service v2):
2713     - When sending the INTRO cell for a v2 Onion Service, look at the
2714       failure cache alongside timeout values to check if the intro point
2715       is marked as failed. Previously, we only looked at the relay
2716       timeout values. Fixes bug 25568; bugfix on 0.2.7.3-rc. Patch by
2717       Neel Chauhan.
2719   o Minor bugfixes (onion services v3, client):
2720     - Properly handle the client rendezvous circuit timeout. Previously
2721       Tor would sometimes timeout a rendezvous circuit awaiting the
2722       introduction ACK, and find itself unable to re-establish all
2723       circuits because the rendezvous circuit timed out too early. Fixes
2724       bug 32021; bugfix on 0.3.2.1-alpha.
2726   o Minor bugfixes (onion services):
2727     - In cancel_descriptor_fetches(), use
2728       connection_list_by_type_purpose() instead of
2729       connection_list_by_type_state(). Fixes bug 32639; bugfix on
2730       0.3.2.1-alpha. Patch by Neel Chauhan.
2732   o Minor bugfixes (scripts):
2733     - Fix update_versions.py for out-of-tree builds. Fixes bug 32371;
2734       bugfix on 0.4.0.1-alpha.
2736   o Minor bugfixes (test):
2737     - Use the same code to find the tor binary in all of our test
2738       scripts. This change makes sure we are always using the coverage
2739       binary when coverage is enabled. Fixes bug 32368; bugfix
2740       on 0.2.7.3-rc.
2742   o Minor bugfixes (testing):
2743     - Stop ignoring "tor --dump-config" errors in test_parseconf.sh.
2744       Fixes bug 32468; bugfix on 0.4.2.1-alpha.
2745     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
2746       test_practracker.sh script. Doing so caused a test failure. Fixes
2747       bug 32705; bugfix on 0.4.2.1-alpha.
2748     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
2749       skipping practracker checks. Fixes bug 32705; bugfix
2750       on 0.4.2.1-alpha.
2752   o Minor bugfixes (tests):
2753     - Our option-validation tests no longer depend on specially
2754       configured non-default, non-passing sets of options. Previously,
2755       the tests had been written to assume that options would _not_ be
2756       set to their defaults, which led to needless complexity and
2757       verbosity. Fixes bug 32175; bugfix on 0.2.8.1-alpha.
2759   o Minor bugfixes (windows service):
2760     - Initialize the publish/subscribe system when running as a windows
2761       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
2763   o Deprecated features:
2764     - Deprecate the ClientAutoIPv6ORPort option. This option was not
2765       true "Happy Eyeballs", and often failed on connections that
2766       weren't reliably dual-stack. Closes ticket 32942. Patch by
2767       Neel Chauhan.
2769   o Documentation:
2770     - Provide a quickstart guide for a Circuit Padding Framework, and
2771       documentation for researchers to implement and study circuit
2772       padding machines. Closes ticket 28804.
2773     - Add documentation in 'HelpfulTools.md' to describe how to build a
2774       tag file. Closes ticket 32779.
2775     - Create a high-level description of the long-term software
2776       architecture goals. Closes ticket 32206.
2777     - Describe the --dump-config command in the manual page. Closes
2778       ticket 32467.
2779     - Unite coding advice from this_not_that.md in torguts repo into our
2780       coding standards document. Resolves ticket 31853.
2782   o Removed features:
2783     - Our Doxygen configuration no longer generates LaTeX output. The
2784       reference manual produced by doing this was over 4000 pages long,
2785       and generally unusable. Closes ticket 32099.
2786     - The option "TestingEstimatedDescriptorPropagationTime" is now
2787       marked as obsolete. It has had no effect since 0.3.0.7, when
2788       clients stopped rejecting consensuses "from the future". Closes
2789       ticket 32807.
2790     - We no longer support consensus methods before method 28; these
2791       methods were only used by authorities running versions of Tor that
2792       are now at end-of-life. In effect, this means that clients,
2793       relays, and authorities now assume that authorities will be
2794       running version 0.3.5.x or later. Closes ticket 32695.
2796   o Testing:
2797     - Add more test cases for tor's UTF-8 validation function. Also,
2798       check the arguments passed to the function for consistency. Closes
2799       ticket 32845.
2800     - Improve test coverage for relay and dirauth config code, focusing
2801       on option validation and normalization. Closes ticket 32213.
2802     - Improve the consistency of test_parseconf.sh output, and run all
2803       the tests, even if one fails. Closes ticket 32213.
2804     - Re-enable the Travis CI macOS Chutney build, but don't let it
2805       prevent the Travis job from finishing. (The Travis macOS jobs are
2806       slow, so we don't want to have it delay the whole CI process.)
2807       Closes ticket 32629.
2808     - Run the practracker unit tests in the pre-commit git hook. Closes
2809       ticket 32609.
2810     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2811       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2812       fix the sandbox errors in 32722. Closes ticket 32240.
2814   o Code simplification and refactoring (channel):
2815     - Channel layer had a variable length cell handler that was not used
2816       and thus removed. Closes ticket 32892.
2818   o Code simplification and refactoring (configuration):
2819     - Immutability is now implemented as a flag on individual
2820       configuration options rather than as part of the option-transition
2821       checking code. Closes ticket 32344.
2822     - Instead of keeping a list of configuration options to check for
2823       relative paths, check all the options whose type is "FILENAME".
2824       Solves part of ticket 32339.
2825     - Our default log (which ordinarily sends NOTICE-level messages to
2826       standard output) is now handled in a more logical manner.
2827       Previously, we replaced the configured log options if they were
2828       empty. Now, we interpret an empty set of log options as meaning
2829       "use the default log". Closes ticket 31999.
2830     - Remove some unused arguments from the options_validate() function,
2831       to simplify our code and tests. Closes ticket 32187.
2832     - Simplify the options_validate() code so that it looks at the
2833       default options directly, rather than taking default options as an
2834       argument. This change lets us simplify its interface. Closes
2835       ticket 32185.
2836     - Use our new configuration architecture to move most authority-
2837       related options to the directory authority module. Closes
2838       ticket 32806.
2839     - When parsing the command line, handle options that determine our
2840       "quiet level" and our mode of operation (e.g., --dump-config and
2841       so on) all in one table. Closes ticket 32003.
2843   o Code simplification and refactoring (controller):
2844     - Create a new abstraction for formatting control protocol reply
2845       lines based on key-value pairs. Refactor some existing control
2846       protocol code to take advantage of this. Closes ticket 30984.
2847     - Create a helper function that can fetch network status or
2848       microdesc consensuses. Closes ticket 31684.
2850   o Code simplification and refactoring (dirauth modularization):
2851     - Remove the last remaining HAVE_MODULE_DIRAUTH inside a function.
2852       Closes ticket 32163.
2853     - Replace some confusing identifiers in process_descs.c. Closes
2854       ticket 29826.
2855     - Simplify some relay and dirauth config code. Closes ticket 32213.
2857   o Code simplification and refactoring (misc):
2858     - Make all the structs we declare follow the same naming convention
2859       of ending with "_t". Closes ticket 32415.
2860     - Move and rename some configuration-related code for clarity.
2861       Closes ticket 32304.
2862     - Our include.am files are now broken up by subdirectory.
2863       Previously, src/core/include.am covered all of the subdirectories
2864       in "core", "feature", and "app". Closes ticket 32137.
2865     - Remove underused NS*() macros from test code: they make our tests
2866       more confusing, especially for code-formatting tools. Closes
2867       ticket 32887.
2869   o Code simplification and refactoring (relay modularization):
2870     - Disable relay_periodic when the relay module is disabled. Closes
2871       ticket 32244.
2872     - Disable relay_sys when the relay module is disabled. Closes
2873       ticket 32245.
2875   o Code simplification and refactoring (tool support):
2876     - Add numerous missing dependencies to our include files, so that
2877       they can be included in different reasonable orders and still
2878       compile. Addresses part of ticket 32764.
2879     - Fix some parts of our code that were difficult for Coccinelle to
2880       parse. Related to ticket 31705.
2881     - Fix some small issues in our code that prevented automatic
2882       formatting tools from working. Addresses part of ticket 32764.
2884   o Documentation (manpage):
2885     - Alphabetize the Client Options section of the tor manpage. Closes
2886       ticket 32846.
2887     - Alphabetize the General Options section of the tor manpage. Closes
2888       ticket 32708.
2889     - In the tor(1) manpage, reword and improve formatting of the
2890       COMMAND-LINE OPTIONS and DESCRIPTION sections. Closes ticket
2891       32277. Based on work by Swati Thacker as part of Google Season
2892       of Docs.
2893     - In the tor(1) manpage, reword and improve formatting of the FILES,
2894       SEE ALSO, and BUGS sections. Closes ticket 32176. Based on work by
2895       Swati Thacker as part of Google Season of Docs.
2897   o Testing (circuit, EWMA):
2898     - Add unit tests for circuitmux and EWMA subsystems. Closes
2899       ticket 32196.
2901   o Testing (continuous integration):
2902     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2905 Changes in version 0.4.2.5 - 2019-12-09
2906   This is the first stable release in the 0.4.2.x series. This series
2907   improves reliability and stability, and includes several stability and
2908   correctness improvements for onion services. It also fixes many smaller
2909   bugs present in previous series.
2911   Per our support policy, we will support the 0.4.2.x series for nine
2912   months, or until three months after the release of a stable 0.4.3.x:
2913   whichever is longer. If you need longer-term support, please stick
2914   with 0.3.5.x, which will we plan to support until Feb 2022.
2916   Per our support policy, we will support the 0.4.2.x series for nine
2917   months, or until three months after the release of a stable 0.4.3.x:
2918   whichever is longer. If you need longer-term support, please stick
2919   with 0.3.5.x, which will we plan to support until Feb 2022.
2921   Below are the changes since 0.4.1.4-rc. For a complete list of changes
2922   since 0.4.1.5, see the ReleaseNotes file.
2924   o Minor features (geoip):
2925     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
2926       Country database. Closes ticket 32685.
2928   o Testing:
2929     - Require C99 standards-conforming code in Travis CI, but allow GNU
2930       gcc extensions. Also activates clang's -Wtypedef-redefinition
2931       warnings. Build some jobs with -std=gnu99, and some jobs without.
2932       Closes ticket 32500.
2935 Changes in version 0.4.1.7 - 2019-12-09
2936   This release backports several bugfixes to improve stability and
2937   correctness.  Anyone experiencing build problems or crashes with 0.4.1.6,
2938   including all relays relying on AccountingMax, should upgrade.
2940   o Major features (directory authorities, backport from 0.4.2.2-alpha):
2941     - Directory authorities now reject relays running all currently
2942       deprecated release series. The currently supported release series
2943       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
2945   o Major bugfixes (embedded Tor, backport from 0.4.2.2-alpha):
2946     - Avoid a possible crash when restarting Tor in embedded mode and
2947       enabling a different set of publish/subscribe messages. Fixes bug
2948       31898; bugfix on 0.4.1.1-alpha.
2950   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
2951     - Relays now respect their AccountingMax bandwidth again. When
2952       relays entered "soft" hibernation (which typically starts when
2953       we've hit 90% of our AccountingMax), we had stopped checking
2954       whether we should enter hard hibernation. Soft hibernation refuses
2955       new connections and new circuits, but the existing circuits can
2956       continue, meaning that relays could have exceeded their configured
2957       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
2959   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
2960     - Stop ignoring torrc options after an %include directive, when the
2961       included directory ends with a file that does not contain any
2962       config options (but does contain comments or whitespace). Fixes
2963       bug 31408; bugfix on 0.3.1.1-alpha.
2965   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
2966     - Onion services now always use the exact number of intro points
2967       configured with the HiddenServiceNumIntroductionPoints option (or
2968       fewer if nodes are excluded). Before, a service could sometimes
2969       pick more intro points than configured. Fixes bug 31548; bugfix
2970       on 0.3.2.1-alpha.
2972   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
2973     - When building on Appveyor and Travis, pass the "-k" flag to make,
2974       so that we are informed of all compilation failures, not just the
2975       first one or two. Closes ticket 31372.
2977   o Minor features (geoip, backport from 0.4.2.5):
2978     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
2979       Country database. Closes ticket 32685.
2981   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
2982     - Avoid spurious errors when Appveyor CI fails before the install step.
2983       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
2985   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
2986     - Fix a BUG() assertion that occurs within a very small race window
2987       between when a client intro circuit opens and when its descriptor
2988       gets cleaned up from the cache. The circuit is now closed early,
2989       which will trigger a re-fetch of the descriptor and continue the
2990       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
2992   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
2993     - Avoid trying to read data from closed connections, which can cause
2994       needless loops in Libevent and infinite loops in Shadow. Fixes bug
2995       30344; bugfix on 0.1.1.1-alpha.
2997   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
2998     - On abort, try harder to flush the output buffers of log messages.
2999       On some platforms (macOS), log messages could be discarded when
3000       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3001     - Report the tor version whenever an assertion fails. Previously, we
3002       only reported the Tor version on some crashes, and some non-fatal
3003       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3004     - When tor aborts due to an error, close log file descriptors before
3005       aborting. Closing the logs makes some OSes flush log file buffers,
3006       rather than deleting buffered log lines. Fixes bug 31594; bugfix
3007       on 0.2.5.2-alpha.
3009   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
3010     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
3011       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
3012     - Disable backtrace signal handlers when shutting down tor. Fixes
3013       bug 31614; bugfix on 0.2.5.2-alpha.
3014     - Rate-limit our the logging message about the obsolete .exit
3015       notation. Previously, there was no limit on this warning, which
3016       could potentially be triggered many times by a hostile website.
3017       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
3019   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
3020     - Do not log a nonfatal assertion failure when receiving a VERSIONS
3021       cell on a connection using the obsolete v1 link protocol. Log a
3022       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
3024   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
3025     - Reset the periodic events' "enabled" flag when Tor is shut down
3026       cleanly. Previously, this flag was left on, which caused periodic
3027       events not to be re-enabled when Tor was relaunched in-process
3028       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
3029       on 0.3.3.1-alpha.
3031   o Minor bugfixes (multithreading, backport from 0.4.2.2-alpha):
3032     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
3033       31736; bugfix on 0.0.7.
3035   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
3036     - Remove overly strict assertions that triggered when a pluggable
3037       transport failed to launch. Fixes bug 31091; bugfix
3038       on 0.4.0.1-alpha.
3039     - Remove an assertion in the Unix process backend. This assertion
3040       would trigger when we failed to find the executable for a child
3041       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
3043   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
3044     - Avoid crashing when starting with a corrupt keys directory where
3045       the old ntor key and the new ntor key are identical. Fixes bug
3046       30916; bugfix on 0.2.4.8-alpha.
3048   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
3049     - When testing port rebinding, don't busy-wait for tor to log.
3050       Instead, actually sleep for a short time before polling again.
3051       Also improve the formatting of control commands and log messages.
3052       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
3054   o Minor bugfixes (tests, SunOS, backport from 0.4.2.2-alpha):
3055     - Avoid a map_anon_nofork test failure due to a signed/unsigned
3056       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
3058   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
3059     - Log bugs about the TLS read buffer's length only once, rather than
3060       filling the logs with similar warnings. Fixes bug 31939; bugfix
3061       on 0.3.0.4-rc.
3063   o Documentation (backport from 0.4.2.2-alpha):
3064     - Explain why we can't destroy the backtrace buffer mutex. Explain
3065       why we don't need to destroy the log mutex. Closes ticket 31736.
3067   o Testing (continuous integration, backport from 0.4.2.3-alpha):
3068     - Disable all but one Travis CI macOS build, to mitigate slow
3069       scheduling of Travis macOS jobs. Closes ticket 32177.
3070     - Run the chutney IPv6 networks as part of Travis CI. Closes
3071       ticket 30860.
3072     - Simplify the Travis CI build matrix, and optimise for build time.
3073       Closes ticket 31859.
3074     - Use Windows Server 2019 instead of Windows Server 2016 in our
3075       Appveyor builds. Closes ticket 32086.
3077   o Testing (continuous integration, backport from 0.4.2.4-rc):
3078     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
3079     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
3080       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
3081       until we can fix some Bionic permissions issues (see ticket
3082       32240). Related to ticket 31919.
3083     - Install the mingw OpenSSL package in Appveyor. This makes sure
3084       that the OpenSSL headers and libraries match in Tor's Appveyor
3085       builds. (This bug was triggered by an Appveyor image update.)
3086       Fixes bug 32449; bugfix on 0.3.5.6-rc.
3088   o Testing (continuous integration, backport from 0.4.2.5):
3089     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
3090       extensions. Also activates clang's -Wtypedef-redefinition warnings.
3091       Build some jobs with -std=gnu99, and some jobs without.
3092       Closes ticket 32500.
3095 Changes in version 0.4.0.6 - 2019-12-09
3096   This is the second stable release in the 0.4.0.x series. This release
3097   backports several bugfixes to improve stability and correctness.  Anyone
3098   experiencing build problems or crashes with 0.4.0.5, including all relays
3099   relying on AccountingMax, should upgrade.
3101   Note that, per our support policy, support for the 0.4.0.x series will end
3102   on 2 Feb 2020.  Anyone still running 0.4.0.x should plan to upgrade to the
3103   latest stable release, or downgrade to 0.3.5.x, which will get long-term
3104   support until 1 Feb 2022.
3106   o Directory authority changes (backport from 0.4.1.5):
3107     - The directory authority "dizum" has a new IP address. Closes
3108       ticket 31406.
3110   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
3111     - Consider our directory information to have changed when our list
3112       of bridges changes. Previously, Tor would not re-compute the
3113       status of its directory information when bridges changed, and
3114       therefore would not realize that it was no longer able to build
3115       circuits. Fixes part of bug 29875.
3116     - Do not count previously configured working bridges towards our
3117       total of working bridges. Previously, when Tor's list of bridges
3118       changed, it would think that the old bridges were still usable,
3119       and delay fetching router descriptors for the new ones. Fixes part
3120       of bug 29875; bugfix on 0.3.0.1-alpha.
3122   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
3123     - When considering upgrading circuits from "waiting for guard" to
3124       "open", always ignore circuits that are marked for close. Otherwise,
3125       we can end up in the situation where a subsystem is notified that
3126       a closing circuit has just opened, leading to undesirable
3127       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
3129   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
3130     - Properly clean up the introduction point map when circuits change
3131       purpose from onion service circuits to pathbias, measurement, or
3132       other circuit types. This should fix some service-side instances
3133       of introduction point failure. Fixes bug 29034; bugfix
3134       on 0.3.2.1-alpha.
3136   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
3137     - Fix an unreachable bug in which an introduction point could try to
3138       send an INTRODUCE_ACK with a status code that Trunnel would refuse
3139       to encode, leading the relay to assert(). We've consolidated the
3140       ABI values into Trunnel now. Fixes bug 30454; bugfix
3141       on 0.3.0.1-alpha.
3142     - Clients can now handle unknown status codes from INTRODUCE_ACK
3143       cells. (The NACK behavior will stay the same.) This will allow us
3144       to extend status codes in the future without breaking the normal
3145       client behavior. Fixes another part of bug 30454; bugfix
3146       on 0.3.0.1-alpha.
3148   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
3149     - Relays now respect their AccountingMax bandwidth again. When
3150       relays entered "soft" hibernation (which typically starts when
3151       we've hit 90% of our AccountingMax), we had stopped checking
3152       whether we should enter hard hibernation. Soft hibernation refuses
3153       new connections and new circuits, but the existing circuits can
3154       continue, meaning that relays could have exceeded their configured
3155       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
3157   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
3158     - Stop ignoring torrc options after an %include directive, when the
3159       included directory ends with a file that does not contain any
3160       config options (but does contain comments or whitespace). Fixes
3161       bug 31408; bugfix on 0.3.1.1-alpha.
3163   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
3164     - Onion services now always use the exact number of intro points
3165       configured with the HiddenServiceNumIntroductionPoints option (or
3166       fewer if nodes are excluded). Before, a service could sometimes
3167       pick more intro points than configured. Fixes bug 31548; bugfix
3168       on 0.3.2.1-alpha.
3170   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
3171     - Add a "--list-modules" command to print a list of which compile-
3172       time modules are enabled. Closes ticket 30452.
3174   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
3175     - Remove sudo configuration lines from .travis.yml as they are no
3176       longer needed with current Travis build environment. Resolves
3177       issue 30213.
3179   o Minor features (continuous integration, backport from 0.4.1.4-rc):
3180     - Our Travis configuration now uses Chutney to run some network
3181       integration tests automatically. Closes ticket 29280.
3183   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
3184     - When building on Appveyor and Travis, pass the "-k" flag to make,
3185       so that we are informed of all compilation failures, not just the
3186       first one or two. Closes ticket 31372.
3188   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
3189     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
3190       in December 2018 (of which ~122 were still functional), with a
3191       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
3192       in June 2019. Closes ticket 28795.
3194   o Minor features (geoip, backport from 0.4.2.5):
3195     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3196       Country database. Closes ticket 32685.
3198   o Minor features (stem tests, backport from 0.4.2.1-alpha):
3199     - Change "make test-stem" so it only runs the stem tests that use
3200       tor. This change makes test-stem faster and more reliable. Closes
3201       ticket 31554.
3203   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
3204     - Avoid spurious errors when Appveyor CI fails before the install step.
3205       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
3207   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
3208     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
3209       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
3211   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
3212     - Fix a logic error that prevented the SessionGroup sub-option from
3213       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
3215   o Minor bugfixes (circuit padding, backport from 0.4.1.4-rc):
3216     - On relays, properly check that a padding machine is absent before
3217       logging a warning about it being absent. Fixes bug 30649; bugfix
3218       on 0.4.0.1-alpha.
3220   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
3221     - Fix a BUG() assertion that occurs within a very small race window
3222       between when a client intro circuit opens and when its descriptor
3223       gets cleaned up from the cache. The circuit is now closed early,
3224       which will trigger a re-fetch of the descriptor and continue the
3225       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
3227   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
3228     - Don't believe clock skew results from NETINFO cells that appear to
3229       arrive before we sent the VERSIONS cells they are responding to.
3230       Previously, we would accept them up to 3 minutes "in the past".
3231       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3233   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
3234     - Fix a compilation warning on Windows about casting a function
3235       pointer for GetTickCount64(). Fixes bug 31374; bugfix
3236       on 0.2.9.1-alpha.
3238   o Minor bugfixes (compilation, backport from 0.4.1.5):
3239     - Avoid using labs() on time_t, which can cause compilation warnings
3240       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3242   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
3243     - Suppress spurious float-conversion warnings from GCC when calling
3244       floating-point classifier functions on FreeBSD. Fixes part of bug
3245       31687; bugfix on 0.3.1.5-alpha.
3247   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
3248     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
3249       due to missing declarations of abort(), and prevent other such
3250       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
3252   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
3253     - Fix a bug that prevented us from supporting SOCKS5 proxies that
3254       want authentication along with configured (but unused!)
3255       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
3257   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
3258     - Avoid trying to read data from closed connections, which can cause
3259       needless loops in Libevent and infinite loops in Shadow. Fixes bug
3260       30344; bugfix on 0.1.1.1-alpha.
3262   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
3263     - Allow the test-stem job to fail in Travis, because it sometimes
3264       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
3265     - Skip test_rebind on macOS in Travis, because it is unreliable on
3266       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3267     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
3268       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3270   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
3271     - Avoid a set of possible code paths that could try to use freed
3272       memory in routerlist_free() while Tor was exiting. Fixes bug
3273       31003; bugfix on 0.1.2.2-alpha.
3275   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
3276     - Stop crashing after parsing an unknown descriptor purpose
3277       annotation. We think this bug can only be triggered by modifying a
3278       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
3280   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
3281     - Move the "bandwidth-file-headers" line in directory authority
3282       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
3283       on 0.3.5.1-alpha.
3285   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
3286     - On abort, try harder to flush the output buffers of log messages.
3287       On some platforms (macOS), log messages could be discarded when
3288       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3289     - Report the tor version whenever an assertion fails. Previously, we
3290       only reported the Tor version on some crashes, and some non-fatal
3291       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3293   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
3294     - When extracting an IPv6 address from a PF-based proxy, verify that
3295       we are actually configured to receive an IPv6 address, and log an
3296       internal error if not. Fixes part of bug 31687; bugfix
3297       on 0.2.3.4-alpha.
3299   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
3300     - When tor is missing descriptors for some primary entry guards,
3301       make the log message less alarming. It's normal for descriptors to
3302       expire, as long as tor fetches new ones soon after. Fixes bug
3303       31657; bugfix on 0.3.3.1-alpha.
3305   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
3306     - Do not log a warning when running with an OpenSSL version other
3307       than the one Tor was compiled with, if the two versions should be
3308       compatible. Previously, we would warn whenever the version was
3309       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
3311   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
3312     - Change log level of message "Hash of session info was not as
3313       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
3314       on 0.1.1.10-alpha.
3316   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
3317     - Rate-limit our the logging message about the obsolete .exit
3318       notation. Previously, there was no limit on this warning, which
3319       could potentially be triggered many times by a hostile website.
3320       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
3322   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
3323     - Do not log a nonfatal assertion failure when receiving a VERSIONS
3324       cell on a connection using the obsolete v1 link protocol. Log a
3325       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
3327   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
3328     - Reset the periodic events' "enabled" flag when Tor is shut down
3329       cleanly. Previously, this flag was left on, which caused periodic
3330       events not to be re-enabled when Tor was relaunched in-process
3331       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
3332       on 0.3.3.1-alpha.
3334   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
3335     - Avoid a minor memory leak that could occur on relays when failing
3336       to create a "keys" directory. Fixes bug 30148; bugfix
3337       on 0.3.3.1-alpha.
3339   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
3340     - Fix a trivial memory leak when parsing an invalid value
3341       from a download schedule in the configuration. Fixes bug
3342       30894; bugfix on 0.3.4.1-alpha.
3344   o Minor bugfixes (NetBSD, backport from 0.4.1.2-alpha):
3345     - Fix usage of minherit() on NetBSD and other platforms that define
3346       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
3347       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
3349   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
3350     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
3351       implemenation) when failing to load an onion service client
3352       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
3354   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
3355     - When purging the DNS cache because of an out-of-memory condition,
3356       try purging just the older entries at first. Previously, we would
3357       always purge the whole thing. Fixes bug 29617; bugfix
3358       on 0.3.5.1-alpha.
3360   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
3361     - Avoid crashing in our tor_vasprintf() implementation on systems
3362       that define neither vasprintf() nor _vscprintf(). (This bug has
3363       been here long enough that we question whether people are running
3364       Tor on such systems, but we're applying the fix out of caution.)
3365       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
3366       Tobias Stoeckmann.
3368   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
3369     - Remove overly strict assertions that triggered when a pluggable
3370       transport failed to launch. Fixes bug 31091; bugfix
3371       on 0.4.0.1-alpha.
3372     - Remove an assertion in the Unix process backend. This assertion
3373       would trigger when we failed to find the executable for a child
3374       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
3376   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
3377     - Avoid crashing when starting with a corrupt keys directory where
3378       the old ntor key and the new ntor key are identical. Fixes bug
3379       30916; bugfix on 0.2.4.8-alpha.
3381   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
3382     - Correctly exclude a redundant rust build job in Travis. Fixes bug
3383       31463; bugfix on 0.3.5.4-alpha.
3385   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
3386     - When testing port rebinding, don't busy-wait for tor to log.
3387       Instead, actually sleep for a short time before polling again.
3388       Also improve the formatting of control commands and log messages.
3389       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
3391   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
3392     - Log bugs about the TLS read buffer's length only once, rather than
3393       filling the logs with similar warnings. Fixes bug 31939; bugfix
3394       on 0.3.0.4-rc.
3396   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
3397     - Always retry v2 single onion service intro and rend circuits with
3398       a 3-hop path. Previously, v2 single onion services used a 3-hop
3399       path when rendezvous circuits were retried after a remote or
3400       delayed failure, but a 1-hop path for immediate retries. Fixes bug
3401       23818; bugfix on 0.2.9.3-alpha.
3402     - Make v3 single onion services fall back to a 3-hop intro, when all
3403       intro points are unreachable via a 1-hop path. Previously, v3
3404       single onion services failed when all intro nodes were unreachable
3405       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
3407   o Documentation (backport from 0.4.2.1-alpha):
3408     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
3409       notice.html so that operators no longer have to host it
3410       themselves. Closes ticket 31089.
3412   o Testing (backport from 0.4.1.2-alpha):
3413     - Specify torrc paths (with empty files) when launching tor in
3414       integration tests; refrain from reading user and system torrcs.
3415       Resolves issue 29702.
3417   o Testing (continuous integration, backport from 0.4.1.1-alpha):
3418     - In Travis, show stem's tor log after failure. Closes ticket 30234.
3420   o Testing (continuous integration, backport from 0.4.1.5):
3421     - In Travis, make stem log a controller trace to the console, and
3422       tail stem's tor log after failure. Closes ticket 30591.
3423     - In Travis, only run the stem tests that use a tor binary. Closes
3424       ticket 30694.
3426   o Testing (continuous integration, backport from 0.4.2.3-alpha):
3427     - Disable all but one Travis CI macOS build, to mitigate slow
3428       scheduling of Travis macOS jobs. Closes ticket 32177.
3429     - Run the chutney IPv6 networks as part of Travis CI. Closes
3430       ticket 30860.
3431     - Simplify the Travis CI build matrix, and optimise for build time.
3432       Closes ticket 31859.
3433     - Use Windows Server 2019 instead of Windows Server 2016 in our
3434       Appveyor builds. Closes ticket 32086.
3436   o Testing (continuous integration, backport from 0.4.2.4-rc):
3437     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
3438       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
3439       until we can fix some Bionic permissions issues (see ticket
3440       32240). Related to ticket 31919.
3441     - Install the mingw OpenSSL package in Appveyor. This makes sure
3442       that the OpenSSL headers and libraries match in Tor's Appveyor
3443       builds. (This bug was triggered by an Appveyor image update.)
3444       Fixes bug 32449; bugfix on 0.3.5.6-rc.
3445     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
3447   o Testing (continuous integration, backport from 0.4.2.5):
3448     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
3449       extensions. Also activates clang's -Wtypedef-redefinition warnings.
3450       Build some jobs with -std=gnu99, and some jobs without.
3451       Closes ticket 32500.
3453 Changes in version 0.3.5.9 - 2019-12-09
3454   Tor 0.3.5.9 backports serveral fixes from later releases, including
3455   several that affect bridge users, relay stability, onion services,
3456   and much more.
3458   o Directory authority changes (backport from 0.4.1.5):
3459     - The directory authority "dizum" has a new IP address. Closes
3460       ticket 31406.
3462   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
3463     - Consider our directory information to have changed when our list
3464       of bridges changes. Previously, Tor would not re-compute the
3465       status of its directory information when bridges changed, and
3466       therefore would not realize that it was no longer able to build
3467       circuits. Fixes part of bug 29875.
3468     - Do not count previously configured working bridges towards our
3469       total of working bridges. Previously, when Tor's list of bridges
3470       changed, it would think that the old bridges were still usable,
3471       and delay fetching router descriptors for the new ones. Fixes part
3472       of bug 29875; bugfix on 0.3.0.1-alpha.
3474   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
3475     - When considering upgrading circuits from "waiting for guard" to
3476       "open", always ignore circuits that are marked for close. Otherwise,
3477       we can end up in the situation where a subsystem is notified that
3478       a closing circuit has just opened, leading to undesirable
3479       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
3481   o Major bugfixes (NSS, relay, backport from 0.4.0.4-rc):
3482     - When running with NSS, disable TLS 1.2 ciphersuites that use
3483       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
3484       these ciphersuites don't work -- which caused relays to fail to
3485       handshake with one another when these ciphersuites were enabled.
3486       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
3488   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
3489     - Properly clean up the introduction point map when circuits change
3490       purpose from onion service circuits to pathbias, measurement, or
3491       other circuit types. This should fix some service-side instances
3492       of introduction point failure. Fixes bug 29034; bugfix
3493       on 0.3.2.1-alpha.
3495   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
3496     - Fix an unreachable bug in which an introduction point could try to
3497       send an INTRODUCE_ACK with a status code that Trunnel would refuse
3498       to encode, leading the relay to assert(). We've consolidated the
3499       ABI values into Trunnel now. Fixes bug 30454; bugfix
3500       on 0.3.0.1-alpha.
3501     - Clients can now handle unknown status codes from INTRODUCE_ACK
3502       cells. (The NACK behavior will stay the same.) This will allow us
3503       to extend status codes in the future without breaking the normal
3504       client behavior. Fixes another part of bug 30454; bugfix
3505       on 0.3.0.1-alpha.
3507   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
3508     - Stop ignoring torrc options after an %include directive, when the
3509       included directory ends with a file that does not contain any
3510       config options (but does contain comments or whitespace). Fixes
3511       bug 31408; bugfix on 0.3.1.1-alpha.
3513   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
3514     - Onion services now always use the exact number of intro points
3515       configured with the HiddenServiceNumIntroductionPoints option (or
3516       fewer if nodes are excluded). Before, a service could sometimes
3517       pick more intro points than configured. Fixes bug 31548; bugfix
3518       on 0.3.2.1-alpha.
3520   o Minor features (address selection, backport from 0.4.0.3-alpha):
3521     - Treat the subnet 100.64.0.0/10 as public for some purposes;
3522       private for others. This subnet is the RFC 6598 (Carrier Grade
3523       NAT) IP range, and is deployed by many ISPs as an alternative to
3524       RFC 1918 that does not break existing internal networks. Tor now
3525       blocks SOCKS and control ports on these addresses and warns users
3526       if client ports or ExtORPorts are listening on a RFC 6598 address.
3527       Closes ticket 28525. Patch by Neel Chauhan.
3529   o Minor features (bandwidth authority, backport from 0.4.0.4-rc):
3530     - Make bandwidth authorities ignore relays that are reported in the
3531       bandwidth file with the flag "vote=0". This change allows us to
3532       report unmeasured relays for diagnostic reasons without including
3533       their bandwidth in the bandwidth authorities' vote. Closes
3534       ticket 29806.
3536   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
3537     - Add a "--list-modules" command to print a list of which compile-
3538       time modules are enabled. Closes ticket 30452.
3540   o Minor features (continuous integration, backport from 0.4.0.4-rc):
3541     - On Travis Rust builds, cleanup Rust registry and refrain from
3542       caching the "target/" directory to speed up builds. Resolves
3543       issue 29962.
3545   o Minor features (continuous integration, backport from 0.4.0.5):
3546     - In Travis, tell timelimit to use stem's backtrace signals, and
3547       launch python directly from timelimit, so python receives the
3548       signals from timelimit, rather than make. Closes ticket 30117.
3550   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
3551     - Remove sudo configuration lines from .travis.yml as they are no
3552       longer needed with current Travis build environment. Resolves
3553       issue 30213.
3555   o Minor features (continuous integration, backport from 0.4.1.4-rc):
3556     - Our Travis configuration now uses Chutney to run some network
3557       integration tests automatically. Closes ticket 29280.
3559   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
3560     - When building on Appveyor and Travis, pass the "-k" flag to make,
3561       so that we are informed of all compilation failures, not just the
3562       first one or two. Closes ticket 31372.
3564   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
3565     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
3566       in December 2018 (of which ~122 were still functional), with a
3567       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
3568       in June 2019. Closes ticket 28795.
3570   o Minor features (geoip, backport from 0.4.2.5):
3571     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3572       Country database. Closes ticket 32685.
3574   o Minor features (NSS, diagnostic, backport from 0.4.0.4-rc):
3575     - Try to log an error from NSS (if there is any) and a more useful
3576       description of our situation if we are using NSS and a call to
3577       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
3579   o Minor features (stem tests, backport from 0.4.2.1-alpha):
3580     - Change "make test-stem" so it only runs the stem tests that use
3581       tor. This change makes test-stem faster and more reliable. Closes
3582       ticket 31554.
3584   o Minor bugfixes (security, backport from 0.4.0.4-rc):
3585     - Verify in more places that we are not about to create a buffer
3586       with more than INT_MAX bytes, to avoid possible OOB access in the
3587       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
3588       fixed by Tobias Stoeckmann.
3589     - Fix a potential double free bug when reading huge bandwidth files.
3590       The issue is not exploitable in the current Tor network because
3591       the vulnerable code is only reached when directory authorities
3592       read bandwidth files, but bandwidth files come from a trusted
3593       source (usually the authorities themselves). Furthermore, the
3594       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
3595       which are not used by any of the current authorities. Fixes bug
3596       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
3597       Tobias Stoeckmann.
3599   o Minor bugfix (continuous integration, backport from 0.4.0.4-rc):
3600     - Reset coverage state on disk after Travis CI has finished. This
3601       should prevent future coverage merge errors from causing the test
3602       suite for the "process" subsystem to fail. The process subsystem
3603       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
3604       on 0.2.9.15.
3605     - Terminate test-stem if it takes more than 9.5 minutes to run.
3606       (Travis terminates the job after 10 minutes of no output.)
3607       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
3609   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
3610     - Avoid spurious errors when Appveyor CI fails before the install step.
3611       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
3613   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
3614     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
3615       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
3617   o Minor bugfixes (C correctness, backport from 0.4.0.4-rc):
3618     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
3619       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
3620       CID 1444119.
3622   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
3623     - Fix a logic error that prevented the SessionGroup sub-option from
3624       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
3626   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
3627     - Fix a BUG() assertion that occurs within a very small race window
3628       between when a client intro circuit opens and when its descriptor
3629       gets cleaned up from the cache. The circuit is now closed early,
3630       which will trigger a re-fetch of the descriptor and continue the
3631       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
3633   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
3634     - Don't believe clock skew results from NETINFO cells that appear to
3635       arrive before we sent the VERSIONS cells they are responding to.
3636       Previously, we would accept them up to 3 minutes "in the past".
3637       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3639   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
3640     - Fix a compilation warning on Windows about casting a function
3641       pointer for GetTickCount64(). Fixes bug 31374; bugfix
3642       on 0.2.9.1-alpha.
3644   o Minor bugfixes (compilation, backport from 0.4.0.2-alpha):
3645     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
3646       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
3648   o Minor bugfixes (compilation, backport from 0.4.1.5):
3649     - Avoid using labs() on time_t, which can cause compilation warnings
3650       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3652   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
3653     - Suppress spurious float-conversion warnings from GCC when calling
3654       floating-point classifier functions on FreeBSD. Fixes part of bug
3655       31687; bugfix on 0.3.1.5-alpha.
3657   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
3658     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
3659       due to missing declarations of abort(), and prevent other such
3660       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
3662   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
3663     - Fix a bug that prevented us from supporting SOCKS5 proxies that
3664       want authentication along with configured (but unused!)
3665       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
3667   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
3668     - Avoid trying to read data from closed connections, which can cause
3669       needless loops in Libevent and infinite loops in Shadow. Fixes bug
3670       30344; bugfix on 0.1.1.1-alpha.
3672   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
3673     - Allow the test-stem job to fail in Travis, because it sometimes
3674       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
3675     - Skip test_rebind on macOS in Travis, because it is unreliable on
3676       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3677     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
3678       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3680   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
3681     - Avoid a set of possible code paths that could try to use freed
3682       memory in routerlist_free() while Tor was exiting. Fixes bug
3683       31003; bugfix on 0.1.2.2-alpha.
3685   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
3686     - Stop crashing after parsing an unknown descriptor purpose
3687       annotation. We think this bug can only be triggered by modifying a
3688       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
3690   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
3691     - Move the "bandwidth-file-headers" line in directory authority
3692       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
3693       on 0.3.5.1-alpha.
3695   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
3696     - On abort, try harder to flush the output buffers of log messages.
3697       On some platforms (macOS), log messages could be discarded when
3698       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3699     - Report the tor version whenever an assertion fails. Previously, we
3700       only reported the Tor version on some crashes, and some non-fatal
3701       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3703   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
3704     - When extracting an IPv6 address from a PF-based proxy, verify that
3705       we are actually configured to receive an IPv6 address, and log an
3706       internal error if not. Fixes part of bug 31687; bugfix
3707       on 0.2.3.4-alpha.
3709   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
3710     - When tor is missing descriptors for some primary entry guards,
3711       make the log message less alarming. It's normal for descriptors to
3712       expire, as long as tor fetches new ones soon after. Fixes bug
3713       31657; bugfix on 0.3.3.1-alpha.
3715   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
3716     - Avoid logging that we are relaxing a circuit timeout when that
3717       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
3719   o Minor bugfixes (logging, backport from 0.4.0.3-alpha):
3720     - Correct a misleading error message when IPv4Only or IPv6Only is
3721       used but the resolved address can not be interpreted as an address
3722       of the specified IP version. Fixes bug 13221; bugfix on
3723       0.2.3.9-alpha. Patch from Kris Katterjohn.
3724     - Log the correct port number for listening sockets when "auto" is
3725       used to let Tor pick the port number. Previously, port 0 was
3726       logged instead of the actual port number. Fixes bug 29144; bugfix
3727       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
3728     - Stop logging a BUG() warning when Tor is waiting for exit
3729       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
3731   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
3732     - Do not log a warning when running with an OpenSSL version other
3733       than the one Tor was compiled with, if the two versions should be
3734       compatible. Previously, we would warn whenever the version was
3735       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
3737   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
3738     - Change log level of message "Hash of session info was not as
3739       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
3740       on 0.1.1.10-alpha.
3742   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
3743     - Rate-limit our the logging message about the obsolete .exit
3744       notation. Previously, there was no limit on this warning, which
3745       could potentially be triggered many times by a hostile website.
3746       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
3748   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
3749     - Do not log a nonfatal assertion failure when receiving a VERSIONS
3750       cell on a connection using the obsolete v1 link protocol. Log a
3751       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
3753   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
3754     - Reset the periodic events' "enabled" flag when Tor is shut down
3755       cleanly. Previously, this flag was left on, which caused periodic
3756       events not to be re-enabled when Tor was relaunched in-process
3757       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
3758       on 0.3.3.1-alpha.
3760   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
3761     - Avoid a minor memory leak that could occur on relays when failing
3762       to create a "keys" directory. Fixes bug 30148; bugfix
3763       on 0.3.3.1-alpha.
3765   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
3766     - Fix a trivial memory leak when parsing an invalid value
3767       from a download schedule in the configuration. Fixes bug
3768       30894; bugfix on 0.3.4.1-alpha.
3770   o Minor bugfixes (memory management, backport from 0.4.0.3-alpha):
3771     - Refactor the shared random state's memory management so that it
3772       actually takes ownership of the shared random value pointers.
3773       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
3775   o Minor bugfixes (memory management, testing, backport from 0.4.0.3-alpha):
3776     - Stop leaking parts of the shared random state in the shared-random
3777       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
3779   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
3780     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
3781       implemenation) when failing to load an onion service client
3782       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
3784   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
3785     - When purging the DNS cache because of an out-of-memory condition,
3786       try purging just the older entries at first. Previously, we would
3787       always purge the whole thing. Fixes bug 29617; bugfix
3788       on 0.3.5.1-alpha.
3790   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
3791     - Avoid crashing in our tor_vasprintf() implementation on systems
3792       that define neither vasprintf() nor _vscprintf(). (This bug has
3793       been here long enough that we question whether people are running
3794       Tor on such systems, but we're applying the fix out of caution.)
3795       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
3796       Tobias Stoeckmann.
3798   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
3799     - Avoid crashing when starting with a corrupt keys directory where
3800       the old ntor key and the new ntor key are identical. Fixes bug
3801       30916; bugfix on 0.2.4.8-alpha.
3803   o Minor bugfixes (rust, backport from 0.4.0.5):
3804     - Abort on panic in all build profiles, instead of potentially
3805       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
3807   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
3808     - Correctly exclude a redundant rust build job in Travis. Fixes bug
3809       31463; bugfix on 0.3.5.4-alpha.
3811   o Minor bugfixes (single onion services, backport from 0.4.0.3-alpha):
3812     - Allow connections to single onion services to remain idle without
3813       being disconnected. Previously, relays acting as rendezvous points
3814       for single onion services were mistakenly closing idle rendezvous
3815       circuits after 60 seconds, thinking that they were unused
3816       directory-fetching circuits that had served their purpose. Fixes
3817       bug 29665; bugfix on 0.2.1.26.
3819   o Minor bugfixes (stats, backport from 0.4.0.3-alpha):
3820     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
3821       relay and bridge extra-info documents. Fixes bug 29017; bugfix
3822       on 0.3.1.1-alpha.
3824   o Minor bugfixes (testing, backport from 0.4.0.3-alpha):
3825     - Downgrade some LOG_ERR messages in the address/* tests to
3826       warnings. The LOG_ERR messages were occurring when we had no
3827       configured network. We were failing the unit tests, because we
3828       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
3829       29530; bugfix on 0.3.5.8.
3830     - Fix our gcov wrapper script to look for object files at the
3831       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
3833   o Minor bugfixes (testing, backport from 0.4.0.4-rc):
3834     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
3835       recent test-network.sh to use new chutney features in CI. Fixes
3836       bug 29703; bugfix on 0.2.9.1-alpha.
3837     - Fix a test failure on Windows caused by an unexpected "BUG"
3838       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
3839       on 0.2.9.3-alpha.
3841   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
3842     - When testing port rebinding, don't busy-wait for tor to log.
3843       Instead, actually sleep for a short time before polling again.
3844       Also improve the formatting of control commands and log messages.
3845       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
3847   o Minor bugfixes (TLS protocol, backport form 0.4.0.4-rc):
3848     - When classifying a client's selection of TLS ciphers, if the
3849       client ciphers are not yet available, do not cache the result.
3850       Previously, we had cached the unavailability of the cipher list
3851       and never looked again, which in turn led us to assume that the
3852       client only supported the ancient V1 link protocol. This, in turn,
3853       was causing Stem integration tests to stall in some cases. Fixes
3854       bug 30021; bugfix on 0.2.4.8-alpha.
3856   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
3857     - Log bugs about the TLS read buffer's length only once, rather than
3858       filling the logs with similar warnings. Fixes bug 31939; bugfix
3859       on 0.3.0.4-rc.
3861   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
3862     - Always retry v2 single onion service intro and rend circuits with
3863       a 3-hop path. Previously, v2 single onion services used a 3-hop
3864       path when rendezvous circuits were retried after a remote or
3865       delayed failure, but a 1-hop path for immediate retries. Fixes bug
3866       23818; bugfix on 0.2.9.3-alpha.
3867     - Make v3 single onion services fall back to a 3-hop intro, when all
3868       intro points are unreachable via a 1-hop path. Previously, v3
3869       single onion services failed when all intro nodes were unreachable
3870       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
3872   o Minor bugfixes (Windows, CI, backport from 0.4.0.3-alpha):
3873     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
3874       Windows Server 2012 R2 job. The remaining 2 jobs still provide
3875       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
3876       fast_finish, so failed jobs terminate the build immediately. Fixes
3877       bug 29601; bugfix on 0.3.5.4-alpha.
3879   o Documentation (backport from 0.4.2.1-alpha):
3880     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
3881       notice.html so that operators no longer have to host it
3882       themselves. Closes ticket 31089.
3884   o Testing (backport from 0.4.1.2-alpha):
3885     - Specify torrc paths (with empty files) when launching tor in
3886       integration tests; refrain from reading user and system torrcs.
3887       Resolves issue 29702.
3889   o Testing (continuous integration, backport from 0.4.1.1-alpha):
3890     - In Travis, show stem's tor log after failure. Closes ticket 30234.
3892   o Testing (continuous integration, backport from 0.4.1.5):
3893     - In Travis, make stem log a controller trace to the console, and
3894       tail stem's tor log after failure. Closes ticket 30591.
3895     - In Travis, only run the stem tests that use a tor binary. Closes
3896       ticket 30694.
3898   o Testing (continuous integration, backport from 0.4.2.3-alpha):
3899     - Disable all but one Travis CI macOS build, to mitigate slow
3900       scheduling of Travis macOS jobs. Closes ticket 32177.
3901     - Run the chutney IPv6 networks as part of Travis CI. Closes
3902       ticket 30860.
3903     - Simplify the Travis CI build matrix, and optimise for build time.
3904       Closes ticket 31859.
3905     - Use Windows Server 2019 instead of Windows Server 2016 in our
3906       Appveyor builds. Closes ticket 32086.
3908   o Testing (continuous integration, backport from 0.4.2.4-rc):
3909     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
3910       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
3911       until we can fix some Bionic permissions issues (see ticket
3912       32240). Related to ticket 31919.
3913     - Install the mingw OpenSSL package in Appveyor. This makes sure
3914       that the OpenSSL headers and libraries match in Tor's Appveyor
3915       builds. (This bug was triggered by an Appveyor image update.)
3916       Fixes bug 32449; bugfix on 0.3.5.6-rc.
3917     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
3919   o Testing (continuous integration, backport from 0.4.2.5):
3920     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
3921       extensions. Also activates clang's -Wtypedef-redefinition warnings.
3922       Build some jobs with -std=gnu99, and some jobs without.
3923       Closes ticket 32500.
3925 Changes in version 0.4.2.4-rc - 2019-11-15
3926   Tor 0.4.2.4-rc is the first release candidate in its series. It fixes
3927   several bugs from earlier versions, including a few that would result in
3928   stack traces or incorrect behavior.
3930   o Minor features (build system):
3931     - Make pkg-config use --prefix when cross-compiling, if
3932       PKG_CONFIG_PATH is not set. Closes ticket 32191.
3934   o Minor features (geoip):
3935     - Update geoip and geoip6 to the November 6 2019 Maxmind GeoLite2
3936       Country database. Closes ticket 32440.
3938   o Minor bugfixes (client, onion service v3):
3939     - Fix a BUG() assertion that occurs within a very small race window
3940       between when a client intro circuit opens and when its descriptor
3941       gets cleaned up from the cache. The circuit is now closed early,
3942       which will trigger a re-fetch of the descriptor and continue the
3943       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
3945   o Minor bugfixes (code quality):
3946     - Fix "make check-includes" so it runs correctly on out-of-tree
3947       builds. Fixes bug 31335; bugfix on 0.3.5.1-alpha.
3949   o Minor bugfixes (configuration):
3950     - Log the option name when skipping an obsolete option. Fixes bug
3951       32295; bugfix on 0.4.2.1-alpha.
3953   o Minor bugfixes (crash):
3954     - When running Tor with an option like --verify-config or
3955       --dump-config that does not start the event loop, avoid crashing
3956       if we try to exit early because of an error. Fixes bug 32407;
3957       bugfix on 0.3.3.1-alpha.
3959   o Minor bugfixes (directory):
3960     - When checking if a directory connection is anonymous, test if the
3961       circuit was marked for close before looking at its channel. This
3962       avoids a BUG() stacktrace if the circuit was previously closed.
3963       Fixes bug 31958; bugfix on 0.4.2.1-alpha.
3965   o Minor bugfixes (shellcheck):
3966     - Fix minor shellcheck errors in the git-*.sh scripts. Fixes bug
3967       32402; bugfix on 0.4.2.1-alpha.
3968     - Start checking most scripts for shellcheck errors again. Fixes bug
3969       32402; bugfix on 0.4.2.1-alpha.
3971   o Testing (continuous integration):
3972     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
3973       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
3974       until we can fix some Bionic permissions issues (see ticket
3975       32240). Related to ticket 31919.
3976     - Install the mingw OpenSSL package in Appveyor. This makes sure
3977       that the OpenSSL headers and libraries match in Tor's Appveyor
3978       builds. (This bug was triggered by an Appveyor image update.)
3979       Fixes bug 32449; bugfix on 0.3.5.6-rc.
3980     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
3983 Changes in version 0.4.2.3-alpha - 2019-10-24
3984   This release fixes several bugs from the previous alpha release, and
3985   from earlier versions of Tor.
3987   o Major bugfixes (relay):
3988     - Relays now respect their AccountingMax bandwidth again. When
3989       relays entered "soft" hibernation (which typically starts when
3990       we've hit 90% of our AccountingMax), we had stopped checking
3991       whether we should enter hard hibernation. Soft hibernation refuses
3992       new connections and new circuits, but the existing circuits can
3993       continue, meaning that relays could have exceeded their configured
3994       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
3996   o Major bugfixes (v3 onion services):
3997     - Onion services now always use the exact number of intro points
3998       configured with the HiddenServiceNumIntroductionPoints option (or
3999       fewer if nodes are excluded). Before, a service could sometimes
4000       pick more intro points than configured. Fixes bug 31548; bugfix
4001       on 0.3.2.1-alpha.
4003   o Minor feature (onion services, control port):
4004     - The ADD_ONION command's keyword "BEST" now defaults to ED25519-V3
4005       (v3) onion services. Previously it defaulted to RSA1024 (v2).
4006       Closes ticket 29669.
4008   o Minor features (testing):
4009     - When running tests that attempt to look up hostnames, replace the
4010       libc name lookup functions with ones that do not actually touch
4011       the network. This way, the tests complete more quickly in the
4012       presence of a slow or missing DNS resolver. Closes ticket 31841.
4014   o Minor features (testing, continuous integration):
4015     - Disable all but one Travis CI macOS build, to mitigate slow
4016       scheduling of Travis macOS jobs. Closes ticket 32177.
4017     - Run the chutney IPv6 networks as part of Travis CI. Closes
4018       ticket 30860.
4019     - Simplify the Travis CI build matrix, and optimise for build time.
4020       Closes ticket 31859.
4021     - Use Windows Server 2019 instead of Windows Server 2016 in our
4022       Appveyor builds. Closes ticket 32086.
4024   o Minor bugfixes (build system):
4025     - Interpret "--disable-module-dirauth=no" correctly. Fixes bug
4026       32124; bugfix on 0.3.4.1-alpha.
4027     - Interpret "--with-tcmalloc=no" correctly. Fixes bug 32124; bugfix
4028       on 0.2.0.20-rc.
4029     - Stop failing when jemalloc is requested, but tcmalloc is not
4030       found. Fixes bug 32124; bugfix on 0.3.5.1-alpha.
4031     - When pkg-config is not installed, or a library that depends on
4032       pkg-config is not found, tell the user what to do to fix the
4033       problem. Fixes bug 31922; bugfix on 0.3.1.1-alpha.
4035   o Minor bugfixes (connections):
4036     - Avoid trying to read data from closed connections, which can cause
4037       needless loops in Libevent and infinite loops in Shadow. Fixes bug
4038       30344; bugfix on 0.1.1.1-alpha.
4040   o Minor bugfixes (error handling):
4041     - Always lock the backtrace buffer before it is used. Fixes bug
4042       31734; bugfix on 0.2.5.3-alpha.
4044   o Minor bugfixes (mainloop, periodic events, in-process API):
4045     - Reset the periodic events' "enabled" flag when Tor is shut down
4046       cleanly. Previously, this flag was left on, which caused periodic
4047       events not to be re-enabled when Tor was relaunched in-process
4048       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
4049       on 0.3.3.1-alpha.
4051   o Minor bugfixes (process management):
4052     - Remove overly strict assertions that triggered when a pluggable
4053       transport failed to launch. Fixes bug 31091; bugfix
4054       on 0.4.0.1-alpha.
4055     - Remove an assertion in the Unix process backend. This assertion
4056       would trigger when we failed to find the executable for a child
4057       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
4059   o Minor bugfixes (testing):
4060     - Avoid intermittent test failures due to a test that had relied on
4061       inconsistent timing sources. Fixes bug 31995; bugfix
4062       on 0.3.1.3-alpha.
4063     - When testing port rebinding, don't busy-wait for tor to log.
4064       Instead, actually sleep for a short time before polling again.
4065       Also improve the formatting of control commands and log messages.
4066       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
4068   o Minor bugfixes (tls, logging):
4069     - Log bugs about the TLS read buffer's length only once, rather than
4070       filling the logs with similar warnings. Fixes bug 31939; bugfix
4071       on 0.3.0.4-rc.
4073   o Minor bugfixes (v3 onion services):
4074     - Fix an implicit conversion from ssize_t to size_t discovered by
4075       Coverity. Fixes bug 31682; bugfix on 0.4.2.1-alpha.
4076     - Fix a memory leak in an unlikely error code path when encoding HS
4077       DoS establish intro extension cell. Fixes bug 32063; bugfix
4078       on 0.4.2.1-alpha.
4079     - When cleaning up intro circuits for a v3 onion service, don't
4080       remove circuits that have an established or pending circuit, even
4081       if they ran out of retries. This way, we don't remove a circuit on
4082       its last retry. Fixes bug 31652; bugfix on 0.3.2.1-alpha.
4084   o Documentation:
4085     - Correct the description of "GuardLifetime". Fixes bug 31189;
4086       bugfix on 0.3.0.1-alpha.
4087     - Make clear in the man page, in both the bandwidth section and the
4088       AccountingMax section, that Tor counts in powers of two, not
4089       powers of ten: 1 GByte is 1024*1024*1024 bytes, not one billion
4090       bytes. Resolves ticket 32106.
4093 Changes in version 0.4.2.2-alpha - 2019-10-07
4094   This release fixes several bugs from the previous alpha release, and
4095   from earlier versions. It also includes a change in authorities, so
4096   that they begin to reject the currently unsupported release series.
4098   o Major features (directory authorities):
4099     - Directory authorities now reject relays running all currently
4100       deprecated release series. The currently supported release series
4101       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
4103   o Major bugfixes (embedded Tor):
4104     - Avoid a possible crash when restarting Tor in embedded mode and
4105       enabling a different set of publish/subscribe messages. Fixes bug
4106       31898; bugfix on 0.4.1.1-alpha.
4108   o Major bugfixes (torrc parsing):
4109     - Stop ignoring torrc options after an %include directive, when the
4110       included directory ends with a file that does not contain any
4111       config options (but does contain comments or whitespace). Fixes
4112       bug 31408; bugfix on 0.3.1.1-alpha.
4114   o Minor features (auto-formatting scripts):
4115     - When annotating C macros, never generate a line that our check-
4116       spaces script would reject. Closes ticket 31759.
4117     - When annotating C macros, try to remove cases of double-negation.
4118       Closes ticket 31779.
4120   o Minor features (continuous integration):
4121     - When building on Appveyor and Travis, pass the "-k" flag to make,
4122       so that we are informed of all compilation failures, not just the
4123       first one or two. Closes ticket 31372.
4125   o Minor features (geoip):
4126     - Update geoip and geoip6 to the October 1 2019 Maxmind GeoLite2
4127       Country database. Closes ticket 31931.
4129   o Minor features (maintenance scripts):
4130     - Add a Coccinelle script to detect bugs caused by incrementing or
4131       decrementing a variable inside a call to log_debug(). Since
4132       log_debug() is a macro whose arguments are conditionally
4133       evaluated, it is usually an error to do this. One such bug was
4134       30628, in which SENDME cells were miscounted by a decrement
4135       operator inside a log_debug() call. Closes ticket 30743.
4137   o Minor features (onion services v3):
4138     - Assist users who try to setup v2 client authorization in v3 onion
4139       services by pointing them to the right documentation. Closes
4140       ticket 28966.
4142   o Minor bugfixes (Appveyor continuous integration):
4143     - Avoid spurious errors when Appveyor CI fails before the install
4144       step. Fixes bug 31884; bugfix on 0.3.4.2-alpha.
4146   o Minor bugfixes (best practices tracker):
4147     - When listing overbroad exceptions, do not also list problems, and
4148       do not list insufficiently broad exceptions. Fixes bug 31338;
4149       bugfix on 0.4.2.1-alpha.
4151   o Minor bugfixes (controller protocol):
4152     - Fix the MAPADDRESS controller command to accept one or more
4153       arguments. Previously, it required two or more arguments, and
4154       ignored the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
4156   o Minor bugfixes (logging):
4157     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
4158       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
4159     - Disable backtrace signal handlers when shutting down tor. Fixes
4160       bug 31614; bugfix on 0.2.5.2-alpha.
4161     - Rate-limit our the logging message about the obsolete .exit
4162       notation. Previously, there was no limit on this warning, which
4163       could potentially be triggered many times by a hostile website.
4164       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
4165     - When initialising log domain masks, only set known log domains.
4166       Fixes bug 31854; bugfix on 0.2.1.1-alpha.
4168   o Minor bugfixes (logging, protocol violations):
4169     - Do not log a nonfatal assertion failure when receiving a VERSIONS
4170       cell on a connection using the obsolete v1 link protocol. Log a
4171       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
4173   o Minor bugfixes (modules):
4174     - Explain what the optional Directory Authority module is, and what
4175       happens when it is disabled. Fixes bug 31825; bugfix
4176       on 0.3.4.1-alpha.
4178   o Minor bugfixes (multithreading):
4179     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
4180       31736; bugfix on 0.0.7.
4182   o Minor bugfixes (relay):
4183     - Avoid crashing when starting with a corrupt keys directory where
4184       the old ntor key and the new ntor key are identical. Fixes bug
4185       30916; bugfix on 0.2.4.8-alpha.
4187   o Minor bugfixes (tests, SunOS):
4188     - Avoid a map_anon_nofork test failure due to a signed/unsigned
4189       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
4191   o Code simplification and refactoring:
4192     - Refactor connection_control_process_inbuf() to reduce the size of
4193       a practracker exception. Closes ticket 31840.
4194     - Refactor the microdescs_parse_from_string() function into smaller
4195       pieces, for better comprehensibility. Closes ticket 31675.
4196     - Use SEVERITY_MASK_IDX() to find the LOG_* mask indexes in the unit
4197       tests and fuzzers, rather than using hard-coded values. Closes
4198       ticket 31334.
4199     - Interface for function `decrypt_desc_layer` cleaned up. Closes
4200       ticket 31589.
4202   o Documentation:
4203     - Document the signal-safe logging behaviour in the tor man page.
4204       Also add some comments to the relevant functions. Closes
4205       ticket 31839.
4206     - Explain why we can't destroy the backtrace buffer mutex. Explain
4207       why we don't need to destroy the log mutex. Closes ticket 31736.
4208     - The Tor source code repository now includes a (somewhat dated)
4209       description of Tor's modular architecture, in doc/HACKING/design.
4210       This is based on the old "tor-guts.git" repository, which we are
4211       adopting and superseding. Closes ticket 31849.
4214 Changes in version 0.4.1.6 - 2019-09-19
4215   This release backports several bugfixes to improve stability and
4216   correctness.  Anyone experiencing build problems or crashes with 0.4.1.5,
4217   or experiencing reliability issues with single onion services, should
4218   upgrade.
4220   o Major bugfixes (crash, Linux, Android, backport from 0.4.2.1-alpha):
4221     - Tolerate systems (including some Android installations) where
4222       madvise and MADV_DONTDUMP are available at build-time, but not at
4223       run time. Previously, these systems would notice a failed syscall
4224       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
4225     - Tolerate systems (including some Linux installations) where
4226       madvise and/or MADV_DONTFORK are available at build-time, but not
4227       at run time. Previously, these systems would notice a failed
4228       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
4230   o Minor features (stem tests, backport from 0.4.2.1-alpha):
4231     - Change "make test-stem" so it only runs the stem tests that use
4232       tor. This change makes test-stem faster and more reliable. Closes
4233       ticket 31554.
4235   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
4236     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
4237       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
4239   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
4240     - Add more stub functions to fix compilation on Android with link-
4241       time optimization when --disable-module-dirauth is used.
4242       Previously, these compilation settings would make the compiler
4243       look for functions that didn't exist. Fixes bug 31552; bugfix
4244       on 0.4.1.1-alpha.
4245     - Suppress spurious float-conversion warnings from GCC when calling
4246       floating-point classifier functions on FreeBSD. Fixes part of bug
4247       31687; bugfix on 0.3.1.5-alpha.
4249   o Minor bugfixes (controller protocol):
4250     - Fix the MAPADDRESS controller command to accept one or more
4251       arguments. Previously, it required two or more arguments, and ignored
4252       the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
4254   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
4255     - When extracting an IPv6 address from a PF-based proxy, verify that
4256       we are actually configured to receive an IPv6 address, and log an
4257       internal error if not. Fixes part of bug 31687; bugfix
4258       on 0.2.3.4-alpha.
4260   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
4261     - When tor is missing descriptors for some primary entry guards,
4262       make the log message less alarming. It's normal for descriptors to
4263       expire, as long as tor fetches new ones soon after. Fixes bug
4264       31657; bugfix on 0.3.3.1-alpha.
4266   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
4267     - Change log level of message "Hash of session info was not as
4268       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
4269       on 0.1.1.10-alpha.
4271   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
4272     - Correctly exclude a redundant rust build job in Travis. Fixes bug
4273       31463; bugfix on 0.3.5.4-alpha.
4275   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
4276     - Always retry v2 single onion service intro and rend circuits with
4277       a 3-hop path. Previously, v2 single onion services used a 3-hop
4278       path when rendezvous circuits were retried after a remote or
4279       delayed failure, but a 1-hop path for immediate retries. Fixes bug
4280       23818; bugfix on 0.2.9.3-alpha.
4282   o Minor bugfixes (v3 single onion services, backport from 0.4.2.1-alpha):
4283     - Always retry v3 single onion service intro and rend circuits with
4284       a 3-hop path. Previously, v3 single onion services used a 3-hop
4285       path when rend circuits were retried after a remote or delayed
4286       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
4287       bugfix on 0.3.2.1-alpha.
4288     - Make v3 single onion services fall back to a 3-hop intro, when all
4289       intro points are unreachable via a 1-hop path. Previously, v3
4290       single onion services failed when all intro nodes were unreachable
4291       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
4293   o Documentation (backport from 0.4.2.1-alpha):
4294     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
4295       notice.html so that operators no longer have to host it
4296       themselves. Closes ticket 31089.
4299 Changes in version 0.4.2.1-alpha - 2019-09-17
4300   This is the first alpha release in the 0.4.2.x series. It adds new
4301   defenses for denial-of-service attacks against onion services. It also
4302   includes numerous kinds of bugfixes and refactoring to help improve
4303   Tor's stability and ease of development.
4305   o Major features (onion service v3, denial of service):
4306     - Add onion service introduction denial of service defenses. Intro
4307       points can now rate-limit client introduction requests, using
4308       parameters that can be sent by the service within the
4309       ESTABLISH_INTRO cell. If the cell extension for this is not used,
4310       the intro point will honor the consensus parameters. Closes
4311       ticket 30924.
4313   o Major bugfixes (circuit build, guard):
4314     - When considering upgrading circuits from "waiting for guard" to
4315       "open", always ignore circuits that are marked for close.
4316       Previously we could end up in the situation where a subsystem is
4317       notified of a circuit opening, but the circuit is still marked for
4318       close, leading to undesirable behavior. Fixes bug 30871; bugfix
4319       on 0.3.0.1-alpha.
4321   o Major bugfixes (crash, Linux, Android):
4322     - Tolerate systems (including some Android installations) where
4323       madvise and MADV_DONTDUMP are available at build-time, but not at
4324       run time. Previously, these systems would notice a failed syscall
4325       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
4326     - Tolerate systems (including some Linux installations) where
4327       madvise and/or MADV_DONTFORK are available at build-time, but not
4328       at run time. Previously, these systems would notice a failed
4329       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
4331   o Minor features (best practices tracker):
4332     - Our best-practices tracker now integrates with our include-checker
4333       tool to keep track of how many layering violations we have not yet
4334       fixed. We hope to reduce this number over time to improve Tor's
4335       modularity. Closes ticket 31176.
4336     - Add a TOR_PRACTRACKER_OPTIONS variable for passing arguments to
4337       practracker from the environment. We may want this for continuous
4338       integration. Closes ticket 31309.
4339     - Give a warning rather than an error when a practracker exception
4340       is violated by a small amount, add a --list-overbroad option to
4341       practracker that lists exceptions that are stricter than they need
4342       to be, and provide an environment variable for disabling
4343       practracker. Closes ticket 30752.
4344     - Our best-practices tracker now looks at headers as well as C
4345       files. Closes ticket 31175.
4347   o Minor features (build system):
4348     - Add --disable-manpage and --disable-html-manual options to
4349       configure script. This will enable shortening build times by not
4350       building documentation. Resolves issue 19381.
4352   o Minor features (compilation):
4353     - Log a more useful error message when we are compiling and one of
4354       the compile-time hardening options we have selected can be linked
4355       but not executed. Closes ticket 27530.
4357   o Minor features (configuration):
4358     - The configuration code has been extended to allow splitting
4359       configuration data across multiple objects. Previously, all
4360       configuration data needed to be kept in a single object, which
4361       tended to become bloated. Closes ticket 31240.
4363   o Minor features (continuous integration):
4364     - When running CI builds on Travis, put some random data in
4365       ~/.torrc, to make sure no tests are reading the Tor configuration
4366       file from its default location. Resolves issue 30102.
4368   o Minor features (debugging):
4369     - Log a nonfatal assertion failure if we encounter a configuration
4370       line whose command is "CLEAR" but which has a nonempty value. This
4371       should be impossible, according to the rules of our configuration
4372       line parsing. Closes ticket 31529.
4374   o Minor features (git hooks):
4375     - Our pre-commit git hook now checks for a special file before
4376       running practracker, so that practracker only runs on branches
4377       that are based on master. Since the pre-push hook calls the pre-
4378       commit hook, practracker will also only run before pushes of
4379       branches based on master. Closes ticket 30979.
4381   o Minor features (git scripts):
4382     - Add a "--" command-line argument, to separate git-push-all.sh
4383       script arguments from arguments that are passed through to git
4384       push. Closes ticket 31314.
4385     - Add a -r <remote-name> argument to git-push-all.sh, so the script
4386       can push test branches to a personal remote. Closes ticket 31314.
4387     - Add a -t <test-branch-prefix> argument to git-merge-forward.sh and
4388       git-push-all.sh, which makes these scripts create, merge forward,
4389       and push test branches. Closes ticket 31314.
4390     - Add a -u argument to git-merge-forward.sh, so that the script can
4391       re-use existing test branches after a merge failure and fix.
4392       Closes ticket 31314.
4393     - Add a TOR_GIT_PUSH env var, which sets the default git push
4394       command and arguments for git-push-all.sh. Closes ticket 31314.
4395     - Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the
4396       script push master and maint branches with a delay between each
4397       branch. These delays trigger the CI jobs in a set order, which
4398       should show the most likely failures first. Also make pushes
4399       atomic by default, and make the script pass any command-line
4400       arguments to git push. Closes ticket 29879.
4401     - Call the shellcheck script from the pre-commit hook. Closes
4402       ticket 30967.
4403     - Skip pushing test branches that are the same as a remote
4404       maint/release/master branch in git-push-all.sh by default. Add a
4405       -s argument, so git-push-all.sh can push all test branches. Closes
4406       ticket 31314.
4408   o Minor features (IPv6, logging):
4409     - Log IPv6 addresses as well as IPv4 addresses when describing
4410       routerinfos, routerstatuses, and nodes. Closes ticket 21003.
4412   o Minor features (onion service v3):
4413     - Do not allow single hop clients to fetch or post an HS descriptor
4414       from an HSDir. Closes ticket 24964.
4416   o Minor features (onion service):
4417     - Disallow single-hop clients at the introduction point. We've
4418       removed Tor2web support a while back and single-hop rendezvous
4419       attempts are blocked at the relays. This change should remove load
4420       off the network from spammy clients. Close ticket 24963.
4422   o Minor features (stem tests):
4423     - Change "make test-stem" so it only runs the stem tests that use
4424       tor. This change makes test-stem faster and more reliable. Closes
4425       ticket 31554.
4427   o Minor features (testing):
4428     - Add a script to invoke "tor --dump-config" and "tor
4429       --verify-config" with various configuration options, and see
4430       whether tor's resulting configuration or error messages are what
4431       we expect. Use it for integration testing of our +Option and
4432       /Option flags. Closes ticket 31637.
4433     - Improve test coverage for our existing configuration parsing and
4434       management API. Closes ticket 30893.
4435     - Add integration tests to make sure that practracker gives the
4436       outputs we expect. Closes ticket 31477.
4437     - The practracker self-tests are now run as part of the Tor test
4438       suite. Closes ticket 31304.
4440   o Minor features (token bucket):
4441     - Implement a generic token bucket that uses a single counter, for
4442       use in anti-DoS onion service work. Closes ticket 30687.
4444   o Minor bugfixes (best practices tracker):
4445     - Fix a few issues in the best-practices script, including tests,
4446       tab tolerance, error reporting, and directory-exclusion logic.
4447       Fixes bug 29746; bugfix on 0.4.1.1-alpha.
4448     - When running check-best-practices, only consider files in the src
4449       subdirectory. Previously we had recursively considered all
4450       subdirectories, which made us get confused by the temporary
4451       directories made by "make distcheck". Fixes bug 31578; bugfix
4452       on 0.4.1.1-alpha.
4454   o Minor bugfixes (build system):
4455     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
4456       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
4458   o Minor bugfixes (chutney, makefiles, documentation):
4459     - "make test-network-all" now shows the warnings from each test-
4460       network.sh run on the console, so developers see new warnings
4461       early. We've also improved the documentation for this feature, and
4462       renamed a Makefile variable so the code is self-documenting. Fixes
4463       bug 30455; bugfix on 0.3.0.4-rc.
4465   o Minor bugfixes (compilation):
4466     - Add more stub functions to fix compilation on Android with link-
4467       time optimization when --disable-module-dirauth is used.
4468       Previously, these compilation settings would make the compiler
4469       look for functions that didn't exist. Fixes bug 31552; bugfix
4470       on 0.4.1.1-alpha.
4471     - Suppress spurious float-conversion warnings from GCC when calling
4472       floating-point classifier functions on FreeBSD. Fixes part of bug
4473       31687; bugfix on 0.3.1.5-alpha.
4475   o Minor bugfixes (configuration):
4476     - Invalid floating-point values in the configuration file are now
4477       treated as errors in the configuration. Previously, they were
4478       ignored and treated as zero. Fixes bug 31475; bugfix on 0.0.1.
4480   o Minor bugfixes (coverity):
4481     - Add an assertion when parsing a BEGIN cell so that coverity can be
4482       sure that we are not about to dereference a NULL address. Fixes
4483       bug 31026; bugfix on 0.2.4.7-alpha. This is CID 1447296.
4484     - In our siphash implementation, when building for coverity, use
4485       memcpy in place of a switch statement, so that coverity can tell
4486       we are not accessing out-of-bounds memory. Fixes bug 31025; bugfix
4487       on 0.2.8.1-alpha. This is tracked as CID 1447293 and 1447295.
4488     - Fix several coverity warnings from our unit tests. Fixes bug
4489       31030; bugfix on 0.2.4.1-alpha, 0.3.2.1-alpha, and 0.4.0.1-alpha.
4491   o Minor bugfixes (developer tooling):
4492     - Only log git script changes in the post-merge script when the
4493       merge was to the master branch. Fixes bug 31040; bugfix
4494       on 0.4.1.1-alpha.
4496   o Minor bugfixes (directory authorities):
4497     - Return a distinct status when formatting annotations fails. Fixes
4498       bug 30780; bugfix on 0.2.0.8-alpha.
4500   o Minor bugfixes (error handling):
4501     - On abort, try harder to flush the output buffers of log messages.
4502       On some platforms (macOS), log messages could be discarded when
4503       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4504     - Report the tor version whenever an assertion fails. Previously, we
4505       only reported the Tor version on some crashes, and some non-fatal
4506       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4507     - When tor aborts due to an error, close log file descriptors before
4508       aborting. Closing the logs makes some OSes flush log file buffers,
4509       rather than deleting buffered log lines. Fixes bug 31594; bugfix
4510       on 0.2.5.2-alpha.
4512   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6):
4513     - When extracting an IPv6 address from a PF-based proxy, verify that
4514       we are actually configured to receive an IPv6 address, and log an
4515       internal error if not. Fixes part of bug 31687; bugfix
4516       on 0.2.3.4-alpha.
4518   o Minor bugfixes (git hooks):
4519     - Remove a duplicate call to practracker from the pre-push hook. The
4520       pre-push hook already calls the pre-commit hook, which calls
4521       practracker. Fixes bug 31462; bugfix on 0.4.1.1-alpha.
4523   o Minor bugfixes (git scripts):
4524     - Stop hard-coding the bash path in the git scripts. Some OSes don't
4525       have bash in /usr/bin, others have an ancient bash at this path.
4526       Fixes bug 30840; bugfix on 0.4.0.1-alpha.
4527     - Stop hard-coding the tor master branch name and worktree path in
4528       the git scripts. Fixes bug 30841; bugfix on 0.4.0.1-alpha.
4529     - Allow git-push-all.sh to be run from any directory. Previously,
4530       the script only worked if run from an upstream worktree directory.
4531       Closes ticket 31678.
4533   o Minor bugfixes (guards):
4534     - When tor is missing descriptors for some primary entry guards,
4535       make the log message less alarming. It's normal for descriptors to
4536       expire, as long as tor fetches new ones soon after. Fixes bug
4537       31657; bugfix on 0.3.3.1-alpha.
4539   o Minor bugfixes (ipv6):
4540     - Check for private IPv6 addresses alongside their IPv4 equivalents
4541       when authorities check descriptors. Previously, we only checked
4542       for private IPv4 addresses. Fixes bug 31088; bugfix on
4543       0.2.3.21-rc. Patch by Neel Chauhan.
4544     - When parsing microdescriptors, we should check the IPv6 exit
4545       policy alongside IPv4. Previously, we checked both exit policies
4546       for only router info structures, while microdescriptors were
4547       IPv4-only. Fixes bug 27284; bugfix on 0.2.3.1-alpha. Patch by
4548       Neel Chauhan.
4550   o Minor bugfixes (logging):
4551     - Change log level of message "Hash of session info was not as
4552       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
4553       on 0.1.1.10-alpha.
4554     - Fix a code issue that would have broken our parsing of log domains
4555       as soon as we had 33 of them. Fortunately, we still only have 29.
4556       Fixes bug 31451; bugfix on 0.4.1.4-rc.
4558   o Minor bugfixes (memory management):
4559     - Stop leaking a small amount of memory in nt_service_install(), in
4560       unreachable code. Fixes bug 30799; bugfix on 0.2.0.7-alpha. Patch
4561       by Xiaoyin Liu.
4563   o Minor bugfixes (networking, IP addresses):
4564     - When parsing addresses via Tor's internal DNS lookup API, reject
4565       IPv4 addresses in square brackets, and accept IPv6 addresses in
4566       square brackets. This change completes the work started in 23082,
4567       making address parsing consistent between tor's internal DNS
4568       lookup and address parsing APIs. Fixes bug 30721; bugfix
4569       on 0.2.1.5-alpha.
4570     - When parsing addresses via Tor's internal address:port parsing and
4571       DNS lookup APIs, require IPv6 addresses with ports to have square
4572       brackets. But allow IPv6 addresses without ports, whether or not
4573       they have square brackets. Fixes bug 30721; bugfix
4574       on 0.2.1.5-alpha.
4576   o Minor bugfixes (onion service v3):
4577     - When purging the client descriptor cache, close any introduction
4578       point circuits associated with purged cache entries. This avoids
4579       picking those circuits later when connecting to the same
4580       introduction points. Fixes bug 30921; bugfix on 0.3.2.1-alpha.
4582   o Minor bugfixes (onion services):
4583     - In the hs_ident_circuit_t data structure, remove the unused field
4584       circuit_type and the respective argument in hs_ident_circuit_new().
4585       This field was set by clients (for introduction) and services (for
4586       introduction and rendezvous) but was never used afterwards. Fixes
4587       bug 31490; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
4589   o Minor bugfixes (operator tools):
4590     - Make tor-print-ed-signing-cert(1) print certificate expiration
4591       date in RFC 1123 and UNIX timestamp formats, to make output
4592       machine readable. Fixes bug 31012; bugfix on 0.3.5.1-alpha.
4594   o Minor bugfixes (rust):
4595     - Correctly exclude a redundant rust build job in Travis. Fixes bug
4596       31463; bugfix on 0.3.5.4-alpha.
4597     - Raise the minimum rustc version to 1.31.0, as checked by configure
4598       and CI. Fixes bug 31442; bugfix on 0.3.5.4-alpha.
4600   o Minor bugfixes (sendme, code structure):
4601     - Rename the trunnel SENDME file definition from sendme.trunnel to
4602       sendme_cell.trunnel to avoid having twice sendme.{c|h} in the
4603       repository. Fixes bug 30769; bugfix on 0.4.1.1-alpha.
4605   o Minor bugfixes (statistics):
4606     - Stop removing the ed25519 signature if the extra info file is too
4607       big. If the signature data was removed, but the keyword was kept,
4608       this could result in an unparseable extra info file. Fixes bug
4609       30958; bugfix on 0.2.7.2-alpha.
4611   o Minor bugfixes (subsystems):
4612     - Make the subsystem init order match the subsystem module
4613       dependencies. Call windows process security APIs as early as
4614       possible. Initialize logging before network and time, so that
4615       network and time can use logging. Fixes bug 31615; bugfix
4616       on 0.4.0.1-alpha.
4618   o Minor bugfixes (testing):
4619     - Teach the util/socketpair_ersatz test to work correctly when we
4620       have no network stack configured. Fixes bug 30804; bugfix
4621       on 0.2.5.1-alpha.
4623   o Minor bugfixes (v2 single onion services):
4624     - Always retry v2 single onion service intro and rend circuits with
4625       a 3-hop path. Previously, v2 single onion services used a 3-hop
4626       path when rendezvous circuits were retried after a remote or
4627       delayed failure, but a 1-hop path for immediate retries. Fixes bug
4628       23818; bugfix on 0.2.9.3-alpha.
4630   o Minor bugfixes (v3 single onion services):
4631     - Always retry v3 single onion service intro and rend circuits with
4632       a 3-hop path. Previously, v3 single onion services used a 3-hop
4633       path when rend circuits were retried after a remote or delayed
4634       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
4635       bugfix on 0.3.2.1-alpha.
4636     - Make v3 single onion services fall back to a 3-hop intro, when all
4637       intro points are unreachable via a 1-hop path. Previously, v3
4638       single onion services failed when all intro nodes were unreachable
4639       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
4641   o Documentation:
4642     - Improve documentation in circuit padding subsystem. Patch by
4643       Tobias Pulls. Closes ticket 31113.
4644     - Include an example usage for IPv6 ORPort in our sample torrc.
4645       Closes ticket 31320; patch from Ali Raheem.
4646     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
4647       notice.html so that operators no longer have to host it
4648       themselves. Closes ticket 31089.
4650   o Removed features:
4651     - No longer include recommended package digests in votes as detailed
4652       in proposal 301. The RecommendedPackages torrc option is
4653       deprecated and will no longer have any effect. "package" lines
4654       will still be considered when computing consensuses for consensus
4655       methods that include them. (This change has no effect on the list
4656       of recommended Tor versions, which is still in use.) Closes
4657       ticket 29738.
4658     - Remove torctl.in from contrib/dist directory. Resolves
4659       ticket 30550.
4661   o Testing:
4662     - Run shellcheck for all non-third-party shell scripts that are
4663       shipped with Tor. Closes ticket 29533.
4664     - When checking shell scripts, ignore any user-created directories.
4665       Closes ticket 30967.
4667   o Code simplification and refactoring (config handling):
4668     - Extract our variable manipulation code from confparse.c to a new
4669       lower-level typedvar.h module. Closes ticket 30864.
4670     - Lower another layer of object management from confparse.c to a
4671       more general tool. Now typed structure members are accessible via
4672       an abstract type. Implements ticket 30914.
4673     - Move our backend logic for working with configuration and state
4674       files into a lower-level library, since it no longer depends on
4675       any tor-specific functionality. Closes ticket 31626.
4676     - Numerous simplifications in configuration-handling logic: remove
4677       duplicated macro definitions, replace magical names with flags,
4678       and refactor "TestingTorNetwork" to use the same default-option
4679       logic as the rest of Tor. Closes ticket 30935.
4680     - Replace our ad-hoc set of flags for configuration variables and
4681       configuration variable types with fine-grained orthogonal flags
4682       corresponding to the actual behavior we want. Closes ticket 31625.
4684   o Code simplification and refactoring (misc):
4685     - Eliminate some uses of lower-level control reply abstractions,
4686       primarily in the onion_helper functions. Closes ticket 30889.
4687     - Rework bootstrap tracking to use the new publish-subscribe
4688       subsystem. Closes ticket 29976.
4689     - Rewrite format_node_description() and router_get_verbose_nickname()
4690       to use strlcpy() and strlcat(). The previous implementation used
4691       memcpy() and pointer arithmetic, which was error-prone. Closes
4692       ticket 31545. This is CID 1452819.
4693     - Split extrainfo_dump_to_string() into smaller functions. Closes
4694       ticket 30956.
4695     - Use the ptrdiff_t type consistently for expressing variable
4696       offsets and pointer differences. Previously we incorrectly (but
4697       harmlessly) used int and sometimes off_t for these cases. Closes
4698       ticket 31532.
4699     - Use the subsystems mechanism to manage the main event loop code.
4700       Closes ticket 30806.
4701     - Various simplifications and minor improvements to the circuit
4702       padding machines. Patch by Tobias Pulls. Closes tickets 31112
4703       and 31098.
4705   o Documentation (hard-coded directories):
4706     - Improve the documentation for the DirAuthority and FallbackDir
4707       torrc options. Closes ticket 30955.
4709   o Documentation (tor.1 man page):
4710     - Fix typo in tor.1 man page: the option is "--help", not "-help".
4711       Fixes bug 31008; bugfix on 0.2.2.9-alpha.
4714 Changes in version 0.4.1.5 - 2019-08-20
4715   This is the first stable release in the 0.4.1.x series. This series
4716   adds experimental circuit-level padding, authenticated SENDME cells to
4717   defend against certain attacks, and several performance improvements
4718   to save on CPU consumption. It fixes bugs in bootstrapping and v3
4719   onion services. It also includes numerous smaller features and
4720   bugfixes on earlier versions.
4722   Per our support policy, we will support the 0.4.1.x series for nine
4723   months, or until three months after the release of a stable 0.4.2.x:
4724   whichever is longer. If you need longer-term support, please stick
4725   with 0.3.5.x, which will we plan to support until Feb 2022.
4727   Below are the changes since 0.4.1.4-rc. For a complete list of changes
4728   since 0.4.0.5, see the ReleaseNotes file.
4730   o Directory authority changes:
4731     - The directory authority "dizum" has a new IP address. Closes
4732       ticket 31406.
4734   o Minor features (circuit padding logging):
4735     - Demote noisy client-side warn logs about circuit padding to
4736       protocol warnings. Add additional log messages and circuit ID
4737       fields to help with bug 30992 and any other future issues.
4739   o Minor bugfixes (circuit padding negotiation):
4740     - Bump the circuit padding protocol version to explicitly signify
4741       that the HS setup machine support is finalized in 0.4.1.x-stable.
4742       This also means that 0.4.1.x-alpha clients will not negotiate
4743       padding with 0.4.1.x-stable relays, and 0.4.1.x-stable clients
4744       will not negotiate padding with 0.4.1.x-alpha relays (or 0.4.0.x
4745       relays). Fixes bug 31356; bugfix on 0.4.1.1-alpha.
4747   o Minor bugfixes (circuit padding):
4748     - Ignore non-padding cells on padding circuits. This addresses
4749       various warning messages from subsystems that were not expecting
4750       padding circuits. Fixes bug 30942; bugfix on 0.4.1.1-alpha.
4752   o Minor bugfixes (clock skew detection):
4753     - Don't believe clock skew results from NETINFO cells that appear to
4754       arrive before we sent the VERSIONS cells they are responding to.
4755       Previously, we would accept them up to 3 minutes "in the past".
4756       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
4758   o Minor bugfixes (compatibility, standards compliance):
4759     - Fix a bug that would invoke undefined behavior on certain
4760       operating systems when trying to asprintf() a string exactly
4761       INT_MAX bytes long. We don't believe this is exploitable, but it's
4762       better to fix it anyway. Fixes bug 31001; bugfix on 0.2.2.11-alpha.
4763       Found and fixed by Tobias Stoeckmann.
4765   o Minor bugfixes (compilation warning):
4766     - Fix a compilation warning on Windows about casting a function
4767       pointer for GetTickCount64(). Fixes bug 31374; bugfix
4768       on 0.2.9.1-alpha.
4770   o Minor bugfixes (compilation):
4771     - Avoid using labs() on time_t, which can cause compilation warnings
4772       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
4774   o Minor bugfixes (distribution):
4775     - Do not ship any temporary files found in the
4776       scripts/maint/practracker directory. Fixes bug 31311; bugfix
4777       on 0.4.1.1-alpha.
4779   o Testing (continuous integration):
4780     - In Travis, make stem log a controller trace to the console, and
4781       tail stem's tor log after failure. Closes ticket 30591.
4782     - In Travis, only run the stem tests that use a tor binary. Closes
4783       ticket 30694.
4786 Changes in version 0.4.1.4-rc - 2019-07-25
4787   Tor 0.4.1.4-rc fixes a few bugs from previous versions of Tor, and
4788   updates to a new list of fallback directories. If no new bugs are
4789   found, the next release in the 0.4.1.x serious should be stable.
4791   o Major bugfixes (circuit build, guard):
4792     - When considering upgrading circuits from "waiting for guard" to
4793       "open", always ignore circuits that are marked for close. Otherwise,
4794       we can end up in the situation where a subsystem is notified that
4795       a closing circuit has just opened, leading to undesirable
4796       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
4798   o Minor features (continuous integration):
4799     - Our Travis configuration now uses Chutney to run some network
4800       integration tests automatically. Closes ticket 29280.
4802   o Minor features (fallback directory list):
4803     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
4804       in December 2018 (of which ~122 were still functional), with a
4805       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
4806       in June 2019. Closes ticket 28795.
4808   o Minor bugfixes (circuit padding):
4809     - On relays, properly check that a padding machine is absent before
4810       logging a warning about it being absent. Fixes bug 30649; bugfix
4811       on 0.4.0.1-alpha.
4812     - Add two NULL checks in unreachable places to silence Coverity (CID
4813       144729 and 1447291) and better future-proof ourselves. Fixes bug
4814       31024; bugfix on 0.4.1.1-alpha.
4816   o Minor bugfixes (crash on exit):
4817     - Avoid a set of possible code paths that could try to use freed
4818       memory in routerlist_free() while Tor was exiting. Fixes bug
4819       31003; bugfix on 0.1.2.2-alpha.
4821   o Minor bugfixes (logging):
4822     - Fix a conflict between the flag used for messaging-domain log
4823       messages, and the LD_NO_MOCK testing flag. Fixes bug 31080; bugfix
4824       on 0.4.1.1-alpha.
4826   o Minor bugfixes (memory leaks):
4827     - Fix a trivial memory leak when parsing an invalid value from a
4828       download schedule in the configuration. Fixes bug 30894; bugfix
4829       on 0.3.4.1-alpha.
4831   o Code simplification and refactoring:
4832     - Remove some dead code from circpad_machine_remove_token() to fix
4833       some Coverity warnings (CID 1447298). Fixes bug 31027; bugfix
4834       on 0.4.1.1-alpha.
4837 Changes in version 0.4.1.3-alpha - 2019-06-25
4838   Tor 0.4.1.3-alpha resolves numerous bugs left over from the previous
4839   alpha, most of them from earlier release series.
4841   o Major bugfixes (Onion service reachability):
4842     - Properly clean up the introduction point map when circuits change
4843       purpose from onion service circuits to pathbias, measurement, or
4844       other circuit types. This should fix some service-side instances
4845       of introduction point failure. Fixes bug 29034; bugfix
4846       on 0.3.2.1-alpha.
4848   o Minor features (geoip):
4849     - Update geoip and geoip6 to the June 10 2019 Maxmind GeoLite2
4850       Country database. Closes ticket 30852.
4852   o Minor features (logging):
4853     - Give a more useful assertion failure message if we think we have
4854       minherit() but we fail to make a region non-inheritable. Give a
4855       compile-time warning if our support for minherit() is incomplete.
4856       Closes ticket 30686.
4858   o Minor bugfixes (circuit isolation):
4859     - Fix a logic error that prevented the SessionGroup sub-option from
4860       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
4862   o Minor bugfixes (continuous integration):
4863     - Allow the test-stem job to fail in Travis, because it sometimes
4864       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
4865     - Skip test_rebind on macOS in Travis, because it is unreliable on
4866       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
4867     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
4868       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
4870   o Minor bugfixes (directory authorities):
4871     - Stop crashing after parsing an unknown descriptor purpose
4872       annotation. We think this bug can only be triggered by modifying a
4873       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
4875   o Minor bugfixes (pluggable transports):
4876     - When running as a bridge with pluggable transports, always publish
4877       pluggable transport information in our extrainfo descriptor, even
4878       if ExtraInfoStatistics is 0. This information is needed by
4879       BridgeDB. Fixes bug 30956; bugfix on 0.4.1.1-alpha.
4881   o Documentation:
4882     - Mention URLs for Travis/Appveyor/Jenkins in ReleasingTor.md.
4883       Closes ticket 30630.
4886 Changes in version 0.4.1.2-alpha - 2019-06-06
4887   Tor 0.4.1.2-alpha resolves numerous bugs--some of them from the
4888   previous alpha, and some much older. It also contains minor testing
4889   improvements, and an improvement to the security of our authenticated
4890   SENDME implementation.
4892   o Major bugfixes (bridges):
4893     - Consider our directory information to have changed when our list
4894       of bridges changes. Previously, Tor would not re-compute the
4895       status of its directory information when bridges changed, and
4896       therefore would not realize that it was no longer able to build
4897       circuits. Fixes part of bug 29875.
4898     - Do not count previously configured working bridges towards our
4899       total of working bridges. Previously, when Tor's list of bridges
4900       changed, it would think that the old bridges were still usable,
4901       and delay fetching router descriptors for the new ones. Fixes part
4902       of bug 29875; bugfix on 0.3.0.1-alpha.
4904   o Major bugfixes (flow control, SENDME):
4905     - Decrement the stream-level package window after packaging a cell.
4906       Previously, it was done inside a log_debug() call, meaning that if
4907       debug logs were not enabled, the decrement would never happen, and
4908       thus the window would be out of sync with the other end point.
4909       Fixes bug 30628; bugfix on 0.4.1.1-alpha.
4911   o Major bugfixes (onion service reachability):
4912     - Properly clean up the introduction point map and associated state
4913       when circuits change purpose from onion service circuits to
4914       pathbias, measurement, or other circuit types. This may fix some
4915       instances of introduction point failure. Fixes bug 29034; bugfix
4916       on 0.3.2.1-alpha.
4918   o Minor features (authenticated SENDME):
4919     - Ensure that there is enough randomness on every circuit to prevent
4920       an attacker from successfully predicting the hashes they will need
4921       to include in authenticated SENDME cells. At a random interval, if
4922       we have not sent randomness already, we now leave some extra space
4923       at the end of a cell that we can fill with random bytes. Closes
4924       ticket 26846.
4926   o Minor features (continuous integration):
4927     - When running coverage builds on Travis, we now set
4928       TOR_TEST_RNG_SEED, to avoid RNG-based coverage differences. Part
4929       of ticket 28878.
4931   o Minor features (maintenance):
4932     - Add a new "make autostyle" target that developers can use to apply
4933       all automatic Tor style and consistency conversions to the
4934       codebase. Closes ticket 30539.
4936   o Minor features (testing):
4937     - The circuitpadding tests now use a reproducible RNG implementation,
4938       so that if a test fails, we can learn why. Part of ticket 28878.
4939     - Tor's tests now support an environment variable, TOR_TEST_RNG_SEED,
4940       to set the RNG seed for tests that use a reproducible RNG. Part of
4941       ticket 28878.
4942     - When running tests in coverage mode, take additional care to make
4943       our coverage deterministic, so that we can accurately track
4944       changes in code coverage. Closes ticket 30519.
4946   o Minor bugfixes (configuration, proxies):
4947     - Fix a bug that prevented us from supporting SOCKS5 proxies that
4948       want authentication along with configured (but unused!)
4949       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
4951   o Minor bugfixes (controller):
4952     - POSTDESCRIPTOR requests should work again. Previously, they were
4953       broken if a "purpose=" flag was specified. Fixes bug 30580; bugfix
4954       on 0.4.1.1-alpha.
4955     - Repair the HSFETCH command so that it works again. Previously, it
4956       expected a body when it shouldn't have. Fixes bug 30646; bugfix
4957       on 0.4.1.1-alpha.
4959   o Minor bugfixes (developer tooling):
4960     - Fix pre-push hook to allow fixup and squash commits when pushing
4961       to non-upstream git remote. Fixes bug 30286; bugfix
4962       on 0.4.0.1-alpha.
4964   o Minor bugfixes (directory authority):
4965     - Move the "bandwidth-file-headers" line in directory authority
4966       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
4967       on 0.3.5.1-alpha.
4969   o Minor bugfixes (NetBSD):
4970     - Fix usage of minherit() on NetBSD and other platforms that define
4971       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
4972       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
4974   o Minor bugfixes (out-of-memory handler):
4975     - When purging the DNS cache because of an out-of-memory condition,
4976       try purging just the older entries at first. Previously, we would
4977       always purge the whole thing. Fixes bug 29617; bugfix
4978       on 0.3.5.1-alpha.
4980   o Minor bugfixes (portability):
4981     - Avoid crashing in our tor_vasprintf() implementation on systems
4982       that define neither vasprintf() nor _vscprintf(). (This bug has
4983       been here long enough that we question whether people are running
4984       Tor on such systems, but we're applying the fix out of caution.)
4985       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
4986       Tobias Stoeckmann.
4988   o Minor bugfixes (shutdown, libevent, memory safety):
4989     - Avoid use-after-free bugs when shutting down, by making sure that
4990       we shut down libevent only after shutting down all of its users.
4991       We believe these are harmless in practice, since they only occur
4992       on the shutdown path, and do not involve any attacker-controlled
4993       data. Fixes bug 30629; bugfix on 0.4.1.1-alpha.
4995   o Minor bugfixes (static analysis):
4996     - Fix several spurious Coverity warnings about the unit tests, to
4997       lower our chances of missing real warnings in the future. Fixes
4998       bug 30150; bugfix on 0.3.5.1-alpha and various other Tor versions.
5000   o Testing:
5001     - Specify torrc paths (with empty files) when launching tor in
5002       integration tests; refrain from reading user and system torrcs.
5003       Resolves issue 29702.
5006 Changes in version 0.4.1.1-alpha - 2019-05-22
5007   This is the first alpha in the 0.4.1.x series. It introduces
5008   lightweight circuit padding to make some onion-service circuits harder
5009   to distinguish, includes a new "authenticated SENDME" feature to make
5010   certain denial-of-service attacks more difficult, and improves
5011   performance in several areas.
5013   o Major features (circuit padding):
5014     - Onion service clients now add padding cells at the start of their
5015       INTRODUCE and RENDEZVOUS circuits, to make those circuits' traffic
5016       look more like general purpose Exit traffic. The overhead for this
5017       is 2 extra cells in each direction for RENDEZVOUS circuits, and 1
5018       extra upstream cell and 10 downstream cells for INTRODUCE
5019       circuits. This feature is only enabled when also supported by the
5020       circuit's middle node. (Clients may specify fixed middle nodes
5021       with the MiddleNodes option, and may force-disable this feature
5022       with the CircuitPadding option.) Closes ticket 28634.
5024   o Major features (code organization):
5025     - Tor now includes a generic publish-subscribe message-passing
5026       subsystem that we can use to organize intermodule dependencies. We
5027       hope to use this to reduce dependencies between modules that don't
5028       need to be related, and to generally simplify our codebase. Closes
5029       ticket 28226.
5031   o Major features (controller protocol):
5032     - Controller commands are now parsed using a generalized parsing
5033       subsystem. Previously, each controller command was responsible for
5034       parsing its own input, which led to strange inconsistencies.
5035       Closes ticket 30091.
5037   o Major features (flow control):
5038     - Implement authenticated SENDMEs as detailed in proposal 289. A
5039       SENDME cell now includes the digest of the traffic that it
5040       acknowledges, so that once an end point receives the SENDME, it
5041       can confirm the other side's knowledge of the previous cells that
5042       were sent, and prevent certain types of denial-of-service attacks.
5043       This behavior is controlled by two new consensus parameters: see
5044       the proposal for more details. Fixes ticket 26288.
5046   o Major features (performance):
5047     - Our node selection algorithm now excludes nodes in linear time.
5048       Previously, the algorithm was quadratic, which could slow down
5049       heavily used onion services. Closes ticket 30307.
5051   o Major features (performance, RNG):
5052     - Tor now constructs a fast secure pseudorandom number generator for
5053       each thread, to use when performance is critical. This PRNG is
5054       based on AES-CTR, using a buffering construction similar to
5055       libottery and the (newer) OpenBSD arc4random() code. It
5056       outperforms OpenSSL 1.1.1a's CSPRNG by roughly a factor of 100 for
5057       small outputs. Although we believe it to be cryptographically
5058       strong, we are only using it when necessary for performance.
5059       Implements tickets 29023 and 29536.
5061   o Major bugfixes (onion service v3):
5062     - Fix an unreachable bug in which an introduction point could try to
5063       send an INTRODUCE_ACK with a status code that Trunnel would refuse
5064       to encode, leading the relay to assert(). We've consolidated the
5065       ABI values into Trunnel now. Fixes bug 30454; bugfix
5066       on 0.3.0.1-alpha.
5067     - Clients can now handle unknown status codes from INTRODUCE_ACK
5068       cells. (The NACK behavior will stay the same.) This will allow us
5069       to extend status codes in the future without breaking the normal
5070       client behavior. Fixes another part of bug 30454; bugfix
5071       on 0.3.0.1-alpha.
5073   o Minor features (circuit padding):
5074     - We now use a fast PRNG when scheduling circuit padding. Part of
5075       ticket 28636.
5076     - Allow the padding machine designer to pick the edges of their
5077       histogram instead of trying to compute them automatically using an
5078       exponential formula. Resolves some undefined behavior in the case
5079       of small histograms and allows greater flexibility on machine
5080       design. Closes ticket 29298; bugfix on 0.4.0.1-alpha.
5081     - Allow circuit padding machines to hold a circuit open until they
5082       are done padding it. Closes ticket 28780.
5084   o Minor features (compile-time modules):
5085     - Add a "--list-modules" command to print a list of which compile-
5086       time modules are enabled. Closes ticket 30452.
5088   o Minor features (continuous integration):
5089     - Remove sudo configuration lines from .travis.yml as they are no
5090       longer needed with current Travis build environment. Resolves
5091       issue 30213.
5092     - In Travis, show stem's tor log after failure. Closes ticket 30234.
5094   o Minor features (controller):
5095     - Add onion service version 3 support to the HSFETCH command.
5096       Previously, only version 2 onion services were supported. Closes
5097       ticket 25417. Patch by Neel Chauhan.
5099   o Minor features (debugging):
5100     - Introduce tor_assertf() and tor_assertf_nonfatal() to enable
5101       logging of additional information during assert failure. Now we
5102       can use format strings to include information for trouble
5103       shooting. Resolves ticket 29662.
5105   o Minor features (defense in depth):
5106     - In smartlist_remove_keeporder(), set unused pointers to NULL, in
5107       case a bug causes them to be used later. Closes ticket 30176.
5108       Patch from Tobias Stoeckmann.
5109     - Tor now uses a cryptographically strong PRNG even for decisions
5110       that we do not believe are security-sensitive. Previously, for
5111       performance reasons, we had used a trivially predictable linear
5112       congruential generator algorithm for certain load-balancing and
5113       statistical sampling decisions. Now we use our fast RNG in those
5114       cases. Closes ticket 29542.
5116   o Minor features (developer tools):
5117     - Tor's "practracker" test script now checks for files and functions
5118       that seem too long and complicated. Existing overlong functions
5119       and files are accepted for now, but should eventually be
5120       refactored. Closes ticket 29221.
5121     - Add some scripts used for git maintenance to scripts/git. Closes
5122       ticket 29391.
5123     - Call practracker from pre-push and pre-commit git hooks to let
5124       developers know if they made any code style violations. Closes
5125       ticket 30051.
5126     - Add a script to check that each header has a well-formed and
5127       unique guard macro. Closes ticket 29756.
5129   o Minor features (geoip):
5130     - Update geoip and geoip6 to the May 13 2019 Maxmind GeoLite2
5131       Country database. Closes ticket 30522.
5133   o Minor features (HTTP tunnel):
5134     - Return an informative web page when the HTTPTunnelPort is used as
5135       an HTTP proxy. Closes ticket 27821, patch by "eighthave".
5137   o Minor features (IPv6, v3 onion services):
5138     - Make v3 onion services put IPv6 addresses in service descriptors.
5139       Before this change, service descriptors only contained IPv4
5140       addresses. Implements 26992.
5142   o Minor features (modularity):
5143     - The "--disable-module-dirauth" compile-time option now disables
5144       even more dirauth-only code. Closes ticket 30345.
5146   o Minor features (performance):
5147     - Use OpenSSL's implementations of SHA3 when available (in OpenSSL
5148       1.1.1 and later), since they tend to be faster than tiny-keccak.
5149       Closes ticket 28837.
5151   o Minor features (testing):
5152     - Tor's unit test code now contains helper functions to replace the
5153       PRNG with a deterministic or reproducible version for testing.
5154       Previously, various tests implemented this in various ways.
5155       Implements ticket 29732.
5156     - We now have a script, cov-test-determinism.sh, to identify places
5157       where our unit test coverage has become nondeterministic. Closes
5158       ticket 29436.
5159     - Check that representative subsets of values of `int` and `unsigned
5160       int` can be represented by `void *`. Resolves issue 29537.
5162   o Minor bugfixes (bridge authority):
5163     - Bridge authorities now set bridges as running or non-running when
5164       about to dump their status to a file. Previously, they set bridges
5165       as running in response to a GETINFO command, but those shouldn't
5166       modify data structures. Fixes bug 24490; bugfix on 0.2.0.13-alpha.
5167       Patch by Neel Chauhan.
5169   o Minor bugfixes (channel padding statistics):
5170     - Channel padding write totals and padding-enabled totals are now
5171       counted properly in relay extrainfo descriptors. Fixes bug 29231;
5172       bugfix on 0.3.1.1-alpha.
5174   o Minor bugfixes (circuit padding):
5175     - Add a "CircuitPadding" torrc option to disable circuit padding.
5176       Fixes bug 28693; bugfix on 0.4.0.1-alpha.
5177     - Allow circuit padding machines to specify that they do not
5178       contribute much overhead, and provide consensus flags and torrc
5179       options to force clients to only use these low overhead machines.
5180       Fixes bug 29203; bugfix on 0.4.0.1-alpha.
5181     - Provide a consensus parameter to fully disable circuit padding, to
5182       be used in emergency network overload situations. Fixes bug 30173;
5183       bugfix on 0.4.0.1-alpha.
5184     - The circuit padding subsystem will no longer schedule padding if
5185       dormant mode is enabled. Fixes bug 28636; bugfix on 0.4.0.1-alpha.
5186     - Inspect a circuit-level cell queue before sending padding, to
5187       avoid sending padding while too much data is already queued. Fixes
5188       bug 29204; bugfix on 0.4.0.1-alpha.
5189     - Avoid calling monotime_absolute_usec() in circuit padding machines
5190       that do not use token removal or circuit RTT estimation. Fixes bug
5191       29085; bugfix on 0.4.0.1-alpha.
5193   o Minor bugfixes (compilation, unusual configurations):
5194     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
5195       due to missing declarations of abort(), and prevent other such
5196       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
5198   o Minor bugfixes (controller protocol):
5199     - Teach the controller parser to distinguish an object preceded by
5200       an argument list from one without. Previously, it couldn't
5201       distinguish an argument list from the first line of a multiline
5202       object. Fixes bug 29984; bugfix on 0.2.3.8-alpha.
5204   o Minor bugfixes (directory authority, ipv6):
5205     - Directory authorities with IPv6 support now always mark themselves
5206       as reachable via IPv6. Fixes bug 24338; bugfix on 0.2.4.1-alpha.
5207       Patch by Neel Chauhan.
5209   o Minor bugfixes (documentation):
5210     - Improve the documentation for using MapAddress with ".exit". Fixes
5211       bug 30109; bugfix on 0.1.0.1-rc.
5212     - Improve the monotonic time module and function documentation to
5213       explain what "monotonic" actually means, and document some results
5214       that have surprised people. Fixes bug 29640; bugfix
5215       on 0.2.9.1-alpha.
5216     - Use proper formatting when providing an example on quoting options
5217       that contain whitespace. Fixes bug 29635; bugfix on 0.2.3.18-rc.
5219   o Minor bugfixes (logging):
5220     - Do not log a warning when running with an OpenSSL version other
5221       than the one Tor was compiled with, if the two versions should be
5222       compatible. Previously, we would warn whenever the version was
5223       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
5224     - Warn operators when the MyFamily option is set but ContactInfo is
5225       missing, as the latter should be set too. Fixes bug 25110; bugfix
5226       on 0.3.3.1-alpha.
5228   o Minor bugfixes (memory leak):
5229     - Avoid a minor memory leak that could occur on relays when failing
5230       to create a "keys" directory. Fixes bug 30148; bugfix
5231       on 0.3.3.1-alpha.
5233   o Minor bugfixes (onion services):
5234     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
5235       implemenation) when failing to load an onion service client
5236       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
5237     - When refusing to launch a controller's HSFETCH request because of
5238       rate-limiting, respond to the controller with a new response,
5239       "QUERY_RATE_LIMITED". Previously, we would log QUERY_NO_HSDIR for
5240       this case. Fixes bug 28269; bugfix on 0.3.1.1-alpha. Patch by
5241       Neel Chauhan.
5242     - When relaunching a circuit to a rendezvous service, mark the
5243       circuit as needing high-uptime routers as appropriate. Fixes bug
5244       17357; bugfix on 0.1.0.1-rc. Patch by Neel Chauhan.
5245     - Stop ignoring IPv6 link specifiers sent to v3 onion services.
5246       (IPv6 support for v3 onion services is still incomplete: see
5247       ticket 23493 for details.) Fixes bug 23588; bugfix on
5248       0.3.2.1-alpha. Patch by Neel Chauhan.
5250   o Minor bugfixes (onion services, performance):
5251     - When building circuits to onion services, call tor_addr_parse()
5252       less often. Previously, we called tor_addr_parse() in
5253       circuit_is_acceptable() even if its output wasn't used. This
5254       change should improve performance when building circuits. Fixes
5255       bug 22210; bugfix on 0.2.8.12. Patch by Neel Chauhan.
5257   o Minor bugfixes (performance):
5258     - When checking whether a node is a bridge, use a fast check to make
5259       sure that its identity is set. Previously, we used a constant-time
5260       check, which is not necessary in this case. Fixes bug 30308;
5261       bugfix on 0.3.5.1-alpha.
5263   o Minor bugfixes (pluggable transports):
5264     - Tor now sets TOR_PT_EXIT_ON_STDIN_CLOSE=1 for client transports as
5265       well as servers. Fixes bug 25614; bugfix on 0.2.7.1-alpha.
5267   o Minor bugfixes (probability distributions):
5268     - Refactor and improve parts of the probability distribution code
5269       that made Coverity complain. Fixes bug 29805; bugfix
5270       on 0.4.0.1-alpha.
5272   o Minor bugfixes (python):
5273     - Stop assuming that /usr/bin/python3 exists. For scripts that work
5274       with python2, use /usr/bin/python. Otherwise, use /usr/bin/env
5275       python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha.
5277   o Minor bugfixes (relay):
5278     - When running as a relay, if IPv6Exit is set to 1 while ExitRelay
5279       is auto, act as if ExitRelay is 1. Previously, we would ignore
5280       IPv6Exit if ExitRelay was 0 or auto. Fixes bug 29613; bugfix on
5281       0.3.5.1-alpha. Patch by Neel Chauhan.
5283   o Minor bugfixes (stats):
5284     - When ExtraInfoStatistics is 0, stop including bandwidth usage
5285       statistics, GeoIPFile hashes, ServerTransportPlugin lines, and
5286       bridge statistics by country in extra-info documents. Fixes bug
5287       29018; bugfix on 0.2.4.1-alpha.
5289   o Minor bugfixes (testing):
5290     - Call setrlimit() to disable core dumps in test_bt_cl.c. Previously
5291       we used `ulimit -c` in test_bt.sh, which violates POSIX shell
5292       compatibility. Fixes bug 29061; bugfix on 0.3.5.1-alpha.
5293     - Fix some incorrect code in the v3 onion service unit tests. Fixes
5294       bug 29243; bugfix on 0.3.2.1-alpha.
5295     - In the "routerkeys/*" tests, check the return values of mkdir()
5296       for possible failures. Fixes bug 29939; bugfix on 0.2.7.2-alpha.
5297       Found by Coverity as CID 1444254.
5298     - Split test_utils_general() into several smaller test functions.
5299       This makes it easier to perform resource deallocation on assert
5300       failure, and fixes Coverity warnings CID 1444117 and CID 1444118.
5301       Fixes bug 29823; bugfix on 0.2.9.1-alpha.
5303   o Minor bugfixes (tor-resolve):
5304     - Fix a memory leak in tor-resolve that could happen if Tor gave it
5305       a malformed SOCKS response. (Memory leaks in tor-resolve don't
5306       actually matter, but it's good to fix them anyway.) Fixes bug
5307       30151; bugfix on 0.4.0.1-alpha.
5309   o Code simplification and refactoring:
5310     - Abstract out the low-level formatting of replies on the control
5311       port. Implements ticket 30007.
5312     - Add several assertions in an attempt to fix some Coverity
5313       warnings. Closes ticket 30149.
5314     - Introduce a connection_dir_buf_add() helper function that checks
5315       for compress_state of dir_connection_t and automatically writes a
5316       string to directory connection with or without compression.
5317       Resolves issue 28816.
5318     - Make the base32_decode() API return the number of bytes written,
5319       for consistency with base64_decode(). Closes ticket 28913.
5320     - Move most relay-only periodic events out of mainloop.c into the
5321       relay subsystem. Closes ticket 30414.
5322     - Refactor and encapsulate parts of the codebase that manipulate
5323       crypt_path_t objects. Resolves issue 30236.
5324     - Refactor several places in our code that Coverity incorrectly
5325       believed might have memory leaks. Closes ticket 30147.
5326     - Remove redundant return values in crypto_format, and the
5327       associated return value checks elsewhere in the code. Make the
5328       implementations in crypto_format consistent, and remove redundant
5329       code. Resolves ticket 29660.
5330     - Rename tor_mem_is_zero() to fast_mem_is_zero(), to emphasize that
5331       it is not a constant-time function. Closes ticket 30309.
5332     - Replace hs_desc_link_specifier_t with link_specifier_t, and remove
5333       all hs_desc_link_specifier_t-specific code. Fixes bug 22781;
5334       bugfix on 0.3.2.1-alpha.
5335     - Simplify v3 onion service link specifier handling code. Fixes bug
5336       23576; bugfix on 0.3.2.1-alpha.
5337     - Split crypto_digest.c into NSS code, OpenSSL code, and shared
5338       code. Resolves ticket 29108.
5339     - Split control.c into several submodules, in preparation for
5340       distributing its current responsibilities throughout the codebase.
5341       Closes ticket 29894.
5342     - Start to move responsibility for knowing about periodic events to
5343       the appropriate subsystems, so that the mainloop doesn't need to
5344       know all the periodic events in the rest of the codebase.
5345       Implements tickets 30293 and 30294.
5347   o Documentation:
5348     - Document how to find git commits and tags for bug fixes in
5349       CodingStandards.md. Update some file documentation. Closes
5350       ticket 30261.
5352   o Removed features:
5353     - Remove the linux-tor-prio.sh script from contrib/operator-tools
5354       directory. Resolves issue 29434.
5355     - Remove the obsolete OpenSUSE initscript. Resolves issue 30076.
5356     - Remove the obsolete script at contrib/dist/tor.sh.in. Resolves
5357       issue 30075.
5359   o Code simplification and refactoring (shell scripts):
5360     - Clean up many of our shell scripts to fix shellcheck warnings.
5361       These include autogen.sh (ticket 26069), test_keygen.sh (ticket
5362       29062), test_switch_id.sh (ticket 29065), test_rebind.sh (ticket
5363       29063), src/test/fuzz/minimize.sh (ticket 30079), test_rust.sh
5364       (ticket 29064), torify (ticket 29070), asciidoc-helper.sh (29926),
5365       fuzz_multi.sh (30077), fuzz_static_testcases.sh (ticket 29059),
5366       nagios-check-tor-authority-cert (ticket 29071),
5367       src/test/fuzz/fixup_filenames.sh (ticket 30078), test-network.sh
5368       (ticket 29060), test_key_expiration.sh (ticket 30002),
5369       zero_length_keys.sh (ticket 29068), and test_workqueue_*.sh
5370       (ticket 29067).
5372   o Testing (chutney):
5373     - In "make test-network-all", test IPv6-only v3 single onion
5374       services, using the chutney network single-onion-v23-ipv6-md.
5375       Closes ticket 27251.
5378 Changes in version 0.4.0.5 - 2019-05-02
5379   This is the first stable release in the 0.4.0.x series. It contains
5380   improvements for power management and bootstrap reporting, as well as
5381   preliminary backend support for circuit padding to prevent some kinds
5382   of traffic analysis. It also continues our work in refactoring Tor for
5383   long-term maintainability.
5385   Per our support policy, we will support the 0.4.0.x series for nine
5386   months, or until three months after the release of a stable 0.4.1.x:
5387   whichever is longer. If you need longer-term support, please stick
5388   with 0.3.5.x, which will we plan to support until Feb 2022.
5390   Below are the changes since 0.4.0.4-rc. For a complete list of changes
5391   since 0.3.5.7, see the ReleaseNotes file.
5393   o Minor features (continuous integration):
5394     - In Travis, tell timelimit to use stem's backtrace signals, and
5395       launch python directly from timelimit, so python receives the
5396       signals from timelimit, rather than make. Closes ticket 30117.
5398   o Minor features (diagnostic):
5399     - Add more diagnostic log messages in an attempt to solve the issue
5400       of NUL bytes appearing in a microdescriptor cache. Related to
5401       ticket 28223.
5403   o Minor features (testing):
5404     - Use the approx_time() function when setting the "Expires" header
5405       in directory replies, to make them more testable. Needed for
5406       ticket 30001.
5408   o Minor bugfixes (rust):
5409     - Abort on panic in all build profiles, instead of potentially
5410       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
5412   o Minor bugfixes (shellcheck):
5413     - Look for scripts in their correct locations during "make
5414       shellcheck". Previously we had looked in the wrong place during
5415       out-of-tree builds. Fixes bug 30263; bugfix on 0.4.0.1-alpha.
5417   o Minor bugfixes (testing):
5418     - Check the time in the "Expires" header using approx_time(). Fixes
5419       bug 30001; bugfix on 0.4.0.4-rc.
5421   o Minor bugfixes (UI):
5422     - Lower log level of unlink() errors during bootstrap. Fixes bug
5423       29930; bugfix on 0.4.0.1-alpha.
5426 Changes in version 0.4.0.4-rc - 2019-04-11
5427   Tor 0.4.0.4-rc is the first release candidate in its series; it fixes
5428   several bugs from earlier versions, including some that had affected
5429   stability, and one that prevented relays from working with NSS.
5431   o Major bugfixes (NSS, relay):
5432     - When running with NSS, disable TLS 1.2 ciphersuites that use
5433       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
5434       these ciphersuites don't work -- which caused relays to fail to
5435       handshake with one another when these ciphersuites were enabled.
5436       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
5438   o Minor features (bandwidth authority):
5439     - Make bandwidth authorities ignore relays that are reported in the
5440       bandwidth file with the flag "vote=0". This change allows us to
5441       report unmeasured relays for diagnostic reasons without including
5442       their bandwidth in the bandwidth authorities' vote. Closes
5443       ticket 29806.
5444     - When a directory authority is using a bandwidth file to obtain the
5445       bandwidth values that will be included in the next vote, serve
5446       this bandwidth file at /tor/status-vote/next/bandwidth. Closes
5447       ticket 21377.
5449   o Minor features (circuit padding):
5450     - Stop warning about undefined behavior in the probability
5451       distribution tests. Float division by zero may technically be
5452       undefined behavior in C, but it's well defined in IEEE 754.
5453       Partial backport of 29298. Closes ticket 29527; bugfix
5454       on 0.4.0.1-alpha.
5456   o Minor features (continuous integration):
5457     - On Travis Rust builds, cleanup Rust registry and refrain from
5458       caching the "target/" directory to speed up builds. Resolves
5459       issue 29962.
5461   o Minor features (dormant mode):
5462     - Add a DormantCanceledByStartup option to tell Tor that it should
5463       treat a startup event as cancelling any previous dormant state.
5464       Integrators should use this option with caution: it should only be
5465       used if Tor is being started because of something that the user
5466       did, and not if Tor is being automatically started in the
5467       background. Closes ticket 29357.
5469   o Minor features (geoip):
5470     - Update geoip and geoip6 to the April 2 2019 Maxmind GeoLite2
5471       Country database. Closes ticket 29992.
5473   o Minor features (NSS, diagnostic):
5474     - Try to log an error from NSS (if there is any) and a more useful
5475       description of our situation if we are using NSS and a call to
5476       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
5478   o Minor bugfixes (security):
5479     - Fix a potential double free bug when reading huge bandwidth files.
5480       The issue is not exploitable in the current Tor network because
5481       the vulnerable code is only reached when directory authorities
5482       read bandwidth files, but bandwidth files come from a trusted
5483       source (usually the authorities themselves). Furthermore, the
5484       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
5485       which are not used by any of the current authorities. Fixes bug
5486       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
5487       Tobias Stoeckmann.
5488     - Verify in more places that we are not about to create a buffer
5489       with more than INT_MAX bytes, to avoid possible OOB access in the
5490       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
5491       fixed by Tobias Stoeckmann.
5493   o Minor bugfix (continuous integration):
5494     - Reset coverage state on disk after Travis CI has finished. This
5495       should prevent future coverage merge errors from causing the test
5496       suite for the "process" subsystem to fail. The process subsystem
5497       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
5498       on 0.2.9.15.
5499     - Terminate test-stem if it takes more than 9.5 minutes to run.
5500       (Travis terminates the job after 10 minutes of no output.)
5501       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
5503   o Minor bugfixes (bootstrap reporting):
5504     - During bootstrap reporting, correctly distinguish pluggable
5505       transports from plain proxies. Fixes bug 28925; bugfix
5506       on 0.4.0.1-alpha.
5508   o Minor bugfixes (C correctness):
5509     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
5510       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
5511       CID 1444119.
5513   o Minor bugfixes (circuitpadding testing):
5514     - Minor tweaks to avoid rare test failures related to timers and
5515       monotonic time. Fixes bug 29500; bugfix on 0.4.0.1-alpha.
5517   o Minor bugfixes (directory authorities):
5518     - Actually include the bandwidth-file-digest line in directory
5519       authority votes. Fixes bug 29959; bugfix on 0.4.0.2-alpha.
5521   o Minor bugfixes (logging):
5522     - On Windows, when errors cause us to reload a consensus from disk,
5523       tell the user that we are retrying at log level "notice".
5524       Previously we only logged this information at "info", which was
5525       confusing because the errors themselves were logged at "warning".
5526       Improves previous fix for 28614. Fixes bug 30004; bugfix
5527       on 0.4.0.2-alpha.
5529   o Minor bugfixes (pluggable transports):
5530     - Restore old behavior when it comes to discovering the path of a
5531       given Pluggable Transport executable file. A change in
5532       0.4.0.1-alpha had broken this behavior on paths containing a
5533       space. Fixes bug 29874; bugfix on 0.4.0.1-alpha.
5535   o Minor bugfixes (testing):
5536     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
5537       recent test-network.sh to use new chutney features in CI. Fixes
5538       bug 29703; bugfix on 0.2.9.1-alpha.
5539     - Fix a test failure on Windows caused by an unexpected "BUG"
5540       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
5541       on 0.2.9.3-alpha.
5543   o Minor bugfixes (TLS protocol):
5544     - When classifying a client's selection of TLS ciphers, if the
5545       client ciphers are not yet available, do not cache the result.
5546       Previously, we had cached the unavailability of the cipher list
5547       and never looked again, which in turn led us to assume that the
5548       client only supported the ancient V1 link protocol. This, in turn,
5549       was causing Stem integration tests to stall in some cases. Fixes
5550       bug 30021; bugfix on 0.2.4.8-alpha.
5552   o Code simplification and refactoring:
5553     - Introduce a connection_dir_buf_add() helper function that detects
5554       whether compression is in use, and adds a string accordingly.
5555       Resolves issue 28816.
5556     - Refactor handle_get_next_bandwidth() to use
5557       connection_dir_buf_add(). Implements ticket 29897.
5559   o Documentation:
5560     - Clarify that Tor performs stream isolation among *Port listeners
5561       by default. Resolves issue 29121.
5564 Changes in version 0.4.0.3-alpha - 2019-03-22
5565   Tor 0.4.0.3-alpha is the third in its series; it fixes several small
5566   bugs from earlier versions.
5568   o Minor features (address selection):
5569     - Treat the subnet 100.64.0.0/10 as public for some purposes;
5570       private for others. This subnet is the RFC 6598 (Carrier Grade
5571       NAT) IP range, and is deployed by many ISPs as an alternative to
5572       RFC 1918 that does not break existing internal networks. Tor now
5573       blocks SOCKS and control ports on these addresses and warns users
5574       if client ports or ExtORPorts are listening on a RFC 6598 address.
5575       Closes ticket 28525. Patch by Neel Chauhan.
5577   o Minor features (geoip):
5578     - Update geoip and geoip6 to the March 4 2019 Maxmind GeoLite2
5579       Country database. Closes ticket 29666.
5581   o Minor bugfixes (circuitpadding):
5582     - Inspect the circuit-level cell queue before sending padding, to
5583       avoid sending padding when too much data is queued. Fixes bug
5584       29204; bugfix on 0.4.0.1-alpha.
5586   o Minor bugfixes (logging):
5587     - Correct a misleading error message when IPv4Only or IPv6Only is
5588       used but the resolved address can not be interpreted as an address
5589       of the specified IP version. Fixes bug 13221; bugfix on
5590       0.2.3.9-alpha. Patch from Kris Katterjohn.
5591     - Log the correct port number for listening sockets when "auto" is
5592       used to let Tor pick the port number. Previously, port 0 was
5593       logged instead of the actual port number. Fixes bug 29144; bugfix
5594       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
5595     - Stop logging a BUG() warning when Tor is waiting for exit
5596       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
5598   o Minor bugfixes (memory management):
5599     - Refactor the shared random state's memory management so that it
5600       actually takes ownership of the shared random value pointers.
5601       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
5603   o Minor bugfixes (memory management, testing):
5604     - Stop leaking parts of the shared random state in the shared-random
5605       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
5607   o Minor bugfixes (pluggable transports):
5608     - Fix an assertion failure crash bug when a pluggable transport is
5609       terminated during the bootstrap phase. Fixes bug 29562; bugfix
5610       on 0.4.0.1-alpha.
5612   o Minor bugfixes (Rust, protover):
5613     - Add a missing "Padding" value to the Rust implementation of
5614       protover. Fixes bug 29631; bugfix on 0.4.0.1-alpha.
5616   o Minor bugfixes (single onion services):
5617     - Allow connections to single onion services to remain idle without
5618       being disconnected. Previously, relays acting as rendezvous points
5619       for single onion services were mistakenly closing idle rendezvous
5620       circuits after 60 seconds, thinking that they were unused
5621       directory-fetching circuits that had served their purpose. Fixes
5622       bug 29665; bugfix on 0.2.1.26.
5624   o Minor bugfixes (stats):
5625     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
5626       relay and bridge extra-info documents. Fixes bug 29017; bugfix
5627       on 0.3.1.1-alpha.
5629   o Minor bugfixes (testing):
5630     - Downgrade some LOG_ERR messages in the address/* tests to
5631       warnings. The LOG_ERR messages were occurring when we had no
5632       configured network. We were failing the unit tests, because we
5633       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
5634       29530; bugfix on 0.3.5.8.
5635     - Fix our gcov wrapper script to look for object files at the
5636       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
5637     - Decrease the false positive rate of stochastic probability
5638       distribution tests. Fixes bug 29693; bugfix on 0.4.0.1-alpha.
5640   o Minor bugfixes (Windows, CI):
5641     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
5642       Windows Server 2012 R2 job. The remaining 2 jobs still provide
5643       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
5644       fast_finish, so failed jobs terminate the build immediately. Fixes
5645       bug 29601; bugfix on 0.3.5.4-alpha.
5648 Changes in version 0.3.5.8 - 2019-02-21
5649   Tor 0.3.5.8 backports several fixes from later releases, including fixes
5650   for an annoying SOCKS-parsing bug that affected users in earlier 0.3.5.x
5651   releases.
5653   It also includes a fix for a medium-severity security bug affecting Tor
5654   0.3.2.1-alpha and later. All Tor instances running an affected release
5655   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
5657   o Major bugfixes (cell scheduler, KIST, security):
5658     - Make KIST consider the outbuf length when computing what it can
5659       put in the outbuf. Previously, KIST acted as though the outbuf
5660       were empty, which could lead to the outbuf becoming too full. It
5661       is possible that an attacker could exploit this bug to cause a Tor
5662       client or relay to run out of memory and crash. Fixes bug 29168;
5663       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
5664       TROVE-2019-001 and CVE-2019-8955.
5666   o Major bugfixes (networking, backport from 0.4.0.2-alpha):
5667     - Gracefully handle empty username/password fields in SOCKS5
5668       username/password auth message and allow SOCKS5 handshake to
5669       continue. Previously, we had rejected these handshakes, breaking
5670       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
5672   o Minor features (compilation, backport from 0.4.0.2-alpha):
5673     - Compile correctly when OpenSSL is built with engine support
5674       disabled, or with deprecated APIs disabled. Closes ticket 29026.
5675       Patches from "Mangix".
5677   o Minor features (geoip):
5678     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
5679       Country database. Closes ticket 29478.
5681   o Minor features (testing, backport from 0.4.0.2-alpha):
5682     - Treat all unexpected ERR and BUG messages as test failures. Closes
5683       ticket 28668.
5685   o Minor bugfixes (onion service v3, client, backport from 0.4.0.1-alpha):
5686     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
5687       connection waiting for a descriptor that we actually have in the
5688       cache. It turns out that this can actually happen, though it is
5689       rare. Now, tor will recover and retry the descriptor. Fixes bug
5690       28669; bugfix on 0.3.2.4-alpha.
5692   o Minor bugfixes (IPv6, backport from 0.4.0.1-alpha):
5693     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
5694       IPv6 socket was bound using an address family of AF_INET instead
5695       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
5696       Kris Katterjohn.
5698   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
5699     - Update Cargo.lock file to match the version made by the latest
5700       version of Rust, so that "make distcheck" will pass again. Fixes
5701       bug 29244; bugfix on 0.3.3.4-alpha.
5703   o Minor bugfixes (client, clock skew, backport from 0.4.0.1-alpha):
5704     - Select guards even if the consensus has expired, as long as the
5705       consensus is still reasonably live. Fixes bug 24661; bugfix
5706       on 0.3.0.1-alpha.
5708   o Minor bugfixes (compilation, backport from 0.4.0.1-alpha):
5709     - Compile correctly on OpenBSD; previously, we were missing some
5710       headers required in order to detect it properly. Fixes bug 28938;
5711       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
5713   o Minor bugfixes (documentation, backport from 0.4.0.2-alpha):
5714     - Describe the contents of the v3 onion service client authorization
5715       files correctly: They hold public keys, not private keys. Fixes
5716       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
5718   o Minor bugfixes (logging, backport from 0.4.0.1-alpha):
5719     - Rework rep_hist_log_link_protocol_counts() to iterate through all
5720       link protocol versions when logging incoming/outgoing connection
5721       counts. Tor no longer skips version 5, and we won't have to
5722       remember to update this function when new link protocol version is
5723       developed. Fixes bug 28920; bugfix on 0.2.6.10.
5725   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
5726     - Log more information at "warning" level when unable to read a
5727       private key; log more information at "info" level when unable to
5728       read a public key. We had warnings here before, but they were lost
5729       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
5731   o Minor bugfixes (misc, backport from 0.4.0.2-alpha):
5732     - The amount of total available physical memory is now determined
5733       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
5734       when it is defined and a 64-bit variant is not available. Fixes
5735       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
5737   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
5738     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
5739       than one private key for a hidden service. Fixes bug 29040; bugfix
5740       on 0.3.5.1-alpha.
5741     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
5742       "debug" level. Tor used to log it as a warning, which caused very
5743       long log lines to appear for some users. Fixes bug 29135; bugfix
5744       on 0.3.2.1-alpha.
5745     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
5746       as a warning. Instead, log it as a protocol warning, because there
5747       is nothing that relay operators can do to fix it. Fixes bug 29029;
5748       bugfix on 0.2.5.7-rc.
5750   o Minor bugfixes (tests, directory clients, backport from 0.4.0.1-alpha):
5751     - Mark outdated dirservers when Tor only has a reasonably live
5752       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
5754   o Minor bugfixes (tests, backport from 0.4.0.2-alpha):
5755     - Detect and suppress "bug" warnings from the util/time test on
5756       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
5757     - Do not log an error-level message if we fail to find an IPv6
5758       network interface from the unit tests. Fixes bug 29160; bugfix
5759       on 0.2.7.3-rc.
5761   o Minor bugfixes (usability, backport from 0.4.0.1-alpha):
5762     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
5763       Some users took this phrasing to mean that the mentioned guard was
5764       under their control or responsibility, which it is not. Fixes bug
5765       28895; bugfix on Tor 0.3.0.1-alpha.
5768 Changes in version 0.3.4.11 - 2019-02-21
5769   Tor 0.3.4.11 is the third stable release in its series.  It includes
5770   a fix for a medium-severity security bug affecting Tor 0.3.2.1-alpha and
5771   later. All Tor instances running an affected release should upgrade to
5772   0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
5774   o Major bugfixes (cell scheduler, KIST, security):
5775     - Make KIST consider the outbuf length when computing what it can
5776       put in the outbuf. Previously, KIST acted as though the outbuf
5777       were empty, which could lead to the outbuf becoming too full. It
5778       is possible that an attacker could exploit this bug to cause a Tor
5779       client or relay to run out of memory and crash. Fixes bug 29168;
5780       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
5781       TROVE-2019-001 and CVE-2019-8955.
5783   o Minor features (geoip):
5784     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
5785       Country database. Closes ticket 29478.
5787   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
5788     - Update Cargo.lock file to match the version made by the latest
5789       version of Rust, so that "make distcheck" will pass again. Fixes
5790       bug 29244; bugfix on 0.3.3.4-alpha.
5792   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
5793     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
5794       as a warning. Instead, log it as a protocol warning, because there
5795       is nothing that relay operators can do to fix it. Fixes bug 29029;
5796       bugfix on 0.2.5.7-rc.
5799 Changes in version 0.3.3.12 - 2019-02-21
5800   Tor 0.3.3.12 fixes a medium-severity security bug affecting Tor
5801   0.3.2.1-alpha and later. All Tor instances running an affected release
5802   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
5804   This release marks the end of support for the Tor 0.3.3.x series. We
5805   recommend that users switch to either the Tor 0.3.4 series (supported
5806   until at least 10 June 2019), or the Tor 0.3.5 series, which will
5807   receive long-term support until at least 1 Feb 2022.
5809   o Major bugfixes (cell scheduler, KIST, security):
5810     - Make KIST consider the outbuf length when computing what it can
5811       put in the outbuf. Previously, KIST acted as though the outbuf
5812       were empty, which could lead to the outbuf becoming too full. It
5813       is possible that an attacker could exploit this bug to cause a Tor
5814       client or relay to run out of memory and crash. Fixes bug 29168;
5815       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
5816       TROVE-2019-001 and CVE-2019-8955.
5818   o Minor features (geoip):
5819     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
5820       Country database. Closes ticket 29478.
5822   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
5823     - Update Cargo.lock file to match the version made by the latest
5824       version of Rust, so that "make distcheck" will pass again. Fixes
5825       bug 29244; bugfix on 0.3.3.4-alpha.
5827   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
5828     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
5829       as a warning. Instead, log it as a protocol warning, because there
5830       is nothing that relay operators can do to fix it. Fixes bug 29029;
5831       bugfix on 0.2.5.7-rc.
5834 Changes in version 0.4.0.2-alpha - 2019-02-21
5835   Tor 0.4.0.2-alpha is the second alpha in its series; it fixes several
5836   bugs from earlier versions, including several that had broken
5837   backward compatibility.
5839   It also includes a fix for a medium-severity security bug affecting Tor
5840   0.3.2.1-alpha and later. All Tor instances running an affected release
5841   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
5843   o Major bugfixes (cell scheduler, KIST, security):
5844     - Make KIST consider the outbuf length when computing what it can
5845       put in the outbuf. Previously, KIST acted as though the outbuf
5846       were empty, which could lead to the outbuf becoming too full. It
5847       is possible that an attacker could exploit this bug to cause a Tor
5848       client or relay to run out of memory and crash. Fixes bug 29168;
5849       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
5850       TROVE-2019-001 and CVE-2019-8955.
5852   o Major bugfixes (networking):
5853     - Gracefully handle empty username/password fields in SOCKS5
5854       username/password auth messsage and allow SOCKS5 handshake to
5855       continue. Previously, we had rejected these handshakes, breaking
5856       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
5858   o Major bugfixes (windows, startup):
5859     - When reading a consensus file from disk, detect whether it was
5860       written in text mode, and re-read it in text mode if so. Always
5861       write consensus files in binary mode so that we can map them into
5862       memory later. Previously, we had written in text mode, which
5863       confused us when we tried to map the file on windows. Fixes bug
5864       28614; bugfix on 0.4.0.1-alpha.
5866   o Minor features (compilation):
5867     - Compile correctly when OpenSSL is built with engine support
5868       disabled, or with deprecated APIs disabled. Closes ticket 29026.
5869       Patches from "Mangix".
5871   o Minor features (developer tooling):
5872     - Check that bugfix versions in changes files look like Tor versions
5873       from the versions spec. Warn when bugfixes claim to be on a future
5874       release. Closes ticket 27761.
5875     - Provide a git pre-commit hook that disallows committing if we have
5876       any failures in our code and changelog formatting checks. It is
5877       now available in scripts/maint/pre-commit.git-hook. Implements
5878       feature 28976.
5880   o Minor features (directory authority):
5881     - When a directory authority is using a bandwidth file to obtain
5882       bandwidth values, include the digest of that file in the vote.
5883       Closes ticket 26698.
5885   o Minor features (geoip):
5886     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
5887       Country database. Closes ticket 29478.
5889   o Minor features (testing):
5890     - Treat all unexpected ERR and BUG messages as test failures. Closes
5891       ticket 28668.
5893   o Minor bugfixes (build, compatibility, rust):
5894     - Update Cargo.lock file to match the version made by the latest
5895       version of Rust, so that "make distcheck" will pass again. Fixes
5896       bug 29244; bugfix on 0.3.3.4-alpha.
5898   o Minor bugfixes (compilation):
5899     - Fix compilation warnings in test_circuitpadding.c. Fixes bug
5900       29169; bugfix on 0.4.0.1-alpha.
5901     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
5902       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
5904   o Minor bugfixes (documentation):
5905     - Describe the contents of the v3 onion service client authorization
5906       files correctly: They hold public keys, not private keys. Fixes
5907       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
5909   o Minor bugfixes (linux seccomp sandbox):
5910     - Fix startup crash when experimental sandbox support is enabled.
5911       Fixes bug 29150; bugfix on 0.4.0.1-alpha. Patch by Peter Gerber.
5913   o Minor bugfixes (logging):
5914     - Avoid logging that we are relaxing a circuit timeout when that
5915       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
5916     - Log more information at "warning" level when unable to read a
5917       private key; log more information at "info" level when unable to
5918       read a public key. We had warnings here before, but they were lost
5919       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
5921   o Minor bugfixes (misc):
5922     - The amount of total available physical memory is now determined
5923       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
5924       when it is defined and a 64-bit variant is not available. Fixes
5925       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
5927   o Minor bugfixes (onion services):
5928     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
5929       than one private key for a hidden service. Fixes bug 29040; bugfix
5930       on 0.3.5.1-alpha.
5931     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
5932       "debug" level. Tor used to log it as a warning, which caused very
5933       long log lines to appear for some users. Fixes bug 29135; bugfix
5934       on 0.3.2.1-alpha.
5935     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
5936       as a warning. Instead, log it as a protocol warning, because there
5937       is nothing that relay operators can do to fix it. Fixes bug 29029;
5938       bugfix on 0.2.5.7-rc.
5940   o Minor bugfixes (scheduler):
5941     - When re-adding channels to the pending list, check the correct
5942       channel's sched_heap_idx. This issue has had no effect in mainline
5943       Tor, but could have led to bugs down the road in improved versions
5944       of our circuit scheduling code. Fixes bug 29508; bugfix
5945       on 0.3.2.10.
5947   o Minor bugfixes (tests):
5948     - Fix intermittent failures on an adaptive padding test. Fixes one
5949       case of bug 29122; bugfix on 0.4.0.1-alpha.
5950     - Disable an unstable circuit-padding test that was failing
5951       intermittently because of an ill-defined small histogram. Such
5952       histograms will be allowed again after 29298 is implemented. Fixes
5953       a second case of bug 29122; bugfix on 0.4.0.1-alpha.
5954     - Detect and suppress "bug" warnings from the util/time test on
5955       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
5956     - Do not log an error-level message if we fail to find an IPv6
5957       network interface from the unit tests. Fixes bug 29160; bugfix
5958       on 0.2.7.3-rc.
5960   o Documentation:
5961     - In the manpage entry describing MapAddress torrc setting, use
5962       example IP addresses from ranges specified for use in documentation
5963       by RFC 5737. Resolves issue 28623.
5965   o Removed features:
5966     - Remove the old check-tor script. Resolves issue 29072.
5969 Changes in version 0.4.0.1-alpha - 2019-01-18
5970   Tor 0.4.0.1-alpha is the first release in the new 0.4.0.x series. It
5971   introduces improved features for power and bandwidth conservation,
5972   more accurate reporting of bootstrap progress for user interfaces, and
5973   an experimental backend for an exciting new adaptive padding feature.
5974   There is also the usual assortment of bugfixes and minor features, all
5975   described below.
5977   o Major features (battery management, client, dormant mode):
5978     - When Tor is running as a client, and it is unused for a long time,
5979       it can now enter a "dormant" state. When Tor is dormant, it avoids
5980       network and CPU activity until it is reawoken either by a user
5981       request or by a controller command. For more information, see the
5982       configuration options starting with "Dormant". Implements tickets
5983       2149 and 28335.
5984     - The client's memory of whether it is "dormant", and how long it
5985       has spent idle, persists across invocations. Implements
5986       ticket 28624.
5987     - There is a DormantOnFirstStartup option that integrators can use
5988       if they expect that in many cases, Tor will be installed but
5989       not used.
5991   o Major features (bootstrap reporting):
5992     - When reporting bootstrap progress, report the first connection
5993       uniformly, regardless of whether it's a connection for building
5994       application circuits. This allows finer-grained reporting of early
5995       progress than previously possible, with the improvements of ticket
5996       27169. Closes tickets 27167 and 27103. Addresses ticket 27308.
5997     - When reporting bootstrap progress, treat connecting to a proxy or
5998       pluggable transport as separate from having successfully used that
5999       proxy or pluggable transport to connect to a relay. Closes tickets
6000       27100 and 28884.
6002   o Major features (circuit padding):
6003     - Implement preliminary support for the circuit padding portion of
6004       Proposal 254. The implementation supports Adaptive Padding (aka
6005       WTF-PAD) state machines for use between experimental clients and
6006       relays. Support is also provided for APE-style state machines that
6007       use probability distributions instead of histograms to specify
6008       inter-packet delay. At the moment, Tor does not provide any
6009       padding state machines that are used in normal operation: for now,
6010       this feature exists solely for experimentation. Closes
6011       ticket 28142.
6013   o Major features (refactoring):
6014     - Tor now uses an explicit list of its own subsystems when
6015       initializing and shutting down. Previously, these systems were
6016       managed implicitly in various places throughout the codebase.
6017       (There may still be some subsystems using the old system.) Closes
6018       ticket 28330.
6020   o Minor features (bootstrap reporting):
6021     - When reporting bootstrap progress, stop distinguishing between
6022       situations where only internal paths are available and situations
6023       where external paths are available. Previously, Tor would often
6024       erroneously report that it had only internal paths. Closes
6025       ticket 27402.
6027   o Minor features (continuous integration):
6028     - Log Python version during each Travis CI job. Resolves
6029       issue 28551.
6031   o Minor features (controller):
6032     - Add a DROPOWNERSHIP command to undo the effects of TAKEOWNERSHIP.
6033       Implements ticket 28843.
6035   o Minor features (developer tooling):
6036     - Provide a git hook script to prevent "fixup!" and "squash!"
6037       commits from ending up in the master branch, as scripts/main/pre-
6038       push.git-hook. Closes ticket 27993.
6040   o Minor features (directory authority):
6041     - Directory authorities support a new consensus algorithm, under
6042       which the family lines in microdescriptors are encoded in a
6043       canonical form. This change makes family lines more compressible
6044       in transit, and on the client. Closes ticket 28266; implements
6045       proposal 298.
6047   o Minor features (directory authority, relay):
6048     - Authorities now vote on a "StaleDesc" flag to indicate that a
6049       relay's descriptor is so old that the relay should upload again
6050       soon. Relays treat this flag as a signal to upload a new
6051       descriptor. This flag will eventually let us remove the
6052       'published' date from routerstatus entries, and make our consensus
6053       diffs much smaller. Closes ticket 26770; implements proposal 293.
6055   o Minor features (fallback directory mirrors):
6056     - Update the fallback whitelist based on operator opt-ins and opt-
6057       outs. Closes ticket 24805, patch by Phoul.
6059   o Minor features (FreeBSD):
6060     - On FreeBSD-based systems, warn relay operators if the
6061       "net.inet.ip.random_id" sysctl (IP ID randomization) is disabled.
6062       Closes ticket 28518.
6064   o Minor features (HTTP standards compliance):
6065     - Stop sending the header "Content-type: application/octet-stream"
6066       along with transparently compressed documents: this confused
6067       browsers. Closes ticket 28100.
6069   o Minor features (IPv6):
6070     - We add an option ClientAutoIPv6ORPort, to make clients randomly
6071       prefer a node's IPv4 or IPv6 ORPort. The random preference is set
6072       every time a node is loaded from a new consensus or bridge config.
6073       We expect that this option will enable clients to bootstrap more
6074       quickly without having to determine whether they support IPv4,
6075       IPv6, or both. Closes ticket 27490. Patch by Neel Chauhan.
6076     - When using addrs_in_same_network_family(), avoid choosing circuit
6077       paths that pass through the same IPv6 subnet more than once.
6078       Previously, we only checked IPv4 subnets. Closes ticket 24393.
6079       Patch by Neel Chauhan.
6081   o Minor features (log messages):
6082     - Improve log message in v3 onion services that could print out
6083       negative revision counters. Closes ticket 27707. Patch
6084       by "ffmancera".
6086   o Minor features (memory usage):
6087     - Save memory by storing microdescriptor family lists with a more
6088       compact representation. Closes ticket 27359.
6089     - Tor clients now use mmap() to read consensus files from disk, so
6090       that they no longer need keep the full text of a consensus in
6091       memory when parsing it or applying a diff. Closes ticket 27244.
6093   o Minor features (parsing):
6094     - Directory authorities now validate that router descriptors and
6095       ExtraInfo documents are in a valid subset of UTF-8, and reject
6096       them if they are not. Closes ticket 27367.
6098   o Minor features (performance):
6099     - Cache the results of summarize_protocol_flags(), so that we don't
6100       have to parse the same protocol-versions string over and over.
6101       This should save us a huge number of malloc calls on startup, and
6102       may reduce memory fragmentation with some allocators. Closes
6103       ticket 27225.
6104     - Remove a needless memset() call from get_token_arguments, thereby
6105       speeding up the tokenization of directory objects by about 20%.
6106       Closes ticket 28852.
6107     - Replace parse_short_policy() with a faster implementation, to
6108       improve microdescriptor parsing time. Closes ticket 28853.
6109     - Speed up directory parsing a little by avoiding use of the non-
6110       inlined strcmp_len() function. Closes ticket 28856.
6111     - Speed up microdescriptor parsing by about 30%, to help improve
6112       startup time. Closes ticket 28839.
6114   o Minor features (pluggable transports):
6115     - Add support for emitting STATUS updates to Tor's control port from
6116       a pluggable transport process. Closes ticket 28846.
6117     - Add support for logging to Tor's logging subsystem from a
6118       pluggable transport process. Closes ticket 28180.
6120   o Minor features (process management):
6121     - Add a new process API for handling child processes. This new API
6122       allows Tor to have bi-directional communication with child
6123       processes on both Unix and Windows. Closes ticket 28179.
6124     - Use the subsystem manager to initialize and shut down the process
6125       module. Closes ticket 28847.
6127   o Minor features (relay):
6128     - When listing relay families, list them in canonical form including
6129       the relay's own identity, and try to give a more useful set of
6130       warnings. Part of ticket 28266 and proposal 298.
6132   o Minor features (required protocols):
6133     - Before exiting because of a missing required protocol, Tor will
6134       now check the publication time of the consensus, and not exit
6135       unless the consensus is newer than the Tor program's own release
6136       date. Previously, Tor would not check the consensus publication
6137       time, and so might exit because of a missing protocol that might
6138       no longer be required in a current consensus. Implements proposal
6139       297; closes ticket 27735.
6141   o Minor features (testing):
6142     - Allow a HeartbeatPeriod of less than 30 minutes in testing Tor
6143       networks. Closes ticket 28840. Patch by Rob Jansen.
6145   o Minor bugfixes (client, clock skew):
6146     - Bootstrap successfully even when Tor's clock is behind the clocks
6147       on the authorities. Fixes bug 28591; bugfix on 0.2.0.9-alpha.
6148     - Select guards even if the consensus has expired, as long as the
6149       consensus is still reasonably live. Fixes bug 24661; bugfix
6150       on 0.3.0.1-alpha.
6152   o Minor bugfixes (compilation):
6153     - Compile correctly on OpenBSD; previously, we were missing some
6154       headers required in order to detect it properly. Fixes bug 28938;
6155       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
6157   o Minor bugfixes (directory clients):
6158     - Mark outdated dirservers when Tor only has a reasonably live
6159       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
6161   o Minor bugfixes (directory mirrors):
6162     - Even when a directory mirror's clock is behind the clocks on the
6163       authorities, we now allow the mirror to serve "future"
6164       consensuses. Fixes bug 28654; bugfix on 0.3.0.1-alpha.
6166   o Minor bugfixes (DNS):
6167     - Gracefully handle an empty or absent resolve.conf file by falling
6168       back to using "localhost" as a DNS server (and hoping it works).
6169       Previously, we would just stop running as an exit. Fixes bug
6170       21900; bugfix on 0.2.1.10-alpha.
6172   o Minor bugfixes (guards):
6173     - In count_acceptable_nodes(), the minimum number is now one bridge
6174       or guard node, and two non-guard nodes for a circuit. Previously,
6175       we had added up the sum of all nodes with a descriptor, but that
6176       could cause us to build failing circuits when we had either too
6177       many bridges or not enough guard nodes. Fixes bug 25885; bugfix on
6178       0.2.3.1-alpha. Patch by Neel Chauhan.
6180   o Minor bugfixes (IPv6):
6181     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
6182       IPv6 socket was bound using an address family of AF_INET instead
6183       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
6184       Kris Katterjohn.
6186   o Minor bugfixes (logging):
6187     - Rework rep_hist_log_link_protocol_counts() to iterate through all
6188       link protocol versions when logging incoming/outgoing connection
6189       counts. Tor no longer skips version 5, and we won't have to
6190       remember to update this function when new link protocol version is
6191       developed. Fixes bug 28920; bugfix on 0.2.6.10.
6193   o Minor bugfixes (networking):
6194     - Introduce additional checks into tor_addr_parse() to reject
6195       certain incorrect inputs that previously were not detected. Fixes
6196       bug 23082; bugfix on 0.2.0.10-alpha.
6198   o Minor bugfixes (onion service v3, client):
6199     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
6200       connection waiting for a descriptor that we actually have in the
6201       cache. It turns out that this can actually happen, though it is
6202       rare. Now, tor will recover and retry the descriptor. Fixes bug
6203       28669; bugfix on 0.3.2.4-alpha.
6205   o Minor bugfixes (periodic events):
6206     - Refrain from calling routerlist_remove_old_routers() from
6207       check_descriptor_callback(). Instead, create a new hourly periodic
6208       event. Fixes bug 27929; bugfix on 0.2.8.1-alpha.
6210   o Minor bugfixes (pluggable transports):
6211     - Make sure that data is continously read from standard output and
6212       standard error pipes of a pluggable transport child-process, to
6213       avoid deadlocking when a pipe's buffer is full. Fixes bug 26360;
6214       bugfix on 0.2.3.6-alpha.
6216   o Minor bugfixes (unit tests):
6217     - Instead of relying on hs_free_all() to clean up all onion service
6218       objects in test_build_descriptors(), we now deallocate them one by
6219       one. This lets Coverity know that we are not leaking memory there
6220       and fixes CID 1442277. Fixes bug 28989; bugfix on 0.3.5.1-alpha.
6222   o Minor bugfixes (usability):
6223     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
6224       Some users took this phrasing to mean that the mentioned guard was
6225       under their control or responsibility, which it is not. Fixes bug
6226       28895; bugfix on Tor 0.3.0.1-alpha.
6228   o Code simplification and refactoring:
6229     - Reimplement NETINFO cell parsing and generation to rely on
6230       trunnel-generated wire format handling code. Closes ticket 27325.
6231     - Remove unnecessary unsafe code from the Rust macro "cstr!". Closes
6232       ticket 28077.
6233     - Rework SOCKS wire format handling to rely on trunnel-generated
6234       parsing/generation code. Resolves ticket 27620.
6235     - Split out bootstrap progress reporting from control.c into a
6236       separate file. Part of ticket 27402.
6237     - The .may_include files that we use to describe our directory-by-
6238       directory dependency structure now describe a noncircular
6239       dependency graph over the directories that they cover. Our
6240       checkIncludes.py tool now enforces this noncircularity. Closes
6241       ticket 28362.
6243   o Documentation:
6244     - Mention that you cannot add a new onion service if Tor is already
6245       running with Sandbox enabled. Closes ticket 28560.
6246     - Improve ControlPort documentation. Mention that it accepts
6247       address:port pairs, and can be used multiple times. Closes
6248       ticket 28805.
6249     - Document the exact output of "tor --version". Closes ticket 28889.
6251   o Removed features:
6252     - Stop responding to the 'GETINFO status/version/num-concurring' and
6253       'GETINFO status/version/num-versioning' control port commands, as
6254       those were deprecated back in 0.2.0.30. Also stop listing them in
6255       output of 'GETINFO info/names'. Resolves ticket 28757.
6256     - The scripts used to generate and maintain the list of fallback
6257       directories have been extracted into a new "fallback-scripts"
6258       repository. Closes ticket 27914.
6260   o Testing:
6261     - Run shellcheck for scripts in the in scripts/ directory. Closes
6262       ticket 28058.
6263     - Add unit tests for tokenize_string() and get_next_token()
6264       functions. Resolves ticket 27625.
6266   o Code simplification and refactoring (onion service v3):
6267     - Consolidate the authorized client descriptor cookie computation
6268       code from client and service into one function. Closes
6269       ticket 27549.
6271   o Code simplification and refactoring (shell scripts):
6272     - Cleanup scan-build.sh to silence shellcheck warnings. Closes
6273       ticket 28007.
6274     - Fix issues that shellcheck found in chutney-git-bisect.sh.
6275       Resolves ticket 28006.
6276     - Fix issues that shellcheck found in updateRustDependencies.sh.
6277       Resolves ticket 28012.
6278     - Fix shellcheck warnings in cov-diff script. Resolves issue 28009.
6279     - Fix shellcheck warnings in run_calltool.sh. Resolves ticket 28011.
6280     - Fix shellcheck warnings in run_trunnel.sh. Resolves issue 28010.
6281     - Fix shellcheck warnings in scripts/test/coverage. Resolves
6282       issue 28008.
6285 Changes in version 0.3.3.11 - 2019-01-07
6286   Tor 0.3.3.11 backports numerous fixes from later versions of Tor.
6287   numerous fixes, including an important fix for anyone using OpenSSL
6288   1.1.1. Anyone running an earlier version of Tor 0.3.3 should upgrade
6289   to this version, or to a later series.
6291   As a reminder, support the Tor 0.3.3 series will end on 22 Feb 2019.
6292   We anticipate that this will be the last release of Tor 0.3.3, unless
6293   some major bug is before then. Some time between now and then, users
6294   should switch to either the Tor 0.3.4 series (supported until at least
6295   10 June 2019), or the Tor 0.3.5 series, which will receive long-term
6296   support until at least 1 Feb 2022.
6298   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
6299     - Fix our usage of named groups when running as a TLS 1.3 client in
6300       OpenSSL 1.1.1. Previously, we only initialized EC groups when
6301       running as a relay, which caused clients to fail to negotiate TLS
6302       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
6303       support was added).
6305   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
6306     - Fix a use-after-free error that could be caused by passing Tor an
6307       impossible set of options that would fail during options_act().
6308       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
6310   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
6311     - Only run one online rust build in Travis, to reduce network
6312       errors. Skip offline rust builds on Travis for Linux gcc, because
6313       they're redundant. Implements ticket 27252.
6314     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
6315       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
6316       Linux with default settings, because all the non-default builds
6317       use gcc on Linux. Implements ticket 27252.
6319   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
6320     - Use the Travis Homebrew addon to install packages on macOS during
6321       Travis CI. The package list is the same, but the Homebrew addon
6322       does not do a `brew update` by default. Implements ticket 27738.
6324   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
6325     - Replace the 150 fallbacks originally introduced in Tor
6326       0.3.3.1-alpha in January 2018 (of which ~115 were still
6327       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
6328       removed) generated in December 2018. Closes ticket 24803.
6330   o Minor features (geoip):
6331     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
6332       Country database. Closes ticket 29012.
6334   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
6335     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
6336       key export function from handling long labels. When this bug is
6337       detected, Tor will disable TLS 1.3. We recommend upgrading to a
6338       version of OpenSSL without this bug when it becomes available.
6339       Closes ticket 28973.
6341   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
6342     - Update relay descriptor on bandwidth changes only when the uptime
6343       is smaller than 24h, in order to reduce the efficiency of guard
6344       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
6346   o Minor bugfixes (C correctness, backport from 0.3.5.4-alpha):
6347     - Avoid undefined behavior in an end-of-string check when parsing
6348       the BEGIN line in a directory object. Fixes bug 28202; bugfix
6349       on 0.2.0.3-alpha.
6351   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
6352     - Rewrite our assertion macros so that they no longer suppress the
6353       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
6355   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
6356     - Initialize a variable unconditionally in aes_new_cipher(), since
6357       some compilers cannot tell that we always initialize it before
6358       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
6360   o Minor bugfixes (directory authority, backport from 0.3.5.4-alpha):
6361     - Log additional info when we get a relay that shares an ed25519 ID
6362       with a different relay, instead making a BUG() warning. Fixes bug
6363       27800; bugfix on 0.3.2.1-alpha.
6365   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
6366     - When a user requests a group-readable DataDirectory, give it to
6367       them. Previously, when the DataDirectory and the CacheDirectory
6368       were the same, the default setting (0) for
6369       CacheDirectoryGroupReadable would override the setting for
6370       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
6371       on 0.3.3.1-alpha.
6373   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
6374     - When the onion service directory can't be created or has the wrong
6375       permissions, do not log a stack trace. Fixes bug 27335; bugfix
6376       on 0.3.2.1-alpha.
6378   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
6379     - Close all SOCKS request (for the same .onion) if the newly fetched
6380       descriptor is unusable. Before that, we would close only the first
6381       one leaving the other hanging and let to time out by themselves.
6382       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
6384   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
6385     - Don't warn so loudly when Tor is unable to decode an onion
6386       descriptor. This can now happen as a normal use case if a client
6387       gets a descriptor with client authorization but the client is not
6388       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
6390   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
6391     - When deleting an ephemeral onion service (DEL_ONION), do not close
6392       any rendezvous circuits in order to let the existing client
6393       connections finish by themselves or closed by the application. The
6394       HS v2 is doing that already so now we have the same behavior for
6395       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
6397   o Minor bugfixes (HTTP tunnel):
6398     - Fix a bug warning when closing an HTTP tunnel connection due to
6399       an HTTP request we couldn't handle. Fixes bug 26470; bugfix on
6400       0.3.2.1-alpha.
6402   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
6403     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
6404       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
6406   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
6407     - Ensure circuitmux queues are empty before scheduling or sending
6408       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
6410   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
6411     - Reject protocol names containing bytes other than alphanumeric
6412       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
6413       on 0.2.9.4-alpha.
6415   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
6416     - Compute protover votes correctly in the rust version of the
6417       protover code. Previously, the protover rewrite in 24031 allowed
6418       repeated votes from the same voter for the same protocol version
6419       to be counted multiple times in protover_compute_vote(). Fixes bug
6420       27649; bugfix on 0.3.3.5-rc.
6421     - Reject protover names that contain invalid characters. Fixes bug
6422       27687; bugfix on 0.3.3.1-alpha.
6424   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
6425     - protover_all_supported() would attempt to allocate up to 16GB on
6426       some inputs, leading to a potential memory DoS. Fixes bug 27206;
6427       bugfix on 0.3.3.5-rc.
6429   o Minor bugfixes (rust, backport from 0.3.5.4-alpha):
6430     - Fix a potential null dereference in protover_all_supported(). Add
6431       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
6432     - Return a string that can be safely freed by C code, not one
6433       created by the rust allocator, in protover_all_supported(). Fixes
6434       bug 27740; bugfix on 0.3.3.1-alpha.
6435     - Fix an API mismatch in the rust implementation of
6436       protover_compute_vote(). This bug could have caused crashes on any
6437       directory authorities running Tor with Rust (which we do not yet
6438       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
6440   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
6441     - If a unit test running in a subprocess exits abnormally or with a
6442       nonzero status code, treat the test as having failed, even if the
6443       test reported success. Without this fix, memory leaks don't cause
6444       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
6445       bugfix on 0.2.2.4-alpha.
6447   o Minor bugfixes (testing, backport from 0.3.5.4-alpha):
6448     - Treat backtrace test failures as expected on BSD-derived systems
6449       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
6450       (FreeBSD failures have been treated as expected since 18204 in
6451       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
6453   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
6454     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
6455       bugfix on 0.3.0.1-alpha.
6458 Changes in version 0.3.4.10 - 2019-01-07
6459   Tor 0.3.4.9 is the second stable release in its series; it backports
6460   numerous fixes, including an important fix for relays, and for anyone
6461   using OpenSSL 1.1.1. Anyone running an  earlier version of Tor 0.3.4
6462   should upgrade.
6464   As a reminder, the Tor 0.3.4 series will be supported until 10 June
6465   2019. Some time between now and then, users should switch to the Tor
6466   0.3.5 series, which will receive long-term support until at least 1
6467   Feb 2022.
6469   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
6470     - Fix our usage of named groups when running as a TLS 1.3 client in
6471       OpenSSL 1.1.1. Previously, we only initialized EC groups when
6472       running as a relay, which caused clients to fail to negotiate TLS
6473       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
6474       support was added).
6476   o Major bugfixes (relay, directory, backport from 0.3.5.7):
6477     - Always reactivate linked connections in the main loop so long as
6478       any linked connection has been active. Previously, connections
6479       serving directory information wouldn't get reactivated after the
6480       first chunk of data was sent (usually 32KB), which would prevent
6481       clients from bootstrapping. Fixes bug 28912; bugfix on
6482       0.3.4.1-alpha. Patch by "cypherpunks3".
6484   o Minor features (continuous integration, Windows, backport from 0.3.5.6-rc):
6485     - Always show the configure and test logs, and upload them as build
6486       artifacts, when building for Windows using Appveyor CI.
6487       Implements 28459.
6489   o Minor features (controller, backport from 0.3.5.1-alpha):
6490     - For purposes of CIRC_BW-based dropped cell detection, track half-
6491       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
6492       bias check cells to arrive without counting it as dropped until
6493       either the END arrives, or the windows are empty. Closes
6494       ticket 25573.
6496   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
6497     - Replace the 150 fallbacks originally introduced in Tor
6498       0.3.3.1-alpha in January 2018 (of which ~115 were still
6499       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
6500       removed) generated in December 2018. Closes ticket 24803.
6502   o Minor features (geoip):
6503     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
6504       Country database. Closes ticket 28395.
6506   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
6507     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
6508       key export function from handling long labels. When this bug is
6509       detected, Tor will disable TLS 1.3. We recommend upgrading to a
6510       version of OpenSSL without this bug when it becomes available.
6511       Closes ticket 28973.
6513   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
6514     - Initialize a variable unconditionally in aes_new_cipher(), since
6515       some compilers cannot tell that we always initialize it before
6516       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
6518   o Minor bugfixes (connection, relay, backport from 0.3.5.5-alpha):
6519     - Avoid a logging a BUG() stacktrace when closing connection held
6520       open because the write side is rate limited but not the read side.
6521       Now, the connection read side is simply shut down until Tor is
6522       able to flush the connection and close it. Fixes bug 27750; bugfix
6523       on 0.3.4.1-alpha.
6525   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.5-alpha):
6526     - Manually configure the zstd compiler options, when building using
6527       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
6528       not come with a pkg-config file. Fixes bug 28454; bugfix
6529       on 0.3.4.1-alpha.
6530     - Stop using an external OpenSSL install, and stop installing MSYS2
6531       packages, when building using mingw on Appveyor Windows CI. Fixes
6532       bug 28399; bugfix on 0.3.4.1-alpha.
6534   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.6-rc):
6535     - Explicitly specify the path to the OpenSSL library and do not
6536       download OpenSSL from Pacman, but instead use the library that is
6537       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
6539   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
6540     - When a user requests a group-readable DataDirectory, give it to
6541       them. Previously, when the DataDirectory and the CacheDirectory
6542       were the same, the default setting (0) for
6543       CacheDirectoryGroupReadable would override the setting for
6544       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
6545       on 0.3.3.1-alpha.
6547   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
6548     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
6549       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
6551   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
6552     - Don't warn so loudly when Tor is unable to decode an onion
6553       descriptor. This can now happen as a normal use case if a client
6554       gets a descriptor with client authorization but the client is not
6555       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
6557   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
6558     - When deleting an ephemeral onion service (DEL_ONION), do not close
6559       any rendezvous circuits in order to let the existing client
6560       connections finish by themselves or closed by the application. The
6561       HS v2 is doing that already so now we have the same behavior for
6562       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
6564   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
6565     - Update relay descriptor on bandwidth changes only when the uptime
6566       is smaller than 24h, in order to reduce the efficiency of guard
6567       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
6569   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
6570     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
6571       bugfix on 0.3.0.1-alpha.
6574 Changes in version 0.3.5.7 - 2019-01-07
6575   Tor 0.3.5.7 is the first stable release in its series; it includes
6576   compilation and portability fixes, and a fix for a severe problem
6577   affecting directory caches.
6579   The Tor 0.3.5 series includes several new features and performance
6580   improvements, including client authorization for v3 onion services,
6581   cleanups to bootstrap reporting, support for improved bandwidth-
6582   measurement tools, experimental support for NSS in place of OpenSSL,
6583   and much more. It also begins a full reorganization of Tor's code
6584   layout, for improved modularity and maintainability in the future.
6585   Finally, there is the usual set of performance improvements and
6586   bugfixes that we try to do in every release series.
6588   There are a couple of changes in the 0.3.5 that may affect
6589   compatibility. First, the default version for newly created onion
6590   services is now v3. Use the HiddenServiceVersion option if you want to
6591   override this. Second, some log messages related to bootstrapping have
6592   changed; if you use stem, you may need to update to the latest version
6593   so it will recognize them.
6595   We have designated 0.3.5 as a "long-term support" (LTS) series: we
6596   will continue to patch major bugs in typical configurations of 0.3.5
6597   until at least 1 Feb 2022. (We do not plan to provide long-term
6598   support for embedding, Rust support, NSS support, running a directory
6599   authority, or unsupported platforms. For these, you will need to stick
6600   with the latest stable release.)
6602   Below are the changes since 0.3.5.6-rc. For a complete list of changes
6603   since 0.3.4.9, see the ReleaseNotes file.
6605   o Major bugfixes (relay, directory):
6606     - Always reactivate linked connections in the main loop so long as
6607       any linked connection has been active. Previously, connections
6608       serving directory information wouldn't get reactivated after the
6609       first chunk of data was sent (usually 32KB), which would prevent
6610       clients from bootstrapping. Fixes bug 28912; bugfix on
6611       0.3.4.1-alpha. Patch by "cypherpunks3".
6613   o Minor features (compilation):
6614     - When possible, place our warning flags in a separate file, to
6615       avoid flooding verbose build logs. Closes ticket 28924.
6617   o Minor features (geoip):
6618     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
6619       Country database. Closes ticket 29012.
6621   o Minor features (OpenSSL bug workaround):
6622     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
6623       key export function from handling long labels. When this bug is
6624       detected, Tor will disable TLS 1.3. We recommend upgrading to a
6625       version of OpenSSL without this bug when it becomes available.
6626       Closes ticket 28973.
6628   o Minor features (performance):
6629     - Remove about 96% of the work from the function that we run at
6630       startup to test our curve25519_basepoint implementation. Since
6631       this function has yet to find an actual failure, we now only run
6632       it for 8 iterations instead of 200. Based on our profile
6633       information, this change should save around 8% of our startup time
6634       on typical desktops, and may have a similar effect on other
6635       platforms. Closes ticket 28838.
6636     - Stop re-validating our hardcoded Diffie-Hellman parameters on
6637       every startup. Doing this wasted time and cycles, especially on
6638       low-powered devices. Closes ticket 28851.
6640   o Minor bugfixes (compilation):
6641     - Fix compilation for Android by adding a missing header to
6642       freespace.c. Fixes bug 28974; bugfix on 0.3.5.1-alpha.
6644   o Minor bugfixes (correctness):
6645     - Fix an unreached code path where we checked the value of
6646       "hostname" inside send_resolved_hostname_cell(). Previously, we
6647       used it before checking it; now we check it first. Fixes bug
6648       28879; bugfix on 0.1.2.7-alpha.
6650   o Minor bugfixes (testing):
6651     - Make sure that test_rebind.py actually obeys its timeout, even
6652       when it receives a large number of log messages. Fixes bug 28883;
6653       bugfix on 0.3.5.4-alpha.
6654     - Stop running stem's unit tests as part of "make test-stem", but
6655       continue to run stem's unit and online tests during "make test-
6656       stem-full". Fixes bug 28568; bugfix on 0.2.6.3-alpha.
6658   o Minor bugfixes (windows services):
6659     - Make Tor start correctly as an NT service again: previously it was
6660       broken by refactoring. Fixes bug 28612; bugfix on 0.3.5.3-alpha.
6662   o Code simplification and refactoring:
6663     - When parsing a port configuration, make it more obvious to static
6664       analyzer tools that we always initialize the address. Closes
6665       ticket 28881.
6668 Changes in version 0.3.5.6-rc - 2018-12-18
6669   Tor 0.3.5.6-rc fixes numerous small bugs in earlier versions of Tor.
6670   It is the first release candidate in the 0.3.5.x series; if no further
6671   huge bugs are found, our next release may be the stable 0.3.5.x.
6673   o Minor features (continuous integration, Windows):
6674     - Always show the configure and test logs, and upload them as build
6675       artifacts, when building for Windows using Appveyor CI.
6676       Implements 28459.
6678   o Minor features (fallback directory list):
6679     - Replace the 150 fallbacks originally introduced in Tor
6680       0.3.3.1-alpha in January 2018 (of which ~115 were still
6681       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
6682       removed) generated in December 2018. Closes ticket 24803.
6684   o Minor features (geoip):
6685     - Update geoip and geoip6 to the December 5 2018 Maxmind GeoLite2
6686       Country database. Closes ticket 28744.
6688   o Minor bugfixes (compilation):
6689     - Add missing dependency on libgdi32.dll for tor-print-ed-signing-
6690       cert.exe on Windows. Fixes bug 28485; bugfix on 0.3.5.1-alpha.
6692   o Minor bugfixes (continuous integration, Windows):
6693     - Explicitly specify the path to the OpenSSL library and do not
6694       download OpenSSL from Pacman, but instead use the library that is
6695       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
6697   o Minor bugfixes (onion service v3):
6698     - When deleting an ephemeral onion service (DEL_ONION), do not close
6699       any rendezvous circuits in order to let the existing client
6700       connections finish by themselves or closed by the application. The
6701       HS v2 is doing that already so now we have the same behavior for
6702       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
6704   o Minor bugfixes (restart-in-process, boostrap):
6705     - Add missing resets of bootstrap tracking state when shutting down
6706       (regression caused by ticket 27169). Fixes bug 28524; bugfix
6707       on 0.3.5.1-alpha.
6709   o Minor bugfixes (testing):
6710     - Use a separate DataDirectory for the test_rebind script.
6711       Previously, this script would run using the default DataDirectory,
6712       and sometimes fail. Fixes bug 28562; bugfix on 0.3.5.1-alpha.
6713       Patch from Taylor R Campbell.
6714     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
6715       bugfix on 0.3.0.1-alpha.
6717   o Minor bugfixes (Windows):
6718     - Correctly identify Windows 8.1, Windows 10, and Windows Server
6719       2008 and later from their NT versions. Fixes bug 28096; bugfix on
6720       0.2.2.34; reported by Keifer Bly.
6721     - On recent Windows versions, the GetVersionEx() function may report
6722       an earlier Windows version than the running OS. To avoid user
6723       confusion, add "[or later]" to Tor's version string on affected
6724       versions of Windows. Fixes bug 28096; bugfix on 0.2.2.34; reported
6725       by Keifer Bly.
6726     - Remove Windows versions that were never supported by the
6727       GetVersionEx() function. Stop duplicating the latest Windows
6728       version in get_uname(). Fixes bug 28096; bugfix on 0.2.2.34;
6729       reported by Keifer Bly.
6731   o Testing:
6732     - Increase logging and tag all log entries with timestamps in
6733       test_rebind.py. Provides diagnostics for issue 28229.
6735   o Code simplification and refactoring (shared random, dirauth):
6736     - Change many tor_assert() to use BUG() instead. The idea is to not
6737       crash a dirauth but rather scream loudly with a stacktrace and let
6738       it continue run. The shared random subsystem is very resilient and
6739       if anything wrong happens with it, at worst a non coherent value
6740       will be put in the vote and discarded by the other authorities.
6741       Closes ticket 19566.
6743   o Documentation (onion services):
6744     - Document in the man page that changing ClientOnionAuthDir value or
6745       adding a new file in the directory will not work at runtime upon
6746       sending a HUP if Sandbox 1. Closes ticket 28128.
6747     - Note in the man page that the only real way to fully revoke an
6748       onion service v3 client authorization is by restarting the tor
6749       process. Closes ticket 28275.
6752 Changes in version 0.3.5.5-alpha - 2018-11-16
6753   Tor 0.3.5.5-alpha includes numerous bugfixes on earlier releases,
6754   including several that we hope to backport to older release series in
6755   the future.
6757   o Major bugfixes (OpenSSL, portability):
6758     - Fix our usage of named groups when running as a TLS 1.3 client in
6759       OpenSSL 1.1.1. Previously, we only initialized EC groups when
6760       running as a relay, which caused clients to fail to negotiate TLS
6761       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
6762       support was added).
6764   o Minor features (geoip):
6765     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
6766       Country database. Closes ticket 28395.
6768   o Minor bugfixes (compilation):
6769     - Initialize a variable unconditionally in aes_new_cipher(), since
6770       some compilers cannot tell that we always initialize it before
6771       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
6773   o Minor bugfixes (connection, relay):
6774     - Avoid a logging a BUG() stacktrace when closing connection held
6775       open because the write side is rate limited but not the read side.
6776       Now, the connection read side is simply shut down until Tor is
6777       able to flush the connection and close it. Fixes bug 27750; bugfix
6778       on 0.3.4.1-alpha.
6780   o Minor bugfixes (continuous integration, Windows):
6781     - Manually configure the zstd compiler options, when building using
6782       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
6783       not come with a pkg-config file. Fixes bug 28454; bugfix
6784       on 0.3.4.1-alpha.
6785     - Stop using an external OpenSSL install, and stop installing MSYS2
6786       packages, when building using mingw on Appveyor Windows CI. Fixes
6787       bug 28399; bugfix on 0.3.4.1-alpha.
6789   o Minor bugfixes (documentation):
6790     - Make Doxygen work again after the code movement in the 0.3.5
6791       source tree. Fixes bug 28435; bugfix on 0.3.5.1-alpha.
6793   o Minor bugfixes (Linux seccomp2 sandbox):
6794     - Permit the "shutdown()" system call, which is apparently used by
6795       OpenSSL under some circumstances. Fixes bug 28183; bugfix
6796       on 0.2.5.1-alpha.
6798   o Minor bugfixes (logging):
6799     - Stop talking about the Named flag in log messages. Clients have
6800       ignored the Named flag since 0.3.2. Fixes bug 28441; bugfix
6801       on 0.3.2.1-alpha.
6803   o Minor bugfixes (memory leaks):
6804     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
6805       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
6807   o Minor bugfixes (onion services):
6808     - On an intro point for a version 3 onion service, stop closing
6809       introduction circuits on an NACK. This lets the client decide
6810       whether to reuse the circuit or discard it. Previously, we closed
6811       intro circuits when sending NACKs. Fixes bug 27841; bugfix on
6812       0.3.2.1-alpha. Patch by Neel Chaunan.
6813     - When replacing a descriptor in the client cache, make sure to
6814       close all client introduction circuits for the old descriptor, so
6815       we don't end up with unusable leftover circuits. Fixes bug 27471;
6816       bugfix on 0.3.2.1-alpha.
6819 Changes in version 0.3.5.4-alpha - 2018-11-08
6820   Tor 0.3.5.4-alpha includes numerous bugfixes on earlier versions and
6821   improves our continuous integration support. It continues our attempts
6822   to stabilize this alpha branch and build it into a foundation for an
6823   acceptable long-term-support release.
6825   o Major bugfixes (compilation, rust):
6826     - Rust tests can now build and run successfully with the
6827       --enable-fragile-hardening option enabled. Doing this currently
6828       requires the rust beta channel; it will be possible with stable
6829       rust once Rust version 1.31 is released. Patch from Alex Crichton.
6830       Fixes bugs 27272, 27273, and 27274. Bugfix on 0.3.1.1-alpha.
6832   o Major bugfixes (embedding, main loop):
6833     - When DisableNetwork becomes set, actually disable periodic events
6834       that are already enabled. (Previously, we would refrain from
6835       enabling new ones, but we would leave the old ones turned on.)
6836       Fixes bug 28348; bugfix on 0.3.4.1-alpha.
6838   o Minor features (continuous integration):
6839     - Add a Travis CI build for --enable-nss on Linux gcc. Closes
6840       ticket 27751.
6841     - Add new CI job to Travis configuration to run stem-based
6842       integration tests. Closes ticket 27913.
6844   o Minor features (Windows, continuous integration):
6845     - Build tor on Windows Server 2012 R2 and Windows Server 2016 using
6846       Appveyor's CI. Closes ticket 28318.
6848   o Minor bugfixes (C correctness, also in 0.3.4.9):
6849     - Avoid undefined behavior in an end-of-string check when parsing
6850       the BEGIN line in a directory object. Fixes bug 28202; bugfix
6851       on 0.2.0.3-alpha.
6853   o Minor bugfixes (compilation):
6854     - Fix a pair of missing headers on OpenBSD. Fixes bug 28303; bugfix
6855       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
6857   o Minor bugfixes (compilation, OpenSolaris):
6858     - Fix compilation on OpenSolaris and its descendants by adding a
6859       missing include to compat_pthreads.c. Fixes bug 27963; bugfix
6860       on 0.3.5.1-alpha.
6862   o Minor bugfixes (configuration):
6863     - Refuse to start with relative file paths and RunAsDaemon set
6864       (regression from the fix for bug 22731). Fixes bug 28298; bugfix
6865       on 0.3.3.1-alpha.
6867   o Minor bugfixes (directory authority, also in 0.3.4.9):
6868     - Log additional info when we get a relay that shares an ed25519 ID
6869       with a different relay, instead of a BUG() warning with a
6870       backtrace. Fixes bug 27800; bugfix on 0.3.2.1-alpha.
6872   o Minor bugfixes (onion service v3):
6873     - Build the service descriptor's signing key certificate before
6874       uploading, so we always have a fresh one: leaving no chances for
6875       it to expire service side. Fixes bug 27838; bugfix
6876       on 0.3.2.1-alpha.
6878   o Minor bugfixes (onion service v3, client authorization):
6879     - Fix an assert() when adding a client authorization for the first
6880       time and then sending a HUP signal to the service. Before that,
6881       Tor would stop abruptly. Fixes bug 27995; bugfix on 0.3.5.1-alpha.
6883   o Minor bugfixes (onion services):
6884     - Unless we have explicitly set HiddenServiceVersion, detect the
6885       onion service version and then look for invalid options.
6886       Previously, we did the reverse, but that broke existing configs
6887       which were pointed to a v2 service and had options like
6888       HiddenServiceAuthorizeClient set. Fixes bug 28127; bugfix on
6889       0.3.5.1-alpha. Patch by Neel Chauhan.
6891   o Minor bugfixes (portability):
6892     - Make the OPE code (which is used for v3 onion services) run
6893       correctly on big-endian platforms. Fixes bug 28115; bugfix
6894       on 0.3.5.1-alpha.
6896   o Minor bugfixes (protover, rust):
6897     - Reject extra commas in version strings. Fixes bug 27197; bugfix
6898       on 0.3.3.3-alpha.
6900   o Minor bugfixes (relay shutdown, systemd):
6901     - Notify systemd of ShutdownWaitLength so it can be set to longer
6902       than systemd's TimeoutStopSec. In Tor's systemd service file, set
6903       TimeoutSec to 60 seconds to allow Tor some time to shut down.
6904       Fixes bug 28113; bugfix on 0.2.6.2-alpha.
6906   o Minor bugfixes (rust, also in 0.3.4.9):
6907     - Fix a potential null dereference in protover_all_supported(). Add
6908       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
6909     - Return a string that can be safely freed by C code, not one
6910       created by the rust allocator, in protover_all_supported(). Fixes
6911       bug 27740; bugfix on 0.3.3.1-alpha.
6913   o Minor bugfixes (rust, directory authority, also in 0.3.4.9):
6914     - Fix an API mismatch in the rust implementation of
6915       protover_compute_vote(). This bug could have caused crashes on any
6916       directory authorities running Tor with Rust (which we do not yet
6917       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
6919   o Minor bugfixes (testing):
6920     - Avoid hangs and race conditions in test_rebind.py. Fixes bug
6921       27968; bugfix on 0.3.5.1-alpha.
6923   o Minor bugfixes (testing, also in 0.3.4.9):
6924     - Treat backtrace test failures as expected on BSD-derived systems
6925       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
6926       (FreeBSD failures have been treated as expected since 18204 in
6927       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
6929   o Documentation (onion service manpage):
6930     - Improve HSv3 client authorization by making some options more
6931       explicit and detailed. Closes ticket 28026. Patch by Mike Tigas.
6934 Changes in version 0.3.4.9 - 2018-11-02
6935   Tor 0.3.4.9 is the second stable release in its series; it backports
6936   numerous fixes, including a fix for a bandwidth management bug that
6937   was causing memory exhaustion on relays. Anyone running an earlier
6938   version of Tor 0.3.4.9 should upgrade.
6940   o Major bugfixes (compilation, backport from 0.3.5.3-alpha):
6941     - Fix compilation on ARM (and other less-used CPUs) when compiling
6942       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
6944   o Major bugfixes (mainloop, bootstrap, backport from 0.3.5.3-alpha):
6945     - Make sure Tor bootstraps and works properly if only the
6946       ControlPort is set. Prior to this fix, Tor would only bootstrap
6947       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
6948       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
6950   o Major bugfixes (relay, backport from 0.3.5.3-alpha):
6951     - When our write bandwidth limit is exhausted, stop writing on the
6952       connection. Previously, we had a typo in the code that would make
6953       us stop reading instead, leading to relay connections being stuck
6954       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
6955       on 0.3.4.1-alpha.
6957   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
6958     - Fix a use-after-free error that could be caused by passing Tor an
6959       impossible set of options that would fail during options_act().
6960       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
6962   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
6963     - Don't do a distcheck with --disable-module-dirauth in Travis.
6964       Implements ticket 27252.
6965     - Only run one online rust build in Travis, to reduce network
6966       errors. Skip offline rust builds on Travis for Linux gcc, because
6967       they're redundant. Implements ticket 27252.
6968     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
6969       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
6970       Linux with default settings, because all the non-default builds
6971       use gcc on Linux. Implements ticket 27252.
6973   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
6974     - Use the Travis Homebrew addon to install packages on macOS during
6975       Travis CI. The package list is the same, but the Homebrew addon
6976       does not do a `brew update` by default. Implements ticket 27738.
6978   o Minor features (geoip):
6979     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
6980       Country database. Closes ticket 27991.
6982   o Minor bugfixes (32-bit OSX and iOS, timing, backport from 0.3.5.2-alpha):
6983     - Fix an integer overflow bug in our optimized 32-bit millisecond-
6984       difference algorithm for 32-bit Apple platforms. Previously, it
6985       would overflow when calculating the difference between two times
6986       more than 47 days apart. Fixes part of bug 27139; bugfix
6987       on 0.3.4.1-alpha.
6988     - Improve the precision of our 32-bit millisecond difference
6989       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
6990       bugfix on 0.3.4.1-alpha.
6991     - Relax the tolerance on the mainloop/update_time_jumps test when
6992       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
6993       on 0.3.4.1-alpha.
6995   o Minor bugfixes (C correctness, to appear in 0.3.5.4-alpha):
6996     - Avoid undefined behavior in an end-of-string check when parsing
6997       the BEGIN line in a directory object. Fixes bug 28202; bugfix
6998       on 0.2.0.3-alpha.
7000   o Minor bugfixes (CI, appveyor, to appear in 0.3.5.4-alpha):
7001     - Only install the necessary mingw packages during our appveyor
7002       builds. This change makes the build a little faster, and prevents
7003       a conflict with a preinstalled mingw openssl that appveyor now
7004       ships. Fixes bugs 27943 and 27765; bugfix on 0.3.4.2-alpha.
7006   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
7007     - Rewrite our assertion macros so that they no longer suppress the
7008       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
7010   o Minor bugfixes (continuous integration, backport from 0.3.5.1-alpha):
7011     - Stop reinstalling identical packages in our Windows CI. Fixes bug
7012       27464; bugfix on 0.3.4.1-alpha.
7014   o Minor bugfixes (directory authority, to appear in 0.3.5.4-alpha):
7015     - Log additional info when we get a relay that shares an ed25519 ID
7016       with a different relay, instead making a BUG() warning. Fixes bug
7017       27800; bugfix on 0.3.2.1-alpha.
7019   o Minor bugfixes (directory connection shutdown, backport from 0.3.5.1-alpha):
7020     - Avoid a double-close when shutting down a stalled directory
7021       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
7023   o Minor bugfixes (HTTP tunnel, backport from 0.3.5.1-alpha):
7024     - Fix a bug warning when closing an HTTP tunnel connection due to an
7025       HTTP request we couldn't handle. Fixes bug 26470; bugfix
7026       on 0.3.2.1-alpha.
7028   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
7029     - Ensure circuitmux queues are empty before scheduling or sending
7030       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
7032   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
7033     - When the onion service directory can't be created or has the wrong
7034       permissions, do not log a stack trace. Fixes bug 27335; bugfix
7035       on 0.3.2.1-alpha.
7037   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
7038     - Close all SOCKS request (for the same .onion) if the newly fetched
7039       descriptor is unusable. Before that, we would close only the first
7040       one leaving the other hanging and let to time out by themselves.
7041       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
7043   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
7044     - When selecting a v3 rendezvous point, don't only look at the
7045       protover, but also check whether the curve25519 onion key is
7046       present. This way we avoid picking a relay that supports the v3
7047       rendezvous but for which we don't have the microdescriptor. Fixes
7048       bug 27797; bugfix on 0.3.2.1-alpha.
7050   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
7051     - Reject protocol names containing bytes other than alphanumeric
7052       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
7053       on 0.2.9.4-alpha.
7055   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
7056     - Compute protover votes correctly in the rust version of the
7057       protover code. Previously, the protover rewrite in 24031 allowed
7058       repeated votes from the same voter for the same protocol version
7059       to be counted multiple times in protover_compute_vote(). Fixes bug
7060       27649; bugfix on 0.3.3.5-rc.
7061     - Reject protover names that contain invalid characters. Fixes bug
7062       27687; bugfix on 0.3.3.1-alpha.
7064   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
7065     - protover_all_supported() would attempt to allocate up to 16GB on
7066       some inputs, leading to a potential memory DoS. Fixes bug 27206;
7067       bugfix on 0.3.3.5-rc.
7069   o Minor bugfixes (rust, directory authority, to appear in 0.3.5.4-alpha):
7070     - Fix an API mismatch in the rust implementation of
7071       protover_compute_vote(). This bug could have caused crashes on any
7072       directory authorities running Tor with Rust (which we do not yet
7073       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
7075   o Minor bugfixes (rust, to appear in 0.3.5.4-alpha):
7076     - Fix a potential null dereference in protover_all_supported(). Add
7077       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
7078     - Return a string that can be safely freed by C code, not one
7079       created by the rust allocator, in protover_all_supported(). Fixes
7080       bug 27740; bugfix on 0.3.3.1-alpha.
7082   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
7083     - If a unit test running in a subprocess exits abnormally or with a
7084       nonzero status code, treat the test as having failed, even if the
7085       test reported success. Without this fix, memory leaks don't cause
7086       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
7087       bugfix on 0.2.2.4-alpha.
7089   o Minor bugfixes (testing, backport from 0.3.5.3-alpha):
7090     - Make the hs_service tests use the same time source when creating
7091       the introduction point and when testing it. Now tests work better
7092       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
7093       on 0.3.2.1-alpha.
7095   o Minor bugfixes (testing, to appear in 0.3.5.4-alpha):
7096     - Treat backtrace test failures as expected on BSD-derived systems
7097       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
7098       (FreeBSD failures have been treated as expected since 18204 in
7099       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
7102 Changes in version 0.3.5.3-alpha - 2018-10-17
7103   Tor 0.3.5.3-alpha fixes several bugs, mostly from previous 0.3.5.x
7104   versions. One important fix for relays addresses a problem with rate-
7105   limiting code from back in 0.3.4.x: If the fix works out, we'll be
7106   backporting it soon. This release is still an alpha, but we hope it's
7107   getting closer and closer to stability.
7109   o Major features (onion services):
7110     - Version 3 onion services can now use the per-service
7111       HiddenServiceExportCircuitID option to differentiate client
7112       circuits. It communicates with the service by using the HAProxy
7113       protocol to assign virtual IP addresses to inbound client
7114       circuits. Closes ticket 4700. Patch by Mahrud Sayrafi.
7116   o Major bugfixes (compilation):
7117     - Fix compilation on ARM (and other less-used CPUs) when compiling
7118       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
7120   o Major bugfixes (initialization, crash):
7121     - Fix an assertion crash that would stop Tor from starting up if it
7122       tried to activate a periodic event too early. Fixes bug 27861;
7123       bugfix on 0.3.5.1-alpha.
7125   o Major bugfixes (mainloop, bootstrap):
7126     - Make sure Tor bootstraps and works properly if only the
7127       ControlPort is set. Prior to this fix, Tor would only bootstrap
7128       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
7129       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
7131   o Major bugfixes (relay):
7132     - When our write bandwidth limit is exhausted, stop writing on the
7133       connection. Previously, we had a typo in the code that would make
7134       us stop reading instead, leading to relay connections being stuck
7135       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
7136       on 0.3.4.1-alpha.
7138   o Minor features (continuous integration):
7139     - Use the Travis Homebrew addon to install packages on macOS during
7140       Travis CI. The package list is the same, but the Homebrew addon
7141       does not do a `brew update` by default. Implements ticket 27738.
7142     - Report what program produced the mysterious core file that we
7143       occasionally see on Travis CI during make distcheck. Closes
7144       ticket 28024.
7146   o Minor features (geoip):
7147     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
7148       Country database. Closes ticket 27991.
7150   o Minor bugfixes (code safety):
7151     - Rewrite our assertion macros so that they no longer suppress the
7152       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
7153       on 0.0.6.
7155   o Minor bugfixes (compilation):
7156     - Compile the ed25519-donna code with a correct declaration of
7157       crypto_strongest_rand(). Previously, we built it with one type,
7158       but linked it against another in the unit tests, which caused
7159       compilation failures with LTO enabled. This could have caused
7160       other undefined behavior in the tests. Fixes bug 27728; bugfix
7161       on 0.3.5.1-alpha.
7163   o Minor bugfixes (compilation, netbsd):
7164     - Add a missing include back into procmon.c. Fixes bug 27990; bugfix
7165       on 0.3.5.1-alpha.
7167   o Minor bugfixes (continuous integration, appveyor):
7168     - Install only the necessary mingw packages during our appveyor
7169       builds. This change makes the build a little faster, and prevents
7170       a conflict with a preinstalled mingw openssl that appveyor now
7171       ships. Fixes bugs 27765 and 27943; bugfix on 0.3.4.2-alpha.
7173   o Minor bugfixes (directory permissions):
7174     - When a user requests a group-readable DataDirectory, give it to
7175       them. Previously, when the DataDirectory and the CacheDirectory
7176       were the same, the default setting (0) for
7177       CacheDirectoryGroupReadable would override the setting for
7178       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
7179       on 0.3.3.1-alpha.
7181   o Minor bugfixes (memory leaks):
7182     - Fix a small memory leak when calling Tor with --dump-config. Fixes
7183       bug 27893; bugfix on 0.3.2.1-alpha.
7185   o Minor bugfixes (networking):
7186     - In retry_listeners_ports(), make sure that we're removing a member
7187       of old_conns smartlist at most once. Fixes bug 27808; bugfix
7188       on 0.3.5.1-alpha.
7189     - Refrain from attempting socket rebinding when old and new
7190       listeners are in different address families. Fixes bug 27928;
7191       bugfix on 0.3.5.1-alpha.
7193   o Minor bugfixes (onion service v3):
7194     - Stop dumping a stack trace when trying to connect to an intro
7195       point without having a descriptor for it. Fixes bug 27774; bugfix
7196       on 0.3.2.1-alpha.
7197     - Don't warn so loudly when Tor is unable to decode an onion
7198       descriptor. This can now happen as a normal use case if a client
7199       gets a descriptor with client authorization but the client is not
7200       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
7201     - When selecting a v3 rendezvous point, don't only look at the
7202       protover, but also check whether the curve25519 onion key is
7203       present. This way we avoid picking a relay that supports the v3
7204       rendezvous but for which we don't have the microdescriptor. Fixes
7205       bug 27797; bugfix on 0.3.2.1-alpha.
7207   o Minor bugfixes (protover):
7208     - Reject protocol names containing bytes other than alphanumeric
7209       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
7210       on 0.2.9.4-alpha.
7212   o Minor bugfixes (testing):
7213     - Make the hs_service tests use the same time source when creating
7214       the introduction point and when testing it. Now tests work better
7215       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
7216       on 0.3.2.1-alpha.
7217     - In test_rebind.py, check if the Python version is in the supported
7218       range. Fixes bug 27675; bugfix on 0.3.5.1-alpha.
7220   o Code simplification and refactoring:
7221     - Divide more large Tor source files -- especially ones that span
7222       multiple areas of functionality -- into smaller parts, including
7223       onion.c and main.c. Closes ticket 26747.
7224     - Divide the "routerparse.c" module into separate modules for each
7225       group of parsed objects. Closes ticket 27924.
7226     - Move protover_rust.c to the same place protover.c was moved to.
7227       Closes ticket 27814.
7228     - Split directory.c into separate pieces for client, server, and
7229       common functionality. Closes ticket 26744.
7230     - Split the non-statistics-related parts from the rephist.c and
7231       geoip.c modules. Closes ticket 27892.
7232     - Split the router.c file into relay-only and shared components, to
7233       help with future modularization. Closes ticket 27864.
7235   o Documentation:
7236     - In the tor-resolve(1) manpage, fix the reference to socks-
7237       extensions.txt by adding a web URL. Resolves ticket 27853.
7238     - Mention that we require Python to be 2.7 or newer for some
7239       integration tests that we ship with Tor. Resolves ticket 27677.
7242 Changes in version 0.3.5.2-alpha - 2018-09-21
7243   Tor 0.3.5.2-alpha fixes several bugs in 0.3.5.1-alpha, including one
7244   that made Tor think it had run out of sockets. Anybody running a relay
7245   or an onion service on 0.3.5.1-alpha should upgrade.
7247   o Major bugfixes (relay bandwidth statistics):
7248     - When we close relayed circuits, report the data in the circuit
7249       queues as being written in our relay bandwidth stats. This
7250       mitigates guard discovery and other attacks that close circuits
7251       for the explicit purpose of noticing this discrepancy in
7252       statistics. Fixes bug 23512; bugfix on 0.0.8pre3.
7254   o Major bugfixes (socket accounting):
7255     - In our socket accounting code, count a socket as closed even when
7256       it is closed indirectly by the TLS layer. Previously, we would
7257       count these sockets as still in use, and incorrectly believe that
7258       we had run out of sockets. Fixes bug 27795; bugfix
7259       on 0.3.5.1-alpha.
7261   o Minor bugfixes (32-bit OSX and iOS, timing):
7262     - Fix an integer overflow bug in our optimized 32-bit millisecond-
7263       difference algorithm for 32-bit Apple platforms. Previously, it
7264       would overflow when calculating the difference between two times
7265       more than 47 days apart. Fixes part of bug 27139; bugfix
7266       on 0.3.4.1-alpha.
7267     - Improve the precision of our 32-bit millisecond difference
7268       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
7269       bugfix on 0.3.4.1-alpha.
7270     - Relax the tolerance on the mainloop/update_time_jumps test when
7271       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
7272       on 0.3.4.1-alpha.
7274   o Minor bugfixes (onion service v3):
7275     - Close all SOCKS request (for the same .onion) if the newly fetched
7276       descriptor is unusable. Before that, we would close only the first
7277       one leaving the other hanging and let to time out by themselves.
7278       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
7280   o Minor bugfixes (memory leak):
7281     - Fix an unlikely memory leak when trying to read a private key from
7282       a ridiculously large file. Fixes bug 27764; bugfix on
7283       0.3.5.1-alpha. This is CID 1439488.
7285   o Minor bugfixes (NSS):
7286     - Correctly detect failure to open a dummy TCP socket when stealing
7287       ownership of an fd from the NSS layer. Fixes bug 27782; bugfix
7288       on 0.3.5.1-alpha.
7290   o Minor bugfixes (rust):
7291     - protover_all_supported() would attempt to allocate up to 16GB on
7292       some inputs, leading to a potential memory DoS. Fixes bug 27206;
7293       bugfix on 0.3.3.5-rc.
7295   o Minor bugfixes (testing):
7296     - Revise the "conditionvar_timeout" test so that it succeeds even on
7297       heavily loaded systems where the test threads are not scheduled
7298       within 200 msec. Fixes bug 27073; bugfix on 0.2.6.3-alpha.
7300   o Code simplification and refactoring:
7301     - Divide the routerlist.c and dirserv.c modules into smaller parts.
7302       Closes ticket 27799.
7305 Changes in version 0.3.5.1-alpha - 2018-09-18
7306   Tor 0.3.5.1-alpha is the first release of the 0.3.5.x series. It adds
7307   client authorization for modern (v3) onion services, improves
7308   bootstrap reporting, begins reorganizing Tor's codebase, adds optional
7309   support for NSS in place of OpenSSL, and much more.
7311   o Major features (onion services, UI change):
7312     - For a newly created onion service, the default version is now 3.
7313       Tor still supports existing version 2 services, but the operator
7314       now needs to set "HiddenServiceVersion 2" in order to create a new
7315       version 2 service. For existing services, Tor now learns the
7316       version by reading the key file. Closes ticket 27215.
7318   o Major features (relay, UI change):
7319     - Relays no longer run as exits by default. If the "ExitRelay"
7320       option is auto (or unset), and no exit policy is specified with
7321       ExitPolicy or ReducedExitPolicy, we now treat ExitRelay as 0.
7322       Previously in this case, we allowed exit traffic and logged a
7323       warning message. Closes ticket 21530. Patch by Neel Chauhan.
7324     - Tor now validates that the ContactInfo config option is valid UTF-
7325       8 when parsing torrc. Closes ticket 27428.
7327   o Major features (bootstrap):
7328     - Don't report directory progress until after a connection to a
7329       relay or bridge has succeeded. Previously, we'd report 80%
7330       progress based on cached directory information when we couldn't
7331       even connect to the network. Closes ticket 27169.
7333   o Major features (new code layout):
7334     - Nearly all of Tor's source code has been moved around into more
7335       logical places. The "common" directory is now divided into a set
7336       of libraries in "lib", and files in the "or" directory have been
7337       split into "core" (logic absolutely needed for onion routing),
7338       "feature" (independent modules in Tor), and "app" (to configure
7339       and invoke the rest of Tor). See doc/HACKING/CodeStructure.md for
7340       more information. Closes ticket 26481.
7342       This refactoring is not complete: although the libraries have been
7343       refactored to be acyclic, the main body of Tor is still too
7344       interconnected. We will attempt to improve this in the future.
7346   o Major features (onion services v3):
7347     - Implement onion service client authorization at the descriptor
7348       level: only authorized clients can decrypt a service's descriptor
7349       to find out how to contact it. A new torrc option was added to
7350       control this client side: ClientOnionAuthDir <path>. On the
7351       service side, if the "authorized_clients/" directory exists in the
7352       onion service directory path, client configurations are read from
7353       the files within. See the manpage for more details. Closes ticket
7354       27547. Patch done by Suphanat Chunhapanya (haxxpop).
7355     - Improve revision counter generation in next-gen onion services.
7356       Onion services can now scale by hosting multiple instances on
7357       different hosts without synchronization between them, which was
7358       previously impossible because descriptors would get rejected by
7359       HSDirs. Addresses ticket 25552.
7361   o Major features (portability, cryptography, experimental, TLS):
7362     - Tor now has the option to compile with the NSS library instead of
7363       OpenSSL. This feature is experimental, and we expect that bugs may
7364       remain. It is mainly intended for environments where Tor's
7365       performance is not CPU-bound, and where NSS is already known to be
7366       installed. To try it out, configure Tor with the --enable-nss
7367       flag. Closes tickets 26631, 26815, and 26816.
7369       If you are experimenting with this option and using an old cached
7370       consensus, Tor may fail to start. To solve this, delete your
7371       "cached-consensus" and "cached-microdesc-consensus" files,
7372       (if present), and restart Tor.
7374   o Major bugfixes (directory authority):
7375     - Actually check that the address we get from DirAuthority
7376       configuration line is valid IPv4. Explicitly disallow DirAuthority
7377       address to be a DNS hostname. Fixes bug 26488; bugfix
7378       on 0.1.2.10-rc.
7380   o Major bugfixes (restart-in-process):
7381     - Fix a use-after-free error that could be caused by passing Tor an
7382       impossible set of options that would fail during options_act().
7383       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
7385   o Minor features (admin tools):
7386     - Add a new --key-expiration option to print the expiration date of
7387       the signing cert in an ed25519_signing_cert file. Resolves
7388       issue 19506.
7390   o Minor features (build):
7391     - If you pass the "--enable-pic" option to configure, Tor will try
7392       to tell the compiler to build position-independent code suitable
7393       to link into a dynamic library. (The default remains -fPIE, for
7394       code suitable for a relocatable executable.) Closes ticket 23846.
7396   o Minor features (code correctness, testing):
7397     - Tor's build process now includes a "check-includes" make target to
7398       verify that no module of Tor relies on any headers from a higher-
7399       level module. We hope to use this feature over time to help
7400       refactor our codebase. Closes ticket 26447.
7402   o Minor features (code layout):
7403     - We have a new "lowest-level" error-handling API for use by code
7404       invoked from within the logging module. With this interface, the
7405       logging code is no longer at risk of calling into itself if a
7406       failure occurs while it is trying to log something. Closes
7407       ticket 26427.
7409   o Minor features (compilation):
7410     - Tor's configure script now supports a --with-malloc= option to
7411       select your malloc implementation. Supported options are
7412       "tcmalloc", "jemalloc", "openbsd" (deprecated), and "system" (the
7413       default). Addresses part of ticket 20424. Based on a patch from
7414       Alex Xu.
7416   o Minor features (config):
7417     - The "auto" keyword in torrc is now case-insensitive. Closes
7418       ticket 26663.
7420   o Minor features (continuous integration):
7421     - Don't do a distcheck with --disable-module-dirauth in Travis.
7422       Implements ticket 27252.
7423     - Install libcap-dev and libseccomp2-dev so these optional
7424       dependencies get tested on Travis CI. Closes ticket 26560.
7425     - Only run one online rust build in Travis, to reduce network
7426       errors. Skip offline rust builds on Travis for Linux gcc, because
7427       they're redundant. Implements ticket 27252.
7428     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
7429       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
7430       Linux with default settings, because all the non-default builds
7431       use gcc on Linux. Implements ticket 27252.
7433   o Minor features (controller):
7434     - Emit CIRC_BW events as soon as we detect that we processed an
7435       invalid or otherwise dropped cell on a circuit. This allows
7436       vanguards and other controllers to react more quickly to dropped
7437       cells. Closes ticket 27678.
7438     - For purposes of CIRC_BW-based dropped cell detection, track half-
7439       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
7440       bias check cells to arrive without counting it as dropped until
7441       either the END arrives, or the windows are empty. Closes
7442       ticket 25573.
7443     - Implement a 'GETINFO md/all' controller command to enable getting
7444       all known microdescriptors. Closes ticket 8323.
7445     - The GETINFO command now support an "uptime" argument, to return
7446       Tor's uptime in seconds. Closes ticket 25132.
7448   o Minor features (denial-of-service avoidance):
7449     - Make our OOM handler aware of the DNS cache so that it doesn't
7450       fill up the memory. This check is important for our DoS mitigation
7451       subsystem. Closes ticket 18642. Patch by Neel Chauhan.
7453   o Minor features (development):
7454     - Tor's makefile now supports running the "clippy" Rust style tool
7455       on our Rust code. Closes ticket 22156.
7457   o Minor features (directory authority):
7458     - There is no longer an artificial upper limit on the length of
7459       bandwidth lines. Closes ticket 26223.
7460     - When a bandwidth file is used to obtain the bandwidth measurements,
7461       include this bandwidth file headers in the votes. Closes
7462       ticket 3723.
7463     - Improved support for networks with only a single authority or a
7464       single fallback directory. Patch from Gabriel Somlo. Closes
7465       ticket 25928.
7467   o Minor features (embedding API):
7468     - The Tor controller API now supports a function to launch Tor with
7469       a preconstructed owning controller FD, so that embedding
7470       applications don't need to manage controller ports and
7471       authentication. Closes ticket 24204.
7472     - The Tor controller API now has a function that returns the name
7473       and version of the backend implementing the API. Closes
7474       ticket 26947.
7476   o Minor features (geoip):
7477     - Update geoip and geoip6 to the September 6 2018 Maxmind GeoLite2
7478       Country database. Closes ticket 27631.
7480   o Minor features (memory management):
7481     - Get Libevent to use the same memory allocator as Tor, by calling
7482       event_set_mem_functions() during initialization. Resolves
7483       ticket 8415.
7485   o Minor features (memory usage):
7486     - When not using them, store legacy TAP public onion keys in DER-
7487       encoded format, rather than as expanded public keys. This should
7488       save several megabytes on typical clients. Closes ticket 27246.
7490   o Minor features (OpenSSL):
7491     - When possible, use RFC5869 HKDF implementation from OpenSSL rather
7492       than our own. Resolves ticket 19979.
7494   o Minor features (Rust, code quality):
7495     - Improve rust code quality in the rust protover implementation by
7496       making it more idiomatic. Includes changing an internal API to
7497       take &str instead of &String. Closes ticket 26492.
7499   o Minor features (testing):
7500     - Add scripts/test/chutney-git-bisect.sh, for bisecting using
7501       chutney. Implements ticket 27211.
7503   o Minor features (tor-resolve):
7504     - The tor-resolve utility can now be used with IPv6 SOCKS proxies.
7505       Side-effect of the refactoring for ticket 26526.
7507   o Minor features (UI):
7508     - Log each included configuration file or directory as we read it,
7509       to provide more visibility about where Tor is reading from. Patch
7510       from Unto Sten; closes ticket 27186.
7511     - Lower log level of "Scheduler type KIST has been enabled" to INFO.
7512       Closes ticket 26703.
7514   o Minor bugfixes (bootstrap):
7515     - Try harder to get descriptors in non-exit test networks, by using
7516       the mid weight for the third hop when there are no exits. Fixes
7517       bug 27237; bugfix on 0.2.6.2-alpha.
7519   o Minor bugfixes (C correctness):
7520     - Avoid casting smartlist index to int implicitly, as it may trigger
7521       a warning (-Wshorten-64-to-32). Fixes bug 26282; bugfix on
7522       0.2.3.13-alpha, 0.2.7.1-alpha and 0.2.1.1-alpha.
7523     - Use time_t for all values in
7524       predicted_ports_prediction_time_remaining(). Rework the code that
7525       computes difference between durations/timestamps. Fixes bug 27165;
7526       bugfix on 0.3.1.1-alpha.
7528   o Minor bugfixes (client, memory usage):
7529     - When not running as a directory cache, there is no need to store
7530       the text of the current consensus networkstatus in RAM.
7531       Previously, however, clients would store it anyway, at a cost of
7532       over 5 MB. Now, they do not. Fixes bug 27247; bugfix
7533       on 0.3.0.1-alpha.
7535   o Minor bugfixes (client, reachableaddresses):
7536     - Instead of adding a "reject *:*" line to ReachableAddresses when
7537       loading the configuration, add one to the policy after parsing it
7538       in parse_reachable_addresses(). This prevents extra "reject *.*"
7539       lines from accumulating on reloads. Fixes bug 20874; bugfix on
7540       0.1.1.5-alpha. Patch by Neel Chauhan.
7542   o Minor bugfixes (code quality):
7543     - Rename sandbox_getaddrinfo() and other functions to no longer
7544       misleadingly suggest that they are sandbox-only. Fixes bug 26525;
7545       bugfix on 0.2.7.1-alpha.
7547   o Minor bugfixes (configuration, Onion Services):
7548     - In rend_service_parse_port_config(), disallow any input to remain
7549       after address-port pair was parsed. This will catch address and
7550       port being whitespace-separated by mistake of the user. Fixes bug
7551       27044; bugfix on 0.2.9.10.
7553   o Minor bugfixes (continuous integration):
7554     - Stop reinstalling identical packages in our Windows CI. Fixes bug
7555       27464; bugfix on 0.3.4.1-alpha.
7557   o Minor bugfixes (controller):
7558     - Consider all routerinfo errors other than "not a server" to be
7559       transient for the purpose of "GETINFO exit-policy/*" controller
7560       request. Print stacktrace in the unlikely case of failing to
7561       recompute routerinfo digest. Fixes bug 27034; bugfix
7562       on 0.3.4.1-alpha.
7564   o Minor bugfixes (directory connection shutdown):
7565     - Avoid a double-close when shutting down a stalled directory
7566       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
7568   o Minor bugfixes (HTTP tunnel):
7569     - Fix a bug warning when closing an HTTP tunnel connection due to an
7570       HTTP request we couldn't handle. Fixes bug 26470; bugfix
7571       on 0.3.2.1-alpha.
7573   o Minor bugfixes (ipv6):
7574     - In addrs_in_same_network_family(), we choose the subnet size based
7575       on the IP version (IPv4 or IPv6). Previously, we chose a fixed
7576       subnet size of /16 for both IPv4 and IPv6 addresses. Fixes bug
7577       15518; bugfix on 0.2.3.1-alpha. Patch by Neel Chauhan.
7579   o Minor bugfixes (logging):
7580     - As a precaution, do an early return from log_addr_has_changed() if
7581       Tor is running as client. Also, log a stack trace for debugging as
7582       this function should only be called when Tor runs as server. Fixes
7583       bug 26892; bugfix on 0.1.1.9-alpha.
7584     - Refrain from mentioning bug 21018 in the logs, as it is already
7585       fixed. Fixes bug 25477; bugfix on 0.2.9.8.
7587   o Minor bugfixes (logging, documentation):
7588     - When SafeLogging is enabled, scrub IP address in
7589       channel_tls_process_netinfo_cell(). Also, add a note to manpage
7590       that scrubbing is not guaranteed on loglevels below Notice. Fixes
7591       bug 26882; bugfix on 0.2.4.10-alpha.
7593   o Minor bugfixes (netflow padding):
7594     - Ensure circuitmux queues are empty before scheduling or sending
7595       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
7597   o Minor bugfixes (onion service v2):
7598     - Log at level "info", not "warning", in the case that we do not
7599       have a consensus when a .onion request comes in. This can happen
7600       normally while bootstrapping. Fixes bug 27040; bugfix
7601       on 0.2.8.2-alpha.
7603   o Minor bugfixes (onion service v3):
7604     - When the onion service directory can't be created or has the wrong
7605       permissions, do not log a stack trace. Fixes bug 27335; bugfix
7606       on 0.3.2.1-alpha.
7608   o Minor bugfixes (OS compatibility):
7609     - Properly handle configuration changes that move a listener to/from
7610       wildcard IP address. If the first attempt to bind a socket fails,
7611       close the old listener and try binding the socket again. Fixes bug
7612       17873; bugfix on 0.0.8pre-1.
7614   o Minor bugfixes (performance)::
7615     - Rework node_is_a_configured_bridge() to no longer call
7616       node_get_all_orports(), which was performing too many memory
7617       allocations. Fixes bug 27224; bugfix on 0.2.3.9.
7619   o Minor bugfixes (relay statistics):
7620     - Update relay descriptor on bandwidth changes only when the uptime
7621       is smaller than 24h, in order to reduce the efficiency of guard
7622       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
7624   o Minor bugfixes (relays):
7625     - Consider the fact that we'll be making direct connections to our
7626       entry and guard nodes when computing the fraction of nodes that
7627       have their descriptors. Also, if we are using bridges and there is
7628       at least one bridge with a full descriptor, treat the fraction of
7629       guards available as 100%. Fixes bug 25886; bugfix on 0.2.4.10-alpha.
7630       Patch by Neel Chauhan.
7631     - Update the message logged on relays when DirCache is disabled.
7632       Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the
7633       Guard flag. Fixes bug 24312; bugfix on 0.3.3.5-rc.
7635   o Minor bugfixes (rust, protover):
7636     - Compute protover votes correctly in the rust version of the
7637       protover code. Previously, the protover rewrite in 24031 allowed
7638       repeated votes from the same voter for the same protocol version
7639       to be counted multiple times in protover_compute_vote(). Fixes bug
7640       27649; bugfix on 0.3.3.5-rc.
7641     - Reject protover names that contain invalid characters. Fixes bug
7642       27687; bugfix on 0.3.3.1-alpha.
7644   o Minor bugfixes (testing):
7645     - Fix two unit tests to work when HOME environment variable is not
7646       set. Fixes bug 27096; bugfix on 0.2.8.1-alpha.
7647     - If a unit test running in a subprocess exits abnormally or with a
7648       nonzero status code, treat the test as having failed, even if the
7649       test reported success. Without this fix, memory leaks don't cause
7650       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
7651       bugfix on 0.2.2.4-alpha.
7652     - When logging a version mismatch in our openssl_version tests,
7653       report the actual offending version strings. Fixes bug 26152;
7654       bugfix on 0.2.9.1-alpha.
7655     - Fix forking tests on Windows when there is a space somewhere in
7656       the path. Fixes bug 26437; bugfix on 0.2.2.4-alpha.
7658   o Code simplification and refactoring:
7659     - 'updateFallbackDirs.py' now ignores the blacklist file, as it's not
7660       longer needed. Closes ticket 26502.
7661     - Include paths to header files within Tor are now qualified by
7662       directory within the top-level src directory.
7663     - Many structures have been removed from the centralized "or.h"
7664       header, and moved into their own headers. This will allow us to
7665       reduce the number of places in the code that rely on each
7666       structure's contents and layout. Closes ticket 26383.
7667     - Remove ATTR_NONNULL macro from codebase. Resolves ticket 26527.
7668     - Remove GetAdaptersAddresses_fn_t. The code that used it was
7669       removed as part of the 26481 refactor. Closes ticket 27467.
7670     - Rework Tor SOCKS server code to use Trunnel and benefit from
7671       autogenerated functions for parsing and generating SOCKS wire
7672       format. New implementation is cleaner, more maintainable and
7673       should be less prone to heartbleed-style vulnerabilities.
7674       Implements a significant fraction of ticket 3569.
7675     - Split sampled_guards_update_from_consensus() and
7676       select_entry_guard_for_circuit() into subfunctions. In
7677       entry_guards_update_primary() unite three smartlist enumerations
7678       into one and move smartlist comparison code out of the function.
7679       Closes ticket 21349.
7680     - Tor now assumes that you have standards-conformant stdint.h and
7681       inttypes.h headers when compiling. Closes ticket 26626.
7682     - Unify our bloom filter logic. Previously we had two copies of this
7683       code: one for routerlist filtering, and one for address set
7684       calculations. Closes ticket 26510.
7685     - Use the simpler strcmpstart() helper in
7686       rend_parse_v2_service_descriptor instead of strncmp(). Closes
7687       ticket 27630.
7688     - Utility functions that can perform a DNS lookup are now wholly
7689       separated from those that can't, in separate headers and C
7690       modules. Closes ticket 26526.
7692   o Documentation:
7693     - Copy paragraph and URL to Tor's code of conduct document from
7694       CONTRIBUTING to new CODE_OF_CONDUCT file. Resolves ticket 26638.
7695     - Remove old instructions from INSTALL document. Closes ticket 26588.
7696     - Warn users that they should not include MyFamily line(s) in their
7697       torrc when running Tor bridge. Closes ticket 26908.
7699   o Removed features:
7700     - Tor no longer supports building with the dmalloc library. For
7701       debugging memory issues, we suggest using gperftools or msan
7702       instead. Closes ticket 26426.
7703     - Tor no longer attempts to run on Windows environments without the
7704       GetAdaptersAddresses() function. This function has existed since
7705       Windows XP, which is itself already older than we support.
7706     - Remove Tor2web functionality for version 2 onion services. The
7707       Tor2webMode and Tor2webRendezvousPoints options are now obsolete.
7708       (This feature was never shipped in vanilla Tor and it was only
7709       possible to use this feature by building the support at compile
7710       time. Tor2webMode is not implemented for version 3 onion services.)
7711       Closes ticket 26367.
7714 Changes in version 0.2.9.17 - 2018-09-10
7715   Tor 0.2.9.17 backports numerous bugfixes from later versions of Tor.
7717   o Minor features (compatibility, backport from 0.3.4.8):
7718     - Tell OpenSSL to maintain backward compatibility with previous
7719       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
7720       ciphers are disabled by default. Closes ticket 27344.
7722   o Minor features (continuous integration, backport from 0.3.4.7-rc):
7723     - Enable macOS builds in our Travis CI configuration. Closes
7724       ticket 24629.
7725     - Install libcap-dev and libseccomp2-dev so these optional
7726       dependencies get tested on Travis CI. Closes ticket 26560.
7727     - Run asciidoc during Travis CI. Implements ticket 27087.
7728     - Use ccache in our Travis CI configuration. Closes ticket 26952.
7730   o Minor features (geoip):
7731     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
7732       Country database. Closes ticket 27089.
7734   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
7735     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
7736       tell the compiler not to include the system malloc implementation.
7737       Fixes bug 20424; bugfix on 0.2.0.20-rc.
7739   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
7740     - Silence a spurious compiler warning on the GetAdaptersAddresses
7741       function pointer cast. This issue is already fixed by 26481 in
7742       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
7743       bugfix on 0.2.3.11-alpha.
7744     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
7745       supported, and always fails. Some compilers warn about the
7746       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
7747       on 0.2.2.23-alpha.
7749   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
7750     - Don't link or search for pthreads when building for Windows, even
7751       if we are using build environment (like mingw) that provides a
7752       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
7754   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
7755     - Skip a pair of unreliable key generation tests on Windows, until
7756       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
7757       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
7759   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
7760     - Pass the module flags to distcheck configure, and log the flags
7761       before running configure. (Backported to 0.2.9 and later as a
7762       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
7764   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
7765     - When a Travis build fails, and showing a log fails, keep trying to
7766       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
7767     - When we use echo in Travis, don't pass a --flag as the first
7768       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
7770   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
7771     - When voting for recommended versions, make sure that all of the
7772       versions are well-formed and parsable. Fixes bug 26485; bugfix
7773       on 0.1.1.6-alpha.
7775   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
7776     - Fix a bug in out sandboxing rules for the openat() syscall.
7777       Previously, no openat() call would be permitted, which would break
7778       filesystem operations on recent glibc versions. Fixes bug 25440;
7779       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
7781   o Minor bugfixes (onion services, backport from 0.3.4.8):
7782     - Silence a spurious compiler warning in
7783       rend_client_send_introduction(). Fixes bug 27463; bugfix
7784       on 0.1.1.2-alpha.
7786   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
7787     - Log a protocol warning when single onion services or Tor2web clients
7788       fail to authenticate direct connections to relays.
7789       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
7791   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
7792     - Disable core dumps in test_bt.sh, to avoid failures in "make
7793       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
7795   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
7796     - Before running make test-network-all, delete old logs and test
7797       result files, to avoid spurious failures. Fixes bug 27295; bugfix
7798       on 0.2.7.3-rc.
7800   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
7801     - Our "tortls/cert_matches_key" unit test no longer relies on
7802       OpenSSL internals. Previously, it relied on unsupported OpenSSL
7803       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
7804       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
7806   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
7807     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
7808       27185; bugfix on 0.2.2.2-alpha.
7811 Changes in version 0.3.2.12 - 2018-09-10
7812   Tor 0.3.2.12 backport numerous fixes from later versions of Tor.
7814   o Minor features (compatibility, backport from 0.3.4.8):
7815     - Tell OpenSSL to maintain backward compatibility with previous
7816       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
7817       ciphers are disabled by default. Closes ticket 27344.
7819   o Minor features (continuous integration, backport from 0.3.4.7-rc):
7820     - Enable macOS builds in our Travis CI configuration. Closes
7821       ticket 24629.
7822     - Install libcap-dev and libseccomp2-dev so these optional
7823       dependencies get tested on Travis CI. Closes ticket 26560.
7824     - Run asciidoc during Travis CI. Implements ticket 27087.
7825     - Use ccache in our Travis CI configuration. Closes ticket 26952.
7827   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
7828     - Use cargo cache in our Travis CI configuration. Closes
7829       ticket 26952.
7831   o Minor features (controller, backport from 0.3.4.6-rc):
7832     - The control port now exposes the list of HTTPTunnelPorts and
7833       ExtOrPorts via GETINFO net/listeners/httptunnel and
7834       net/listeners/extor respectively. Closes ticket 26647.
7836   o Minor features (directory authorities, backport from 0.3.4.7-rc):
7837     - Authorities no longer vote to make the subprotocol version
7838       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
7839       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
7841   o Minor features (geoip):
7842     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
7843       Country database. Closes ticket 27089.
7845   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
7846     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
7847       tell the compiler not to include the system malloc implementation.
7848       Fixes bug 20424; bugfix on 0.2.0.20-rc.
7849     - Don't try to use a pragma to temporarily disable the
7850       -Wunused-const-variable warning if the compiler doesn't support
7851       it. Fixes bug 26785; bugfix on 0.3.2.11.
7853   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
7854     - Silence a spurious compiler warning on the GetAdaptersAddresses
7855       function pointer cast. This issue is already fixed by 26481 in
7856       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
7857       bugfix on 0.2.3.11-alpha.
7858     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
7859       supported, and always fails. Some compilers warn about the
7860       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
7861       on 0.2.2.23-alpha.
7863   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
7864     - Don't link or search for pthreads when building for Windows, even
7865       if we are using build environment (like mingw) that provides a
7866       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
7868   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
7869     - Skip a pair of unreliable key generation tests on Windows, until
7870       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
7871       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
7873   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
7874     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
7875     - Pass the module flags to distcheck configure, and log the flags
7876       before running configure. (Backported to 0.2.9 and later as a
7877       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
7879   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
7880     - When a Travis build fails, and showing a log fails, keep trying to
7881       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
7882     - When we use echo in Travis, don't pass a --flag as the first
7883       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
7885   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
7886     - When voting for recommended versions, make sure that all of the
7887       versions are well-formed and parsable. Fixes bug 26485; bugfix
7888       on 0.1.1.6-alpha.
7890   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
7891     - Fix a bug in out sandboxing rules for the openat() syscall.
7892       Previously, no openat() call would be permitted, which would break
7893       filesystem operations on recent glibc versions. Fixes bug 25440;
7894       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
7896   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
7897     - Improve the log message when connection initiators fail to
7898       authenticate direct connections to relays. Fixes bug 26927; bugfix
7899       on 0.3.0.1-alpha.
7901   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
7902     - Fix bug that causes services to not ever rotate their descriptors
7903       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
7904       on 0.3.2.1-alpha.
7906   o Minor bugfixes (onion services, backport from 0.3.4.8):
7907     - Silence a spurious compiler warning in
7908       rend_client_send_introduction(). Fixes bug 27463; bugfix
7909       on 0.1.1.2-alpha.
7911   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
7912     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
7913       on 0.3.1.5-alpha.
7914     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
7915       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
7916     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
7917       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
7919   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
7920     - Log a protocol warning when single onion services or Tor2web clients
7921       fail to authenticate direct connections to relays.
7922       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
7924   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
7925     - Disable core dumps in test_bt.sh, to avoid failures in "make
7926       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
7928   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
7929     - When running make test-network-all, use the mixed+hs-v2 network.
7930       (A previous fix to chutney removed v3 onion services from the
7931       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
7932       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
7933     - Before running make test-network-all, delete old logs and test
7934       result files, to avoid spurious failures. Fixes bug 27295; bugfix
7935       on 0.2.7.3-rc.
7937   o Minor bugfixes (testing, openssl compatibility):
7938     - Our "tortls/cert_matches_key" unit test no longer relies on OpenSSL
7939       internals.  Previously, it relied on unsupported OpenSSL behavior in
7940       a way that caused it to crash with OpenSSL 1.0.2p. Fixes bug 27226;
7941       bugfix on 0.2.5.1-alpha.
7943   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
7944     - Our "tortls/cert_matches_key" unit test no longer relies on
7945       OpenSSL internals. Previously, it relied on unsupported OpenSSL
7946       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
7947       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
7949   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
7950     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
7951       27185; bugfix on 0.2.2.2-alpha.
7954 Changes in version 0.3.3.10 - 2018-09-10
7955   Tor 0.3.3.10 backports numerous fixes from later versions of Tor.
7957   o Minor features (bug workaround, backport from 0.3.4.7-rc):
7958     - Compile correctly on systems that provide the C11 stdatomic.h
7959       header, but where C11 atomic functions don't actually compile.
7960       Closes ticket 26779; workaround for Debian issue 903709.
7962   o Minor features (compatibility, backport from 0.3.4.8):
7963     - Tell OpenSSL to maintain backward compatibility with previous
7964       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
7965       ciphers are disabled by default. Closes ticket 27344.
7967   o Minor features (continuous integration, backport from 0.3.4.7-rc):
7968     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
7969     - Enable macOS builds in our Travis CI configuration. Closes
7970       ticket 24629.
7971     - Install libcap-dev and libseccomp2-dev so these optional
7972       dependencies get tested on Travis CI. Closes ticket 26560.
7973     - Run asciidoc during Travis CI. Implements ticket 27087.
7974     - Use ccache in our Travis CI configuration. Closes ticket 26952.
7976   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
7977     - Use cargo cache in our Travis CI configuration. Closes
7978       ticket 26952.
7980   o Minor features (controller, backport from 0.3.4.6-rc):
7981     - The control port now exposes the list of HTTPTunnelPorts and
7982       ExtOrPorts via GETINFO net/listeners/httptunnel and
7983       net/listeners/extor respectively. Closes ticket 26647.
7985   o Minor features (directory authorities, backport from 0.3.4.7-rc):
7986     - Authorities no longer vote to make the subprotocol version
7987       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
7988       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
7990   o Minor features (geoip):
7991     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
7992       Country database. Closes ticket 27089.
7994   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
7995     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
7996       tell the compiler not to include the system malloc implementation.
7997       Fixes bug 20424; bugfix on 0.2.0.20-rc.
7998     - Don't try to use a pragma to temporarily disable the
7999       -Wunused-const-variable warning if the compiler doesn't support
8000       it. Fixes bug 26785; bugfix on 0.3.2.11.
8002   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
8003     - Silence a spurious compiler warning on the GetAdaptersAddresses
8004       function pointer cast. This issue is already fixed by 26481 in
8005       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8006       bugfix on 0.2.3.11-alpha.
8007     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8008       supported, and always fails. Some compilers warn about the
8009       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8010       on 0.2.2.23-alpha.
8012   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
8013     - Don't link or search for pthreads when building for Windows, even
8014       if we are using build environment (like mingw) that provides a
8015       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8017   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
8018     - Skip a pair of unreliable key generation tests on Windows, until
8019       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8020       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8022   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
8023     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
8024     - Pass the module flags to distcheck configure, and log the flags
8025       before running configure. (Backported to 0.2.9 and later as a
8026       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8028   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
8029     - When a Travis build fails, and showing a log fails, keep trying to
8030       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8031     - When we use echo in Travis, don't pass a --flag as the first
8032       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8034   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
8035     - When voting for recommended versions, make sure that all of the
8036       versions are well-formed and parsable. Fixes bug 26485; bugfix
8037       on 0.1.1.6-alpha.
8039   o Minor bugfixes (in-process restart, backport from 0.3.4.7-rc):
8040     - Always call tor_free_all() when leaving tor_run_main(). When we
8041       did not, restarting tor in-process would cause an assertion
8042       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
8044   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
8045     - Fix a bug in our sandboxing rules for the openat() syscall.
8046       Previously, no openat() call would be permitted, which would break
8047       filesystem operations on recent glibc versions. Fixes bug 25440;
8048       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8050   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
8051     - Improve the log message when connection initiators fail to
8052       authenticate direct connections to relays. Fixes bug 26927; bugfix
8053       on 0.3.0.1-alpha.
8055   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
8056     - Fix bug that causes services to not ever rotate their descriptors
8057       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
8058       on 0.3.2.1-alpha.
8060   o Minor bugfixes (onion services, backport from 0.3.4.8):
8061     - Silence a spurious compiler warning in
8062       rend_client_send_introduction(). Fixes bug 27463; bugfix
8063       on 0.1.1.2-alpha.
8065   o Minor bugfixes (portability, backport from 0.3.4.6-rc):
8066     - Work around two different bugs in the OS X 10.10 and later SDKs
8067       that would prevent us from successfully targeting earlier versions
8068       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
8070   o Minor bugfixes (portability, backport from 0.3.4.7-rc):
8071     - Fix compilation of the unit tests on GNU/Hurd, which does not
8072       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
8073       from "paulusASol".
8075   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
8076     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
8077       on 0.3.1.5-alpha.
8078     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
8079       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
8080     - Protover parsing was accepting the presence of whitespace in
8081       version strings, which the C implementation would choke on, e.g.
8082       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
8083     - Protover parsing was ignoring a 2nd hyphen and everything after
8084       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
8085       on 0.3.3.1-alpha.
8086     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
8087       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
8088     - cd to ${abs_top_builddir}/src/rust before running cargo in
8089       src/test/test_rust.sh. This makes the working directory consistent
8090       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
8092   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
8093     - Log a protocol warning when single onion services or Tor2web clients
8094       fail to authenticate direct connections to relays.
8095       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
8097   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
8098     - Disable core dumps in test_bt.sh, to avoid failures in "make
8099       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8101   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
8102     - When running make test-network-all, use the mixed+hs-v2 network.
8103       (A previous fix to chutney removed v3 onion services from the
8104       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
8105       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
8106     - Before running make test-network-all, delete old logs and test
8107       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8108       on 0.2.7.3-rc.
8110   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
8111     - Our "tortls/cert_matches_key" unit test no longer relies on
8112       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8113       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8114       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8116   o Minor bugfixes (v3 onion services, backport from 0.3.4.6-rc):
8117     - Stop sending ed25519 link specifiers in v3 onion service introduce
8118       cells and descriptors, when the rendezvous or introduction point
8119       doesn't support ed25519 link authentication. Fixes bug 26627;
8120       bugfix on 0.3.2.4-alpha.
8122   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
8123     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8124       27185; bugfix on 0.2.2.2-alpha.
8127 Changes in version 0.3.4.8 - 2018-09-10
8128   Tor 0.3.4.8 is the first stable release in its series; it includes
8129   compilation and portability fixes.
8131   The Tor 0.3.4 series includes improvements for running Tor in
8132   low-power and embedded environments, which should help performance in
8133   general. We've begun work on better modularity, and included preliminary
8134   changes on the directory authority side to accommodate a new bandwidth
8135   measurement system.  We've also integrated more continuous-integration
8136   systems into our development process, and made corresponding changes to
8137   Tor's testing infrastructure.  Finally, we've continued to refine
8138   our anti-denial-of-service code.
8140   Below are the changes since 0.3.4.7-rc.  For a complete list of changes
8141   since 0.3.3.9, see the ReleaseNotes file.
8143   o Minor features (compatibility):
8144     - Tell OpenSSL to maintain backward compatibility with previous
8145       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8146       ciphers are disabled by default. Closes ticket 27344.
8148   o Minor features (continuous integration):
8149     - Log the compiler path and version during Appveyor builds.
8150       Implements ticket 27449.
8151     - Show config.log and test-suite.log after failed Appveyor builds.
8152       Also upload the zipped full logs as a build artifact. Implements
8153       ticket 27430.
8155   o Minor bugfixes (compilation):
8156     - Silence a spurious compiler warning on the GetAdaptersAddresses
8157       function pointer cast. This issue is already fixed by 26481 in
8158       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8159       bugfix on 0.2.3.11-alpha.
8160     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8161       supported, and always fails. Some compilers warn about the
8162       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8163       on 0.2.2.23-alpha.
8165   o Minor bugfixes (continuous integration):
8166     - Disable gcc hardening in Appveyor Windows 64-bit builds. As of
8167       August 29 2018, Appveyor images come with gcc 8.2.0 by default.
8168       Executables compiled for 64-bit Windows with this version of gcc
8169       crash when Tor's --enable-gcc-hardening flag is set. Fixes bug
8170       27460; bugfix on 0.3.4.1-alpha.
8171     - When a Travis build fails, and showing a log fails, keep trying to
8172       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8173     - When we use echo in Travis, don't pass a --flag as the first
8174       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8176   o Minor bugfixes (onion services):
8177     - Silence a spurious compiler warning in
8178       rend_client_send_introduction(). Fixes bug 27463; bugfix
8179       on 0.1.1.2-alpha.
8181   o Minor bugfixes (testing, chutney):
8182     - When running make test-network-all, use the mixed+hs-v2 network.
8183       (A previous fix to chutney removed v3 onion services from the
8184       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
8185       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
8186     - Before running make test-network-all, delete old logs and test
8187       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8188       on 0.2.7.3-rc.
8190 Changes in version 0.3.4.7-rc - 2018-08-24
8191   Tor 0.3.4.7-rc fixes several small compilation, portability, and
8192   correctness issues in previous versions of Tor. This version is a
8193   release candidate: if no serious bugs are found, we expect that the
8194   stable 0.3.4 release will be (almost) the same as this release.
8196   o Minor features (bug workaround):
8197     - Compile correctly on systems that provide the C11 stdatomic.h
8198       header, but where C11 atomic functions don't actually compile.
8199       Closes ticket 26779; workaround for Debian issue 903709.
8201   o Minor features (continuous integration):
8202     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
8203     - Enable macOS builds in our Travis CI configuration. Closes
8204       ticket 24629.
8205     - Install libcap-dev and libseccomp2-dev so these optional
8206       dependencies get tested on Travis CI. Closes ticket 26560.
8207     - Only post Appveyor IRC notifications when the build fails.
8208       Implements ticket 27275.
8209     - Run asciidoc during Travis CI. Implements ticket 27087.
8210     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8212   o Minor features (continuous integration, rust):
8213     - Use cargo cache in our Travis CI configuration. Closes
8214       ticket 26952.
8216   o Minor features (directory authorities):
8217     - Authorities no longer vote to make the subprotocol version
8218       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
8219       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
8221   o Minor features (geoip):
8222     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8223       Country database. Closes ticket 27089.
8225   o Minor bugfixes (compilation, windows):
8226     - Don't link or search for pthreads when building for Windows, even
8227       if we are using build environment (like mingw) that provides a
8228       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8230   o Minor bugfixes (continuous integration):
8231     - Improve Appveyor CI IRC logging. Generate correct branches and
8232       URLs for pull requests and tags. Use unambiguous short commits.
8233       Fixes bug 26979; bugfix on master.
8234     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
8235     - Pass the module flags to distcheck configure, and log the flags
8236       before running configure. (Backported to 0.2.9 and later as a
8237       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8239   o Minor bugfixes (in-process restart):
8240     - Always call tor_free_all() when leaving tor_run_main(). When we
8241       did not, restarting tor in-process would cause an assertion
8242       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
8244   o Minor bugfixes (linux seccomp2 sandbox):
8245     - Fix a bug in out sandboxing rules for the openat() syscall.
8246       Previously, no openat() call would be permitted, which would break
8247       filesystem operations on recent glibc versions. Fixes bug 25440;
8248       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8250   o Minor bugfixes (onion services):
8251     - Fix bug that causes services to not ever rotate their descriptors
8252       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
8253       on 0.3.2.1-alpha.
8255   o Minor bugfixes (portability):
8256     - Fix compilation of the unit tests on GNU/Hurd, which does not
8257       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
8258       from "paulusASol".
8260   o Minor bugfixes (rust):
8261     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
8262       on 0.3.1.5-alpha.
8263     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
8264       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
8265     - Protover parsing was accepting the presence of whitespace in
8266       version strings, which the C implementation would choke on, e.g.
8267       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
8268     - Protover parsing was ignoring a 2nd hyphen and everything after
8269       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
8270       on 0.3.3.1-alpha.
8271     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
8272       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
8273     - cd to ${abs_top_builddir}/src/rust before running cargo in
8274       src/test/test_rust.sh. This makes the working directory consistent
8275       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
8277   o Minor bugfixes (testing, bootstrap):
8278     - When calculating bootstrap progress, check exit policies and the
8279       exit flag. Previously, Tor would only check the exit flag, which
8280       caused race conditions in small and fast networks like chutney.
8281       Fixes bug 27236; bugfix on 0.2.6.3-alpha.
8283   o Minor bugfixes (testing, openssl compatibility):
8284     - Our "tortls/cert_matches_key" unit test no longer relies on
8285       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8286       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8287       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8289   o Minor bugfixes (Windows, compilation):
8290     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8291       27185; bugfix on 0.2.2.2-alpha.
8294 Changes in version 0.3.4.6-rc - 2018-08-06
8295   Tor 0.3.4.6-rc fixes several small compilation, portability, and
8296   correctness issues in previous versions of Tor. This version is a
8297   release candidate: if no serious bugs are found, we expect that the
8298   stable 0.3.4 release will be (almost) the same as this release.
8300   o Major bugfixes (event scheduler):
8301     - When we enable a periodic event, schedule it in the event loop
8302       rather than running it immediately. Previously, we would re-run
8303       periodic events immediately in the middle of (for example)
8304       changing our options, with unpredictable effects. Fixes bug 27003;
8305       bugfix on 0.3.4.1-alpha.
8307   o Minor features (compilation):
8308     - When building Tor, prefer to use Python 3 over Python 2, and more
8309       recent (contemplated) versions over older ones. Closes
8310       ticket 26372.
8311     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8312       tell the compiler not to include the system malloc implementation.
8313       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8314     - Don't try to use a pragma to temporarily disable the
8315       -Wunused-const-variable warning if the compiler doesn't support
8316       it. Fixes bug 26785; bugfix on 0.3.2.11.
8318   o Minor bugfixes (continuous integration):
8319     - Skip a pair of unreliable key generation tests on Windows, until
8320       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8321       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8323   o Minor features (controller):
8324     - The control port now exposes the list of HTTPTunnelPorts and
8325       ExtOrPorts via GETINFO net/listeners/httptunnel and
8326       net/listeners/extor respectively. Closes ticket 26647.
8328   o Minor bugfixes (directory authority):
8329     - When voting for recommended versions, make sure that all of the
8330       versions are well-formed and parsable. Fixes bug 26485; bugfix
8331       on 0.1.1.6-alpha.
8333   o Minor features (geoip):
8334     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8335       Country database. Closes ticket 26674.
8337   o Minor features (Rust, portability):
8338     - Rust cross-compilation is now supported. Closes ticket 25895.
8340   o Minor bugfixes (compilation):
8341     - Update build system so that tor builds again with --disable-unittests
8342       after recent refactoring. Fixes bug 26789; bugfix on 0.3.4.3-alpha.
8343     - Fix a compilation warning on some versions of GCC when building
8344       code that calls routerinfo_get_my_routerinfo() twice, assuming
8345       that the second call will succeed if the first one did. Fixes bug
8346       26269; bugfix on 0.2.8.2-alpha.
8348   o Minor bugfixes (controller):
8349     - Report the port correctly when a port is configured to bind to
8350       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
8351     - Parse the "HSADDRESS=" parameter in HSPOST commands properly.
8352       Previously, it was misparsed and ignored. Fixes bug 26523; bugfix
8353       on 0.3.3.1-alpha. Patch by "akwizgran".
8355   o Minor bugfixes (correctness, flow control):
8356     - Upon receiving a stream-level SENDME cell, verify that our window
8357       has not grown too large. Fixes bug 26214; bugfix on svn
8358       r54 (pre-0.0.1).
8360   o Minor bugfixes (memory, correctness):
8361     - Fix a number of small memory leaks identified by coverity. Fixes
8362       bug 26467; bugfix on numerous Tor versions.
8364   o Minor bugfixes (logging):
8365     - Improve the log message when connection initiators fail to
8366       authenticate direct connections to relays. Fixes bug 26927; bugfix
8367       on 0.3.0.1-alpha.
8369   o Minor bugfixes (portability):
8370     - Avoid a compilation error in test_bwmgt.c on Solaris 10. Fixes bug
8371       26994; bugfix on 0.3.4.1-alpha.
8372     - Work around two different bugs in the OS X 10.10 and later SDKs
8373       that would prevent us from successfully targeting earlier versions
8374       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
8376   o Minor bugfixes (single onion services, Tor2web):
8377     - Log a protocol warning when single onion services or Tor2web
8378       clients fail to authenticate direct connections to relays. Fixes
8379       bug 26924; bugfix on 0.2.9.1-alpha.
8381   o Minor bugfixes (testing):
8382     - Disable core dumps in test_bt.sh, to avoid failures in "make
8383       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8385   o Minor bugfixes (testing, compatibility):
8386     - When running the ntor_ref.py and hs_ntor_ref.py tests, make sure
8387       only to pass strings (rather than "bytes" objects) to the Python
8388       subprocess module. Python 3 on Windows seems to require this.
8389       Fixes bug 26535; bugfix on 0.2.5.5-alpha (for ntor_ref.py) and
8390       0.3.1.1-alpha (for hs_ntor_ref.py).
8392   o Minor bugfixes (v3 onion services):
8393     - Stop sending ed25519 link specifiers in v3 onion service introduce
8394       cells and descriptors, when the rendezvous or introduction point
8395       doesn't support ed25519 link authentication. Fixes bug 26627;
8396       bugfix on 0.3.2.4-alpha.
8399 Changes in version 0.3.4.5-rc - 2018-07-13
8400   Tor 0.3.4.5-rc moves to a new bridge authority, meaning people running
8401   bridge relays should upgrade.
8403   o Directory authority changes:
8404     - The "Bifroest" bridge authority has been retired; the new bridge
8405       authority is "Serge", and it is operated by George from the
8406       TorBSD project. Closes ticket 26771.
8409 Changes in version 0.3.3.9 - 2018-07-13
8410   Tor 0.3.3.9 moves to a new bridge authority, meaning people running
8411   bridge relays should upgrade.
8413   o Directory authority changes:
8414     - The "Bifroest" bridge authority has been retired; the new bridge
8415       authority is "Serge", and it is operated by George from the
8416       TorBSD project. Closes ticket 26771.
8419 Changes in version 0.3.2.11 - 2018-07-13
8420   Tor 0.3.2.11 moves to a new bridge authority, meaning people running
8421   bridge relays should upgrade. We also take this opportunity to backport
8422   other minor fixes.
8424   o Directory authority changes:
8425     - The "Bifroest" bridge authority has been retired; the new bridge
8426       authority is "Serge", and it is operated by George from the
8427       TorBSD project. Closes ticket 26771.
8429   o Directory authority changes (backport from 0.3.3.7):
8430     - Add an IPv6 address for the "dannenberg" directory authority.
8431       Closes ticket 26343.
8433   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
8434     - When directory authorities read a zero-byte bandwidth file, they
8435       would previously log a warning with the contents of an
8436       uninitialised buffer. They now log a warning about the empty file
8437       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
8439   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
8440     - Correctly detect when onion services get disabled after HUP. Fixes
8441       bug 25761; bugfix on 0.3.2.1.
8443   o Minor features (sandbox, backport from 0.3.3.4-alpha):
8444     - Explicitly permit the poll() system call when the Linux
8445       seccomp2-based sandbox is enabled: apparently, some versions of
8446       libc use poll() when calling getpwnam(). Closes ticket 25313.
8448   o Minor feature (continuous integration, backport from 0.3.3.5-rc):
8449     - Update the Travis CI configuration to use the stable Rust channel,
8450       now that we have decided to require that. Closes ticket 25714.
8452   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
8453     - Our .travis.yml configuration now includes support for testing the
8454       results of "make distcheck". (It's not uncommon for "make check"
8455       to pass but "make distcheck" to fail.) Closes ticket 25814.
8456     - Our Travis CI configuration now integrates with the Coveralls
8457       coverage analysis tool. Closes ticket 25818.
8459   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
8460     - Add several checks to detect whether Tor relays are uploading
8461       their descriptors without specifying why they regenerated them.
8462       Diagnostic for ticket 25686.
8464   o Minor features (compilation, backport from 0.3.4.4-rc):
8465     - When building Tor, prefer to use Python 3 over Python 2, and more
8466       recent (contemplated) versions over older ones. Closes
8467       ticket 26372.
8469   o Minor features (geoip):
8470     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8471       Country database. Closes ticket 26674.
8473   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
8474     - Upon receiving a malformed connected cell, stop processing the
8475       cell immediately. Previously we would mark the connection for
8476       close, but continue processing the cell as if the connection were
8477       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
8479   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
8480     - Allow the nanosleep() system call, which glibc uses to implement
8481       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
8483   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
8484     - When running the hs_ntor_ref.py test, make sure only to pass
8485       strings (rather than "bytes" objects) to the Python subprocess
8486       module. Python 3 on Windows seems to require this. Fixes bug
8487       26535; bugfix on 0.3.1.1-alpha.
8488     - When running the ntor_ref.py test, make sure only to pass strings
8489       (rather than "bytes" objects) to the Python subprocess module.
8490       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
8491       on 0.2.5.5-alpha.
8493   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
8494     - Work around a change in OpenSSL 1.1.1 where return values that
8495       would previously indicate "no password" now indicate an empty
8496       password. Without this workaround, Tor instances running with
8497       OpenSSL 1.1.1 would accept descriptors that other Tor instances
8498       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
8500   o Minor bugfixes (documentation, backport from 0.3.3.5-rc):
8501     - Document that the PerConnBW{Rate,Burst} options will fall back to
8502       their corresponding consensus parameters only if those parameters
8503       are set. Previously we had claimed that these values would always
8504       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
8506   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
8507     - Fix a compilation warning on some versions of GCC when building
8508       code that calls routerinfo_get_my_routerinfo() twice, assuming
8509       that the second call will succeed if the first one did. Fixes bug
8510       26269; bugfix on 0.2.8.2-alpha.
8512   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
8513     - Don't consider Tor running as a client if the ControlPort is open,
8514       but no actual client ports are open. Fixes bug 26062; bugfix
8515       on 0.2.9.4-alpha.
8517   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
8518     - Prevent a possible out-of-bounds smartlist read in
8519       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
8521   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
8522     - Fix a very unlikely (impossible, we believe) null pointer
8523       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
8524       Coverity; this is CID 1430932.
8526   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
8527     - Fix a memory leak when a v3 onion service is configured and gets a
8528       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
8529     - When parsing the descriptor signature, look for the token plus an
8530       extra white-space at the end. This is more correct but also will
8531       allow us to support new fields that might start with "signature".
8532       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
8534   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
8535     - Relays now correctly block attempts to re-extend to the previous
8536       relay by Ed25519 identity. Previously they would warn in this
8537       case, but not actually reject the attempt. Fixes bug 26158; bugfix
8538       on 0.3.0.1-alpha.
8540   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
8541     - Avoid a crash when running with DirPort set but ORPort turned off.
8542       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
8544   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
8545     - Silence unused-const-variable warnings in zstd.h with some GCC
8546       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
8548   o Minor bugfixes (testing, backport from 0.3.3.4-alpha):
8549     - Avoid intermittent test failures due to a test that had relied on
8550       onion service introduction point creation finishing within 5
8551       seconds of real clock time. Fixes bug 25450; bugfix
8552       on 0.3.1.3-alpha.
8554   o Minor bugfixes (compilation, backport from 0.3.3.4-alpha):
8555     - Fix a C99 compliance issue in our configuration script that caused
8556       compilation issues when compiling Tor with certain versions of
8557       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
8559   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
8560     - Fix a number of small memory leaks identified by coverity. Fixes
8561       bug 26467; bugfix on numerous Tor versions.
8563   o Code simplification and refactoring (backport from 0.3.3.5-rc):
8564     - Move the list of default directory authorities to its own file.
8565       Closes ticket 24854. Patch by "beastr0".
8568 Changes in version 0.2.9.16 - 2018-07-13
8569   Tor 0.2.9.16 moves to a new bridge authority, meaning people running
8570   bridge relays should upgrade. We also take this opportunity to backport
8571   other minor fixes.
8573   o Directory authority changes:
8574     - The "Bifroest" bridge authority has been retired; the new bridge
8575       authority is "Serge", and it is operated by George from the
8576       TorBSD project. Closes ticket 26771.
8578   o Directory authority changes (backport from 0.3.3.7):
8579     - Add an IPv6 address for the "dannenberg" directory authority.
8580       Closes ticket 26343.
8582   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
8583     - When directory authorities read a zero-byte bandwidth file, they
8584       would previously log a warning with the contents of an
8585       uninitialised buffer. They now log a warning about the empty file
8586       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
8588   o Minor features (sandbox, backport from 0.3.3.4-alpha):
8589     - Explicitly permit the poll() system call when the Linux
8590       seccomp2-based sandbox is enabled: apparently, some versions of
8591       libc use poll() when calling getpwnam(). Closes ticket 25313.
8593   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
8594     - Our .travis.yml configuration now includes support for testing the
8595       results of "make distcheck". (It's not uncommon for "make check"
8596       to pass but "make distcheck" to fail.) Closes ticket 25814.
8597     - Our Travis CI configuration now integrates with the Coveralls
8598       coverage analysis tool. Closes ticket 25818.
8600   o Minor features (compilation, backport from 0.3.4.4-rc):
8601     - When building Tor, prefer to use Python 3 over Python 2, and more
8602       recent (contemplated) versions over older ones. Closes
8603       ticket 26372.
8605   o Minor features (geoip):
8606     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8607       Country database. Closes ticket 26674.
8609   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
8610     - Upon receiving a malformed connected cell, stop processing the
8611       cell immediately. Previously we would mark the connection for
8612       close, but continue processing the cell as if the connection were
8613       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
8615   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
8616     - Allow the nanosleep() system call, which glibc uses to implement
8617       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
8619   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
8620     - When running the ntor_ref.py test, make sure only to pass strings
8621       (rather than "bytes" objects) to the Python subprocess module.
8622       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
8623       on 0.2.5.5-alpha.
8625   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
8626     - Work around a change in OpenSSL 1.1.1 where return values that
8627       would previously indicate "no password" now indicate an empty
8628       password. Without this workaround, Tor instances running with
8629       OpenSSL 1.1.1 would accept descriptors that other Tor instances
8630       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
8632   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
8633     - Fix a compilation warning on some versions of GCC when building
8634       code that calls routerinfo_get_my_routerinfo() twice, assuming
8635       that the second call will succeed if the first one did. Fixes bug
8636       26269; bugfix on 0.2.8.2-alpha.
8638   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
8639     - Don't consider Tor running as a client if the ControlPort is open,
8640       but no actual client ports are open. Fixes bug 26062; bugfix
8641       on 0.2.9.4-alpha.
8643   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
8644     - Prevent a possible out-of-bounds smartlist read in
8645       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
8647   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
8648     - Fix a very unlikely (impossible, we believe) null pointer
8649       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
8650       Coverity; this is CID 1430932.
8652   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
8653     - Fix a number of small memory leaks identified by coverity. Fixes
8654       bug 26467; bugfix on numerous Tor versions.
8656   o Code simplification and refactoring (backport from 0.3.3.5-rc):
8657     - Move the list of default directory authorities to its own file.
8658       Closes ticket 24854. Patch by "beastr0".
8661 Changes in version 0.3.4.4-rc - 2018-07-09
8662   Tor 0.3.4.4-rc fixes several small compilation, portability, and
8663   correctness issues in previous versions of Tor. This version is a
8664   release candidate: if no serious bugs are found, we expect that the
8665   stable 0.3.4 release will be (almost) the same as this release.
8667   o Minor features (compilation):
8668     - When building Tor, prefer to use Python 3 over Python 2, and more
8669       recent (contemplated) versions over older ones. Closes
8670       ticket 26372.
8672   o Minor features (geoip):
8673     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8674       Country database. Closes ticket 26674.
8676   o Minor features (Rust, portability):
8677     - Rust cross-compilation is now supported. Closes ticket 25895.
8679   o Minor bugfixes (compilation):
8680     - Fix a compilation warning on some versions of GCC when building
8681       code that calls routerinfo_get_my_routerinfo() twice, assuming
8682       that the second call will succeed if the first one did. Fixes bug
8683       26269; bugfix on 0.2.8.2-alpha.
8685   o Minor bugfixes (control port):
8686     - Report the port correctly when a port is configured to bind to
8687       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
8688     - Handle the HSADDRESS= argument to the HSPOST command properly.
8689       (Previously, this argument was misparsed and thus ignored.) Fixes
8690       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
8692   o Minor bugfixes (correctness, flow control):
8693     - Upon receiving a stream-level SENDME cell, verify that our window
8694       has not grown too large. Fixes bug 26214; bugfix on svn
8695       r54 (pre-0.0.1).
8697   o Minor bugfixes (memory, correctness):
8698     - Fix a number of small memory leaks identified by coverity. Fixes
8699       bug 26467; bugfix on numerous Tor versions.
8701   o Minor bugfixes (testing, compatibility):
8702     - When running the hs_ntor_ref.py test, make sure only to pass
8703       strings (rather than "bytes" objects) to the Python subprocess
8704       module. Python 3 on Windows seems to require this. Fixes bug
8705       26535; bugfix on 0.3.1.1-alpha.
8706     - When running the ntor_ref.py test, make sure only to pass strings
8707       (rather than "bytes" objects) to the Python subprocess module.
8708       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
8709       on 0.2.5.5-alpha.
8712 Changes in version 0.3.3.8 - 2018-07-09
8713   Tor 0.3.3.8 backports several changes from the 0.3.4.x series, including
8714   fixes for a memory leak affecting directory authorities.
8716   o Major bugfixes (directory authority, backport from 0.3.4.3-alpha):
8717     - Stop leaking memory on directory authorities when planning to
8718       vote. This bug was crashing authorities by exhausting their
8719       memory. Fixes bug 26435; bugfix on 0.3.3.6.
8721   o Major bugfixes (rust, testing, backport from 0.3.4.3-alpha):
8722     - Make sure that failing tests in Rust will actually cause the build
8723       to fail: previously, they were ignored. Fixes bug 26258; bugfix
8724       on 0.3.3.4-alpha.
8726   o Minor features (compilation, backport from 0.3.4.4-rc):
8727     - When building Tor, prefer to use Python 3 over Python 2, and more
8728       recent (contemplated) versions over older ones. Closes
8729       ticket 26372.
8731   o Minor features (geoip):
8732     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8733       Country database. Closes ticket 26674.
8735   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
8736     - Add several checks to detect whether Tor relays are uploading
8737       their descriptors without specifying why they regenerated them.
8738       Diagnostic for ticket 25686.
8740   o Minor bugfixes (circuit path selection, backport from 0.3.4.1-alpha):
8741     - Don't count path selection failures as circuit build failures.
8742       This change should eliminate cases where Tor blames its guard or
8743       the network for situations like insufficient microdescriptors
8744       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
8745       on 0.3.3.1-alpha.
8747   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
8748     - Fix a compilation warning on some versions of GCC when building
8749       code that calls routerinfo_get_my_routerinfo() twice, assuming
8750       that the second call will succeed if the first one did. Fixes bug
8751       26269; bugfix on 0.2.8.2-alpha.
8753   o Minor bugfixes (control port, backport from 0.3.4.4-rc):
8754     - Handle the HSADDRESS= argument to the HSPOST command properly.
8755       (Previously, this argument was misparsed and thus ignored.) Fixes
8756       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
8758   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
8759     - Fix a number of small memory leaks identified by coverity. Fixes
8760       bug 26467; bugfix on numerous Tor versions.
8762   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
8763     - Relays now correctly block attempts to re-extend to the previous
8764       relay by Ed25519 identity. Previously they would warn in this
8765       case, but not actually reject the attempt. Fixes bug 26158; bugfix
8766       on 0.3.0.1-alpha.
8768   o Minor bugfixes (restart-in-process, backport from 0.3.4.1-alpha):
8769     - When shutting down, Tor now clears all the flags in the control.c
8770       module. This should prevent a bug where authentication cookies are
8771       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
8773   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
8774     - When running the hs_ntor_ref.py test, make sure only to pass
8775       strings (rather than "bytes" objects) to the Python subprocess
8776       module. Python 3 on Windows seems to require this. Fixes bug
8777       26535; bugfix on 0.3.1.1-alpha.
8778     - When running the ntor_ref.py test, make sure only to pass strings
8779       (rather than "bytes" objects) to the Python subprocess module.
8780       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
8781       on 0.2.5.5-alpha.
8784 Changes in version 0.3.4.3-alpha - 2018-06-26
8785   Tor 0.3.4.3-alpha fixes several bugs in earlier versions, including
8786   one that was causing stability issues on directory authorities.
8788   o Major bugfixes (directory authority):
8789     - Stop leaking memory on directory authorities when planning to
8790       vote. This bug was crashing authorities by exhausting their
8791       memory. Fixes bug 26435; bugfix on 0.3.3.6.
8793   o Major bugfixes (rust, testing):
8794     - Make sure that failing tests in Rust will actually cause the build
8795       to fail: previously, they were ignored. Fixes bug 26258; bugfix
8796       on 0.3.3.4-alpha.
8798   o Minor feature (directory authorities):
8799     - Stop warning about incomplete bw lines before the first complete
8800       bw line has been found, so that additional header lines can be
8801       ignored. Fixes bug 25960; bugfix on 0.2.2.1-alpha
8803   o Minor features (relay, diagnostic):
8804     - Add several checks to detect whether Tor relays are uploading
8805       their descriptors without specifying why they regenerated them.
8806       Diagnostic for ticket 25686.
8808   o Minor features (unit tests):
8809     - Test complete bandwidth measurements files, and test that
8810       incomplete bandwidth lines only give warnings when the end of the
8811       header has not been detected. Fixes bug 25947; bugfix
8812       on 0.2.2.1-alpha
8814   o Minor bugfixes (compilation):
8815     - Refrain from compiling unit testing related object files when
8816       --disable-unittests is set to configure script. Fixes bug 24891;
8817       bugfix on 0.2.5.1-alpha.
8818     - When linking the libtor_testing.a library, only include the
8819       dirauth object files once. Previously, they were getting added
8820       twice. Fixes bug 26402; bugfix on 0.3.4.1-alpha.
8821     - The --enable-fatal-warnings flag now affects Rust code as well.
8822       Closes ticket 26245.
8824   o Minor bugfixes (onion services):
8825     - Recompute some consensus information after detecting a clock jump,
8826       or after transitioning from a non-live consensus to a live
8827       consensus. We do this to avoid having an outdated state, and
8828       miscalculating the index for next-generation onion services. Fixes
8829       bug 24977; bugfix on 0.3.2.1-alpha.
8831   o Minor bugfixes (relay):
8832     - Relays now correctly block attempts to re-extend to the previous
8833       relay by Ed25519 identity. Previously they would warn in this
8834       case, but not actually reject the attempt. Fixes bug 26158; bugfix
8835       on 0.3.0.1-alpha.
8837   o Minor bugfixes (testing):
8838     - Fix compilation of the doctests in the Rust crypto crate. Fixes
8839       bug 26415; bugfix on 0.3.4.1-alpha.
8840     - Instead of trying to read the geoip configuration files from
8841       within the unit tests, instead create our own ersatz files with
8842       just enough geoip data in the format we expect. Trying to read
8843       from the source directory created problems on Windows with mingw,
8844       where the build system's paths are not the same as the platform's
8845       paths. Fixes bug 25787; bugfix on 0.3.4.1-alpha.
8846     - Refrain from trying to get an item from an empty smartlist in
8847       test_bridges_clear_bridge_list. Set DEBUG_SMARTLIST in unit tests
8848       to catch improper smartlist usage. Furthermore, enable
8849       DEBUG_SMARTLIST globally when build is configured with fragile
8850       hardening. Fixes bug 26196; bugfix on 0.3.4.1-alpha.
8853 Changes in version 0.3.3.7 - 2018-06-12
8854   Tor 0.3.3.7 backports several changes from the 0.3.4.x series, including
8855   fixes for bugs affecting compatibility and stability.
8857   o Directory authority changes:
8858     - Add an IPv6 address for the "dannenberg" directory authority.
8859       Closes ticket 26343.
8861   o Minor features (geoip):
8862     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
8863       Country database. Closes ticket 26351.
8865   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
8866     - Work around a change in OpenSSL 1.1.1 where return values that
8867       would previously indicate "no password" now indicate an empty
8868       password. Without this workaround, Tor instances running with
8869       OpenSSL 1.1.1 would accept descriptors that other Tor instances
8870       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
8872   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
8873     - Silence unused-const-variable warnings in zstd.h with some GCC
8874       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
8876   o Minor bugfixes (controller, backport from 0.3.4.2-alpha):
8877     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
8878       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
8879       miscounting the total number of circuits for these field values.)
8880       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
8882   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
8883     - Prevent a possible out-of-bounds smartlist read in
8884       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
8886   o Minor bugfixes (path selection, backport from 0.3.4.1-alpha):
8887     - Only select relays when they have the descriptors we prefer to use
8888       for them. This change fixes a bug where we could select a relay
8889       because it had _some_ descriptor, but reject it later with a
8890       nonfatal assertion error because it didn't have the exact one we
8891       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
8894 Changes in version 0.3.4.2-alpha - 2018-06-12
8895   Tor 0.3.4.2-alpha fixes several minor bugs in the previous alpha
8896   release, and forward-ports an authority-only security fix from 0.3.3.6.
8898   o Directory authority changes:
8899     - Add an IPv6 address for the "dannenberg" directory authority.
8900       Closes ticket 26343.
8902   o Major bugfixes (security, directory authority, denial-of-service, also in 0.3.3.6):
8903     - Fix a bug that could have allowed an attacker to force a directory
8904       authority to use up all its RAM by passing it a maliciously
8905       crafted protocol versions string. Fixes bug 25517; bugfix on
8906       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
8908   o Minor features (continuous integration):
8909     - Add the necessary configuration files for continuous integration
8910       testing on Windows, via the Appveyor platform. Closes ticket
8911       25549. Patches from Marcin Cieślak and Isis Lovecruft.
8913   o Minor features (geoip):
8914     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
8915       Country database. Closes ticket 26351.
8917   o Minor bugfixes (compatibility, openssl):
8918     - Work around a change in OpenSSL 1.1.1 where return values that
8919       would previously indicate "no password" now indicate an empty
8920       password. Without this workaround, Tor instances running with
8921       OpenSSL 1.1.1 would accept descriptors that other Tor instances
8922       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
8924   o Minor bugfixes (compilation):
8925     - Silence unused-const-variable warnings in zstd.h with some GCC
8926       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
8927     - Fix compilation when using OpenSSL 1.1.0 with the "no-deprecated"
8928       flag enabled. Fixes bug 26156; bugfix on 0.3.4.1-alpha.
8929     - Avoid a compiler warning when casting the return value of
8930       smartlist_len() to double with DEBUG_SMARTLIST enabled. Fixes bug
8931       26283; bugfix on 0.2.4.10-alpha.
8933   o Minor bugfixes (control port):
8934     - Do not count 0-length RELAY_COMMAND_DATA cells as valid data in
8935       CIRC_BW events. Previously, such cells were counted entirely in
8936       the OVERHEAD field. Now they are not. Fixes bug 26259; bugfix
8937       on 0.3.4.1-alpha.
8939   o Minor bugfixes (controller):
8940     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
8941       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
8942       miscounting the total number of circuits for these field values.)
8943       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
8945   o Minor bugfixes (hardening):
8946     - Prevent a possible out-of-bounds smartlist read in
8947       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
8949   o Minor bugfixes (onion services):
8950     - Fix a bug that blocked the creation of ephemeral v3 onion
8951       services. Fixes bug 25939; bugfix on 0.3.4.1-alpha.
8953   o Minor bugfixes (test coverage tools):
8954     - Update our "cov-diff" script to handle output from the latest
8955       version of gcov, and to remove extraneous timestamp information
8956       from its output. Fixes bugs 26101 and 26102; bugfix
8957       on 0.2.5.1-alpha.
8960 Changes in version 0.3.3.6 - 2018-05-22
8961   Tor 0.3.3.6 is the first stable release in the 0.3.3 series. It
8962   backports several important fixes from the 0.3.4.1-alpha.
8964   The Tor 0.3.3 series includes controller support and other
8965   improvements for v3 onion services, official support for embedding Tor
8966   within other applications, and our first non-trivial module written in
8967   the Rust programming language. (Rust is still not enabled by default
8968   when building Tor.) And as usual, there are numerous other smaller
8969   bugfixes, features, and improvements.
8971   Below are the changes since 0.3.3.5-rc. For a list of all changes
8972   since 0.3.2.10, see the ReleaseNotes file.
8974   o Major bugfixes (directory authorities, security, backport from 0.3.4.1-alpha):
8975     - When directory authorities read a zero-byte bandwidth file, they
8976       would previously log a warning with the contents of an
8977       uninitialised buffer. They now log a warning about the empty file
8978       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
8980   o Major bugfixes (security, directory authority, denial-of-service):
8981     - Fix a bug that could have allowed an attacker to force a directory
8982       authority to use up all its RAM by passing it a maliciously
8983       crafted protocol versions string. Fixes bug 25517; bugfix on
8984       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
8986   o Major bugfixes (crash, backport from 0.3.4.1-alpha):
8987     - Avoid a rare assertion failure in the circuit build timeout code
8988       if we fail to allow any circuits to actually complete. Fixes bug
8989       25733; bugfix on 0.2.2.2-alpha.
8991   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
8992     - Avoid a crash when testing router reachability on a router that
8993       could have an ed25519 ID, but which does not. Fixes bug 25415;
8994       bugfix on 0.3.3.2-alpha.
8996   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
8997     - Correctly detect when onion services get disabled after HUP. Fixes
8998       bug 25761; bugfix on 0.3.2.1.
9000   o Major bugfixes (relay, denial of service, backport from 0.3.4.1-alpha):
9001     - Impose a limit on circuit cell queue size. The limit can be
9002       controlled by a consensus parameter. Fixes bug 25226; bugfix
9003       on 0.2.4.14-alpha.
9005   o Minor features (compatibility, backport from 0.3.4.1-alpha):
9006     - Avoid some compilation warnings with recent versions of LibreSSL.
9007       Closes ticket 26006.
9009   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
9010     - Our .travis.yml configuration now includes support for testing the
9011       results of "make distcheck". (It's not uncommon for "make check"
9012       to pass but "make distcheck" to fail.) Closes ticket 25814.
9013     - Our Travis CI configuration now integrates with the Coveralls
9014       coverage analysis tool. Closes ticket 25818.
9016   o Minor features (geoip):
9017     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
9018       database. Closes ticket 26104.
9020   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
9021     - Don't consider Tor running as a client if the ControlPort is open,
9022       but no actual client ports are open. Fixes bug 26062; bugfix
9023       on 0.2.9.4-alpha.
9025   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
9026     - Upon receiving a malformed connected cell, stop processing the
9027       cell immediately. Previously we would mark the connection for
9028       close, but continue processing the cell as if the connection were
9029       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
9031   o Minor bugfixes (documentation, backport from 0.3.4.1-alpha):
9032     - Stop saying in the manual that clients cache ipv4 dns answers from
9033       exit relays. We haven't used them since 0.2.6.3-alpha, and in
9034       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
9035       we forgot to say so in the man page. Fixes bug 26052; bugfix
9036       on 0.3.2.6-alpha.
9038   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
9039     - Allow the nanosleep() system call, which glibc uses to implement
9040       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
9042   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
9043     - Fix a memory leak when a v3 onion service is configured and gets a
9044       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
9045     - When parsing the descriptor signature, look for the token plus an
9046       extra white-space at the end. This is more correct but also will
9047       allow us to support new fields that might start with "signature".
9048       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
9050   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
9051     - Avoid a crash when running with DirPort set but ORPort turned off.
9052       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
9054   o Documentation (backport from 0.3.4.1-alpha):
9055     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
9056       ticket 25857. Patch from "CTassisF".
9059 Changes in version 0.3.4.1-alpha - 2018-05-17
9060   Tor 0.3.4.1-alpha is the first release in the 0.3.4.x series. It
9061   includes refactoring to begin reducing Tor's binary size and idle CPU
9062   usage on mobile, along with prep work for new bandwidth scanners,
9063   improvements to the experimental "vanguards" feature, and numerous
9064   other small features and bugfixes.
9066   o New system requirements:
9067     - Tor no longer tries to support old operating systems without
9068       mmap() or some local equivalent. Apparently, compilation on such
9069       systems has been broken for some time, without anybody noticing or
9070       complaining. Closes ticket 25398.
9072   o Major feature (directory authority, modularization):
9073     - The directory authority subsystem has been modularized. The code
9074       is now located in src/or/dirauth/, and is compiled in by default.
9075       To disable the module, the configure option
9076       --disable-module-dirauth has been added. This module may be
9077       disabled by default in some future release. Closes ticket 25610.
9079   o Major features (main loop, CPU usage):
9080     - When Tor is disabled (via DisableNetwork or via hibernation), it
9081       no longer needs to run any per-second events. This change should
9082       make it easier for mobile applications to disable Tor while the
9083       device is sleeping, or Tor is not running. Closes ticket 26063.
9084     - Tor no longer enables all of its periodic events by default.
9085       Previously, Tor would enable all possible main loop events,
9086       regardless of whether it needed them. Furthermore, many of these
9087       events are now disabled with Tor is hibernating or DisableNetwork
9088       is set. This is a big step towards reducing client CPU usage by
9089       reducing the amount of wake-ups the daemon does. Closes ticket
9090       25376 and 25762.
9091     - The bandwidth-limitation logic has been refactored so that
9092       bandwidth calculations are performed on-demand, rather than every
9093       TokenBucketRefillInterval milliseconds. This change should improve
9094       the granularity of our bandwidth calculations, and limit the
9095       number of times that the Tor process needs to wake up when it is
9096       idle. Closes ticket 25373.
9097     - Move responsibility for many operations from a once-per-second
9098       callback to a callback that is only scheduled as needed. Moving
9099       this functionality has allowed us to disable the callback when
9100       Tor's network is disabled. Once enough items are removed from our
9101       once-per-second callback, we can eliminate it entirely to conserve
9102       CPU when idle. The functionality removed includes: closing
9103       connections, circuits, and channels (ticket 25932); consensus
9104       voting (25937); flushing log callbacks (25951); honoring delayed
9105       SIGNEWNYM requests (25949); rescanning the consensus cache
9106       (25931); saving the state file to disk (25948); warning relay
9107       operators about unreachable ports (25952); and keeping track of
9108       Tor's uptime (26009).
9110   o Major bugfixes (directory authorities, security):
9111     - When directory authorities read a zero-byte bandwidth file, they
9112       would previously log a warning with the contents of an
9113       uninitialised buffer. They now log a warning about the empty file
9114       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
9116   o Major bugfixes (crash):
9117     - Avoid a rare assertion failure in the circuit build timeout code
9118       if we fail to allow any circuits to actually complete. Fixes bug
9119       25733; bugfix on 0.2.2.2-alpha.
9121   o Major bugfixes (directory authority):
9122     - Avoid a crash when testing router reachability on a router that
9123       could have an ed25519 ID, but which does not. Fixes bug 25415;
9124       bugfix on 0.3.3.2-alpha.
9126   o Major bugfixes (onion service):
9127     - Correctly detect when onion services get disabled after HUP. Fixes
9128       bug 25761; bugfix on 0.3.2.1.
9130   o Major bugfixes (protover, voting):
9131     - Revise Rust implementation of protover to use a more memory-
9132       efficient voting algorithm and corresponding data structures, thus
9133       avoiding a potential (but small impact) DoS attack where specially
9134       crafted protocol strings would expand to several potential
9135       megabytes in memory. In the process, several portions of code were
9136       revised to be methods on new, custom types, rather than functions
9137       taking interchangeable types, thus increasing type safety of the
9138       module. Custom error types and handling were added as well, in
9139       order to facilitate better error dismissal/handling in outside
9140       crates and avoid mistakenly passing an internal error string to C
9141       over the FFI boundary. Many tests were added, and some previous
9142       differences between the C and Rust implementations have been
9143       remedied. Fixes bug 24031; bugfix on 0.3.3.1-alpha.
9145   o Major bugfixes (relay, denial of service):
9146     - Impose a limit on circuit cell queue size. The limit can be
9147       controlled by a consensus parameter. Fixes bug 25226; bugfix
9148       on 0.2.4.14-alpha.
9150   o Minor features (accounting):
9151     - When Tor becomes dormant, it now uses a scheduled event to wake up
9152       at the right time. Previously, we would use the per-second timer
9153       to check whether to wake up, but we no longer have any per-second
9154       timers enabled when the network is disabled. Closes ticket 26064.
9156   o Minor features (code quality):
9157     - Add optional spell-checking for the Tor codebase, using the
9158       "misspell" program. To use this feature, run "make check-typos".
9159       Closes ticket 25024.
9161   o Minor features (compatibility):
9162     - Tor now detects versions of OpenSSL 1.1.0 and later compiled with
9163       the no-deprecated option, and builds correctly with them. Closes
9164       tickets 19429, 19981, and 25353.
9165     - Avoid some compilation warnings with recent versions of LibreSSL.
9166       Closes ticket 26006.
9168   o Minor features (compression, zstd):
9169     - When running with zstd, Tor now considers using advanced functions
9170       that the zstd maintainers have labeled as potentially unstable. To
9171       prevent breakage, Tor will only use this functionality when the
9172       runtime version of the zstd library matches the version with which
9173       Tor was compiled. Closes ticket 25162.
9175   o Minor features (configuration):
9176     - The "DownloadSchedule" options have been renamed to end with
9177       "DownloadInitialDelay". The old names are still allowed, but will
9178       produce a warning. Comma-separated lists are still permitted for
9179       these options, but all values after the first are ignored (as they
9180       have been since 0.2.9). Closes ticket 23354.
9182   o Minor features (continuous integration):
9183     - Our .travis.yml configuration now includes support for testing the
9184       results of "make distcheck". (It's not uncommon for "make check"
9185       to pass but "make distcheck" to fail.) Closes ticket 25814.
9186     - Our Travis CI configuration now integrates with the Coveralls
9187       coverage analysis tool. Closes ticket 25818.
9189   o Minor features (control port):
9190     - Introduce GETINFO "current-time/{local,utc}" to return the local
9191       and UTC times respectively in ISO format. This helps a controller
9192       like Tor Browser detect a time-related error. Closes ticket 25511.
9193       Patch by Neel Chauhan.
9194     - Introduce new fields to the CIRC_BW event. There are two new
9195       fields in each of the read and written directions. The DELIVERED
9196       fields report the total valid data on the circuit, as measured by
9197       the payload sizes of verified and error-checked relay command
9198       cells. The OVERHEAD fields report the total unused bytes in each
9199       of these cells. Closes ticket 25903.
9201   o Minor features (directory authority):
9202     - Directory authorities now open their key-pinning files as O_SYNC,
9203       to limit their chances of accidentally writing partial lines.
9204       Closes ticket 23909.
9206   o Minor features (directory authority, forward compatibility):
9207     - Make the lines of the measured bandwidth file able to contain
9208       their entries in any order. Previously, the node_id entry needed
9209       to come first. Closes ticket 26004.
9211   o Minor features (entry guards):
9212     - Introduce a new torrc option NumPrimaryGuards for controlling the
9213       number of primary guards. Closes ticket 25843.
9215   o Minor features (geoip):
9216     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
9217       database. Closes ticket 26104.
9219   o Minor features (performance):
9220     - Avoid a needless call to malloc() when processing an incoming
9221       relay cell. Closes ticket 24914.
9222     - Make our timing-wheel code run a tiny bit faster on 32-bit
9223       platforms, by preferring 32-bit math to 64-bit. Closes
9224       ticket 24688.
9225     - Avoid a needless malloc()/free() pair every time we handle an ntor
9226       handshake. Closes ticket 25150.
9228   o Minor features (testing):
9229     - Add a unit test for voting_schedule_get_start_of_next_interval().
9230       Closes ticket 26014, and helps make unit test coverage
9231       more deterministic.
9232     - A new unittests module specifically for testing the functions in
9233       the (new-ish) bridges.c module has been created with new
9234       unittests, raising the code coverage percentages. Closes 25425.
9235     - We now have improved testing for addressmap_get_virtual_address()
9236       function. This should improve our test coverage, and make our test
9237       coverage more deterministic. Closes ticket 25993.
9239   o Minor features (timekeeping, circuit scheduling):
9240     - When keeping track of how busy each circuit have been recently on
9241       a given connection, use coarse-grained monotonic timers rather
9242       than gettimeofday(). This change should marginally increase
9243       accuracy and performance. Implements part of ticket 25927.
9245   o Minor bugfixes (bandwidth management):
9246     - Consider ourselves "low on write bandwidth" if we have exhausted
9247       our write bandwidth some time in the last second. This was the
9248       documented behavior before, but the actual behavior was to change
9249       this value every TokenBucketRefillInterval. Fixes bug 25828;
9250       bugfix on 0.2.3.5-alpha.
9252   o Minor bugfixes (C correctness):
9253     - Add a missing lock acquisition in the shutdown code of the control
9254       subsystem. Fixes bug 25675; bugfix on 0.2.7.3-rc. Found by
9255       Coverity; this is CID 1433643.
9257   o Minor bugfixes (circuit path selection):
9258     - Don't count path selection failures as circuit build failures.
9259       This change should eliminate cases where Tor blames its guard or
9260       the network for situations like insufficient microdescriptors
9261       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
9262       on 0.3.3.1-alpha.
9264   o Minor bugfixes (client):
9265     - Don't consider Tor running as a client if the ControlPort is open,
9266       but no actual client ports are open. Fixes bug 26062; bugfix
9267       on 0.2.9.4-alpha.
9269   o Minor bugfixes (code style):
9270     - Fixed multiple includes of transports.h in src/or/connection.c
9271       Fixes bug 25261; bugfix on 0.2.5.1-alpha.
9272     - Remove the unused variable n_possible from the function
9273       channel_get_for_extend(). Fixes bug 25645; bugfix on 0.2.4.4-alpha
9275   o Minor bugfixes (control interface):
9276     - Respond with more human-readable error messages to GETINFO exit-
9277       policy/* requests. Also, let controller know if an error is
9278       transient (response code 551) or not (response code 552). Fixes
9279       bug 25852; bugfix on 0.2.8.1-alpha.
9281   o Minor bugfixes (controller):
9282     - Make CIRC_BW event reflect the total of all data sent on a
9283       circuit, including padding and dropped cells. Also fix a mis-
9284       counting bug when STREAM_BW events were enabled. Fixes bug 25400;
9285       bugfix on 0.2.5.2-alpha.
9287   o Minor bugfixes (correctness, client):
9288     - Upon receiving a malformed connected cell, stop processing the cell
9289       immediately.  Previously we would mark the connection for close, but
9290       continue processing the cell as if the connection were open. Fixes bug
9291       26072; bugfix on 0.2.4.7-alpha.
9293   o Minor bugfixes (directory client):
9294     - When unverified-consensus is verified, rename it to cached-
9295       consenus. Fixes bug 4187; bugfix on 0.2.0.3-alpha.
9296     - Fixed launching a certificate fetch always during the scheduled
9297       periodic consensus fetch by fetching only in those cases when
9298       consensus are waiting for certs. Fixes bug 24740; bugfix
9299       on 0.2.9.1-alpha.
9301   o Minor bugfixes (documentation):
9302     - Stop saying in the manual that clients cache ipv4 dns answers from
9303       exit relays. We haven't used them since 0.2.6.3-alpha, and in
9304       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
9305       we forgot to say so in the man page. Fixes bug 26052; bugfix
9306       on 0.3.2.6-alpha.
9308   o Minor bugfixes (error reporting):
9309     - Improve tolerance for directory authorities with skewed clocks.
9310       Previously, an authority with a clock more than 60 seconds ahead
9311       could cause a client with a correct clock to warn that the
9312       client's clock was behind. Now the clocks of a majority of
9313       directory authorities have to be ahead of the client before this
9314       warning will occur. Fixes bug 25756; bugfix on 0.2.2.25-alpha.
9316   o Minor bugfixes (Linux seccomp2 sandbox):
9317     - Allow the nanosleep() system call, which glibc uses to implement
9318       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
9320   o Minor bugfixes (onion service):
9321     - Fix a memory leak when a v3 onion service is configured and gets a
9322       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
9323     - When parsing the descriptor signature, look for the token plus an
9324       extra white-space at the end. This is more correct but also will
9325       allow us to support new fields that might start with "signature".
9326       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
9328   o Minor bugfixes (path selection):
9329     - Only select relays when they have the descriptors we prefer to use
9330       for them. This change fixes a bug where we could select a relay
9331       because it had _some_ descriptor, but reject it later with a
9332       nonfatal assertion error because it didn't have the exact one we
9333       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
9335   o Minor bugfixes (portability):
9336     - Do not align mmap length, as it is not required by POSIX, and the
9337       getpagesize function is deprecated. Fixes bug 25399; bugfix
9338       on 0.1.1.23.
9340   o Minor bugfixes (portability, FreeBSD):
9341     - In have_enough_mem_for_dircache(), the variable DIRCACHE_MIN_MEM_MB
9342       does not stringify on FreeBSD, so we switch to tor_asprintf().
9343       Fixes bug 20887; bugfix on 0.2.8.1-alpha. Patch by Neel Chauhan.
9345   o Minor bugfixes (relay statistics):
9346     - When a relay is collecting internal statistics about how many
9347       create cell requests it has seen of each type, accurately count
9348       the requests from relays that temporarily fall out of the
9349       consensus. (To be extra conservative, we were already ignoring
9350       requests from clients in our counts, and we continue ignoring them
9351       here.) Fixes bug 24910; bugfix on 0.2.4.17-rc.
9353   o Minor bugfixes (relay, crash):
9354     - Avoid a crash when running with DirPort set but ORPort turned off.
9355       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
9357   o Minor bugfixes (restart-in-process):
9358     - When shutting down, Tor now clears all the flags in the control.c
9359       module. This should prevent a bug where authentication cookies are
9360       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
9362   o Minor bugfixes (testing):
9363     - When testing workqueue event-cancellation, make sure that we
9364       actually cancel an event, and that cancel each event with equal
9365       probability. (It was previously possible, though extremely
9366       unlikely, for our event-canceling test not to cancel any events.)
9367       Fixes bug 26008; bugfix on 0.2.6.3-alpha.
9368     - Repeat part of the test in test_client_pick_intro() a number of
9369       times, to give it consistent coverage. Fixes bug 25996; bugfix
9370       on 0.3.2.1-alpha.
9371     - Remove randomness from the hs_common/responsible_hsdirs test, so
9372       that it always takes the same path through the function it tests.
9373       Fixes bug 25997; bugfix on 0.3.2.1-alpha.
9374     - Change the behavior of the "channel/outbound" test so that it
9375       never causes a 10-second rollover for the EWMA circuitmux code.
9376       Previously, this behavior would happen randomly, and result in
9377       fluctuating test coverage. Fixes bug 25994; bugfix
9378       on 0.3.3.1-alpha.
9379     - Use X509_new() to allocate certificates that will be freed later
9380       with X509_free(). Previously, some parts of the unit tests had
9381       used tor_malloc_zero(), which is incorrect, and which caused test
9382       failures on Windows when they were built with extra hardening.
9383       Fixes bugs 25943 and 25944; bugfix on 0.2.8.1-alpha. Patch by
9384       Marcin Cieślak.
9385     - While running the circuit_timeout test, fix the PRNG to a
9386       deterministic AES stream, so that the test coverage from this test
9387       will itself be deterministic. Fixes bug 25995; bugfix
9388       on 0.2.2.2-alpha.
9390   o Minor bugfixes (vanguards):
9391     - Allow the last hop in a vanguard circuit to be the same as our
9392       first, to prevent the adversary from influencing guard node choice
9393       by choice of last hop. Also prevent the creation of A - B - A
9394       paths, or A - A paths, which are forbidden by relays. Fixes bug
9395       25870; bugfix on 0.3.3.1-alpha.
9397   o Code simplification and refactoring:
9398     - Remove duplicate code in parse_{c,s}method_line and bootstrap
9399       their functionalities into a single function. Fixes bug 6236;
9400       bugfix on 0.2.3.6-alpha.
9401     - We remove the PortForwarding and PortForwardingHelper options,
9402       related functions, and the port_forwarding tests. These options
9403       were used by the now-deprecated Vidalia to help ordinary users
9404       become Tor relays or bridges. Closes ticket 25409. Patch by
9405       Neel Chauhan.
9406     - In order to make the OR and dir checking function in router.c less
9407       confusing we renamed some functions and
9408       consider_testing_reachability() has been split into
9409       router_should_check_reachability() and
9410       router_do_reachability_checks(). Also we improved the documentation
9411       in some functions. Closes ticket 18918.
9412     - Initial work to isolate Libevent usage to a handful of modules in
9413       our codebase, to simplify our call structure, and so that we can
9414       more easily change event loops in the future if needed. Closes
9415       ticket 23750.
9416     - Introduce a function to call getsockname() and return tor_addr_t,
9417       to save a little complexity throughout the codebase. Closes
9418       ticket 18105.
9419     - Make hsdir_index in node_t a hsdir_index_t rather than a pointer
9420       as hsdir_index is always present. Also, we move hsdir_index_t into
9421       or.h. Closes ticket 23094. Patch by Neel Chauhan.
9422     - Merge functions used for describing nodes and suppress the
9423       functions that do not allocate memory for the output buffer
9424       string. NODE_DESC_BUF_LEN constant and format_node_description()
9425       function cannot be used externally from router.c module anymore.
9426       Closes ticket 25432. Patch by valentecaio.
9427     - Our main loop has been simplified so that all important operations
9428       happen inside events. Previously, some operations had to happen
9429       outside the event loop, to prevent infinite sequences of event
9430       activations. Closes ticket 25374.
9431     - Put a SHA1 public key digest in hs_service_intro_point_t, and use
9432       it in register_intro_circ() and service_intro_point_new(). This
9433       prevents the digest from being re-calculated each time. Closes
9434       ticket 23107. Patch by Neel Chauhan.
9435     - Refactor token-bucket implementations to use a common backend.
9436       Closes ticket 25766.
9437     - Remove extern declaration of stats_n_seconds_working variable from
9438       main, protecting its accesses with get_uptime() and reset_uptime()
9439       functions. Closes ticket 25081, patch by “valentecaio”.
9440     - Remove our previous logic for "cached gettimeofday()" -- our
9441       coarse monotonic timers are fast enough for this purpose, and far
9442       less error-prone. Implements part of ticket 25927.
9443     - Remove the return value for fascist_firewall_choose_address_base(),
9444       and sister functions such as fascist_firewall_choose_address_node()
9445       and fascist_firewall_choose_address_rs(). Also, while we're here,
9446       initialize the ap argument as leaving it uninitialized can pose a
9447       security hazard. Closes ticket 24734. Patch by Neel Chauhan.
9448     - Rename two fields of connection_t struct. timestamp_lastwritten is
9449       renamed to timestamp_last_write_allowed and timestamp_lastread is
9450       renamed to timestamp_last_read_allowed. Closes ticket 24714, patch
9451       by "valentecaio".
9452     - Since Tor requires C99, remove our old workaround code for libc
9453       implementations where free(NULL) doesn't work. Closes ticket 24484.
9454     - Use our standard rate-limiting code to deal with excessive
9455       libevent failures, rather than the hand-rolled logic we had
9456       before. Closes ticket 26016.
9457     - We remove the return value of node_get_prim_orport() and
9458       node_get_prim_dirport(), and introduce node_get_prim_orport() in
9459       node_ipv6_or_preferred() and node_ipv6_dir_preferred() in order to
9460       check for a null address. Closes ticket 23873. Patch by
9461       Neel Chauhan.
9462     - We switch to should_record_bridge_info() in
9463       geoip_note_client_seen() and options_need_geoip_info() instead of
9464       accessing the configuration values directly. Fixes bug 25290;
9465       bugfix on 0.2.1.6-alpha. Patch by Neel Chauhan.
9467   o Deprecated features:
9468     - As we are not recommending 0.2.5 anymore, we require relays that
9469       once had an ed25519 key associated with their RSA key to always
9470       have that key, instead of allowing them to drop back to a version
9471       that didn't support ed25519. This means they need to use a new RSA
9472       key if they want to downgrade to an older version of tor without
9473       ed25519. Closes ticket 20522.
9475   o Documentation:
9476     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
9477       ticket 25857. Patch from "CTassisF".
9479   o Removed features:
9480     - Directory authorities will no longer support voting according to
9481       any consensus method before consensus method 25. This keeps
9482       authorities compatible with all authorities running 0.2.9.8 and
9483       later, and does not break any clients or relays. Implements ticket
9484       24378 and proposal 290.
9485     - The PortForwarding and PortForwardingHelper features have been
9486       removed. The reasoning is, given that implementations of NAT
9487       traversal protocols within common consumer grade routers are
9488       frequently buggy, and that the target audience for a NAT punching
9489       feature is a perhaps less-technically-inclined relay operator,
9490       when the helper fails to setup traversal the problems are usually
9491       deep, ugly, and very router specific, making them horrendously
9492       impossible for technical support to reliable assist with, and thus
9493       resulting in frustration all around. Unfortunately, relay
9494       operators who would like to run relays behind NATs will need to
9495       become more familiar with the port forwarding configurations on
9496       their local router. Closes 25409.
9497     - The TestingEnableTbEmptyEvent option has been removed. It was used
9498       in testing simulations to measure how often connection buckets
9499       were emptied, in order to improve our scheduling, but it has not
9500       been actively used in years. Closes ticket 25760.
9501     - The old "round-robin" circuit multiplexer (circuitmux)
9502       implementation has been removed, along with a fairly large set of
9503       code that existed to support it. It has not been the default
9504       circuitmux since we introduced the "EWMA" circuitmux in 0.2.4.x,
9505       but it still required an unreasonable amount of memory and CPU.
9506       Closes ticket 25268.
9509 Changes in version 0.3.3.5-rc - 2018-04-15
9510   Tor 0.3.3.5-rc fixes various bugs in earlier versions of Tor,
9511   including some that could affect reliability or correctness.
9513   This is the first release candidate in the 0.3.3 series. If we find no
9514   new bugs or regression here, then the first stable 0.3.3 release will
9515   be nearly identical to this one.
9517   o Major bugfixes (security, protover, voting):
9518     - Revise Rust implementation of protover to use a more memory-
9519       efficient voting algorithm and corresponding data structures, thus
9520       avoiding a potential memory-based DoS attack where specially
9521       crafted protocol strings would expand to fill available memory.
9522       Fixes bug 24031; bugfix on 0.3.3.1-alpha.
9524   o Major bugfixes (performance, load balancing):
9525     - Directory authorities no longer vote in favor of the Guard flag
9526       for relays without directory support. Starting in Tor
9527       0.3.0.1-alpha, clients have been avoiding using such relays in the
9528       Guard position, leading to increasingly broken load balancing for
9529       the 5%-or-so of Guards that don't advertise directory support.
9530       Fixes bug 22310; bugfix on 0.3.0.6.
9532   o Minor feature (continuous integration):
9533     - Update the Travis CI configuration to use the stable Rust channel,
9534       now that we have decided to require that. Closes ticket 25714.
9536   o Minor features (config options):
9537     - Change the way the default value for MaxMemInQueues is calculated.
9538       We now use 40% of the hardware RAM if the system has 8 GB RAM or
9539       more. Otherwise we use the former value of 75%. Closes
9540       ticket 24782.
9542   o Minor features (geoip):
9543     - Update geoip and geoip6 to the April 3 2018 Maxmind GeoLite2
9544       Country database. Closes ticket 25718.
9546   o Minor bugfixes (client):
9547     - When using a listed relay as a bridge, and also using
9548       microdescriptors, and considering that relay as a non-bridge in a
9549       circuit, treat its microdescriptor as a valid source of
9550       information about that relay. This change should prevent a non-
9551       fatal assertion error. Fixes bug 25691; bugfix on 0.3.3.4-alpha.
9553   o Minor bugfixes (controller):
9554     - Restore the correct operation of the RESOLVE command, which had
9555       been broken since we added the ability to enable/disable DNS on
9556       specific listener ports. Fixes bug 25617; bugfix on 0.2.9.3-alpha.
9558   o Minor bugfixes (distribution, compilation, rust):
9559     - Build correctly when the rust dependencies submodule is loaded,
9560       but the TOR_RUST_DEPENDENCIES environment variable is not set.
9561       Fixes bug 25679; bugfix on 0.3.3.1-alpha.
9562     - Actually include all of our Rust source in our source
9563       distributions. (Previously, a few of the files were accidentally
9564       omitted.) Fixes bug 25732; bugfix on 0.3.3.2-alpha.
9566   o Minor bugfixes (documentation):
9567     - Document that the PerConnBW{Rate,Burst} options will fall back to
9568       their corresponding consensus parameters only if those parameters
9569       are set. Previously we had claimed that these values would always
9570       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
9571     - Revert a misformatting issue in the ExitPolicy documentation.
9572       Fixes bug 25582; bugfix on 0.3.3.1-alpha.
9574   o Minor bugfixes (exit relay DNS retries):
9575     - Re-attempt timed-out DNS queries 3 times before failure, since our
9576       timeout is 5 seconds for them, but clients wait 10-15. Also allow
9577       slightly more timeouts per resolver when an exit has multiple
9578       resolvers configured. Fixes bug 21394; bugfix on 0.3.1.9.
9580   o Minor bugfixes (onion services):
9581     - Re-instate counting the client HSDir fetch circuits against the
9582       MaxClientCircuitsPending rate limit. Fixes bug 24989; bugfix
9583       on 0.3.3.1-alpha.
9584     - Remove underscores from the _HSLayer{2,3}Nodes options. This
9585       expert-user configuration can now be enabled as HSLayer{2,3}Nodes.
9586       Fixes bug 25581; bugfix on 0.3.3.1-alpha
9588   o Code simplification and refactoring:
9589     - Move the list of default directory authorities to its own file.
9590       Closes ticket 24854. Patch by "beastr0".
9592   o Documentation (manpage, denial of service):
9593     - Provide more detail about the denial-of-service options, by
9594       listing each mitigation and explaining how they relate. Closes
9595       ticket 25248.
9598 Changes in version 0.3.3.4-alpha - 2018-03-29
9599   Tor 0.3.3.4-alpha includes various bugfixes for issues found during
9600   the alpha testing of earlier releases in its series. We are
9601   approaching a stable 0.3.3.4-alpha release: more testing is welcome!
9603   o New system requirements:
9604     - When built with Rust, Tor now depends on version 0.2.39 of the
9605       libc crate. Closes tickets 25310 and 25664.
9607   o Major bugfixes (relay, connection):
9608     - If we have failed to connect to a relay and received a connection
9609       refused, timeout, or similar error (at the TCP level), do not try
9610       that same address/port again for 60 seconds after the failure has
9611       occurred. Fixes bug 24767; bugfix on 0.0.6.
9613   o Minor features (geoip):
9614     - Update geoip and geoip6 to the March 8 2018 Maxmind GeoLite2
9615       Country database. Closes ticket 25469.
9617   o Minor features (log messages):
9618     - Improve log message in the out-of-memory handler to include
9619       information about memory usage from the different compression
9620       backends. Closes ticket 25372.
9622   o Minor features (sandbox):
9623     - Explicitly permit the poll() system call when the Linux
9624       seccomp2-based sandbox is enabled: apparently, some versions of
9625       libc use poll() when calling getpwnam(). Closes ticket 25313.
9627   o Minor bugfixes (C correctness):
9628     - Fix a very unlikely (impossible, we believe) null pointer
9629       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
9630       Coverity; this is CID 1430932.
9632   o Minor bugfixes (channel, client):
9633     - Better identify client connection when reporting to the geoip
9634       client cache. Fixes bug 24904; bugfix on 0.3.1.7.
9636   o Minor bugfixes (compilation):
9637     - Fix a C99 compliance issue in our configuration script that caused
9638       compilation issues when compiling Tor with certain versions of
9639       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
9641   o Minor bugfixes (controller, reliability):
9642     - Avoid a (nonfatal) assertion failure when extending a one-hop
9643       circuit from the controller to become a multihop circuit. Fixes
9644       bug 24903; bugfix on 0.2.5.2-alpha.
9646   o Major bugfixes (networking):
9647     - Tor will no longer reject IPv6 address strings from Tor Browser
9648       when they are passed as hostnames in SOCKS5 requests. Fixes bug
9649       25036, bugfix on Tor 0.3.1.2.
9651   o Minor bugfixes (networking):
9652     - string_is_valid_hostname() will not consider IP strings to be
9653       valid hostnames. Fixes bug 25055; bugfix on Tor 0.2.5.5.
9655   o Minor bugfixes (onion service v3):
9656     - Avoid an assertion failure when the next onion service
9657       descriptor rotation type is out of sync with the consensus's
9658       valid-after time. Instead, log a warning message with extra
9659       information, so we can better hunt down the cause of this
9660       assertion. Fixes bug 25306; bugfix on 0.3.2.1-alpha.
9662   o Minor bugfixes (testing):
9663     - Avoid intermittent test failures due to a test that had relied on
9664       onion service introduction point creation finishing within 5
9665       seconds of real clock time. Fixes bug 25450; bugfix
9666       on 0.3.1.3-alpha.
9667     - Rust crates are now automatically detected and tested. Previously,
9668       some crates were not tested by `make test-rust` due to a static
9669       string in the `src/test/test_rust.sh` script specifying which
9670       crates to test. Fixes bug 25560; bugfix on 0.3.3.3-alpha.
9672   o Minor bugfixes (testing, benchmarks):
9673     - Fix a crash when running benchmark tests on win32 systems. The
9674       crash was due to a mutex that wasn't initialized before logging
9675       and options were initialized. Fixes bug 25479; bugfix
9676       on 0.3.3.3-alpha.
9678   o Minor bugfixes (warnings, ipv6):
9679     - Avoid a bug warning that could occur when trying to connect to a
9680       relay over IPv6. This warning would occur on a Tor instance that
9681       downloads router descriptors, but prefers to use microdescriptors.
9682       Fixes bug 25213; bugfix on 0.3.3.1-alpha.
9684   o Code simplification and refactoring:
9685     - Remove the old (deterministic) directory retry logic entirely:
9686       We've used exponential backoff exclusively for some time. Closes
9687       ticket 23814.
9689   o Documentation:
9690     - Improved the documentation of AccountingStart parameter. Closes
9691       ticket 23635.
9692     - Update the documentation for "Log" to include the current list of
9693       logging domains. Closes ticket 25378.
9696 Changes in version 0.3.1.10 - 2018-03-03
9697   Tor 0.3.1.10 backports a number of bugfixes, including important fixes for
9698   security issues.
9700   It includes an important security fix for a remote crash attack
9701   against directory authorities, tracked as TROVE-2018-001.
9703   This release also backports our new system for improved resistance to
9704   denial-of-service attacks against relays.
9706   This release also fixes several minor bugs and annoyances from
9707   earlier releases.
9709   All directory authorities should upgrade to one of the versions
9710   released today. Relays running 0.3.1.x may wish to update to one of
9711   the versions released today, for the DoS mitigations.
9713   Please note: according to our release calendar, Tor 0.3.1 will no
9714   longer be supported after 1 July 2018. If you will be running Tor
9715   after that date, you should make sure to plan to upgrade to the latest
9716   stable version, or downgrade to 0.2.9 (which will receive long-term
9717   support).
9719   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
9720     - Fix a protocol-list handling bug that could be used to remotely crash
9721       directory authorities with a null-pointer exception. Fixes bug 25074;
9722       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
9723       CVE-2018-0490.
9725   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
9726     - Give relays some defenses against the recent network overload. We
9727       start with three defenses (default parameters in parentheses).
9728       First: if a single client address makes too many concurrent
9729       connections (>100), hang up on further connections. Second: if a
9730       single client address makes circuits too quickly (more than 3 per
9731       second, with an allowed burst of 90) while also having too many
9732       connections open (3), refuse new create cells for the next while
9733       (1-2 hours). Third: if a client asks to establish a rendezvous
9734       point to you directly, ignore the request. These defenses can be
9735       manually controlled by new torrc options, but relays will also
9736       take guidance from consensus parameters, so there's no need to
9737       configure anything manually. Implements ticket 24902.
9739   o Minor features (linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
9740     - Update the sandbox rules so that they should now work correctly
9741       with Glibc 2.26. Closes ticket 24315.
9743   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
9744     - Fix an "off by 2" error in counting rendezvous failures on the
9745       onion service side. While we thought we would stop the rendezvous
9746       attempt after one failed circuit, we were actually making three
9747       circuit attempts before giving up. Now switch to a default of 2,
9748       and allow the consensus parameter "hs_service_max_rdv_failures" to
9749       override. Fixes bug 24895; bugfix on 0.0.6.
9751   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
9752     - Add Link protocol version 5 to the supported protocols list. Fixes
9753       bug 25070; bugfix on 0.3.1.1-alpha.
9755   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
9756     - Fix a set of false positives where relays would consider
9757       connections to other relays as being client-only connections (and
9758       thus e.g. deserving different link padding schemes) if those
9759       relays fell out of the consensus briefly. Now we look only at the
9760       initial handshake and whether the connection authenticated as a
9761       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
9763   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
9764     - Make our OOM handler aware of the geoip client history cache so it
9765       doesn't fill up the memory. This check is important for IPv6 and
9766       our DoS mitigation subsystem. Closes ticket 25122.
9768   o Minor feature (relay statistics, backport from 0.3.2.6-alpha):
9769     - Change relay bandwidth reporting stats interval from 4 hours to 24
9770       hours in order to reduce the efficiency of guard discovery
9771       attacks. Fixes ticket 23856.
9773   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
9774     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
9775       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
9776       since they neither disabled TLS 1.3 nor enabled any of the
9777       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
9778       Closes ticket 24978.
9780   o Minor features (fallback directory mirrors, backport from 0.3.2.9):
9781     - The fallback directory list has been re-generated based on the
9782       current status of the network. Tor uses fallback directories to
9783       bootstrap when it doesn't yet have up-to-date directory
9784       information. Closes ticket 24801.
9785     - Make the default DirAuthorityFallbackRate 0.1, so that clients
9786       prefer to bootstrap from fallback directory mirrors. This is a
9787       follow-up to 24679, which removed weights from the default
9788       fallbacks. Implements ticket 24681.
9790   o Minor features (geoip):
9791     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
9792       Country database.
9794   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
9795     - Use the actual observed address of an incoming relay connection,
9796       not the canonical address of the relay from its descriptor, when
9797       making decisions about how to handle the incoming connection.
9798       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
9800   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
9801     - Directory authorities, when refusing a descriptor from a rejected
9802       relay, now explicitly tell the relay (in its logs) to set a valid
9803       ContactInfo address and contact the bad-relays@ mailing list.
9804       Fixes bug 25170; bugfix on 0.2.9.1.
9806   o Minor bugfixes (address selection, backport from 0.3.2.9):
9807     - When the fascist_firewall_choose_address_ functions don't find a
9808       reachable address, set the returned address to the null address
9809       and port. This is a precautionary measure, because some callers do
9810       not check the return value. Fixes bug 24736; bugfix
9811       on 0.2.8.2-alpha.
9813   o Major bugfixes (bootstrapping, backport from 0.3.2.5-alpha):
9814     - Fetch descriptors aggressively whenever we lack enough to build
9815       circuits, regardless of how many descriptors we are missing.
9816       Previously, we would delay launching the fetch when we had fewer
9817       than 15 missing descriptors, even if some of those descriptors
9818       were blocking circuits from building. Fixes bug 23985; bugfix on
9819       0.1.1.11-alpha. The effects of this bug became worse in
9820       0.3.0.3-alpha, when we began treating missing descriptors from our
9821       primary guards as a reason to delay circuits.
9822     - Don't try fetching microdescriptors from relays that have failed
9823       to deliver them in the past. Fixes bug 23817; bugfix
9824       on 0.3.0.1-alpha.
9826   o Minor bugfixes (compilation, backport from 0.3.2.7-rc):
9827     - Fix a signed/unsigned comparison warning introduced by our fix to
9828       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
9830   o Minor bugfixes (control port, linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
9831     - Avoid a crash when attempting to use the seccomp2 sandbox together
9832       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
9833       on 0.2.5.1-alpha.
9835   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
9836     - Fix a possible crash on malformed consensus. If a consensus had
9837       contained an unparseable protocol line, it could have made clients
9838       and relays crash with a null-pointer exception. To exploit this
9839       issue, however, an attacker would need to be able to subvert the
9840       directory authority system. Fixes bug 25251; bugfix on
9841       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
9843   o Minor bugfixes (directory cache, backport from 0.3.2.5-alpha):
9844     - Recover better from empty or corrupt files in the consensus cache
9845       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
9846     - When a consensus diff calculation is only partially successful,
9847       only record the successful parts as having succeeded. Partial
9848       success can happen if (for example) one compression method fails
9849       but the others succeed. Previously we misrecorded all the
9850       calculations as having succeeded, which would later cause a
9851       nonfatal assertion failure. Fixes bug 24086; bugfix
9852       on 0.3.1.1-alpha.
9854   o Minor bugfixes (entry guards, backport from 0.3.2.3-alpha):
9855     - Tor now updates its guard state when it reads a consensus
9856       regardless of whether it's missing descriptors. That makes tor use
9857       its primary guards to fetch descriptors in some edge cases where
9858       it would previously have used fallback directories. Fixes bug
9859       23862; bugfix on 0.3.0.1-alpha.
9861   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
9862     - Don't treat inability to store a cached consensus object as a bug:
9863       it can happen normally when we are out of disk space. Fixes bug
9864       24859; bugfix on 0.3.1.1-alpha.
9866   o Minor bugfixes (memory usage, backport from 0.3.2.8-rc):
9867     - When queuing DESTROY cells on a channel, only queue the circuit-id
9868       and reason fields: not the entire 514-byte cell. This fix should
9869       help mitigate any bugs or attacks that fill up these queues, and
9870       free more RAM for other uses. Fixes bug 24666; bugfix
9871       on 0.2.5.1-alpha.
9873   o Minor bugfixes (network layer, backport from 0.3.2.5-alpha):
9874     - When closing a connection via close_connection_immediately(), we
9875       mark it as "not blocked on bandwidth", to prevent later calls from
9876       trying to unblock it, and give it permission to read. This fixes a
9877       backtrace warning that can happen on relays under various
9878       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
9880   o Minor bugfixes (path selection, backport from 0.3.2.4-alpha):
9881     - When selecting relays by bandwidth, avoid a rounding error that
9882       could sometimes cause load to be imbalanced incorrectly.
9883       Previously, we would always round upwards; now, we round towards
9884       the nearest integer. This had the biggest effect when a relay's
9885       weight adjustments should have given it weight 0, but it got
9886       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
9887     - When calculating the fraction of nodes that have descriptors, and
9888       all nodes in the network have zero bandwidths, count the number of
9889       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
9890     - Actually log the total bandwidth in compute_weighted_bandwidths().
9891       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
9893   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
9894     - Improve the performance of our consensus-diff application code
9895       when Tor is built with the --enable-fragile-hardening option set.
9896       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
9898   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
9899     - Don't exit the Tor process if setrlimit() fails to change the file
9900       limit (which can happen sometimes on some versions of OSX). Fixes
9901       bug 21074; bugfix on 0.0.9pre5.
9903   o Minor bugfixes (portability, msvc, backport from 0.3.2.9):
9904     - Fix a bug in the bit-counting parts of our timing-wheel code on
9905       MSVC. (Note that MSVC is still not a supported build platform, due
9906       to cyptographic timing channel risks.) Fixes bug 24633; bugfix
9907       on 0.2.9.1-alpha.
9909   o Minor bugfixes (relay, partial backport):
9910     - Make the internal channel_is_client() function look at what sort
9911       of connection handshake the other side used, rather than whether
9912       the other side ever sent a create_fast cell to us. Backports part
9913       of the fixes from bugs 22805 and 24898.
9915   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
9916     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
9917       0.2.9.4-alpha.
9918     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
9919       bugfix on 0.2.9.4-alpha.
9921   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
9922     - Update the "rust dependencies" submodule to be a project-level
9923       repository, rather than a user repository. Closes ticket 25323.
9926 Changes in version 0.2.9.15 - 2018-03-03
9927   Tor 0.2.9.15 backports important security and stability bugfixes from
9928   later Tor releases.
9930   It includes an important security fix for a remote crash attack
9931   against directory authorities, tracked as TROVE-2018-001.
9933   This release also backports our new system for improved resistance to
9934   denial-of-service attacks against relays.
9936   This release also fixes several minor bugs and annoyances from
9937   earlier releases.
9939   All directory authorities should upgrade to one of the versions
9940   released today. Relays running 0.2.9.x may wish to update to one of
9941   the versions released today, for the DoS mitigations.
9943   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
9944     - Fix a protocol-list handling bug that could be used to remotely crash
9945       directory authorities with a null-pointer exception. Fixes bug 25074;
9946       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
9947       CVE-2018-0490.
9949   o Major features (denial-of-service mitigation):
9950     - Give relays some defenses against the recent network overload. We
9951       start with three defenses (default parameters in parentheses).
9952       First: if a single client address makes too many concurrent
9953       connections (>100), hang up on further connections. Second: if a
9954       single client address makes circuits too quickly (more than 3 per
9955       second, with an allowed burst of 90) while also having too many
9956       connections open (3), refuse new create cells for the next while
9957       (1-2 hours). Third: if a client asks to establish a rendezvous
9958       point to you directly, ignore the request. These defenses can be
9959       manually controlled by new torrc options, but relays will also
9960       take guidance from consensus parameters, so there's no need to
9961       configure anything manually. Implements ticket 24902.
9963   o Major bugfixes (bootstrapping):
9964     - Fetch descriptors aggressively whenever we lack enough to build
9965       circuits, regardless of how many descriptors we are missing.
9966       Previously, we would delay launching the fetch when we had fewer
9967       than 15 missing descriptors, even if some of those descriptors
9968       were blocking circuits from building. Fixes bug 23985; bugfix on
9969       0.1.1.11-alpha. The effects of this bug became worse in
9970       0.3.0.3-alpha, when we began treating missing descriptors from our
9971       primary guards as a reason to delay circuits.
9973   o Major bugfixes (onion services, retry behavior):
9974     - Fix an "off by 2" error in counting rendezvous failures on the
9975       onion service side. While we thought we would stop the rendezvous
9976       attempt after one failed circuit, we were actually making three
9977       circuit attempts before giving up. Now switch to a default of 2,
9978       and allow the consensus parameter "hs_service_max_rdv_failures" to
9979       override. Fixes bug 24895; bugfix on 0.0.6.
9981   o Minor feature (relay statistics):
9982     - Change relay bandwidth reporting stats interval from 4 hours to 24
9983       hours in order to reduce the efficiency of guard discovery
9984       attacks. Fixes ticket 23856.
9986   o Minor features (compatibility, OpenSSL):
9987     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
9988       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
9989       since they neither disabled TLS 1.3 nor enabled any of the
9990       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
9991       Closes ticket 24978.
9993   o Minor features (denial-of-service avoidance):
9994     - Make our OOM handler aware of the geoip client history cache so it
9995       doesn't fill up the memory. This check is important for IPv6 and
9996       our DoS mitigation subsystem. Closes ticket 25122.
9998   o Minor features (fallback directory mirrors):
9999     - The fallback directory list has been re-generated based on the
10000       current status of the network. Tor uses fallback directories to
10001       bootstrap when it doesn't yet have up-to-date directory
10002       information. Closes ticket 24801.
10003     - Make the default DirAuthorityFallbackRate 0.1, so that clients
10004       prefer to bootstrap from fallback directory mirrors. This is a
10005       follow-up to 24679, which removed weights from the default
10006       fallbacks. Implements ticket 24681.
10008   o Minor features (geoip):
10009     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10010       Country database.
10012   o Minor features (linux seccomp2 sandbox):
10013     - Update the sandbox rules so that they should now work correctly
10014       with Glibc 2.26. Closes ticket 24315.
10016   o Minor bugfix (channel connection):
10017     - Use the actual observed address of an incoming relay connection,
10018       not the canonical address of the relay from its descriptor, when
10019       making decisions about how to handle the incoming connection.
10020       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10022   o Minor bugfix (directory authority):
10023     - Directory authorities, when refusing a descriptor from a rejected
10024       relay, now explicitly tell the relay (in its logs) to set a valid
10025       ContactInfo address and contact the bad-relays@ mailing list.
10026       Fixes bug 25170; bugfix on 0.2.9.1.
10028   o Minor bugfixes (address selection):
10029     - When the fascist_firewall_choose_address_ functions don't find a
10030       reachable address, set the returned address to the null address
10031       and port. This is a precautionary measure, because some callers do
10032       not check the return value. Fixes bug 24736; bugfix
10033       on 0.2.8.2-alpha.
10035   o Minor bugfixes (compilation):
10036     - Fix a signed/unsigned comparison warning introduced by our fix to
10037       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
10039   o Minor bugfixes (control port, linux seccomp2 sandbox):
10040     - Avoid a crash when attempting to use the seccomp2 sandbox together
10041       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
10042       on 0.2.5.1-alpha.
10044   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
10045     - Fix a possible crash on malformed consensus. If a consensus had
10046       contained an unparseable protocol line, it could have made clients
10047       and relays crash with a null-pointer exception. To exploit this
10048       issue, however, an attacker would need to be able to subvert the
10049       directory authority system. Fixes bug 25251; bugfix on
10050       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10052   o Minor bugfixes (memory usage):
10053     - When queuing DESTROY cells on a channel, only queue the circuit-id
10054       and reason fields: not the entire 514-byte cell. This fix should
10055       help mitigate any bugs or attacks that fill up these queues, and
10056       free more RAM for other uses. Fixes bug 24666; bugfix
10057       on 0.2.5.1-alpha.
10059   o Minor bugfixes (network layer):
10060     - When closing a connection via close_connection_immediately(), we
10061       mark it as "not blocked on bandwidth", to prevent later calls from
10062       trying to unblock it, and give it permission to read. This fixes a
10063       backtrace warning that can happen on relays under various
10064       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
10066   o Minor bugfixes (OSX):
10067     - Don't exit the Tor process if setrlimit() fails to change the file
10068       limit (which can happen sometimes on some versions of OSX). Fixes
10069       bug 21074; bugfix on 0.0.9pre5.
10071   o Minor bugfixes (path selection):
10072     - When selecting relays by bandwidth, avoid a rounding error that
10073       could sometimes cause load to be imbalanced incorrectly.
10074       Previously, we would always round upwards; now, we round towards
10075       the nearest integer. This had the biggest effect when a relay's
10076       weight adjustments should have given it weight 0, but it got
10077       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
10078     - When calculating the fraction of nodes that have descriptors, and
10079       all nodes in the network have zero bandwidths, count the number of
10080       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
10081     - Actually log the total bandwidth in compute_weighted_bandwidths().
10082       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
10084   o Minor bugfixes (portability, msvc):
10085     - Fix a bug in the bit-counting parts of our timing-wheel code on
10086       MSVC. (Note that MSVC is still not a supported build platform, due
10087       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
10088       on 0.2.9.1-alpha.
10090   o Minor bugfixes (relay):
10091     - Make the internal channel_is_client() function look at what sort
10092       of connection handshake the other side used, rather than whether
10093       the other side ever sent a create_fast cell to us. Backports part
10094       of the fixes from bugs 22805 and 24898.
10096   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
10097     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10098       0.2.9.4-alpha.
10099     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10100       bugfix on 0.2.9.4-alpha.
10103 Changes in version 0.3.2.10 - 2018-03-03
10104   Tor 0.3.2.10 is the second stable release in the 0.3.2 series. It
10105   backports a number of bugfixes, including important fixes for security
10106   issues.
10108   It includes an important security fix for a remote crash attack
10109   against directory authorities, tracked as TROVE-2018-001.
10111   Additionally, it backports a fix for a bug whose severity we have
10112   upgraded: Bug 24700, which was fixed in 0.3.3.2-alpha, can be remotely
10113   triggered in order to crash relays with a use-after-free pattern. As
10114   such, we are now tracking that bug as TROVE-2018-002 and
10115   CVE-2018-0491, and backporting it to earlier releases. This bug
10116   affected versions 0.3.2.1-alpha through 0.3.2.9, as well as version
10117   0.3.3.1-alpha.
10119   This release also backports our new system for improved resistance to
10120   denial-of-service attacks against relays.
10122   This release also fixes several minor bugs and annoyances from
10123   earlier releases.
10125   Relays running 0.3.2.x SHOULD upgrade to one of the versions released
10126   today, for the fix to TROVE-2018-002. Directory authorities should
10127   also upgrade. (Relays on earlier versions might want to update too for
10128   the DoS mitigations.)
10130   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
10131     - Fix a protocol-list handling bug that could be used to remotely crash
10132       directory authorities with a null-pointer exception. Fixes bug 25074;
10133       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10134       CVE-2018-0490.
10136   o Major bugfixes (scheduler, KIST, denial-of-service, backport from 0.3.3.2-alpha):
10137     - Avoid adding the same channel twice in the KIST scheduler pending
10138       list, which could lead to remote denial-of-service use-after-free
10139       attacks against relays. Fixes bug 24700; bugfix on 0.3.2.1-alpha.
10141   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
10142     - Give relays some defenses against the recent network overload. We
10143       start with three defenses (default parameters in parentheses).
10144       First: if a single client address makes too many concurrent
10145       connections (>100), hang up on further connections. Second: if a
10146       single client address makes circuits too quickly (more than 3 per
10147       second, with an allowed burst of 90) while also having too many
10148       connections open (3), refuse new create cells for the next while
10149       (1-2 hours). Third: if a client asks to establish a rendezvous
10150       point to you directly, ignore the request. These defenses can be
10151       manually controlled by new torrc options, but relays will also
10152       take guidance from consensus parameters, so there's no need to
10153       configure anything manually. Implements ticket 24902.
10155   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
10156     - Fix an "off by 2" error in counting rendezvous failures on the
10157       onion service side. While we thought we would stop the rendezvous
10158       attempt after one failed circuit, we were actually making three
10159       circuit attempts before giving up. Now switch to a default of 2,
10160       and allow the consensus parameter "hs_service_max_rdv_failures" to
10161       override. Fixes bug 24895; bugfix on 0.0.6.
10162     - New-style (v3) onion services now obey the "max rendezvous circuit
10163       attempts" logic. Previously they would make as many rendezvous
10164       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
10165       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
10167   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
10168     - Add Link protocol version 5 to the supported protocols list. Fixes
10169       bug 25070; bugfix on 0.3.1.1-alpha.
10171   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
10172     - Fix a set of false positives where relays would consider
10173       connections to other relays as being client-only connections (and
10174       thus e.g. deserving different link padding schemes) if those
10175       relays fell out of the consensus briefly. Now we look only at the
10176       initial handshake and whether the connection authenticated as a
10177       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
10179   o Major bugfixes (scheduler, consensus, backport from 0.3.3.2-alpha):
10180     - The scheduler subsystem was failing to promptly notice changes in
10181       consensus parameters, making it harder to switch schedulers
10182       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
10184   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
10185     - Make our OOM handler aware of the geoip client history cache so it
10186       doesn't fill up the memory. This check is important for IPv6 and
10187       our DoS mitigation subsystem. Closes ticket 25122.
10189   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
10190     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10191       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10192       since they neither disabled TLS 1.3 nor enabled any of the
10193       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10194       Closes ticket 24978.
10196   o Minor features (geoip):
10197     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10198       Country database.
10200   o Minor features (logging, diagnostic, backport from 0.3.3.2-alpha):
10201     - When logging a failure to create an onion service's descriptor,
10202       also log what the problem with the descriptor was. Diagnostic
10203       for ticket 24972.
10205   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
10206     - Use the actual observed address of an incoming relay connection,
10207       not the canonical address of the relay from its descriptor, when
10208       making decisions about how to handle the incoming connection.
10209       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10211   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
10212     - Fix a possible crash on malformed consensus. If a consensus had
10213       contained an unparseable protocol line, it could have made clients
10214       and relays crash with a null-pointer exception. To exploit this
10215       issue, however, an attacker would need to be able to subvert the
10216       directory authority system. Fixes bug 25251; bugfix on
10217       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10219   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
10220     - Directory authorities, when refusing a descriptor from a rejected
10221       relay, now explicitly tell the relay (in its logs) to set a valid
10222       ContactInfo address and contact the bad-relays@ mailing list.
10223       Fixes bug 25170; bugfix on 0.2.9.1.
10225   o Minor bugfixes (build, rust, backport from 0.3.3.1-alpha):
10226     - When building with Rust on OSX, link against libresolv, to work
10227       around the issue at https://github.com/rust-lang/rust/issues/46797.
10228       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
10230   o Minor bugfixes (onion services, backport from 0.3.3.2-alpha):
10231     - Remove a BUG() statement when a client fetches an onion descriptor
10232       that has a lower revision counter than the one in its cache. This
10233       can happen in normal circumstances due to HSDir desync. Fixes bug
10234       24976; bugfix on 0.3.2.1-alpha.
10236   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
10237     - Don't treat inability to store a cached consensus object as a bug:
10238       it can happen normally when we are out of disk space. Fixes bug
10239       24859; bugfix on 0.3.1.1-alpha.
10241   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
10242     - Improve the performance of our consensus-diff application code
10243       when Tor is built with the --enable-fragile-hardening option set.
10244       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
10246   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
10247     - Don't exit the Tor process if setrlimit() fails to change the file
10248       limit (which can happen sometimes on some versions of OSX). Fixes
10249       bug 21074; bugfix on 0.0.9pre5.
10251   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
10252     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10253       0.2.9.4-alpha.
10254     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10255       bugfix on 0.2.9.4-alpha.
10257   o Minor bugfixes (testing, backport from 0.3.3.1-alpha):
10258     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
10259       25005; bugfix on 0.3.2.7-rc.
10261   o Minor bugfixes (v3 onion services, backport from 0.3.3.2-alpha):
10262     - Look at the "HSRend" protocol version, not the "HSDir" protocol
10263       version, when deciding whether a consensus entry can support the
10264       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
10265       bugfix on 0.3.2.1-alpha.
10267   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
10268     - Update the "rust dependencies" submodule to be a project-level
10269       repository, rather than a user repository. Closes ticket 25323.
10271   o Documentation (backport from 0.3.3.1-alpha)
10272     - Document that operators who run more than one relay or bridge are
10273       expected to set MyFamily and ContactInfo correctly. Closes
10274       ticket 24526.
10277 Changes in version 0.3.3.3-alpha - 2018-03-03
10278   Tor 0.3.3.3-alpha is the third alpha release for the 0.3.3.x series.
10279   It includes an important security fix for a remote crash attack
10280   against directory authorities tracked as TROVE-2018-001.
10282   Additionally, with this release, we are upgrading the severity of a
10283   bug fixed in 0.3.3.2-alpha. Bug 24700, which was fixed in
10284   0.3.3.2-alpha, can be remotely triggered in order to crash relays with
10285   a use-after-free pattern. As such, we are now tracking that bug as
10286   TROVE-2018-002 and CVE-2018-0491. This bug affected versions
10287   0.3.2.1-alpha through 0.3.2.9, as well as 0.3.3.1-alpha.
10289   This release also fixes several minor bugs and annoyances from
10290   earlier releases.
10292   Relays running 0.3.2.x should upgrade to one of the versions released
10293   today, for the fix to TROVE-2018-002. Directory authorities should
10294   also upgrade. (Relays on earlier versions might want to update too for
10295   the DoS mitigations.)
10297   o Major bugfixes (denial-of-service, directory authority):
10298     - Fix a protocol-list handling bug that could be used to remotely crash
10299       directory authorities with a null-pointer exception. Fixes bug 25074;
10300       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10301       CVE-2018-0490.
10303   o Minor features (compatibility, OpenSSL):
10304     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10305       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10306       since they neither disabled TLS 1.3 nor enabled any of the
10307       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10308       Closes ticket 24978.
10310   o Minor features (logging):
10311     - Clarify the log messages produced when getrandom() or a related
10312       entropy-generation mechanism gives an error. Closes ticket 25120.
10314   o Minor features (testing):
10315     - Add a "make test-rust" target to run the rust tests only. Closes
10316       ticket 25071.
10318   o Minor bugfixes (denial-of-service):
10319     - Fix a possible crash on malformed consensus. If a consensus had
10320       contained an unparseable protocol line, it could have made clients
10321       and relays crash with a null-pointer exception. To exploit this
10322       issue, however, an attacker would need to be able to subvert the
10323       directory authority system. Fixes bug 25251; bugfix on
10324       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10326   o Minor bugfixes (DoS mitigation):
10327     - Add extra safety checks when refilling the circuit creation bucket
10328       to ensure we never set a value above the allowed maximum burst.
10329       Fixes bug 25202; bugfix on 0.3.3.2-alpha.
10330     - When a new consensus arrives, don't update our DoS-mitigation
10331       parameters if we aren't a public relay. Fixes bug 25223; bugfix
10332       on 0.3.3.2-alpha.
10334   o Minor bugfixes (man page, SocksPort):
10335     - Remove dead code from the old "SocksSocket" option, and rename
10336       SocksSocketsGroupWritable to UnixSocksGroupWritable. The old option
10337       still works, but is deprecated. Fixes bug 24343; bugfix on 0.2.6.3.
10339   o Minor bugfixes (performance):
10340     - Reduce the number of circuits that will be opened at once during
10341       the circuit build timeout phase. This is done by increasing the
10342       idle timeout to 3 minutes, and lowering the maximum number of
10343       concurrent learning circuits to 10. Fixes bug 24769; bugfix
10344       on 0.3.1.1-alpha.
10346   o Minor bugfixes (spec conformance):
10347     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10348       0.2.9.4-alpha.
10349     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10350       bugfix on 0.2.9.4-alpha.
10352   o Minor bugfixes (spec conformance, rust):
10353     - Resolve a denial-of-service issue caused by an infinite loop in
10354       the rust protover code. Fixes bug 25250, bugfix on 0.3.3.1-alpha.
10355       Also tracked as TROVE-2018-003.
10357   o Code simplification and refactoring:
10358     - Update the "rust dependencies" submodule to be a project-level
10359       repository, rather than a user repository. Closes ticket 25323.
10362 Changes in version 0.3.3.2-alpha - 2018-02-10
10363   Tor 0.3.3.2-alpha is the second alpha in the 0.3.3.x series. It
10364   introduces a mechanism to handle the high loads that many relay
10365   operators have been reporting recently. It also fixes several bugs in
10366   older releases. If this new code proves reliable, we plan to backport
10367   it to older supported release series.
10369   o Major features (denial-of-service mitigation):
10370     - Give relays some defenses against the recent network overload. We
10371       start with three defenses (default parameters in parentheses).
10372       First: if a single client address makes too many concurrent
10373       connections (>100), hang up on further connections. Second: if a
10374       single client address makes circuits too quickly (more than 3 per
10375       second, with an allowed burst of 90) while also having too many
10376       connections open (3), refuse new create cells for the next while
10377       (1-2 hours). Third: if a client asks to establish a rendezvous
10378       point to you directly, ignore the request. These defenses can be
10379       manually controlled by new torrc options, but relays will also
10380       take guidance from consensus parameters, so there's no need to
10381       configure anything manually. Implements ticket 24902.
10383   o Major bugfixes (netflow padding):
10384     - Stop adding unneeded channel padding right after we finish
10385       flushing to a connection that has been trying to flush for many
10386       seconds. Instead, treat all partial or complete flushes as
10387       activity on the channel, which will defer the time until we need
10388       to add padding. This fix should resolve confusing and scary log
10389       messages like "Channel padding timeout scheduled 221453ms in the
10390       past." Fixes bug 22212; bugfix on 0.3.1.1-alpha.
10392   o Major bugfixes (protocol versions):
10393     - Add Link protocol version 5 to the supported protocols list. Fixes
10394       bug 25070; bugfix on 0.3.1.1-alpha.
10396   o Major bugfixes (scheduler, consensus):
10397     - The scheduler subsystem was failing to promptly notice changes in
10398       consensus parameters, making it harder to switch schedulers
10399       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
10401   o Minor features (denial-of-service avoidance):
10402     - Make our OOM handler aware of the geoip client history cache so it
10403       doesn't fill up the memory. This check is important for IPv6 and
10404       our DoS mitigation subsystem. Closes ticket 25122.
10406   o Minor features (directory authority):
10407     - When directory authorities are unable to add signatures to a
10408       pending consensus, log the reason why. Closes ticket 24849.
10410   o Minor features (geoip):
10411     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10412       Country database.
10414   o Minor features (logging, diagnostic):
10415     - When logging a failure to create an onion service's descriptor,
10416       also log what the problem with the descriptor was. Diagnostic for
10417       ticket 24972.
10419   o Minor bugfix (channel connection):
10420     - Use the actual observed address of an incoming relay connection,
10421       not the canonical address of the relay from its descriptor, when
10422       making decisions about how to handle the incoming connection.
10423       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10425   o Minor bugfix (directory authority):
10426     - Directory authorities, when refusing a descriptor from a rejected
10427       relay, now explicitly tell the relay (in its logs) to set a valid
10428       ContactInfo address and contact the bad-relays@ mailing list.
10429       Fixes bug 25170; bugfix on 0.2.9.1.
10431   o Minor bugfixes (all versions of Tor):
10432     - Use the "misspell" tool to detect and fix typos throughout the
10433       source code. Fixes bug 23650; bugfix on various versions of Tor.
10434       Patch from Deepesh Pathak.
10436   o Minor bugfixes (circuit, cannibalization):
10437     - Don't cannibalize preemptively-built circuits if we no longer
10438       recognize their first hop. This situation can happen if our Guard
10439       relay went off the consensus after the circuit was created. Fixes
10440       bug 24469; bugfix on 0.0.6.
10442   o Minor bugfixes (correctness):
10443     - Remove a nonworking, unnecessary check to see whether a circuit
10444       hop's identity digest was set when the circuit failed. Fixes bug
10445       24927; bugfix on 0.2.4.4-alpha.
10447   o Minor bugfixes (logging):
10448     - Don't treat inability to store a cached consensus object as a bug:
10449       it can happen normally when we are out of disk space. Fixes bug
10450       24859; bugfix on 0.3.1.1-alpha.
10451     - Fix a (mostly harmless) race condition when invoking
10452       LOG_PROTOCOL_WARN message from a subthread while the torrc options
10453       are changing. Fixes bug 23954; bugfix on 0.1.1.9-alpha.
10455   o Minor bugfixes (onion services):
10456     - Remove a BUG() statement when a client fetches an onion descriptor
10457       that has a lower revision counter than the one in its cache. This
10458       can happen in normal circumstances due to HSDir desync. Fixes bug
10459       24976; bugfix on 0.3.2.1-alpha.
10460     - If we are configured to offer a single onion service, don't log
10461       long-term established one hop rendezvous points in the heartbeat.
10462       Fixes bug 25116; bugfix on 0.2.9.6-rc.
10464   o Minor bugfixes (performance):
10465     - Avoid calling protocol_list_supports_protocol() from inside tight
10466       loops when running with cached routerinfo_t objects. Instead,
10467       summarize the relevant protocols as flags in the routerinfo_t, as
10468       we do for routerstatus_t objects. This change simplifies our code
10469       a little, and saves a large amount of short-term memory allocation
10470       operations. Fixes bug 25008; bugfix on 0.2.9.4-alpha.
10472   o Minor bugfixes (Rust FFI):
10473     - Fix a minor memory leak which would happen whenever the C code
10474       would call the Rust implementation of
10475       protover_get_supported_protocols(). This was due to the C version
10476       returning a static string, whereas the Rust version newly allocated
10477       a CString to pass across the FFI boundary. Consequently, the C
10478       code was not expecting to need to free() what it was given. Fixes
10479       bug 25127; bugfix on 0.3.2.1-alpha.
10481   o Minor bugfixes (scheduler, KIST):
10482     - Avoid adding the same channel twice in the KIST scheduler pending
10483       list, which would waste CPU cycles. Fixes bug 24700; bugfix
10484       on 0.3.2.1-alpha.
10486   o Minor bugfixes (unit test, monotonic time):
10487     - Increase a constant (1msec to 10msec) in the monotonic time test
10488       that makes sure the nsec/usec/msec times read are synchronized.
10489       This change was needed to accommodate slow systems like armel or
10490       when the clock_gettime() is not a VDSO on the running kernel.
10491       Fixes bug 25113; bugfix on 0.2.9.1.
10493   o Minor bugfixes (v3 onion services):
10494     - Look at the "HSRend" protocol version, not the "HSDir" protocol
10495       version, when deciding whether a consensus entry can support the
10496       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
10497       bugfix on 0.3.2.1-alpha.
10499   o Code simplification and refactoring:
10500     - Remove the unused nodelist_recompute_all_hsdir_indices(). Closes
10501       ticket 25108.
10502     - Remove a series of counters used to track circuit extend attempts
10503       and connection status but that in reality we aren't using for
10504       anything other than stats logged by a SIGUSR1 signal. Closes
10505       ticket 25163.
10507   o Documentation (man page):
10508     - The HiddenServiceVersion torrc option accepts only one number:
10509       either version 2 or 3. Closes ticket 25026; bugfix
10510       on 0.3.2.2-alpha.
10513 Changes in version 0.3.3.1-alpha - 2018-01-25
10514   Tor 0.3.3.1-alpha is the first release in the 0.3.3.x series. It adds
10515   several new features to Tor, including several improvements to
10516   bootstrapping, and support for an experimental "vanguards" feature to
10517   resist guard discovery attacks. This series also includes better
10518   support for applications that need to embed Tor or manage v3
10519   onion services.
10521   o Major features (embedding):
10522     - There is now a documented stable API for programs that need to
10523       embed Tor. See tor_api.h for full documentation and known bugs.
10524       Closes ticket 23684.
10525     - Tor now has support for restarting in the same process.
10526       Controllers that run Tor using the "tor_api.h" interface can now
10527       restart Tor after Tor has exited. This support is incomplete,
10528       however: we fixed crash bugs that prevented it from working at
10529       all, but many bugs probably remain, including a possibility of
10530       security issues. Implements ticket 24581.
10532   o Major features (IPv6, directory documents):
10533     - Add consensus method 27, which adds IPv6 ORPorts to the microdesc
10534       consensus. This information makes it easier for IPv6 clients to
10535       bootstrap and choose reachable entry guards. Implements ticket 23826.
10536     - Add consensus method 28, which removes IPv6 ORPorts from
10537       microdescriptors. Now that the consensus contains IPv6 ORPorts, they
10538       are redundant in microdescs. This change will be used by Tor clients
10539       on 0.2.8.x and later. (That is to say, with all Tor clients that
10540       have IPv6 bootstrap and guard support.) Implements ticket 23828.
10541     - Expand the documentation for AuthDirHasIPv6Connectivity when it is
10542       set by different numbers of authorities. Fixes 23870
10543       on 0.2.4.1-alpha.
10545   o Major features (onion service v3, control port):
10546     - The control port now supports commands and events for v3 onion
10547       services. It is now possible to create ephemeral v3 services using
10548       ADD_ONION. Additionally, several events (HS_DESC, HS_DESC_CONTENT,
10549       CIRC and CIRC_MINOR) and commands (GETINFO, HSPOST, ADD_ONION and
10550       DEL_ONION) have been extended to support v3 onion services. Closes
10551       ticket 20699; implements proposal 284.
10553   o Major features (onion services):
10554     - Provide torrc options to pin the second and third hops of onion
10555       service circuits to a list of nodes. The option HSLayer2Guards
10556       pins the second hop, and the option HSLayer3Guards pins the third
10557       hop. These options are for use in conjunction with experiments
10558       with "vanguards" for preventing guard enumeration attacks. Closes
10559       ticket 13837.
10561   o Major features (rust, portability, experimental):
10562     - Tor now ships with an optional implementation of one of its
10563       smaller modules (protover.c) in the Rust programming language. To
10564       try it out, install a Rust build environment, and configure Tor
10565       with "--enable-rust --enable-cargo-online-mode". This should not
10566       cause any user-visible changes, but should help us gain more
10567       experience with Rust, and plan future Rust integration work.
10568       Implementation by Chelsea Komlo. Closes ticket 22840.
10570   o Minor features (storage, configuration):
10571     - Users can store cached directory documents somewhere other than
10572       the DataDirectory by using the CacheDirectory option. Similarly,
10573       the storage location for relay's keys can be overridden with the
10574       KeyDirectory option. Closes ticket 22703.
10576   o Major features (v3 onion services, ipv6):
10577     - When v3 onion service clients send introduce cells, they now
10578       include the IPv6 address of the rendezvous point, if it has one.
10579       Current v3 onion services running 0.3.2 ignore IPv6 addresses, but
10580       in future Tor versions, IPv6-only v3 single onion services will be
10581       able to use IPv6 addresses to connect directly to the rendezvous
10582       point. Closes ticket 23577. Patch by Neel Chauhan.
10584   o Major bugfixes (onion services, retry behavior):
10585     - Fix an "off by 2" error in counting rendezvous failures on the
10586       onion service side. While we thought we would stop the rendezvous
10587       attempt after one failed circuit, we were actually making three
10588       circuit attempts before giving up. Now switch to a default of 2,
10589       and allow the consensus parameter "hs_service_max_rdv_failures" to
10590       override. Fixes bug 24895; bugfix on 0.0.6.
10591     - New-style (v3) onion services now obey the "max rendezvous circuit
10592       attempts" logic. Previously they would make as many rendezvous
10593       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
10594       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
10596   o Major bugfixes (relays):
10597     - Fix a set of false positives where relays would consider
10598       connections to other relays as being client-only connections (and
10599       thus e.g. deserving different link padding schemes) if those
10600       relays fell out of the consensus briefly. Now we look only at the
10601       initial handshake and whether the connection authenticated as a
10602       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
10604   o Minor feature (IPv6):
10605     - Make IPv6-only clients wait for microdescs for relays, even if we
10606       were previously using descriptors (or were using them as a bridge)
10607       and have a cached descriptor for them. Implements ticket 23827.
10608     - When a consensus has IPv6 ORPorts, make IPv6-only clients use
10609       them, rather than waiting to download microdescriptors.
10610       Implements ticket 23827.
10612   o Minor features (cleanup):
10613     - Tor now deletes the CookieAuthFile and ExtORPortCookieAuthFile
10614       when it stops. Closes ticket 23271.
10616   o Minor features (defensive programming):
10617     - Most of the functions in Tor that free objects have been replaced
10618       with macros that free the objects and set the corresponding
10619       pointers to NULL. This change should help prevent a large class of
10620       dangling pointer bugs. Closes ticket 24337.
10621     - Where possible, the tor_free() macro now only evaluates its input
10622       once. Part of ticket 24337.
10623     - Check that microdesc ed25519 ids are non-zero in
10624       node_get_ed25519_id() before returning them. Implements ticket
10625       24001, patch by "aruna1234".
10627   o Minor features (embedding):
10628     - Tor can now start with a preauthenticated control connection
10629       created by the process that launched it. This feature is meant for
10630       use by programs that want to launch and manage a Tor process
10631       without allowing other programs to manage it as well. For more
10632       information, see the __OwningControllerFD option documented in
10633       control-spec.txt. Closes ticket 23900.
10634     - On most errors that would cause Tor to exit, it now tries to
10635       return from the tor_main() function, rather than calling the
10636       system exit() function. Most users won't notice a difference here,
10637       but it should be significant for programs that run Tor inside
10638       a separate thread: they should now be able to survive Tor's exit
10639       conditions rather than having Tor shut down the entire process.
10640       Closes ticket 23848.
10641     - Applications that want to embed Tor can now tell Tor not to
10642       register any of its own POSIX signal handlers, using the
10643       __DisableSignalHandlers option. Closes ticket 24588.
10645   o Minor features (fallback directory list):
10646     - Avoid selecting fallbacks that change their IP addresses too
10647       often. Select more fallbacks by ignoring the Guard flag, and
10648       allowing lower cutoffs for the Running and V2Dir flags. Also allow
10649       a lower bandwidth, and a higher number of fallbacks per operator
10650       (5% of the list). Implements ticket 24785.
10651     - Update the fallback whitelist and blacklist based on opt-ins and
10652       relay changes. Closes tickets 22321, 24678, 22527, 24135,
10653       and 24695.
10655   o Minor features (fallback directory mirror configuration):
10656     - Add a nickname to each fallback in a C comment. This makes it
10657       easier for operators to find their relays, and allows stem to use
10658       nicknames to identify fallbacks. Implements ticket 24600.
10659     - Add a type and version header to the fallback directory mirror
10660       file. Also add a delimiter to the end of each fallback entry. This
10661       helps external parsers like stem and Relay Search. Implements
10662       ticket 24725.
10663     - Add an extrainfo cache flag for each fallback in a C comment. This
10664       allows stem to use fallbacks to fetch extra-info documents, rather
10665       than using authorities. Implements ticket 22759.
10666     - Add the generateFallbackDirLine.py script for automatically
10667       generating fallback directory mirror lines from relay fingerprints.
10668       No more typos! Add the lookupFallbackDirContact.py script for
10669       automatically looking up operator contact info from relay
10670       fingerprints. Implements ticket 24706, patch by teor and atagar.
10671     - Reject any fallback directory mirror that serves an expired
10672       consensus. Implements ticket 20942, patch by "minik".
10673     - Remove commas and equals signs from external string inputs to the
10674       fallback list. This avoids format confusion attacks. Implements
10675       ticket 24726.
10676     - Remove the "weight=10" line from fallback directory mirror
10677       entries. Ticket 24681 will maintain the current fallback weights
10678       by changing Tor's default fallback weight to 10. Implements
10679       ticket 24679.
10680     - Stop logging excessive information about fallback netblocks.
10681       Implements ticket 24791.
10683   o Minor features (forward-compatibility):
10684     - If a relay supports some link authentication protocol that we do
10685       not recognize, then include that relay's ed25519 key when telling
10686       other relays to extend to it. Previously, we treated future
10687       versions as if they were too old to support ed25519 link
10688       authentication. Closes ticket 20895.
10690   o Minor features (heartbeat):
10691     - Add onion service information to our heartbeat logs, displaying
10692       stats about the activity of configured onion services. Closes
10693       ticket 24896.
10695   o Minor features (instrumentation, development):
10696     - Add the MainloopStats option to allow developers to get
10697       instrumentation information from the main event loop via the
10698       heartbeat messages. We hope to use this to improve Tor's behavior
10699       when it's trying to sleep. Closes ticket 24605.
10701   o Minor features (log messages):
10702     - Improve a warning message that happens when we fail to re-parse an
10703       old router because of an expired certificate. Closes ticket 20020.
10704     - Make the log more quantitative when we hit MaxMemInQueues
10705       threshold exposing some values. Closes ticket 24501.
10707   o Minor features (logging, android):
10708     - Added support for the Android logging subsystem. Closes
10709       ticket 24362.
10711   o Minor features (performance):
10712     - Support predictive circuit building for onion service circuits
10713       with multiple layers of guards. Closes ticket 23101.
10714     - Use stdatomic.h where available, rather than mutexes, to implement
10715       atomic_counter_t. Closes ticket 23953.
10717   o Minor features (performance, 32-bit):
10718     - Improve performance on 32-bit systems by avoiding 64-bit division
10719       when calculating the timestamp in milliseconds for channel padding
10720       computations. Implements ticket 24613.
10721     - Improve performance on 32-bit systems by avoiding 64-bit division
10722       when timestamping cells and buffer chunks for OOM calculations.
10723       Implements ticket 24374.
10725   o Minor features (performance, OSX, iOS):
10726     - Use the mach_approximate_time() function (when available) to
10727       implement coarse monotonic time. Having a coarse time function
10728       should avoid a large number of system calls, and improve
10729       performance slightly, especially under load. Closes ticket 24427.
10731   o Minor features (performance, windows):
10732     - Improve performance on Windows Vista and Windows 7 by adjusting
10733       TCP send window size according to the recommendation from
10734       SIO_IDEAL_SEND_BACKLOG_QUERY. Closes ticket 22798. Patch
10735       from Vort.
10737   o Major features (relay):
10738     - Implement an option, ReducedExitPolicy, to allow an Tor exit relay
10739       operator to use a more reasonable ("reduced") exit policy, rather
10740       than the default one. If you want to run an exit node without
10741       thinking too hard about which ports to allow, this one is for you.
10742       Closes ticket 13605. Patch from Neel Chauhan.
10744   o Minor features (testing, debugging, embedding):
10745     - For development purposes, Tor now has a mode in which it runs for
10746       a few seconds, then stops, and starts again without exiting the
10747       process. This mode is meant to help us debug various issues with
10748       ticket 23847. To use this feature, compile with
10749       --enable-restart-debugging, and set the TOR_DEBUG_RESTART
10750       environment variable. This is expected to crash a lot, and is
10751       really meant for developers only. It will likely be removed in a
10752       future release. Implements ticket 24583.
10754   o Minor bugfix (network IPv6 test):
10755     - Tor's test scripts now check if "ping -6 ::1" works when the user
10756       runs "make test-network-all". Fixes bug 24677; bugfix on
10757       0.2.9.3-alpha. Patch by "ffmancera".
10759   o Minor bugfixes (build, rust):
10760     - Fix output of autoconf checks to display success messages for Rust
10761       dependencies and a suitable rustc compiler version. Fixes bug
10762       24612; bugfix on 0.3.1.3-alpha.
10763     - When building with Rust on OSX, link against libresolv, to work
10764       around the issue at https://github.com/rust-lang/rust/issues/46797.
10765       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
10766     - Don't pass the --quiet option to cargo: it seems to suppress some
10767       errors, which is not what we want to do when building. Fixes bug
10768       24518; bugfix on 0.3.1.7.
10769     - Build correctly when building from outside Tor's source tree with
10770       the TOR_RUST_DEPENDENCIES option set. Fixes bug 22768; bugfix
10771       on 0.3.1.7.
10773   o Minor bugfixes (directory authorities, IPv6):
10774     - When creating a routerstatus (vote) from a routerinfo (descriptor),
10775       set the IPv6 address to the unspecified IPv6 address, and
10776       explicitly initialize the port to zero. Fixes bug 24488; bugfix
10777       on 0.2.4.1-alpha.
10779   o Minor bugfixes (fallback directory mirrors):
10780     - Make updateFallbackDirs.py search harder for python. (Some OSs
10781       don't put it in /usr/bin.) Fixes bug 24708; bugfix
10782       on 0.2.8.1-alpha.
10784   o Minor bugfixes (hibernation, bandwidth accounting, shutdown):
10785     - When hibernating, close connections normally and allow them to
10786       flush. Fixes bug 23571; bugfix on 0.2.4.7-alpha. Also fixes
10787       bug 7267.
10788     - Do not attempt to launch self-reachability tests when entering
10789       hibernation. Fixes a case of bug 12062; bugfix on 0.0.9pre5.
10790     - Resolve several bugs related to descriptor fetching on bridge
10791       clients with bandwidth accounting enabled. (This combination is
10792       not recommended!) Fixes a case of bug 12062; bugfix
10793       on 0.2.0.3-alpha.
10794     - When hibernating, do not attempt to launch DNS checks. Fixes a
10795       case of bug 12062; bugfix on 0.1.2.2-alpha.
10796     - When hibernating, do not try to upload or download descriptors.
10797       Fixes a case of bug 12062; bugfix on 0.0.9pre5.
10799   o Minor bugfixes (IPv6, bridges):
10800     - Tor now always sets IPv6 preferences for bridges. Fixes bug 24573;
10801       bugfix on 0.2.8.2-alpha.
10802     - Tor now sets IPv6 address in the routerstatus as well as in the
10803       router descriptors when updating addresses for a bridge. Closes
10804       ticket 24572; bugfix on 0.2.4.5-alpha. Patch by "ffmancera".
10806   o Minor bugfixes (linux seccomp2 sandbox):
10807     - When running with the sandbox enabled, reload configuration files
10808       correctly even when %include was used. Previously we would crash.
10809       Fixes bug 22605; bugfix on 0.3.1. Patch from Daniel Pinto.
10811   o Minor bugfixes (memory leaks):
10812     - Avoid possible at-exit memory leaks related to use of Libevent's
10813       event_base_once() function. (This function tends to leak memory if
10814       the event_base is closed before the event fires.) Fixes bug 24584;
10815       bugfix on 0.2.8.1-alpha.
10816     - Fix a harmless memory leak in tor-resolve. Fixes bug 24582; bugfix
10817       on 0.2.1.1-alpha.
10819   o Minor bugfixes (OSX):
10820     - Don't exit the Tor process if setrlimit() fails to change the file
10821       limit (which can happen sometimes on some versions of OSX). Fixes
10822       bug 21074; bugfix on 0.0.9pre5.
10824   o Minor bugfixes (performance, fragile-hardening):
10825     - Improve the performance of our consensus-diff application code
10826       when Tor is built with the --enable-fragile-hardening option set.
10827       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
10829   o Minor bugfixes (performance, timeouts):
10830     - Consider circuits for timeout as soon as they complete a hop. This
10831       is more accurate than applying the timeout in
10832       circuit_expire_building() because that function is only called
10833       once per second, which is now too slow for typical timeouts on the
10834       current network. Fixes bug 23114; bugfix on 0.2.2.2-alpha.
10835     - Use onion service circuits (and other circuits longer than 3 hops)
10836       to calculate a circuit build timeout. Previously, Tor only
10837       calculated its build timeout based on circuits that planned to be
10838       exactly 3 hops long. With this change, we include measurements
10839       from all circuits at the point where they complete their third
10840       hop. Fixes bug 23100; bugfix on 0.2.2.2-alpha.
10842   o Minor bugfixes (testing):
10843     - Give out Exit flags in bootstrapping networks. Fixes bug 24137;
10844       bugfix on 0.2.3.1-alpha.
10845     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
10846       25005; bugfix on 0.3.2.7-rc.
10848   o Code simplification and refactoring:
10849     - Remove /usr/athena from search path in configure.ac. Closes
10850       ticket 24363.
10851     - Remove duplicate code in node_has_curve25519_onion_key() and
10852       node_get_curve25519_onion_key(), and add a check for a zero
10853       microdesc curve25519 onion key. Closes ticket 23966, patch by
10854       "aruna1234" and teor.
10855     - Rewrite channel_rsa_id_group_set_badness to reduce temporary
10856       memory allocations with large numbers of OR connections (e.g.
10857       relays). Closes ticket 24119.
10858     - Separate the function that deletes ephemeral files when Tor
10859       stops gracefully.
10860     - Small changes to Tor's buf_t API to make it suitable for use as a
10861       general-purpose safe string constructor. Closes ticket 22342.
10862     - Switch -Wnormalized=id to -Wnormalized=nfkc in configure.ac to
10863       avoid source code identifier confusion. Closes ticket 24467.
10864     - The tor_git_revision[] constant no longer needs to be redeclared
10865       by everything that links against the rest of Tor. Done as part of
10866       ticket 23845, to simplify our external API.
10867     - We make extend_info_from_node() use node_get_curve25519_onion_key()
10868       introduced in ticket 23577 to access the curve25519 public keys
10869       rather than accessing it directly. Closes ticket 23760. Patch by
10870       Neel Chauhan.
10871     - Add a function to log channels' scheduler state changes to aid
10872       debugging efforts. Closes ticket 24531.
10874   o Documentation:
10875     - Add documentation on how to build tor with Rust dependencies
10876       without having to be online. Closes ticket 22907; bugfix
10877       on 0.3.0.3-alpha.
10878     - Clarify the behavior of RelayBandwidth{Rate,Burst} with client
10879       traffic. Closes ticket 24318.
10880     - Document that OutboundBindAddress doesn't apply to DNS requests.
10881       Closes ticket 22145. Patch from Aruna Maurya.
10882     - Document that operators who run more than one relay or bridge are
10883       expected to set MyFamily and ContactInfo correctly. Closes
10884       ticket 24526.
10886   o Code simplification and refactoring (channels):
10887     - Remove the incoming and outgoing channel queues. These were never
10888       used, but still took up a step in our fast path.
10889     - The majority of the channel unit tests have been rewritten and the
10890       code coverage has now been raised to 83.6% for channel.c. Closes
10891       ticket 23709.
10892     - Remove other dead code from the channel subsystem: All together,
10893       this cleanup has removed more than 1500 lines of code overall and
10894       adding very little except for unit test.
10896   o Code simplification and refactoring (circuit rendezvous):
10897     - Split the client-side rendezvous circuit lookup into two
10898       functions: one that returns only established circuits and another
10899       that returns all kinds of circuits. Closes ticket 23459.
10901   o Code simplification and refactoring (controller):
10902     - Make most of the variables in networkstatus_getinfo_by_purpose()
10903       const. Implements ticket 24489.
10906 Changes in version 0.3.2.9 - 2018-01-09
10907   Tor 0.3.2.9 is the first stable release in the 0.3.2 series.
10909   The 0.3.2 series includes our long-anticipated new onion service
10910   design, with numerous security features. (For more information, see
10911   our blog post at https://blog.torproject.org/fall-harvest.) We also
10912   have a new circuit scheduler algorithm for improved performance on
10913   relays everywhere (see https://blog.torproject.org/kist-and-tell),
10914   along with many smaller features and bugfixes.
10916   Per our stable release policy, we plan to support each stable release
10917   series for at least the next nine months, or for three months after
10918   the first stable release of the next series: whichever is longer. If
10919   you need a release with long-term support, we recommend that you stay
10920   with the 0.2.9 series.
10922   Below is a list of the changes since 0.3.2.8-rc. For a list of all
10923   changes since 0.3.1, see the ReleaseNotes file.
10925   o Minor features (fallback directory mirrors):
10926     - The fallback directory list has been re-generated based on the
10927       current status of the network. Tor uses fallback directories to
10928       bootstrap when it doesn't yet have up-to-date directory
10929       information. Closes ticket 24801.
10930     - Make the default DirAuthorityFallbackRate 0.1, so that clients
10931       prefer to bootstrap from fallback directory mirrors. This is a
10932       follow-up to 24679, which removed weights from the default
10933       fallbacks. Implements ticket 24681.
10935   o Minor features (geoip):
10936     - Update geoip and geoip6 to the January 5 2018 Maxmind GeoLite2
10937       Country database.
10939   o Minor bugfixes (address selection):
10940     - When the fascist_firewall_choose_address_ functions don't find a
10941       reachable address, set the returned address to the null address
10942       and port. This is a precautionary measure, because some callers do
10943       not check the return value. Fixes bug 24736; bugfix
10944       on 0.2.8.2-alpha.
10946   o Minor bugfixes (compilation):
10947     - Resolve a few shadowed-variable warnings in the onion service
10948       code. Fixes bug 24634; bugfix on 0.3.2.1-alpha.
10950   o Minor bugfixes (portability, msvc):
10951     - Fix a bug in the bit-counting parts of our timing-wheel code on
10952       MSVC. (Note that MSVC is still not a supported build platform, due
10953       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
10954       on 0.2.9.1-alpha.
10957 Changes in version 0.3.2.8-rc - 2017-12-21
10958   Tor 0.3.2.8-rc fixes a pair of bugs in the KIST and KISTLite
10959   schedulers that had led servers under heavy load to overload their
10960   outgoing connections. All relay operators running earlier 0.3.2.x
10961   versions should upgrade. This version also includes a mitigation for
10962   over-full DESTROY queues leading to out-of-memory conditions: if it
10963   works, we will soon backport it to earlier release series.
10965   This is the second release candidate in the 0.3.2 series. If we find
10966   no new bugs or regression here, then the first stable 0.3.2 release
10967   will be nearly identical to this.
10969   o Major bugfixes (KIST, scheduler):
10970     - The KIST scheduler did not correctly account for data already
10971       enqueued in each connection's send socket buffer, particularly in
10972       cases when the TCP/IP congestion window was reduced between
10973       scheduler calls. This situation lead to excessive per-connection
10974       buffering in the kernel, and a potential memory DoS. Fixes bug
10975       24665; bugfix on 0.3.2.1-alpha.
10977   o Minor features (geoip):
10978     - Update geoip and geoip6 to the December 6 2017 Maxmind GeoLite2
10979       Country database.
10981   o Minor bugfixes (hidden service v3):
10982     - Bump hsdir_spread_store parameter from 3 to 4 in order to increase
10983       the probability of reaching a service for a client missing
10984       microdescriptors. Fixes bug 24425; bugfix on 0.3.2.1-alpha.
10986   o Minor bugfixes (memory usage):
10987     - When queuing DESTROY cells on a channel, only queue the circuit-id
10988       and reason fields: not the entire 514-byte cell. This fix should
10989       help mitigate any bugs or attacks that fill up these queues, and
10990       free more RAM for other uses. Fixes bug 24666; bugfix
10991       on 0.2.5.1-alpha.
10993   o Minor bugfixes (scheduler, KIST):
10994     - Use a sane write limit for KISTLite when writing onto a connection
10995       buffer instead of using INT_MAX and shoving as much as it can.
10996       Because the OOM handler cleans up circuit queues, we are better
10997       off at keeping them in that queue instead of the connection's
10998       buffer. Fixes bug 24671; bugfix on 0.3.2.1-alpha.
11001 Changes in version 0.3.2.7-rc - 2017-12-14
11002   Tor 0.3.2.7-rc fixes various bugs in earlier versions of Tor,
11003   including some that could affect reliability or correctness.
11005   This is the first release candidate in the 0.3.2 series. If we find no
11006   new bugs or regression here, then the first stable 0.3.2. release will
11007   be nearly identical to this.
11009   o Major bugfixes (circuit prediction):
11010     - Fix circuit prediction logic so that a client doesn't treat a port
11011       as being "handled" by a circuit if that circuit already has
11012       isolation settings on it. This change should make Tor clients more
11013       responsive by improving their chances of having a pre-created
11014       circuit ready for use when a request arrives. Fixes bug 18859;
11015       bugfix on 0.2.3.3-alpha.
11017   o Minor features (logging):
11018     - Provide better warnings when the getrandom() syscall fails. Closes
11019       ticket 24500.
11021   o Minor features (portability):
11022     - Tor now compiles correctly on arm64 with libseccomp-dev installed.
11023       (It doesn't yet work with the sandbox enabled.) Closes
11024       ticket 24424.
11026   o Minor bugfixes (bridge clients, bootstrap):
11027     - Retry directory downloads when we get our first bridge descriptor
11028       during bootstrap or while reconnecting to the network. Keep
11029       retrying every time we get a bridge descriptor, until we have a
11030       reachable bridge. Fixes part of bug 24367; bugfix on 0.2.0.3-alpha.
11031     - Stop delaying bridge descriptor fetches when we have cached bridge
11032       descriptors. Instead, only delay bridge descriptor fetches when we
11033       have at least one reachable bridge. Fixes part of bug 24367;
11034       bugfix on 0.2.0.3-alpha.
11035     - Stop delaying directory fetches when we have cached bridge
11036       descriptors. Instead, only delay bridge descriptor fetches when
11037       all our bridges are definitely unreachable. Fixes part of bug
11038       24367; bugfix on 0.2.0.3-alpha.
11040   o Minor bugfixes (compilation):
11041     - Fix a signed/unsigned comparison warning introduced by our fix to
11042       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
11044   o Minor bugfixes (correctness):
11045     - Fix several places in our codebase where a C compiler would be
11046       likely to eliminate a check, based on assuming that undefined
11047       behavior had not happened elsewhere in the code. These cases are
11048       usually a sign of redundant checking or dubious arithmetic. Found
11049       by Georg Koppen using the "STACK" tool from Wang, Zeldovich,
11050       Kaashoek, and Solar-Lezama. Fixes bug 24423; bugfix on various
11051       Tor versions.
11053   o Minor bugfixes (onion service v3):
11054     - Fix a race where an onion service would launch a new intro circuit
11055       after closing an old one, but fail to register it before freeing
11056       the previously closed circuit. This bug was making the service
11057       unable to find the established intro circuit and thus not upload
11058       its descriptor, thus making a service unavailable for up to 24
11059       hours. Fixes bug 23603; bugfix on 0.3.2.1-alpha.
11061   o Minor bugfixes (scheduler, KIST):
11062     - Properly set the scheduler state of an unopened channel in the
11063       KIST scheduler main loop. This prevents a harmless but annoying
11064       log warning. Fixes bug 24502; bugfix on 0.3.2.4-alpha.
11065     - Avoid a possible integer overflow when computing the available
11066       space on the TCP buffer of a channel. This had no security
11067       implications; but could make KIST allow too many cells on a
11068       saturated connection. Fixes bug 24590; bugfix on 0.3.2.1-alpha.
11069     - Downgrade to "info" a harmless warning about the monotonic time
11070       moving backwards: This can happen on platform not supporting
11071       monotonic time. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
11074 Changes in version 0.3.2.6-alpha - 2017-12-01
11075   This version of Tor is the latest in the 0.3.2 alpha series. It
11076   includes fixes for several important security issues. All Tor users
11077   should upgrade to this release, or to one of the other releases coming
11078   out today.
11080   o Major bugfixes (security):
11081     - Fix a denial of service bug where an attacker could use a
11082       malformed directory object to cause a Tor instance to pause while
11083       OpenSSL would try to read a passphrase from the terminal. (Tor
11084       instances run without a terminal, which is the case for most Tor
11085       packages, are not impacted.) Fixes bug 24246; bugfix on every
11086       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11087       Found by OSS-Fuzz as testcase 6360145429790720.
11088     - Fix a denial of service issue where an attacker could crash a
11089       directory authority using a malformed router descriptor. Fixes bug
11090       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11091       and CVE-2017-8820.
11092     - When checking for replays in the INTRODUCE1 cell data for a
11093       (legacy) onion service, correctly detect replays in the RSA-
11094       encrypted part of the cell. We were previously checking for
11095       replays on the entire cell, but those can be circumvented due to
11096       the malleability of Tor's legacy hybrid encryption. This fix helps
11097       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11098       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11099       and CVE-2017-8819.
11101   o Major bugfixes (security, onion service v2):
11102     - Fix a use-after-free error that could crash v2 Tor onion services
11103       when they failed to open circuits while expiring introduction
11104       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11105       also tracked as TROVE-2017-013 and CVE-2017-8823.
11107   o Major bugfixes (security, relay):
11108     - When running as a relay, make sure that we never build a path
11109       through ourselves, even in the case where we have somehow lost the
11110       version of our descriptor appearing in the consensus. Fixes part
11111       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11112       as TROVE-2017-012 and CVE-2017-8822.
11113     - When running as a relay, make sure that we never choose ourselves
11114       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11115       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11117   o Minor feature (relay statistics):
11118     - Change relay bandwidth reporting stats interval from 4 hours to 24
11119       hours in order to reduce the efficiency of guard discovery
11120       attacks. Fixes ticket 23856.
11122   o Minor features (directory authority):
11123     - Add an IPv6 address for the "bastet" directory authority. Closes
11124       ticket 24394.
11126   o Minor bugfixes (client):
11127     - By default, do not enable storage of client-side DNS values. These
11128       values were unused by default previously, but they should not have
11129       been cached at all. Fixes bug 24050; bugfix on 0.2.6.3-alpha.
11132 Changes in version 0.3.1.9 - 2017-12-01:
11133   Tor 0.3.1.9 backports important security and stability fixes from the
11134   0.3.2 development series. All Tor users should upgrade to this
11135   release, or to another of the releases coming out today.
11137   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11138     - Fix a denial of service bug where an attacker could use a
11139       malformed directory object to cause a Tor instance to pause while
11140       OpenSSL would try to read a passphrase from the terminal. (Tor
11141       instances run without a terminal, which is the case for most Tor
11142       packages, are not impacted.) Fixes bug 24246; bugfix on every
11143       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11144       Found by OSS-Fuzz as testcase 6360145429790720.
11145     - Fix a denial of service issue where an attacker could crash a
11146       directory authority using a malformed router descriptor. Fixes bug
11147       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11148       and CVE-2017-8820.
11149     - When checking for replays in the INTRODUCE1 cell data for a
11150       (legacy) onion service, correctly detect replays in the RSA-
11151       encrypted part of the cell. We were previously checking for
11152       replays on the entire cell, but those can be circumvented due to
11153       the malleability of Tor's legacy hybrid encryption. This fix helps
11154       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11155       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11156       and CVE-2017-8819.
11158   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11159     - Fix a use-after-free error that could crash v2 Tor onion services
11160       when they failed to open circuits while expiring introduction
11161       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11162       also tracked as TROVE-2017-013 and CVE-2017-8823.
11164   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11165     - When running as a relay, make sure that we never build a path
11166       through ourselves, even in the case where we have somehow lost the
11167       version of our descriptor appearing in the consensus. Fixes part
11168       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11169       as TROVE-2017-012 and CVE-2017-8822.
11170     - When running as a relay, make sure that we never choose ourselves
11171       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11172       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11174   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11175     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11176       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11177       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11178       identifying and finding a workaround to this bug and to Moritz,
11179       Arthur Edelstein, and Roger for helping to track it down and
11180       analyze it.
11182   o Minor features (bridge):
11183     - Bridges now include notice in their descriptors that they are
11184       bridges, and notice of their distribution status, based on their
11185       publication settings. Implements ticket 18329. For more fine-
11186       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11187       or later.
11189   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11190     - Add an IPv6 address for the "bastet" directory authority. Closes
11191       ticket 24394.
11193   o Minor features (geoip):
11194     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11195       Country database.
11197   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11198     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11199       relays, to prevent spurious address resolutions and descriptor
11200       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11201       bugfix on in 0.2.8.1-alpha.
11203   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11204     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11205       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11207   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11208     - When a circuit is marked for close, do not attempt to package any
11209       cells for channels on that circuit. Previously, we would detect
11210       this condition lower in the call stack, when we noticed that the
11211       circuit had no attached channel, and log an annoying message.
11212       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11214   o Minor bugfixes (onion service, backport from 0.3.2.5-alpha):
11215     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
11216       so it matches dir-spec.txt. Fixes bug 24262; bugfix
11217       on 0.3.1.1-alpha.
11219   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11220     - Avoid a crash when transitioning from client mode to bridge mode.
11221       Previously, we would launch the worker threads whenever our
11222       "public server" mode changed, but not when our "server" mode
11223       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11226 Changes in version 0.3.0.13 - 2017-12-01
11227   Tor 0.3.0.13 backports important security and stability bugfixes from
11228   later Tor releases. All Tor users should upgrade to this release, or
11229   to another of the releases coming out today.
11231   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
11232   2018. If you need a release with long-term support, please stick with
11233   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11235   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11236     - Fix a denial of service bug where an attacker could use a
11237       malformed directory object to cause a Tor instance to pause while
11238       OpenSSL would try to read a passphrase from the terminal. (Tor
11239       instances run without a terminal, which is the case for most Tor
11240       packages, are not impacted.) Fixes bug 24246; bugfix on every
11241       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11242       Found by OSS-Fuzz as testcase 6360145429790720.
11243     - Fix a denial of service issue where an attacker could crash a
11244       directory authority using a malformed router descriptor. Fixes bug
11245       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11246       and CVE-2017-8820.
11247     - When checking for replays in the INTRODUCE1 cell data for a
11248       (legacy) onion service, correctly detect replays in the RSA-
11249       encrypted part of the cell. We were previously checking for
11250       replays on the entire cell, but those can be circumvented due to
11251       the malleability of Tor's legacy hybrid encryption. This fix helps
11252       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11253       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11254       and CVE-2017-8819.
11256   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11257     - Fix a use-after-free error that could crash v2 Tor onion services
11258       when they failed to open circuits while expiring introduction
11259       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11260       also tracked as TROVE-2017-013 and CVE-2017-8823.
11262   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11263     - When running as a relay, make sure that we never build a path
11264       through ourselves, even in the case where we have somehow lost the
11265       version of our descriptor appearing in the consensus. Fixes part
11266       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11267       as TROVE-2017-012 and CVE-2017-8822.
11268     - When running as a relay, make sure that we never choose ourselves
11269       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11270       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11272   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11273     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11274       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11275       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11276       identifying and finding a workaround to this bug and to Moritz,
11277       Arthur Edelstein, and Roger for helping to track it down and
11278       analyze it.
11280   o Minor features (security, windows, backport from 0.3.1.1-alpha):
11281     - Enable a couple of pieces of Windows hardening: one
11282       (HeapEnableTerminationOnCorruption) that has been on-by-default
11283       since Windows 8, and unavailable before Windows 7; and one
11284       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
11285       affect us, but shouldn't do any harm. Closes ticket 21953.
11287   o Minor features (bridge, backport from 0.3.1.9):
11288     - Bridges now include notice in their descriptors that they are
11289       bridges, and notice of their distribution status, based on their
11290       publication settings. Implements ticket 18329. For more fine-
11291       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11292       or later.
11294   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11295     - Add an IPv6 address for the "bastet" directory authority. Closes
11296       ticket 24394.
11298   o Minor features (geoip):
11299     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11300       Country database.
11302   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11303     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11304       relays, to prevent spurious address resolutions and descriptor
11305       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11306       bugfix on in 0.2.8.1-alpha.
11308   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11309     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11310       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11312   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11313     - When a circuit is marked for close, do not attempt to package any
11314       cells for channels on that circuit. Previously, we would detect
11315       this condition lower in the call stack, when we noticed that the
11316       circuit had no attached channel, and log an annoying message.
11317       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11319   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11320     - Avoid a crash when transitioning from client mode to bridge mode.
11321       Previously, we would launch the worker threads whenever our
11322       "public server" mode changed, but not when our "server" mode
11323       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11325   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11326     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11327       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11330 Changes in version 0.2.9.14 - 2017-12-01
11331   Tor 0.3.0.13 backports important security and stability bugfixes from
11332   later Tor releases. All Tor users should upgrade to this release, or
11333   to another of the releases coming out today.
11335   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11336     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11337       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11338       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11339       identifying and finding a workaround to this bug and to Moritz,
11340       Arthur Edelstein, and Roger for helping to track it down and
11341       analyze it.
11343   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11344     - Fix a denial of service bug where an attacker could use a
11345       malformed directory object to cause a Tor instance to pause while
11346       OpenSSL would try to read a passphrase from the terminal. (Tor
11347       instances run without a terminal, which is the case for most Tor
11348       packages, are not impacted.) Fixes bug 24246; bugfix on every
11349       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11350       Found by OSS-Fuzz as testcase 6360145429790720.
11351     - Fix a denial of service issue where an attacker could crash a
11352       directory authority using a malformed router descriptor. Fixes bug
11353       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11354       and CVE-2017-8820.
11355     - When checking for replays in the INTRODUCE1 cell data for a
11356       (legacy) onion service, correctly detect replays in the RSA-
11357       encrypted part of the cell. We were previously checking for
11358       replays on the entire cell, but those can be circumvented due to
11359       the malleability of Tor's legacy hybrid encryption. This fix helps
11360       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11361       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11362       and CVE-2017-8819.
11364   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11365     - Fix a use-after-free error that could crash v2 Tor onion services
11366       when they failed to open circuits while expiring introduction
11367       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11368       also tracked as TROVE-2017-013 and CVE-2017-8823.
11370   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11371     - When running as a relay, make sure that we never build a path
11372       through ourselves, even in the case where we have somehow lost the
11373       version of our descriptor appearing in the consensus. Fixes part
11374       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11375       as TROVE-2017-012 and CVE-2017-8822.
11377   o Minor features (bridge, backport from 0.3.1.9):
11378     - Bridges now include notice in their descriptors that they are
11379       bridges, and notice of their distribution status, based on their
11380       publication settings. Implements ticket 18329. For more fine-
11381       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11382       or later.
11384   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11385     - Add an IPv6 address for the "bastet" directory authority. Closes
11386       ticket 24394.
11388   o Minor features (geoip):
11389     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11390       Country database.
11392   o Minor features (security, windows, backport from 0.3.1.1-alpha):
11393     - Enable a couple of pieces of Windows hardening: one
11394       (HeapEnableTerminationOnCorruption) that has been on-by-default
11395       since Windows 8, and unavailable before Windows 7; and one
11396       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
11397       affect us, but shouldn't do any harm. Closes ticket 21953.
11399   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11400     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11401       relays, to prevent spurious address resolutions and descriptor
11402       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11403       bugfix on in 0.2.8.1-alpha.
11405   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11406     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11407       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11409   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11410     - When a circuit is marked for close, do not attempt to package any
11411       cells for channels on that circuit. Previously, we would detect
11412       this condition lower in the call stack, when we noticed that the
11413       circuit had no attached channel, and log an annoying message.
11414       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11416   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11417     - Avoid a crash when transitioning from client mode to bridge mode.
11418       Previously, we would launch the worker threads whenever our
11419       "public server" mode changed, but not when our "server" mode
11420       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11422   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11423     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11424       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11427 Changes in version 0.2.8.17 - 2017-12-01
11428   Tor 0.2.8.17 backports important security and stability bugfixes from
11429   later Tor releases. All Tor users should upgrade to this release, or
11430   to another of the releases coming out today.
11432   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
11433   2018. If you need a release with long-term support, please upgrade with
11434   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11436   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11437     - Fix a denial of service bug where an attacker could use a
11438       malformed directory object to cause a Tor instance to pause while
11439       OpenSSL would try to read a passphrase from the terminal. (Tor
11440       instances run without a terminal, which is the case for most Tor
11441       packages, are not impacted.) Fixes bug 24246; bugfix on every
11442       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11443       Found by OSS-Fuzz as testcase 6360145429790720.
11444     - When checking for replays in the INTRODUCE1 cell data for a
11445       (legacy) onion service, correctly detect replays in the RSA-
11446       encrypted part of the cell. We were previously checking for
11447       replays on the entire cell, but those can be circumvented due to
11448       the malleability of Tor's legacy hybrid encryption. This fix helps
11449       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11450       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11451       and CVE-2017-8819.
11453   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11454     - Fix a use-after-free error that could crash v2 Tor onion services
11455       when they failed to open circuits while expiring introduction
11456       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11457       also tracked as TROVE-2017-013 and CVE-2017-8823.
11459   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11460     - When running as a relay, make sure that we never build a path through
11461       ourselves, even in the case where we have somehow lost the version of
11462       our descriptor appearing in the consensus. Fixes part of bug 21534;
11463       bugfix on 0.2.0.1-alpha. This issue is also tracked as TROVE-2017-012
11464       and CVE-2017-8822.
11466   o Minor features (bridge, backport from 0.3.1.9):
11467     - Bridges now include notice in their descriptors that they are
11468       bridges, and notice of their distribution status, based on their
11469       publication settings. Implements ticket 18329. For more fine-
11470       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11471       or later.
11473   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11474     - Add an IPv6 address for the "bastet" directory authority. Closes
11475       ticket 24394.
11477   o Minor features (geoip):
11478     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11479       Country database.
11481   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11482     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11483       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11486 Changes in version 0.2.5.16 - 2017-12-01
11487   Tor 0.2.5.13 backports important security and stability bugfixes from
11488   later Tor releases. All Tor users should upgrade to this release, or
11489   to another of the releases coming out today.
11491   Note: the Tor 0.2.5 series will no longer be supported after 1 May
11492   2018. If you need a release with long-term support, please upgrade to
11493   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11495   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11496     - Fix a denial of service bug where an attacker could use a
11497       malformed directory object to cause a Tor instance to pause while
11498       OpenSSL would try to read a passphrase from the terminal. (Tor
11499       instances run without a terminal, which is the case for most Tor
11500       packages, are not impacted.) Fixes bug 24246; bugfix on every
11501       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11502       Found by OSS-Fuzz as testcase 6360145429790720.
11503     - When checking for replays in the INTRODUCE1 cell data for a
11504       (legacy) onion service, correctly detect replays in the RSA-
11505       encrypted part of the cell. We were previously checking for
11506       replays on the entire cell, but those can be circumvented due to
11507       the malleability of Tor's legacy hybrid encryption. This fix helps
11508       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11509       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11510       and CVE-2017-8819.
11512   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11513     - When running as a relay, make sure that we never build a path
11514       through ourselves, even in the case where we have somehow lost the
11515       version of our descriptor appearing in the consensus. Fixes part
11516       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11517       as TROVE-2017-012 and CVE-2017-8822.
11519   o Minor features (bridge, backport from 0.3.1.9):
11520     - Bridges now include notice in their descriptors that they are
11521       bridges, and notice of their distribution status, based on their
11522       publication settings. Implements ticket 18329. For more fine-
11523       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11524       or later.
11526   o Minor features (geoip):
11527     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11528       Country database.
11531 Changes in version 0.3.2.5-alpha - 2017-11-22
11532   Tor 0.3.2.5-alpha is the fifth alpha release in the 0.3.2.x series. It
11533   fixes several stability and reliability bugs, including a fix for
11534   intermittent bootstrapping failures that some people have been seeing
11535   since the 0.3.0.x series.
11537   Please test this alpha out -- many of these fixes will soon be
11538   backported to stable Tor versions if no additional bugs are found
11539   in them.
11541   o Major bugfixes (bootstrapping):
11542     - Fetch descriptors aggressively whenever we lack enough to build
11543       circuits, regardless of how many descriptors we are missing.
11544       Previously, we would delay launching the fetch when we had fewer
11545       than 15 missing descriptors, even if some of those descriptors
11546       were blocking circuits from building. Fixes bug 23985; bugfix on
11547       0.1.1.11-alpha. The effects of this bug became worse in
11548       0.3.0.3-alpha, when we began treating missing descriptors from our
11549       primary guards as a reason to delay circuits.
11550     - Don't try fetching microdescriptors from relays that have failed
11551       to deliver them in the past. Fixes bug 23817; bugfix
11552       on 0.3.0.1-alpha.
11554   o Minor features (directory authority):
11555     - Make the "Exit" flag assignment only depend on whether the exit
11556       policy allows connections to ports 80 and 443. Previously relays
11557       would get the Exit flag if they allowed connections to one of
11558       these ports and also port 6667. Resolves ticket 23637.
11560   o Minor features (geoip):
11561     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11562       Country database.
11564   o Minor features (linux seccomp2 sandbox):
11565     - Update the sandbox rules so that they should now work correctly
11566       with Glibc 2.26. Closes ticket 24315.
11568   o Minor features (logging):
11569     - Downgrade a pair of log messages that could occur when an exit's
11570       resolver gave us an unusual (but not forbidden) response. Closes
11571       ticket 24097.
11572     - Improve the message we log when re-enabling circuit build timeouts
11573       after having received a consensus. Closes ticket 20963.
11575   o Minor bugfixes (compilation):
11576     - Fix a memory leak warning in one of the libevent-related
11577       configuration tests that could occur when manually specifying
11578       -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha.
11579       Found and patched by Alex Xu.
11580     - When detecting OpenSSL on Windows from our configure script, make
11581       sure to try linking with the ws2_32 library. Fixes bug 23783;
11582       bugfix on 0.3.2.2-alpha.
11584   o Minor bugfixes (control port, linux seccomp2 sandbox):
11585     - Avoid a crash when attempting to use the seccomp2 sandbox together
11586       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
11587       on 0.2.5.1-alpha.
11589   o Minor bugfixes (control port, onion services):
11590     - Report "FAILED" instead of "UPLOAD_FAILED" "FAILED" for the
11591       HS_DESC event when a service is not able to upload a descriptor.
11592       Fixes bug 24230; bugfix on 0.2.7.1-alpha.
11594   o Minor bugfixes (directory cache):
11595     - Recover better from empty or corrupt files in the consensus cache
11596       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
11597     - When a consensus diff calculation is only partially successful,
11598       only record the successful parts as having succeeded. Partial
11599       success can happen if (for example) one compression method fails
11600       but the others succeed. Previously we misrecorded all the
11601       calculations as having succeeded, which would later cause a
11602       nonfatal assertion failure. Fixes bug 24086; bugfix
11603       on 0.3.1.1-alpha.
11605   o Minor bugfixes (logging):
11606     - Only log once if we notice that KIST support is gone. Fixes bug
11607       24158; bugfix on 0.3.2.1-alpha.
11608     - Suppress a log notice when relay descriptors arrive. We already
11609       have a bootstrap progress for this so no need to log notice
11610       everytime tor receives relay descriptors. Microdescriptors behave
11611       the same. Fixes bug 23861; bugfix on 0.2.8.2-alpha.
11613   o Minor bugfixes (network layer):
11614     - When closing a connection via close_connection_immediately(), we
11615       mark it as "not blocked on bandwidth", to prevent later calls from
11616       trying to unblock it, and give it permission to read. This fixes a
11617       backtrace warning that can happen on relays under various
11618       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
11620   o Minor bugfixes (onion services):
11621     - The introduction circuit was being timed out too quickly while
11622       waiting for the rendezvous circuit to complete. Keep the intro
11623       circuit around longer instead of timing out and reopening new ones
11624       constantly. Fixes bug 23681; bugfix on 0.2.4.8-alpha.
11625     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
11626       so it matches dir-spec.txt. Fixes bug 24262; bugfix
11627       on 0.3.1.1-alpha.
11628     - Silence a warning about failed v3 onion descriptor uploads that
11629       can happen naturally under certain edge cases. Fixes part of bug
11630       23662; bugfix on 0.3.2.1-alpha.
11632   o Minor bugfixes (tests):
11633     - Fix a memory leak in one of the bridge-distribution test cases.
11634       Fixes bug 24345; bugfix on 0.3.2.3-alpha.
11635     - Fix a bug in our fuzzing mock replacement for crypto_pk_checksig(),
11636       to correctly handle cases where a caller gives it an RSA key of
11637       under 160 bits. (This is not actually a bug in Tor itself, but
11638       rather in our fuzzing code.) Fixes bug 24247; bugfix on
11639       0.3.0.3-alpha. Found by OSS-Fuzz as issue 4177.
11641   o Documentation:
11642     - Add notes in man page regarding OS support for the various
11643       scheduler types. Attempt to use less jargon in the scheduler
11644       section. Closes ticket 24254.
11647 Changes in version 0.3.2.4-alpha - 2017-11-08
11648   Tor 0.3.2.4-alpha is the fourth alpha release in the 0.3.2.x series.
11649   It fixes several stability and reliability bugs, especially including
11650   a major reliability issue that has been plaguing fast exit relays in
11651   recent months.
11653   o Major bugfixes (exit relays, DNS):
11654     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11655       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11656       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11657       identifying and finding a workaround to this bug and to Moritz,
11658       Arthur Edelstein, and Roger for helping to track it down and
11659       analyze it.
11661   o Major bugfixes (scheduler, channel):
11662     - Stop processing scheduled channels if they closed while flushing
11663       cells. This can happen if the write on the connection fails
11664       leading to the channel being closed while in the scheduler loop.
11665       Fixes bug 23751; bugfix on 0.3.2.1-alpha.
11667   o Minor features (logging, scheduler):
11668     - Introduce a SCHED_BUG() function to log extra information about
11669       the scheduler state if we ever catch a bug in the scheduler.
11670       Closes ticket 23753.
11672   o Minor features (removed deprecations):
11673     - The ClientDNSRejectInternalAddresses flag can once again be set in
11674       non-testing Tor networks, so long as they do not use the default
11675       directory authorities. This change also removes the deprecation of
11676       this flag from 0.2.9.2-alpha. Closes ticket 21031.
11678   o Minor features (testing):
11679     - Our fuzzing tests now test the encrypted portions of v3 onion
11680       service descriptors. Implements more of 21509.
11682   o Minor bugfixes (directory client):
11683     - On failure to download directory information, delay retry attempts
11684       by a random amount based on the "decorrelated jitter" algorithm.
11685       Our previous delay algorithm tended to produce extra-long delays
11686       too easily. Fixes bug 23816; bugfix on 0.2.9.1-alpha.
11688   o Minor bugfixes (IPv6, v3 single onion services):
11689     - Remove buggy code for IPv6-only v3 single onion services, and
11690       reject attempts to configure them. This release supports IPv4,
11691       dual-stack, and IPv6-only v3 onion services; and IPv4 and dual-
11692       stack v3 single onion services. Fixes bug 23820; bugfix
11693       on 0.3.2.1-alpha.
11695   o Minor bugfixes (logging, relay):
11696     - Give only a protocol warning when the ed25519 key is not
11697       consistent between the descriptor and microdescriptor of a relay.
11698       This can happen, for instance, if the relay has been flagged
11699       NoEdConsensus. Fixes bug 24025; bugfix on 0.3.2.1-alpha.
11701   o Minor bugfixes (manpage, onion service):
11702     - Document that the HiddenServiceNumIntroductionPoints option is
11703       0-10 for v2 services and 0-20 for v3 services. Fixes bug 24115;
11704       bugfix on 0.3.2.1-alpha.
11706   o Minor bugfixes (memory leaks):
11707     - Fix a minor memory leak at exit in the KIST scheduler. This bug
11708       should have no user-visible impact. Fixes bug 23774; bugfix
11709       on 0.3.2.1-alpha.
11710     - Fix a memory leak when decrypting a badly formatted v3 onion
11711       service descriptor. Fixes bug 24150; bugfix on 0.3.2.1-alpha.
11712       Found by OSS-Fuzz; this is OSS-Fuzz issue 3994.
11714   o Minor bugfixes (onion services):
11715     - Cache some needed onion service client information instead of
11716       constantly computing it over and over again. Fixes bug 23623;
11717       bugfix on 0.3.2.1-alpha.
11718     - Properly retry HSv3 descriptor fetches when missing required
11719       directory information. Fixes bug 23762; bugfix on 0.3.2.1-alpha.
11721   o Minor bugfixes (path selection):
11722     - When selecting relays by bandwidth, avoid a rounding error that
11723       could sometimes cause load to be imbalanced incorrectly.
11724       Previously, we would always round upwards; now, we round towards
11725       the nearest integer. This had the biggest effect when a relay's
11726       weight adjustments should have given it weight 0, but it got
11727       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
11728     - When calculating the fraction of nodes that have descriptors, and
11729       all nodes in the network have zero bandwidths, count the number of
11730       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
11731     - Actually log the total bandwidth in compute_weighted_bandwidths().
11732       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
11734   o Minor bugfixes (relay, crash):
11735     - Avoid a crash when transitioning from client mode to bridge mode.
11736       Previously, we would launch the worker threads whenever our
11737       "public server" mode changed, but not when our "server" mode
11738       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11740   o Minor bugfixes (testing):
11741     - Fix a spurious fuzzing-only use of an uninitialized value. Found
11742       by Brian Carpenter. Fixes bug 24082; bugfix on 0.3.0.3-alpha.
11743     - Test that IPv6-only clients can use microdescriptors when running
11744       "make test-network-all". Requires chutney master 61c28b9 or later.
11745       Closes ticket 24109.
11748 Changes in version 0.3.2.3-alpha - 2017-10-27
11749   Tor 0.3.2.3-alpha is the third release in the 0.3.2 series. It fixes
11750   numerous small bugs in earlier versions of 0.3.2.x, and adds a new
11751   directory authority, Bastet.
11753   o Directory authority changes:
11754     - Add "Bastet" as a ninth directory authority to the default list.
11755       Closes ticket 23910.
11756     - The directory authority "Longclaw" has changed its IP address.
11757       Closes ticket 23592.
11759   o Minor features (bridge):
11760     - Bridge relays can now set the BridgeDistribution config option to
11761       add a "bridge-distribution-request" line to their bridge
11762       descriptor, which tells BridgeDB how they'd like their bridge
11763       address to be given out. (Note that as of Oct 2017, BridgeDB does
11764       not yet implement this feature.) As a side benefit, this feature
11765       provides a way to distinguish bridge descriptors from non-bridge
11766       descriptors. Implements tickets 18329.
11768   o Minor features (client, entry guards):
11769     - Improve log messages when missing descriptors for primary guards.
11770       Resolves ticket 23670.
11772   o Minor features (geoip):
11773     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
11774       Country database.
11776   o Minor bugfixes (bridge):
11777     - Overwrite the bridge address earlier in the process of retrieving
11778       its descriptor, to make sure we reach it on the configured
11779       address. Fixes bug 20532; bugfix on 0.2.0.10-alpha.
11781   o Minor bugfixes (documentation):
11782     - Document better how to read gcov, and what our gcov postprocessing
11783       scripts do. Fixes bug 23739; bugfix on 0.2.9.1-alpha.
11785   o Minor bugfixes (entry guards):
11786     - Tor now updates its guard state when it reads a consensus
11787       regardless of whether it's missing descriptors. That makes tor use
11788       its primary guards to fetch descriptors in some edge cases where
11789       it would previously have used fallback directories. Fixes bug
11790       23862; bugfix on 0.3.0.1-alpha.
11792   o Minor bugfixes (hidden service client):
11793     - When handling multiple SOCKS request for the same .onion address,
11794       only fetch the service descriptor once.
11795     - When a descriptor fetch fails with a non-recoverable error, close
11796       all pending SOCKS requests for that .onion. Fixes bug 23653;
11797       bugfix on 0.3.2.1-alpha.
11799   o Minor bugfixes (hidden service):
11800     - Always regenerate missing hidden service public key files. Prior
11801       to this, if the public key was deleted from disk, it wouldn't get
11802       recreated. Fixes bug 23748; bugfix on 0.3.2.2-alpha. Patch
11803       from "cathugger".
11804     - Make sure that we have a usable ed25519 key when the intro point
11805       relay supports ed25519 link authentication. Fixes bug 24002;
11806       bugfix on 0.3.2.1-alpha.
11808   o Minor bugfixes (hidden service, v2):
11809     - When reloading configured hidden services, copy all information
11810       from the old service object. Previously, some data was omitted,
11811       causing delays in descriptor upload, and other bugs. Fixes bug
11812       23790; bugfix on 0.2.1.9-alpha.
11814   o Minor bugfixes (memory safety, defensive programming):
11815     - Clear the target address when node_get_prim_orport() returns
11816       early. Fixes bug 23874; bugfix on 0.2.8.2-alpha.
11818   o Minor bugfixes (relay):
11819     - Avoid a BUG warning when receiving a dubious CREATE cell while an
11820       option transition is in progress. Fixes bug 23952; bugfix
11821       on 0.3.2.1-alpha.
11823   o Minor bugfixes (testing):
11824     - Adjust the GitLab CI configuration to more closely match that of
11825       Travis CI. Fixes bug 23757; bugfix on 0.3.2.2-alpha.
11826     - Prevent scripts/test/coverage from attempting to move gcov output
11827       to the root directory. Fixes bug 23741; bugfix on 0.2.5.1-alpha.
11828     - When running unit tests as root, skip a test that would fail
11829       because it expects a permissions error. This affects some
11830       continuous integration setups. Fixes bug 23758; bugfix
11831       on 0.3.2.2-alpha.
11832     - Stop unconditionally mirroring the tor repository in GitLab CI.
11833       This prevented developers from enabling GitLab CI on master. Fixes
11834       bug 23755; bugfix on 0.3.2.2-alpha.
11835     - Fix the hidden service v3 descriptor decoding fuzzing to use the
11836       latest decoding API correctly. Fixes bug 21509; bugfix
11837       on 0.3.2.1-alpha.
11839   o Minor bugfixes (warnings):
11840     - When we get an HTTP request on a SOCKS port, tell the user about
11841       the new HTTPTunnelPort option. Previously, we would give a "Tor is
11842       not an HTTP Proxy" message, which stopped being true when
11843       HTTPTunnelPort was introduced. Fixes bug 23678; bugfix
11844       on 0.3.2.1-alpha.
11847 Changes in version 0.2.5.15 - 2017-10-25
11848   Tor 0.2.5.15 backports a collection of bugfixes from later Tor release
11849   series. It also adds a new directory authority, Bastet.
11851   Note: the Tor 0.2.5 series will no longer be supported after 1 May
11852   2018. If you need a release with long-term support, please upgrade to
11853   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11855   o Directory authority changes:
11856     - Add "Bastet" as a ninth directory authority to the default list.
11857       Closes ticket 23910.
11858     - The directory authority "Longclaw" has changed its IP address.
11859       Closes ticket 23592.
11861   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
11862     - Avoid an assertion failure bug affecting our implementation of
11863       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
11864       handling of "0xx" differs from what we had expected. Fixes bug
11865       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
11867   o Minor features (geoip):
11868     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
11869       Country database.
11871   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
11872     - Fix a memset() off the end of an array when packing cells. This
11873       bug should be harmless in practice, since the corrupted bytes are
11874       still in the same structure, and are always padding bytes,
11875       ignored, or immediately overwritten, depending on compiler
11876       behavior. Nevertheless, because the memset()'s purpose is to make
11877       sure that any other cell-handling bugs can't expose bytes to the
11878       network, we need to fix it. Fixes bug 22737; bugfix on
11879       0.2.4.11-alpha. Fixes CID 1401591.
11881   o Build features (backport from 0.3.1.5-alpha):
11882     - Tor's repository now includes a Travis Continuous Integration (CI)
11883       configuration file (.travis.yml). This is meant to help new
11884       developers and contributors who fork Tor to a Github repository be
11885       better able to test their changes, and understand what we expect
11886       to pass. To use this new build feature, you must fork Tor to your
11887       Github account, then go into the "Integrations" menu in the
11888       repository settings for your fork and enable Travis, then push
11889       your changes. Closes ticket 22636.
11892 Changes in version 0.2.8.16 - 2017-10-25
11893   Tor 0.2.8.16 backports a collection of bugfixes from later Tor release
11894   series, including a bugfix for a crash issue that had affected relays
11895   under memory pressure. It also adds a new directory authority, Bastet.
11897   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
11898   2018. If you need a release with long-term support, please stick with
11899   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11901   o Directory authority changes:
11902     - Add "Bastet" as a ninth directory authority to the default list.
11903       Closes ticket 23910.
11904     - The directory authority "Longclaw" has changed its IP address.
11905       Closes ticket 23592.
11907   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
11908     - Fix a timing-based assertion failure that could occur when the
11909       circuit out-of-memory handler freed a connection's output buffer.
11910       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
11912   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
11913     - Remove longclaw's IPv6 address, as it will soon change. Authority
11914       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
11915       3/8 directory authorities with IPv6 addresses, but there are also
11916       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
11918   o Minor features (geoip):
11919     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
11920       Country database.
11923 Changes in version 0.2.9.13 - 2017-10-25
11924   Tor 0.2.9.13 backports a collection of bugfixes from later Tor release
11925   series, including a bugfix for a crash issue that had affected relays
11926   under memory pressure. It also adds a new directory authority, Bastet.
11928   o Directory authority changes:
11929     - Add "Bastet" as a ninth directory authority to the default list.
11930       Closes ticket 23910.
11931     - The directory authority "Longclaw" has changed its IP address.
11932       Closes ticket 23592.
11934   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
11935     - Fix a timing-based assertion failure that could occur when the
11936       circuit out-of-memory handler freed a connection's output buffer.
11937       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
11939   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
11940     - Remove longclaw's IPv6 address, as it will soon change. Authority
11941       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
11942       3/8 directory authorities with IPv6 addresses, but there are also
11943       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
11945   o Minor features (geoip):
11946     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
11947       Country database.
11949   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
11950     - When a directory authority rejects a descriptor or extrainfo with
11951       a given digest, mark that digest as undownloadable, so that we do
11952       not attempt to download it again over and over. We previously
11953       tried to avoid downloading such descriptors by other means, but we
11954       didn't notice if we accidentally downloaded one anyway. This
11955       behavior became problematic in 0.2.7.2-alpha, when authorities
11956       began pinning Ed25519 keys. Fixes bug 22349; bugfix
11957       on 0.2.1.19-alpha.
11959   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
11960     - Clear the address when node_get_prim_orport() returns early.
11961       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
11963   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
11964     - When running as a Windows service, set the ID of the main thread
11965       correctly. Failure to do so made us fail to send log messages to
11966       the controller in 0.2.1.16-rc, slowed down controller event
11967       delivery in 0.2.7.3-rc and later, and crash with an assertion
11968       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
11969       Patch and diagnosis from "Vort".
11972 Changes in version 0.3.0.12 - 2017-10-25
11973   Tor 0.3.0.12 backports a collection of bugfixes from later Tor release
11974   series, including a bugfix for a crash issue that had affected relays
11975   under memory pressure. It also adds a new directory authority, Bastet.
11977   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
11978   2018. If you need a release with long-term support, please stick with
11979   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11981   o Directory authority changes:
11982     - Add "Bastet" as a ninth directory authority to the default list.
11983       Closes ticket 23910.
11984     - The directory authority "Longclaw" has changed its IP address.
11985       Closes ticket 23592.
11987   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
11988     - Fix a timing-based assertion failure that could occur when the
11989       circuit out-of-memory handler freed a connection's output buffer.
11990       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
11992   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
11993     - Remove longclaw's IPv6 address, as it will soon change. Authority
11994       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
11995       3/8 directory authorities with IPv6 addresses, but there are also
11996       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
11998   o Minor features (geoip):
11999     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12000       Country database.
12002   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
12003     - When a directory authority rejects a descriptor or extrainfo with
12004       a given digest, mark that digest as undownloadable, so that we do
12005       not attempt to download it again over and over. We previously
12006       tried to avoid downloading such descriptors by other means, but we
12007       didn't notice if we accidentally downloaded one anyway. This
12008       behavior became problematic in 0.2.7.2-alpha, when authorities
12009       began pinning Ed25519 keys. Fixes bug 22349; bugfix
12010       on 0.2.1.19-alpha.
12012   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
12013     - Avoid a possible double close of a circuit by the intro point on
12014       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12015       bugfix on 0.3.0.1-alpha.
12017   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
12018     - Clear the address when node_get_prim_orport() returns early.
12019       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12021   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
12022     - When running as a Windows service, set the ID of the main thread
12023       correctly. Failure to do so made us fail to send log messages to
12024       the controller in 0.2.1.16-rc, slowed down controller event
12025       delivery in 0.2.7.3-rc and later, and crash with an assertion
12026       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
12027       Patch and diagnosis from "Vort".
12030 Changes in version 0.3.1.8 - 2017-10-25
12031   Tor 0.3.1.8 is the second stable release in the 0.3.1 series.
12032   It includes several bugfixes, including a bugfix for a crash issue
12033   that had affected relays under memory pressure. It also adds
12034   a new directory authority, Bastet.
12036   o Directory authority changes:
12037     - Add "Bastet" as a ninth directory authority to the default list.
12038       Closes ticket 23910.
12039     - The directory authority "Longclaw" has changed its IP address.
12040       Closes ticket 23592.
12042   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12043     - Fix a timing-based assertion failure that could occur when the
12044       circuit out-of-memory handler freed a connection's output buffer.
12045       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12047   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12048     - Remove longclaw's IPv6 address, as it will soon change. Authority
12049       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12050       3/8 directory authorities with IPv6 addresses, but there are also
12051       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12053   o Minor features (geoip):
12054     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12055       Country database.
12057   o Minor bugfixes (compilation, backport from 0.3.2.2-alpha):
12058     - Fix a compilation warning when building with zstd support on
12059       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
12060       and fixed by Andreas Stieger.
12062   o Minor bugfixes (compression, backport from 0.3.2.2-alpha):
12063     - Handle a pathological case when decompressing Zstandard data when
12064       the output buffer size is zero. Fixes bug 23551; bugfix
12065       on 0.3.1.1-alpha.
12067   o Minor bugfixes (directory authority, backport from 0.3.2.1-alpha):
12068     - Remove the length limit on HTTP status lines that authorities can
12069       send in their replies. Fixes bug 23499; bugfix on 0.3.1.6-rc.
12071   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
12072     - Avoid a possible double close of a circuit by the intro point on
12073       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12074       bugfix on 0.3.0.1-alpha.
12076   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
12077     - Clear the address when node_get_prim_orport() returns early.
12078       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12080   o Minor bugfixes (unit tests, backport from 0.3.2.2-alpha):
12081     - Fix additional channelpadding unit test failures by using mocked
12082       time instead of actual time for all tests. Fixes bug 23608; bugfix
12083       on 0.3.1.1-alpha.
12086 Changes in version 0.3.2.2-alpha - 2017-09-29
12087   Tor 0.3.2.2-alpha is the second release in the 0.3.2 series. This
12088   release fixes several minor bugs in the new scheduler and next-
12089   generation onion services; both features were newly added in the 0.3.2
12090   series. Other fixes in this alpha include several fixes for non-fatal
12091   tracebacks which would appear in logs.
12093   With the aim to stabilise the 0.3.2 series by 15 December 2017, this
12094   alpha does not contain any substantial new features. Minor features
12095   include better testing and logging.
12097   The following comprises the complete list of changes included
12098   in 0.3.2.2-alpha:
12100   o Major bugfixes (relay, crash, assertion failure):
12101     - Fix a timing-based assertion failure that could occur when the
12102       circuit out-of-memory handler freed a connection's output buffer.
12103       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12105   o Major bugfixes (scheduler):
12106     - If a channel is put into the scheduler's pending list, then it
12107       starts closing, and then if the scheduler runs before it finishes
12108       closing, the scheduler will get stuck trying to flush its cells
12109       while the lower layers refuse to cooperate. Fix that race
12110       condition by giving the scheduler an escape method. Fixes bug
12111       23676; bugfix on 0.3.2.1-alpha.
12113   o Minor features (build, compilation):
12114     - The "check-changes" feature is now part of the "make check" tests;
12115       we'll use it to try to prevent misformed changes files from
12116       accumulating. Closes ticket 23564.
12117     - Tor builds should now fail if there are any mismatches between the
12118       C type representing a configuration variable and the C type the
12119       data-driven parser uses to store a value there. Previously, we
12120       needed to check these by hand, which sometimes led to mistakes.
12121       Closes ticket 23643.
12123   o Minor features (directory authorities):
12124     - Remove longclaw's IPv6 address, as it will soon change. Authority
12125       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12126       3/8 directory authorities with IPv6 addresses, but there are also
12127       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12129   o Minor features (hidden service, circuit, logging):
12130     - Improve logging of many callsite in the circuit subsystem to print
12131       the circuit identifier(s).
12132     - Log when we cleanup an intro point from a service so we know when
12133       and for what reason it happened. Closes ticket 23604.
12135   o Minor features (logging):
12136     - Log more circuit information whenever we are about to try to
12137       package a relay cell on a circuit with a nonexistent n_chan.
12138       Attempt to diagnose ticket 8185.
12139     - Improve info-level log identification of particular circuits, to
12140       help with debugging. Closes ticket 23645.
12142   o Minor features (relay):
12143     - When choosing which circuits can be expired as unused, consider
12144       circuits from clients even if those clients used regular CREATE
12145       cells to make them; and do not consider circuits from relays even
12146       if they were made with CREATE_FAST. Part of ticket 22805.
12148   o Minor features (robustness):
12149     - Change several fatal assertions when flushing buffers into non-
12150       fatal assertions, to prevent any recurrence of 23690.
12152   o Minor features (spec conformance, bridge, diagnostic):
12153     - When handling the USERADDR command on an ExtOrPort, warn when the
12154       transports provides a USERADDR with no port. In a future version,
12155       USERADDR commands of this format may be rejected. Detects problems
12156       related to ticket 23080.
12158   o Minor features (testing):
12159     - Add a unit test to make sure that our own generated platform
12160       string will be accepted by directory authorities. Closes
12161       ticket 22109.
12163   o Minor bugfixes (bootstrapping):
12164     - When warning about state file clock skew, report the correct
12165       direction for the detected skew. Fixes bug 23606; bugfix
12166       on 0.2.8.1-alpha.
12167     - Avoid an assertion failure when logging a state file clock skew
12168       very early in bootstrapping. Fixes bug 23607; bugfix
12169       on 0.3.2.1-alpha.
12171   o Minor bugfixes (build, compilation):
12172     - Fix a compilation warning when building with zstd support on
12173       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
12174       and fixed by Andreas Stieger.
12175     - When searching for OpenSSL, don't accept any OpenSSL library that
12176       lacks TLSv1_1_method(): Tor doesn't build with those versions.
12177       Additionally, look in /usr/local/opt/openssl, if it's present.
12178       These changes together repair the default build on OSX systems
12179       with Homebrew installed. Fixes bug 23602; bugfix on 0.2.7.2-alpha.
12181   o Minor bugfixes (compression):
12182     - Handle a pathological case when decompressing Zstandard data when
12183       the output buffer size is zero. Fixes bug 23551; bugfix
12184       on 0.3.1.1-alpha.
12186   o Minor bugfixes (documentation):
12187     - Fix manpage to not refer to the obsolete (and misspelled)
12188       UseEntryGuardsAsDirectoryGuards parameter in the description of
12189       NumDirectoryGuards. Fixes bug 23611; bugfix on 0.2.4.8-alpha.
12191   o Minor bugfixes (hidden service v3):
12192     - Don't log an assertion failure when we can't find the right
12193       information to extend to an introduction point. In rare cases,
12194       this could happen, causing a warning, even though tor would
12195       recover gracefully. Fixes bug 23159; bugfix on 0.3.2.1-alpha.
12196     - Pad RENDEZVOUS cell up to the size of the legacy cell which is
12197       much bigger so the rendezvous point can't distinguish which hidden
12198       service protocol is being used. Fixes bug 23420; bugfix
12199       on 0.3.2.1-alpha.
12201   o Minor bugfixes (hidden service, relay):
12202     - Avoid a possible double close of a circuit by the intro point on
12203       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12204       bugfix on 0.3.0.1-alpha.
12206   o Minor bugfixes (logging, relay shutdown, annoyance):
12207     - When a circuit is marked for close, do not attempt to package any
12208       cells for channels on that circuit. Previously, we would detect
12209       this condition lower in the call stack, when we noticed that the
12210       circuit had no attached channel, and log an annoying message.
12211       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
12213   o Minor bugfixes (scheduler):
12214     - When switching schedulers due to a consensus change, we didn't
12215       give the new scheduler a chance to react to the consensus. Fix
12216       that. Fixes bug 23537; bugfix on 0.3.2.1-alpha.
12217     - Make the KISTSchedRunInterval option a non negative value. With
12218       this, the way to disable KIST through the consensus is to set it
12219       to 0. Fixes bug 23539; bugfix on 0.3.2.1-alpha.
12220     - Only notice log the selected scheduler when we switch scheduler
12221       types. Fixes bug 23552; bugfix on 0.3.2.1-alpha.
12222     - Avoid a compilation warning on macOS in scheduler_ev_add() caused
12223       by a different tv_usec data type. Fixes bug 23575; bugfix
12224       on 0.3.2.1-alpha.
12225     - Make a hard exit if tor is unable to pick a scheduler which can
12226       happen if the user specifies a scheduler type that is not
12227       supported and not other types in Schedulers. Fixes bug 23581;
12228       bugfix on 0.3.2.1-alpha.
12229     - Properly initialize the scheduler last run time counter so it is
12230       not 0 at the first tick. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
12232   o Minor bugfixes (testing):
12233     - Capture and detect several "Result does not fit" warnings in unit
12234       tests on platforms with 32-bit time_t. Fixes bug 21800; bugfix
12235       on 0.2.9.3-alpha.
12236     - Fix additional channelpadding unit test failures by using mocked
12237       time instead of actual time for all tests. Fixes bug 23608; bugfix
12238       on 0.3.1.1-alpha.
12239     - The removal of some old scheduler options caused some tests to
12240       fail on BSD systems. Assume current behavior is correct and make
12241       the tests pass again. Fixes bug 23566; bugfix on 0.3.2.1-alpha.
12243   o Code simplification and refactoring:
12244     - Remove various ways of testing circuits and connections for
12245       "clientness"; instead, favor channel_is_client(). Part of
12246       ticket 22805.
12248   o Deprecated features:
12249     - The ReachableDirAddresses and ClientPreferIPv6DirPort options are
12250       now deprecated; they do not apply to relays, and they have had no
12251       effect on clients since 0.2.8.x. Closes ticket 19704.
12253   o Documentation:
12254     - HiddenServiceVersion man page entry wasn't mentioning the now
12255       supported version 3. Fixes ticket 23580; bugfix on 0.3.2.1-alpha.
12256     - Clarify that the Address option is entirely about setting an
12257       advertised IPv4 address. Closes ticket 18891.
12258     - Clarify the manpage's use of the term "address" to clarify what
12259       kind of address is intended. Closes ticket 21405.
12260     - Document that onion service subdomains are allowed, and ignored.
12261       Closes ticket 18736.
12264 Changes in version 0.3.2.1-alpha - 2017-09-18
12265   Tor 0.3.2.1-alpha is the first release in the 0.3.2.x series. It
12266   includes support for our next-generation ("v3") onion service
12267   protocol, and adds a new circuit scheduler for more responsive
12268   forwarding decisions from relays. There are also numerous other small
12269   features and bugfixes here.
12271   Below are the changes since Tor 0.3.1.7.
12273   o Major feature (scheduler, channel):
12274     - Tor now uses new schedulers to decide which circuits should
12275       deliver cells first, in order to improve congestion at relays. The
12276       first type is called "KIST" ("Kernel Informed Socket Transport"),
12277       and is only available on Linux-like systems: it uses feedback from
12278       the kernel to prevent the kernel's TCP buffers from growing too
12279       full. The second new scheduler type is called "KISTLite": it
12280       behaves the same as KIST, but runs on systems without kernel
12281       support for inspecting TCP implementation details. The old
12282       scheduler is still available, under the name "Vanilla". To change
12283       the default scheduler preference order, use the new "Schedulers"
12284       option. (The default preference order is "KIST,KISTLite,Vanilla".)
12286       Matt Traudt implemented KIST, based on research by Rob Jansen,
12287       John Geddes, Christ Wacek, Micah Sherr, and Paul Syverson. For
12288       more information, see the design paper at
12289       http://www.robgjansen.com/publications/kist-sec2014.pdf and the
12290       followup implementation paper at https://arxiv.org/abs/1709.01044.
12291       Closes ticket 12541.
12293   o Major features (next-generation onion services):
12294     - Tor now supports the next-generation onion services protocol for
12295       clients and services! As part of this release, the core of
12296       proposal 224 has been implemented and is available for
12297       experimentation and testing by our users. This newer version of
12298       onion services ("v3") features many improvements over the legacy
12299       system, including:
12301       a) Better crypto (replaced SHA1/DH/RSA1024
12302       with SHA3/ed25519/curve25519)
12304       b) Improved directory protocol, leaking much less information to
12305       directory servers.
12307       c) Improved directory protocol, with smaller surface for
12308       targeted attacks.
12310       d) Better onion address security against impersonation.
12312       e) More extensible introduction/rendezvous protocol.
12314       f) A cleaner and more modular codebase.
12316       You can identify a next-generation onion address by its length:
12317       they are 56 characters long, as in
12318       "4acth47i6kxnvkewtm6q7ib2s3ufpo5sqbsnzjpbi7utijcltosqemad.onion".
12320       In the future, we will release more options and features for v3
12321       onion services, but we first need a testing period, so that the
12322       current codebase matures and becomes more robust. Planned features
12323       include: offline keys, advanced client authorization, improved
12324       guard algorithms, and statistics. For full details, see
12325       proposal 224.
12327       Legacy ("v2") onion services will still work for the foreseeable
12328       future, and will remain the default until this new codebase gets
12329       tested and hardened. Service operators who want to experiment with
12330       the new system can use the 'HiddenServiceVersion 3' torrc
12331       directive along with the regular onion service configuration
12332       options. We will publish a blog post about this new feature
12333       soon! Enjoy!
12335   o Major bugfixes (usability, control port):
12336     - Report trusted clock skew indications as bootstrap errors, so
12337       controllers can more easily alert users when their clocks are
12338       wrong. Fixes bug 23506; bugfix on 0.1.2.6-alpha.
12340   o Minor features (bug detection):
12341     - Log a warning message with a stack trace for any attempt to call
12342       get_options() during option validation. This pattern has caused
12343       subtle bugs in the past. Closes ticket 22281.
12345   o Minor features (client):
12346     - You can now use Tor as a tunneled HTTP proxy: use the new
12347       HTTPTunnelPort option to open a port that accepts HTTP CONNECT
12348       requests. Closes ticket 22407.
12349     - Add an extra check to make sure that we always use the newer guard
12350       selection code for picking our guards. Closes ticket 22779.
12351     - When downloading (micro)descriptors, don't split the list into
12352       multiple requests unless we want at least 32 descriptors.
12353       Previously, we split at 4, not 32, which led to significant
12354       overhead in HTTP request size and degradation in compression
12355       performance. Closes ticket 23220.
12357   o Minor features (command line):
12358     - Add a new commandline option, --key-expiration, which prints when
12359       the current signing key is going to expire. Implements ticket
12360       17639; patch by Isis Lovecruft.
12362   o Minor features (control port):
12363     - If an application tries to use the control port as an HTTP proxy,
12364       respond with a meaningful "This is the Tor control port" message,
12365       and log the event. Closes ticket 1667. Patch from Ravi
12366       Chandra Padmala.
12367     - Provide better error message for GETINFO desc/(id|name) when not
12368       fetching router descriptors. Closes ticket 5847. Patch by
12369       Kevin Butler.
12370     - Add GETINFO "{desc,md}/download-enabled", to inform the controller
12371       whether Tor will try to download router descriptors and
12372       microdescriptors respectively. Closes ticket 22684.
12373     - Added new GETINFO targets "ip-to-country/{ipv4,ipv6}-available",
12374       so controllers can tell whether the geoip databases are loaded.
12375       Closes ticket 23237.
12376     - Adds a timestamp field to the CIRC_BW and STREAM_BW bandwidth
12377       events. Closes ticket 19254. Patch by "DonnchaC".
12379   o Minor features (development support):
12380     - Developers can now generate a call-graph for Tor using the
12381       "calltool" python program, which post-processes object dumps. It
12382       should work okay on many Linux and OSX platforms, and might work
12383       elsewhere too. To run it, install calltool from
12384       https://gitweb.torproject.org/user/nickm/calltool.git and run
12385       "make callgraph". Closes ticket 19307.
12387   o Minor features (ed25519):
12388     - Add validation function to checks for torsion components in
12389       ed25519 public keys, used by prop224 client-side code. Closes
12390       ticket 22006. Math help by Ian Goldberg.
12392   o Minor features (exit relay, DNS):
12393     - Improve the clarity and safety of the log message from evdns when
12394       receiving an apparently spoofed DNS reply. Closes ticket 3056.
12396   o Minor features (integration, hardening):
12397     - Add a new NoExec option to prevent Tor from running other
12398       programs. When this option is set to 1, Tor will never try to run
12399       another program, regardless of the settings of
12400       PortForwardingHelper, ClientTransportPlugin, or
12401       ServerTransportPlugin. Once NoExec is set, it cannot be disabled
12402       without restarting Tor. Closes ticket 22976.
12404   o Minor features (logging):
12405     - Improve the warning message for specifying a relay by nickname.
12406       The previous message implied that nickname registration was still
12407       part of the Tor network design, which it isn't. Closes
12408       ticket 20488.
12409     - If the sandbox filter fails to load, suggest to the user that
12410       their kernel might not support seccomp2. Closes ticket 23090.
12412   o Minor features (portability):
12413     - Check at configure time whether uint8_t is the same type as
12414       unsigned char. Lots of existing code already makes this
12415       assumption, and there could be strict aliasing issues if the
12416       assumption is violated. Closes ticket 22410.
12418   o Minor features (relay, configuration):
12419     - Reject attempts to use relative file paths when RunAsDaemon is
12420       set. Previously, Tor would accept these, but the directory-
12421       changing step of RunAsDaemon would give strange and/or confusing
12422       results. Closes ticket 22731.
12424   o Minor features (startup, safety):
12425     - When configured to write a PID file, Tor now exits if it is unable
12426       to do so. Previously, it would warn and continue. Closes
12427       ticket 20119.
12429   o Minor features (static analysis):
12430     - The BUG() macro has been changed slightly so that Coverity no
12431       longer complains about dead code if the bug is impossible. Closes
12432       ticket 23054.
12434   o Minor features (testing):
12435     - The default chutney network tests now include tests for the v3
12436       hidden service design. Make sure you have the latest version of
12437       chutney if you want to run these. Closes ticket 22437.
12438     - Add a unit test to verify that we can parse a hardcoded v2 hidden
12439       service descriptor. Closes ticket 15554.
12441   o Minor bugfixes (certificate handling):
12442     - Fix a time handling bug in Tor certificates set to expire after
12443       the year 2106. Fixes bug 23055; bugfix on 0.3.0.1-alpha. Found by
12444       Coverity as CID 1415728.
12446   o Minor bugfixes (client, usability):
12447     - Refrain from needlessly rejecting SOCKS5-with-hostnames and
12448       SOCKS4a requests that contain IP address strings, even when
12449       SafeSocks in enabled, as this prevents user from connecting to
12450       known IP addresses without relying on DNS for resolving. SafeSocks
12451       still rejects SOCKS connections that connect to IP addresses when
12452       those addresses are _not_ encoded as hostnames. Fixes bug 22461;
12453       bugfix on Tor 0.2.6.2-alpha.
12455   o Minor bugfixes (code correctness):
12456     - Call htons() in extend_cell_format() for encoding a 16-bit value.
12457       Previously we used ntohs(), which happens to behave the same on
12458       all the platforms we support, but which isn't really correct.
12459       Fixes bug 23106; bugfix on 0.2.4.8-alpha.
12460     - For defense-in-depth, make the controller's write_escaped_data()
12461       function robust to extremely long inputs. Fixes bug 19281; bugfix
12462       on 0.1.1.1-alpha. Reported by Guido Vranken.
12464   o Minor bugfixes (compilation):
12465     - Fix unused-variable warnings in donna's Curve25519 SSE2 code.
12466       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
12468   o Minor bugfixes (consensus expiry):
12469     - Check for adequate directory information correctly. Previously, Tor
12470       would reconsider whether it had sufficient directory information
12471       every 2 minutes. Fixes bug 23091; bugfix on 0.2.0.19-alpha.
12473   o Minor bugfixes (directory protocol):
12474     - Directory servers now include a "Date:" http header for response
12475       codes other than 200. Clients starting with a skewed clock and a
12476       recent consensus were getting "304 Not modified" responses from
12477       directory authorities, so without the Date header, the client
12478       would never hear about a wrong clock. Fixes bug 23499; bugfix
12479       on 0.0.8rc1.
12480     - Make clients wait for 6 seconds before trying to download a
12481       consensus from an authority. Fixes bug 17750; bugfix
12482       on 0.2.8.1-alpha.
12484   o Minor bugfixes (DoS-resistance):
12485     - If future code asks if there are any running bridges, without
12486       checking if bridges are enabled, log a BUG warning rather than
12487       crashing. Fixes bug 23524; bugfix on 0.3.0.1-alpha.
12489   o Minor bugfixes (format strictness):
12490     - Restrict several data formats to decimal. Previously, the
12491       BuildTimeHistogram entries in the state file, the "bw=" entries in
12492       the bandwidth authority file, and the process IDs passed to the
12493       __OwningControllerProcess option could all be specified in hex or
12494       octal as well as in decimal. This was not an intentional feature.
12495       Fixes bug 22802; bugfixes on 0.2.2.1-alpha, 0.2.2.2-alpha,
12496       and 0.2.2.28-beta.
12498   o Minor bugfixes (heartbeat):
12499     - If we fail to write a heartbeat message, schedule a retry for the
12500       minimum heartbeat interval number of seconds in the future. Fixes
12501       bug 19476; bugfix on 0.2.3.1-alpha.
12503   o Minor bugfixes (linux seccomp2 sandbox, logging):
12504     - Fix some messages on unexpected errors from the seccomp2 library.
12505       Fixes bug 22750; bugfix on 0.2.5.1-alpha. Patch from "cypherpunks".
12507   o Minor bugfixes (logging):
12508     - Remove duplicate log messages regarding opening non-local
12509       SocksPorts upon parsing config and opening listeners at startup.
12510       Fixes bug 4019; bugfix on 0.2.3.3-alpha.
12511     - Use a more comprehensible log message when telling the user
12512       they've excluded every running exit node. Fixes bug 7890; bugfix
12513       on 0.2.2.25-alpha.
12514     - When logging the number of descriptors we intend to download per
12515       directory request, do not log a number higher than then the number
12516       of descriptors we're fetching in total. Fixes bug 19648; bugfix
12517       on 0.1.1.8-alpha.
12518     - When warning about a directory owned by the wrong user, log the
12519       actual name of the user owning the directory. Previously, we'd log
12520       the name of the process owner twice. Fixes bug 23487; bugfix
12521       on 0.2.9.1-alpha.
12522     - The tor specification says hop counts are 1-based, so fix two log
12523       messages that mistakenly logged 0-based hop counts. Fixes bug
12524       18982; bugfix on 0.2.6.2-alpha and 0.2.4.5-alpha. Patch by teor.
12525       Credit to Xiaofan Li for reporting this issue.
12527   o Minor bugfixes (portability):
12528     - Stop using the PATH_MAX variable, which is not defined on GNU
12529       Hurd. Fixes bug 23098; bugfix on 0.3.1.1-alpha.
12531   o Minor bugfixes (relay):
12532     - When uploading our descriptor for the first time after startup,
12533       report the reason for uploading as "Tor just started" rather than
12534       leaving it blank. Fixes bug 22885; bugfix on 0.2.3.4-alpha.
12535     - Avoid unnecessary calls to directory_fetches_from_authorities() on
12536       relays, to prevent spurious address resolutions and descriptor
12537       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
12538       bugfix on in 0.2.8.1-alpha.
12540   o Minor bugfixes (tests):
12541     - Fix a broken unit test for the OutboundAddress option: the parsing
12542       function was never returning an error on failure. Fixes bug 23366;
12543       bugfix on 0.3.0.3-alpha.
12544     - Fix a signed-integer overflow in the unit tests for
12545       dir/download_status_random_backoff, which was untriggered until we
12546       fixed bug 17750. Fixes bug 22924; bugfix on 0.2.9.1-alpha.
12548   o Minor bugfixes (usability, control port):
12549     - Stop making an unnecessary routerlist check in NETINFO clock skew
12550       detection; this was preventing clients from reporting NETINFO clock
12551       skew to controllers. Fixes bug 23532; bugfix on 0.2.4.4-alpha.
12553   o Code simplification and refactoring:
12554     - Extract the code for handling newly-open channels into a separate
12555       function from the general code to handle channel state
12556       transitions. This change simplifies our callgraph, reducing the
12557       size of the largest strongly connected component by roughly a
12558       factor of two. Closes ticket 22608.
12559     - Remove dead code for largely unused statistics on the number of
12560       times we've attempted various public key operations. Fixes bug
12561       19871; bugfix on 0.1.2.4-alpha. Fix by Isis Lovecruft.
12562     - Remove several now-obsolete functions for asking about old
12563       variants directory authority status. Closes ticket 22311; patch
12564       from "huyvq".
12565     - Remove some of the code that once supported "Named" and "Unnamed"
12566       routers. Authorities no longer vote for these flags. Closes
12567       ticket 22215.
12568     - Rename the obsolete malleable hybrid_encrypt functions used in TAP
12569       and old hidden services, to indicate that they aren't suitable for
12570       new protocols or formats. Closes ticket 23026.
12571     - Replace our STRUCT_OFFSET() macro with offsetof(). Closes ticket
12572       22521. Patch from Neel Chauhan.
12573     - Split the enormous circuit_send_next_onion_skin() function into
12574       multiple subfunctions. Closes ticket 22804.
12575     - Split the portions of the buffer.c module that handle particular
12576       protocols into separate modules. Part of ticket 23149.
12577     - Use our test macros more consistently, to produce more useful
12578       error messages when our unit tests fail. Add coccinelle patches to
12579       allow us to re-check for test macro uses. Closes ticket 22497.
12581   o Deprecated features:
12582     - Deprecate HTTPProxy/HTTPProxyAuthenticator config options. They
12583       only applies to direct unencrypted HTTP connections to your
12584       directory server, which your Tor probably isn't using. Closes
12585       ticket 20575.
12587   o Documentation:
12588     - Clarify in the manual that "Sandbox 1" is only supported on Linux
12589       kernels. Closes ticket 22677.
12590     - Document all values of PublishServerDescriptor in the manpage.
12591       Closes ticket 15645.
12592     - Improve the documentation for the directory port part of the
12593       DirAuthority line. Closes ticket 20152.
12594     - Restore documentation for the authorities' "approved-routers"
12595       file. Closes ticket 21148.
12597   o Removed features:
12598     - The AllowDotExit option has been removed as unsafe. It has been
12599       deprecated since 0.2.9.2-alpha. Closes ticket 23426.
12600     - The ClientDNSRejectInternalAddresses flag can no longer be set on
12601       non-testing networks. It has been deprecated since 0.2.9.2-alpha.
12602       Closes ticket 21031.
12603     - The controller API no longer includes an AUTHDIR_NEWDESCS event:
12604       nobody was using it any longer. Closes ticket 22377.
12607 Changes in version 0.2.8.15 - 2017-09-18
12608   Tor 0.2.8.15 backports a collection of bugfixes from later
12609   Tor series.
12611   Most significantly, it includes a fix for TROVE-2017-008, a
12612   security bug that affects hidden services running with the
12613   SafeLogging option disabled. For more information, see
12614   https://trac.torproject.org/projects/tor/ticket/23490
12616   Note that Tor 0.2.8.x will no longer be supported after 1 Jan
12617   2018.  We suggest that you upgrade to the latest stable release if
12618   possible.  If you can't, we recommend that you upgrade at least to
12619   0.2.9, which will be supported until 2020.
12621   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
12622     - Avoid an assertion failure bug affecting our implementation of
12623       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
12624       handling of "0xx" differs from what we had expected. Fixes bug
12625       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
12627   o Minor features:
12628     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
12629       Country database.
12631   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
12632     - Backport a fix for an "unused variable" warning that appeared
12633       in some versions of mingw. Fixes bug 22838; bugfix on
12634       0.2.8.1-alpha.
12636   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
12637     - Fix a memset() off the end of an array when packing cells. This
12638       bug should be harmless in practice, since the corrupted bytes are
12639       still in the same structure, and are always padding bytes,
12640       ignored, or immediately overwritten, depending on compiler
12641       behavior. Nevertheless, because the memset()'s purpose is to make
12642       sure that any other cell-handling bugs can't expose bytes to the
12643       network, we need to fix it. Fixes bug 22737; bugfix on
12644       0.2.4.11-alpha. Fixes CID 1401591.
12646   o Build features (backport from 0.3.1.5-alpha):
12647     - Tor's repository now includes a Travis Continuous Integration (CI)
12648       configuration file (.travis.yml). This is meant to help new
12649       developers and contributors who fork Tor to a Github repository be
12650       better able to test their changes, and understand what we expect
12651       to pass. To use this new build feature, you must fork Tor to your
12652       Github account, then go into the "Integrations" menu in the
12653       repository settings for your fork and enable Travis, then push
12654       your changes. Closes ticket 22636.
12657 Changes in version 0.2.9.12 - 2017-09-18
12658   Tor 0.2.9.12 backports a collection of bugfixes from later
12659   Tor series.
12661   Most significantly, it includes a fix for TROVE-2017-008, a
12662   security bug that affects hidden services running with the
12663   SafeLogging option disabled. For more information, see
12664   https://trac.torproject.org/projects/tor/ticket/23490
12666   o Major features (security, backport from 0.3.0.2-alpha):
12667     - Change the algorithm used to decide DNS TTLs on client and server
12668       side, to better resist DNS-based correlation attacks like the
12669       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
12670       Feamster. Now relays only return one of two possible DNS TTL
12671       values, and clients are willing to believe DNS TTL values up to 3
12672       hours long. Closes ticket 19769.
12674   o Major bugfixes (crash, directory connections, backport from 0.3.0.5-rc):
12675     - Fix a rare crash when sending a begin cell on a circuit whose
12676       linked directory connection had already been closed. Fixes bug
12677       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
12679   o Major bugfixes (DNS, backport from 0.3.0.2-alpha):
12680     - Fix a bug that prevented exit nodes from caching DNS records for
12681       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
12683   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
12684     - Fix a typo that had prevented TPROXY-based transparent proxying
12685       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
12686       Patch from "d4fq0fQAgoJ".
12688   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
12689     - Avoid an assertion failure bug affecting our implementation of
12690       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
12691       handling of "0xx" differs from what we had expected. Fixes bug
12692       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
12694   o Minor features (code style, backport from 0.3.1.3-alpha):
12695     - Add "Falls through" comments to our codebase, in order to silence
12696       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
12697       Stieger. Closes ticket 22446.
12699   o Minor features (geoip):
12700     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
12701       Country database.
12703   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.1-alpha):
12704     - Roll over monthly accounting at the configured hour and minute,
12705       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
12706       Found by Andrey Karpov with PVS-Studio.
12708   o Minor bugfixes (compilation, backport from 0.3.1.5-alpha):
12709     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
12710       bugfix on 0.2.8.1-alpha.
12711     - Fix warnings when building with libscrypt and openssl scrypt support
12712       on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
12713     - When building with certain versions the mingw C header files, avoid
12714       float-conversion warnings when calling the C functions isfinite(),
12715       isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha.
12717   o Minor bugfixes (compilation, backport from 0.3.1.7):
12718     - Avoid compiler warnings in the unit tests for running tor_sscanf()
12719       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
12721   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
12722     - Backport a fix for an "unused variable" warning that appeared
12723       in some versions of mingw. Fixes bug 22838; bugfix on
12724       0.2.8.1-alpha.
12726   o Minor bugfixes (controller, backport from 0.3.1.7):
12727     - Do not crash when receiving a HSPOST command with an empty body.
12728       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
12729     - Do not crash when receiving a POSTDESCRIPTOR command with an
12730       empty body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
12732   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
12733     - Avoid Coverity build warnings related to our BUG() macro. By
12734       default, Coverity treats BUG() as the Linux kernel does: an
12735       instant abort(). We need to override that so our BUG() macro
12736       doesn't prevent Coverity from analyzing functions that use it.
12737       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
12739   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
12740     - Fix a memset() off the end of an array when packing cells. This
12741       bug should be harmless in practice, since the corrupted bytes are
12742       still in the same structure, and are always padding bytes,
12743       ignored, or immediately overwritten, depending on compiler
12744       behavior. Nevertheless, because the memset()'s purpose is to make
12745       sure that any other cell-handling bugs can't expose bytes to the
12746       network, we need to fix it. Fixes bug 22737; bugfix on
12747       0.2.4.11-alpha. Fixes CID 1401591.
12749   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
12750     - When setting the maximum number of connections allowed by the OS,
12751       always allow some extra file descriptors for other files. Fixes
12752       bug 22797; bugfix on 0.2.0.10-alpha.
12754   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
12755     - Avoid a sandbox failure when trying to re-bind to a socket and
12756       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
12758   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
12759     - Permit the fchmod system call, to avoid crashing on startup when
12760       starting with the seccomp2 sandbox and an unexpected set of
12761       permissions on the data directory or its contents. Fixes bug
12762       22516; bugfix on 0.2.5.4-alpha.
12764   o Minor bugfixes (relay, backport from 0.3.0.5-rc):
12765     - Avoid a double-marked-circuit warning that could happen when we
12766       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
12767       on 0.1.0.1-rc.
12769   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
12770     - Reject version numbers with non-numeric prefixes (such as +, -, or
12771       whitespace). Disallowing whitespace prevents differential version
12772       parsing between POSIX-based and Windows platforms. Fixes bug 21507
12773       and part of 21508; bugfix on 0.0.8pre1.
12775   o Build features (backport from 0.3.1.5-alpha):
12776     - Tor's repository now includes a Travis Continuous Integration (CI)
12777       configuration file (.travis.yml). This is meant to help new
12778       developers and contributors who fork Tor to a Github repository be
12779       better able to test their changes, and understand what we expect
12780       to pass. To use this new build feature, you must fork Tor to your
12781       Github account, then go into the "Integrations" menu in the
12782       repository settings for your fork and enable Travis, then push
12783       your changes. Closes ticket 22636.
12786 Changes in version 0.3.0.11 - 2017-09-18
12787   Tor 0.3.0.11 backports a collection of bugfixes from Tor the 0.3.1
12788   series.
12790   Most significantly, it includes a fix for TROVE-2017-008, a
12791   security bug that affects hidden services running with the
12792   SafeLogging option disabled. For more information, see
12793   https://trac.torproject.org/projects/tor/ticket/23490
12795   o Minor features (code style, backport from 0.3.1.7):
12796     - Add "Falls through" comments to our codebase, in order to silence
12797       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
12798       Stieger. Closes ticket 22446.
12800   o Minor features:
12801     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
12802       Country database.
12804   o Minor bugfixes (compilation, backport from 0.3.1.7):
12805     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
12806       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
12808   o Minor bugfixes (controller, backport from 0.3.1.7):
12809     - Do not crash when receiving a HSPOST command with an empty body.
12810       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
12811     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
12812       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
12814   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
12815     - When setting the maximum number of connections allowed by the OS,
12816       always allow some extra file descriptors for other files. Fixes
12817       bug 22797; bugfix on 0.2.0.10-alpha.
12819   o Minor bugfixes (logging, relay, backport from 0.3.1.6-rc):
12820     - Remove a forgotten debugging message when an introduction point
12821       successfully establishes a hidden service prop224 circuit with
12822       a client.
12823     - Change three other log_warn() for an introduction point to
12824       protocol warnings, because they can be failure from the network
12825       and are not relevant to the operator. Fixes bug 23078; bugfix on
12826       0.3.0.1-alpha and 0.3.0.2-alpha.
12829 Changes in version 0.3.1.7 - 2017-09-18
12830   Tor 0.3.1.7 is the first stable release in the 0.3.1 series.
12832   With the 0.3.1 series, Tor now serves and downloads directory
12833   information in more compact formats, to save on bandwidth overhead. It
12834   also contains a new padding system to resist netflow-based traffic
12835   analysis, and experimental support for building parts of Tor in Rust
12836   (though no parts of Tor are in Rust yet). There are also numerous
12837   small features, bugfixes on earlier release series, and groundwork for
12838   the hidden services revamp of 0.3.2.
12840   This release also includes a fix for TROVE-2017-008, a security bug
12841   that affects hidden services running with the SafeLogging option
12842   disabled. For more information, see
12843   https://trac.torproject.org/projects/tor/ticket/23490
12845   Per our stable release policy, we plan to support each stable release
12846   series for at least the next nine months, or for three months after
12847   the first stable release of the next series: whichever is longer. If
12848   you need a release with long-term support, we recommend that you stay
12849   with the 0.2.9 series.
12851   Below is a list of the changes since 0.3.1.6-rc. For a list of all
12852   changes since 0.3.0, see the ReleaseNotes file.
12854   o Major bugfixes (security, hidden services, loggging):
12855     - Fix a bug where we could log uninitialized stack when a certain
12856       hidden service error occurred while SafeLogging was disabled.
12857       Fixes bug #23490; bugfix on 0.2.7.2-alpha. This is also tracked as
12858       TROVE-2017-008 and CVE-2017-0380.
12860   o Minor features (defensive programming):
12861     - Create a pair of consensus parameters, nf_pad_tor2web and
12862       nf_pad_single_onion, to disable netflow padding in the consensus
12863       for non-anonymous connections in case the overhead is high. Closes
12864       ticket 17857.
12866   o Minor features (diagnostic):
12867     - Add a stack trace to the bug warnings that can be logged when
12868       trying to send an outgoing relay cell with n_chan == 0. Diagnostic
12869       attempt for bug 23105.
12871   o Minor features (geoip):
12872     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
12873       Country database.
12875   o Minor bugfixes (compilation):
12876     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
12877       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
12879   o Minor bugfixes (controller):
12880     - Do not crash when receiving a HSPOST command with an empty body.
12881       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
12882     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
12883       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
12885   o Minor bugfixes (relay):
12886     - Inform the geoip and rephist modules about all requests, even on
12887       relays that are only fetching microdescriptors. Fixes a bug
12888       related to 21585; bugfix on 0.3.0.1-alpha.
12890   o Minor bugfixes (unit tests):
12891     - Fix a channelpadding unit test failure on slow systems by using
12892       mocked time instead of actual time. Fixes bug 23077; bugfix
12893       on 0.3.1.1-alpha.
12896 Changes in version 0.3.1.6-rc - 2017-09-05
12897   Tor 0.3.1.6-rc fixes a few small bugs and annoyances in the 0.3.1
12898   release series, including a bug that produced weird behavior on
12899   Windows directory caches.
12901   This is the first release candidate in the Tor 0.3.1 series. If we
12902   find no new bugs or regressions here, the first stable 0.3.1 release
12903   will be nearly identical to it.
12905   o Major bugfixes (windows, directory cache):
12906     - On Windows, do not try to delete cached consensus documents and
12907       diffs before they are unmapped from memory--Windows won't allow
12908       that. Instead, allow the consensus cache directory to grow larger,
12909       to hold files that might need to stay around longer. Fixes bug
12910       22752; bugfix on 0.3.1.1-alpha.
12912   o Minor features (directory authority):
12913     - Improve the message that authorities report to relays that present
12914       RSA/Ed25519 keypairs that conflict with previously pinned keys.
12915       Closes ticket 22348.
12917   o Minor features (geoip):
12918     - Update geoip and geoip6 to the August 3 2017 Maxmind GeoLite2
12919       Country database.
12921   o Minor features (testing):
12922     - Add more tests for compression backend initialization. Closes
12923       ticket 22286.
12925   o Minor bugfixes (directory cache):
12926     - Fix a memory leak when recovering space in the consensus cache.
12927       Fixes bug 23139; bugfix on 0.3.1.1-alpha.
12929   o Minor bugfixes (hidden service):
12930     - Increase the number of circuits that a service is allowed to
12931       open over a specific period of time. The value was lower than it
12932       should be (8 vs 12) in the normal case of 3 introduction points.
12933       Fixes bug 22159; bugfix on 0.3.0.5-rc.
12934     - Fix a BUG warning during HSv3 descriptor decoding that could be
12935       cause by a specially crafted descriptor. Fixes bug 23233; bugfix
12936       on 0.3.0.1-alpha. Bug found by "haxxpop".
12937     - Rate-limit the log messages if we exceed the maximum number of
12938       allowed intro circuits. Fixes bug 22159; bugfix on 0.3.1.1-alpha.
12940   o Minor bugfixes (logging, relay):
12941     - Remove a forgotten debugging message when an introduction point
12942       successfully establishes a hidden service prop224 circuit with
12943       a client.
12944     - Change three other log_warn() for an introduction point to
12945       protocol warnings, because they can be failure from the network
12946       and are not relevant to the operator. Fixes bug 23078; bugfix on
12947       0.3.0.1-alpha and 0.3.0.2-alpha.
12949   o Minor bugfixes (relay):
12950     - When a relay is not running as a directory cache, it will no
12951       longer generate compressed consensuses and consensus diff
12952       information. Previously, this was a waste of disk and CPU. Fixes
12953       bug 23275; bugfix on 0.3.1.1-alpha.
12955   o Minor bugfixes (robustness, error handling):
12956     - Improve our handling of the cases where OpenSSL encounters a
12957       memory error while encoding keys and certificates. We haven't
12958       observed these errors in the wild, but if they do happen, we now
12959       detect and respond better. Fixes bug 19418; bugfix on all versions
12960       of Tor. Reported by Guido Vranken.
12962   o Minor bugfixes (stability):
12963     - Avoid crashing on a double-free when unable to load or process an
12964       included file. Fixes bug 23155; bugfix on 0.3.1.1-alpha. Found
12965       with the clang static analyzer.
12967   o Minor bugfixes (testing):
12968     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
12969       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
12970     - Port the hs_ntor handshake test to work correctly with recent
12971       versions of the pysha3 module. Fixes bug 23071; bugfix
12972       on 0.3.1.1-alpha.
12974   o Minor bugfixes (Windows service):
12975     - When running as a Windows service, set the ID of the main thread
12976       correctly. Failure to do so made us fail to send log messages to
12977       the controller in 0.2.1.16-rc, slowed down controller event
12978       delivery in 0.2.7.3-rc and later, and crash with an assertion
12979       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
12980       Patch and diagnosis from "Vort".
12983 Changes in version 0.3.0.10 - 2017-08-02
12984    Tor 0.3.0.10 backports a collection of small-to-medium bugfixes
12985    from the current Tor alpha series. OpenBSD users and TPROXY users
12986    should upgrade; others are probably okay sticking with 0.3.0.9.
12988   o Major features (build system, continuous integration, backport from 0.3.1.5-alpha):
12989     - Tor's repository now includes a Travis Continuous Integration (CI)
12990       configuration file (.travis.yml). This is meant to help new
12991       developers and contributors who fork Tor to a Github repository be
12992       better able to test their changes, and understand what we expect
12993       to pass. To use this new build feature, you must fork Tor to your
12994       Github account, then go into the "Integrations" menu in the
12995       repository settings for your fork and enable Travis, then push
12996       your changes. Closes ticket 22636.
12998   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
12999     - Fix a typo that had prevented TPROXY-based transparent proxying
13000       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
13001       Patch from "d4fq0fQAgoJ".
13003   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
13004     - Avoid an assertion failure bug affecting our implementation of
13005       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13006       handling of "0xbar" differs from what we had expected. Fixes bug
13007       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13009   o Minor features (backport from 0.3.1.5-alpha):
13010     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
13011       Country database.
13013   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.2-alpha):
13014     - Roll over monthly accounting at the configured hour and minute,
13015       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
13016       Found by Andrey Karpov with PVS-Studio.
13018   o Minor bugfixes (compilation warnings, backport from 0.3.1.5-alpha):
13019     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
13020       bugfix on 0.2.8.1-alpha.
13021     - Fix warnings when building with libscrypt and openssl scrypt
13022       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
13023     - When building with certain versions of the mingw C header files,
13024       avoid float-conversion warnings when calling the C functions
13025       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
13026       on 0.2.8.1-alpha.
13028   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
13029     - Backport a fix for an "unused variable" warning that appeared
13030       in some versions of mingw. Fixes bug 22838; bugfix on
13031       0.2.8.1-alpha.
13033   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
13034     - Avoid Coverity build warnings related to our BUG() macro. By
13035       default, Coverity treats BUG() as the Linux kernel does: an
13036       instant abort(). We need to override that so our BUG() macro
13037       doesn't prevent Coverity from analyzing functions that use it.
13038       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
13040   o Minor bugfixes (directory authority, backport from 0.3.1.1-alpha):
13041     - When rejecting a router descriptor for running an obsolete version
13042       of Tor without ntor support, warn about the obsolete tor version,
13043       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
13045   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
13046     - Avoid a sandbox failure when trying to re-bind to a socket and
13047       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
13049   o Minor bugfixes (unit tests, backport from 0.3.1.5-alpha)
13050     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
13051       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
13054 Changes in version 0.3.1.5-alpha - 2017-08-01
13055   Tor 0.3.1.5-alpha improves the performance of consensus diff
13056   calculation, fixes a crash bug on older versions of OpenBSD, and fixes
13057   several other bugs. If no serious bugs are found in this version, the
13058   next version will be a release candidate.
13060   This release also marks the end of support for the Tor 0.2.4.x,
13061   0.2.6.x, and 0.2.7.x release series. Those releases will receive no
13062   further bug or security fixes. Anyone still running or distributing
13063   one of those versions should upgrade.
13065   o Major features (build system, continuous integration):
13066     - Tor's repository now includes a Travis Continuous Integration (CI)
13067       configuration file (.travis.yml). This is meant to help new
13068       developers and contributors who fork Tor to a Github repository be
13069       better able to test their changes, and understand what we expect
13070       to pass. To use this new build feature, you must fork Tor to your
13071       Github account, then go into the "Integrations" menu in the
13072       repository settings for your fork and enable Travis, then push
13073       your changes. Closes ticket 22636.
13075   o Major bugfixes (openbsd, denial-of-service):
13076     - Avoid an assertion failure bug affecting our implementation of
13077       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13078       handling of "0xbar" differs from what we had expected. Fixes bug
13079       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13081   o Major bugfixes (relay, performance):
13082     - Perform circuit handshake operations at a higher priority than we
13083       use for consensus diff creation and compression. This should
13084       prevent circuits from starving when a relay or bridge receives a
13085       new consensus, especially on lower-powered machines. Fixes bug
13086       22883; bugfix on 0.3.1.1-alpha.
13088   o Minor features (bridge authority):
13089     - Add "fingerprint" lines to the networkstatus-bridges file produced
13090       by bridge authorities. Closes ticket 22207.
13092   o Minor features (directory cache, consensus diff):
13093     - Add a new MaxConsensusAgeForDiffs option to allow directory cache
13094       operators with low-resource environments to adjust the number of
13095       consensuses they'll store and generate diffs from. Most cache
13096       operators should leave it unchanged. Helps to work around
13097       bug 22883.
13099   o Minor features (geoip):
13100     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
13101       Country database.
13103   o Minor features (relay, performance):
13104     - Always start relays with at least two worker threads, to prevent
13105       priority inversion on slow tasks. Part of the fix for bug 22883.
13106     - Allow background work to be queued with different priorities, so
13107       that a big pile of slow low-priority jobs will not starve out
13108       higher priority jobs. This lays the groundwork for a fix for
13109       bug 22883.
13111   o Minor bugfixes (build system, rust):
13112     - Fix a problem where Rust toolchains were not being found when
13113       building without --enable-cargo-online-mode, due to setting the
13114       $HOME environment variable instead of $CARGO_HOME. Fixes bug
13115       22830; bugfix on 0.3.1.1-alpha. Fix by Chelsea Komlo.
13117   o Minor bugfixes (compatibility, zstd):
13118     - Write zstd epilogues correctly when the epilogue requires
13119       reallocation of the output buffer, even with zstd 1.3.0.
13120       (Previously, we worked on 1.2.0 and failed with 1.3.0). Fixes bug
13121       22927; bugfix on 0.3.1.1-alpha.
13123   o Minor bugfixes (compilation warnings):
13124     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug
13125       22915; bugfix on 0.2.8.1-alpha.
13126     - Fix warnings when building with libscrypt and openssl scrypt
13127       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
13128     - Compile correctly when both openssl 1.1.0 and libscrypt are
13129       detected. Previously this would cause an error. Fixes bug 22892;
13130       bugfix on 0.3.1.1-alpha.
13131     - When building with certain versions of the mingw C header files,
13132       avoid float-conversion warnings when calling the C functions
13133       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
13134       on 0.2.8.1-alpha.
13136   o Minor bugfixes (coverity build support):
13137     - Avoid Coverity build warnings related to our BUG() macro. By
13138       default, Coverity treats BUG() as the Linux kernel does: an
13139       instant abort(). We need to override that so our BUG() macro
13140       doesn't prevent Coverity from analyzing functions that use it.
13141       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
13143   o Minor bugfixes (directory authority):
13144     - When a directory authority rejects a descriptor or extrainfo with
13145       a given digest, mark that digest as undownloadable, so that we do
13146       not attempt to download it again over and over. We previously
13147       tried to avoid downloading such descriptors by other means, but we
13148       didn't notice if we accidentally downloaded one anyway. This
13149       behavior became problematic in 0.2.7.2-alpha, when authorities
13150       began pinning Ed25519 keys. Fixes bug 22349; bugfix
13151       on 0.2.1.19-alpha.
13153   o Minor bugfixes (error reporting, windows):
13154     - When formatting Windows error messages, use the English format to
13155       avoid codepage issues. Fixes bug 22520; bugfix on 0.1.2.8-alpha.
13156       Patch from "Vort".
13158   o Minor bugfixes (file limits, osx):
13159     - When setting the maximum number of connections allowed by the OS,
13160       always allow some extra file descriptors for other files. Fixes
13161       bug 22797; bugfix on 0.2.0.10-alpha.
13163   o Minor bugfixes (linux seccomp2 sandbox):
13164     - Avoid a sandbox failure when trying to re-bind to a socket and
13165       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
13167   o Minor bugfixes (memory leaks):
13168     - Fix a small memory leak when validating a configuration that uses
13169       two or more AF_UNIX sockets for the same port type. Fixes bug
13170       23053; bugfix on 0.2.6.3-alpha. This is CID 1415725.
13172   o Minor bugfixes (unit tests):
13173     - test_consdiff_base64cmp would fail on OS X because while OS X
13174       follows the standard of (less than zero/zero/greater than zero),
13175       it doesn't follow the convention of (-1/0/+1). Make the test
13176       comply with the standard. Fixes bug 22870; bugfix on 0.3.1.1-alpha.
13177     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
13178       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
13181 Changes in version 0.3.1.4-alpha - 2017-06-29
13182   Tor 0.3.1.4-alpha fixes a path selection bug that would allow a client
13183   to use a guard that was in the same network family as a chosen exit
13184   relay. This is a security regression; all clients running earlier
13185   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9
13186   or 0.3.1.4-alpha.
13188   This release also fixes several other bugs introduced in 0.3.0.x
13189   and 0.3.1.x, including others that can affect bandwidth usage
13190   and correctness.
13192   o New dependencies:
13193     - To build with zstd and lzma support, Tor now requires the
13194       pkg-config tool at build time. (This requirement was new in
13195       0.3.1.1-alpha, but was not noted at the time. Noting it here to
13196       close ticket 22623.)
13198   o Major bugfixes (path selection, security):
13199     - When choosing which guard to use for a circuit, avoid the exit's
13200       family along with the exit itself. Previously, the new guard
13201       selection logic avoided the exit, but did not consider its family.
13202       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
13203       006 and CVE-2017-0377.
13205   o Major bugfixes (compression, zstd):
13206     - Correctly detect a full buffer when decompressing a large zstd-
13207       compressed input. Previously, we would sometimes treat a full
13208       buffer as an error. Fixes bug 22628; bugfix on 0.3.1.1-alpha.
13210   o Major bugfixes (directory protocol):
13211     - Ensure that we send "304 Not modified" as HTTP status code when a
13212       client is attempting to fetch a consensus or consensus diff, and
13213       the best one we can send them is one they already have. Fixes bug
13214       22702; bugfix on 0.3.1.1-alpha.
13216   o Major bugfixes (entry guards):
13217     - When starting with an old consensus, do not add new entry guards
13218       unless the consensus is "reasonably live" (under 1 day old). Fixes
13219       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
13221   o Minor features (bug mitigation, diagnostics, logging):
13222     - Avoid an assertion failure, and log a better error message, when
13223       unable to remove a file from the consensus cache on Windows.
13224       Attempts to mitigate and diagnose bug 22752.
13226   o Minor features (geoip):
13227     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
13228       Country database.
13230   o Minor bugfixes (compression):
13231     - When compressing or decompressing a buffer, check for a failure to
13232       create a compression object. Fixes bug 22626; bugfix
13233       on 0.3.1.1-alpha.
13234     - When decompressing a buffer, check for extra data after the end of
13235       the compressed data. Fixes bug 22629; bugfix on 0.3.1.1-alpha.
13236     - When decompressing an object received over an anonymous directory
13237       connection, if we have already decompressed it using an acceptable
13238       compression method, do not reject it for looking like an
13239       unacceptable compression method. Fixes part of bug 22670; bugfix
13240       on 0.3.1.1-alpha.
13241     - When serving directory votes compressed with zlib, do not claim to
13242       have compressed them with zstd. Fixes bug 22669; bugfix
13243       on 0.3.1.1-alpha.
13244     - When spooling compressed data to an output buffer, don't try to
13245       spool more data when there is no more data to spool and we are not
13246       trying to flush the input. Previously, we would sometimes launch
13247       compression requests with nothing to do, which interferes with our
13248       22672 checks. Fixes bug 22719; bugfix on 0.2.0.16-alpha.
13250   o Minor bugfixes (defensive programming):
13251     - Detect and break out of infinite loops in our compression code. We
13252       don't think that any such loops exist now, but it's best to be
13253       safe. Closes ticket 22672.
13254     - Fix a memset() off the end of an array when packing cells. This
13255       bug should be harmless in practice, since the corrupted bytes are
13256       still in the same structure, and are always padding bytes,
13257       ignored, or immediately overwritten, depending on compiler
13258       behavior. Nevertheless, because the memset()'s purpose is to make
13259       sure that any other cell-handling bugs can't expose bytes to the
13260       network, we need to fix it. Fixes bug 22737; bugfix on
13261       0.2.4.11-alpha. Fixes CID 1401591.
13263   o Minor bugfixes (linux seccomp2 sandbox):
13264     - Permit the fchmod system call, to avoid crashing on startup when
13265       starting with the seccomp2 sandbox and an unexpected set of
13266       permissions on the data directory or its contents. Fixes bug
13267       22516; bugfix on 0.2.5.4-alpha.
13268     - Fix a crash in the LZMA module, when the sandbox was enabled, and
13269       liblzma would allocate more than 16 MB of memory. We solve this by
13270       bumping the mprotect() limit in the sandbox module from 16 MB to
13271       20 MB. Fixes bug 22751; bugfix on 0.3.1.1-alpha.
13273   o Minor bugfixes (logging):
13274     - When decompressing, do not warn if we fail to decompress using a
13275       compression method that we merely guessed. Fixes part of bug
13276       22670; bugfix on 0.1.1.14-alpha.
13277     - When decompressing, treat mismatch between content-encoding and
13278       actual compression type as a protocol warning. Fixes part of bug
13279       22670; bugfix on 0.1.1.9-alpha.
13280     - Downgrade "assigned_to_cpuworker failed" message to info-level
13281       severity. In every case that can reach it, either a better warning
13282       has already been logged, or no warning is warranted. Fixes bug
13283       22356; bugfix on 0.2.6.3-alpha.
13284     - Demote a warn that was caused by libevent delays to info if
13285       netflow padding is less than 4.5 seconds late, or to notice
13286       if it is more (4.5 seconds is the amount of time that a netflow
13287       record might be emitted after, if we chose the maximum timeout).
13288       Fixes bug 22212; bugfix on 0.3.1.1-alpha.
13290   o Minor bugfixes (process behavior):
13291     - When exiting because of an error, always exit with a nonzero exit
13292       status. Previously, we would fail to report an error in our exit
13293       status in cases related to __OwningControllerProcess failure,
13294       lockfile contention, and Ed25519 key initialization. Fixes bug
13295       22720; bugfix on versions 0.2.1.6-alpha, 0.2.2.28-beta, and
13296       0.2.7.2-alpha respectively. Reported by "f55jwk4f"; patch
13297       from "huyvq".
13299   o Documentation:
13300     - Add a manpage description for the key-pinning-journal file. Closes
13301       ticket 22347.
13302     - Correctly note that bandwidth accounting values are stored in the
13303       state file, and the bw_accounting file is now obsolete. Closes
13304       ticket 16082.
13305     - Document more of the files in the Tor data directory, including
13306       cached-extrainfo, secret_onion_key{,_ntor}.old, hidserv-stats,
13307       approved-routers, sr-random, and diff-cache. Found while fixing
13308       ticket 22347.
13311 Changes in version 0.3.0.9 - 2017-06-29
13312   Tor 0.3.0.9 fixes a path selection bug that would allow a client
13313   to use a guard that was in the same network family as a chosen exit
13314   relay. This is a security regression; all clients running earlier
13315   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9 or
13316   0.3.1.4-alpha.
13318   This release also backports several other bugfixes from the 0.3.1.x
13319   series.
13321   o Major bugfixes (path selection, security, backport from 0.3.1.4-alpha):
13322     - When choosing which guard to use for a circuit, avoid the exit's
13323       family along with the exit itself. Previously, the new guard
13324       selection logic avoided the exit, but did not consider its family.
13325       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
13326       006 and CVE-2017-0377.
13328   o Major bugfixes (entry guards, backport from 0.3.1.1-alpha):
13329     - Don't block bootstrapping when a primary bridge is offline and we
13330       can't get its descriptor. Fixes bug 22325; fixes one case of bug
13331       21969; bugfix on 0.3.0.3-alpha.
13333   o Major bugfixes (entry guards, backport from 0.3.1.4-alpha):
13334     - When starting with an old consensus, do not add new entry guards
13335       unless the consensus is "reasonably live" (under 1 day old). Fixes
13336       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
13338   o Minor features (geoip):
13339     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
13340       Country database.
13342   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
13343     - Reject version numbers with non-numeric prefixes (such as +, -, or
13344       whitespace). Disallowing whitespace prevents differential version
13345       parsing between POSIX-based and Windows platforms. Fixes bug 21507
13346       and part of 21508; bugfix on 0.0.8pre1.
13348   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
13349     - Permit the fchmod system call, to avoid crashing on startup when
13350       starting with the seccomp2 sandbox and an unexpected set of
13351       permissions on the data directory or its contents. Fixes bug
13352       22516; bugfix on 0.2.5.4-alpha.
13354   o Minor bugfixes (defensive programming, backport from 0.3.1.4-alpha):
13355     - Fix a memset() off the end of an array when packing cells. This
13356       bug should be harmless in practice, since the corrupted bytes are
13357       still in the same structure, and are always padding bytes,
13358       ignored, or immediately overwritten, depending on compiler
13359       behavior. Nevertheless, because the memset()'s purpose is to make
13360       sure that any other cell-handling bugs can't expose bytes to the
13361       network, we need to fix it. Fixes bug 22737; bugfix on
13362       0.2.4.11-alpha. Fixes CID 1401591.
13365 Changes in version 0.3.1.3-alpha - 2017-06-08
13366   Tor 0.3.1.3-alpha fixes a pair of bugs that would allow an attacker to
13367   remotely crash a hidden service with an assertion failure. Anyone
13368   running a hidden service should upgrade to this version, or to some
13369   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
13371   Tor 0.3.1.3-alpha also includes fixes for several key management bugs
13372   that sometimes made relays unreliable, as well as several other
13373   bugfixes described below.
13375   o Major bugfixes (hidden service, relay, security):
13376     - Fix a remotely triggerable assertion failure when a hidden service
13377       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
13378       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
13379     - Fix a remotely triggerable assertion failure caused by receiving a
13380       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13381       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13382       on 0.2.2.1-alpha.
13384   o Major bugfixes (relay, link handshake):
13385     - When performing the v3 link handshake on a TLS connection, report
13386       that we have the x509 certificate that we actually used on that
13387       connection, even if we have changed certificates since that
13388       connection was first opened. Previously, we would claim to have
13389       used our most recent x509 link certificate, which would sometimes
13390       make the link handshake fail. Fixes one case of bug 22460; bugfix
13391       on 0.2.3.6-alpha.
13393   o Major bugfixes (relays, key management):
13394     - Regenerate link and authentication certificates whenever the key
13395       that signs them changes; also, regenerate link certificates
13396       whenever the signed key changes. Previously, these processes were
13397       only weakly coupled, and we relays could (for minutes to hours)
13398       wind up with an inconsistent set of keys and certificates, which
13399       other relays would not accept. Fixes two cases of bug 22460;
13400       bugfix on 0.3.0.1-alpha.
13401     - When sending an Ed25519 signing->link certificate in a CERTS cell,
13402       send the certificate that matches the x509 certificate that we
13403       used on the TLS connection. Previously, there was a race condition
13404       if the TLS context rotated after we began the TLS handshake but
13405       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
13406       on 0.3.0.1-alpha.
13408   o Major bugfixes (torrc, crash):
13409     - Fix a crash bug when using %include in torrc. Fixes bug 22417;
13410       bugfix on 0.3.1.1-alpha. Patch by Daniel Pinto.
13412   o Minor features (code style):
13413     - Add "Falls through" comments to our codebase, in order to silence
13414       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
13415       Stieger. Closes ticket 22446.
13417   o Minor features (diagnostic):
13418     - Add logging messages to try to diagnose a rare bug that seems to
13419       generate RSA->Ed25519 cross-certificates dated in the 1970s. We
13420       think this is happening because of incorrect system clocks, but
13421       we'd like to know for certain. Diagnostic for bug 22466.
13423   o Minor bugfixes (correctness):
13424     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13425       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13427   o Minor bugfixes (directory protocol):
13428     - Check for libzstd >= 1.1, because older versions lack the
13429       necessary streaming API. Fixes bug 22413; bugfix on 0.3.1.1-alpha.
13431   o Minor bugfixes (link handshake):
13432     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
13433       months, and regenerate it when it is within one month of expiring.
13434       Previously, we had generated this certificate at startup with a
13435       ten-year lifetime, but that could lead to weird behavior when Tor
13436       was started with a grossly inaccurate clock. Mitigates bug 22466;
13437       mitigation on 0.3.0.1-alpha.
13439   o Minor bugfixes (storage directories):
13440     - Always check for underflows in the cached storage directory usage.
13441       If the usage does underflow, re-calculate it. Also, avoid a
13442       separate underflow when the usage is not known. Fixes bug 22424;
13443       bugfix on 0.3.1.1-alpha.
13445   o Minor bugfixes (unit tests):
13446     - The unit tests now pass on systems where localhost is misconfigured
13447       to some IPv4 address other than 127.0.0.1. Fixes bug 6298; bugfix
13448       on 0.0.9pre2.
13450   o Documentation:
13451     - Clarify the manpage for the (deprecated) torify script. Closes
13452       ticket 6892.
13454 Changes in version 0.3.0.8 - 2017-06-08
13455   Tor 0.3.0.8 fixes a pair of bugs that would allow an attacker to
13456   remotely crash a hidden service with an assertion failure. Anyone
13457   running a hidden service should upgrade to this version, or to some
13458   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
13460   Tor 0.3.0.8 also includes fixes for several key management bugs
13461   that sometimes made relays unreliable, as well as several other
13462   bugfixes described below.
13464   o Major bugfixes (hidden service, relay, security, backport
13465     from 0.3.1.3-alpha):
13466     - Fix a remotely triggerable assertion failure when a hidden service
13467       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
13468       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
13469     - Fix a remotely triggerable assertion failure caused by receiving a
13470       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13471       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13472       on 0.2.2.1-alpha.
13474   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
13475     - When performing the v3 link handshake on a TLS connection, report
13476       that we have the x509 certificate that we actually used on that
13477       connection, even if we have changed certificates since that
13478       connection was first opened. Previously, we would claim to have
13479       used our most recent x509 link certificate, which would sometimes
13480       make the link handshake fail. Fixes one case of bug 22460; bugfix
13481       on 0.2.3.6-alpha.
13483   o Major bugfixes (relays, key management, backport from 0.3.1.3-alpha):
13484     - Regenerate link and authentication certificates whenever the key
13485       that signs them changes; also, regenerate link certificates
13486       whenever the signed key changes. Previously, these processes were
13487       only weakly coupled, and we relays could (for minutes to hours)
13488       wind up with an inconsistent set of keys and certificates, which
13489       other relays would not accept. Fixes two cases of bug 22460;
13490       bugfix on 0.3.0.1-alpha.
13491     - When sending an Ed25519 signing->link certificate in a CERTS cell,
13492       send the certificate that matches the x509 certificate that we
13493       used on the TLS connection. Previously, there was a race condition
13494       if the TLS context rotated after we began the TLS handshake but
13495       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
13496       on 0.3.0.1-alpha.
13498   o Major bugfixes (hidden service v3, backport from 0.3.1.1-alpha):
13499     - Stop rejecting v3 hidden service descriptors because their size
13500       did not match an old padding rule. Fixes bug 22447; bugfix on
13501       0.3.0.1-alpha.
13503   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
13504     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13505       December 2016 (of which ~126 were still functional) with a list of
13506       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13507       2017. Resolves ticket 21564.
13509   o Minor bugfixes (configuration, backport from 0.3.1.1-alpha):
13510     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
13511       bug 22252; bugfix on 0.2.9.3-alpha.
13513   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
13514     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13515       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13517   o Minor bugfixes (link handshake, backport from 0.3.1.3-alpha):
13518     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
13519       months, and regenerate it when it is within one month of expiring.
13520       Previously, we had generated this certificate at startup with a
13521       ten-year lifetime, but that could lead to weird behavior when Tor
13522       was started with a grossly inaccurate clock. Mitigates bug 22466;
13523       mitigation on 0.3.0.1-alpha.
13525   o Minor bugfixes (memory leak, directory authority, backport from
13526     0.3.1.2-alpha):
13527     - When directory authorities reject a router descriptor due to
13528       keypinning, free the router descriptor rather than leaking the
13529       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
13532 Changes in version 0.2.9.11 - 2017-06-08
13533   Tor 0.2.9.11 backports a fix for a bug that would allow an attacker to
13534   remotely crash a hidden service with an assertion failure. Anyone
13535   running a hidden service should upgrade to this version, or to some
13536   other version with fixes for TROVE-2017-005. (Versions before 0.3.0
13537   are not affected by TROVE-2017-004.)
13539   Tor 0.2.9.11 also backports fixes for several key management bugs
13540   that sometimes made relays unreliable, as well as several other
13541   bugfixes described below.
13543   o Major bugfixes (hidden service, relay, security, backport
13544     from 0.3.1.3-alpha):
13545     - Fix a remotely triggerable assertion failure caused by receiving a
13546       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13547       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13548       on 0.2.2.1-alpha.
13550   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
13551     - When performing the v3 link handshake on a TLS connection, report
13552       that we have the x509 certificate that we actually used on that
13553       connection, even if we have changed certificates since that
13554       connection was first opened. Previously, we would claim to have
13555       used our most recent x509 link certificate, which would sometimes
13556       make the link handshake fail. Fixes one case of bug 22460; bugfix
13557       on 0.2.3.6-alpha.
13559   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
13560     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13561       December 2016 (of which ~126 were still functional) with a list of
13562       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13563       2017. Resolves ticket 21564.
13565   o Minor features (future-proofing, backport from 0.3.0.7):
13566     - Tor no longer refuses to download microdescriptors or descriptors if
13567       they are listed as "published in the future".  This change will
13568       eventually allow us to stop listing meaningful "published" dates
13569       in microdescriptor consensuses, and thereby allow us to reduce the
13570       resources required to download consensus diffs by over 50%.
13571       Implements part of ticket 21642; implements part of proposal 275.
13573   o Minor features (directory authorities, backport from 0.3.0.4-rc)
13574     - Directory authorities now reject relays running versions
13575       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
13576       suffer from bug 20499 and don't keep their consensus cache
13577       up-to-date. Resolves ticket 20509.
13579   o Minor features (geoip):
13580     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13581       Country database.
13583   o Minor bugfixes (control port, backport from 0.3.0.6):
13584     - The GETINFO extra-info/digest/<digest> command was broken because
13585       of a wrong base16 decode return value check, introduced when
13586       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
13588   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
13589     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13590       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13592   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.0.7):
13593     - The getpid() system call is now permitted under the Linux seccomp2
13594       sandbox, to avoid crashing with versions of OpenSSL (and other
13595       libraries) that attempt to learn the process's PID by using the
13596       syscall rather than the VDSO code. Fixes bug 21943; bugfix
13597       on 0.2.5.1-alpha.
13599   o Minor bugfixes (memory leak, directory authority, backport
13600     from 0.3.1.2-alpha):
13601     - When directory authorities reject a router descriptor due to
13602       keypinning, free the router descriptor rather than leaking the
13603       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
13605 Changes in version 0.2.8.14 - 2017-06-08
13606   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
13607   remotely crash a hidden service with an assertion failure. Anyone
13608   running a hidden service should upgrade to this version, or to some
13609   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13610   are not affected by TROVE-2017-004.)
13612   o Major bugfixes (hidden service, relay, security):
13613     - Fix a remotely triggerable assertion failure caused by receiving a
13614       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13615       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13616       on 0.2.2.1-alpha.
13618   o Minor features (geoip):
13619     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13620       Country database.
13622   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
13623     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13624       December 2016 (of which ~126 were still functional) with a list of
13625       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13626       2017. Resolves ticket 21564.
13628   o Minor bugfixes (correctness):
13629     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13630       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13632 Changes in version 0.2.7.8 - 2017-06-08
13633   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
13634   remotely crash a hidden service with an assertion failure. Anyone
13635   running a hidden service should upgrade to this version, or to some
13636   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13637   are not affected by TROVE-2017-004.)
13639   o Major bugfixes (hidden service, relay, security):
13640     - Fix a remotely triggerable assertion failure caused by receiving a
13641       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13642       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13643       on 0.2.2.1-alpha.
13645   o Minor features (geoip):
13646     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13647       Country database.
13649   o Minor bugfixes (correctness):
13650     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13651       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13654 Changes in version 0.2.6.12 - 2017-06-08
13655   Tor 0.2.6.12 backports a fix for a bug that would allow an attacker to
13656   remotely crash a hidden service with an assertion failure. Anyone
13657   running a hidden service should upgrade to this version, or to some
13658   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13659   are not affected by TROVE-2017-004.)
13661   o Major bugfixes (hidden service, relay, security):
13662     - Fix a remotely triggerable assertion failure caused by receiving a
13663       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13664       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13665       on 0.2.2.1-alpha.
13667   o Minor features (geoip):
13668     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13669       Country database.
13671   o Minor bugfixes (correctness):
13672     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13673       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13675 Changes in version 0.2.5.14 - 2017-06-08
13676   Tor 0.2.5.14 backports a fix for a bug that would allow an attacker to
13677   remotely crash a hidden service with an assertion failure. Anyone
13678   running a hidden service should upgrade to this version, or to some
13679   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13680   are not affected by TROVE-2017-004.)
13682   o Major bugfixes (hidden service, relay, security):
13683     - Fix a remotely triggerable assertion failure caused by receiving a
13684       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13685       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13686       on 0.2.2.1-alpha.
13688   o Minor features (geoip):
13689     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13690       Country database.
13692   o Minor bugfixes (correctness):
13693     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13694       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13696 Changes in version 0.2.4.29 - 2017-06-08
13697   Tor 0.2.4.29 backports a fix for a bug that would allow an attacker to
13698   remotely crash a hidden service with an assertion failure. Anyone
13699   running a hidden service should upgrade to this version, or to some
13700   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13701   are not affected by TROVE-2017-004.)
13703   o Major bugfixes (hidden service, relay, security):
13704     - Fix a remotely triggerable assertion failure caused by receiving a
13705       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13706       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13707       on 0.2.2.1-alpha.
13709   o Minor features (geoip):
13710     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13711       Country database.
13713   o Minor bugfixes (correctness):
13714     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13715       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13718 Changes in version 0.3.1.2-alpha - 2017-05-26
13719   Tor 0.3.1.2-alpha is the second release in the 0.3.1.x series. It
13720   fixes a few bugs found while testing 0.3.1.1-alpha, including a
13721   memory corruption bug that affected relay stability.
13723   o Major bugfixes (crash, relay):
13724     - Fix a memory-corruption bug in relays that set MyFamily.
13725       Previously, they would double-free MyFamily elements when making
13726       the next descriptor or when changing their configuration. Fixes
13727       bug 22368; bugfix on 0.3.1.1-alpha.
13729   o Minor bugfixes (logging):
13730     - Log a better message when a directory authority replies to an
13731       upload with an unexpected status code. Fixes bug 11121; bugfix
13732       on 0.1.0.1-rc.
13734   o Minor bugfixes (memory leak, directory authority):
13735     - When directory authorities reject a router descriptor due to
13736       keypinning, free the router descriptor rather than leaking the
13737       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
13740 Changes in version 0.3.1.1-alpha - 2017-05-22
13741   Tor 0.3.1.1-alpha is the first release in the 0.3.1.x series. It
13742   reduces the bandwidth usage for Tor's directory protocol, adds some
13743   basic padding to resist netflow-based traffic analysis and to serve as
13744   the basis of other padding in the future, and adds rust support to the
13745   build system.
13747   It also contains numerous other small features and improvements to
13748   security, correctness, and performance.
13750   Below are the changes since 0.3.0.7.
13752   o Major features (directory protocol):
13753     - Tor relays and authorities can now serve clients an abbreviated
13754       version of the consensus document, containing only the changes
13755       since an older consensus document that the client holds. Clients
13756       now request these documents when available. When both client and
13757       server use this new protocol, they will use far less bandwidth (up
13758       to 94% less) to keep the client's consensus up-to-date. Implements
13759       proposal 140; closes ticket 13339. Based on work by Daniel Martí.
13760     - Tor can now compress directory traffic with lzma or with zstd
13761       compression algorithms, which can deliver better bandwidth
13762       performance. Because lzma is computationally expensive, it's only
13763       used for documents that can be compressed once and served many
13764       times. Support for these algorithms requires that tor is built
13765       with the libzstd and/or liblzma libraries available. Implements
13766       proposal 278; closes ticket 21662.
13767     - Relays now perform the more expensive compression operations, and
13768       consensus diff generation, in worker threads. This separation
13769       avoids delaying the main thread when a new consensus arrives.
13771   o Major features (experimental):
13772     - Tor can now build modules written in Rust. To turn this on, pass
13773       the "--enable-rust" flag to the configure script. It's not time to
13774       get excited yet: currently, there is no actual Rust functionality
13775       beyond some simple glue code, and a notice at startup to tell you
13776       that Rust is running. Still, we hope that programmers and
13777       packagers will try building Tor with Rust support, so that we can
13778       find issues and solve portability problems. Closes ticket 22106.
13780   o Major features (traffic analysis resistance):
13781     - Connections between clients and relays now send a padding cell in
13782       each direction every 1.5 to 9.5 seconds (tunable via consensus
13783       parameters). This padding will not resist specialized
13784       eavesdroppers, but it should be enough to make many ISPs' routine
13785       network flow logging less useful in traffic analysis against
13786       Tor users.
13788       Padding is negotiated using Tor's link protocol, so both relays
13789       and clients must upgrade for this to take effect. Clients may
13790       still send padding despite the relay's version by setting
13791       ConnectionPadding 1 in torrc, and may disable padding by setting
13792       ConnectionPadding 0 in torrc. Padding may be minimized for mobile
13793       users with the torrc option ReducedConnectionPadding. Implements
13794       Proposal 251 and Section 2 of Proposal 254; closes ticket 16861.
13795     - Relays will publish 24 hour totals of padding and non-padding cell
13796       counts to their extra-info descriptors, unless PaddingStatistics 0
13797       is set in torrc. These 24 hour totals are also rounded to
13798       multiples of 10000.
13800   o Major bugfixes (connection usage):
13801     - We use NETINFO cells to try to determine if both relays involved
13802       in a connection will agree on the canonical status of that
13803       connection. We prefer the connections where this is the case for
13804       extend cells, and try to close connections where relays disagree
13805       on their canonical status early. Also, we now prefer the oldest
13806       valid connection for extend cells. These two changes should reduce
13807       the number of long-term connections that are kept open between
13808       relays. Fixes bug 17604; bugfix on 0.2.5.5-alpha.
13809     - Relays now log hourly statistics (look for
13810       "channel_check_for_duplicates" lines) on the total number of
13811       connections to other relays. If the number of connections per
13812       relay is unexpectedly large, this log message is at notice level.
13813       Otherwise it is at info.
13815   o Major bugfixes (entry guards):
13816     - Don't block bootstrapping when a primary bridge is offline and we
13817       can't get its descriptor. Fixes bug 22325; fixes one case of bug
13818       21969; bugfix on 0.3.0.3-alpha.
13820   o Major bugfixes (linux TPROXY support):
13821     - Fix a typo that had prevented TPROXY-based transparent proxying
13822       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
13823       Patch from "d4fq0fQAgoJ".
13825   o Minor features (security, windows):
13826     - Enable a couple of pieces of Windows hardening: one
13827       (HeapEnableTerminationOnCorruption) that has been on-by-default
13828       since Windows 8, and unavailable before Windows 7; and one
13829       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
13830       affect us, but shouldn't do any harm. Closes ticket 21953.
13832   o Minor features (config options):
13833     - Allow "%include" directives in torrc configuration files. These
13834       directives import the settings from other files, or from all the
13835       files in a directory. Closes ticket 1922. Code by Daniel Pinto.
13836     - Make SAVECONF return an error when overwriting a torrc that has
13837       includes. Using SAVECONF with the FORCE option will allow it to
13838       overwrite torrc even if includes are used. Related to ticket 1922.
13839     - Add "GETINFO config-can-saveconf" to tell controllers if SAVECONF
13840       will work without the FORCE option. Related to ticket 1922.
13842   o Minor features (controller):
13843     - Warn the first time that a controller requests data in the long-
13844       deprecated 'GETINFO network-status' format. Closes ticket 21703.
13846   o Minor features (defaults):
13847     - The default value for UseCreateFast is now 0: clients which
13848       haven't yet received a consensus document will now use a proper
13849       ntor handshake to talk to their directory servers whenever they
13850       can. Closes ticket 21407.
13851     - Onion key rotation and expiry intervals are now defined as a
13852       network consensus parameter, per proposal 274. The default
13853       lifetime of an onion key is increased from 7 to 28 days. Old onion
13854       keys will expire after 7 days by default. This change will make
13855       consensus diffs much smaller, and save significant bandwidth.
13856       Closes ticket 21641.
13858   o Minor features (fallback directory list):
13859     - Update the fallback directory mirror whitelist and blacklist based
13860       on operator emails. Closes task 21121.
13861     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13862       December 2016 (of which ~126 were still functional) with a list of
13863       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13864       2017. Resolves ticket 21564.
13866   o Minor features (hidden services, logging):
13867     - Log a message when a hidden service descriptor has fewer
13868       introduction points than specified in
13869       HiddenServiceNumIntroductionPoints. Closes tickets 21598.
13870     - Log a message when a hidden service reaches its introduction point
13871       circuit limit, and when that limit is reset. Follow up to ticket
13872       21594; closes ticket 21622.
13873     - Warn user if multiple entries in EntryNodes and at least one
13874       HiddenService are used together. Pinning EntryNodes along with a
13875       hidden service can be possibly harmful; for instance see ticket
13876       14917 or 21155. Closes ticket 21155.
13878   o Minor features (linux seccomp2 sandbox):
13879     - We now have a document storage backend compatible with the Linux
13880       seccomp2 sandbox. This backend is used for consensus documents and
13881       diffs between them; in the long term, we'd like to use it for
13882       unparseable directory material too. Closes ticket 21645
13883     - Increase the maximum allowed size passed to mprotect(PROT_WRITE)
13884       from 1MB to 16MB. This was necessary with the glibc allocator in
13885       order to allow worker threads to allocate more memory -- which in
13886       turn is necessary because of our new use of worker threads for
13887       compression. Closes ticket 22096.
13889   o Minor features (logging):
13890     - Log files are no longer created world-readable by default.
13891       (Previously, most distributors would store the logs in a non-
13892       world-readable location to prevent inappropriate access. This
13893       change is an extra precaution.) Closes ticket 21729; patch
13894       from toralf.
13896   o Minor features (performance):
13897     - Our Keccak (SHA-3) implementation now accesses memory more
13898       efficiently, especially on little-endian systems. Closes
13899       ticket 21737.
13900     - Add an O(1) implementation of channel_find_by_global_id(), to
13901       speed some controller functions.
13903   o Minor features (relay, configuration):
13904     - The MyFamily option may now be repeated as many times as desired,
13905       for relays that want to configure large families. Closes ticket
13906       4998; patch by Daniel Pinto.
13908   o Minor features (safety):
13909     - Add an explicit check to extrainfo_parse_entry_from_string() for
13910       NULL inputs. We don't believe this can actually happen, but it may
13911       help silence a warning from the Clang analyzer. Closes
13912       ticket 21496.
13914   o Minor features (testing):
13915     - Add a "--disable-memory-sentinels" feature to help with fuzzing.
13916       When Tor is compiled with this option, we disable a number of
13917       redundant memory-safety failsafes that are intended to stop bugs
13918       from becoming security issues. This makes it easier to hunt for
13919       bugs that would be security issues without the failsafes turned
13920       on. Closes ticket 21439.
13921     - Add a general event-tracing instrumentation support to Tor. This
13922       subsystem will enable developers and researchers to add fine-
13923       grained instrumentation to their Tor instances, for use when
13924       examining Tor network performance issues. There are no trace
13925       events yet, and event-tracing is off by default unless enabled at
13926       compile time. Implements ticket 13802.
13927     - Improve our version parsing tests: add tests for typical version
13928       components, add tests for invalid versions, including numeric
13929       range and non-numeric prefixes. Unit tests 21278, 21450, and
13930       21507. Partially implements 21470.
13932   o Minor bugfixes (bandwidth accounting):
13933     - Roll over monthly accounting at the configured hour and minute,
13934       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
13935       Found by Andrey Karpov with PVS-Studio.
13937   o Minor bugfixes (code correctness):
13938     - Accurately identify client connections by their lack of peer
13939       authentication. This means that we bail out earlier if asked to
13940       extend to a client. Follow-up to 21407. Fixes bug 21406; bugfix
13941       on 0.2.4.23.
13943   o Minor bugfixes (configuration):
13944     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
13945       bug 22252; bugfix on 0.2.9.3-alpha.
13947   o Minor bugfixes (connection lifespan):
13948     - Allow more control over how long TLS connections are kept open:
13949       unify CircuitIdleTimeout and PredictedPortsRelevanceTime into a
13950       single option called CircuitsAvailableTimeout. Also, allow the
13951       consensus to control the default values for both this preference
13952       and the lifespan of relay-to-relay connections. Fixes bug 17592;
13953       bugfix on 0.2.5.5-alpha.
13954     - Increase the initial circuit build timeout testing frequency, to
13955       help ensure that ReducedConnectionPadding clients finish learning
13956       a timeout before their orconn would expire. The initial testing
13957       rate was set back in the days of TAP and before the Tor Browser
13958       updater, when we had to be much more careful about new clients
13959       making lots of circuits. With this change, a circuit build timeout
13960       is learned in about 15-20 minutes, instead of 100-120 minutes.
13962   o Minor bugfixes (controller):
13963     - GETINFO onions/current and onions/detached no longer respond with
13964       551 on empty lists. Fixes bug 21329; bugfix on 0.2.7.1-alpha.
13965     - Trigger HS descriptor events on the control port when the client
13966       fails to pick a hidden service directory for a hidden service.
13967       This can happen if all the hidden service directories are in
13968       ExcludeNodes, or they have all been queried within the last 15
13969       minutes. Fixes bug 22042; bugfix on 0.2.5.2-alpha.
13971   o Minor bugfixes (directory authority):
13972     - When rejecting a router descriptor for running an obsolete version
13973       of Tor without ntor support, warn about the obsolete tor version,
13974       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
13975     - Prevent the shared randomness subsystem from asserting when
13976       initialized by a bridge authority with an incomplete configuration
13977       file. Fixes bug 21586; bugfix on 0.2.9.8.
13979   o Minor bugfixes (exit-side DNS):
13980     - Fix an untriggerable assertion that checked the output of a
13981       libevent DNS error, so that the assertion actually behaves as
13982       expected. Fixes bug 22244; bugfix on 0.2.0.20-rc. Found by Andrey
13983       Karpov using PVS-Studio.
13985   o Minor bugfixes (fallback directories):
13986     - Make the usage example in updateFallbackDirs.py actually work, and
13987       explain what it does. Fixes bug 22270; bugfix on 0.3.0.3-alpha.
13988     - Decrease the guard flag average required to be a fallback. This
13989       allows us to keep relays that have their guard flag removed when
13990       they restart. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
13991     - Decrease the minimum number of fallbacks to 100. Fixes bug 20913;
13992       bugfix on 0.2.8.1-alpha.
13993     - Make sure fallback directory mirrors have the same address, port,
13994       and relay identity key for at least 30 days before they are
13995       selected. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
13997   o Minor bugfixes (hidden services):
13998     - Stop printing a cryptic warning when a hidden service gets a
13999       request to connect to a virtual port that it hasn't configured.
14000       Fixes bug 16706; bugfix on 0.2.6.3-alpha.
14001     - Simplify hidden service descriptor creation by using an existing
14002       flag to check if an introduction point is established. Fixes bug
14003       21599; bugfix on 0.2.7.2-alpha.
14005   o Minor bugfixes (memory leak):
14006     - Fix a small memory leak at exit from the backtrace handler code.
14007       Fixes bug 21788; bugfix on 0.2.5.2-alpha. Patch from Daniel Pinto.
14009   o Minor bugfixes (protocol, logging):
14010     - Downgrade a log statement about unexpected relay cells from "bug"
14011       to "protocol warning", because there is at least one use case
14012       where it can be triggered by a buggy tor implementation. Fixes bug
14013       21293; bugfix on 0.1.1.14-alpha.
14015   o Minor bugfixes (testing):
14016     - Use unbuffered I/O for utility functions around the
14017       process_handle_t type. This fixes unit test failures reported on
14018       OpenBSD and FreeBSD. Fixes bug 21654; bugfix on 0.2.3.1-alpha.
14019     - Make display of captured unit test log messages consistent. Fixes
14020       bug 21510; bugfix on 0.2.9.3-alpha.
14021     - Make test-network.sh always call chutney's test-network.sh.
14022       Previously, this only worked on systems which had bash installed,
14023       due to some bash-specific code in the script. Fixes bug 19699;
14024       bugfix on 0.3.0.4-rc. Follow-up to ticket 21581.
14026   o Minor bugfixes (voting consistency):
14027     - Reject version numbers with non-numeric prefixes (such as +, -, or
14028       whitespace). Disallowing whitespace prevents differential version
14029       parsing between POSIX-based and Windows platforms. Fixes bug 21507
14030       and part of 21508; bugfix on 0.0.8pre1.
14032   o Minor bugfixes (windows, relay):
14033     - Resolve "Failure from drain_fd: No error" warnings on Windows
14034       relays. Fixes bug 21540; bugfix on 0.2.6.3-alpha.
14036   o Code simplification and refactoring:
14037     - Break up the 630-line function connection_dir_client_reached_eof()
14038       into a dozen smaller functions. This change should help
14039       maintainability and readability of the client directory code.
14040     - Isolate our use of the openssl headers so that they are only
14041       included from our crypto wrapper modules, and from tests that
14042       examine those modules' internals. Closes ticket 21841.
14043     - Simplify our API to launch directory requests, making it more
14044       extensible and less error-prone. Now it's easier to add extra
14045       headers to directory requests. Closes ticket 21646.
14046     - Our base64 decoding functions no longer overestimate the output
14047       space that they need when parsing unpadded inputs. Closes
14048       ticket 17868.
14049     - Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value.
14050       Resolves ticket 22213.
14051     - The logic that directory caches use to spool request to clients,
14052       serving them one part at a time so as not to allocate too much
14053       memory, has been refactored for consistency. Previously there was
14054       a separate spooling implementation per type of spoolable data. Now
14055       there is one common spooling implementation, with extensible data
14056       types. Closes ticket 21651.
14057     - Tor's compression module now supports multiple backends. Part of
14058       the implementation for proposal 278; closes ticket 21663.
14060   o Documentation:
14061     - Clarify the behavior of the KeepAliveIsolateSOCKSAuth sub-option.
14062       Closes ticket 21873.
14063     - Correct documentation about the default DataDirectory value.
14064       Closes ticket 21151.
14065     - Document the default behavior of NumEntryGuards and
14066       NumDirectoryGuards correctly. Fixes bug 21715; bugfix
14067       on 0.3.0.1-alpha.
14068     - Document key=value pluggable transport arguments for Bridge lines
14069       in torrc. Fixes bug 20341; bugfix on 0.2.5.1-alpha.
14070     - Note that bandwidth-limiting options don't affect TCP headers or
14071       DNS. Closes ticket 17170.
14073   o Removed features (configuration options, all in ticket 22060):
14074     - These configuration options are now marked Obsolete, and no longer
14075       have any effect: AllowInvalidNodes, AllowSingleHopCircuits,
14076       AllowSingleHopExits, ExcludeSingleHopRelays, FastFirstHopPK,
14077       TLSECGroup, WarnUnsafeSocks. They were first marked as deprecated
14078       in 0.2.9.2-alpha and have now been removed. The previous default
14079       behavior is now always chosen; the previous (less secure) non-
14080       default behavior is now unavailable.
14081     - CloseHSClientCircuitsImmediatelyOnTimeout and
14082       CloseHSServiceRendCircuitsImmediatelyOnTimeout were deprecated in
14083       0.2.9.2-alpha and now have been removed. HS circuits never close
14084       on circuit build timeout; they have a longer timeout period.
14085     - {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress were deprecated
14086       in 0.2.9.2-alpha and now have been removed. Use the ORPort option
14087       (and others) to configure listen-only and advertise-only addresses.
14089   o Removed features (tools):
14090     - We've removed the tor-checkkey tool from src/tools. Long ago, we
14091       used it to help people detect RSA keys that were generated by
14092       versions of Debian affected by CVE-2008-0166. But those keys have
14093       been out of circulation for ages, and this tool is no longer
14094       required. Closes ticket 21842.
14097 Changes in version 0.3.0.7 - 2017-05-15
14098   Tor 0.3.0.7 fixes a medium-severity security bug in earlier versions
14099   of Tor 0.3.0.x, where an attacker could cause a Tor relay process
14100   to exit. Relays running earlier versions of Tor 0.3.0.x should upgrade;
14101   clients are not affected.
14103   o Major bugfixes (hidden service directory, security):
14104     - Fix an assertion failure in the hidden service directory code, which
14105       could be used by an attacker to remotely cause a Tor relay process to
14106       exit. Relays running earlier versions of Tor 0.3.0.x should upgrade.
14107       should upgrade. This security issue is tracked as TROVE-2017-002.
14108       Fixes bug 22246; bugfix on 0.3.0.1-alpha.
14110   o Minor features:
14111     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14112       Country database.
14114   o Minor features (future-proofing):
14115     - Tor no longer refuses to download microdescriptors or descriptors
14116       if they are listed as "published in the future". This change will
14117       eventually allow us to stop listing meaningful "published" dates
14118       in microdescriptor consensuses, and thereby allow us to reduce the
14119       resources required to download consensus diffs by over 50%.
14120       Implements part of ticket 21642; implements part of proposal 275.
14122   o Minor bugfixes (Linux seccomp2 sandbox):
14123     - The getpid() system call is now permitted under the Linux seccomp2
14124       sandbox, to avoid crashing with versions of OpenSSL (and other
14125       libraries) that attempt to learn the process's PID by using the
14126       syscall rather than the VDSO code. Fixes bug 21943; bugfix
14127       on 0.2.5.1-alpha.
14130 Changes in version 0.3.0.6 - 2017-04-26
14131   Tor 0.3.0.6 is the first stable release of the Tor 0.3.0 series.
14133   With the 0.3.0 series, clients and relays now use Ed25519 keys to
14134   authenticate their link connections to relays, rather than the old
14135   RSA1024 keys that they used before. (Circuit crypto has been
14136   Curve25519-authenticated since 0.2.4.8-alpha.) We have also replaced
14137   the guard selection and replacement algorithm to behave more robustly
14138   in the presence of unreliable networks, and to resist guard-
14139   capture attacks.
14141   This series also includes numerous other small features and bugfixes,
14142   along with more groundwork for the upcoming hidden-services revamp.
14144   Per our stable release policy, we plan to support the Tor 0.3.0
14145   release series for at least the next nine months, or for three months
14146   after the first stable release of the 0.3.1 series: whichever is
14147   longer. If you need a release with long-term support, we recommend
14148   that you stay with the 0.2.9 series.
14150   Below are the changes since 0.3.0.5-rc. For a list of all changes
14151   since 0.2.9, see the ReleaseNotes file.
14153   o Minor features (geoip):
14154     - Update geoip and geoip6 to the April 4 2017 Maxmind GeoLite2
14155       Country database.
14157   o Minor bugfixes (control port):
14158     - The GETINFO extra-info/digest/<digest> command was broken because
14159       of a wrong base16 decode return value check, introduced when
14160       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
14162   o Minor bugfixes (crash prevention):
14163     - Fix a (currently untriggerable, but potentially dangerous) crash
14164       bug when base32-encoding inputs whose sizes are not a multiple of
14165       5. Fixes bug 21894; bugfix on 0.2.9.1-alpha.
14168 Changes in version 0.3.0.5-rc - 2017-04-05
14169   Tor 0.3.0.5-rc fixes a few remaining bugs, large and small, in the
14170   0.3.0 release series.
14172   This is the second release candidate in the Tor 0.3.0 series, and has
14173   much fewer changes than the first. If we find no new bugs or
14174   regressions here, the first stable 0.3.0 release will be nearly
14175   identical to it.
14177   o Major bugfixes (crash, directory connections):
14178     - Fix a rare crash when sending a begin cell on a circuit whose
14179       linked directory connection had already been closed. Fixes bug
14180       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
14182   o Major bugfixes (guard selection):
14183     - Fix a guard selection bug where Tor would refuse to bootstrap in
14184       some cases if the user swapped a bridge for another bridge in
14185       their configuration file. Fixes bug 21771; bugfix on 0.3.0.1-alpha.
14186       Reported by "torvlnt33r".
14188   o Minor features (geoip):
14189     - Update geoip and geoip6 to the March 7 2017 Maxmind GeoLite2
14190       Country database.
14192   o Minor bugfix (compilation):
14193     - Fix a warning when compiling hs_service.c. Previously, it had no
14194       exported symbols when compiled for libor.a, resulting in a
14195       compilation warning from clang. Fixes bug 21825; bugfix
14196       on 0.3.0.1-alpha.
14198   o Minor bugfixes (hidden services):
14199     - Make hidden services check for failed intro point connections,
14200       even when they have exceeded their intro point creation limit.
14201       Fixes bug 21596; bugfix on 0.2.7.2-alpha. Reported by Alec Muffett.
14202     - Make hidden services with 8 to 10 introduction points check for
14203       failed circuits immediately after startup. Previously, they would
14204       wait for 5 minutes before performing their first checks. Fixes bug
14205       21594; bugfix on 0.2.3.9-alpha. Reported by Alec Muffett.
14207   o Minor bugfixes (memory leaks):
14208     - Fix a memory leak when using GETCONF on a port option. Fixes bug
14209       21682; bugfix on 0.3.0.3-alpha.
14211   o Minor bugfixes (relay):
14212     - Avoid a double-marked-circuit warning that could happen when we
14213       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
14214       on 0.1.0.1-rc.
14216   o Minor bugfixes (tests):
14217     - Run the entry_guard_parse_from_state_full() test with the time set
14218       to a specific date. (The guard state that this test was parsing
14219       contained guards that had expired since the test was first
14220       written.) Fixes bug 21799; bugfix on 0.3.0.1-alpha.
14222   o Documentation:
14223     - Update the description of the directory server options in the
14224       manual page, to clarify that a relay no longer needs to set
14225       DirPort in order to be a directory cache. Closes ticket 21720.
14229 Changes in version 0.2.8.13 - 2017-03-03
14230   Tor 0.2.8.13 backports a security fix from later Tor
14231   releases.  Anybody running Tor 0.2.8.12 or earlier should upgrade to this
14232   this release, if for some reason they cannot upgrade to a later
14233   release series, and if they build Tor with the --enable-expensive-hardening
14234   option.
14236   Note that support for Tor 0.2.8.x is ending next year: we will not issue
14237   any fixes for the Tor 0.2.8.x series after 1 Jan 2018.  If you need
14238   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14240   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14241     - Fix an integer underflow bug when comparing malformed Tor
14242       versions. This bug could crash Tor when built with
14243       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14244       0.2.9.8, which were built with -ftrapv by default. In other cases
14245       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14246       on 0.0.8pre1. Found by OSS-Fuzz.
14248   o Minor features (geoip):
14249     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14250       Country database.
14253 Changes in version 0.2.7.7 - 2017-03-03
14254   Tor 0.2.7.7 backports a number of security fixes from later Tor
14255   releases.  Anybody running Tor 0.2.7.6 or earlier should upgrade to
14256   this release, if for some reason they cannot upgrade to a later
14257   release series.
14259   Note that support for Tor 0.2.7.x is ending this year: we will not issue
14260   any fixes for the Tor 0.2.7.x series after 1 August 2017.  If you need
14261   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14263   o Directory authority changes (backport from 0.2.8.5-rc):
14264     - Urras is no longer a directory authority. Closes ticket 19271.
14266   o Directory authority changes (backport from 0.2.9.2-alpha):
14267     - The "Tonga" bridge authority has been retired; the new bridge
14268       authority is "Bifroest". Closes tickets 19728 and 19690.
14270   o Directory authority key updates (backport from 0.2.8.1-alpha):
14271     - Update the V3 identity key for the dannenberg directory authority:
14272       it was changed on 18 November 2015. Closes task 17906. Patch
14273       by "teor".
14275   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14276     - Fix a bug in parsing that could cause clients to read a single
14277       byte past the end of an allocated region. This bug could be used
14278       to cause hardened clients (built with --enable-expensive-hardening)
14279       to crash if they tried to visit a hostile hidden service. Non-
14280       hardened clients are only affected depending on the details of
14281       their platform's memory allocator. Fixes bug 21018; bugfix on
14282       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14283       2016-12-002 and as CVE-2016-1254.
14285   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14286     - Stop a crash that could occur when a client running with DNSPort
14287       received a query with multiple address types, and the first
14288       address type was not supported. Found and fixed by Scott Dial.
14289       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14290     - Prevent a class of security bugs caused by treating the contents
14291       of a buffer chunk as if they were a NUL-terminated string. At
14292       least one such bug seems to be present in all currently used
14293       versions of Tor, and would allow an attacker to remotely crash
14294       most Tor instances, especially those compiled with extra compiler
14295       hardening. With this defense in place, such bugs can't crash Tor,
14296       though we should still fix them as they occur. Closes ticket
14297       20384 (TROVE-2016-10-001).
14299   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14300     - Avoid a difficult-to-trigger heap corruption attack when extending
14301       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14302       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14303       Reported by Guido Vranken.
14305   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14306     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14307       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14309   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14310     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14311       pointer to the previous (uninitialized) key value. The impact here
14312       should be limited to a difficult-to-trigger crash, if OpenSSL is
14313       running an engine that makes key generation failures possible, or
14314       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14315       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14316       Baishakhi Ray.
14318   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14319     - Fix an integer underflow bug when comparing malformed Tor
14320       versions. This bug could crash Tor when built with
14321       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14322       0.2.9.8, which were built with -ftrapv by default. In other cases
14323       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14324       on 0.0.8pre1. Found by OSS-Fuzz.
14326   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14327     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14328       zero size. Check size argument to memwipe() for underflow. Fixes
14329       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14330       patch by "teor".
14332   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14333     - Make Tor survive errors involving connections without a
14334       corresponding event object. Previously we'd fail with an
14335       assertion; now we produce a log message. Related to bug 16248.
14337   o Minor features (geoip):
14338     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14339       Country database.
14342 Changes in version 0.2.6.11 - 2017-03-03
14343   Tor 0.2.6.11 backports a number of security fixes from later Tor
14344   releases.  Anybody running Tor 0.2.6.10 or earlier should upgrade to
14345   this release, if for some reason they cannot upgrade to a later
14346   release series.
14348   Note that support for Tor 0.2.6.x is ending this year: we will not issue
14349   any fixes for the Tor 0.2.6.x series after 1 August 2017.  If you need
14350   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14352   o Directory authority changes (backport from 0.2.8.5-rc):
14353     - Urras is no longer a directory authority. Closes ticket 19271.
14355   o Directory authority changes (backport from 0.2.9.2-alpha):
14356     - The "Tonga" bridge authority has been retired; the new bridge
14357       authority is "Bifroest". Closes tickets 19728 and 19690.
14359   o Directory authority key updates (backport from 0.2.8.1-alpha):
14360     - Update the V3 identity key for the dannenberg directory authority:
14361       it was changed on 18 November 2015. Closes task 17906. Patch
14362       by "teor".
14364   o Major features (security fixes, backport from 0.2.9.4-alpha):
14365     - Prevent a class of security bugs caused by treating the contents
14366       of a buffer chunk as if they were a NUL-terminated string. At
14367       least one such bug seems to be present in all currently used
14368       versions of Tor, and would allow an attacker to remotely crash
14369       most Tor instances, especially those compiled with extra compiler
14370       hardening. With this defense in place, such bugs can't crash Tor,
14371       though we should still fix them as they occur. Closes ticket
14372       20384 (TROVE-2016-10-001).
14374   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14375     - Fix a bug in parsing that could cause clients to read a single
14376       byte past the end of an allocated region. This bug could be used
14377       to cause hardened clients (built with --enable-expensive-hardening)
14378       to crash if they tried to visit a hostile hidden service. Non-
14379       hardened clients are only affected depending on the details of
14380       their platform's memory allocator. Fixes bug 21018; bugfix on
14381       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14382       2016-12-002 and as CVE-2016-1254.
14384   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14385     - Stop a crash that could occur when a client running with DNSPort
14386       received a query with multiple address types, and the first
14387       address type was not supported. Found and fixed by Scott Dial.
14388       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14390   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
14391     - Fix an error that could cause us to read 4 bytes before the
14392       beginning of an openssl string. This bug could be used to cause
14393       Tor to crash on systems with unusual malloc implementations, or
14394       systems with unusual hardening installed. Fixes bug 17404; bugfix
14395       on 0.2.3.6-alpha.
14397   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14398     - Avoid a difficult-to-trigger heap corruption attack when extending
14399       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14400       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14401       Reported by Guido Vranken.
14403   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14404     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14405       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14407   o Major bugfixes (guard selection, backport from 0.2.7.6):
14408     - Actually look at the Guard flag when selecting a new directory
14409       guard. When we implemented the directory guard design, we
14410       accidentally started treating all relays as if they have the Guard
14411       flag during guard selection, leading to weaker anonymity and worse
14412       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
14413       by Mohsen Imani.
14415   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14416     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14417       pointer to the previous (uninitialized) key value. The impact here
14418       should be limited to a difficult-to-trigger crash, if OpenSSL is
14419       running an engine that makes key generation failures possible, or
14420       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14421       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14422       Baishakhi Ray.
14424   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14425     - Fix an integer underflow bug when comparing malformed Tor
14426       versions. This bug could crash Tor when built with
14427       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14428       0.2.9.8, which were built with -ftrapv by default. In other cases
14429       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14430       on 0.0.8pre1. Found by OSS-Fuzz.
14432   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14433     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14434       zero size. Check size argument to memwipe() for underflow. Fixes
14435       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14436       patch by "teor".
14438   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14439     - Make Tor survive errors involving connections without a
14440       corresponding event object. Previously we'd fail with an
14441       assertion; now we produce a log message. Related to bug 16248.
14443   o Minor features (geoip):
14444     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14445       Country database.
14447   o Minor bugfixes (compilation, backport from 0.2.7.6):
14448     - Fix a compilation warning with Clang 3.6: Do not check the
14449       presence of an address which can never be NULL. Fixes bug 17781.
14452 Changes in version 0.2.5.13 - 2017-03-03
14453   Tor 0.2.5.13 backports a number of security fixes from later Tor
14454   releases.  Anybody running Tor 0.2.5.13 or earlier should upgrade to
14455   this release, if for some reason they cannot upgrade to a later
14456   release series.
14458   Note that support for Tor 0.2.5.x is ending next year: we will not issue
14459   any fixes for the Tor 0.2.5.x series after 1 May 2018.  If you need
14460   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14462   o Directory authority changes (backport from 0.2.8.5-rc):
14463     - Urras is no longer a directory authority. Closes ticket 19271.
14465   o Directory authority changes (backport from 0.2.9.2-alpha):
14466     - The "Tonga" bridge authority has been retired; the new bridge
14467       authority is "Bifroest". Closes tickets 19728 and 19690.
14469   o Directory authority key updates (backport from 0.2.8.1-alpha):
14470     - Update the V3 identity key for the dannenberg directory authority:
14471       it was changed on 18 November 2015. Closes task 17906. Patch
14472       by "teor".
14474   o Major features (security fixes, backport from 0.2.9.4-alpha):
14475     - Prevent a class of security bugs caused by treating the contents
14476       of a buffer chunk as if they were a NUL-terminated string. At
14477       least one such bug seems to be present in all currently used
14478       versions of Tor, and would allow an attacker to remotely crash
14479       most Tor instances, especially those compiled with extra compiler
14480       hardening. With this defense in place, such bugs can't crash Tor,
14481       though we should still fix them as they occur. Closes ticket
14482       20384 (TROVE-2016-10-001).
14484   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14485     - Fix a bug in parsing that could cause clients to read a single
14486       byte past the end of an allocated region. This bug could be used
14487       to cause hardened clients (built with --enable-expensive-hardening)
14488       to crash if they tried to visit a hostile hidden service. Non-
14489       hardened clients are only affected depending on the details of
14490       their platform's memory allocator. Fixes bug 21018; bugfix on
14491       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14492       2016-12-002 and as CVE-2016-1254.
14494   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14495     - Stop a crash that could occur when a client running with DNSPort
14496       received a query with multiple address types, and the first
14497       address type was not supported. Found and fixed by Scott Dial.
14498       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14500   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
14501     - Fix an error that could cause us to read 4 bytes before the
14502       beginning of an openssl string. This bug could be used to cause
14503       Tor to crash on systems with unusual malloc implementations, or
14504       systems with unusual hardening installed. Fixes bug 17404; bugfix
14505       on 0.2.3.6-alpha.
14507   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14508     - Avoid a difficult-to-trigger heap corruption attack when extending
14509       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14510       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14511       Reported by Guido Vranken.
14513   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14514     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14515       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14517   o Major bugfixes (guard selection, backport from 0.2.7.6):
14518     - Actually look at the Guard flag when selecting a new directory
14519       guard. When we implemented the directory guard design, we
14520       accidentally started treating all relays as if they have the Guard
14521       flag during guard selection, leading to weaker anonymity and worse
14522       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
14523       by Mohsen Imani.
14525   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14526     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14527       pointer to the previous (uninitialized) key value. The impact here
14528       should be limited to a difficult-to-trigger crash, if OpenSSL is
14529       running an engine that makes key generation failures possible, or
14530       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14531       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14532       Baishakhi Ray.
14534   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14535     - Fix an integer underflow bug when comparing malformed Tor
14536       versions. This bug could crash Tor when built with
14537       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14538       0.2.9.8, which were built with -ftrapv by default. In other cases
14539       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14540       on 0.0.8pre1. Found by OSS-Fuzz.
14542   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14543     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14544       zero size. Check size argument to memwipe() for underflow. Fixes
14545       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14546       patch by "teor".
14548   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14549     - Make Tor survive errors involving connections without a
14550       corresponding event object. Previously we'd fail with an
14551       assertion; now we produce a log message. Related to bug 16248.
14553   o Minor features (geoip):
14554     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14555       Country database.
14557   o Minor bugfixes (compilation, backport from 0.2.7.6):
14558     - Fix a compilation warning with Clang 3.6: Do not check the
14559       presence of an address which can never be NULL. Fixes bug 17781.
14561   o Minor bugfixes (crypto error-handling, backport from 0.2.7.2-alpha):
14562     - Check for failures from crypto_early_init, and refuse to continue.
14563       A previous typo meant that we could keep going with an
14564       uninitialized crypto library, and would have OpenSSL initialize
14565       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
14566       when implementing ticket 4900. Patch by "teor".
14568   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
14569     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
14570       a client authorized hidden service. Fixes bug 15823; bugfix
14571       on 0.2.1.6-alpha.
14574 Changes in version 0.2.4.28 - 2017-03-03
14575   Tor 0.2.4.28 backports a number of security fixes from later Tor
14576   releases.  Anybody running Tor 0.2.4.27 or earlier should upgrade to
14577   this release, if for some reason they cannot upgrade to a later
14578   release series.
14580   Note that support for Tor 0.2.4.x is ending soon: we will not issue
14581   any fixes for the Tor 0.2.4.x series after 1 August 2017.  If you need
14582   a Tor release series with long-term support, we recommend Tor 0.2.9.x.
14584   o Directory authority changes (backport from 0.2.8.5-rc):
14585     - Urras is no longer a directory authority. Closes ticket 19271.
14587   o Directory authority changes (backport from 0.2.9.2-alpha):
14588     - The "Tonga" bridge authority has been retired; the new bridge
14589       authority is "Bifroest". Closes tickets 19728 and 19690.
14591   o Directory authority key updates (backport from 0.2.8.1-alpha):
14592     - Update the V3 identity key for the dannenberg directory authority:
14593       it was changed on 18 November 2015. Closes task 17906. Patch
14594       by "teor".
14596   o Major features (security fixes, backport from 0.2.9.4-alpha):
14597     - Prevent a class of security bugs caused by treating the contents
14598       of a buffer chunk as if they were a NUL-terminated string. At
14599       least one such bug seems to be present in all currently used
14600       versions of Tor, and would allow an attacker to remotely crash
14601       most Tor instances, especially those compiled with extra compiler
14602       hardening. With this defense in place, such bugs can't crash Tor,
14603       though we should still fix them as they occur. Closes ticket
14604       20384 (TROVE-2016-10-001).
14606   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14607     - Fix a bug in parsing that could cause clients to read a single
14608       byte past the end of an allocated region. This bug could be used
14609       to cause hardened clients (built with --enable-expensive-hardening)
14610       to crash if they tried to visit a hostile hidden service. Non-
14611       hardened clients are only affected depending on the details of
14612       their platform's memory allocator. Fixes bug 21018; bugfix on
14613       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14614       2016-12-002 and as CVE-2016-1254.
14616   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
14617     - Fix an error that could cause us to read 4 bytes before the
14618       beginning of an openssl string. This bug could be used to cause
14619       Tor to crash on systems with unusual malloc implementations, or
14620       systems with unusual hardening installed. Fixes bug 17404; bugfix
14621       on 0.2.3.6-alpha.
14623   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14624     - Avoid a difficult-to-trigger heap corruption attack when extending
14625       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14626       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14627       Reported by Guido Vranken.
14629   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14630     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14631       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14633   o Major bugfixes (guard selection, backport from 0.2.7.6):
14634     - Actually look at the Guard flag when selecting a new directory
14635       guard. When we implemented the directory guard design, we
14636       accidentally started treating all relays as if they have the Guard
14637       flag during guard selection, leading to weaker anonymity and worse
14638       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
14639       by Mohsen Imani.
14641   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14642     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14643       pointer to the previous (uninitialized) key value. The impact here
14644       should be limited to a difficult-to-trigger crash, if OpenSSL is
14645       running an engine that makes key generation failures possible, or
14646       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14647       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14648       Baishakhi Ray.
14650   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14651     - Fix an integer underflow bug when comparing malformed Tor
14652       versions. This bug could crash Tor when built with
14653       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14654       0.2.9.8, which were built with -ftrapv by default. In other cases
14655       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14656       on 0.0.8pre1. Found by OSS-Fuzz.
14658   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14659     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14660       zero size. Check size argument to memwipe() for underflow. Fixes
14661       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14662       patch by "teor".
14664   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14665     - Make Tor survive errors involving connections without a
14666       corresponding event object. Previously we'd fail with an
14667       assertion; now we produce a log message. Related to bug 16248.
14669   o Minor features (DoS-resistance, backport from 0.2.7.1-alpha):
14670     - Make it harder for attackers to overload hidden services with
14671       introductions, by blocking multiple introduction requests on the
14672       same circuit. Resolves ticket 15515.
14674   o Minor features (geoip):
14675     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14676       Country database.
14678   o Minor bugfixes (compilation, backport from 0.2.7.6):
14679     - Fix a compilation warning with Clang 3.6: Do not check the
14680       presence of an address which can never be NULL. Fixes bug 17781.
14682   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
14683     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
14684       a client authorized hidden service. Fixes bug 15823; bugfix
14685       on 0.2.1.6-alpha.
14688 Changes in version 0.3.0.4-rc - 2017-03-01
14689   Tor 0.3.0.4-rc fixes some remaining bugs, large and small, in the
14690   0.3.0 release series, and introduces a few reliability features to
14691   keep them from coming back.
14693   This is the first release candidate in the Tor 0.3.0 series. If we
14694   find no new bugs or regressions here, the first stable 0.3.0 release
14695   will be nearly identical to it.
14697   o Major bugfixes (bridges):
14698     - When the same bridge is configured multiple times with the same
14699       identity, but at different address:port combinations, treat those
14700       bridge instances as separate guards. This fix restores the ability
14701       of clients to configure the same bridge with multiple pluggable
14702       transports. Fixes bug 21027; bugfix on 0.3.0.1-alpha.
14704   o Major bugfixes (hidden service directory v3):
14705     - Stop crashing on a failed v3 hidden service descriptor lookup
14706       failure. Fixes bug 21471; bugfixes on 0.3.0.1-alpha.
14708   o Major bugfixes (parsing):
14709     - When parsing a malformed content-length field from an HTTP
14710       message, do not read off the end of the buffer. This bug was a
14711       potential remote denial-of-service attack against Tor clients and
14712       relays. A workaround was released in October 2016, to prevent this
14713       bug from crashing Tor. This is a fix for the underlying issue,
14714       which should no longer matter (if you applied the earlier patch).
14715       Fixes bug 20894; bugfix on 0.2.0.16-alpha. Bug found by fuzzing
14716       using AFL (http://lcamtuf.coredump.cx/afl/).
14717     - Fix an integer underflow bug when comparing malformed Tor
14718       versions. This bug could crash Tor when built with
14719       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14720       0.2.9.8, which were built with -ftrapv by default. In other cases
14721       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14722       on 0.0.8pre1. Found by OSS-Fuzz.
14724   o Minor feature (protocol versioning):
14725     - Add new protocol version for proposal 224. HSIntro now advertises
14726       version "3-4" and HSDir version "1-2". Fixes ticket 20656.
14728   o Minor features (directory authorities):
14729     - Directory authorities now reject descriptors that claim to be
14730       malformed versions of Tor. Helps prevent exploitation of
14731       bug 21278.
14732     - Reject version numbers with components that exceed INT32_MAX.
14733       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
14734       Fixes bug 21450; bugfix on 0.0.8pre1.
14735     - Directory authorities now reject relays running versions
14736       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
14737       suffer from bug 20499 and don't keep their consensus cache
14738       up-to-date. Resolves ticket 20509.
14740   o Minor features (geoip):
14741     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14742       Country database.
14744   o Minor features (reliability, crash):
14745     - Try better to detect problems in buffers where they might grow (or
14746       think they have grown) over 2 GB in size. Diagnostic for
14747       bug 21369.
14749   o Minor features (testing):
14750     - During 'make test-network-all', if tor logs any warnings, ask
14751       chutney to output them. Requires a recent version of chutney with
14752       the 21572 patch. Implements 21570.
14754   o Minor bugfixes (certificate expiration time):
14755     - Avoid using link certificates that don't become valid till some
14756       time in the future. Fixes bug 21420; bugfix on 0.2.4.11-alpha
14758   o Minor bugfixes (code correctness):
14759     - Repair a couple of (unreachable or harmless) cases of the risky
14760       comparison-by-subtraction pattern that caused bug 21278.
14761     - Remove a redundant check for the UseEntryGuards option from the
14762       options_transition_affects_guards() function. Fixes bug 21492;
14763       bugfix on 0.3.0.1-alpha.
14765   o Minor bugfixes (directory mirrors):
14766     - Allow relays to use directory mirrors without a DirPort: these
14767       relays need to be contacted over their ORPorts using a begindir
14768       connection. Fixes one case of bug 20711; bugfix on 0.2.8.2-alpha.
14769     - Clarify the message logged when a remote relay is unexpectedly
14770       missing an ORPort or DirPort: users were confusing this with a
14771       local port. Fixes another case of bug 20711; bugfix
14772       on 0.2.8.2-alpha.
14774   o Minor bugfixes (guards):
14775     - Don't warn about a missing guard state on timeout-measurement
14776       circuits: they aren't supposed to be using guards. Fixes an
14777       instance of bug 21007; bugfix on 0.3.0.1-alpha.
14778     - Silence a BUG() warning when attempting to use a guard whose
14779       descriptor we don't know, and make this scenario less likely to
14780       happen. Fixes bug 21415; bugfix on 0.3.0.1-alpha.
14782   o Minor bugfixes (hidden service):
14783     - Pass correct buffer length when encoding legacy ESTABLISH_INTRO
14784       cells. Previously, we were using sizeof() on a pointer, instead of
14785       the real destination buffer. Fortunately, that value was only used
14786       to double-check that there was enough room--which was already
14787       enforced elsewhere. Fixes bug 21553; bugfix on 0.3.0.1-alpha.
14789   o Minor bugfixes (testing):
14790     - Fix Raspbian build issues related to missing socket errno in
14791       test_util.c. Fixes bug 21116; bugfix on 0.2.8.2. Patch
14792       by "hein".
14793     - Rename "make fuzz" to "make test-fuzz-corpora", since it doesn't
14794       actually fuzz anything. Fixes bug 21447; bugfix on 0.3.0.3-alpha.
14795     - Use bash in src/test/test-network.sh. This ensures we reliably
14796       call chutney's newer tools/test-network.sh when available. Fixes
14797       bug 21562; bugfix on 0.2.9.1-alpha.
14799   o Documentation:
14800     - Small fixes to the fuzzing documentation. Closes ticket 21472.
14803 Changes in version 0.2.9.10 - 2017-03-01
14804   Tor 0.2.9.10 backports a security fix from later Tor release.  It also
14805   includes fixes for some major issues affecting directory authorities,
14806   LibreSSL compatibility, and IPv6 correctness.
14808   The Tor 0.2.9.x release series is now marked as a long-term-support
14809   series.  We intend to backport security fixes to 0.2.9.x until at
14810   least January of 2020.
14812   o Major bugfixes (directory authority, 0.3.0.3-alpha):
14813     - During voting, when marking a relay as a probable sybil, do not
14814       clear its BadExit flag: sybils can still be bad in other ways
14815       too. (We still clear the other flags.) Fixes bug 21108; bugfix
14816       on 0.2.0.13-alpha.
14818   o Major bugfixes (IPv6 Exits, backport from 0.3.0.3-alpha):
14819     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
14820       any IPv6 addresses. Instead, only reject a port over IPv6 if the
14821       exit policy rejects that port on more than an IPv6 /16 of
14822       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
14823       which rejected a relay's own IPv6 address by default. Fixes bug
14824       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
14826   o Major bugfixes (parsing, also in 0.3.0.4-rc):
14827     - Fix an integer underflow bug when comparing malformed Tor
14828       versions. This bug could crash Tor when built with
14829       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14830       0.2.9.8, which were built with -ftrapv by default. In other cases
14831       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14832       on 0.0.8pre1. Found by OSS-Fuzz.
14834   o Minor features (directory authorities, also in 0.3.0.4-rc):
14835     - Directory authorities now reject descriptors that claim to be
14836       malformed versions of Tor. Helps prevent exploitation of
14837       bug 21278.
14838     - Reject version numbers with components that exceed INT32_MAX.
14839       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
14840       Fixes bug 21450; bugfix on 0.0.8pre1.
14842   o Minor features (geoip):
14843     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14844       Country database.
14846   o Minor features (portability, compilation, backport from 0.3.0.3-alpha):
14847     - Autoconf now checks to determine if OpenSSL structures are opaque,
14848       instead of explicitly checking for OpenSSL version numbers. Part
14849       of ticket 21359.
14850     - Support building with recent LibreSSL code that uses opaque
14851       structures. Closes ticket 21359.
14853   o Minor bugfixes (code correctness, also in 0.3.0.4-rc):
14854     - Repair a couple of (unreachable or harmless) cases of the risky
14855       comparison-by-subtraction pattern that caused bug 21278.
14857   o Minor bugfixes (tor-resolve, backport from 0.3.0.3-alpha):
14858     - The tor-resolve command line tool now rejects hostnames over 255
14859       characters in length. Previously, it would silently truncate them,
14860       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
14861       Patch by "junglefowl".
14864 Changes in version 0.3.0.3-alpha - 2017-02-03
14865   Tor 0.3.0.3-alpha fixes a few significant bugs introduced over the
14866   0.3.0.x development series, including some that could cause
14867   authorities to behave badly. There is also a fix for a longstanding
14868   bug that could prevent IPv6 exits from working. Tor 0.3.0.3-alpha also
14869   includes some smaller features and bugfixes.
14871   The Tor 0.3.0.x release series is now in patch-freeze: no additional
14872   features will be considered for inclusion in 0.3.0.x. We suspect that
14873   some bugs will probably remain, however, and we encourage people to
14874   test this release.
14876   o Major bugfixes (directory authority):
14877     - During voting, when marking a relay as a probable sybil, do not
14878       clear its BadExit flag: sybils can still be bad in other ways
14879       too. (We still clear the other flags.) Fixes bug 21108; bugfix
14880       on 0.2.0.13-alpha.
14881     - When deciding whether we have just found a router to be reachable,
14882       do not penalize it for not having performed an Ed25519 link
14883       handshake if it does not claim to support an Ed25519 handshake.
14884       Previously, we would treat such relays as non-running. Fixes bug
14885       21107; bugfix on 0.3.0.1-alpha.
14887   o Major bugfixes (entry guards):
14888     - Stop trying to build circuits through entry guards for which we
14889       have no descriptor. Also, stop crashing in the case that we *do*
14890       accidentally try to build a circuit in such a state. Fixes bug
14891       21242; bugfix on 0.3.0.1-alpha.
14893   o Major bugfixes (IPv6 Exits):
14894     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
14895       any IPv6 addresses. Instead, only reject a port over IPv6 if the
14896       exit policy rejects that port on more than an IPv6 /16 of
14897       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
14898       which rejected a relay's own IPv6 address by default. Fixes bug
14899       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
14901   o Minor feature (client):
14902     - Enable IPv6 traffic on the SocksPort by default. To disable this,
14903       a user will have to specify "NoIPv6Traffic". Closes ticket 21269.
14905   o Minor feature (fallback scripts):
14906     - Add a check_existing mode to updateFallbackDirs.py, which checks
14907       if fallbacks in the hard-coded list are working. Closes ticket
14908       20174. Patch by haxxpop.
14910   o Minor features (ciphersuite selection):
14911     - Clients now advertise a list of ciphersuites closer to the ones
14912       preferred by Firefox. Closes part of ticket 15426.
14913     - Allow relays to accept a wider range of ciphersuites, including
14914       chacha20-poly1305 and AES-CCM. Closes the other part of 15426.
14916   o Minor features (controller, configuration):
14917     - Each of the *Port options, such as SocksPort, ORPort, ControlPort,
14918       and so on, now comes with a __*Port variant that will not be saved
14919       to the torrc file by the controller's SAVECONF command. This
14920       change allows TorBrowser to set up a single-use domain socket for
14921       each time it launches Tor. Closes ticket 20956.
14922     - The GETCONF command can now query options that may only be
14923       meaningful in context-sensitive lists. This allows the controller
14924       to query the mixed SocksPort/__SocksPort style options introduced
14925       in feature 20956. Implements ticket 21300.
14927   o Minor features (portability, compilation):
14928     - Autoconf now checks to determine if OpenSSL structures are opaque,
14929       instead of explicitly checking for OpenSSL version numbers. Part
14930       of ticket 21359.
14931     - Support building with recent LibreSSL code that uses opaque
14932       structures. Closes ticket 21359.
14934   o Minor features (relay):
14935     - We now allow separation of exit and relay traffic to different
14936       source IP addresses, using the OutboundBindAddressExit and
14937       OutboundBindAddressOR options respectively. Closes ticket 17975.
14938       Written by Michael Sonntag.
14940   o Minor bugfix (logging):
14941     - Don't recommend the use of Tor2web in non-anonymous mode.
14942       Recommending Tor2web is a bad idea because the client loses all
14943       anonymity. Tor2web should only be used in specific cases by users
14944       who *know* and understand the issues. Fixes bug 21294; bugfix
14945       on 0.2.9.3-alpha.
14947   o Minor bugfixes (client):
14948     - Always recover from failures in extend_info_from_node(), in an
14949       attempt to prevent any recurrence of bug 21242. Fixes bug 21372;
14950       bugfix on 0.2.3.1-alpha.
14952   o Minor bugfixes (client, entry guards):
14953     - Fix a bug warning (with backtrace) when we fail a channel that
14954       circuits to fallback directories on it. Fixes bug 21128; bugfix
14955       on 0.3.0.1-alpha.
14956     - Fix a spurious bug warning (with backtrace) when removing an
14957       expired entry guard. Fixes bug 21129; bugfix on 0.3.0.1-alpha.
14958     - Fix a bug of the new guard algorithm where tor could stall for up
14959       to 10 minutes before retrying a guard after a long period of no
14960       network. Fixes bug 21052; bugfix on 0.3.0.1-alpha.
14961     - Do not try to build circuits until we have descriptors for our
14962       primary entry guards. Related to fix for bug 21242.
14964   o Minor bugfixes (configure, autoconf):
14965     - Rename the configure option --enable-expensive-hardening to
14966       --enable-fragile-hardening. Expensive hardening makes the tor
14967       daemon abort when some kinds of issues are detected. Thus, it
14968       makes tor more at risk of remote crashes but safer against RCE or
14969       heartbleed bug category. We now try to explain this issue in a
14970       message from the configure script. Fixes bug 21290; bugfix
14971       on 0.2.5.4-alpha.
14973   o Minor bugfixes (controller):
14974     - Restore the (deprecated) DROPGUARDS controller command. Fixes bug
14975       20824; bugfix on 0.3.0.1-alpha.
14977   o Minor bugfixes (hidden service):
14978     - Clean up the code for expiring intro points with no associated
14979       circuits. It was causing, rarely, a service with some expiring
14980       introduction points to not open enough additional introduction
14981       points. Fixes part of bug 21302; bugfix on 0.2.7.2-alpha.
14982     - Stop setting the torrc option HiddenServiceStatistics to "0" just
14983       because we're not a bridge or relay. Instead, we preserve whatever
14984       value the user set (or didn't set). Fixes bug 21150; bugfix
14985       on 0.2.6.2-alpha.
14986     - Resolve two possible underflows which could lead to creating and
14987       closing a lot of introduction point circuits in a non-stop loop.
14988       Fixes bug 21302; bugfix on 0.2.7.2-alpha.
14990   o Minor bugfixes (portability):
14991     - Use "OpenBSD" compiler macro instead of "OPENBSD" or "__OpenBSD__".
14992       It is supported by OpenBSD itself, and also by most OpenBSD
14993       variants (such as Bitrig). Fixes bug 20980; bugfix
14994       on 0.1.2.1-alpha.
14995     - When mapping a file of length greater than SIZE_MAX, do not
14996       silently truncate its contents. This issue could occur on 32 bit
14997       systems with large file support and files which are larger than 4
14998       GB. Fixes bug 21134; bugfix on 0.3.0.1-alpha.
15000   o Minor bugfixes (tor-resolve):
15001     - The tor-resolve command line tool now rejects hostnames over 255
15002       characters in length. Previously, it would silently truncate them,
15003       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
15004       Patch by "junglefowl".
15006   o Minor bugfixes (Windows services):
15007     - Be sure to initialize the monotonic time subsystem before using
15008       it, even when running as an NT service. Fixes bug 21356; bugfix
15009       on 0.2.9.1-alpha.
15012 Changes in version 0.3.0.2-alpha - 2017-01-23
15013   Tor 0.3.0.2-alpha fixes a denial-of-service bug where an attacker could
15014   cause relays and clients to crash, even if they were not built with
15015   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
15016   versions, and also affects 0.3.0.1-alpha: all relays running an affected
15017   version should upgrade.
15019   Tor 0.3.0.2-alpha also improves how exit relays and clients handle DNS
15020   time-to-live values, makes directory authorities enforce the 1-to-1
15021   mapping of relay RSA identity keys to ED25519 identity keys, fixes a
15022   client-side onion service reachability bug, does better at selecting
15023   the set of fallback directories, and more.
15025   o Major bugfixes (security, also in 0.2.9.9):
15026     - Downgrade the "-ftrapv" option from "always on" to "only on when
15027       --enable-expensive-hardening is provided."  This hardening option, like
15028       others, can turn survivable bugs into crashes--and having it on by
15029       default made a (relatively harmless) integer overflow bug into a
15030       denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); bugfix on
15031       0.2.9.1-alpha.
15033   o Major features (security):
15034     - Change the algorithm used to decide DNS TTLs on client and server
15035       side, to better resist DNS-based correlation attacks like the
15036       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
15037       Feamster. Now relays only return one of two possible DNS TTL
15038       values, and clients are willing to believe DNS TTL values up to 3
15039       hours long. Closes ticket 19769.
15041   o Major features (directory authority, security):
15042     - The default for AuthDirPinKeys is now 1: directory authorities
15043       will reject relays where the RSA identity key matches a previously
15044       seen value, but the Ed25519 key has changed. Closes ticket 18319.
15046   o Major bugfixes (client, guard, crash):
15047     - In circuit_get_global_origin_list(), return the actual list of
15048       origin circuits. The previous version of this code returned the
15049       list of all the circuits, and could have caused strange bugs,
15050       including possible crashes. Fixes bug 21118; bugfix
15051       on 0.3.0.1-alpha.
15053   o Major bugfixes (client, onion service, also in 0.2.9.9):
15054     - Fix a client-side onion service reachability bug, where multiple
15055       socks requests to an onion service (or a single slow request)
15056       could cause us to mistakenly mark some of the service's
15057       introduction points as failed, and we cache that failure so
15058       eventually we run out and can't reach the service. Also resolves a
15059       mysterious "Remote server sent bogus reason code 65021" log
15060       warning. The bug was introduced in ticket 17218, where we tried to
15061       remember the circuit end reason as a uint16_t, which mangled
15062       negative values. Partially fixes bug 21056 and fixes bug 20307;
15063       bugfix on 0.2.8.1-alpha.
15065   o Major bugfixes (DNS):
15066     - Fix a bug that prevented exit nodes from caching DNS records for
15067       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
15069   o Minor features (controller):
15070     - Add "GETINFO sr/current" and "GETINFO sr/previous" keys, to expose
15071       shared-random values to the controller. Closes ticket 19925.
15073   o Minor features (entry guards):
15074     - Add UseEntryGuards to TEST_OPTIONS_DEFAULT_VALUES in order to not
15075       break regression tests.
15076     - Require UseEntryGuards when UseBridges is set, in order to make
15077       sure bridges aren't bypassed. Resolves ticket 20502.
15079   o Minor features (fallback directories):
15080     - Select 200 fallback directories for each release. Closes
15081       ticket 20881.
15082     - Allow 3 fallback relays per operator, which is safe now that we
15083       are choosing 200 fallback relays. Closes ticket 20912.
15084     - Exclude relays affected by bug 20499 from the fallback list.
15085       Exclude relays from the fallback list if they are running versions
15086       known to be affected by bug 20499, or if in our tests they deliver
15087       a stale consensus (i.e. one that expired more than 24 hours ago).
15088       Closes ticket 20539.
15089     - Reduce the minimum fallback bandwidth to 1 MByte/s. Part of
15090       ticket 18828.
15091     - Require fallback directories to have the same address and port for
15092       7 days (now that we have enough relays with this stability).
15093       Relays whose OnionOO stability timer is reset on restart by bug
15094       18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for
15095       this issue. Closes ticket 20880; maintains short-term fix
15096       in 0.2.8.2-alpha.
15097     - Require fallbacks to have flags for 90% of the time (weighted
15098       decaying average), rather than 95%. This allows at least 73% of
15099       clients to bootstrap in the first 5 seconds without contacting an
15100       authority. Part of ticket 18828.
15101     - Annotate updateFallbackDirs.py with the bandwidth and consensus
15102       weight for each candidate fallback. Closes ticket 20878.
15103     - Make it easier to change the output sort order of fallbacks.
15104       Closes ticket 20822.
15105     - Display the relay fingerprint when downloading consensuses from
15106       fallbacks. Closes ticket 20908.
15108   o Minor features (geoip, also in 0.2.9.9):
15109     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
15110       Country database.
15112   o Minor features (next-gen onion service directories):
15113     - Remove the "EnableOnionServicesV3" consensus parameter that we
15114       introduced in 0.3.0.1-alpha: relays are now always willing to act
15115       as v3 onion service directories. Resolves ticket 19899.
15117   o Minor features (linting):
15118     - Enhance the changes file linter to warn on Tor versions that are
15119       prefixed with "tor-". Closes ticket 21096.
15121   o Minor features (logging):
15122     - In several places, describe unset ed25519 keys as "<unset>",
15123       rather than the scary "AAAAAAAA...AAA". Closes ticket 21037.
15125   o Minor bugfix (control protocol):
15126     - The reply to a "GETINFO config/names" request via the control
15127       protocol now spells the type "Dependent" correctly. This is a
15128       breaking change in the control protocol. (The field seems to be
15129       ignored by the most common known controllers.) Fixes bug 18146;
15130       bugfix on 0.1.1.4-alpha.
15132   o Minor bugfixes (bug resilience):
15133     - Fix an unreachable size_t overflow in base64_decode(). Fixes bug
15134       19222; bugfix on 0.2.0.9-alpha. Found by Guido Vranken; fixed by
15135       Hans Jerry Illikainen.
15137   o Minor bugfixes (build):
15138     - Replace obsolete Autoconf macros with their modern equivalent and
15139       prevent similar issues in the future. Fixes bug 20990; bugfix
15140       on 0.1.0.1-rc.
15142   o Minor bugfixes (client, guards):
15143     - Fix bug where Tor would think that there are circuits waiting for
15144       better guards even though those circuits have been freed. Fixes
15145       bug 21142; bugfix on 0.3.0.1-alpha.
15147   o Minor bugfixes (config):
15148     - Don't assert on startup when trying to get the options list and
15149       LearnCircuitBuildTimeout is set to 0: we are currently parsing the
15150       options so of course they aren't ready yet. Fixes bug 21062;
15151       bugfix on 0.2.9.3-alpha.
15153   o Minor bugfixes (controller):
15154     - Make the GETINFO interface for inquiring about entry guards
15155       support the new guards backend. Fixes bug 20823; bugfix
15156       on 0.3.0.1-alpha.
15158   o Minor bugfixes (dead code):
15159     - Remove a redundant check for PidFile changes at runtime in
15160       options_transition_allowed(): this check is already performed
15161       regardless of whether the sandbox is active. Fixes bug 21123;
15162       bugfix on 0.2.5.4-alpha.
15164   o Minor bugfixes (documentation):
15165     - Update the tor manual page to document every option that can not
15166       be changed while tor is running. Fixes bug 21122.
15168   o Minor bugfixes (fallback directories):
15169     - Stop failing when a relay has no uptime data in
15170       updateFallbackDirs.py. Fixes bug 20945; bugfix on 0.2.8.1-alpha.
15171     - Avoid checking fallback candidates' DirPorts if they are down in
15172       OnionOO. When a relay operator has multiple relays, this
15173       prioritizes relays that are up over relays that are down. Fixes
15174       bug 20926; bugfix on 0.2.8.3-alpha.
15175     - Stop failing when OUTPUT_COMMENTS is True in updateFallbackDirs.py.
15176       Fixes bug 20877; bugfix on 0.2.8.3-alpha.
15178   o Minor bugfixes (guards, bootstrapping):
15179     - When connecting to a directory guard during bootstrap, do not mark
15180       the guard as successful until we receive a good-looking directory
15181       response from it. Fixes bug 20974; bugfix on 0.3.0.1-alpha.
15183   o Minor bugfixes (onion services):
15184     - Fix the config reload pruning of old vs new services so it
15185       actually works when both ephemeral and non-ephemeral services are
15186       configured. Fixes bug 21054; bugfix on 0.3.0.1-alpha.
15187     - Allow the number of introduction points to be as low as 0, rather
15188       than as low as 3. Fixes bug 21033; bugfix on 0.2.7.2-alpha.
15190   o Minor bugfixes (IPv6):
15191     - Make IPv6-using clients try harder to find an IPv6 directory
15192       server. Fixes bug 20999; bugfix on 0.2.8.2-alpha.
15193     - When IPv6 addresses have not been downloaded yet (microdesc
15194       consensus documents don't list relay IPv6 addresses), use hard-
15195       coded addresses for authorities, fallbacks, and configured
15196       bridges. Now IPv6-only clients can use microdescriptors. Fixes bug
15197       20996; bugfix on b167e82 from 19608 in 0.2.8.5-alpha.
15199   o Minor bugfixes (memory leaks):
15200     - Fix a memory leak when configuring hidden services. Fixes bug
15201       20987; bugfix on 0.3.0.1-alpha.
15203   o Minor bugfixes (portability, also in 0.2.9.9):
15204     - Avoid crashing when Tor is built using headers that contain
15205       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
15206       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
15207       on 0.2.9.1-alpha.
15208     - Fix Libevent detection on platforms without Libevent 1 headers
15209       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
15211   o Minor bugfixes (relay):
15212     - Honor DataDirectoryGroupReadable when tor is a relay. Previously,
15213       initializing the keys would reset the DataDirectory to 0700
15214       instead of 0750 even if DataDirectoryGroupReadable was set to 1.
15215       Fixes bug 19953; bugfix on 0.0.2pre16. Patch by "redfish".
15217   o Minor bugfixes (testing):
15218     - Remove undefined behavior from the backtrace generator by removing
15219       its signal handler. Fixes bug 21026; bugfix on 0.2.5.2-alpha.
15221   o Minor bugfixes (unit tests):
15222     - Allow the unit tests to pass even when DNS lookups of bogus
15223       addresses do not fail as expected. Fixes bug 20862 and 20863;
15224       bugfix on unit tests introduced in 0.2.8.1-alpha
15225       through 0.2.9.4-alpha.
15227   o Code simplification and refactoring:
15228     - Refactor code to manipulate global_origin_circuit_list into
15229       separate functions. Closes ticket 20921.
15231   o Documentation (formatting):
15232     - Clean up formatting of tor.1 man page and HTML doc, where <pre>
15233       blocks were incorrectly appearing. Closes ticket 20885.
15235   o Documentation (man page):
15236     - Clarify many options in tor.1 and add some min/max values for
15237       HiddenService options. Closes ticket 21058.
15240 Changes in version 0.2.9.9 - 2017-01-23
15241   Tor 0.2.9.9 fixes a denial-of-service bug where an attacker could
15242   cause relays and clients to crash, even if they were not built with
15243   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
15244   versions, and also affects 0.3.0.1-alpha: all relays running an affected
15245   version should upgrade.
15247   This release also resolves a client-side onion service reachability
15248   bug, and resolves a pair of small portability issues.
15250   o Major bugfixes (security):
15251     - Downgrade the "-ftrapv" option from "always on" to "only on when
15252       --enable-expensive-hardening is provided." This hardening option,
15253       like others, can turn survivable bugs into crashes -- and having
15254       it on by default made a (relatively harmless) integer overflow bug
15255       into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001);
15256       bugfix on 0.2.9.1-alpha.
15258   o Major bugfixes (client, onion service):
15259     - Fix a client-side onion service reachability bug, where multiple
15260       socks requests to an onion service (or a single slow request)
15261       could cause us to mistakenly mark some of the service's
15262       introduction points as failed, and we cache that failure so
15263       eventually we run out and can't reach the service. Also resolves a
15264       mysterious "Remote server sent bogus reason code 65021" log
15265       warning. The bug was introduced in ticket 17218, where we tried to
15266       remember the circuit end reason as a uint16_t, which mangled
15267       negative values. Partially fixes bug 21056 and fixes bug 20307;
15268       bugfix on 0.2.8.1-alpha.
15270   o Minor features (geoip):
15271     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
15272       Country database.
15274   o Minor bugfixes (portability):
15275     - Avoid crashing when Tor is built using headers that contain
15276       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
15277       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
15278       on 0.2.9.1-alpha.
15279     - Fix Libevent detection on platforms without Libevent 1 headers
15280       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
15283 Changes in version 0.3.0.1-alpha - 2016-12-19
15284   Tor 0.3.0.1-alpha is the first alpha release in the 0.3.0 development
15285   series. It strengthens Tor's link and circuit handshakes by
15286   identifying relays by their Ed25519 keys, improves the algorithm that
15287   clients use to choose and maintain their list of guards, and includes
15288   additional backend support for the next-generation hidden service
15289   design. It also contains numerous other small features and
15290   improvements to security, correctness, and performance.
15292   Below are the changes since 0.2.9.8.
15294   o Major features (guard selection algorithm):
15295     - Tor's guard selection algorithm has been redesigned from the
15296       ground up, to better support unreliable networks and restrictive
15297       sets of entry nodes, and to better resist guard-capture attacks by
15298       hostile local networks. Implements proposal 271; closes
15299       ticket 19877.
15301   o Major features (next-generation hidden services):
15302     - Relays can now handle v3 ESTABLISH_INTRO cells as specified by
15303       prop224 aka "Next Generation Hidden Services". Service and clients
15304       don't use this functionality yet. Closes ticket 19043. Based on
15305       initial code by Alec Heifetz.
15306     - Relays now support the HSDir version 3 protocol, so that they can
15307       can store and serve v3 descriptors. This is part of the next-
15308       generation onion service work detailed in proposal 224. Closes
15309       ticket 17238.
15311   o Major features (protocol, ed25519 identity keys):
15312     - Relays now use Ed25519 to prove their Ed25519 identities and to
15313       one another, and to clients. This algorithm is faster and more
15314       secure than the RSA-based handshake we've been doing until now.
15315       Implements the second big part of proposal 220; Closes
15316       ticket 15055.
15317     - Clients now support including Ed25519 identity keys in the EXTEND2
15318       cells they generate. By default, this is controlled by a consensus
15319       parameter, currently disabled. You can turn this feature on for
15320       testing by setting ExtendByEd25519ID in your configuration. This
15321       might make your traffic appear different than the traffic
15322       generated by other users, however. Implements part of ticket
15323       15056; part of proposal 220.
15324     - Relays now understand requests to extend to other relays by their
15325       Ed25519 identity keys. When an Ed25519 identity key is included in
15326       an EXTEND2 cell, the relay will only extend the circuit if the
15327       other relay can prove ownership of that identity. Implements part
15328       of ticket 15056; part of proposal 220.
15330   o Major bugfixes (scheduler):
15331     - Actually compare circuit policies in ewma_cmp_cmux(). This bug
15332       caused the channel scheduler to behave more or less randomly,
15333       rather than preferring channels with higher-priority circuits.
15334       Fixes bug 20459; bugfix on 0.2.6.2-alpha.
15336   o Minor features (controller):
15337     - When HSFETCH arguments cannot be parsed, say "Invalid argument"
15338       rather than "unrecognized." Closes ticket 20389; patch from
15339       Ivan Markin.
15341   o Minor features (diagnostic, directory client):
15342     - Warn when we find an unexpected inconsistency in directory
15343       download status objects. Prevents some negative consequences of
15344       bug 20593.
15346   o Minor features (directory authority):
15347     - Add a new authority-only AuthDirTestEd25519LinkKeys option (on by
15348       default) to control whether authorities should try to probe relays
15349       by their Ed25519 link keys. This option will go away in a few
15350       releases--unless we encounter major trouble in our ed25519 link
15351       protocol rollout, in which case it will serve as a safety option.
15353   o Minor features (directory cache):
15354     - Relays and bridges will now refuse to serve the consensus they
15355       have if they know it is too old for a client to use. Closes
15356       ticket 20511.
15358   o Minor features (ed25519 link handshake):
15359     - Advertise support for the ed25519 link handshake using the
15360       subprotocol-versions mechanism, so that clients can tell which
15361       relays can identity themselves by Ed25519 ID. Closes ticket 20552.
15363   o Minor features (fingerprinting resistance, authentication):
15364     - Extend the length of RSA keys used for TLS link authentication to
15365       2048 bits. (These weren't used for forward secrecy; for forward
15366       secrecy, we used P256.) Closes ticket 13752.
15368   o Minor features (infrastructure):
15369     - Implement smartlist_add_strdup() function. Replaces the use of
15370       smartlist_add(sl, tor_strdup(str)). Closes ticket 20048.
15372   o Minor bugfixes (client):
15373     - When clients that use bridges start up with a cached consensus on
15374       disk, they were ignoring it and downloading a new one. Now they
15375       use the cached one. Fixes bug 20269; bugfix on 0.2.3.12-alpha.
15377   o Minor bugfixes (configuration):
15378     - Accept non-space whitespace characters after the severity level in
15379       the `Log` option. Fixes bug 19965; bugfix on 0.2.1.1-alpha.
15380     - Support "TByte" and "TBytes" units in options given in bytes.
15381       "TB", "terabyte(s)", "TBit(s)" and "terabit(s)" were already
15382       supported. Fixes bug 20622; bugfix on 0.2.0.14-alpha.
15384   o Minor bugfixes (consensus weight):
15385     - Add new consensus method that initializes bw weights to 1 instead
15386       of 0. This prevents a zero weight from making it all the way to
15387       the end (happens in small testing networks) and causing an error.
15388       Fixes bug 14881; bugfix on 0.2.2.17-alpha.
15390   o Minor bugfixes (descriptors):
15391     - Correctly recognise downloaded full descriptors as valid, even
15392       when using microdescriptors as circuits. This affects clients with
15393       FetchUselessDescriptors set, and may affect directory authorities.
15394       Fixes bug 20839; bugfix on 0.2.3.2-alpha.
15396   o Minor bugfixes (directory system):
15397     - Download all consensus flavors, descriptors, and authority
15398       certificates when FetchUselessDescriptors is set, regardless of
15399       whether tor is a directory cache or not. Fixes bug 20667; bugfix
15400       on all recent tor versions.
15401     - Bridges and relays now use microdescriptors (like clients do)
15402       rather than old-style router descriptors. Now bridges will blend
15403       in with clients in terms of the circuits they build. Fixes bug
15404       6769; bugfix on 0.2.3.2-alpha.
15406   o Minor bugfixes (ed25519 certificates):
15407     - Correctly interpret ed25519 certificates that would expire some
15408       time after 19 Jan 2038. Fixes bug 20027; bugfix on 0.2.7.2-alpha.
15410   o Minor bugfixes (hidden services):
15411     - Stop ignoring misconfigured hidden services. Instead, refuse to
15412       start tor until the misconfigurations have been corrected. Fixes
15413       bug 20559; bugfix on multiple commits in 0.2.7.1-alpha
15414       and earlier.
15416   o Minor bugfixes (memory leak at exit):
15417     - Fix a small harmless memory leak at exit of the previously unused
15418       RSA->Ed identity cross-certificate. Fixes bug 17779; bugfix
15419       on 0.2.7.2-alpha.
15421   o Minor bugfixes (util):
15422     - When finishing writing a file to disk, if we were about to replace
15423       the file with the temporary file created before and we fail to
15424       replace it, remove the temporary file so it doesn't stay on disk.
15425       Fixes bug 20646; bugfix on 0.2.0.7-alpha. Patch by fk.
15427   o Minor bugfixes (Windows):
15428     - Check for getpagesize before using it to mmap files. This fixes
15429       compilation in some MinGW environments. Fixes bug 20530; bugfix on
15430       0.1.2.1-alpha. Reported by "ice".
15432   o Code simplification and refactoring:
15433     - Abolish all global guard context in entrynodes.c; replace with new
15434       guard_selection_t structure as preparation for proposal 271.
15435       Closes ticket 19858.
15436     - Introduce rend_service_is_ephemeral() that tells if given onion
15437       service is ephemeral. Replace unclear NULL-checkings for service
15438       directory with this function. Closes ticket 20526.
15439     - Extract magic numbers in circuituse.c into defined variables.
15440     - Refactor circuit_is_available_for_use to remove unnecessary check.
15441     - Refactor circuit_predict_and_launch_new for readability and
15442       testability. Closes ticket 18873.
15443     - Refactor large if statement in purpose_needs_anonymity to use
15444       switch statement instead. Closes part of ticket 20077.
15445     - Refactor the hashing API to return negative values for errors, as
15446       is done as throughout the codebase. Closes ticket 20717.
15447     - Remove data structures that were used to index or_connection
15448       objects by their RSA identity digests. These structures are fully
15449       redundant with the similar structures used in the
15450       channel abstraction.
15451     - Remove duplicate code in the channel_write_*cell() functions.
15452       Closes ticket 13827; patch from Pingl.
15453     - Remove redundant behavior of is_sensitive_dir_purpose, refactor to
15454       use only purpose_needs_anonymity. Closes part of ticket 20077.
15455     - The code to generate and parse EXTEND and EXTEND2 cells has been
15456       replaced with code automatically generated by the
15457       "trunnel" utility.
15459   o Documentation:
15460     - Include the "TBits" unit in Tor's man page. Fixes part of bug
15461       20622; bugfix on 0.2.5.1-alpha.
15462     - Change '1' to 'weight_scale' in consensus bw weights calculation
15463       comments, as that is reality. Closes ticket 20273. Patch
15464       from pastly.
15465     - Correct the value for AuthDirGuardBWGuarantee in the manpage, from
15466       250 KBytes to 2 MBytes. Fixes bug 20435; bugfix
15467       on 0.2.5.6-alpha.
15468     - Stop the man page from incorrectly stating that HiddenServiceDir
15469       must already exist. Fixes 20486.
15470     - Clarify that when ClientRejectInternalAddresses is enabled (which
15471       is the default), multicast DNS hostnames for machines on the local
15472       network (of the form *.local) are also rejected. Closes
15473       ticket 17070.
15475   o Removed features:
15476     - The AuthDirMaxServersPerAuthAddr option no longer exists: The same
15477       limit for relays running on a single IP applies to authority IP
15478       addresses as well as to non-authority IP addresses. Closes
15479       ticket 20960.
15480     - The UseDirectoryGuards torrc option no longer exists: all users
15481       that use entry guards will also use directory guards. Related to
15482       proposal 271; implements part of ticket 20831.
15484   o Testing:
15485     - New unit tests for tor_htonll(). Closes ticket 19563. Patch
15486       from "overcaffeinated".
15487     - Perform the coding style checks when running the tests and fail
15488       when coding style violations are found. Closes ticket 5500.
15489     - Add tests for networkstatus_compute_bw_weights_v10.
15490     - Add unit tests circuit_predict_and_launch_new.
15491     - Extract dummy_origin_circuit_new so it can be used by other
15492       test functions.
15495 Changes in version 0.2.8.12 - 2016-12-19
15496   Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018
15497   below) where Tor clients could crash when attempting to visit a
15498   hostile hidden service. Clients are recommended to upgrade as packages
15499   become available for their systems.
15501   It also includes an updated list of fallback directories, backported
15502   from 0.2.9.
15504   Now that the Tor 0.2.9 series is stable, only major bugfixes will be
15505   backported to 0.2.8 in the future.
15507   o Major bugfixes (parsing, security, backported from 0.2.9.8):
15508     - Fix a bug in parsing that could cause clients to read a single
15509       byte past the end of an allocated region. This bug could be used
15510       to cause hardened clients (built with --enable-expensive-hardening)
15511       to crash if they tried to visit a hostile hidden service. Non-
15512       hardened clients are only affected depending on the details of
15513       their platform's memory allocator. Fixes bug 21018; bugfix on
15514       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
15515       2016-12-002 and as CVE-2016-1254.
15517   o Minor features (fallback directory list, backported from 0.2.9.8):
15518     - Replace the 81 remaining fallbacks of the 100 originally
15519       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
15520       fallbacks (123 new, 54 existing, 27 removed) generated in December
15521       2016. Resolves ticket 20170.
15523   o Minor features (geoip, backported from 0.2.9.7-rc):
15524     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
15525       Country database.
15528 Changes in version 0.2.9.8 - 2016-12-19
15529   Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series.
15531   The Tor 0.2.9 series makes mandatory a number of security features
15532   that were formerly optional. It includes support for a new shared-
15533   randomness protocol that will form the basis for next generation
15534   hidden services, includes a single-hop hidden service mode for
15535   optimizing .onion services that don't actually want to be hidden,
15536   tries harder not to overload the directory authorities with excessive
15537   downloads, and supports a better protocol versioning scheme for
15538   improved compatibility with other implementations of the Tor protocol.
15540   And of course, there are numerous other bugfixes and improvements.
15542   This release also includes a fix for a medium-severity issue (bug
15543   21018 below) where Tor clients could crash when attempting to visit a
15544   hostile hidden service. Clients are recommended to upgrade as packages
15545   become available for their systems.
15547   Below are the changes since 0.2.9.7-rc. For a list of all changes
15548   since 0.2.8, see the ReleaseNotes file.
15550   o Major bugfixes (parsing, security):
15551     - Fix a bug in parsing that could cause clients to read a single
15552       byte past the end of an allocated region. This bug could be used
15553       to cause hardened clients (built with --enable-expensive-hardening)
15554       to crash if they tried to visit a hostile hidden service. Non-
15555       hardened clients are only affected depending on the details of
15556       their platform's memory allocator. Fixes bug 21018; bugfix on
15557       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
15558       2016-12-002 and as CVE-2016-1254.
15560   o Minor features (fallback directory list):
15561     - Replace the 81 remaining fallbacks of the 100 originally
15562       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
15563       fallbacks (123 new, 54 existing, 27 removed) generated in December
15564       2016. Resolves ticket 20170.
15567 Changes in version 0.2.9.7-rc - 2016-12-12
15568   Tor 0.2.9.7-rc fixes a few small bugs remaining in Tor 0.2.9.6-rc,
15569   including a few that had prevented tests from passing on
15570   some platforms.
15572   o Minor features (geoip):
15573     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
15574       Country database.
15576   o Minor bugfix (build):
15577     - The current Git revision when building from a local repository is
15578       now detected correctly when using git worktrees. Fixes bug 20492;
15579       bugfix on 0.2.3.9-alpha.
15581   o Minor bugfixes (directory authority):
15582     - When computing old Tor protocol line version in protover, we were
15583       looking at 0.2.7.5 twice instead of a specific case for
15584       0.2.9.1-alpha. Fixes bug 20810; bugfix on 0.2.9.4-alpha.
15586   o Minor bugfixes (download scheduling):
15587     - Resolve a "bug" warning when considering a download schedule whose
15588       delay had approached INT_MAX. Fixes 20875; bugfix on 0.2.9.5-alpha.
15590   o Minor bugfixes (logging):
15591     - Downgrade a harmless log message about the
15592       pending_entry_connections list from "warn" to "info". Mitigates
15593       bug 19926.
15595   o Minor bugfixes (memory leak):
15596     - Fix a small memory leak when receiving AF_UNIX connections on a
15597       SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha.
15598     - When moving a signed descriptor object from a source to an
15599       existing destination, free the allocated memory inside that
15600       destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha.
15602   o Minor bugfixes (memory leak, use-after-free, linux seccomp2 sandbox):
15603     - Fix a memory leak and use-after-free error when removing entries
15604       from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
15605       0.2.5.5-alpha. Patch from "cypherpunks".
15607   o Minor bugfixes (portability):
15608     - Use the correct spelling of MAC_OS_X_VERSION_10_12 on configure.ac
15609       Fixes bug 20935; bugfix on 0.2.9.6-rc.
15611   o Minor bugfixes (unit tests):
15612     - Stop expecting NetBSD unit tests to report success for ipfw. Part
15613       of a fix for bug 19960; bugfix on 0.2.9.5-alpha.
15614     - Fix tolerances in unit tests for monotonic time comparisons
15615       between nanoseconds and microseconds. Previously, we accepted a 10
15616       us difference only, which is not realistic on every platform's
15617       clock_gettime(). Fixes bug 19974; bugfix on 0.2.9.1-alpha.
15618     - Remove a double-free in the single onion service unit test. Stop
15619       ignoring a return value. Make future changes less error-prone.
15620       Fixes bug 20864; bugfix on 0.2.9.6-rc.
15623 Changes in version 0.2.8.11 - 2016-12-08
15624   Tor 0.2.8.11 backports fixes for additional portability issues that
15625   could prevent Tor from building correctly on OSX Sierra, or with
15626   OpenSSL 1.1. Affected users should upgrade; others can safely stay
15627   with 0.2.8.10.
15629   o Minor bugfixes (portability):
15630     - Avoid compilation errors when building on OSX Sierra. Sierra began
15631       to support the getentropy() and clock_gettime() APIs, but created
15632       a few problems in doing so. Tor 0.2.9 has a more thorough set of
15633       workarounds; in 0.2.8, we are just using the /dev/urandom and mach
15634       monotonic time interfaces. Fixes bug 20865. Bugfix
15635       on 0.2.8.1-alpha.
15637   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
15638     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
15639       architectures. Closes ticket 20588.
15642 Changes in version 0.2.8.10 - 2016-12-02
15643   Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients
15644   unusable after they left standby mode. It also backports fixes for
15645   a few portability issues and a small but problematic memory leak.
15647   o Major bugfixes (client reliability, backport from 0.2.9.5-alpha):
15648     - When Tor leaves standby because of a new application request, open
15649       circuits as needed to serve that request. Previously, we would
15650       potentially wait a very long time. Fixes part of bug 19969; bugfix
15651       on 0.2.8.1-alpha.
15653   o Major bugfixes (client performance, backport from 0.2.9.5-alpha):
15654     - Clients now respond to new application stream requests immediately
15655       when they arrive, rather than waiting up to one second before
15656       starting to handle them. Fixes part of bug 19969; bugfix
15657       on 0.2.8.1-alpha.
15659   o Minor bugfixes (portability, backport from 0.2.9.6-rc):
15660     - Work around a bug in the OSX 10.12 SDK that would prevent us from
15661       successfully targeting earlier versions of OSX. Resolves
15662       ticket 20235.
15664   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
15665     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
15666       20551; bugfix on 0.2.1.1-alpha.
15668   o Minor bugfixes (relay, backport from 0.2.9.5-alpha):
15669     - Work around a memory leak in OpenSSL 1.1 when encoding public
15670       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
15672   o Minor features (geoip):
15673     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
15674       Country database.
15676 Changes in version 0.2.9.6-rc - 2016-12-02
15677   Tor 0.2.9.6-rc fixes a few remaining bugs found in the previous alpha
15678   version. We hope that it will be ready to become stable soon, and we
15679   encourage everyone to test this release. If no showstopper bugs are
15680   found here, the next 0.2.9 release will be stable.
15682   o Major bugfixes (relay, resolver, logging):
15683     - For relays that don't know their own address, avoid attempting a
15684       local hostname resolve for each descriptor we download. This
15685       will cut down on the number of "Success: chose address 'x.x.x.x'"
15686       log lines, and also avoid confusing clock jumps if the resolver
15687       is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
15689   o Minor bugfixes (client, fascistfirewall):
15690     - Avoid spurious warnings when ReachableAddresses or FascistFirewall
15691       is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha.
15693   o Minor bugfixes (hidden services):
15694     - Stop ignoring the anonymity status of saved keys for hidden
15695       services and single onion services when first starting tor.
15696       Instead, refuse to start tor if any hidden service key has been
15697       used in a different hidden service anonymity mode. Fixes bug
15698       20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf.
15700   o Minor bugfixes (portability):
15701     - Work around a bug in the OSX 10.12 SDK that would prevent us from
15702       successfully targeting earlier versions of OSX. Resolves
15703       ticket 20235.
15704     - Run correctly when built on Windows build environments that
15705       require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha.
15707   o Minor bugfixes (single onion services, Tor2web):
15708     - Stop complaining about long-term one-hop circuits deliberately
15709       created by single onion services and Tor2web. These log messages
15710       are intended to diagnose issue 8387, which relates to circuits
15711       hanging around forever for no reason. Fixes bug 20613; bugfix on
15712       0.2.9.1-alpha. Reported by "pastly".
15714   o Minor bugfixes (unit tests):
15715     - Stop spurious failures in the local interface address discovery
15716       unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by
15717       Neel Chauhan.
15719   o Documentation:
15720     - Correct the minimum bandwidth value in torrc.sample, and queue a
15721       corresponding change for torrc.minimal. Closes ticket 20085.
15724 Changes in version 0.2.9.5-alpha - 2016-11-08
15725   Tor 0.2.9.5-alpha fixes numerous bugs discovered in the previous alpha
15726   version. We believe one or two probably remain, and we encourage
15727   everyone to test this release.
15729   o Major bugfixes (client performance):
15730     - Clients now respond to new application stream requests immediately
15731       when they arrive, rather than waiting up to one second before
15732       starting to handle them. Fixes part of bug 19969; bugfix
15733       on 0.2.8.1-alpha.
15735   o Major bugfixes (client reliability):
15736     - When Tor leaves standby because of a new application request, open
15737       circuits as needed to serve that request. Previously, we would
15738       potentially wait a very long time. Fixes part of bug 19969; bugfix
15739       on 0.2.8.1-alpha.
15741   o Major bugfixes (download scheduling):
15742     - When using an exponential backoff schedule, do not give up on
15743       downloading just because we have failed a bunch of times. Since
15744       each delay is longer than the last, retrying indefinitely won't
15745       hurt. Fixes bug 20536; bugfix on 0.2.9.1-alpha.
15746     - If a consensus expires while we are waiting for certificates to
15747       download, stop waiting for certificates.
15748     - If we stop waiting for certificates less than a minute after we
15749       started downloading them, do not consider the certificate download
15750       failure a separate failure. Fixes bug 20533; bugfix
15751       on 0.2.0.9-alpha.
15752     - Remove the maximum delay on exponential-backoff scheduling. Since
15753       we now allow an infinite number of failures (see ticket 20536), we
15754       must now allow the time to grow longer on each failure. Fixes part
15755       of bug 20534; bugfix on 0.2.9.1-alpha.
15756     - Make our initial download delays closer to those from 0.2.8. Fixes
15757       another part of bug 20534; bugfix on 0.2.9.1-alpha.
15758     - When determining when to download a directory object, handle times
15759       after 2038 if the operating system supports them. (Someday this
15760       will be important!) Fixes bug 20587; bugfix on 0.2.8.1-alpha.
15761     - When using exponential backoff in test networks, use a lower
15762       exponent, so the delays do not vary as much. This helps test
15763       networks bootstrap consistently. Fixes bug 20597; bugfix on 20499.
15765   o Minor features (geoip):
15766     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
15767       Country database.
15769   o Minor bugfixes (client directory scheduling):
15770     - Treat "relay too busy to answer request" as a failed request and a
15771       reason to back off on our retry frequency. This is safe now that
15772       exponential backoffs retry indefinitely, and avoids a bug where we
15773       would reset our download schedule erroneously. Fixes bug 20593;
15774       bugfix on 0.2.9.1-alpha.
15776   o Minor bugfixes (client, logging):
15777     - Remove a BUG warning in circuit_pick_extend_handshake(). Instead,
15778       assume all nodes support EXTEND2. Use ntor whenever a key is
15779       available. Fixes bug 20472; bugfix on 0.2.9.3-alpha.
15780     - On DNSPort, stop logging a BUG warning on a failed hostname
15781       lookup. Fixes bug 19869; bugfix on 0.2.9.1-alpha.
15783   o Minor bugfixes (hidden services):
15784     - When configuring hidden services, check every hidden service
15785       directory's permissions. Previously, we only checked the last
15786       hidden service. Fixes bug 20529; bugfix the work to fix 13942
15787       in 0.2.6.2-alpha.
15789   o Minor bugfixes (portability):
15790     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
15791       architectures. Closes ticket 20588.
15792     - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has
15793       removed the ECDH ciphers which caused the tests to fail on
15794       platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha.
15795     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
15796       20551; bugfix on 0.2.1.1-alpha.
15798   o Minor bugfixes (relay bootstrap):
15799     - Ensure relays don't make multiple connections during bootstrap.
15800       Fixes bug 20591; bugfix on 0.2.8.1-alpha.
15802   o Minor bugfixes (relay):
15803     - Work around a memory leak in OpenSSL 1.1 when encoding public
15804       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
15805     - Avoid a small memory leak when informing worker threads about
15806       rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha.
15807     - Do not try to parallelize workers more than 16x without the user
15808       explicitly configuring us to do so, even if we do detect more than
15809       16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
15811   o Minor bugfixes (single onion services):
15812     - Start correctly when creating a single onion service in a
15813       directory that did not previously exist. Fixes bug 20484; bugfix
15814       on 0.2.9.3-alpha.
15816   o Minor bugfixes (testing):
15817     - Avoid a unit test failure on systems with over 16 detectable CPU
15818       cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
15820   o Documentation:
15821     - Clarify that setting HiddenServiceNonAnonymousMode requires you to
15822       also set "SOCKSPort 0". Fixes bug 20487; bugfix on 0.2.9.3-alpha.
15823     - Module-level documentation for several more modules. Closes
15824       tickets 19287 and 19290.
15827 Changes in version 0.2.8.9 - 2016-10-17
15828   Tor 0.2.8.9 backports a fix for a security hole in previous versions
15829   of Tor that would allow a remote attacker to crash a Tor client,
15830   hidden service, relay, or authority. All Tor users should upgrade to
15831   this version, or to 0.2.9.4-alpha. Patches will be released for older
15832   versions of Tor.
15834   o Major features (security fixes, also in 0.2.9.4-alpha):
15835     - Prevent a class of security bugs caused by treating the contents
15836       of a buffer chunk as if they were a NUL-terminated string. At
15837       least one such bug seems to be present in all currently used
15838       versions of Tor, and would allow an attacker to remotely crash
15839       most Tor instances, especially those compiled with extra compiler
15840       hardening. With this defense in place, such bugs can't crash Tor,
15841       though we should still fix them as they occur. Closes ticket
15842       20384 (TROVE-2016-10-001).
15844   o Minor features (geoip):
15845     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
15846       Country database.
15849 Changes in version 0.2.9.4-alpha - 2016-10-17
15850   Tor 0.2.9.4-alpha fixes a security hole in previous versions of Tor
15851   that would allow a remote attacker to crash a Tor client, hidden
15852   service, relay, or authority. All Tor users should upgrade to this
15853   version, or to 0.2.8.9. Patches will be released for older versions
15854   of Tor.
15856   Tor 0.2.9.4-alpha also adds numerous small features and fix-ups to
15857   previous versions of Tor, including the implementation of a feature to
15858   future- proof the Tor ecosystem against protocol changes, some bug
15859   fixes necessary for Tor Browser to use unix domain sockets correctly,
15860   and several portability improvements. We anticipate that this will be
15861   the last alpha in the Tor 0.2.9 series, and that the next release will
15862   be a release candidate.
15864   o Major features (security fixes):
15865     - Prevent a class of security bugs caused by treating the contents
15866       of a buffer chunk as if they were a NUL-terminated string. At
15867       least one such bug seems to be present in all currently used
15868       versions of Tor, and would allow an attacker to remotely crash
15869       most Tor instances, especially those compiled with extra compiler
15870       hardening. With this defense in place, such bugs can't crash Tor,
15871       though we should still fix them as they occur. Closes ticket
15872       20384 (TROVE-2016-10-001).
15874   o Major features (subprotocol versions):
15875     - Tor directory authorities now vote on a set of recommended
15876       subprotocol versions, and on a set of required subprotocol
15877       versions. Clients and relays that lack support for a _required_
15878       subprotocol version will not start; those that lack support for a
15879       _recommended_ subprotocol version will warn the user to upgrade.
15880       Closes ticket 19958; implements part of proposal 264.
15881     - Tor now uses "subprotocol versions" to indicate compatibility.
15882       Previously, versions of Tor looked at the declared Tor version of
15883       a relay to tell whether they could use a given feature. Now, they
15884       should be able to rely on its declared subprotocol versions. This
15885       change allows compatible implementations of the Tor protocol(s) to
15886       exist without pretending to be 100% bug-compatible with particular
15887       releases of Tor itself. Closes ticket 19958; implements part of
15888       proposal 264.
15890   o Minor feature (fallback directories):
15891     - Remove broken fallbacks from the hard-coded fallback directory
15892       list. Closes ticket 20190; patch by teor.
15894   o Minor features (client, directory):
15895     - Since authorities now omit all routers that lack the Running and
15896       Valid flags, we assume that any relay listed in the consensus must
15897       have those flags. Closes ticket 20001; implements part of
15898       proposal 272.
15900   o Minor features (compilation, portability):
15901     - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes
15902       ticket 20241.
15904   o Minor features (development tools, etags):
15905     - Teach the "make tags" Makefile target how to correctly find
15906       "MOCK_IMPL" function definitions. Patch from nherring; closes
15907       ticket 16869.
15909   o Minor features (geoip):
15910     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
15911       Country database.
15913   o Minor features (unix domain sockets):
15914     - When configuring a unix domain socket for a SocksPort,
15915       ControlPort, or Hidden service, you can now wrap the address in
15916       quotes, using C-style escapes inside the quotes. This allows unix
15917       domain socket paths to contain spaces.
15919   o Minor features (virtual addresses):
15920     - Increase the maximum number of bits for the IPv6 virtual network
15921       prefix from 16 to 104. In this way, the condition for address
15922       allocation is less restrictive. Closes ticket 20151; feature
15923       on 0.2.4.7-alpha.
15925   o Minor bugfixes (address discovery):
15926     - Stop reordering IP addresses returned by the OS. This makes it
15927       more likely that Tor will guess the same relay IP address every
15928       time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027.
15929       Reported by René Mayrhofer, patch by "cypherpunks".
15931   o Minor bugfixes (client, unix domain sockets):
15932     - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as
15933       the client address is meaningless. Fixes bug 20261; bugfix
15934       on 0.2.6.3-alpha.
15936   o Minor bugfixes (compilation, OpenBSD):
15937     - Detect Libevent2 functions correctly on systems that provide
15938       libevent2, but where libevent1 is linked with -levent. Fixes bug
15939       19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate.
15941   o Minor bugfixes (configuration):
15942     - When parsing quoted configuration values from the torrc file,
15943       handle windows line endings correctly. Fixes bug 19167; bugfix on
15944       0.2.0.16-alpha. Patch from "Pingl".
15946   o Minor bugfixes (getpass):
15947     - Defensively fix a non-triggerable heap corruption at do_getpass()
15948       to protect ourselves from mistakes in the future. Fixes bug
15949       19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch
15950       by nherring.
15952   o Minor bugfixes (hidden service):
15953     - Allow hidden services to run on IPv6 addresses even when the
15954       IPv6Exit option is not set. Fixes bug 18357; bugfix
15955       on 0.2.4.7-alpha.
15957   o Documentation:
15958     - Add module-level internal documentation for 36 C files that
15959       previously didn't have a high-level overview. Closes ticket #20385.
15961   o Required libraries:
15962     - When building with OpenSSL, Tor now requires version 1.0.1 or
15963       later. OpenSSL 1.0.0 and earlier are no longer supported by the
15964       OpenSSL team, and should not be used. Closes ticket 20303.
15967 Changes in version 0.2.9.3-alpha - 2016-09-23
15968   Tor 0.2.9.3-alpha adds improved support for entities that want to make
15969   high-performance services available through the Tor .onion mechanism
15970   without themselves receiving anonymity as they host those services. It
15971   also tries harder to ensure that all steps on a circuit are using the
15972   strongest crypto possible, strengthens some TLS properties, and
15973   resolves several bugs -- including a pair of crash bugs from the 0.2.8
15974   series. Anybody running an earlier version of 0.2.9.x should upgrade.
15976   o Major bugfixes (crash, also in 0.2.8.8):
15977     - Fix a complicated crash bug that could affect Tor clients
15978       configured to use bridges when replacing a networkstatus consensus
15979       in which one of their bridges was mentioned. OpenBSD users saw
15980       more crashes here, but all platforms were potentially affected.
15981       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
15983   o Major bugfixes (relay, OOM handler, also in 0.2.8.8):
15984     - Fix a timing-dependent assertion failure that could occur when we
15985       tried to flush from a circuit after having freed its cells because
15986       of an out-of-memory condition. Fixes bug 20203; bugfix on
15987       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
15988       this one.
15990   o Major features (circuit building, security):
15991     - Authorities, relays and clients now require ntor keys in all
15992       descriptors, for all hops (except for rare hidden service protocol
15993       cases), for all circuits, and for all other roles. Part of
15994       ticket 19163.
15995     - Tor authorities, relays, and clients only use ntor, except for
15996       rare cases in the hidden service protocol. Part of ticket 19163.
15998   o Major features (single-hop "hidden" services):
15999     - Add experimental HiddenServiceSingleHopMode and
16000       HiddenServiceNonAnonymousMode options. When both are set to 1,
16001       every hidden service on a Tor instance becomes a non-anonymous
16002       Single Onion Service. Single Onions make one-hop (direct)
16003       connections to their introduction and rendezvous points. One-hop
16004       circuits make Single Onion servers easily locatable, but clients
16005       remain location-anonymous. This is compatible with the existing
16006       hidden service implementation, and works on the current tor
16007       network without any changes to older relays or clients. Implements
16008       proposal 260, completes ticket 17178. Patch by teor and asn.
16010   o Major features (resource management):
16011     - Tor can now notice it is about to run out of sockets, and
16012       preemptively close connections of lower priority. (This feature is
16013       off by default for now, since the current prioritizing method is
16014       yet not mature enough. You can enable it by setting
16015       "DisableOOSCheck 0", but watch out: it might close some sockets
16016       you would rather have it keep.) Closes ticket 18640.
16018   o Major bugfixes (circuit building):
16019     - Hidden service client-to-intro-point and service-to-rendezvous-
16020       point circuits use the TAP key supplied by the protocol, to avoid
16021       epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc.
16023   o Major bugfixes (compilation, OpenBSD):
16024     - Fix a Libevent-detection bug in our autoconf script that would
16025       prevent Tor from linking successfully on OpenBSD. Patch from
16026       rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
16028   o Major bugfixes (hidden services):
16029     - Clients now require hidden services to include the TAP keys for
16030       their intro points in the hidden service descriptor. This prevents
16031       an inadvertent upgrade to ntor, which a malicious hidden service
16032       could use to distinguish clients by consensus version. Fixes bug
16033       20012; bugfix on 0.2.4.8-alpha. Patch by teor.
16035   o Minor features (security, TLS):
16036     - Servers no longer support clients that without AES ciphersuites.
16037       (3DES is no longer considered an acceptable cipher.) We believe
16038       that no such Tor clients currently exist, since Tor has required
16039       OpenSSL 0.9.7 or later since 2009. Closes ticket 19998.
16041   o Minor feature (fallback directories):
16042     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
16043       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
16044       2016. Closes ticket 20190; patch by teor.
16046   o Minor features (geoip, also in 0.2.8.8):
16047     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
16048       Country database.
16050   o Minor feature (port flags):
16051     - Add new flags to the *Port options to finer control over which
16052       requests are allowed. The flags are NoDNSRequest, NoOnionTraffic,
16053       and the synthetic flag OnionTrafficOnly, which is equivalent to
16054       NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement
16055       18693; patch by "teor".
16057   o Minor features (directory authority):
16058     - After voting, if the authorities decide that a relay is not
16059       "Valid", they no longer include it in the consensus at all. Closes
16060       ticket 20002; implements part of proposal 272.
16062   o Minor features (testing):
16063     - Disable memory protections on OpenBSD when performing our unit
16064       tests for memwipe(). The test deliberately invokes undefined
16065       behavior, and the OpenBSD protections interfere with this. Patch
16066       from "rubiate". Closes ticket 20066.
16068   o Minor features (testing, ipv6):
16069     - Add the single-onion and single-onion-ipv6 chutney targets to
16070       "make test-network-all". This requires a recent chutney version
16071       with the single onion network flavours (git c72a652 or later).
16072       Closes ticket 20072; patch by teor.
16073     - Add the hs-ipv6 chutney target to make test-network-all's IPv6
16074       tests. Remove bridges+hs, as it's somewhat redundant. This
16075       requires a recent chutney version that supports IPv6 clients,
16076       relays, and authorities. Closes ticket 20069; patch by teor.
16078   o Minor features (Tor2web):
16079     - Make Tor2web clients respect ReachableAddresses. This feature was
16080       inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on
16081       0.2.8.7. Implements feature 20034. Patch by teor.
16083   o Minor features (unit tests):
16084     - We've done significant work to make the unit tests run faster.
16085     - Our link-handshake unit tests now check that when invalid
16086       handshakes fail, they fail with the error messages we expected.
16087     - Our unit testing code that captures log messages no longer
16088       prevents them from being written out if the user asked for them
16089       (by passing --debug or --info or or --notice --warn to the "test"
16090       binary). This change prevents us from missing unexpected log
16091       messages simply because we were looking for others. Related to
16092       ticket 19999.
16093     - The unit tests now log all warning messages with the "BUG" flag.
16094       Previously, they only logged errors by default. This change will
16095       help us make our testing code more correct, and make sure that we
16096       only hit this code when we mean to. In the meantime, however,
16097       there will be more warnings in the unit test logs than before.
16098       This is preparatory work for ticket 19999.
16099     - The unit tests now treat any failure of a "tor_assert_nonfatal()"
16100       assertion as a test failure.
16102   o Minor bug fixes (circuits):
16103     - Use the CircuitBuildTimeout option whenever
16104       LearnCircuitBuildTimeout is disabled. Previously, we would respect
16105       the option when a user disabled it, but not when it was disabled
16106       because some other option was set. Fixes bug 20073; bugfix on
16107       0.2.4.12-alpha. Patch by teor.
16109   o Minor bugfixes (allocation):
16110     - Change how we allocate memory for large chunks on buffers, to
16111       avoid a (currently impossible) integer overflow, and to waste less
16112       space when allocating unusually large chunks. Fixes bug 20081;
16113       bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken.
16114     - Always include orconfig.h before including any other C headers.
16115       Sometimes, it includes macros that affect the behavior of the
16116       standard headers. Fixes bug 19767; bugfix on 0.2.9.1-alpha (the
16117       first version to use AC_USE_SYSTEM_EXTENSIONS).
16118     - Fix a syntax error in the IF_BUG_ONCE__() macro in non-GCC-
16119       compatible compilers. Fixes bug 20141; bugfix on 0.2.9.1-alpha.
16120       Patch from Gisle Vanem.
16121     - Stop trying to build with Clang 4.0's -Wthread-safety warnings.
16122       They apparently require a set of annotations that we aren't
16123       currently using, and they create false positives in our pthreads
16124       wrappers. Fixes bug 20110; bugfix on 0.2.9.1-alpha.
16126   o Minor bugfixes (directory authority):
16127     - Die with a more useful error when the operator forgets to place
16128       the authority_signing_key file into the keys directory. This
16129       avoids an uninformative assert & traceback about having an invalid
16130       key. Fixes bug 20065; bugfix on 0.2.0.1-alpha.
16131     - When allowing private addresses, mark Exits that only exit to
16132       private locations as such. Fixes bug 20064; bugfix
16133       on 0.2.2.9-alpha.
16135   o Minor bugfixes (documentation):
16136     - Document the default PathsNeededToBuildCircuits value that's used
16137       by clients when the directory authorities don't set
16138       min_paths_for_circs_pct. Fixes bug 20117; bugfix on 02c320916e02
16139       in 0.2.4.10-alpha. Patch by teor, reported by Jesse V.
16140     - Fix manual for the User option: it takes a username, not a UID.
16141       Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have
16142       a manpage!).
16144   o Minor bugfixes (hidden services):
16145     - Stop logging intro point details to the client log on certain
16146       error conditions. Fixed as part of bug 20012; bugfix on
16147       0.2.4.8-alpha. Patch by teor.
16149   o Minor bugfixes (IPv6, testing):
16150     - Check for IPv6 correctly on Linux when running test networks.
16151       Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor.
16153   o Minor bugfixes (Linux seccomp2 sandbox):
16154     - Add permission to run the sched_yield() and sigaltstack() system
16155       calls, in order to support versions of Tor compiled with asan or
16156       ubsan code that use these calls. Now "sandbox 1" and
16157       "--enable-expensive-hardening" should be compatible on more
16158       systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha.
16160   o Minor bugfixes (logging):
16161     - When logging a message from the BUG() macro, be explicit about
16162       what we were asserting. Previously we were confusing what we were
16163       asserting with what the bug was. Fixes bug 20093; bugfix
16164       on 0.2.9.1-alpha.
16165     - When we are unable to remove the bw_accounting file, do not warn
16166       if the reason we couldn't remove it was that it didn't exist.
16167       Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from 'pastly'.
16169   o Minor bugfixes (option parsing):
16170     - Count unix sockets when counting client listeners (SOCKS, Trans,
16171       NATD, and DNS). This has no user-visible behaviour changes: these
16172       options are set once, and never read. Required for correct
16173       behaviour in ticket 17178. Fixes bug 19677; bugfix on
16174       0.2.6.3-alpha. Patch by teor.
16176   o Minor bugfixes (options):
16177     - Check the consistency of UseEntryGuards and EntryNodes more
16178       reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch
16179       by teor.
16180     - Stop changing the configured value of UseEntryGuards on
16181       authorities and Tor2web clients. Fixes bug 20074; bugfix on
16182       commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha.
16183       Patch by teor.
16185   o Minor bugfixes (Tor2web):
16186     - Prevent Tor2web clients running hidden services, these services
16187       are not anonymous due to the one-hop client paths. Fixes bug
16188       19678. Patch by teor.
16190   o Minor bugfixes (unit tests):
16191     - Fix a shared-random unit test that was failing on big endian
16192       architectures due to internal representation of a integer copied
16193       to a buffer. The test is changed to take a full 32 bytes of data
16194       and use the output of a python script that make the COMMIT and
16195       REVEAL calculation according to the spec. Fixes bug 19977; bugfix
16196       on 0.2.9.1-alpha.
16197     - The tor_tls_server_info_callback unit test no longer crashes when
16198       debug-level logging is turned on. Fixes bug 20041; bugfix
16199       on 0.2.8.1-alpha.
16202 Changes in version 0.2.8.8 - 2016-09-23
16203   Tor 0.2.8.8 fixes two crash bugs present in previous versions of the
16204   0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users
16205   who select public relays as their bridges.
16207   o Major bugfixes (crash):
16208     - Fix a complicated crash bug that could affect Tor clients
16209       configured to use bridges when replacing a networkstatus consensus
16210       in which one of their bridges was mentioned. OpenBSD users saw
16211       more crashes here, but all platforms were potentially affected.
16212       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
16214   o Major bugfixes (relay, OOM handler):
16215     - Fix a timing-dependent assertion failure that could occur when we
16216       tried to flush from a circuit after having freed its cells because
16217       of an out-of-memory condition. Fixes bug 20203; bugfix on
16218       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
16219       this one.
16221   o Minor feature (fallback directories):
16222     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
16223       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
16224       2016. Closes ticket 20190; patch by teor.
16226   o Minor features (geoip):
16227     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
16228       Country database.
16231 Changes in version 0.2.9.2-alpha - 2016-08-24
16232   Tor 0.2.9.2-alpha continues development of the 0.2.9 series with
16233   several new features and bugfixes. It also includes an important
16234   authority update and an important bugfix from 0.2.8.7. Everyone who
16235   sets the ReachableAddresses option, and all bridges, are strongly
16236   encouraged to upgrade to 0.2.8.7, or to 0.2.9.2-alpha.
16238   o Directory authority changes (also in 0.2.8.7):
16239     - The "Tonga" bridge authority has been retired; the new bridge
16240       authority is "Bifroest". Closes tickets 19728 and 19690.
16242   o Major bugfixes (client, security, also in 0.2.8.7):
16243     - Only use the ReachableAddresses option to restrict the first hop
16244       in a path. In earlier versions of 0.2.8.x, it would apply to
16245       every hop in the path, with a possible degradation in anonymity
16246       for anyone using an uncommon ReachableAddress setting. Fixes bug
16247       19973; bugfix on 0.2.8.2-alpha.
16249   o Major features (user interface):
16250     - Tor now supports the ability to declare options deprecated, so
16251       that we can recommend that people stop using them. Previously,
16252       this was done in an ad-hoc way. Closes ticket 19820.
16254   o Major bugfixes (directory downloads):
16255     - Avoid resetting download status for consensuses hourly, since we
16256       already have another, smarter retry mechanism. Fixes bug 8625;
16257       bugfix on 0.2.0.9-alpha.
16259   o Minor features (config):
16260     - Warn users when descriptor and port addresses are inconsistent.
16261       Mitigates bug 13953; patch by teor.
16263   o Minor features (geoip):
16264     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
16265       Country database.
16267   o Minor features (user interface):
16268     - There is a new --list-deprecated-options command-line option to
16269       list all of the deprecated options. Implemented as part of
16270       ticket 19820.
16272   o Minor bugfixes (code style):
16273     - Fix an integer signedness conversion issue in the case conversion
16274       tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha.
16276   o Minor bugfixes (compilation):
16277     - Build correctly on versions of libevent2 without support for
16278       evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix
16279       on 0.2.5.4-alpha.
16280     - Fix a compilation warning on GCC versions before 4.6. Our
16281       ENABLE_GCC_WARNING macro used the word "warning" as an argument,
16282       when it is also required as an argument to the compiler pragma.
16283       Fixes bug 19901; bugfix on 0.2.9.1-alpha.
16285   o Minor bugfixes (compilation, also in 0.2.8.7):
16286     - Remove an inappropriate "inline" in tortls.c that was causing
16287       warnings on older versions of GCC. Fixes bug 19903; bugfix
16288       on 0.2.8.1-alpha.
16290   o Minor bugfixes (fallback directories, also in 0.2.8.7):
16291     - Avoid logging a NULL string pointer when loading fallback
16292       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
16293       and 0.2.8.1-alpha. Report and patch by "rubiate".
16295   o Minor bugfixes (logging):
16296     - Log a more accurate message when we fail to dump a microdescriptor.
16297       Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto.
16299   o Minor bugfixes (memory leak):
16300     - Fix a series of slow memory leaks related to parsing torrc files
16301       and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha.
16303   o Deprecated features:
16304     - A number of DNS-cache-related sub-options for client ports are now
16305       deprecated for security reasons, and may be removed in a future
16306       version of Tor. (We believe that client-side DNS caching is a bad
16307       idea for anonymity, and you should not turn it on.) The options
16308       are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache,
16309       UseIPv4Cache, and UseIPv6Cache.
16310     - A number of options are deprecated for security reasons, and may
16311       be removed in a future version of Tor. The options are:
16312       AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits,
16313       AllowSingleHopExits, ClientDNSRejectInternalAddresses,
16314       CloseHSClientCircuitsImmediatelyOnTimeout,
16315       CloseHSServiceRendCircuitsImmediatelyOnTimeout,
16316       ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup,
16317       UseNTorHandshake, and WarnUnsafeSocks.
16318     - The *ListenAddress options are now deprecated as unnecessary: the
16319       corresponding *Port options should be used instead. These options
16320       may someday be removed. The affected options are:
16321       ControlListenAddress, DNSListenAddress, DirListenAddress,
16322       NATDListenAddress, ORListenAddress, SocksListenAddress,
16323       and TransListenAddress.
16325   o Documentation:
16326     - Correct the IPv6 syntax in our documentation for the
16327       VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743.
16329   o Removed code:
16330     - We no longer include the (dead, deprecated) bufferevent code in
16331       Tor. Closes ticket 19450. Based on a patch from U+039b.
16334 Changes in version 0.2.8.7 - 2016-08-24
16335   Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses
16336   option in 0.2.8.6, and replaces a retiring bridge authority. Everyone
16337   who sets the ReachableAddresses option, and all bridges, are strongly
16338   encouraged to upgrade.
16340   o Directory authority changes:
16341     - The "Tonga" bridge authority has been retired; the new bridge
16342       authority is "Bifroest". Closes tickets 19728 and 19690.
16344   o Major bugfixes (client, security):
16345     - Only use the ReachableAddresses option to restrict the first hop
16346       in a path. In earlier versions of 0.2.8.x, it would apply to
16347       every hop in the path, with a possible degradation in anonymity
16348       for anyone using an uncommon ReachableAddress setting. Fixes bug
16349       19973; bugfix on 0.2.8.2-alpha.
16351   o Minor features (geoip):
16352     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
16353       Country database.
16355   o Minor bugfixes (compilation):
16356     - Remove an inappropriate "inline" in tortls.c that was causing
16357       warnings on older versions of GCC. Fixes bug 19903; bugfix
16358       on 0.2.8.1-alpha.
16360   o Minor bugfixes (fallback directories):
16361     - Avoid logging a NULL string pointer when loading fallback
16362       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
16363       and 0.2.8.1-alpha. Report and patch by "rubiate".
16366 Changes in version 0.2.9.1-alpha - 2016-08-08
16367   Tor 0.2.9.1-alpha is the first alpha release in the 0.2.9 development
16368   series. It improves our support for hardened builds and compiler
16369   warnings, deploys some critical infrastructure for improvements to
16370   hidden services, includes a new timing backend that we hope to use for
16371   better support for traffic padding, makes it easier for programmers to
16372   log unexpected events, and contains other small improvements to
16373   security, correctness, and performance.
16375   Below are the changes since 0.2.8.6.
16377   o New system requirements:
16378     - Tor now requires Libevent version 2.0.10-stable or later. Older
16379       versions of Libevent have less efficient backends for several
16380       platforms, and lack the DNS code that we use for our server-side
16381       DNS support. This implements ticket 19554.
16382     - Tor now requires zlib version 1.2 or later, for security,
16383       efficiency, and (eventually) gzip support. (Back when we started,
16384       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
16385       released in 2003. We recommend the latest version.)
16387   o Major features (build, hardening):
16388     - Tor now builds with -ftrapv by default on compilers that support
16389       it. This option detects signed integer overflow (which C forbids),
16390       and turns it into a hard-failure. We do not apply this option to
16391       code that needs to run in constant time to avoid side-channels;
16392       instead, we use -fwrapv in that code. Closes ticket 17983.
16393     - When --enable-expensive-hardening is selected, stop applying the
16394       clang/gcc sanitizers to code that needs to run in constant time.
16395       Although we are aware of no introduced side-channels, we are not
16396       able to prove that there are none. Related to ticket 17983.
16398   o Major features (compilation):
16399     - Our big list of extra GCC warnings is now enabled by default when
16400       building with GCC (or with anything like Clang that claims to be
16401       GCC-compatible). To make all warnings into fatal compilation
16402       errors, pass --enable-fatal-warnings to configure. Closes
16403       ticket 19044.
16404     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
16405       turn on C and POSIX extensions. (Previously, we attempted to do
16406       this on an ad hoc basis.) Closes ticket 19139.
16408   o Major features (directory authorities, hidden services):
16409     - Directory authorities can now perform the shared randomness
16410       protocol specified by proposal 250. Using this protocol, directory
16411       authorities generate a global fresh random value every day. In the
16412       future, this value will be used by hidden services to select
16413       HSDirs. This release implements the directory authority feature;
16414       the hidden service side will be implemented in the future as part
16415       of proposal 224. Resolves ticket 16943; implements proposal 250.
16417   o Major features (downloading, random exponential backoff):
16418     - When we fail to download an object from a directory service, wait
16419       for an (exponentially increasing) randomized amount of time before
16420       retrying, rather than a fixed interval as we did before. This
16421       prevents a group of Tor instances from becoming too synchronized,
16422       or a single Tor instance from becoming too predictable, in its
16423       download schedule. Closes ticket 15942.
16425   o Major bugfixes (exit policies):
16426     - Avoid disclosing exit outbound bind addresses, configured port
16427       bind addresses, and local interface addresses in relay descriptors
16428       by default under ExitPolicyRejectPrivate. Instead, only reject
16429       these (otherwise unlisted) addresses if
16430       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
16431       0.2.7.2-alpha. Patch by teor.
16433   o Major bugfixes (hidden service client):
16434     - Allow Tor clients with appropriate controllers to work with
16435       FetchHidServDescriptors set to 0. Previously, this option also
16436       disabled descriptor cache lookup, thus breaking hidden services
16437       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
16439   o Minor features (build, hardening):
16440     - Detect and work around a libclang_rt problem that would prevent
16441       clang from finding __mulodi4() on some 32-bit platforms, and thus
16442       keep -ftrapv from linking on those systems. Closes ticket 19079.
16443     - When building on a system without runtime support for the runtime
16444       hardening options, try to log a useful warning at configuration
16445       time, rather than an incomprehensible warning at link time. If
16446       expensive hardening was requested, this warning becomes an error.
16447       Closes ticket 18895.
16449   o Minor features (code safety):
16450     - In our integer-parsing functions, ensure that maxiumum value we
16451       give is no smaller than the minimum value. Closes ticket 19063;
16452       patch from U+039b.
16454   o Minor features (controller):
16455     - Implement new GETINFO queries for all downloads that use
16456       download_status_t to schedule retries. This allows controllers to
16457       examine the schedule for pending downloads. Closes ticket 19323.
16458     - Allow controllers to configure basic client authorization on
16459       hidden services when they create them with the ADD_ONION control
16460       command. Implements ticket 15588. Patch by "special".
16461     - Fire a STATUS_SERVER controller event whenever the hibernation
16462       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
16464   o Minor features (directory authority):
16465     - Directory authorities now only give the Guard flag to a relay if
16466       they are also giving it the Stable flag. This change allows us to
16467       simplify path selection for clients. It should have minimal effect
16468       in practice, since >99% of Guards already have the Stable flag.
16469       Implements ticket 18624.
16470     - Directory authorities now write their v3-status-votes file out to
16471       disk earlier in the consensus process, so we have a record of the
16472       votes even if we abort the consensus process. Resolves
16473       ticket 19036.
16475   o Minor features (hidden service):
16476     - Stop being so strict about the payload length of "rendezvous1"
16477       cells. We used to be locked in to the "TAP" handshake length, and
16478       now we can handle better handshakes like "ntor". Resolves
16479       ticket 18998.
16481   o Minor features (infrastructure, time):
16482     - Tor now uses the operating system's monotonic timers (where
16483       available) for internal fine-grained timing. Previously we would
16484       look at the system clock, and then attempt to compensate for the
16485       clock running backwards. Closes ticket 18908.
16486     - Tor now includes an improved timer backend, so that we can
16487       efficiently support tens or hundreds of thousands of concurrent
16488       timers, as will be needed for some of our planned anti-traffic-
16489       analysis work. This code is based on William Ahern's "timeout.c"
16490       project, which implements a "tickless hierarchical timing wheel".
16491       Closes ticket 18365.
16493   o Minor features (logging):
16494     - Provide a more useful warning message when configured with an
16495       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
16496     - When dumping unparseable router descriptors, optionally store them
16497       in separate files, named by digest, up to a configurable size
16498       limit. You can change the size limit by setting the
16499       MaxUnparseableDescSizeToLog option, and disable this feature by
16500       setting that option to 0. Closes ticket 18322.
16501     - Add a set of macros to check nonfatal assertions, for internal
16502       use. Migrating more of our checks to these should help us avoid
16503       needless crash bugs. Closes ticket 18613.
16505   o Minor features (performance):
16506     - Change the "optimistic data" extension from "off by default" to
16507       "on by default". The default was ordinarily overridden by a
16508       consensus option, but when clients were bootstrapping for the
16509       first time, they would not have a consensus to get the option
16510       from. Changing this default saves a round-trip during startup.
16511       Closes ticket 18815.
16513   o Minor features (relay, usability):
16514     - When the directory authorities refuse a bad relay's descriptor,
16515       encourage the relay operator to contact us. Many relay operators
16516       won't notice this line in their logs, but it's a win if even a few
16517       learn why we don't like what their relay was doing. Resolves
16518       ticket 18760.
16520   o Minor features (testing):
16521     - Let backtrace tests work correctly under AddressSanitizer. Fixes
16522       part of bug 18934; bugfix on 0.2.5.2-alpha.
16523     - Move the test-network.sh script to chutney, and modify tor's test-
16524       network.sh to call the (newer) chutney version when available.
16525       Resolves ticket 19116. Patch by teor.
16526     - Use the lcov convention for marking lines as unreachable, so that
16527       we don't count them when we're generating test coverage data.
16528       Update our coverage tools to understand this convention. Closes
16529       ticket 16792.
16531   o Minor bugfixes (bootstrap):
16532     - Remember the directory we fetched the consensus or previous
16533       certificates from, and use it to fetch future authority
16534       certificates. This change improves bootstrapping performance.
16535       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
16537   o Minor bugfixes (build):
16538     - The test-stem and test-network makefile targets now depend only on
16539       the tor binary that they are testing. Previously, they depended on
16540       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
16541       patch from "cypherpunks".
16543   o Minor bugfixes (circuits):
16544     - Make sure extend_info_from_router() is only called on servers.
16545       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
16547   o Minor bugfixes (compilation):
16548     - When building with Clang, use a full set of GCC warnings.
16549       (Previously, we included only a subset, because of the way we
16550       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
16552   o Minor bugfixes (directory authority):
16553     - Authorities now sort the "package" lines in their votes, for ease
16554       of debugging. (They are already sorted in consensus documents.)
16555       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
16556     - When parsing a detached signature, make sure we use the length of
16557       the digest algorithm instead of an hardcoded DIGEST256_LEN in
16558       order to avoid comparing bytes out-of-bounds with a smaller digest
16559       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
16561   o Minor bugfixes (documentation):
16562     - Document the --passphrase-fd option in the tor manpage. Fixes bug
16563       19504; bugfix on 0.2.7.3-rc.
16564     - Fix the description of the --passphrase-fd option in the
16565       tor-gencert manpage. The option is used to pass the number of a
16566       file descriptor to read the passphrase from, not to read the file
16567       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
16569   o Minor bugfixes (ephemeral hidden service):
16570     - When deleting an ephemeral hidden service, close its intro points
16571       even if they are not completely open. Fixes bug 18604; bugfix
16572       on 0.2.7.1-alpha.
16574   o Minor bugfixes (guard selection):
16575     - Use a single entry guard even if the NumEntryGuards consensus
16576       parameter is not provided. Fixes bug 17688; bugfix
16577       on 0.2.5.6-alpha.
16578     - Don't mark guards as unreachable if connection_connect() fails.
16579       That function fails for local reasons, so it shouldn't reveal
16580       anything about the status of the guard. Fixes bug 14334; bugfix
16581       on 0.2.3.10-alpha.
16583   o Minor bugfixes (hidden service client):
16584     - Increase the minimum number of internal circuits we preemptively
16585       build from 2 to 3, so a circuit is available when a client
16586       connects to another onion service. Fixes bug 13239; bugfix
16587       on 0.1.0.1-rc.
16589   o Minor bugfixes (logging):
16590     - When logging a directory ownership mismatch, log the owning
16591       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
16593   o Minor bugfixes (memory leaks):
16594     - Fix a small, uncommon memory leak that could occur when reading a
16595       truncated ed25519 key file. Fixes bug 18956; bugfix
16596       on 0.2.6.1-alpha.
16598   o Minor bugfixes (testing):
16599     - Allow clients to retry HSDirs much faster in test networks. Fixes
16600       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
16601     - Disable ASAN's detection of segmentation faults while running
16602       test_bt.sh, so that we can make sure that our own backtrace
16603       generation code works. Fixes another aspect of bug 18934; bugfix
16604       on 0.2.5.2-alpha. Patch from "cypherpunks".
16605     - Fix the test-network-all target on out-of-tree builds by using the
16606       correct path to the test driver script. Fixes bug 19421; bugfix
16607       on 0.2.7.3-rc.
16609   o Minor bugfixes (time):
16610     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
16611       bugfix on all released tor versions.
16612     - When computing the difference between two times in milliseconds,
16613       we now round to the nearest millisecond correctly. Previously, we
16614       could sometimes round in the wrong direction. Fixes bug 19428;
16615       bugfix on 0.2.2.2-alpha.
16617   o Minor bugfixes (user interface):
16618     - Display a more accurate number of suppressed messages in the log
16619       rate-limiter. Previously, there was a potential integer overflow
16620       in the counter. Now, if the number of messages hits a maximum, the
16621       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
16622       on 0.2.4.11-alpha.
16623     - Fix a typo in the passphrase prompt for the ed25519 identity key.
16624       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
16626   o Code simplification and refactoring:
16627     - Remove redundant declarations of the MIN macro. Closes
16628       ticket 18889.
16629     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
16630       Closes ticket 18462; patch from "icanhasaccount".
16631     - Split the 600-line directory_handle_command_get function into
16632       separate functions for different URL types. Closes ticket 16698.
16634   o Documentation:
16635     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
16636       ticket 19153. Patch from "U+039b".
16638   o Removed features:
16639     - Remove support for "GET /tor/bytes.txt" DirPort request, and
16640       "GETINFO dir-usage" controller request, which were only available
16641       via a compile-time option in Tor anyway. Feature was added in
16642       0.2.2.1-alpha. Resolves ticket 19035.
16643     - There is no longer a compile-time option to disable support for
16644       TransPort. (If you don't want TransPort; just don't use it.) Patch
16645       from "U+039b". Closes ticket 19449.
16647   o Testing:
16648     - Run more workqueue tests as part of "make check". These had
16649       previously been implemented, but you needed to know special
16650       command-line options to enable them.
16651     - We now have unit tests for our code to reject zlib "compression
16652       bombs". (Fortunately, the code works fine.)
16655 Changes in version 0.2.8.6 - 2016-08-02
16657   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
16659   The Tor 0.2.8 series improves client bootstrapping performance,
16660   completes the authority-side implementation of improved identity
16661   keys for relays, and includes numerous bugfixes and performance
16662   improvements throughout the program. This release continues to
16663   improve the coverage of Tor's test suite.  For a full list of
16664   changes since Tor 0.2.7, see the ReleaseNotes file.
16666   Changes since 0.2.8.5-rc:
16668   o Minor features (geoip):
16669     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
16670       Country database.
16672   o Minor bugfixes (compilation):
16673     - Fix a compilation warning in the unit tests on systems where char
16674       is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha.
16676   o Minor bugfixes (fallback directories):
16677     - Remove 1 fallback that was on the hardcoded list, then opted-out,
16678       leaving 89 of the 100 fallbacks originally introduced in Tor
16679       0.2.8.2-alpha in March 2016. Closes ticket 19782; patch by teor.
16681   o Minor bugfixes (Linux seccomp2 sandbox):
16682     - Allow more syscalls when running with "Sandbox 1" enabled:
16683       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
16684       some systems, these are required for Tor to start. Fixes bug
16685       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
16686     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
16687       so that get_interface_address6_via_udp_socket_hack() can work.
16688       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
16691 Changes in version 0.2.8.5-rc - 2016-07-07
16692   Tor 0.2.8.5-rc is the second release candidate in the Tor 0.2.8
16693   series. If we find no new bugs or regressions here, the first stable
16694   0.2.8 release will be identical to it. It has a few small bugfixes
16695   against previous versions.
16697   o Directory authority changes:
16698     - Urras is no longer a directory authority. Closes ticket 19271.
16700   o Major bugfixes (heartbeat):
16701     - Fix a regression that would crash Tor when the periodic
16702       "heartbeat" log messages were disabled. Fixes bug 19454; bugfix on
16703       0.2.8.1-alpha. Reported by "kubaku".
16705   o Minor features (build):
16706     - Tor now again builds with the recent OpenSSL 1.1 development
16707       branch (tested against 1.1.0-pre6-dev). Closes ticket 19499.
16708     - When building manual pages, set the timezone to "UTC", so that the
16709       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
16710       Patch from intrigeri.
16712   o Minor bugfixes (fallback directory selection):
16713     - Avoid errors during fallback selection if there are no eligible
16714       fallbacks. Fixes bug 19480; bugfix on 0.2.8.3-alpha. Patch
16715       by teor.
16717   o Minor bugfixes (IPv6, microdescriptors):
16718     - Don't check node addresses when we only have a routerstatus. This
16719       allows IPv6-only clients to bootstrap by fetching microdescriptors
16720       from fallback directory mirrors. (The microdescriptor consensus
16721       has no IPv6 addresses in it.) Fixes bug 19608; bugfix
16722       on 0.2.8.2-alpha.
16724   o Minor bugfixes (logging):
16725     - Reduce pointlessly verbose log messages when directory servers
16726       can't be found. Fixes bug 18849; bugfix on 0.2.8.3-alpha and
16727       0.2.8.1-alpha. Patch by teor.
16728     - When a fallback directory changes its fingerprint from the hard-
16729       coded fingerprint, log a less severe, more explanatory log
16730       message. Fixes bug 18812; bugfix on 0.2.8.1-alpha. Patch by teor.
16732   o Minor bugfixes (Linux seccomp2 sandboxing):
16733     - Allow statistics to be written to disk when "Sandbox 1" is
16734       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
16735       0.2.6.1-alpha respectively.
16737   o Minor bugfixes (user interface):
16738     - Remove a warning message "Service [scrubbed] not found after
16739       descriptor upload". This message appears when one uses HSPOST
16740       control command to upload a service descriptor. Since there is
16741       only a descriptor and no service, showing this message is
16742       pointless and confusing. Fixes bug 19464; bugfix on 0.2.7.2-alpha.
16744   o Fallback directory list:
16745     - Add a comment to the generated fallback directory list that
16746       explains how to comment out unsuitable fallbacks in a way that's
16747       compatible with the stem fallback parser.
16748     - Update fallback whitelist and blacklist based on relay operator
16749       emails. Blacklist unsuitable (non-working, over-volatile)
16750       fallbacks. Resolves ticket 19071. Patch by teor.
16751     - Remove 10 unsuitable fallbacks, leaving 90 of the 100 fallbacks
16752       originally introduced in Tor 0.2.8.2-alpha in March 2016. Closes
16753       ticket 19071; patch by teor.
16756 Changes in version 0.2.8.4-rc - 2016-06-15
16757   Tor 0.2.8.4-rc is the first release candidate in the Tor 0.2.8 series.
16758   If we find no new bugs or regressions here, the first stable 0.2.8
16759   release will be identical to it. It has a few small bugfixes against
16760   previous versions.
16762   o Major bugfixes (user interface):
16763     - Correctly give a warning in the cases where a relay is specified
16764       by nickname, and one such relay is found, but it is not officially
16765       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
16767   o Minor features (build):
16768     - Tor now builds once again with the recent OpenSSL 1.1 development
16769       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev).
16771   o Minor features (geoip):
16772     - Update geoip and geoip6 to the June 7 2016 Maxmind GeoLite2
16773       Country database.
16775   o Minor bugfixes (compilation):
16776     - Cause the unit tests to compile correctly on mingw64 versions that
16777       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
16779   o Minor bugfixes (downloading):
16780     - Predict more correctly whether we'll be downloading over HTTP when
16781       we determine the maximum length of a URL. This should avoid a
16782       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
16783       bug 19191.
16786 Changes in version 0.2.8.3-alpha - 2016-05-26
16787   Tor 0.2.8.3-alpha resolves several bugs, most of them introduced over
16788   the course of the 0.2.8 development cycle. It improves the behavior of
16789   directory clients, fixes several crash bugs, fixes a gap in compiler
16790   hardening, and allows the full integration test suite to run on
16791   more platforms.
16793   o Major bugfixes (security, client, DNS proxy):
16794     - Stop a crash that could occur when a client running with DNSPort
16795       received a query with multiple address types, and the first
16796       address type was not supported. Found and fixed by Scott Dial.
16797       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
16799   o Major bugfixes (security, compilation):
16800     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
16801       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
16802       cause a compiler warning, thereby making other checks fail, and
16803       needlessly disabling compiler-hardening support. Fixes one case of
16804       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
16806   o Major bugfixes (security, directory authorities):
16807     - Fix a crash and out-of-bounds write during authority voting, when
16808       the list of relays includes duplicate ed25519 identity keys. Fixes
16809       bug 19032; bugfix on 0.2.8.2-alpha.
16811   o Major bugfixes (client, bootstrapping):
16812     - Check if bootstrap consensus downloads are still needed when the
16813       linked connection attaches. This prevents tor making unnecessary
16814       begindir-style connections, which are the only directory
16815       connections tor clients make since the fix for 18483 was merged.
16816     - Fix some edge cases where consensus download connections may not
16817       have been closed, even though they were not needed. Related to fix
16818       for 18809.
16819     - Make relays retry consensus downloads the correct number of times,
16820       rather than the more aggressive client retry count. Fixes part of
16821       ticket 18809.
16822     - Stop downloading consensuses when we have a consensus, even if we
16823       don't have all the certificates for it yet. Fixes bug 18809;
16824       bugfix on 0.2.8.1-alpha. Patches by arma and teor.
16826   o Major bugfixes (directory mirrors):
16827     - Decide whether to advertise begindir support in the the same way
16828       we decide whether to advertise our DirPort. Allowing these
16829       decisions to become out-of-sync led to surprising behavior like
16830       advertising begindir support when hibernation made us not
16831       advertise a DirPort. Resolves bug 18616; bugfix on 0.2.8.1-alpha.
16832       Patch by teor.
16834   o Major bugfixes (IPv6 bridges, client):
16835     - Actually use IPv6 addresses when selecting directory addresses for
16836       IPv6 bridges. Fixes bug 18921; bugfix on 0.2.8.1-alpha. Patch
16837       by "teor".
16839   o Major bugfixes (key management):
16840     - If OpenSSL fails to generate an RSA key, do not retain a dangling
16841       pointer to the previous (uninitialized) key value. The impact here
16842       should be limited to a difficult-to-trigger crash, if OpenSSL is
16843       running an engine that makes key generation failures possible, or
16844       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
16845       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
16846       Baishakhi Ray.
16848   o Major bugfixes (testing):
16849     - Fix a bug that would block 'make test-network-all' on systems where
16850       IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc.
16851     - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
16852       bugfix on 0.2.8.1-alpha.
16854   o Minor features (clients):
16855     - Make clients, onion services, and bridge relays always use an
16856       encrypted begindir connection for directory requests. Resolves
16857       ticket 18483. Patch by "teor".
16859   o Minor features (fallback directory mirrors):
16860     - Give each fallback the same weight for client selection; restrict
16861       fallbacks to one per operator; report fallback directory detail
16862       changes when rebuilding list; add new fallback directory mirrors
16863       to the whitelist; and many other minor simplifications and fixes.
16864       Closes tasks 17905, 18749, bug 18689, and fixes part of bug 18812 on
16865       0.2.8.1-alpha; patch by "teor".
16866     - Replace the 21 fallbacks generated in January 2016 and included in
16867       Tor 0.2.8.1-alpha, with a list of 100 fallbacks generated in March
16868       2016. Closes task 17158; patch by "teor".
16870   o Minor features (geoip):
16871     - Update geoip and geoip6 to the May 4 2016 Maxmind GeoLite2
16872       Country database.
16874   o Minor bugfixes (assert, portability):
16875     - Fix an assertion failure in memarea.c on systems where "long" is
16876       shorter than the size of a pointer. Fixes bug 18716; bugfix
16877       on 0.2.1.1-alpha.
16879   o Minor bugfixes (bootstrap):
16880     - Consistently use the consensus download schedule for authority
16881       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
16883   o Minor bugfixes (build):
16884     - Remove a pair of redundant AM_CONDITIONAL declarations from
16885       configure.ac. Fixes one final case of bug 17744; bugfix
16886       on 0.2.8.2-alpha.
16887     - Resolve warnings when building on systems that are concerned with
16888       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
16889       and 0.2.6.1-alpha.
16890     - When libscrypt.h is found, but no libscrypt library can be linked,
16891       treat libscrypt as absent. Fixes bug 19161; bugfix
16892       on 0.2.6.1-alpha.
16894   o Minor bugfixes (client):
16895     - Turn all TestingClientBootstrap* into non-testing torrc options.
16896       This changes simply renames them by removing "Testing" in front of
16897       them and they do not require TestingTorNetwork to be enabled
16898       anymore. Fixes bug 18481; bugfix on 0.2.8.1-alpha.
16899     - Make directory node selection more reliable, mainly for IPv6-only
16900       clients and clients with few reachable addresses. Fixes bug 18929;
16901       bugfix on 0.2.8.1-alpha. Patch by "teor".
16903   o Minor bugfixes (controller, microdescriptors):
16904     - Make GETINFO dir/status-vote/current/consensus conform to the
16905       control specification by returning "551 Could not open cached
16906       consensus..." when not caching consensuses. Fixes bug 18920;
16907       bugfix on 0.2.2.6-alpha.
16909   o Minor bugfixes (crypto, portability):
16910     - The SHA3 and SHAKE routines now produce the correct output on Big
16911       Endian systems. No code calls either algorithm yet, so this is
16912       primarily a build fix. Fixes bug 18943; bugfix on 0.2.8.1-alpha.
16913     - Tor now builds again with the recent OpenSSL 1.1 development
16914       branch (tested against 1.1.0-pre4 and 1.1.0-pre5-dev). Closes
16915       ticket 18286.
16917   o Minor bugfixes (directories):
16918     - When fetching extrainfo documents, compare their SHA256 digests
16919       and Ed25519 signing key certificates with the routerinfo that led
16920       us to fetch them, rather than with the most recent routerinfo.
16921       Otherwise we generate many spurious warnings about mismatches.
16922       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
16924   o Minor bugfixes (logging):
16925     - When we can't generate a signing key because OfflineMasterKey is
16926       set, do not imply that we should have been able to load it. Fixes
16927       bug 18133; bugfix on 0.2.7.2-alpha.
16928     - Stop periodic_event_dispatch() from blasting twelve lines per
16929       second at loglevel debug. Fixes bug 18729; fix on 0.2.8.1-alpha.
16930     - When rejecting a misformed INTRODUCE2 cell, only log at
16931       PROTOCOL_WARN severity. Fixes bug 18761; bugfix on 0.2.8.2-alpha.
16933   o Minor bugfixes (pluggable transports):
16934     - Avoid reporting a spurious error when we decide that we don't need
16935       to terminate a pluggable transport because it has already exited.
16936       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
16938   o Minor bugfixes (pointer arithmetic):
16939     - Fix a bug in memarea_alloc() that could have resulted in remote
16940       heap write access, if Tor had ever passed an unchecked size to
16941       memarea_alloc(). Fortunately, all the sizes we pass to
16942       memarea_alloc() are pre-checked to be less than 128 kilobytes.
16943       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
16944       Guido Vranken.
16946   o Minor bugfixes (relays):
16947     - Consider more config options when relays decide whether to
16948       regenerate their descriptor. Fixes more of bug 12538; bugfix
16949       on 0.2.8.1-alpha.
16950     - Resolve some edge cases where we might launch an ORPort
16951       reachability check even when DisableNetwork is set. Noticed while
16952       fixing bug 18616; bugfix on 0.2.3.9-alpha.
16954   o Minor bugfixes (statistics):
16955     - We now include consensus downloads via IPv6 in our directory-
16956       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
16958   o Minor bugfixes (testing):
16959     - Allow directories in small networks to bootstrap by skipping
16960       DirPort checks when the consensus has no exits. Fixes bug 19003;
16961       bugfix on 0.2.8.1-alpha. Patch by teor.
16962     - Fix a small memory leak that would occur when the
16963       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
16964       bugfix on 0.2.5.2-alpha.
16966   o Minor bugfixes (time handling):
16967     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
16968       field. Otherwise, our unit tests crash on Windows. Fixes bug
16969       18977; bugfix on 0.2.2.25-alpha.
16971   o Documentation:
16972     - Document the contents of the 'datadir/keys' subdirectory in the
16973       manual page. Closes ticket 17621.
16974     - Stop recommending use of nicknames to identify relays in our
16975       MapAddress documentation. Closes ticket 18312.
16978 Changes in version 0.2.8.2-alpha - 2016-03-28
16979   Tor 0.2.8.2-alpha is the second alpha in its series. It fixes numerous
16980   bugs in earlier versions of Tor, including some that prevented
16981   authorities using Tor 0.2.7.x from running correctly. IPv6 and
16982   directory support should also be much improved.
16984   o New system requirements:
16985     - Tor no longer supports versions of OpenSSL with a broken
16986       implementation of counter mode. (This bug was present in OpenSSL
16987       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
16988       longer runs with, these versions.
16989     - Tor no longer attempts to support platforms where the "time_t"
16990       type is unsigned. (To the best of our knowledge, only OpenVMS does
16991       this, and Tor has never actually built on OpenVMS.) Closes
16992       ticket 18184.
16993     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
16994       later (released in 2008 and 2009 respectively). If you are
16995       building Tor from the git repository instead of from the source
16996       distribution, and your tools are older than this, you will need to
16997       upgrade. Closes ticket 17732.
16999   o Major bugfixes (security, pointers):
17000     - Avoid a difficult-to-trigger heap corruption attack when extending
17001       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
17002       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
17003       Reported by Guido Vranken.
17005   o Major bugfixes (bridges, pluggable transports):
17006     - Modify the check for OR connections to private addresses. Allow
17007       bridges on private addresses, including pluggable transports that
17008       ignore the (potentially private) address in the bridge line. Fixes
17009       bug 18517; bugfix on 0.2.8.1-alpha. Reported by gk, patch by teor.
17011   o Major bugfixes (compilation):
17012     - Repair hardened builds under the clang compiler. Previously, our
17013       use of _FORTIFY_SOURCE would conflict with clang's address
17014       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
17016   o Major bugfixes (crash on shutdown):
17017     - Correctly handle detaching circuits from muxes when shutting down.
17018       Fixes bug 18116; bugfix on 0.2.8.1-alpha.
17019     - Fix an assert-on-exit bug related to counting memory usage in
17020       rephist.c. Fixes bug 18651; bugfix on 0.2.8.1-alpha.
17022   o Major bugfixes (crash on startup):
17023     - Fix a segfault during startup: If a Unix domain socket was
17024       configured as listener (such as a ControlSocket or a SocksPort
17025       "unix:" socket), and tor was started as root but not configured to
17026       switch to another user, tor would segfault while trying to string
17027       compare a NULL value. Fixes bug 18261; bugfix on 0.2.8.1-alpha.
17028       Patch by weasel.
17030   o Major bugfixes (dns proxy mode, crash):
17031     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
17032       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
17034   o Major bugfixes (relays, bridge clients):
17035     - Ensure relays always allow IPv4 OR and Dir connections. Ensure
17036       bridge clients use the address configured in the bridge line.
17037       Fixes bug 18348; bugfix on 0.2.8.1-alpha. Reported by sysrqb,
17038       patch by teor.
17040   o Major bugfixes (voting):
17041     - Actually enable support for authorities to match routers by their
17042       Ed25519 identities. Previously, the code had been written, but
17043       some debugging code that had accidentally been left in the
17044       codebase made it stay turned off. Fixes bug 17702; bugfix
17045       on 0.2.7.2-alpha.
17046     - When collating votes by Ed25519 identities, authorities now
17047       include a "NoEdConsensus" flag if the ed25519 value (or lack
17048       thereof) for a server does not reflect the majority consensus.
17049       Related to bug 17668; bugfix on 0.2.7.2-alpha.
17050     - When generating a vote with keypinning disabled, never include two
17051       entries for the same ed25519 identity. This bug was causing
17052       authorities to generate votes that they could not parse when a
17053       router violated key pinning by changing its RSA identity but
17054       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
17055       18318. Bugfix on 0.2.7.2-alpha.
17057   o Minor features (security, win32):
17058     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
17059       attack. Fixes bug 18123; bugfix on all tor versions. Patch
17060       by teor.
17062   o Minor features (bug-resistance):
17063     - Make Tor survive errors involving connections without a
17064       corresponding event object. Previously we'd fail with an
17065       assertion; now we produce a log message. Related to bug 16248.
17067   o Minor features (build):
17068     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
17069       as having possible IPFW support. Closes ticket 18448. Patch from
17070       Steven Chamberlain.
17072   o Minor features (code hardening):
17073     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
17074       level code, to harden against accidental failures to NUL-
17075       terminate. Part of ticket 17852. Patch from jsturgix. Found
17076       with Flawfinder.
17078   o Minor features (crypto):
17079     - Validate the hard-coded Diffie-Hellman parameters and ensure that
17080       p is a safe prime, and g is a suitable generator. Closes
17081       ticket 18221.
17083   o Minor features (geoip):
17084     - Update geoip and geoip6 to the March 3 2016 Maxmind GeoLite2
17085       Country database.
17087   o Minor features (hidden service directory):
17088     - Streamline relay-side hsdir handling: when relays consider whether
17089       to accept an uploaded hidden service descriptor, they no longer
17090       check whether they are one of the relays in the network that is
17091       "supposed" to handle that descriptor. Implements ticket 18332.
17093   o Minor features (IPv6):
17094     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
17095       to 1, tor prefers IPv6 directory addresses.
17096     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
17097       avoids using IPv4 for client OR and directory connections.
17098     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
17099       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
17100       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
17102   o Minor features (linux seccomp2 sandbox):
17103     - Reject attempts to change our Address with "Sandbox 1" enabled.
17104       Changing Address with Sandbox turned on would never actually work,
17105       but previously it would fail in strange and confusing ways. Found
17106       while fixing 18548.
17108   o Minor features (robustness):
17109     - Exit immediately with an error message if the code attempts to use
17110       Libevent without having initialized it. This should resolve some
17111       frequently-made mistakes in our unit tests. Closes ticket 18241.
17113   o Minor features (unix domain sockets):
17114     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
17115       Unix domain sockets without checking the permissions on the parent
17116       directory. (Tor checks permissions by default because some
17117       operating systems only check permissions on the parent directory.
17118       However, some operating systems do look at permissions on the
17119       socket, and tor's default check is unneeded.) Closes ticket 18458.
17120       Patch by weasel.
17122   o Minor bugfixes (exit policies, security):
17123     - Refresh an exit relay's exit policy when interface addresses
17124       change. Previously, tor only refreshed the exit policy when the
17125       configured external address changed. Fixes bug 18208; bugfix on
17126       0.2.7.3-rc. Patch by teor.
17128   o Minor bugfixes (security, hidden services):
17129     - Prevent hidden services connecting to client-supplied rendezvous
17130       addresses that are reserved as internal or multicast. Fixes bug
17131       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
17133   o Minor bugfixes (build):
17134     - Do not link the unit tests against both the testing and non-
17135       testing versions of the static libraries. Fixes bug 18490; bugfix
17136       on 0.2.7.1-alpha.
17137     - Avoid spurious failures from configure files related to calling
17138       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18626; bugfix on
17139       0.2.0.1-alpha. Patch from "cypherpunks".
17140     - Silence spurious clang-scan warnings in the ed25519_donna code by
17141       explicitly initializing some objects. Fixes bug 18384; bugfix on
17142       0.2.7.2-alpha. Patch by teor.
17144   o Minor bugfixes (client, bootstrap):
17145     - Count receipt of new microdescriptors as progress towards
17146       bootstrapping. Previously, with EntryNodes set, Tor might not
17147       successfully repopulate the guard set on bootstrapping. Fixes bug
17148       16825; bugfix on 0.2.3.1-alpha.
17150   o Minor bugfixes (code correctness):
17151     - Update to the latest version of Trunnel, which tries harder to
17152       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
17153       by clang address sanitizer. Fixes bug 18373; bugfix
17154       on 0.2.7.2-alpha.
17156   o Minor bugfixes (configuration):
17157     - Fix a tiny memory leak when parsing a port configuration ending in
17158       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
17160   o Minor bugfixes (containers):
17161     - If we somehow attempt to construct a heap with more than
17162       1073741822 elements, avoid an integer overflow when maintaining
17163       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
17165   o Minor bugfixes (correctness):
17166     - Fix a bad memory handling bug that would occur if we had queued a
17167       cell on a channel's incoming queue. Fortunately, we can't actually
17168       queue a cell like that as our code is constructed today, but it's
17169       best to avoid this kind of error, even if there isn't any code
17170       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
17172   o Minor bugfixes (directory):
17173     - When generating a URL for a directory server on an IPv6 address,
17174       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
17175       on 0.2.3.9-alpha. Patch from Malek.
17177   o Minor bugfixes (fallback directory mirrors):
17178     - When requesting extrainfo descriptors from a trusted directory
17179       server, check whether it is an authority or a fallback directory
17180       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
17181       0.2.4.7-alpha. Reported by atagar, patch by teor.
17183   o Minor bugfixes (hidden service, client):
17184     - Handle the case where the user makes several fast consecutive
17185       requests to the same .onion address. Previously, the first six
17186       requests would each trigger a descriptor fetch, each picking a
17187       directory (there are 6 overall) and the seventh one would fail
17188       because no directories were left, thereby triggering a close on
17189       all current directory connections asking for the hidden service.
17190       The solution here is to not close the connections if we have
17191       pending directory fetches. Fixes bug 15937; bugfix
17192       on 0.2.7.1-alpha.
17194   o Minor bugfixes (hidden service, control port):
17195     - Add the onion address to the HS_DESC event for the UPLOADED action
17196       both on success or failure. It was previously hardcoded with
17197       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
17199   o Minor bugfixes (hidden service, directory):
17200     - Bridges now refuse "rendezvous2" (hidden service descriptor)
17201       publish attempts. Suggested by ticket 18332.
17203   o Minor bugfixes (linux seccomp2 sandbox):
17204     - Allow the setrlimit syscall, and the prlimit and prlimit64
17205       syscalls, which some libc implementations use under the hood.
17206       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
17207     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
17208       enabled and no DNS resolvers configured. This should help TAILS
17209       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
17210     - Fix the sandbox's interoperability with unix domain sockets under
17211       setuid. Fixes bug 18253; bugfix on 0.2.8.1-alpha.
17213   o Minor bugfixes (logging):
17214     - When logging information about an unparsable networkstatus vote or
17215       consensus, do not say "vote" when we mean consensus. Fixes bug
17216       18368; bugfix on 0.2.0.8-alpha.
17217     - Scrub service name in "unrecognized service ID" log messages.
17218       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
17219     - Downgrade logs and backtraces about IP versions to info-level.
17220       Only log backtraces once each time tor runs. Assists in diagnosing
17221       bug 18351; bugfix on 0.2.8.1-alpha. Reported by sysrqb and
17222       Christian, patch by teor.
17224   o Minor bugfixes (memory safety):
17225     - Avoid freeing an uninitialized pointer when opening a socket fails
17226       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
17227       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
17228       by teor.
17229     - Correctly duplicate addresses in get_interface_address6_list().
17230       Fixes bug 18454; bugfix on 0.2.8.1-alpha. Reported by toralf,
17231       patch by "cypherpunks".
17232     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
17233       on 0.2.0.1-alpha.
17234     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
17235       18672; bugfix on 0.2.5.1-alpha.
17237   o Minor bugfixes (private directory):
17238     - Prevent a race condition when creating private directories. Fixes
17239       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
17240       Patch from jsturgix. Found with Flawfinder.
17242   o Minor bugfixes (test networks, IPv6):
17243     - Allow internal IPv6 addresses in descriptors in test networks.
17244       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
17245       by karsten.
17247   o Minor bugfixes (testing):
17248     - We no longer disable assertions in the unit tests when coverage is
17249       enabled. Instead, we require you to say --disable-asserts-in-tests
17250       to the configure script if you need assertions disabled in the
17251       unit tests (for example, if you want to perform branch coverage).
17252       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
17254   o Minor bugfixes (time parsing):
17255     - Avoid overflow in tor_timegm when parsing dates in and after 2038
17256       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
17257       0.0.2pre14. Patch by teor.
17259   o Minor bugfixes (tor-gencert):
17260     - Correctly handle the case where an authority operator enters a
17261       passphrase but sends an EOF before sending a newline. Fixes bug
17262       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
17264   o Code simplification and refactoring:
17265     - Quote all the string interpolations in configure.ac -- even those
17266       which we are pretty sure can't contain spaces. Closes ticket
17267       17744. Patch from zerosion.
17268     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
17269       inplace, so there's no need to have a separate implementation for
17270       the non-inplace code. Closes ticket 18258. Patch from Malek.
17271     - Simplify return types for some crypto functions that can't
17272       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
17274   o Documentation:
17275     - Change build messages to refer to "Fedora" instead of "Fedora
17276       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
17277       Patches from "icanhasaccount" and "cypherpunks".
17279   o Removed features:
17280     - We no longer maintain an internal freelist in memarea.c.
17281       Allocators should be good enough to make this code unnecessary,
17282       and it's doubtful that it ever had any performance benefit.
17284   o Testing:
17285     - Fix several warnings from clang's address sanitizer produced in
17286       the unit tests.
17287     - Treat backtrace test failures as expected on FreeBSD until we
17288       solve bug 17808. Closes ticket 18204.
17291 Changes in version 0.2.8.1-alpha - 2016-02-04
17292   Tor 0.2.8.1-alpha is the first alpha release in its series. It
17293   includes numerous small features and bugfixes against previous Tor
17294   versions, and numerous small infrastructure improvements. The most
17295   notable features are a set of improvements to the directory subsystem.
17297   o Major features (security, Linux):
17298     - When Tor starts as root on Linux and is told to switch user ID, it
17299       can now retain the capability to bind to low ports. By default,
17300       Tor will do this only when it's switching user ID and some low
17301       ports have been configured. You can change this behavior with the
17302       new option KeepBindCapabilities. Closes ticket 8195.
17304   o Major features (directory system):
17305     - When bootstrapping multiple consensus downloads at a time, use the
17306       first one that starts downloading, and close the rest. This
17307       reduces failures when authorities or fallback directories are slow
17308       or down. Together with the code for feature 15775, this feature
17309       should reduces failures due to fallback churn. Implements ticket
17310       4483. Patch by "teor". Implements IPv4 portions of proposal 210 by
17311       "mikeperry" and "teor".
17312     - Include a trial list of 21 default fallback directories, generated
17313       in January 2016, based on an opt-in survey of suitable relays.
17314       Doing this should make clients bootstrap more quickly and reliably,
17315       and reduce the load on the directory authorities. Closes ticket
17316       15775. Patch by "teor".
17317       Candidates identified using an OnionOO script by "weasel", "teor",
17318       "gsathya", and "karsten".
17319     - Previously only relays that explicitly opened a directory port
17320       (DirPort) accepted directory requests from clients. Now all
17321       relays, with and without a DirPort, accept and serve tunneled
17322       directory requests that they receive through their ORPort. You can
17323       disable this behavior using the new DirCache option. Closes
17324       ticket 12538.
17326   o Major key updates:
17327     - Update the V3 identity key for the dannenberg directory authority:
17328       it was changed on 18 November 2015. Closes task 17906. Patch
17329       by "teor".
17331   o Minor features (security, clock):
17332     - Warn when the system clock appears to move back in time (when the
17333       state file was last written in the future). Tor doesn't know that
17334       consensuses have expired if the clock is in the past. Patch by
17335       "teor". Implements ticket 17188.
17337   o Minor features (security, exit policies):
17338     - ExitPolicyRejectPrivate now rejects more private addresses by
17339       default. Specifically, it now rejects the relay's outbound bind
17340       addresses (if configured), and the relay's configured port
17341       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
17342       0.2.0.11-alpha. Patch by "teor".
17344   o Minor features (security, memory erasure):
17345     - Set the unused entries in a smartlist to NULL. This helped catch
17346       a (harmless) bug, and shouldn't affect performance too much.
17347       Implements ticket 17026.
17348     - Use SecureMemoryWipe() function to securely clean memory on
17349       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
17350       Implements feature 17986.
17351     - Use explicit_bzero or memset_s when present. Previously, we'd use
17352       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
17353       from <logan@hackers.mu> and <selven@hackers.mu>.
17354     - Make memwipe() do nothing when passed a NULL pointer or buffer of
17355       zero size. Check size argument to memwipe() for underflow. Fixes
17356       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
17357       patch by "teor".
17359   o Minor features (security, RNG):
17360     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
17361       positively are not allowed to fail. Previously we depended on
17362       internal details of OpenSSL's behavior. Closes ticket 17686.
17363     - Never use the system entropy output directly for anything besides
17364       seeding the PRNG. When we want to generate important keys, instead
17365       of using system entropy directly, we now hash it with the PRNG
17366       stream. This may help resist certain attacks based on broken OS
17367       entropy implementations. Closes part of ticket 17694.
17368     - Use modern system calls (like getentropy() or getrandom()) to
17369       generate strong entropy on platforms that have them. Closes
17370       ticket 13696.
17372   o Minor features (accounting):
17373     - Added two modes to the AccountingRule option: One for limiting
17374       only the number of bytes sent ("AccountingRule out"), and one for
17375       limiting only the number of bytes received ("AccountingRule in").
17376       Closes ticket 15989; patch from "unixninja92".
17378   o Minor features (build):
17379     - Since our build process now uses "make distcheck", we no longer
17380       force "make dist" to depend on "make check". Closes ticket 17893;
17381       patch from "cypherpunks."
17382     - Tor now builds successfully with the recent OpenSSL 1.1
17383       development branch, and with the latest LibreSSL. Closes tickets
17384       17549, 17921, and 17984.
17386   o Minor features (controller):
17387     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
17388       tickets 16774 and 17817. Patch by George Tankersley.
17389     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
17390       service descriptor from a service's local hidden service
17391       descriptor cache. Closes ticket 14846.
17392     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
17393       controllers can examine the the reject rules added by
17394       ExitPolicyRejectPrivate. This makes it easier for stem to display
17395       exit policies.
17397   o Minor features (crypto):
17398     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
17399       George Tankersley.
17400     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
17401     - When allocating a digest state object, allocate no more space than
17402       we actually need. Previously, we would allocate as much space as
17403       the state for the largest algorithm would need. This change saves
17404       up to 672 bytes per circuit. Closes ticket 17796.
17405     - Improve performance when hashing non-multiple of 8 sized buffers,
17406       based on Andrew Moon's public domain SipHash-2-4 implementation.
17407       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
17409   o Minor features (directory downloads):
17410     - Wait for busy authorities and fallback directories to become non-
17411       busy when bootstrapping. (A similar change was made in 6c443e987d
17412       for directory caches chosen from the consensus.) Closes ticket
17413       17864; patch by "teor".
17414     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
17415       directory mirrors. The default is 1; set it to 0 to disable
17416       fallbacks. Implements ticket 17576. Patch by "teor".
17418   o Minor features (geoip):
17419     - Update geoip and geoip6 to the January 5 2016 Maxmind GeoLite2
17420       Country database.
17422   o Minor features (IPv6):
17423     - Add an argument 'ipv6=address:orport' to the DirAuthority and
17424       FallbackDir torrc options, to specify an IPv6 address for an
17425       authority or fallback directory. Add hard-coded ipv6 addresses for
17426       directory authorities that have them. Closes ticket 17327; patch
17427       from Nick Mathewson and "teor".
17428     - Add address policy assume_action support for IPv6 addresses.
17429     - Limit IPv6 mask bits to 128.
17430     - Warn when comparing against an AF_UNSPEC address in a policy, it's
17431       almost always a bug. Closes ticket 17863; patch by "teor".
17432     - Allow users to configure directory authorities and fallback
17433       directory servers with IPv6 addresses and ORPorts. Resolves
17434       ticket 6027.
17435     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
17436       17060; bugfix on 0.2.1.3-alpha. Patch by "teor".
17437     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
17438       17638; bugfix on 0.0.2pre8. Patch by "teor".
17440   o Minor features (logging):
17441     - When logging to syslog, allow a tag to be added to the syslog
17442       identity (the string prepended to every log message). The tag can
17443       be configured with SyslogIdentityTag and defaults to none. Setting
17444       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
17445       ticket 17194.
17447   o Minor features (portability):
17448     - Use timingsafe_memcmp() where available. Closes ticket 17944;
17449       patch from <logan@hackers.mu>.
17451   o Minor features (relay, address discovery):
17452     - Add a family argument to get_interface_addresses_raw() and
17453       subfunctions to make network interface address interogation more
17454       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
17455       types of interfaces from the operating system. Resolves
17456       ticket 17950.
17457     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
17458       fails to enumerate interface addresses using the platform-specific
17459       API, have it rely on the UDP socket fallback technique to try and
17460       find out what IP addresses (both IPv4 and IPv6) our machine has.
17461       Resolves ticket 17951.
17463   o Minor features (replay cache):
17464     - The replay cache now uses SHA256 instead of SHA1. Implements
17465       feature 8961. Patch by "teor", issue reported by "rransom".
17467   o Minor features (unix file permissions):
17468     - Defer creation of Unix sockets until after setuid. This avoids
17469       needing CAP_CHOWN and CAP_FOWNER when using systemd's
17470       CapabilityBoundingSet, or chown and fowner when using SELinux.
17471       Implements part of ticket 17562. Patch from Jamie Nguyen.
17472     - If any directory created by Tor is marked as group readable, the
17473       filesystem group is allowed to be either the default GID or the
17474       root user. Allowing root to read the DataDirectory prevents the
17475       need for CAP_READ_SEARCH when using systemd's
17476       CapabilityBoundingSet, or dac_read_search when using SELinux.
17477       Implements part of ticket 17562. Patch from Jamie Nguyen.
17478     - Introduce a new DataDirectoryGroupReadable option. If it is set to
17479       1, the DataDirectory will be made readable by the default GID.
17480       Implements part of ticket 17562. Patch from Jamie Nguyen.
17482   o Minor bugfixes (accounting):
17483     - The max bandwidth when using 'AccountRule sum' is now correctly
17484       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
17485       from "unixninja92".
17487   o Minor bugfixes (code correctness):
17488     - When closing an entry connection, generate a warning if we should
17489       have sent an end cell for it but we haven't. Fixes bug 17876;
17490       bugfix on 0.2.3.2-alpha.
17491     - Assert that allocated memory held by the reputation code is freed
17492       according to its internal counters. Fixes bug 17753; bugfix
17493       on 0.1.1.1-alpha.
17494     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
17495       bugfix on 0.0.6.
17497   o Minor bugfixes (compilation):
17498     - Mark all object files that include micro-revision.i as depending
17499       on it, so as to make parallel builds more reliable. Fixes bug
17500       17826; bugfix on 0.2.5.1-alpha.
17501     - Don't try to use the pthread_condattr_setclock() function unless
17502       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
17503       17819; bugfix on 0.2.6.3-alpha.
17504     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
17505       on 0.2.5.2-alpha.
17506     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
17507       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
17508     - Fix search for libevent libraries on OpenBSD (and other systems
17509       that install libevent 1 and libevent 2 in parallel). Fixes bug
17510       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
17511     - Isolate environment variables meant for tests from the rest of the
17512       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
17513     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
17514       on 0.0.2pre8.
17515     - Remove config.log only from make distclean, not from make clean.
17516       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
17518   o Minor bugfixes (crypto):
17519     - Check the return value of HMAC() and assert on failure. Fixes bug
17520       17658; bugfix on 0.2.3.6-alpha. Patch by "teor".
17522   o Minor bugfixes (fallback directories):
17523     - Mark fallbacks as "too busy" when they return a 503 response,
17524       rather than just marking authorities. Fixes bug 17572; bugfix on
17525       0.2.4.7-alpha. Patch by "teor".
17527   o Minor bugfixes (IPv6):
17528     - Update the limits in max_dl_per_request for IPv6 address length.
17529       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
17531   o Minor bugfixes (linux seccomp2 sandbox):
17532     - Fix a crash when using offline master ed25519 keys with the Linux
17533       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
17535   o Minor bugfixes (logging):
17536     - In log messages that include a function name, use __FUNCTION__
17537       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
17538       with clang __PRETTY_FUNCTION__ has extra information we don't
17539       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
17540       der Woerdt.
17541     - Remove needless quotes from a log message about unparseable
17542       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
17544   o Minor bugfixes (portability):
17545     - Remove an #endif from configure.ac so that we correctly detect the
17546       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
17547       on 0.2.0.13-alpha.
17549   o Minor bugfixes (relays):
17550     - Check that both the ORPort and DirPort (if present) are reachable
17551       before publishing a relay descriptor. Otherwise, relays publish a
17552       descriptor with DirPort 0 when the DirPort reachability test takes
17553       longer than the ORPort reachability test. Fixes bug 18050; bugfix
17554       on 0.1.0.1-rc. Reported by "starlight", patch by "teor".
17556   o Minor bugfixes (relays, hidden services):
17557     - Refuse connection requests to private OR addresses unless
17558       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
17559       then refuse to send any cells to a private address. Fixes bugs
17560       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by "teor".
17562   o Minor bugfixes (safe logging):
17563     - When logging a malformed hostname received through socks4, scrub
17564       it if SafeLogging says we should. Fixes bug 17419; bugfix
17565       on 0.1.1.16-rc.
17567   o Minor bugfixes (statistics code):
17568     - Consistently check for overflow in round_*_to_next_multiple_of
17569       functions, and add unit tests with additional and maximal values.
17570       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
17571     - Handle edge cases in the laplace functions: avoid division by
17572       zero, avoid taking the log of zero, and silence clang type
17573       conversion warnings using round and trunc. Add unit tests for edge
17574       cases with maximal values. Fixes part of bug 13192; bugfix
17575       on 0.2.6.2-alpha.
17577   o Minor bugfixes (testing):
17578     - The test for log_heartbeat was incorrectly failing in timezones
17579       with non-integer offsets. Instead of comparing the end of the time
17580       string against a constant, compare it to the output of
17581       format_local_iso_time when given the correct input. Fixes bug
17582       18039; bugfix on 0.2.5.4-alpha.
17583     - Make unit tests pass on IPv6-only systems, and systems without
17584       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
17585       bugfix on 0.2.7.3-rc. Patch by "teor".
17586     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
17587       on 0.2.4.8-alpha.
17588     - Check the full results of SHA256 and SHA512 digests in the unit
17589       tests. Bugfix on 0.2.2.4-alpha. Patch by "teor".
17591   o Code simplification and refactoring:
17592     - Move logging of redundant policy entries in
17593       policies_parse_exit_policy_internal into its own function. Closes
17594       ticket 17608; patch from "juce".
17595     - Extract the more complicated parts of circuit_mark_for_close()
17596       into a new function that we run periodically before circuits are
17597       freed. This change removes more than half of the functions
17598       currently in the "blob". Closes ticket 17218.
17599     - Clean up a little duplicated code in
17600       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
17601       from "pfrankw".
17602     - Decouple the list of streams waiting to be attached to circuits
17603       from the overall connection list. This change makes it possible to
17604       attach streams quickly while simplifying Tor's callgraph and
17605       avoiding O(N) scans of the entire connection list. Closes
17606       ticket 17590.
17607     - When a direct directory request fails immediately on launch,
17608       instead of relaunching that request from inside the code that
17609       launches it, instead mark the connection for teardown. This change
17610       simplifies Tor's callback and prevents the directory-request
17611       launching code from invoking itself recursively. Closes
17612       ticket 17589
17613     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
17614       use them. Closes ticket 17926.
17616   o Documentation:
17617     - Add a description of the correct use of the '--keygen' command-
17618       line option. Closes ticket 17583; based on text by 's7r'.
17619     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
17620     - Explain actual minima for BandwidthRate. Closes ticket 16382.
17621     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
17622     - Mention torspec URL in the manpage and point the reader to it
17623       whenever we mention a document that belongs in torspce. Fixes
17624       issue 17392.
17626   o Removed features:
17627     - Remove client-side support for connecting to Tor relays running
17628       versions of Tor before 0.2.3.6-alpha. These relays didn't support
17629       the v3 TLS handshake protocol, and are no longer allowed on the
17630       Tor network. Implements the client side of ticket 11150. Based on
17631       patches by Tom van der Woerdt.
17633   o Testing:
17634     - Add unit tests to check for common RNG failure modes, such as
17635       returning all zeroes, identical values, or incrementing values
17636       (OpenSSL's rand_predictable feature). Patch by "teor".
17637     - Log more information when the backtrace tests fail. Closes ticket
17638       17892. Patch from "cypherpunks."
17639     - Always test both ed25519 backends, so that we can be sure that our
17640       batch-open replacement code works. Part of ticket 16794.
17641     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
17642       portion of ticket 16831.
17643     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
17644       util_format.c, directory.c, and options_validate.c. Closes tickets
17645       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
17646       Ola Bini.
17647     - Unit tests for directory_handle_command_get. Closes ticket 17004.
17648       Patch from Reinaldo de Souza Jr.
17651 Changes in version 0.2.7.6 - 2015-12-10
17652   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
17653   well as a minor bug in hidden service reliability.
17655   o Major bugfixes (guard selection):
17656     - Actually look at the Guard flag when selecting a new directory
17657       guard. When we implemented the directory guard design, we
17658       accidentally started treating all relays as if they have the Guard
17659       flag during guard selection, leading to weaker anonymity and worse
17660       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
17661       by Mohsen Imani.
17663   o Minor features (geoip):
17664     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
17665       Country database.
17667   o Minor bugfixes (compilation):
17668     - When checking for net/pfvar.h, include netinet/in.h if possible.
17669       This fixes transparent proxy detection on OpenBSD. Fixes bug
17670       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
17671     - Fix a compilation warning with Clang 3.6: Do not check the
17672       presence of an address which can never be NULL. Fixes bug 17781.
17674   o Minor bugfixes (correctness):
17675     - When displaying an IPv6 exit policy, include the mask bits
17676       correctly even when the number is greater than 31. Fixes bug
17677       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
17678     - The wrong list was used when looking up expired intro points in a
17679       rend service object, causing what we think could be reachability
17680       issues for hidden services, and triggering a BUG log. Fixes bug
17681       16702; bugfix on 0.2.7.2-alpha.
17682     - Fix undefined behavior in the tor_cert_checksig function. Fixes
17683       bug 17722; bugfix on 0.2.7.2-alpha.
17686 Changes in version 0.2.7.5 - 2015-11-20
17687   The Tor 0.2.7 release series is dedicated to the memory of Tor user
17688   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
17689   tirelessly to advocate human rights regardless of national borders,
17690   and oppose the encroachments of mass surveillance. He opposed national
17691   exceptionalism, he brought clarity to legal and policy debates, he
17692   understood and predicted the impact of mass surveillance on the world,
17693   and he laid the groundwork for resisting it. While serving on the Tor
17694   Project's board of directors, he brought us his uncompromising focus
17695   on technical excellence in the service of humankind. Caspar was an
17696   inimitable force for good and a wonderful friend. He was kind,
17697   humorous, generous, gallant, and believed we should protect one
17698   another without exception. We honor him here for his ideals, his
17699   efforts, and his accomplishments. Please honor his memory with works
17700   that would make him proud.
17702   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
17704   The 0.2.7 series adds a more secure identity key type for relays,
17705   improves cryptography performance, resolves several longstanding
17706   hidden-service performance issues, improves controller support for
17707   hidden services, and includes small bugfixes and performance
17708   improvements throughout the program. This release series also includes
17709   more tests than before, and significant simplifications to which parts
17710   of Tor invoke which others.
17712   (This release contains no code changes since 0.2.7.4-rc.)
17715 Changes in version 0.2.7.4-rc - 2015-10-21
17716   Tor 0.2.7.4-rc is the second release candidate in the 0.2.7 series. It
17717   fixes some important memory leaks, and a scary-looking (but mostly
17718   harmless in practice) invalid-read bug. It also has a few small
17719   bugfixes, notably fixes for compilation and portability on different
17720   platforms. If no further significant bounds are found, the next
17721   release will the the official stable release.
17723   o Major bugfixes (security, correctness):
17724     - Fix an error that could cause us to read 4 bytes before the
17725       beginning of an openssl string. This bug could be used to cause
17726       Tor to crash on systems with unusual malloc implementations, or
17727       systems with unusual hardening installed. Fixes bug 17404; bugfix
17728       on 0.2.3.6-alpha.
17730   o Major bugfixes (correctness):
17731     - Fix a use-after-free bug in validate_intro_point_failure(). Fixes
17732       bug 17401; bugfix on 0.2.7.3-rc.
17734   o Major bugfixes (memory leaks):
17735     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
17736       17398; bugfix on 0.2.6.1-alpha.
17737     - Fix a memory leak in rend_cache_failure_entry_free(). Fixes bug
17738       17402; bugfix on 0.2.7.3-rc.
17739     - Fix a memory leak when reading an expired signing key from disk.
17740       Fixes bug 17403; bugfix on 0.2.7.2-rc.
17742   o Minor features (geoIP):
17743     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
17744       Country database.
17746   o Minor bugfixes (compilation):
17747     - Repair compilation with the most recent (unreleased, alpha)
17748       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
17749     - Fix an integer overflow warning in test_crypto_slow.c. Fixes bug
17750       17251; bugfix on 0.2.7.2-alpha.
17751     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
17752       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
17754   o Minor bugfixes (portability):
17755     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes
17756       part of bug 17151; bugfix on 0.2.5.2-alpha. Patch from
17757       Marcin Cieślak.
17759   o Minor bugfixes (sandbox):
17760     - Add the "hidserv-stats" filename to our sandbox filter for the
17761       HiddenServiceStatistics option to work properly. Fixes bug 17354;
17762       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
17764   o Minor bugfixes (testing):
17765     - Add unit tests for get_interface_address* failure cases. Fixes bug
17766       17173; bugfix on 0.2.7.3-rc. Patch by fk/teor.
17767     - Fix breakage when running 'make check' with BSD make. Fixes bug
17768       17154; bugfix on 0.2.7.3-rc. Patch by Marcin Cieślak.
17769     - Make the get_ifaddrs_* unit tests more tolerant of different
17770       network configurations. (Don't assume every test box has an IPv4
17771       address, and don't assume every test box has a non-localhost
17772       address.) Fixes bug 17255; bugfix on 0.2.7.3-rc. Patch by "teor".
17773     - Skip backtrace tests when backtrace support is not compiled in.
17774       Fixes part of bug 17151; bugfix on 0.2.7.1-alpha. Patch from
17775       Marcin Cieślak.
17777   o Documentation:
17778     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
17779     - Note that HiddenServicePorts can take a unix domain socket. Closes
17780       ticket 17364.
17783 Changes in version 0.2.7.3-rc - 2015-09-25
17784   Tor 0.2.7.3-rc is the first release candidate in the 0.2.7 series. It
17785   contains numerous usability fixes for Ed25519 keys, safeguards against
17786   several misconfiguration problems, significant simplifications to
17787   Tor's callgraph, and numerous bugfixes and small features.
17789   This is the most tested release of Tor to date. The unit tests cover
17790   39.40% of the code, and the integration tests (accessible with "make
17791   test-full-online", requiring stem and chutney and a network
17792   connection) raise the coverage to 64.49%.
17794   o Major features (security, hidden services):
17795     - Hidden services, if using the EntryNodes option, are required to
17796       use more than one EntryNode, in order to avoid a guard discovery
17797       attack. (This would only affect people who had configured hidden
17798       services and manually specified the EntryNodes option with a
17799       single entry-node. The impact was that it would be easy to
17800       remotely identify the guard node used by such a hidden service.
17801       See ticket for more information.) Fixes ticket 14917.
17803   o Major features (Ed25519 keys, keypinning):
17804     - The key-pinning option on directory authorities is now advisory-
17805       only by default. In a future version, or when the AuthDirPinKeys
17806       option is set, pins are enforced again. Disabling key-pinning
17807       seemed like a good idea so that we can survive the fallout of any
17808       usability problems associated with Ed25519 keys. Closes
17809       ticket 17135.
17811   o Major features (Ed25519 performance):
17812     - Improve the speed of Ed25519 operations and Curve25519 keypair
17813       generation when built targeting 32 bit x86 platforms with SSE2
17814       available. Implements ticket 16535.
17815     - Improve the runtime speed of Ed25519 signature verification by
17816       using Ed25519-donna's batch verification support. Implements
17817       ticket 16533.
17819   o Major features (performance testing):
17820     - The test-network.sh script now supports performance testing.
17821       Requires corresponding chutney performance testing changes. Patch
17822       by "teor". Closes ticket 14175.
17824   o Major features (relay, Ed25519):
17825     - Significant usability improvements for Ed25519 key management. Log
17826       messages are better, and the code can recover from far more
17827       failure conditions. Thanks to "s7r" for reporting and diagnosing
17828       so many of these!
17829     - Add a new OfflineMasterKey option to tell Tor never to try loading
17830       or generating a secret Ed25519 identity key. You can use this in
17831       combination with tor --keygen to manage offline and/or encrypted
17832       Ed25519 keys. Implements ticket 16944.
17833     - Add a --newpass option to allow changing or removing the
17834       passphrase of an encrypted key with tor --keygen. Implements part
17835       of ticket 16769.
17836     - On receiving a HUP signal, check to see whether the Ed25519
17837       signing key has changed, and reload it if so. Closes ticket 16790.
17839   o Major bugfixes (relay, Ed25519):
17840     - Avoid crashing on 'tor --keygen'. Fixes bug 16679; bugfix on
17841       0.2.7.2-alpha. Reported by "s7r".
17842     - Improve handling of expired signing keys with offline master keys.
17843       Fixes bug 16685; bugfix on 0.2.7.2-alpha. Reported by "s7r".
17845   o Minor features (client-side privacy):
17846     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
17847       lifespan when IsolateSOCKSAuth and streams with SOCKS
17848       authentication are attached to the circuit. This allows
17849       applications like TorBrowser to manage circuit lifetime on their
17850       own. Implements feature 15482.
17851     - When logging malformed hostnames from SOCKS5 requests, respect
17852       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
17854   o Minor features (compilation):
17855     - Give a warning as early as possible when trying to build with an
17856       unsupported OpenSSL version. Closes ticket 16901.
17857     - Fail during configure if we're trying to build against an OpenSSL
17858       built without ECC support. Fixes bug 17109, bugfix on 0.2.7.1-alpha
17859       which started requiring ECC.
17861   o Minor features (geoip):
17862     - Update geoip and geoip6 to the September 3 2015 Maxmind GeoLite2
17863       Country database.
17865   o Minor features (hidden services):
17866     - Relays need to have the Fast flag to get the HSDir flag. As this
17867       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
17868       drop. This change should make some attacks against the hidden
17869       service directory system harder. Fixes ticket 15963.
17870     - Turn on hidden service statistics collection by setting the torrc
17871       option HiddenServiceStatistics to "1" by default. (This keeps
17872       track only of the fraction of traffic used by hidden services, and
17873       the total number of hidden services in existence.) Closes
17874       ticket 15254.
17875     - Client now uses an introduction point failure cache to know when
17876       to fetch or keep a descriptor in their cache. Previously, failures
17877       were recorded implicitly, but not explicitly remembered. Closes
17878       ticket 16389.
17880   o Minor features (testing, authorities, documentation):
17881     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
17882       explicitly manage consensus flags in testing networks. Patch by
17883       "robgjansen", modified by "teor". Implements part of ticket 14882.
17885   o Minor bugfixes (security, exit policies):
17886     - ExitPolicyRejectPrivate now also rejects the relay's published
17887       IPv6 address (if any), and any publicly routable IPv4 or IPv6
17888       addresses on any local interfaces. ticket 17027. Patch by "teor".
17889       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
17891   o Minor bug fixes (torrc exit policies):
17892     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
17893       produce IPv6 wildcard addresses. Previously they would produce
17894       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
17895       of bug 16069; bugfix on 0.2.4.7-alpha.
17896     - When parsing torrc ExitPolicies, we now warn for a number of cases
17897       where the user's intent is likely to differ from Tor's actual
17898       behavior. These include: using an IPv4 address with an accept6 or
17899       reject6 line; using "private" on an accept6 or reject6 line; and
17900       including any ExitPolicy lines after accept *:* or reject *:*.
17901       Related to ticket 16069.
17902     - When parsing torrc ExitPolicies, we now issue an info-level
17903       message when expanding an "accept/reject *" line to include both
17904       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
17905     - In each instance above, usage advice is provided to avoid the
17906       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
17907       16069; bugfix on 0.2.4.7-alpha.
17909   o Minor bugfixes (authority):
17910     - Don't assign "HSDir" to a router if it isn't Valid and Running.
17911       Fixes bug 16524; bugfix on 0.2.7.2-alpha.
17912     - Downgrade log messages about Ed25519 key issues if they are in old
17913       cached router descriptors. Fixes part of bug 16286; bugfix
17914       on 0.2.7.2-alpha.
17915     - When we find an Ed25519 key issue in a cached descriptor, stop
17916       saying the descriptor was just "uploaded". Fixes another part of
17917       bug 16286; bugfix on 0.2.7.2-alpha.
17919   o Minor bugfixes (control port):
17920     - Repair a warning and a spurious result when getting the maximum
17921       number of file descriptors from the controller. Fixes bug 16697;
17922       bugfix on 0.2.7.2-alpha.
17924   o Minor bugfixes (correctness):
17925     - When calling channel_free_list(), avoid calling smartlist_remove()
17926       while inside a FOREACH loop. This partially reverts commit
17927       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
17928       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
17930   o Minor bugfixes (documentation):
17931     - Advise users on how to configure separate IPv4 and IPv6 exit
17932       policies in the manpage and sample torrcs. Related to ticket 16069.
17933     - Fix the usage message of tor-resolve(1) so that it no longer lists
17934       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
17935     - Fix an error in the manual page and comments for
17936       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
17937       required "ORPort connectivity". While this is true, it is in no
17938       way unique to the HSDir flag. Of all the flags, only HSDirs need a
17939       DirPort configured in order for the authorities to assign that
17940       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
17941       on 0.2.6.3-alpha.
17943   o Minor bugfixes (Ed25519):
17944     - Fix a memory leak when reading router descriptors with expired
17945       Ed25519 certificates. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
17947   o Minor bugfixes (linux seccomp2 sandbox):
17948     - Allow bridge authorities to run correctly under the seccomp2
17949       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
17950     - Allow routers with ed25519 keys to run correctly under the
17951       seccomp2 sandbox. Fixes bug 16965; bugfix on 0.2.7.2-alpha.
17953   o Minor bugfixes (open file limit):
17954     - Fix set_max_file_descriptors() to set by default the max open file
17955       limit to the current limit when setrlimit() fails. Fixes bug
17956       16274; bugfix on 0.2.0.10-alpha. Patch by dgoulet.
17958   o Minor bugfixes (portability):
17959     - Try harder to normalize the exit status of the Tor process to the
17960       standard-provided range. Fixes bug 16975; bugfix on every version
17961       of Tor ever.
17962     - Check correctly for Windows socket errors in the workqueue
17963       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
17964     - Fix the behavior of crypto_rand_time_range() when told to consider
17965       times before 1970. (These times were possible when running in a
17966       simulated network environment where time()'s output starts at
17967       zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
17968     - Restore correct operation of TLS client-cipher detection on
17969       OpenSSL 1.1. Fixes bug 14047; bugfix on 0.2.7.2-alpha.
17971   o Minor bugfixes (relay):
17972     - Ensure that worker threads actually exit when a fatal error or
17973       shutdown is indicated. This fix doesn't currently affect the
17974       behavior of Tor, because Tor workers never indicates fatal error
17975       or shutdown except in the unit tests. Fixes bug 16868; bugfix
17976       on 0.2.6.3-alpha.
17977     - Unblock threads before releasing the work queue mutex to ensure
17978       predictable scheduling behavior. Fixes bug 16644; bugfix
17979       on 0.2.6.3-alpha.
17981   o Code simplification and refactoring:
17982     - Change the function that's called when we need to retry all
17983       downloads so that it only reschedules the downloads to happen
17984       immediately, rather than launching them all at once itself. This
17985       further simplifies Tor's callgraph.
17986     - Move some format-parsing functions out of crypto.c and
17987       crypto_curve25519.c into crypto_format.c and/or util_format.c.
17988     - Move the client-only parts of init_keys() into a separate
17989       function. Closes ticket 16763.
17990     - Simplify the microdesc_free() implementation so that it no longer
17991       appears (to code analysis tools) to potentially invoke a huge
17992       suite of other microdesc functions.
17993     - Simply the control graph further by deferring the inner body of
17994       directory_all_unreachable() into a callback. Closes ticket 16762.
17995     - Treat the loss of an owning controller as equivalent to a SIGTERM
17996       signal. This removes a tiny amount of duplicated code, and
17997       simplifies our callgraph. Closes ticket 16788.
17998     - When generating an event to send to the controller, we no longer
17999       put the event over the network immediately. Instead, we queue
18000       these events, and use a Libevent callback to deliver them. This
18001       change simplifies Tor's callgraph by reducing the number of
18002       functions from which all other Tor functions are reachable. Closes
18003       ticket 16695.
18004     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
18005       that try to scan or compile every file on Unix won't decide that
18006       they are broken.
18007     - Remove the unused "nulterminate" argument from buf_pullup().
18009   o Documentation:
18010     - Recommend a 40 GB example AccountingMax in torrc.sample rather
18011       than a 4 GB max. Closes ticket 16742.
18012     - Include the TUNING document in our source tarball. It is referred
18013       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
18014       on 0.2.6.1-alpha.
18016   o Removed code:
18017     - The internal pure-C tor-fw-helper tool is now removed from the Tor
18018       distribution, in favor of the pure-Go clone available from
18019       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
18020       used by the C tor-fw-helper are not, in our opinion, very
18021       confidence- inspiring in their secure-programming techniques.
18022       Closes ticket 13338.
18023     - Remove the code that would try to aggressively flush controller
18024       connections while writing to them. This code was introduced in
18025       0.1.2.7-alpha, in order to keep output buffers from exceeding
18026       their limits. But there is no longer a maximum output buffer size,
18027       and flushing data in this way caused some undesirable recursions
18028       in our call graph. Closes ticket 16480.
18030   o Testing:
18031     - Make "bridges+hs" the default test network. This tests almost all
18032       tor functionality during make test-network, while allowing tests
18033       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
18034       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
18035       (chutney). Patches by "teor".
18036     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
18037       by-side in the same parent directory. Closes ticket 16903. Patch
18038       by "teor".
18039     - Use environment variables rather than autoconf substitutions to
18040       send variables from the build system to the test scripts. This
18041       change should be easier to maintain, and cause 'make distcheck' to
18042       work better than before. Fixes bug 17148.
18043     - Add a new set of callgraph analysis scripts that use clang to
18044       produce a list of which Tor functions are reachable from which
18045       other Tor functions. We're planning to use these to help simplify
18046       our code structure by identifying illogical dependencies.
18047     - Add new 'test-full' and 'test-full-online' targets to run all
18048       tests, including integration tests with stem and chutney.
18049     - Make the test-workqueue test work on Windows by initializing the
18050       network before we begin.
18051     - New make target (make test-network-all) to run multiple applicable
18052       chutney test cases. Patch from Teor; closes 16953.
18053     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
18054       functions in dns.c. Implements a portion of ticket 16831.
18055     - When building Tor with testing coverage enabled, run Chutney tests
18056       (if any) using the 'tor-cov' coverage binary.
18057     - When running test-network or test-stem, check for the absence of
18058       stem/chutney before doing any build operations.
18061 Changes in version 0.2.7.2-alpha - 2015-07-27
18062   This, the second alpha in the Tor 0.2.7 series, has a number of new
18063   features, including a way to manually pick the number of introduction
18064   points for hidden services, and the much stronger Ed25519 signing key
18065   algorithm for regular Tor relays (including support for encrypted
18066   offline identity keys in the new algorithm).
18068   Support for Ed25519 on relays is currently limited to signing router
18069   descriptors; later alphas in this series will extend Ed25519 key
18070   support to more parts of the Tor protocol.
18072   o Major features (Ed25519 identity keys, Proposal 220):
18073     - All relays now maintain a stronger identity key, using the Ed25519
18074       elliptic curve signature format. This master key is designed so
18075       that it can be kept offline. Relays also generate an online
18076       signing key, and a set of other Ed25519 keys and certificates.
18077       These are all automatically regenerated and rotated as needed.
18078       Implements part of ticket 12498.
18079     - Directory authorities now vote on Ed25519 identity keys along with
18080       RSA1024 keys. Implements part of ticket 12498.
18081     - Directory authorities track which Ed25519 identity keys have been
18082       used with which RSA1024 identity keys, and do not allow them to
18083       vary freely. Implements part of ticket 12498.
18084     - Microdescriptors now include Ed25519 identity keys. Implements
18085       part of ticket 12498.
18086     - Add support for offline encrypted Ed25519 master keys. To use this
18087       feature on your tor relay, run "tor --keygen" to make a new master
18088       key (or to make a new signing key if you already have a master
18089       key). Closes ticket 13642.
18091   o Major features (Hidden services):
18092     - Add the torrc option HiddenServiceNumIntroductionPoints, to
18093       specify a fixed number of introduction points. Its maximum value
18094       is 10 and default is 3. Using this option can increase a hidden
18095       service's reliability under load, at the cost of making it more
18096       visible that the hidden service is facing extra load. Closes
18097       ticket 4862.
18098     - Remove the adaptive algorithm for choosing the number of
18099       introduction points, which used to change the number of
18100       introduction points (poorly) depending on the number of
18101       connections the HS sees. Closes ticket 4862.
18103   o Major features (onion key cross-certification):
18104     - Relay descriptors now include signatures of their own identity
18105       keys, made using the TAP and ntor onion keys. These signatures
18106       allow relays to prove ownership of their own onion keys. Because
18107       of this change, microdescriptors will no longer need to include
18108       RSA identity keys. Implements proposal 228; closes ticket 12499.
18110   o Major features (performance):
18111     - Improve the runtime speed of Ed25519 operations by using the
18112       public-domain Ed25519-donna by Andrew M. ("floodyberry").
18113       Implements ticket 16467.
18114     - Improve the runtime speed of the ntor handshake by using an
18115       optimized curve25519 basepoint scalarmult implementation from the
18116       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
18117       ideas by Adam Langley. Implements ticket 9663.
18119   o Major bugfixes (client-side privacy, also in 0.2.6.9):
18120     - Properly separate out each SOCKSPort when applying stream
18121       isolation. The error occurred because each port's session group
18122       was being overwritten by a default value when the listener
18123       connection was initialized. Fixes bug 16247; bugfix on
18124       0.2.6.3-alpha. Patch by "jojelino".
18126   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
18127     - Stop refusing to store updated hidden service descriptors on a
18128       client. This reverts commit 9407040c59218 (which indeed fixed bug
18129       14219, but introduced a major hidden service reachability
18130       regression detailed in bug 16381). This is a temporary fix since
18131       we can live with the minor issue in bug 14219 (it just results in
18132       some load on the network) but the regression of 16381 is too much
18133       of a setback. First-round fix for bug 16381; bugfix
18134       on 0.2.6.3-alpha.
18136   o Major bugfixes (hidden services):
18137     - When cannibalizing a circuit for an introduction point, always
18138       extend to the chosen exit node (creating a 4 hop circuit).
18139       Previously Tor would use the current circuit exit node, which
18140       changed the original choice of introduction point, and could cause
18141       the hidden service to skip excluded introduction points or
18142       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
18143       on 0.1.0.1-rc.
18145   o Major bugfixes (open file limit):
18146     - The open file limit wasn't checked before calling
18147       tor_accept_socket_nonblocking(), which would make Tor exceed the
18148       limit. Now, before opening a new socket, Tor validates the open
18149       file limit just before, and if the max has been reached, return an
18150       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
18152   o Major bugfixes (stability, also in 0.2.6.10):
18153     - Stop crashing with an assertion failure when parsing certain kinds
18154       of malformed or truncated microdescriptors. Fixes bug 16400;
18155       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
18156       by "cypherpunks_backup".
18157     - Stop random client-side assertion failures that could occur when
18158       connecting to a busy hidden service, or connecting to a hidden
18159       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
18160       on 0.1.0.1-rc.
18162   o Minor features (directory authorities, security, also in 0.2.6.9):
18163     - The HSDir flag given by authorities now requires the Stable flag.
18164       For the current network, this results in going from 2887 to 2806
18165       HSDirs. Also, it makes it harder for an attacker to launch a sybil
18166       attack by raising the effort for a relay to become Stable to
18167       require at the very least 7 days, while maintaining the 96 hours
18168       uptime requirement for HSDir. Implements ticket 8243.
18170   o Minor features (client):
18171     - Relax the validation of hostnames in SOCKS5 requests, allowing the
18172       character '_' to appear, in order to cope with domains observed in
18173       the wild that are serving non-RFC compliant records. Resolves
18174       ticket 16430.
18175     - Relax the validation done to hostnames in SOCKS5 requests, and
18176       allow a single trailing '.' to cope with clients that pass FQDNs
18177       using that syntax to explicitly indicate that the domain name is
18178       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
18179     - Add GroupWritable and WorldWritable options to unix-socket based
18180       SocksPort and ControlPort options. These options apply to a single
18181       socket, and override {Control,Socks}SocketsGroupWritable. Closes
18182       ticket 15220.
18184   o Minor features (control protocol):
18185     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
18186       the control protocol. Resolves ticket 15358.
18188   o Minor features (directory authorities):
18189     - Directory authorities no longer vote against the "Fast", "Stable",
18190       and "HSDir" flags just because they were going to vote against
18191       "Running": if the consensus turns out to be that the router was
18192       running, then the authority's vote should count. Patch from Peter
18193       Retzlaff; closes issue 8712.
18195   o Minor features (geoip, also in 0.2.6.10):
18196     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
18197     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
18199   o Minor features (hidden services):
18200     - Add the new options "HiddenServiceMaxStreams" and
18201       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
18202       limit the maximum number of simultaneous streams per circuit, and
18203       optionally tear down the circuit when the limit is exceeded. Part
18204       of ticket 16052.
18206   o Minor features (portability):
18207     - Use C99 variadic macros when the compiler is not GCC. This avoids
18208       failing compilations on MSVC, and fixes a log-file-based race
18209       condition in our old workarounds. Original patch from Gisle Vanem.
18211   o Minor bugfixes (compilation, also in 0.2.6.9):
18212     - Build with --enable-systemd correctly when libsystemd is
18213       installed, but systemd is not. Fixes bug 16164; bugfix on
18214       0.2.6.3-alpha. Patch from Peter Palfrader.
18216   o Minor bugfixes (controller):
18217     - Add the descriptor ID in each HS_DESC control event. It was
18218       missing, but specified in control-spec.txt. Fixes bug 15881;
18219       bugfix on 0.2.5.2-alpha.
18221   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
18222     - Check for failures from crypto_early_init, and refuse to continue.
18223       A previous typo meant that we could keep going with an
18224       uninitialized crypto library, and would have OpenSSL initialize
18225       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
18226       when implementing ticket 4900. Patch by "teor".
18228   o Minor bugfixes (hidden services):
18229     - Fix a crash when reloading configuration while at least one
18230       configured and one ephemeral hidden service exists. Fixes bug
18231       16060; bugfix on 0.2.7.1-alpha.
18232     - Avoid crashing with a double-free bug when we create an ephemeral
18233       hidden service but adding it fails for some reason. Fixes bug
18234       16228; bugfix on 0.2.7.1-alpha.
18236   o Minor bugfixes (Linux seccomp2 sandbox):
18237     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
18238       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
18240   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
18241     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
18242       these when eventfd2() support is missing. Fixes bug 16363; bugfix
18243       on 0.2.6.3-alpha. Patch from "teor".
18245   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
18246     - Fix sandboxing to work when running as a relay, by allowing the
18247       renaming of secret_id_key, and allowing the eventfd2 and futex
18248       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
18249       Peter Palfrader.
18250     - Allow systemd connections to work with the Linux seccomp2 sandbox
18251       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
18252       Peter Palfrader.
18254   o Minor bugfixes (relay):
18255     - Fix a rarely-encountered memory leak when failing to initialize
18256       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
18257       from "cypherpunks".
18259   o Minor bugfixes (systemd):
18260     - Fix an accidental formatting error that broke the systemd
18261       configuration file. Fixes bug 16152; bugfix on 0.2.7.1-alpha.
18262     - Tor's systemd unit file no longer contains extraneous spaces.
18263       These spaces would sometimes confuse tools like deb-systemd-
18264       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
18266   o Minor bugfixes (tests):
18267     - Use the configured Python executable when running test-stem-full.
18268       Fixes bug 16470; bugfix on 0.2.7.1-alpha.
18270   o Minor bugfixes (tests, also in 0.2.6.9):
18271     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
18272       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
18274   o Minor bugfixes (threads, comments):
18275     - Always initialize return value in compute_desc_id in rendcommon.c
18276       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18277     - Check for NULL values in getinfo_helper_onions(). Patch by "teor".
18278       Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18279     - Remove undefined directive-in-macro in test_util_writepid clang
18280       3.7 complains that using a preprocessor directive inside a macro
18281       invocation in test_util_writepid in test_util.c is undefined.
18282       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18284   o Code simplification and refactoring:
18285     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
18286       to ensure they remain consistent and visible everywhere.
18287     - Remove some vestigial workarounds for the MSVC6 compiler. We
18288       haven't supported that in ages.
18289     - The link authentication code has been refactored for better
18290       testability and reliability. It now uses code generated with the
18291       "trunnel" binary encoding generator, to reduce the risk of bugs
18292       due to programmer error. Done as part of ticket 12498.
18294   o Documentation:
18295     - Include a specific and (hopefully) accurate documentation of the
18296       torrc file's meta-format in doc/torrc_format.txt. This is mainly
18297       of interest to people writing programs to parse or generate torrc
18298       files. This document is not a commitment to long-term
18299       compatibility; some aspects of the current format are a bit
18300       ridiculous. Closes ticket 2325.
18302   o Removed features:
18303     - Tor no longer supports copies of OpenSSL that are missing support
18304       for Elliptic Curve Cryptography. (We began using ECC when
18305       available in 0.2.4.8-alpha, for more safe and efficient key
18306       negotiation.) In particular, support for at least one of P256 or
18307       P224 is now required, with manual configuration needed if only
18308       P224 is available. Resolves ticket 16140.
18309     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
18310       on an operating system that has not upgraded to OpenSSL 1.0 or
18311       later, and you compile Tor from source, you will need to install a
18312       more recent OpenSSL to link Tor against.) These versions of
18313       OpenSSL are still supported by the OpenSSL, but the numerous
18314       cryptographic improvements in later OpenSSL releases makes them a
18315       clear choice. Resolves ticket 16034.
18316     - Remove the HidServDirectoryV2 option. Now all relays offer to
18317       store hidden service descriptors. Related to 16543.
18318     - Remove the VoteOnHidServDirectoriesV2 option, since all
18319       authorities have long set it to 1. Closes ticket 16543.
18321   o Testing:
18322     - Document use of coverity, clang static analyzer, and clang dynamic
18323       undefined behavior and address sanitizers in doc/HACKING. Include
18324       detailed usage instructions in the blacklist. Patch by "teor".
18325       Closes ticket 15817.
18326     - The link authentication protocol code now has extensive tests.
18327     - The relay descriptor signature testing code now has
18328       extensive tests.
18329     - The test_workqueue program now runs faster, and is enabled by
18330       default as a part of "make check".
18331     - Now that OpenSSL has its own scrypt implementation, add an unit
18332       test that checks for interoperability between libscrypt_scrypt()
18333       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
18334       and rely on EVP_PBE_scrypt() whenever possible. Resolves
18335       ticket 16189.
18338 Changes in version 0.2.6.10 - 2015-07-12
18339   Tor version 0.2.6.10 fixes some significant stability and hidden
18340   service client bugs, bulletproofs the cryptography init process, and
18341   fixes a bug when using the sandbox code with some older versions of
18342   Linux. Everyone running an older version, especially an older version
18343   of 0.2.6, should upgrade.
18345   o Major bugfixes (hidden service clients, stability):
18346     - Stop refusing to store updated hidden service descriptors on a
18347       client. This reverts commit 9407040c59218 (which indeed fixed bug
18348       14219, but introduced a major hidden service reachability
18349       regression detailed in bug 16381). This is a temporary fix since
18350       we can live with the minor issue in bug 14219 (it just results in
18351       some load on the network) but the regression of 16381 is too much
18352       of a setback. First-round fix for bug 16381; bugfix
18353       on 0.2.6.3-alpha.
18355   o Major bugfixes (stability):
18356     - Stop crashing with an assertion failure when parsing certain kinds
18357       of malformed or truncated microdescriptors. Fixes bug 16400;
18358       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
18359       by "cypherpunks_backup".
18360     - Stop random client-side assertion failures that could occur when
18361       connecting to a busy hidden service, or connecting to a hidden
18362       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
18363       on 0.1.0.1-rc.
18365   o Minor features (geoip):
18366     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
18367     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
18369   o Minor bugfixes (crypto error-handling):
18370     - Check for failures from crypto_early_init, and refuse to continue.
18371       A previous typo meant that we could keep going with an
18372       uninitialized crypto library, and would have OpenSSL initialize
18373       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
18374       when implementing ticket 4900. Patch by "teor".
18376   o Minor bugfixes (Linux seccomp2 sandbox):
18377     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
18378       these when eventfd2() support is missing. Fixes bug 16363; bugfix
18379       on 0.2.6.3-alpha. Patch from "teor".
18382 Changes in version 0.2.6.9 - 2015-06-11
18383   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
18384   requirements for receiving an HSDir flag, and addresses some other small
18385   bugs in the systemd and sandbox code. Clients using circuit isolation
18386   should upgrade; all directory authorities should upgrade.
18388   o Major bugfixes (client-side privacy):
18389     - Properly separate out each SOCKSPort when applying stream
18390       isolation. The error occurred because each port's session group was
18391       being overwritten by a default value when the listener connection
18392       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
18393       by "jojelino".
18395   o Minor feature (directory authorities, security):
18396     - The HSDir flag given by authorities now requires the Stable flag.
18397       For the current network, this results in going from 2887 to 2806
18398       HSDirs. Also, it makes it harder for an attacker to launch a sybil
18399       attack by raising the effort for a relay to become Stable which
18400       takes at the very least 7 days to do so and by keeping the 96
18401       hours uptime requirement for HSDir. Implements ticket 8243.
18403   o Minor bugfixes (compilation):
18404     - Build with --enable-systemd correctly when libsystemd is
18405       installed, but systemd is not. Fixes bug 16164; bugfix on
18406       0.2.6.3-alpha. Patch from Peter Palfrader.
18408   o Minor bugfixes (Linux seccomp2 sandbox):
18409     - Fix sandboxing to work when running as a relaymby renaming of
18410       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
18411       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
18412     - Allow systemd connections to work with the Linux seccomp2 sandbox
18413       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
18414       Peter Palfrader.
18416   o Minor bugfixes (tests):
18417     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
18418       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
18421 Changes in version 0.2.6.8 - 2015-05-21
18422   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
18423   fixes an authority-side bug in assigning the HSDir flag. All directory
18424   authorities should upgrade.
18426   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
18427     - Revert commit that made directory authorities assign the HSDir
18428       flag to relays without a DirPort; this was bad because such relays
18429       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
18430       on 0.2.6.3-alpha.
18432   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
18433     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
18434       a client authorized hidden service. Fixes bug 15823; bugfix
18435       on 0.2.1.6-alpha.
18437   o Minor features (geoip):
18438     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
18439     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
18440       Country database.
18443 Changes in version 0.2.7.1-alpha - 2015-05-12
18444   Tor 0.2.7.1-alpha is the first alpha release in its series. It
18445   includes numerous small features and bugfixes against previous Tor
18446   versions, and numerous small infrastructure improvements. The most
18447   notable features are several new ways for controllers to interact with
18448   the hidden services subsystem.
18450   o New system requirements:
18451     - Tor no longer includes workarounds to support Libevent versions
18452       before 1.3e. Libevent 2.0 or later is recommended. Closes
18453       ticket 15248.
18455   o Major features (controller):
18456     - Add the ADD_ONION and DEL_ONION commands that allow the creation
18457       and management of hidden services via the controller. Closes
18458       ticket 6411.
18459     - New "GETINFO onions/current" and "GETINFO onions/detached"
18460       commands to get information about hidden services created via the
18461       controller. Part of ticket 6411.
18462     - New HSFETCH command to launch a request for a hidden service
18463       descriptor. Closes ticket 14847.
18464     - New HSPOST command to upload a hidden service descriptor. Closes
18465       ticket 3523. Patch by "DonnchaC".
18467   o Major bugfixes (hidden services):
18468     - Revert commit that made directory authorities assign the HSDir
18469       flag to relays without a DirPort; this was bad because such relays
18470       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
18471       on 0.2.6.3-alpha.
18473   o Minor features (clock-jump tolerance):
18474     - Recover better when our clock jumps back many hours, like might
18475       happen for Tails or Whonix users who start with a very wrong
18476       hardware clock, use Tor to discover a more accurate time, and then
18477       fix their clock. Resolves part of ticket 8766.
18479   o Minor features (command-line interface):
18480     - Make --hash-password imply --hush to prevent unnecessary noise.
18481       Closes ticket 15542. Patch from "cypherpunks".
18482     - Print a warning whenever we find a relative file path being used
18483       as torrc option. Resolves issue 14018.
18485   o Minor features (controller):
18486     - Add DirAuthority lines for default directory authorities to the
18487       output of the "GETINFO config/defaults" command if not already
18488       present. Implements ticket 14840.
18489     - Controllers can now use "GETINFO hs/client/desc/id/..." to
18490       retrieve items from the client's hidden service descriptor cache.
18491       Closes ticket 14845.
18492     - Implement a new controller command "GETINFO status/fresh-relay-
18493       descs" to fetch a descriptor/extrainfo pair that was generated on
18494       demand just for the controller's use. Implements ticket 14784.
18496   o Minor features (DoS-resistance):
18497     - Make it harder for attackers to overload hidden services with
18498       introductions, by blocking multiple introduction requests on the
18499       same circuit. Resolves ticket 15515.
18501   o Minor features (geoip):
18502     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
18503     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
18504       Country database.
18506   o Minor features (HS popularity countermeasure):
18507     - To avoid leaking HS popularity, don't cycle the introduction point
18508       when we've handled a fixed number of INTRODUCE2 cells but instead
18509       cycle it when a random number of introductions is reached, thus
18510       making it more difficult for an attacker to find out the amount of
18511       clients that have used the introduction point for a specific HS.
18512       Closes ticket 15745.
18514   o Minor features (logging):
18515     - Include the Tor version in all LD_BUG log messages, since people
18516       tend to cut and paste those into the bugtracker. Implements
18517       ticket 15026.
18519   o Minor features (pluggable transports):
18520     - When launching managed pluggable transports on Linux systems,
18521       attempt to have the kernel deliver a SIGTERM on tor exit if the
18522       pluggable transport process is still running. Resolves
18523       ticket 15471.
18524     - When launching managed pluggable transports, setup a valid open
18525       stdin in the child process that can be used to detect if tor has
18526       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
18527       can be used by implementations to detect this new behavior.
18528       Resolves ticket 15435.
18530   o Minor features (testing):
18531     - Add a test to verify that the compiler does not eliminate our
18532       memwipe() implementation. Closes ticket 15377.
18533     - Add make rule `check-changes` to verify the format of changes
18534       files. Closes ticket 15180.
18535     - Add unit tests for control_event_is_interesting(). Add a compile-
18536       time check that the number of events doesn't exceed the capacity
18537       of control_event_t.event_mask. Closes ticket 15431, checks for
18538       bugs similar to 13085. Patch by "teor".
18539     - Command-line argument tests moved to Stem. Resolves ticket 14806.
18540     - Integrate the ntor, backtrace, and zero-length keys tests into the
18541       automake test suite. Closes ticket 15344.
18542     - Remove assertions during builds to determine Tor's test coverage.
18543       We don't want to trigger these even in assertions, so including
18544       them artificially makes our branch coverage look worse than it is.
18545       This patch provides the new test-stem-full and coverage-html-full
18546       configure options. Implements ticket 15400.
18548   o Minor bugfixes (build):
18549     - Improve out-of-tree builds by making non-standard rules work and
18550       clean up additional files and directories. Fixes bug 15053; bugfix
18551       on 0.2.7.0-alpha.
18553   o Minor bugfixes (command-line interface):
18554     - When "--quiet" is provided along with "--validate-config", do not
18555       write anything to stdout on success. Fixes bug 14994; bugfix
18556       on 0.2.3.3-alpha.
18557     - When complaining about bad arguments to "--dump-config", use
18558       stderr, not stdout.
18560   o Minor bugfixes (configuration, unit tests):
18561     - Only add the default fallback directories when the DirAuthorities,
18562       AlternateDirAuthority, and FallbackDir directory config options
18563       are set to their defaults. The default fallback directory list is
18564       currently empty, this fix will only change tor's behavior when it
18565       has default fallback directories. Includes unit tests for
18566       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
18567       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
18569   o Minor bugfixes (correctness):
18570     - For correctness, avoid modifying a constant string in
18571       handle_control_postdescriptor. Fixes bug 15546; bugfix
18572       on 0.1.1.16-rc.
18573     - Remove side-effects from tor_assert() calls. This was harmless,
18574       because we never disable assertions, but it is bad style and
18575       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
18576       and 0.2.0.10.
18578   o Minor bugfixes (hidden service):
18579     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
18580       a client authorized hidden service. Fixes bug 15823; bugfix
18581       on 0.2.1.6-alpha.
18582     - Remove an extraneous newline character from the end of hidden
18583       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
18585   o Minor bugfixes (interface):
18586     - Print usage information for --dump-config when it is used without
18587       an argument. Also, fix the error message to use different wording
18588       and add newline at the end. Fixes bug 15541; bugfix
18589       on 0.2.5.1-alpha.
18591   o Minor bugfixes (logs):
18592     - When building Tor under Clang, do not include an extra set of
18593       parentheses in log messages that include function names. Fixes bug
18594       15269; bugfix on every released version of Tor when compiled with
18595       recent enough Clang.
18597   o Minor bugfixes (network):
18598     - When attempting to use fallback technique for network interface
18599       lookup, disregard loopback and multicast addresses since they are
18600       unsuitable for public communications.
18602   o Minor bugfixes (statistics):
18603     - Disregard the ConnDirectionStatistics torrc options when Tor is
18604       not a relay since in that mode of operation no sensible data is
18605       being collected and because Tor might run into measurement hiccups
18606       when running as a client for some time, then becoming a relay.
18607       Fixes bug 15604; bugfix on 0.2.2.35.
18609   o Minor bugfixes (test networks):
18610     - When self-testing reachability, use ExtendAllowPrivateAddresses to
18611       determine if local/private addresses imply reachability. The
18612       previous fix used TestingTorNetwork, which implies
18613       ExtendAllowPrivateAddresses, but this excluded rare configurations
18614       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
18615       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
18616       issue discovered by CJ Ess.
18618   o Minor bugfixes (testing):
18619     - Check for matching value in server response in ntor_ref.py. Fixes
18620       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
18621       by "joelanders".
18622     - Set the severity correctly when testing
18623       get_interface_addresses_ifaddrs() and
18624       get_interface_addresses_win32(), so that the tests fail gracefully
18625       instead of triggering an assertion. Fixes bug 15759; bugfix on
18626       0.2.6.3-alpha. Reported by Nicolas Derive.
18628   o Code simplification and refactoring:
18629     - Move the hacky fallback code out of get_interface_address6() into
18630       separate function and get it covered with unit-tests. Resolves
18631       ticket 14710.
18632     - Refactor hidden service client-side cache lookup to intelligently
18633       report its various failure cases, and disentangle failure cases
18634       involving a lack of introduction points. Closes ticket 14391.
18635     - Use our own Base64 encoder instead of OpenSSL's, to allow more
18636       control over the output. Part of ticket 15652.
18638   o Documentation:
18639     - Improve the descriptions of statistics-related torrc options in
18640       the manpage to describe rationale and possible uses cases. Fixes
18641       issue 15550.
18642     - Improve the layout and formatting of ./configure --help messages.
18643       Closes ticket 15024. Patch from "cypherpunks".
18644     - Standardize on the term "server descriptor" in the manual page.
18645       Previously, we had used "router descriptor", "server descriptor",
18646       and "relay descriptor" interchangeably. Part of ticket 14987.
18648   o Removed code:
18649     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
18650       and always use the internal Base64 decoder. The internal decoder
18651       has been part of tor since 0.2.0.10-alpha, and no one should
18652       be using the OpenSSL one. Part of ticket 15652.
18653     - Remove the 'tor_strclear()' function; use memwipe() instead.
18654       Closes ticket 14922.
18656   o Removed features:
18657     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
18658       fingerprinting we now recommend pluggable transports; for forward-
18659       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
18660     - Remove the undocumented "--digests" command-line option. It
18661       complicated our build process, caused subtle build issues on
18662       multiple platforms, and is now redundant since we started
18663       including git version identifiers. Closes ticket 14742.
18664     - Tor no longer contains checks for ancient directory cache versions
18665       that didn't know about microdescriptors.
18666     - Tor no longer contains workarounds for stat files generated by
18667       super-old versions of Tor that didn't choose guards sensibly.
18670 Changes in version 0.2.4.27 - 2015-04-06
18671   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
18672   could be used by an attacker to crash hidden services, or crash clients
18673   visiting hidden services. Hidden services should upgrade as soon as
18674   possible; clients should upgrade whenever packages become available.
18676   This release also backports a simple improvement to make hidden
18677   services a bit less vulnerable to denial-of-service attacks.
18679   o Major bugfixes (security, hidden service):
18680     - Fix an issue that would allow a malicious client to trigger an
18681       assertion failure and halt a hidden service. Fixes bug 15600;
18682       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
18683     - Fix a bug that could cause a client to crash with an assertion
18684       failure when parsing a malformed hidden service descriptor. Fixes
18685       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
18687   o Minor features (DoS-resistance, hidden service):
18688     - Introduction points no longer allow multiple INTRODUCE1 cells to
18689       arrive on the same circuit. This should make it more expensive for
18690       attackers to overwhelm hidden services with introductions.
18691       Resolves ticket 15515.
18694 Changes in version 0.2.5.12 - 2015-04-06
18695   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
18696   could be used by an attacker to crash hidden services, or crash clients
18697   visiting hidden services. Hidden services should upgrade as soon as
18698   possible; clients should upgrade whenever packages become available.
18700   This release also backports a simple improvement to make hidden
18701   services a bit less vulnerable to denial-of-service attacks.
18703   o Major bugfixes (security, hidden service):
18704     - Fix an issue that would allow a malicious client to trigger an
18705       assertion failure and halt a hidden service. Fixes bug 15600;
18706       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
18707     - Fix a bug that could cause a client to crash with an assertion
18708       failure when parsing a malformed hidden service descriptor. Fixes
18709       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
18711   o Minor features (DoS-resistance, hidden service):
18712     - Introduction points no longer allow multiple INTRODUCE1 cells to
18713       arrive on the same circuit. This should make it more expensive for
18714       attackers to overwhelm hidden services with introductions.
18715       Resolves ticket 15515.
18718 Changes in version 0.2.6.7 - 2015-04-06
18719   Tor 0.2.6.7 fixes two security issues that could be used by an
18720   attacker to crash hidden services, or crash clients visiting hidden
18721   services. Hidden services should upgrade as soon as possible; clients
18722   should upgrade whenever packages become available.
18724   This release also contains two simple improvements to make hidden
18725   services a bit less vulnerable to denial-of-service attacks.
18727   o Major bugfixes (security, hidden service):
18728     - Fix an issue that would allow a malicious client to trigger an
18729       assertion failure and halt a hidden service. Fixes bug 15600;
18730       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
18731     - Fix a bug that could cause a client to crash with an assertion
18732       failure when parsing a malformed hidden service descriptor. Fixes
18733       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
18735   o Minor features (DoS-resistance, hidden service):
18736     - Introduction points no longer allow multiple INTRODUCE1 cells to
18737       arrive on the same circuit. This should make it more expensive for
18738       attackers to overwhelm hidden services with introductions.
18739       Resolves ticket 15515.
18740     - Decrease the amount of reattempts that a hidden service performs
18741       when its rendezvous circuits fail. This reduces the computational
18742       cost for running a hidden service under heavy load. Resolves
18743       ticket 11447.
18746 Changes in version 0.2.6.6 - 2015-03-24
18747   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
18749   It adds numerous safety, security, correctness, and performance
18750   improvements. Client programs can be configured to use more kinds of
18751   sockets, AutomapHosts works better, the multithreading backend is
18752   improved, cell transmission is refactored, test coverage is much
18753   higher, more denial-of-service attacks are handled, guard selection is
18754   improved to handle long-term guards better, pluggable transports
18755   should work a bit better, and some annoying hidden service performance
18756   bugs should be addressed.
18758   o Minor bugfixes (portability):
18759     - Use the correct datatype in the SipHash-2-4 function to prevent
18760       compilers from assuming any sort of alignment. Fixes bug 15436;
18761       bugfix on 0.2.5.3-alpha.
18763 Changes in version 0.2.6.5-rc - 2015-03-18
18764   Tor 0.2.6.5-rc is the second and (hopefully) last release candidate in
18765   the 0.2.6. It fixes a small number of bugs found in 0.2.6.4-rc.
18767   o Major bugfixes (client):
18768     - Avoid crashing when making certain configuration option changes on
18769       clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
18770       by "anonym".
18772   o Major bugfixes (pluggable transports):
18773     - Initialize the extended OR Port authentication cookie before
18774       launching pluggable transports. This prevents a race condition
18775       that occurred when server-side pluggable transports would cache the
18776       authentication cookie before it has been (re)generated. Fixes bug
18777       15240; bugfix on 0.2.5.1-alpha.
18779   o Major bugfixes (portability):
18780     - Do not crash on startup when running on Solaris. Fixes a bug
18781       related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
18782       by "ruebezahl".
18784   o Minor features (heartbeat):
18785     - On relays, report how many connections we negotiated using each
18786       version of the Tor link protocols. This information will let us
18787       know if removing support for very old versions of the Tor
18788       protocols is harming the network. Closes ticket 15212.
18790   o Code simplification and refactoring:
18791     - Refactor main loop to extract the 'loop' part. This makes it
18792       easier to run Tor under Shadow. Closes ticket 15176.
18795 Changes in version 0.2.5.11 - 2015-03-17
18796   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
18798   It backports several bugfixes from the 0.2.6 branch, including a
18799   couple of medium-level security fixes for relays and exit nodes.
18800   It also updates the list of directory authorities.
18802   o Directory authority changes:
18803     - Remove turtles as a directory authority.
18804     - Add longclaw as a new (v3) directory authority. This implements
18805       ticket 13296. This keeps the directory authority count at 9.
18806     - The directory authority Faravahar has a new IP address. This
18807       closes ticket 14487.
18809   o Major bugfixes (crash, OSX, security):
18810     - Fix a remote denial-of-service opportunity caused by a bug in
18811       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
18812       in OSX 10.9.
18814   o Major bugfixes (relay, stability, possible security):
18815     - Fix a bug that could lead to a relay crashing with an assertion
18816       failure if a buffer of exactly the wrong layout was passed to
18817       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
18818       0.2.0.10-alpha. Patch from 'cypherpunks'.
18819     - Do not assert if the 'data' pointer on a buffer is advanced to the
18820       very end of the buffer; log a BUG message instead. Only assert if
18821       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
18823   o Major bugfixes (exit node stability):
18824     - Fix an assertion failure that could occur under high DNS load.
18825       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
18826       diagnosed and fixed by "cypherpunks".
18828   o Major bugfixes (Linux seccomp2 sandbox):
18829     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
18830       crash during attempts to call wait4. Fixes bug 15088; bugfix on
18831       0.2.5.1-alpha. Patch from "sanic".
18833   o Minor features (controller):
18834     - New "GETINFO bw-event-cache" to get information about recent
18835       bandwidth events. Closes ticket 14128. Useful for controllers to
18836       get recent bandwidth history after the fix for ticket 13988.
18838   o Minor features (geoip):
18839     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
18840     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
18841       Country database.
18843   o Minor bugfixes (client, automapping):
18844     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
18845       no value follows the option. Fixes bug 14142; bugfix on
18846       0.2.4.7-alpha. Patch by "teor".
18847     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
18848       14195; bugfix on 0.1.0.1-rc.
18850   o Minor bugfixes (compilation):
18851     - Build without warnings with the stock OpenSSL srtp.h header, which
18852       has a duplicate declaration of SSL_get_selected_srtp_profile().
18853       Fixes bug 14220; this is OpenSSL's bug, not ours.
18855   o Minor bugfixes (directory authority):
18856     - Allow directory authorities to fetch more data from one another if
18857       they find themselves missing lots of votes. Previously, they had
18858       been bumping against the 10 MB queued data limit. Fixes bug 14261;
18859       bugfix on 0.1.2.5-alpha.
18860     - Enlarge the buffer to read bwauth generated files to avoid an
18861       issue when parsing the file in dirserv_read_measured_bandwidths().
18862       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
18864   o Minor bugfixes (statistics):
18865     - Increase period over which bandwidth observations are aggregated
18866       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
18868   o Minor bugfixes (preventative security, C safety):
18869     - When reading a hexadecimal, base-32, or base-64 encoded value from
18870       a string, always overwrite the whole output buffer. This prevents
18871       some bugs where we would look at (but fortunately, not reveal)
18872       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
18873       versions of Tor.
18876 Changes in version 0.2.4.26 - 2015-03-17
18877   Tor 0.2.4.26 includes an updated list of directory authorities.  It
18878   also backports a couple of stability and security bugfixes from 0.2.5
18879   and beyond.
18881   o Directory authority changes:
18882     - Remove turtles as a directory authority.
18883     - Add longclaw as a new (v3) directory authority. This implements
18884       ticket 13296. This keeps the directory authority count at 9.
18885     - The directory authority Faravahar has a new IP address. This
18886       closes ticket 14487.
18888   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
18889     - Fix an assertion failure that could occur under high DNS load.
18890       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
18891       diagnosed and fixed by "cypherpunks".
18893   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
18894     - Fix a bug that could lead to a relay crashing with an assertion
18895       failure if a buffer of exactly the wrong layout was passed to
18896       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
18897       0.2.0.10-alpha. Patch from 'cypherpunks'.
18898     - Do not assert if the 'data' pointer on a buffer is advanced to the
18899       very end of the buffer; log a BUG message instead. Only assert if
18900       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
18902   o Minor features (geoip):
18903     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
18904     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
18905       Country database.
18907 Changes in version 0.2.6.4-rc - 2015-03-09
18908   Tor 0.2.6.4-alpha fixes an issue in the directory code that an
18909   attacker might be able to use in order to crash certain Tor
18910   directories. It also resolves some minor issues left over from, or
18911   introduced in, Tor 0.2.6.3-alpha or earlier.
18913   o Major bugfixes (crash, OSX, security):
18914     - Fix a remote denial-of-service opportunity caused by a bug in
18915       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
18916       in OSX 10.9.
18918   o Major bugfixes (relay, stability, possible security):
18919     - Fix a bug that could lead to a relay crashing with an assertion
18920       failure if a buffer of exactly the wrong layout is passed to
18921       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
18922       0.2.0.10-alpha. Patch from "cypherpunks".
18923     - Do not assert if the 'data' pointer on a buffer is advanced to the
18924       very end of the buffer; log a BUG message instead. Only assert if
18925       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
18927   o Major bugfixes (FreeBSD IPFW transparent proxy):
18928     - Fix address detection with FreeBSD transparent proxies, when
18929       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
18930       on 0.2.5.4-alpha.
18932   o Major bugfixes (Linux seccomp2 sandbox):
18933     - Pass IPPROTO_TCP rather than 0 to socket(), so that the Linux
18934       seccomp2 sandbox doesn't fail. Fixes bug 14989; bugfix
18935       on 0.2.6.3-alpha.
18936     - Allow AF_UNIX hidden services to be used with the seccomp2
18937       sandbox. Fixes bug 15003; bugfix on 0.2.6.3-alpha.
18938     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
18939       crash during attempts to call wait4. Fixes bug 15088; bugfix on
18940       0.2.5.1-alpha. Patch from "sanic".
18942   o Minor features (controller):
18943     - Messages about problems in the bootstrap process now include
18944       information about the server we were trying to connect to when we
18945       noticed the problem. Closes ticket 15006.
18947   o Minor features (geoip):
18948     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
18949     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
18950       Country database.
18952   o Minor features (logs):
18953     - Quiet some log messages in the heartbeat and at startup. Closes
18954       ticket 14950.
18956   o Minor bugfixes (certificate handling):
18957     - If an authority operator accidentally makes a signing certificate
18958       with a future publication time, do not discard its real signing
18959       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
18960     - Remove any old authority certificates that have been superseded
18961       for at least two days. Previously, we would keep superseded
18962       certificates until they expired, if they were published close in
18963       time to the certificate that superseded them. Fixes bug 11454;
18964       bugfix on 0.2.1.8-alpha.
18966   o Minor bugfixes (compilation):
18967     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
18968       on 0.2.5.2-alpha.
18969     - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix
18970       on 0.2.6.2-alpha.
18972   o Minor bugfixes (testing):
18973     - Fix endianness issues in unit test for resolve_my_address() to
18974       have it pass on big endian systems. Fixes bug 14980; bugfix on
18975       Tor 0.2.6.3-alpha.
18976     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
18977       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
18978     - When running the new 'make test-stem' target, use the configured
18979       python binary. Fixes bug 15037; bugfix on 0.2.6.3-alpha. Patch
18980       from "cypherpunks".
18981     - When running the zero-length-keys tests, do not use the default
18982       torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
18983       by "reezer".
18985   o Directory authority IP change:
18986     - The directory authority Faravahar has a new IP address. This
18987       closes ticket 14487.
18989   o Removed code:
18990     - Remove some lingering dead code that once supported mempools.
18991       Mempools were disabled by default in 0.2.5, and removed entirely
18992       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
18993       by "cypherpunks".
18996 Changes in version 0.2.6.3-alpha - 2015-02-19
18997   Tor 0.2.6.3-alpha is the third (and hopefully final) alpha release in
18998   the 0.2.6.x series. It introduces support for more kinds of sockets,
18999   makes it harder to accidentally run an exit, improves our
19000   multithreading backend, incorporates several fixes for the
19001   AutomapHostsOnResolve option, and fixes numerous other bugs besides.
19003   If no major regressions or security holes are found in this version,
19004   the next version will be a release candidate.
19006   o Deprecated versions:
19007     - Tor relays older than 0.2.4.18-rc are no longer allowed to
19008       advertise themselves on the network. Closes ticket 13555.
19010   o Major features (security, unix domain sockets):
19011     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
19012       applications can reach Tor without having to create AF_INET or
19013       AF_INET6 sockets, meaning they can completely disable their
19014       ability to make non-Tor network connections. To create a socket of
19015       this type, use "SocksPort unix:/path/to/socket". Implements
19016       ticket 12585.
19017     - Support mapping hidden service virtual ports to AF_UNIX sockets.
19018       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
19019       Implements ticket 11485.
19021   o Major features (changed defaults):
19022     - Prevent relay operators from unintentionally running exits: When a
19023       relay is configured as an exit node, we now warn the user unless
19024       the "ExitRelay" option is set to 1. We warn even more loudly if
19025       the relay is configured with the default exit policy, since this
19026       can indicate accidental misconfiguration. Setting "ExitRelay 0"
19027       stops Tor from running as an exit relay. Closes ticket 10067.
19029   o Major features (directory system):
19030     - When downloading server- or microdescriptors from a directory
19031       server, we no longer launch multiple simultaneous requests to the
19032       same server. This reduces load on the directory servers,
19033       especially when directory guards are in use. Closes ticket 9969.
19034     - When downloading server- or microdescriptors over a tunneled
19035       connection, do not limit the length of our requests to what the
19036       Squid proxy is willing to handle. Part of ticket 9969.
19037     - Authorities can now vote on the correct digests and latest
19038       versions for different software packages. This allows packages
19039       that include Tor to use the Tor authority system as a way to get
19040       notified of updates and their correct digests. Implements proposal
19041       227. Closes ticket 10395.
19043   o Major features (guards):
19044     - Introduce the Guardfraction feature to improves load balancing on
19045       guard nodes. Specifically, it aims to reduce the traffic gap that
19046       guard nodes experience when they first get the Guard flag. This is
19047       a required step if we want to increase the guard lifetime to 9
19048       months or greater.  Closes ticket 9321.
19050   o Major features (performance):
19051     - Make the CPU worker implementation more efficient by avoiding the
19052       kernel and lengthening pipelines. The original implementation used
19053       sockets to transfer data from the main thread to the workers, and
19054       didn't allow any thread to be assigned more than a single piece of
19055       work at once. The new implementation avoids communications
19056       overhead by making requests in shared memory, avoiding kernel IO
19057       where possible, and keeping more requests in flight at once.
19058       Implements ticket 9682.
19060   o Major features (relay):
19061     - Raise the minimum acceptable configured bandwidth rate for bridges
19062       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
19063       20 KiB/sec.) Closes ticket 13822.
19065   o Major bugfixes (exit node stability):
19066     - Fix an assertion failure that could occur under high DNS load.
19067       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
19068       diagnosed and fixed by "cypherpunks".
19070   o Major bugfixes (mixed relay-client operation):
19071     - When running as a relay and client at the same time (not
19072       recommended), if we decide not to use a new guard because we want
19073       to retry older guards, only close the locally-originating circuits
19074       passing through that guard. Previously we would close all the
19075       circuits through that guard. Fixes bug 9819; bugfix on
19076       0.2.1.1-alpha. Reported by "skruffy".
19078   o Minor features (build):
19079     - New --disable-system-torrc compile-time option to prevent Tor from
19080       looking for the system-wide torrc or torrc-defaults files.
19081       Resolves ticket 13037.
19083   o Minor features (controller):
19084     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
19085       events so controllers can observe circuit isolation inputs. Closes
19086       ticket 8405.
19087     - ControlPort now supports the unix:/path/to/socket syntax as an
19088       alternative to the ControlSocket option, for consistency with
19089       SocksPort and HiddenServicePort. Closes ticket 14451.
19090     - New "GETINFO bw-event-cache" to get information about recent
19091       bandwidth events. Closes ticket 14128. Useful for controllers to
19092       get recent bandwidth history after the fix for ticket 13988.
19094   o Minor features (Denial of service resistance):
19095     - Count the total number of bytes used storing hidden service
19096       descriptors against the value of MaxMemInQueues. If we're low on
19097       memory, and more than 20% of our memory is used holding hidden
19098       service descriptors, free them until no more than 10% of our
19099       memory holds hidden service descriptors. Free the least recently
19100       fetched descriptors first. Resolves ticket 13806.
19101     - When we have recently been under memory pressure (over 3/4 of
19102       MaxMemInQueues is allocated), then allocate smaller zlib objects
19103       for small requests. Closes ticket 11791.
19105   o Minor features (geoip):
19106     - Update geoip and geoip6 files to the January 7 2015 Maxmind
19107       GeoLite2 Country database.
19109   o Minor features (guard nodes):
19110     - Reduce the time delay before saving guard status to disk from 10
19111       minutes to 30 seconds (or from one hour to 10 minutes if
19112       AvoidDiskWrites is set). Closes ticket 12485.
19114   o Minor features (hidden service):
19115     - Make Sybil attacks against hidden services harder by changing the
19116       minimum time required to get the HSDir flag from 25 hours up to 96
19117       hours. Addresses ticket 14149.
19118     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
19119       services to disable the anti-scanning feature introduced in
19120       0.2.6.2-alpha. With this option not set, a connection to an
19121       unlisted port closes the circuit. With this option set, only a
19122       RELAY_DONE cell is sent. Closes ticket 14084.
19124   o Minor features (interface):
19125     - Implement "-f -" command-line option to read torrc configuration
19126       from standard input, if you don't want to store the torrc file in
19127       the file system. Implements feature 13865.
19129   o Minor features (logging):
19130     - Add a count of unique clients to the bridge heartbeat message.
19131       Resolves ticket 6852.
19132     - Suppress "router info incompatible with extra info" message when
19133       reading extrainfo documents from cache. (This message got loud
19134       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
19135       ticket 13762.
19136     - Elevate hidden service authorized-client message from DEBUG to
19137       INFO. Closes ticket 14015.
19139   o Minor features (stability):
19140     - Add assertions in our hash-table iteration code to check for
19141       corrupted values that could cause infinite loops. Closes
19142       ticket 11737.
19144   o Minor features (systemd):
19145     - Various improvements and modernizations in systemd hardening
19146       support. Closes ticket 13805. Patch from Craig Andrews.
19148   o Minor features (testing networks):
19149     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
19150       and the default on a testing network to 2 minutes. Drop the
19151       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
19152       keep the default on a testing network at 30 seconds. This reduces
19153       HS bootstrap time to around 25 seconds. Also, change the default
19154       time in test-network.sh to match. Closes ticket 13401. Patch
19155       by "teor".
19156     - Create TestingDirAuthVoteHSDir to correspond to
19157       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
19158       HSDir flag for the listed relays regardless of uptime or ORPort
19159       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
19160       Partial implementation for ticket 14067. Patch by "teor".
19162   o Minor features (tor2web mode):
19163     - Introduce the config option Tor2webRendezvousPoints, which allows
19164       clients in Tor2webMode to select a specific Rendezvous Point to be
19165       used in HS circuits. This might allow better performance for
19166       Tor2Web nodes. Implements ticket 12844.
19168   o Minor bugfixes (client DNS):
19169     - Report the correct cached DNS expiration times on SOCKS port or in
19170       DNS replies. Previously, we would report everything as "never
19171       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
19172     - Avoid a small memory leak when we find a cached answer for a
19173       reverse DNS lookup in a client-side DNS cache. (Remember, client-
19174       side DNS caching is off by default, and is not recommended.) Fixes
19175       bug 14259; bugfix on 0.2.0.1-alpha.
19177   o Minor bugfixes (client, automapping):
19178     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
19179       no value follows the option. Fixes bug 14142; bugfix on
19180       0.2.4.7-alpha. Patch by "teor".
19181     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
19182       14195; bugfix on 0.1.0.1-rc.
19183     - Prevent changes to other options from removing the wildcard value
19184       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
19185       on 0.2.0.1-alpha.
19186     - Allow MapAddress and AutomapHostsOnResolve to work together when
19187       an address is mapped into another address type (like .onion) that
19188       must be automapped at resolve time. Fixes bug 7555; bugfix
19189       on 0.2.0.1-alpha.
19191   o Minor bugfixes (client, bridges):
19192     - When we are using bridges and we had a network connectivity
19193       problem, only retry connecting to our currently configured
19194       bridges, not all bridges we know about and remember using. Fixes
19195       bug 14216; bugfix on 0.2.2.17-alpha.
19197   o Minor bugfixes (client, IPv6):
19198     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
19199       flag is not set; and not because the NoIPv4Traffic flag was set.
19200       Previously we'd looked at the NoIPv4Traffic flag for both types of
19201       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
19203   o Minor bugfixes (compilation):
19204     - The address of an array in the middle of a structure will always
19205       be non-NULL. clang recognises this and complains. Disable the
19206       tautologous and redundant check to silence this warning. Fixes bug
19207       14001; bugfix on 0.2.1.2-alpha.
19208     - Avoid warnings when building with systemd 209 or later. Fixes bug
19209       14072; bugfix on 0.2.6.2-alpha. Patch from "h.venev".
19210     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
19211       Addresses ticket 14188.
19212     - Build without warnings with the stock OpenSSL srtp.h header, which
19213       has a duplicate declaration of SSL_get_selected_srtp_profile().
19214       Fixes bug 14220; this is OpenSSL's bug, not ours.
19215     - Do not compile any code related to Tor2Web mode when Tor2Web mode
19216       is not enabled at compile time. Previously, this code was included
19217       in a disabled state. See discussion on ticket 12844.
19218     - Remove the --disable-threads configure option again. It was
19219       accidentally partially reintroduced in 29ac883606d6d. Fixes bug
19220       14819; bugfix on 0.2.6.2-alpha.
19222   o Minor bugfixes (controller):
19223     - Report "down" in response to the "GETINFO entry-guards" command
19224       when relays are down with an unreachable_since value. Previously,
19225       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
19226     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
19227       14116; bugfix on 0.2.2.9-alpha.
19228     - Add a code for the END_CIRC_REASON_IP_NOW_REDUNDANT circuit close
19229       reason. Fixes bug 14207; bugfix on 0.2.6.2-alpha.
19231   o Minor bugfixes (directory authority):
19232     - Allow directory authorities to fetch more data from one another if
19233       they find themselves missing lots of votes. Previously, they had
19234       been bumping against the 10 MB queued data limit. Fixes bug 14261;
19235       bugfix on 0.1.2.5-alpha.
19236     - Do not attempt to download extrainfo documents which we will be
19237       unable to validate with a matching server descriptor. Fixes bug
19238       13762; bugfix on 0.2.0.1-alpha.
19239     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
19240       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
19241     - Enlarge the buffer to read bwauth generated files to avoid an
19242       issue when parsing the file in dirserv_read_measured_bandwidths().
19243       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
19245   o Minor bugfixes (file handling):
19246     - Stop failing when key files are zero-length. Instead, generate new
19247       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
19248       on all versions of Tor. Patch by "teor".
19249     - Stop generating a fresh .old RSA onion key file when the .old file
19250       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
19251     - Avoid overwriting .old key files with empty key files.
19252     - Skip loading zero-length extrainfo store, router store, stats,
19253       state, and key files.
19254     - Avoid crashing when trying to reload a torrc specified as a
19255       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
19256       on 0.2.3.11-alpha.
19258   o Minor bugfixes (hidden services):
19259     - Close the introduction circuit when we have no more usable intro
19260       points, instead of waiting for it to time out. This also ensures
19261       that no follow-up HS descriptor fetch is triggered when the
19262       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
19263     - When fetching a hidden service descriptor for a down service that
19264       was recently up, do not keep refetching until we try the same
19265       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
19266     - Successfully launch Tor with a nonexistent hidden service
19267       directory. Our fix for bug 13942 didn't catch this case. Fixes bug
19268       14106; bugfix on 0.2.6.2-alpha.
19270   o Minor bugfixes (logging):
19271     - Avoid crashing when there are more log domains than entries in
19272       domain_list. Bugfix on 0.2.3.1-alpha.
19273     - Add a string representation for LD_SCHED. Fixes bug 14740; bugfix
19274       on 0.2.6.1-alpha.
19275     - Don't log messages to stdout twice when starting up. Fixes bug
19276       13993; bugfix on 0.2.6.1-alpha.
19278   o Minor bugfixes (parsing):
19279     - Stop accepting milliseconds (or other junk) at the end of
19280       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
19281     - Support two-number and three-number version numbers correctly, in
19282       case we change the Tor versioning system in the future. Fixes bug
19283       13661; bugfix on 0.0.8pre1.
19285   o Minor bugfixes (path counting):
19286     - When deciding whether the consensus lists any exit nodes, count
19287       the number listed in the consensus, not the number we have
19288       descriptors for. Fixes part of bug 14918; bugfix on 0.2.6.2-alpha.
19289     - When deciding whether we have any exit nodes, only examine
19290       ExitNodes when the ExitNodes option is actually set. Fixes part of
19291       bug 14918; bugfix on 0.2.6.2-alpha.
19292     - Get rid of redundant and possibly scary warnings that we are
19293       missing directory information while we bootstrap. Fixes part of
19294       bug 14918; bugfix on 0.2.6.2-alpha.
19296   o Minor bugfixes (portability):
19297     - Fix the ioctl()-based network interface lookup code so that it
19298       will work on systems that have variable-length struct ifreq, for
19299       example Mac OS X.
19300     - Fix scheduler compilation on targets where char is unsigned. Fixes
19301       bug 14764; bugfix on 0.2.6.2-alpha. Reported by Christian Kujau.
19303   o Minor bugfixes (sandbox):
19304     - Allow glibc fatal errors to be sent to stderr before Tor exits.
19305       Previously, glibc would try to write them to /dev/tty, and the
19306       sandbox would trap the call and make Tor exit prematurely. Fixes
19307       bug 14759; bugfix on 0.2.5.1-alpha.
19309   o Minor bugfixes (shutdown):
19310     - When shutting down, always call event_del() on lingering read or
19311       write events before freeing them. Otherwise, we risk double-frees
19312       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
19313       on 0.1.0.2-rc.
19315   o Minor bugfixes (small memory leaks):
19316     - Avoid leaking memory when using IPv6 virtual address mappings.
19317       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
19318       der Woerdt.
19320   o Minor bugfixes (statistics):
19321     - Increase period over which bandwidth observations are aggregated
19322       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
19324   o Minor bugfixes (systemd support):
19325     - Fix detection and operation of systemd watchdog. Fixes part of bug
19326       14141; bugfix on 0.2.6.2-alpha. Patch from Tomasz Torcz.
19327     - Run correctly under systemd with the RunAsDaemon option set. Fixes
19328       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
19329     - Inform the systemd supervisor about more changes in the Tor
19330       process status. Implements part of ticket 14141. Patch from
19331       Tomasz Torcz.
19332     - Cause the "--disable-systemd" option to actually disable systemd
19333       support. Fixes bug 14350; bugfix on 0.2.6.2-alpha. Patch
19334       from "blueness".
19336   o Minor bugfixes (TLS):
19337     - Check more thoroughly throughout the TLS code for possible
19338       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
19340   o Minor bugfixes (transparent proxy):
19341     - Use getsockname, not getsockopt, to retrieve the address for a
19342       TPROXY-redirected connection. Fixes bug 13796; bugfix
19343       on 0.2.5.2-alpha.
19345   o Code simplification and refactoring:
19346     - Move fields related to isolating and configuring client ports into
19347       a shared structure. Previously, they were duplicated across
19348       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
19349       to copy them correctly had been the cause of at least one bug in
19350       the past. Closes ticket 8546.
19351     - Refactor the get_interface_addresses_raw() doom-function into
19352       multiple smaller and simpler subfunctions. Cover the resulting
19353       subfunctions with unit-tests. Fixes a significant portion of
19354       issue 12376.
19355     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
19356       only for version <= 0.2.2.24 which is now deprecated. Closes
19357       ticket 14202.
19358     - Remove a test for a long-defunct broken version-one
19359       directory server.
19361   o Documentation:
19362     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
19363       for writing the OpenBSD-specific tips. Resolves ticket 13702.
19364     - Make the tor-resolve documentation match its help string and its
19365       options. Resolves part of ticket 14325.
19366     - Log a more useful error message from tor-resolve when failing to
19367       look up a hidden service address. Resolves part of ticket 14325.
19369   o Downgraded warnings:
19370     - Don't warn when we've attempted to contact a relay using the wrong
19371       ntor onion key. Closes ticket 9635.
19373   o Removed features:
19374     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
19375       longer silently accepted as an alias for "ExitNodes".
19376     - The --enable-mempool and --enable-buf-freelists options, which
19377       were originally created to work around bad malloc implementations,
19378       no longer exist. They were off-by-default in 0.2.5. Closes
19379       ticket 14848.
19381   o Testing:
19382     - Make the checkdir/perms test complete successfully even if the
19383       global umask is not 022. Fixes bug 14215; bugfix on 0.2.6.2-alpha.
19384     - Test that tor does not fail when key files are zero-length. Check
19385       that tor generates new keys, and overwrites the empty key files.
19386     - Test that tor generates new keys when keys are missing
19387       (existing behavior).
19388     - Test that tor does not overwrite key files that already contain
19389       data (existing behavior). Tests bug 13111. Patch by "teor".
19390     - New "make test-stem" target to run stem integration tests.
19391       Requires that the "STEM_SOURCE_DIR" environment variable be set.
19392       Closes ticket 14107.
19393     - Make the test_cmdline_args.py script work correctly on Windows.
19394       Patch from Gisle Vanem.
19395     - Move the slower unit tests into a new "./src/test/test-slow"
19396       binary that can be run independently of the other tests. Closes
19397       ticket 13243.
19398     - Avoid undefined behavior when sampling huge values from the
19399       Laplace distribution. This made unittests fail on Raspberry Pi.
19400       Bug found by Device. Fixes bug 14090; bugfix on 0.2.6.2-alpha.
19403 Changes in version 0.2.6.2-alpha - 2014-12-31
19404   Tor 0.2.6.2-alpha is the second alpha release in the 0.2.6.x series.
19405   It introduces a major new backend for deciding when to send cells on
19406   channels, which should lead down the road to big performance
19407   increases. It contains security and statistics features for better
19408   work on hidden services, and numerous bugfixes.
19410   This release contains many new unit tests, along with major
19411   performance improvements for running testing networks using Chutney.
19412   Thanks to a series of patches contributed by "teor", testing networks
19413   should now bootstrap in seconds, rather than minutes.
19415   o Major features (relay, infrastructure):
19416     - Complete revision of the code that relays use to decide which cell
19417       to send next. Formerly, we selected the best circuit to write on
19418       each channel, but we didn't select among channels in any
19419       sophisticated way. Now, we choose the best circuits globally from
19420       among those whose channels are ready to deliver traffic.
19422       This patch implements a new inter-cmux comparison API, a global
19423       high/low watermark mechanism and a global scheduler loop for
19424       transmission prioritization across all channels as well as among
19425       circuits on one channel. This schedule is currently tuned to
19426       (tolerantly) avoid making changes in network performance, but it
19427       should form the basis for major circuit performance increases in
19428       the future. Code by Andrea; tuning by Rob Jansen; implements
19429       ticket 9262.
19431   o Major features (hidden services):
19432     - Make HS port scanning more difficult by immediately closing the
19433       circuit when a user attempts to connect to a nonexistent port.
19434       Closes ticket 13667.
19435     - Add a HiddenServiceStatistics option that allows Tor relays to
19436       gather and publish statistics about the overall size and volume of
19437       hidden service usage. Specifically, when this option is turned on,
19438       an HSDir will publish an approximate number of hidden services
19439       that have published descriptors to it the past 24 hours. Also, if
19440       a relay has acted as a hidden service rendezvous point, it will
19441       publish the approximate amount of rendezvous cells it has relayed
19442       the past 24 hours. The statistics themselves are obfuscated so
19443       that the exact values cannot be derived. For more details see
19444       proposal 238, "Better hidden service stats from Tor relays". This
19445       feature is currently disabled by default. Implements feature 13192.
19447   o Major bugfixes (client, automap):
19448     - Repair automapping with IPv6 addresses. This automapping should
19449       have worked previously, but one piece of debugging code that we
19450       inserted to detect a regression actually caused the regression to
19451       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
19452       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
19453       Izquierdo Riera.
19455   o Major bugfixes (hidden services):
19456     - When closing an introduction circuit that was opened in parallel
19457       with others, don't mark the introduction point as unreachable.
19458       Previously, the first successful connection to an introduction
19459       point would make the other introduction points get marked as
19460       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
19462   o Directory authority changes:
19463     - Remove turtles as a directory authority.
19464     - Add longclaw as a new (v3) directory authority. This implements
19465       ticket 13296. This keeps the directory authority count at 9.
19467   o Major removed features:
19468     - Tor clients no longer support connecting to hidden services
19469       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
19470       option has been removed. (There shouldn't be any hidden services
19471       running these versions on the network.) Closes ticket 7803.
19473   o Minor features (client):
19474     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
19475       is enabled, reject requests with IP addresses as hostnames.
19476       Resolves ticket 13315.
19478   o Minor features (controller):
19479     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
19480       write an unscheduled heartbeat message to the log. Implements
19481       feature 9503.
19483   o Minor features (geoip):
19484     - Update geoip and geoip6 to the November 15 2014 Maxmind GeoLite2
19485       Country database.
19487   o Minor features (hidden services):
19488     - When re-enabling the network, don't try to build introduction
19489       circuits until we have successfully built a circuit. This makes
19490       hidden services come up faster when the network is re-enabled.
19491       Patch from "akwizgran". Closes ticket 13447.
19492     - When we fail to retrieve a hidden service descriptor, send the
19493       controller an "HS_DESC FAILED" controller event. Implements
19494       feature 13212.
19495     - New HiddenServiceDirGroupReadable option to cause hidden service
19496       directories and hostname files to be created group-readable. Patch
19497       from "anon", David Stainton, and "meejah". Closes ticket 11291.
19499   o Minor features (systemd):
19500     - Where supported, when running with systemd, report successful
19501       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
19502     - When running with systemd, support systemd watchdog messages. Part
19503       of ticket 11016. Patch by Michael Scherer.
19505   o Minor features (transparent proxy):
19506     - Update the transparent proxy option checks to allow for both ipfw
19507       and pf on OS X. Closes ticket 14002.
19508     - Use the correct option when using IPv6 with transparent proxy
19509       support on Linux. Resolves 13808. Patch by Francisco Blas
19510       Izquierdo Riera.
19512   o Minor bugfixes (preventative security, C safety):
19513     - When reading a hexadecimal, base-32, or base-64 encoded value from
19514       a string, always overwrite the whole output buffer. This prevents
19515       some bugs where we would look at (but fortunately, not reveal)
19516       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
19517       versions of Tor.
19518     - Clear all memory targeted by tor_addr_{to,from}_sockaddr(), not
19519       just the part that's used. This makes it harder for data leak bugs
19520       to occur in the event of other programming failures. Resolves
19521       ticket 14041.
19523   o Minor bugfixes (client, microdescriptors):
19524     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
19525       computing which microdescriptors to download. This keeps us from
19526       erroneous download behavior if two microdescriptor digests ever
19527       have the same first 160 bits. Fixes part of bug 13399; bugfix
19528       on 0.2.3.1-alpha.
19529     - Reset a router's status if its microdescriptor digest changes,
19530       even if the first 160 bits remain the same. Fixes part of bug
19531       13399; bugfix on 0.2.3.1-alpha.
19533   o Minor bugfixes (compilation):
19534     - Silence clang warnings under --enable-expensive-hardening,
19535       including implicit truncation of 64 bit values to 32 bit, const
19536       char assignment to self, tautological compare, and additional
19537       parentheses around equality tests. Fixes bug 13577; bugfix
19538       on 0.2.5.4-alpha.
19539     - Fix a clang warning about checking whether an address in the
19540       middle of a structure is NULL. Fixes bug 14001; bugfix
19541       on 0.2.1.2-alpha.
19543   o Minor bugfixes (hidden services):
19544     - Correctly send a controller event when we find that a rendezvous
19545       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
19546     - Pre-check directory permissions for new hidden-services to avoid
19547       at least one case of "Bug: Acting on config options left us in a
19548       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
19549     - When adding a new hidden service (for example, via SETCONF), Tor
19550       no longer congratulates the user for running a relay. Fixes bug
19551       13941; bugfix on 0.2.6.1-alpha.
19552     - When fetching hidden service descriptors, we now check not only
19553       for whether we got the hidden service we had in mind, but also
19554       whether we got the particular descriptors we wanted. This prevents
19555       a class of inefficient but annoying DoS attacks by hidden service
19556       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
19557       by "special".
19559   o Minor bugfixes (Linux seccomp2 sandbox):
19560     - Make transparent proxy support work along with the seccomp2
19561       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
19562       by Francisco Blas Izquierdo Riera.
19563     - Fix a memory leak in tor-resolve when running with the sandbox
19564       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
19566   o Minor bugfixes (logging):
19567     - Downgrade warnings about RSA signature failures to info log level.
19568       Emit a warning when an extra info document is found incompatible
19569       with a corresponding router descriptor. Fixes bug 9812; bugfix
19570       on 0.0.6rc3.
19571     - Make connection_ap_handshake_attach_circuit() log the circuit ID
19572       correctly. Fixes bug 13701; bugfix on 0.0.6.
19574   o Minor bugfixes (misc):
19575     - Stop allowing invalid address patterns like "*/24" that contain
19576       both a wildcard address and a bit prefix length. This affects all
19577       our address-range parsing code. Fixes bug 7484; bugfix
19578       on 0.0.2pre14.
19580   o Minor bugfixes (testing networks, fast startup):
19581     - Allow Tor to build circuits using a consensus with no exits. If
19582       the consensus has no exits (typical of a bootstrapping test
19583       network), allow Tor to build circuits once enough descriptors have
19584       been downloaded. This assists in bootstrapping a testing Tor
19585       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
19586       by "teor".
19587     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
19588       header to directory servers. This allows us to obtain consensuses
19589       promptly when the consensus interval is very short. This assists
19590       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
19591       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
19592     - Stop assuming that private addresses are local when checking
19593       reachability in a TestingTorNetwork. Instead, when testing, assume
19594       all OR connections are remote. (This is necessary due to many test
19595       scenarios running all relays on localhost.) This assists in
19596       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
19597       0.1.0.1-rc. Patch by "teor".
19598     - Avoid building exit circuits from a consensus with no exits. Now
19599       thanks to our fix for 13718, we accept a no-exit network as not
19600       wholly lost, but we need to remember not to try to build exit
19601       circuits on it. Closes ticket 13814; patch by "teor".
19602     - Stop requiring exits to have non-zero bandwithcapacity in a
19603       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
19604       ignore exit bandwidthcapacity. This assists in bootstrapping a
19605       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
19606       on 0.2.0.3-alpha. Patch by "teor".
19607     - Add "internal" to some bootstrap statuses when no exits are
19608       available. If the consensus does not contain Exits, Tor will only
19609       build internal circuits. In this case, relevant statuses will
19610       contain the word "internal" as indicated in the Tor control-
19611        spec.txt. When bootstrap completes, Tor will be ready to build
19612       internal circuits. If a future consensus contains Exits, exit
19613       circuits may become available. Fixes part of bug 13718; bugfix on
19614       0.2.4.10-alpha. Patch by "teor".
19615     - Decrease minimum consensus interval to 10 seconds when
19616       TestingTorNetwork is set, or 5 seconds for the first consensus.
19617       Fix assumptions throughout the code that assume larger intervals.
19618       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
19619       by "teor".
19620     - Avoid excluding guards from path building in minimal test
19621       networks, when we're in a test network and excluding guards would
19622       exclude all relays. This typically occurs in incredibly small tor
19623       networks, and those using "TestingAuthVoteGuard *". Fixes part of
19624       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
19626   o Code simplification and refactoring:
19627     - Stop using can_complete_circuits as a global variable; access it
19628       with a function instead.
19629     - Avoid using operators directly as macro arguments: this lets us
19630       apply coccinelle transformations to our codebase more directly.
19631       Closes ticket 13172.
19632     - Combine the functions used to parse ClientTransportPlugin and
19633       ServerTransportPlugin into a single function. Closes ticket 6456.
19634     - Add inline functions and convenience macros for inspecting channel
19635       state. Refactor the code to use convenience macros instead of
19636       checking channel state directly. Fixes issue 7356.
19637     - Document all members of was_router_added_t and rename
19638       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
19639       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
19640     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
19641       constant instead of hardcoded value. Fixes issue 13840.
19642     - Refactor our generic strmap and digestmap types into a single
19643       implementation, so that we can add a new digest256map
19644       type trivially.
19646   o Documentation:
19647     - Document the bridge-authority-only 'networkstatus-bridges' file.
19648       Closes ticket 13713; patch from "tom".
19649     - Fix typo in PredictedPortsRelevanceTime option description in
19650       manpage. Resolves issue 13707.
19651     - Stop suggesting that users specify relays by nickname: it isn't a
19652       good idea. Also, properly cross-reference how to specify relays in
19653       all parts of manual documenting options that take a list of
19654       relays. Closes ticket 13381.
19655     - Clarify the HiddenServiceDir option description in manpage to make
19656       it clear that relative paths are taken with respect to the current
19657       working directory. Also clarify that this behavior is not
19658       guaranteed to remain indefinitely. Fixes issue 13913.
19660   o Testing:
19661     - New tests for many parts of channel, relay, and circuitmux
19662       functionality. Code by Andrea; part of 9262.
19663     - New tests for parse_transport_line(). Part of ticket 6456.
19664     - In the unit tests, use chgrp() to change the group of the unit
19665       test temporary directory to the current user, so that the sticky
19666       bit doesn't interfere with tests that check directory groups.
19667       Closes 13678.
19668     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
19669       by 'rl1987'.
19672 Changes in version 0.2.6.1-alpha - 2014-10-30
19673   Tor 0.2.6.1-alpha is the first release in the Tor 0.2.6.x series. It
19674   includes numerous code cleanups and new tests, and fixes a large
19675   number of annoying bugs. Out-of-memory conditions are handled better
19676   than in 0.2.5, pluggable transports have improved proxy support, and
19677   clients now use optimistic data for contacting hidden services. Also,
19678   we are now more robust to changes in what we consider a parseable
19679   directory object, so that tightening restrictions does not have a risk
19680   of introducing infinite download loops.
19682   This is the first alpha release in a new series, so expect there to be
19683   bugs. Users who would rather test out a more stable branch should stay
19684   with 0.2.5.x for now.
19686   o New compiler and system requirements:
19687     - Tor 0.2.6.x requires that your compiler support more of the C99
19688       language standard than before. The 'configure' script now detects
19689       whether your compiler supports C99 mid-block declarations and
19690       designated initializers. If it does not, Tor will not compile.
19692       We may revisit this requirement if it turns out that a significant
19693       number of people need to build Tor with compilers that don't
19694       bother implementing a 15-year-old standard. Closes ticket 13233.
19695     - Tor no longer supports systems without threading support. When we
19696       began working on Tor, there were several systems that didn't have
19697       threads, or where the thread support wasn't able to run the
19698       threads of a single process on multiple CPUs. That no longer
19699       holds: every system where Tor needs to run well now has threading
19700       support. Resolves ticket 12439.
19702   o Removed platform support:
19703     - We no longer include special code to build on Windows CE; as far
19704       as we know, nobody has used Tor on Windows CE in a very long time.
19705       Closes ticket 11446.
19707   o Major features (bridges):
19708     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
19709       transports if they are configured via the "TOR_PT_PROXY"
19710       environment variable. Implements proposal 232. Resolves
19711       ticket 8402.
19713   o Major features (client performance, hidden services):
19714     - Allow clients to use optimistic data when connecting to a hidden
19715       service, which should remove a round-trip from hidden service
19716       initialization. See proposal 181 for details. Implements
19717       ticket 13211.
19719   o Major features (directory system):
19720     - Upon receiving an unparseable directory object, if its digest
19721       matches what we expected, then don't try to download it again.
19722       Previously, when we got a descriptor we didn't like, we would keep
19723       trying to download it over and over. Closes ticket 11243.
19725   o Major features (sample torrc):
19726     - Add a new, infrequently-changed "torrc.minimal". This file is
19727       similar to torrc.sample, but it will change as infrequently as
19728       possible, for the benefit of users whose systems prompt them for
19729       intervention whenever a default configuration file is changed.
19730       Making this change allows us to update torrc.sample to be a more
19731       generally useful "sample torrc".
19733   o Major bugfixes (directory authorities):
19734     - Do not assign the HSDir flag to relays if they are not Valid, or
19735       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
19737   o Major bugfixes (directory bandwidth performance):
19738     - Don't flush the zlib buffer aggressively when compressing
19739       directory information for clients. This should save about 7% of
19740       the bandwidth currently used for compressed descriptors and
19741       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
19743   o Minor features (security, memory wiping):
19744     - Ensure we securely wipe keys from memory after
19745       crypto_digest_get_digest and init_curve25519_keypair_from_file
19746       have finished using them. Resolves ticket 13477.
19748   o Minor features (security, out-of-memory handling):
19749     - When handling an out-of-memory condition, allocate less memory for
19750       temporary data structures. Fixes issue 10115.
19751     - When handling an out-of-memory condition, consider more types of
19752       buffers, including those on directory connections, and zlib
19753       buffers. Resolves ticket 11792.
19755   o Minor features:
19756     - When identity keypair is generated for first time, log a
19757       congratulatory message that links to the new relay lifecycle
19758       document. Implements feature 10427.
19760   o Minor features (client):
19761     - Clients are now willing to send optimistic data (before they
19762       receive a 'connected' cell) to relays of any version. (Relays
19763       without support for optimistic data are no longer supported on the
19764       Tor network.) Resolves ticket 13153.
19766   o Minor features (directory authorities):
19767     - Don't list relays with a bandwidth estimate of 0 in the consensus.
19768       Implements a feature proposed during discussion of bug 13000.
19769     - In tor-gencert, report an error if the user provides the same
19770       argument more than once.
19771     - If a directory authority can't find a best consensus method in the
19772       votes that it holds, it now falls back to its favorite consensus
19773       method. Previously, it fell back to method 1. Neither of these is
19774       likely to get enough signatures, but "fall back to favorite"
19775       doesn't require us to maintain support an obsolete consensus
19776       method. Implements part of proposal 215.
19778   o Minor features (logging):
19779     - On Unix-like systems, you can now use named pipes as the target of
19780       the Log option, and other options that try to append to files.
19781       Closes ticket 12061. Patch from "carlo von lynX".
19782     - When opening a log file at startup, send it every log message that
19783       we generated between startup and opening it. Previously, log
19784       messages that were generated before opening the log file were only
19785       logged to stdout. Closes ticket 6938.
19786     - Add a TruncateLogFile option to overwrite logs instead of
19787       appending to them. Closes ticket 5583.
19789   o Minor features (portability, Solaris):
19790     - Threads are no longer disabled by default on Solaris; we believe
19791       that the versions of Solaris with broken threading support are all
19792       obsolete by now. Resolves ticket 9495.
19794   o Minor features (relay):
19795     - Re-check our address after we detect a changed IP address from
19796       getsockname(). This ensures that the controller command "GETINFO
19797       address" will report the correct value. Resolves ticket 11582.
19798       Patch from "ra".
19799     - A new AccountingRule option lets Relays set whether they'd like
19800       AccountingMax to be applied separately to inbound and outbound
19801       traffic, or applied to the sum of inbound and outbound traffic.
19802       Resolves ticket 961. Patch by "chobe".
19804   o Minor features (testing networks):
19805     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
19806       the "Exit" flag regardless of their uptime, bandwidth, or exit
19807       policy. TestingTorNetwork must be set for this option to have any
19808       effect. Previously, authorities would take up to 35 minutes to
19809       give nodes the Exit flag in a test network. Partially implements
19810       ticket 13161.
19812   o Minor features (validation):
19813     - Check all date/time values passed to tor_timegm and
19814       parse_rfc1123_time for validity, taking leap years into account.
19815       Improves HTTP header validation. Implemented with bug 13476.
19816     - In correct_tm(), limit the range of values returned by system
19817       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
19818       This means we don't have to deal with negative or too large dates,
19819       even if a clock is wrong. Otherwise we might fail to read a file
19820       written by us which includes such a date. Fixes bug 13476.
19822   o Minor bugfixes (bridge clients):
19823     - When configured to use a bridge without an identity digest (not
19824       recommended), avoid launching an extra channel to it when
19825       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
19827   o Minor bugfixes (bridges):
19828     - When DisableNetwork is set, do not launch pluggable transport
19829       plugins, and if any are running, terminate them. Fixes bug 13213;
19830       bugfix on 0.2.3.6-alpha.
19832   o Minor bugfixes (C correctness):
19833     - Fix several instances of possible integer overflow/underflow/NaN.
19834       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
19835       from "teor".
19836     - In circuit_build_times_calculate_timeout() in circuitstats.c,
19837       avoid dividing by zero in the pareto calculations. This traps
19838       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
19839       on 0.2.2.2-alpha.
19840     - Fix an integer overflow in format_time_interval(). Fixes bug
19841       13393; bugfix on 0.2.0.10-alpha.
19842     - Set the correct day of year value when the system's localtime(_r)
19843       or gmtime(_r) functions fail to set struct tm. Not externally
19844       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
19845     - Avoid unlikely signed integer overflow in tor_timegm on systems
19846       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
19848   o Minor bugfixes (client):
19849     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
19850       BadExit flag are not considered worthy candidates. Fixes bug
19851       13066; bugfix on 0.1.2.3-alpha.
19852     - Use the consensus schedule for downloading consensuses, and not
19853       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
19854     - Handle unsupported or malformed SOCKS5 requests properly by
19855       responding with the appropriate error message before closing the
19856       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
19858   o Minor bugfixes (client, torrc):
19859     - Stop modifying the value of our DirReqStatistics torrc option just
19860       because we're not a bridge or relay. This bug was causing Tor
19861       Browser users to write "DirReqStatistics 0" in their torrc files
19862       as if they had chosen to change the config. Fixes bug 4244; bugfix
19863       on 0.2.3.1-alpha.
19864     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
19865       that our options have changed every time we SIGHUP. Fixes bug
19866       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
19868   o Minor bugfixes (controller):
19869     - Return an error when the second or later arguments of the
19870       "setevents" controller command are invalid events. Previously we
19871       would return success while silently skipping invalid events. Fixes
19872       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
19874   o Minor bugfixes (directory system):
19875     - Always believe that v3 directory authorities serve extra-info
19876       documents, whether they advertise "caches-extra-info" or not.
19877       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
19878     - When running as a v3 directory authority, advertise that you serve
19879       extra-info documents so that clients who want them can find them
19880       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
19881     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
19882       Previously, directories offering BRIDGE_DIRINFO and some other
19883       flag (i.e. microdescriptors or extrainfo) would be ignored when
19884       looking for bridges. Partially fixes bug 13163; bugfix
19885       on 0.2.0.7-alpha.
19887   o Minor bugfixes (networking):
19888     - Check for orconns and use connection_or_close_for_error() rather
19889       than connection_mark_for_close() directly in the getsockopt()
19890       failure case of connection_handle_write_impl(). Fixes bug 11302;
19891       bugfix on 0.2.4.4-alpha.
19893   o Minor bugfixes (relay):
19894     - When generating our family list, remove spaces from around the
19895       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
19896     - If our previous bandwidth estimate was 0 bytes, allow publishing a
19897       new relay descriptor immediately. Fixes bug 13000; bugfix
19898       on 0.1.1.6-alpha.
19900   o Minor bugfixes (testing networks):
19901     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
19902       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
19903     - Stop using the default authorities in networks which provide both
19904       AlternateDirAuthority and AlternateBridgeAuthority. Partially
19905       fixes bug 13163; bugfix on 0.2.0.13-alpha.
19907   o Minor bugfixes (testing):
19908     - Stop spawn test failures due to a race condition between the
19909       SIGCHLD handler updating the process status, and the test reading
19910       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
19912   o Minor bugfixes (testing, Windows):
19913     - Avoid passing an extra backslash when creating a temporary
19914       directory for running the unit tests on Windows. Fixes bug 12392;
19915       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
19917   o Minor bugfixes (windows):
19918     - Remove code to special-case handling of NTE_BAD_KEYSET when
19919       acquiring windows CryptoAPI context. This error can't actually
19920       occur for the parameters we're providing. Fixes bug 10816; bugfix
19921       on 0.0.2pre26.
19923   o Minor bugfixes (zlib):
19924     - Avoid truncating a zlib stream when trying to finalize it with an
19925       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
19927   o Build fixes:
19928     - Allow our configure script to build correctly with autoconf 2.62
19929       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
19930     - Improve the error message from ./configure to make it clear that
19931       when asciidoc has not been found, the user will have to either add
19932       --disable-asciidoc argument or install asciidoc. Resolves
19933       ticket 13228.
19935   o Code simplification and refactoring:
19936     - Change the entry_is_live() function to take named bitfield
19937       elements instead of an unnamed list of booleans. Closes
19938       ticket 12202.
19939     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
19940       Resolves ticket 12205.
19941     - Use calloc and reallocarray functions instead of multiply-
19942       then-malloc. This makes it less likely for us to fall victim to an
19943       integer overflow attack when allocating. Resolves ticket 12855.
19944     - Use the standard macro name SIZE_MAX, instead of our
19945       own SIZE_T_MAX.
19946     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
19947       functions which take them as arguments. Replace 0 with NO_DIRINFO
19948       in a function call for clarity. Seeks to prevent future issues
19949       like 13163.
19950     - Avoid 4 null pointer errors under clang static analysis by using
19951       tor_assert() to prove that the pointers aren't null. Fixes
19952       bug 13284.
19953     - Rework the API of policies_parse_exit_policy() to use a bitmask to
19954       represent parsing options, instead of a confusing mess of
19955       booleans. Resolves ticket 8197.
19956     - Introduce a helper function to parse ExitPolicy in
19957       or_options_t structure.
19959   o Documentation:
19960     - Add a doc/TUNING document with tips for handling large numbers of
19961       TCP connections when running busy Tor relay. Update the warning
19962       message to point to this file when running out of sockets
19963       operating system is allowing to use simultaneously. Resolves
19964       ticket 9708.
19966   o Removed features:
19967     - We no longer remind the user about configuration options that have
19968       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
19969     - Remove our old, non-weighted bandwidth-based node selection code.
19970       Previously, we used it as a fallback when we couldn't perform
19971       weighted bandwidth-based node selection. But that would only
19972       happen in the cases where we had no consensus, or when we had a
19973       consensus generated by buggy or ancient directory authorities. In
19974       either case, it's better to use the more modern, better maintained
19975       algorithm, with reasonable defaults for the weights. Closes
19976       ticket 13126.
19977     - Remove the --disable-curve25519 configure option. Relays and
19978       clients now are required to support curve25519 and the
19979       ntor handshake.
19980     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
19981       used to be deprecated synonyms for "StrictNodes", are now marked
19982       obsolete. Resolves ticket 12226.
19983     - Clients don't understand the BadDirectory flag in the consensus
19984       anymore, and ignore it.
19986   o Testing:
19987     - Refactor the function that chooses guard nodes so that it can more
19988       easily be tested; write some tests for it.
19989     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
19990       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
19991     - Create unit tests for format_time_interval(). With bug 13393.
19992     - Add unit tests for tor_timegm signed overflow, tor_timegm and
19993       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
19994       tests (visible) fixes in bug 13476.
19995     - Add a "coverage-html" make target to generate HTML-visualized
19996       coverage results when building with --enable-coverage. (Requires
19997       lcov.) Patch from Kevin Murray.
19998     - Enable the backtrace handler (where supported) when running the
19999       unit tests.
20000     - Revise all unit tests that used the legacy test_* macros to
20001       instead use the recommended tt_* macros. This patch was generated
20002       with coccinelle, to avoid manual errors. Closes ticket 13119.
20004   o Distribution (systemd):
20005     - systemd unit file: only allow tor to write to /var/lib/tor and
20006       /var/log/tor. The rest of the filesystem is accessible for reading
20007       only. Patch by intrigeri; resolves ticket 12751.
20008     - systemd unit file: ensure that the process and all its children
20009       can never gain new privileges. Patch by intrigeri; resolves
20010       ticket 12939.
20011     - systemd unit file: set up /var/run/tor as writable for the Tor
20012       service. Patch by intrigeri; resolves ticket 13196.
20014   o Removed features (directory authorities):
20015     - Remove code that prevented authorities from listing Tor relays
20016       affected by CVE-2011-2769 as guards. These relays are already
20017       rejected altogether due to the minimum version requirement of
20018       0.2.3.16-alpha. Closes ticket 13152.
20019     - The "AuthDirRejectUnlisted" option no longer has any effect, as
20020       the fingerprints file (approved-routers) has been deprecated.
20021     - Directory authorities do not support being Naming dirauths anymore.
20022       The "NamingAuthoritativeDir" config option is now obsolete.
20023     - Directory authorities do not support giving out the BadDirectory
20024       flag anymore.
20025     - Directory authorities no longer advertise or support consensus
20026       methods 1 through 12 inclusive. These consensus methods were
20027       obsolete and/or insecure: maintaining the ability to support them
20028       served no good purpose. Implements part of proposal 215; closes
20029       ticket 10163.
20031   o Testing (test-network.sh):
20032     - Stop using "echo -n", as some shells' built-in echo doesn't
20033       support "-n". Instead, use "/bin/echo -n". Partially fixes
20034       bug 13161.
20035     - Stop an apparent test-network hang when used with make -j2. Fixes
20036       bug 13331.
20037     - Add a --delay option to test-network.sh, which configures the
20038       delay before the chutney network tests for data transmission.
20039       Partially implements ticket 13161.
20042 Changes in version 0.2.5.10 - 2014-10-24
20043   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
20045   It adds several new security features, including improved
20046   denial-of-service resistance for relays, new compiler hardening
20047   options, and a system-call sandbox for hardened installations on Linux
20048   (requires seccomp2). The controller protocol has several new features,
20049   resolving IPv6 addresses should work better than before, and relays
20050   should be a little more CPU-efficient. We've added support for more
20051   OpenBSD and FreeBSD transparent proxy types. We've improved the build
20052   system and testing infrastructure to allow unit testing of more parts
20053   of the Tor codebase. Finally, we've addressed several nagging pluggable
20054   transport usability issues, and included numerous other small bugfixes
20055   and features mentioned below.
20057   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
20058   have accumulated many known flaws; everyone should upgrade.
20060   o Deprecated versions:
20061     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
20062       attention for some while.
20065 Changes in version 0.2.5.9-rc - 2014-10-20
20066   Tor 0.2.5.9-rc is the third release candidate for the Tor 0.2.5.x
20067   series. It disables SSL3 in response to the recent "POODLE" attack
20068   (even though POODLE does not affect Tor). It also works around a crash
20069   bug caused by some operating systems' response to the "POODLE" attack
20070   (which does affect Tor). It also contains a few miscellaneous fixes.
20072   o Major security fixes:
20073     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
20074       today support TLS 1.0 or later, so we can safely turn off support
20075       for this old (and insecure) protocol. Fixes bug 13426.
20077   o Major bugfixes (openssl bug workaround):
20078     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
20079       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
20080       13471. This is a workaround for an OpenSSL bug.
20082   o Minor bugfixes:
20083     - Disable the sandbox name resolver cache when running tor-resolve:
20084       tor-resolve doesn't use the sandbox code, and turning it on was
20085       breaking attempts to do tor-resolve on a non-default server on
20086       Linux. Fixes bug 13295; bugfix on 0.2.5.3-alpha.
20088   o Compilation fixes:
20089     - Build and run correctly on systems like OpenBSD-current that have
20090       patched OpenSSL to remove get_cipher_by_char and/or its
20091       implementations. Fixes issue 13325.
20093   o Downgraded warnings:
20094     - Downgrade the severity of the 'unexpected sendme cell from client'
20095       from 'warn' to 'protocol warning'. Closes ticket 8093.
20098 Changes in version 0.2.4.25 - 2014-10-20
20099   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
20100   (even though POODLE does not affect Tor). It also works around a crash
20101   bug caused by some operating systems' response to the "POODLE" attack
20102   (which does affect Tor).
20104   o Major security fixes (also in 0.2.5.9-rc):
20105     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
20106       today support TLS 1.0 or later, so we can safely turn off support
20107       for this old (and insecure) protocol. Fixes bug 13426.
20109   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
20110     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
20111       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
20112       13471. This is a workaround for an OpenSSL bug.
20115 Changes in version 0.2.5.8-rc - 2014-09-22
20116   Tor 0.2.5.8-rc is the second release candidate for the Tor 0.2.5.x
20117   series. It fixes a bug that affects consistency and speed when
20118   connecting to hidden services, and it updates the location of one of
20119   the directory authorities.
20121   o Major bugfixes:
20122     - Clients now send the correct address for their chosen rendezvous
20123       point when trying to access a hidden service. They used to send
20124       the wrong address, which would still work some of the time because
20125       they also sent the identity digest of the rendezvous point, and if
20126       the hidden service happened to try connecting to the rendezvous
20127       point from a relay that already had a connection open to it,
20128       the relay would reuse that connection. Now connections to hidden
20129       services should be more robust and faster. Also, this bug meant
20130       that clients were leaking to the hidden service whether they were
20131       on a little-endian (common) or big-endian (rare) system, which for
20132       some users might have reduced their anonymity. Fixes bug 13151;
20133       bugfix on 0.2.1.5-alpha.
20135   o Directory authority changes:
20136     - Change IP address for gabelmoo (v3 directory authority).
20139 Changes in version 0.2.4.24 - 2014-09-22
20140   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
20141   connecting to hidden services, and it updates the location of one of
20142   the directory authorities.
20144   o Major bugfixes:
20145     - Clients now send the correct address for their chosen rendezvous
20146       point when trying to access a hidden service. They used to send
20147       the wrong address, which would still work some of the time because
20148       they also sent the identity digest of the rendezvous point, and if
20149       the hidden service happened to try connecting to the rendezvous
20150       point from a relay that already had a connection open to it,
20151       the relay would reuse that connection. Now connections to hidden
20152       services should be more robust and faster. Also, this bug meant
20153       that clients were leaking to the hidden service whether they were
20154       on a little-endian (common) or big-endian (rare) system, which for
20155       some users might have reduced their anonymity. Fixes bug 13151;
20156       bugfix on 0.2.1.5-alpha.
20158   o Directory authority changes:
20159     - Change IP address for gabelmoo (v3 directory authority).
20161   o Minor features (geoip):
20162     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
20163       Country database.
20166 Changes in version 0.2.5.7-rc - 2014-09-11
20167   Tor 0.2.5.7-rc fixes several regressions from earlier in the 0.2.5.x
20168   release series, and some long-standing bugs related to ORPort reachability
20169   testing and failure to send CREATE cells. It is the first release
20170   candidate for the Tor 0.2.5.x series.
20172   o Major bugfixes (client, startup):
20173     - Start making circuits as soon as DisabledNetwork is turned off.
20174       When Tor started with DisabledNetwork set, it would correctly
20175       conclude that it shouldn't build circuits, but it would mistakenly
20176       cache this conclusion, and continue believing it even when
20177       DisableNetwork is set to 0. Fixes the bug introduced by the fix
20178       for bug 11200; bugfix on 0.2.5.4-alpha.
20179     - Resume expanding abbreviations for command-line options. The fix
20180       for bug 4647 accidentally removed our hack from bug 586 that
20181       rewrote HashedControlPassword to __HashedControlSessionPassword
20182       when it appears on the commandline (which allowed the user to set
20183       her own HashedControlPassword in the torrc file while the
20184       controller generates a fresh session password for each run). Fixes
20185       bug 12948; bugfix on 0.2.5.1-alpha.
20186     - Warn about attempts to run hidden services and relays in the same
20187       process: that's probably not a good idea. Closes ticket 12908.
20189   o Major bugfixes (relay):
20190     - Avoid queuing or sending destroy cells for circuit ID zero when we
20191       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
20192       Found and fixed by "cypherpunks".
20193     - Fix ORPort reachability detection on relays running behind a
20194       proxy, by correctly updating the "local" mark on the controlling
20195       channel when changing the address of an or_connection_t after the
20196       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
20198   o Minor features (bridge):
20199     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
20200       cookie file for the ExtORPort g+r by default.
20202   o Minor features (geoip):
20203     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
20204       Country database.
20206   o Minor bugfixes (logging):
20207     - Reduce the log severity of the "Pluggable transport proxy does not
20208       provide any needed transports and will not be launched." message,
20209       since Tor Browser includes several ClientTransportPlugin lines in
20210       its torrc-defaults file, leading every Tor Browser user who looks
20211       at her logs to see these notices and wonder if they're dangerous.
20212       Resolves bug 13124; bugfix on 0.2.5.3-alpha.
20213     - Downgrade "Unexpected onionskin length after decryption" warning
20214       to a protocol-warn, since there's nothing relay operators can do
20215       about a client that sends them a malformed create cell. Resolves
20216       bug 12996; bugfix on 0.0.6rc1.
20217     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
20218       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
20219     - When logging information about an EXTEND2 or EXTENDED2 cell, log
20220       their names correctly. Fixes part of bug 12700; bugfix
20221       on 0.2.4.8-alpha.
20222     - When logging information about a relay cell whose command we don't
20223       recognize, log its command as an integer. Fixes part of bug 12700;
20224       bugfix on 0.2.1.10-alpha.
20225     - Escape all strings from the directory connection before logging
20226       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
20228   o Minor bugfixes (controller):
20229     - Restore the functionality of CookieAuthFileGroupReadable. Fixes
20230       bug 12864; bugfix on 0.2.5.1-alpha.
20231     - Actually send TRANSPORT_LAUNCHED and HS_DESC events to
20232       controllers. Fixes bug 13085; bugfix on 0.2.5.1-alpha. Patch
20233       by "teor".
20235   o Minor bugfixes (compilation):
20236     - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
20237       bugfix on 0.2.5.5-alpha.
20238     - Make the nmake make files work again. Fixes bug 13081. Bugfix on
20239       0.2.5.1-alpha. Patch from "NewEraCracker".
20240     - In routerlist_assert_ok(), don't take the address of a
20241       routerinfo's cache_info member unless that routerinfo is non-NULL.
20242       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
20243     - Fix a large number of false positive warnings from the clang
20244       analyzer static analysis tool. This should make real warnings
20245       easier for clang analyzer to find. Patch from "teor". Closes
20246       ticket 13036.
20248   o Distribution (systemd):
20249     - Verify configuration file via ExecStartPre in the systemd unit
20250       file. Patch from intrigeri; resolves ticket 12730.
20251     - Explicitly disable RunAsDaemon in the systemd unit file. Our
20252       current systemd unit uses "Type = simple", so systemd does not
20253       expect tor to fork. If the user has "RunAsDaemon 1" in their
20254       torrc, then things won't work as expected. This is e.g. the case
20255       on Debian (and derivatives), since there we pass "--defaults-torrc
20256       /usr/share/tor/tor-service-defaults-torrc" (that contains
20257       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
20258       ticket 12731.
20260   o Documentation:
20261     - Adjust the URLs in the README to refer to the new locations of
20262       several documents on the website. Fixes bug 12830. Patch from
20263       Matt Pagan.
20264     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
20265       ticket 12878.
20268 Changes in version 0.2.5.6-alpha - 2014-07-28
20269   Tor 0.2.5.6-alpha brings us a big step closer to slowing down the
20270   risk from guard rotation, and fixes a variety of other issues to get
20271   us closer to a release candidate.
20273   o Major features (also in 0.2.4.23):
20274     - Make the number of entry guards configurable via a new
20275       NumEntryGuards consensus parameter, and the number of directory
20276       guards configurable via a new NumDirectoryGuards consensus
20277       parameter. Implements ticket 12688.
20279   o Major bugfixes (also in 0.2.4.23):
20280     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
20281       implementation that caused incorrect results on 32-bit
20282       implementations when certain malformed inputs were used along with
20283       a small class of private ntor keys. This bug does not currently
20284       appear to allow an attacker to learn private keys or impersonate a
20285       Tor server, but it could provide a means to distinguish 32-bit Tor
20286       implementations from 64-bit Tor implementations. Fixes bug 12694;
20287       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
20288       Adam Langley.
20290   o Major bugfixes:
20291     - Perform circuit cleanup operations even when circuit
20292       construction operations are disabled (because the network is
20293       disabled, or because there isn't enough directory information).
20294       Previously, when we were not building predictive circuits, we
20295       were not closing expired circuits either. Fixes bug 8387; bugfix on
20296       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
20297       became more strict about when we have "enough directory information
20298       to build circuits".
20300   o Minor features:
20301     - Authorities now assign the Guard flag to the fastest 25% of the
20302       network (it used to be the fastest 50%). Also raise the consensus
20303       weight that guarantees the Guard flag from 250 to 2000. For the
20304       current network, this results in about 1100 guards, down from 2500.
20305       This step paves the way for moving the number of entry guards
20306       down to 1 (proposal 236) while still providing reasonable expected
20307       performance for most users. Implements ticket 12690.
20308     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
20309       Country database.
20310     - Slightly enhance the diagnostic message for bug 12184.
20312   o Minor bugfixes (also in 0.2.4.23):
20313     - Warn and drop the circuit if we receive an inbound 'relay early'
20314       cell. Those used to be normal to receive on hidden service circuits
20315       due to bug 1038, but the buggy Tor versions are long gone from
20316       the network so we can afford to resume watching for them. Resolves
20317       the rest of bug 1038; bugfix on 0.2.1.19.
20318     - Correct a confusing error message when trying to extend a circuit
20319       via the control protocol but we don't know a descriptor or
20320       microdescriptor for one of the specified relays. Fixes bug 12718;
20321       bugfix on 0.2.3.1-alpha.
20323   o Minor bugfixes:
20324     - Fix compilation when building with bufferevents enabled. (This
20325       configuration is still not expected to work, however.)
20326       Fixes bugs 12438, 12474, 11578; bugfixes on 0.2.5.1-alpha and
20327       0.2.5.3-alpha. Patches from Anthony G. Basile and Sathyanarayanan
20328       Gunasekaran.
20329     - Compile correctly with builds and forks of OpenSSL (such as
20330       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
20331       0.2.1.1-alpha. Patch from "dhill".
20334 Changes in version 0.2.4.23 - 2014-07-28
20335   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
20336   guard rotation, and also backports several important fixes from the
20337   Tor 0.2.5 alpha release series.
20339   o Major features:
20340     - Clients now look at the "usecreatefast" consensus parameter to
20341       decide whether to use CREATE_FAST or CREATE cells for the first hop
20342       of their circuit. This approach can improve security on connections
20343       where Tor's circuit handshake is stronger than the available TLS
20344       connection security levels, but the tradeoff is more computational
20345       load on guard relays. Implements proposal 221. Resolves ticket 9386.
20346     - Make the number of entry guards configurable via a new
20347       NumEntryGuards consensus parameter, and the number of directory
20348       guards configurable via a new NumDirectoryGuards consensus
20349       parameter. Implements ticket 12688.
20351   o Major bugfixes:
20352     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
20353       implementation that caused incorrect results on 32-bit
20354       implementations when certain malformed inputs were used along with
20355       a small class of private ntor keys. This bug does not currently
20356       appear to allow an attacker to learn private keys or impersonate a
20357       Tor server, but it could provide a means to distinguish 32-bit Tor
20358       implementations from 64-bit Tor implementations. Fixes bug 12694;
20359       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
20360       Adam Langley.
20362   o Minor bugfixes:
20363     - Warn and drop the circuit if we receive an inbound 'relay early'
20364       cell. Those used to be normal to receive on hidden service circuits
20365       due to bug 1038, but the buggy Tor versions are long gone from
20366       the network so we can afford to resume watching for them. Resolves
20367       the rest of bug 1038; bugfix on 0.2.1.19.
20368     - Correct a confusing error message when trying to extend a circuit
20369       via the control protocol but we don't know a descriptor or
20370       microdescriptor for one of the specified relays. Fixes bug 12718;
20371       bugfix on 0.2.3.1-alpha.
20372     - Avoid an illegal read from stack when initializing the TLS
20373       module using a version of OpenSSL without all of the ciphers
20374       used by the v2 link handshake. Fixes bug 12227; bugfix on
20375       0.2.4.8-alpha.  Found by "starlight".
20377   o Minor features:
20378     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
20379       Country database.
20382 Changes in version 0.2.5.5-alpha - 2014-06-18
20383   Tor 0.2.5.5-alpha fixes a wide variety of remaining issues in the Tor
20384   0.2.5.x release series, including a couple of DoS issues, some
20385   performance regressions, a large number of bugs affecting the Linux
20386   seccomp2 sandbox code, and various other bugfixes. It also adds
20387   diagnostic bugfixes for a few tricky issues that we're trying to
20388   track down.
20390   o Major features (security, traffic analysis resistance):
20391     - Several major improvements to the algorithm used to decide when to
20392       close TLS connections. Previous versions of Tor closed connections
20393       at a fixed interval after the last time a non-padding cell was
20394       sent over the connection, regardless of the target of the
20395       connection. Now, we randomize the intervals by adding up to 50% of
20396       their base value, we measure the length of time since connection
20397       last had at least one circuit, and we allow connections to known
20398       ORs to remain open a little longer (15 minutes instead of 3
20399       minutes minimum). These changes should improve Tor's resistance
20400       against some kinds of traffic analysis, and lower some overhead
20401       from needlessly closed connections. Fixes ticket 6799.
20402       Incidentally fixes ticket 12023; bugfix on 0.2.5.1-alpha.
20404   o Major bugfixes (security, OOM, new since 0.2.5.4-alpha, also in 0.2.4.22):
20405     - Fix a memory leak that could occur if a microdescriptor parse
20406       fails during the tokenizing step. This bug could enable a memory
20407       exhaustion attack by directory servers. Fixes bug 11649; bugfix
20408       on 0.2.2.6-alpha.
20410   o Major bugfixes (security, directory authorities):
20411     - Directory authorities now include a digest of each relay's
20412       identity key as a part of its microdescriptor.
20414       This is a workaround for bug 11743 (reported by "cypherpunks"),
20415       where Tor clients do not support receiving multiple
20416       microdescriptors with the same SHA256 digest in the same
20417       consensus. When clients receive a consensus like this, they only
20418       use one of the relays. Without this fix, a hostile relay could
20419       selectively disable some client use of target relays by
20420       constructing a router descriptor with a different identity and the
20421       same microdescriptor parameters and getting the authorities to
20422       list it in a microdescriptor consensus. This fix prevents an
20423       attacker from causing a microdescriptor collision, because the
20424       router's identity is not forgeable.
20426   o Major bugfixes (relay):
20427     - Use a direct dirport connection when uploading non-anonymous
20428       descriptors to the directory authorities. Previously, relays would
20429       incorrectly use tunnel connections under a fairly wide variety of
20430       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
20431     - When a circuit accidentally has the same circuit ID for its
20432       forward and reverse direction, correctly detect the direction of
20433       cells using that circuit. Previously, this bug made roughly one
20434       circuit in a million non-functional. Fixes bug 12195; this is a
20435       bugfix on every version of Tor.
20437   o Major bugfixes (client, pluggable transports):
20438     - When managing pluggable transports, use OS notification facilities
20439       to learn if they have crashed, and don't attempt to kill any
20440       process that has already exited. Fixes bug 8746; bugfix
20441       on 0.2.3.6-alpha.
20443   o Minor features (diagnostic):
20444     - When logging a warning because of bug 7164, additionally check the
20445       hash table for consistency (as proposed on ticket 11737). This may
20446       help diagnose bug 7164.
20447     - When we log a heartbeat, log how many one-hop circuits we have
20448       that are at least 30 minutes old, and log status information about
20449       a few of them. This is an attempt to track down bug 8387.
20450     - When encountering an unexpected CR while writing text to a file on
20451       Windows, log the name of the file. Should help diagnosing
20452       bug 11233.
20453     - Give more specific warnings when a client notices that an onion
20454       handshake has failed. Fixes ticket 9635.
20455     - Add significant new logging code to attempt to diagnose bug 12184,
20456       where relays seem to run out of available circuit IDs.
20457     - Improve the diagnostic log message for bug 8387 even further to
20458       try to improve our odds of figuring out why one-hop directory
20459       circuits sometimes do not get closed.
20461   o Minor features (security, memory management):
20462     - Memory allocation tricks (mempools and buffer freelists) are now
20463       disabled by default. You can turn them back on with
20464       --enable-mempools and --enable-buf-freelists respectively. We're
20465       disabling these features because malloc performance is good enough
20466       on most platforms, and a similar feature in OpenSSL exacerbated
20467       exploitation of the Heartbleed attack. Resolves ticket 11476.
20469   o Minor features (security):
20470     - Apply the secure SipHash-2-4 function to the hash table mapping
20471       circuit IDs and channels to circuits. We missed this one when we
20472       were converting all the other hash functions to use SipHash back
20473       in 0.2.5.3-alpha. Resolves ticket 11750.
20475   o Minor features (build):
20476     - The configure script has a --disable-seccomp option to turn off
20477       support for libseccomp on systems that have it, in case it (or
20478       Tor's use of it) is broken. Resolves ticket 11628.
20480   o Minor features (other):
20481     - Update geoip and geoip6 to the June 4 2014 Maxmind GeoLite2
20482       Country database.
20484   o Minor bugfixes (security, new since 0.2.5.4-alpha, also in 0.2.4.22):
20485     - When running a hidden service, do not allow TunneledDirConns 0;
20486       this will keep the hidden service from running, and also
20487       make it publish its descriptors directly over HTTP. Fixes bug 10849;
20488       bugfix on 0.2.1.1-alpha.
20490   o Minor bugfixes (performance):
20491     - Avoid a bug where every successful connection made us recompute
20492       the flag telling us whether we have sufficient information to
20493       build circuits. Previously, we would forget our cached value
20494       whenever we successfully opened a channel (or marked a router as
20495       running or not running for any other reason), regardless of
20496       whether we had previously believed the router to be running. This
20497       forced us to run an expensive update operation far too often.
20498       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
20499     - Avoid using tor_memeq() for checking relay cell integrity. This
20500       removes a possible performance bottleneck. Fixes part of bug
20501       12169; bugfix on 0.2.1.31.
20503   o Minor bugfixes (compilation):
20504     - Fix compilation of test_status.c when building with MVSC. Bugfix
20505       on 0.2.5.4-alpha. Patch from Gisle Vanem.
20506     - Resolve GCC complaints on OpenBSD about discarding constness in
20507       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
20508       on 0.1.1.23. Patch from Dana Koch.
20509     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
20510       treatment of long and time_t as comparable types. Fixes part of
20511       bug 11633. Patch from Dana Koch.
20512     - Make Tor compile correctly with --disable-buf-freelists. Fixes bug
20513       11623; bugfix on 0.2.5.3-alpha.
20514     - When deciding whether to build the 64-bit curve25519
20515       implementation, detect platforms where we can compile 128-bit
20516       arithmetic but cannot link it. Fixes bug 11729; bugfix on
20517       0.2.4.8-alpha. Patch from "conradev".
20518     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
20519       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
20520     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
20521       on 0.2.4.10-alpha.
20523   o Minor bugfixes (Directory server):
20524     - When sending a compressed set of descriptors or microdescriptors,
20525       make sure to finalize the zlib stream. Previously, we would write
20526       all the compressed data, but if the last descriptor we wanted to
20527       send was missing or too old, we would not mark the stream as
20528       finished. This caused problems for decompression tools. Fixes bug
20529       11648; bugfix on 0.1.1.23.
20531   o Minor bugfixes (Linux seccomp sandbox):
20532     - Make the seccomp sandbox code compile under ARM Linux. Fixes bug
20533       11622; bugfix on 0.2.5.1-alpha.
20534     - Avoid crashing when re-opening listener ports with the seccomp
20535       sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
20536     - Avoid crashing with the seccomp sandbox enabled along with
20537       ConstrainedSockets. Fixes bug 12139; bugfix on 0.2.5.1-alpha.
20538     - When we receive a SIGHUP with the sandbox enabled, correctly
20539       support rotating our log files. Fixes bug 12032; bugfix
20540       on 0.2.5.1-alpha.
20541     - Avoid crash when running with sandboxing enabled and
20542       DirReqStatistics not disabled. Fixes bug 12035; bugfix
20543       on 0.2.5.1-alpha.
20544     - Fix a "BUG" warning when trying to write bridge-stats files with
20545       the Linux syscall sandbox filter enabled. Fixes bug 12041; bugfix
20546       on 0.2.5.1-alpha.
20547     - Prevent the sandbox from crashing on startup when run with the
20548       --enable-expensive-hardening configuration option. Fixes bug
20549       11477; bugfix on 0.2.5.4-alpha.
20550     - When running with DirPortFrontPage and sandboxing both enabled,
20551       reload the DirPortFrontPage correctly when restarting. Fixes bug
20552       12028; bugfix on 0.2.5.1-alpha.
20553     - Don't try to enable the sandbox when using the Tor binary to check
20554       its configuration, hash a passphrase, or so on. Doing so was
20555       crashing on startup for some users. Fixes bug 11609; bugfix
20556       on 0.2.5.1-alpha.
20557     - Avoid warnings when running with sandboxing and node statistics
20558       enabled at the same time. Fixes part of 12064; bugfix on
20559       0.2.5.1-alpha. Patch from Michael Wolf.
20560     - Avoid warnings when running with sandboxing enabled at the same
20561       time as cookie authentication, hidden services, or directory
20562       authority voting. Fixes part of 12064; bugfix on 0.2.5.1-alpha.
20563     - Do not allow options that require calls to exec to be enabled
20564       alongside the seccomp2 sandbox: they will inevitably crash. Fixes
20565       bug 12043; bugfix on 0.2.5.1-alpha.
20566     - Handle failures in getpwnam()/getpwuid() when running with the
20567       User option set and the Linux syscall sandbox enabled. Fixes bug
20568       11946; bugfix on 0.2.5.1-alpha.
20569     - Refactor the getaddrinfo workaround that the seccomp sandbox uses
20570       to avoid calling getaddrinfo() after installing the sandbox
20571       filters. Previously, it preloaded a cache with the IPv4 address
20572       for our hostname, and nothing else. Now, it loads the cache with
20573       every address that it used to initialize the Tor process. Fixes
20574       bug 11970; bugfix on 0.2.5.1-alpha.
20576   o Minor bugfixes (pluggable transports):
20577     - Enable the ExtORPortCookieAuthFile option, to allow changing the
20578       default location of the authentication token for the extended OR
20579       Port as used by sever-side pluggable transports. We had
20580       implemented this option before, but the code to make it settable
20581       had been omitted. Fixes bug 11635; bugfix on 0.2.5.1-alpha.
20582     - Avoid another 60-second delay when starting Tor in a pluggable-
20583       transport-using configuration when we already have cached
20584       descriptors for our bridges. Fixes bug 11965; bugfix
20585       on 0.2.3.6-alpha.
20587   o Minor bugfixes (client):
20588     - Avoid "Tried to open a socket with DisableNetwork set" warnings
20589       when starting a client with bridges configured and DisableNetwork
20590       set. (Tor launcher starts Tor with DisableNetwork set the first
20591       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
20593   o Minor bugfixes (testing):
20594     - The Python parts of the test scripts now work on Python 3 as well
20595       as Python 2, so systems where '/usr/bin/python' is Python 3 will
20596       no longer have the tests break. Fixes bug 11608; bugfix
20597       on 0.2.5.2-alpha.
20598     - When looking for versions of python that we could run the tests
20599       with, check for "python2.7" and "python3.3"; previously we were
20600       only looking for "python", "python2", and "python3". Patch from
20601       Dana Koch. Fixes bug 11632; bugfix on 0.2.5.2-alpha.
20602     - Fix all valgrind warnings produced by the unit tests. There were
20603       over a thousand memory leak warnings previously, mostly produced
20604       by forgetting to free things in the unit test code. Fixes bug
20605       11618, bugfixes on many versions of Tor.
20607   o Minor bugfixes (tor-fw-helper):
20608     - Give a correct log message when tor-fw-helper fails to launch.
20609       (Previously, we would say something like "tor-fw-helper sent us a
20610       string we could not parse".) Fixes bug 9781; bugfix
20611       on 0.2.4.2-alpha.
20613   o Minor bugfixes (relay, threading):
20614     - Check return code on spawn_func() in cpuworker code, so that we
20615       don't think we've spawned a nonworking cpuworker and write junk to
20616       it forever. Fix related to bug 4345; bugfix on all released Tor
20617       versions. Found by "skruffy".
20618     - Use a pthread_attr to make sure that spawn_func() cannot return an
20619       error while at the same time launching a thread. Fix related to
20620       bug 4345; bugfix on all released Tor versions. Reported
20621       by "cypherpunks".
20623   o Minor bugfixes (relay, oom prevention):
20624     - Correctly detect the total available system memory. We tried to do
20625       this in 0.2.5.4-alpha, but the code was set up to always return an
20626       error value, even on success. Fixes bug 11805; bugfix
20627       on 0.2.5.4-alpha.
20629   o Minor bugfixes (relay, other):
20630     - We now drop CREATE cells for already-existent circuit IDs and for
20631       zero-valued circuit IDs, regardless of other factors that might
20632       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
20633       on 0.0.8pre1.
20634     - Avoid an illegal read from stack when initializing the TLS module
20635       using a version of OpenSSL without all of the ciphers used by the
20636       v2 link handshake. Fixes bug 12227; bugfix on 0.2.4.8-alpha. Found
20637       by "starlight".
20638     - When rejecting DATA cells for stream_id zero, still count them
20639       against the circuit's deliver window so that we don't fail to send
20640       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
20642   o Minor bugfixes (logging):
20643     - Fix a misformatted log message about delayed directory fetches.
20644       Fixes bug 11654; bugfix on 0.2.5.3-alpha.
20645     - Squelch a spurious LD_BUG message "No origin circuit for
20646       successful SOCKS stream" in certain hidden service failure cases;
20647       fixes bug 10616.
20649   o Distribution:
20650     - Include a tor.service file in contrib/dist for use with systemd.
20651       Some distributions will be able to use this file unmodified;
20652       others will need to tweak it, or write their own. Patch from Jamie
20653       Nguyen; resolves ticket 8368.
20655   o Documentation:
20656     - Clean up several option names in the manpage to match their real
20657       names, add the missing documentation for a couple of testing and
20658       directory authority options, remove the documentation for a
20659       V2-directory fetching option that no longer exists. Resolves
20660       ticket 11634.
20661     - Correct the documentation so that it lists the correct directory
20662       for the stats files. (They are in a subdirectory called "stats",
20663       not "status".)
20664     - In the manpage, move more authority-only options into the
20665       directory authority section so that operators of regular directory
20666       caches don't get confused.
20668   o Package cleanup:
20669     - The contrib directory has been sorted and tidied. Before, it was
20670       an unsorted dumping ground for useful and not-so-useful things.
20671       Now, it is divided based on functionality, and the items which
20672       seemed to be nonfunctional or useless have been removed. Resolves
20673       ticket 8966; based on patches from "rl1987".
20675   o Removed code:
20676     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
20677       and MTBF calculations, but that nobody was using. Fixes ticket 11742.
20678     - The TunnelDirConns and PreferTunnelledDirConns options no longer
20679       exist; tunneled directory connections have been available since
20680       0.1.2.5-alpha, and turning them off is not a good idea. This is a
20681       brute-force fix for 10849, where "TunnelDirConns 0" would break
20682       hidden services.
20685 Changes in version 0.2.4.22 - 2014-05-16
20686   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
20687   alpha release series. These include blocking all authority signing
20688   keys that may have been affected by the OpenSSL "heartbleed" bug,
20689   choosing a far more secure set of TLS ciphersuites by default, closing
20690   a couple of memory leaks that could be used to run a target relay out
20691   of RAM, and several others.
20693   o Major features (security, backport from 0.2.5.4-alpha):
20694     - Block authority signing keys that were used on authorities
20695       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
20696       don't have any evidence that these keys _were_ compromised; we're
20697       doing this to be prudent.) Resolves ticket 11464.
20699   o Major bugfixes (security, OOM):
20700     - Fix a memory leak that could occur if a microdescriptor parse
20701       fails during the tokenizing step. This bug could enable a memory
20702       exhaustion attack by directory servers. Fixes bug 11649; bugfix
20703       on 0.2.2.6-alpha.
20705   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
20706     - The relay ciphersuite list is now generated automatically based on
20707       uniform criteria, and includes all OpenSSL ciphersuites with
20708       acceptable strength and forward secrecy. Previously, we had left
20709       some perfectly fine ciphersuites unsupported due to omission or
20710       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
20711       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
20712     - Relays now trust themselves to have a better view than clients of
20713       which TLS ciphersuites are better than others. (Thanks to bug
20714       11513, the relay list is now well-considered, whereas the client
20715       list has been chosen mainly for anti-fingerprinting purposes.)
20716       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
20717       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
20718       AES128. Resolves ticket 11528.
20719     - Clients now try to advertise the same list of ciphersuites as
20720       Firefox 28. This change enables selection of (fast) GCM
20721       ciphersuites, disables some strange old ciphers, and stops
20722       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
20723       Resolves ticket 11438.
20725   o Minor bugfixes (configuration, security):
20726     - When running a hidden service, do not allow TunneledDirConns 0:
20727       trying to set that option together with a hidden service would
20728       otherwise prevent the hidden service from running, and also make
20729       it publish its descriptors directly over HTTP. Fixes bug 10849;
20730       bugfix on 0.2.1.1-alpha.
20732   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
20733     - Avoid sending a garbage value to the controller when a circuit is
20734       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
20736   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
20737     - Stop leaking memory when we successfully resolve a PTR record.
20738       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
20740   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
20741     - Avoid 60-second delays in the bootstrapping process when Tor is
20742       launching for a second time while using bridges. Fixes bug 9229;
20743       bugfix on 0.2.0.3-alpha.
20745   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
20746     - Give the correct URL in the warning message when trying to run a
20747       relay on an ancient version of Windows. Fixes bug 9393.
20749   o Minor bugfixes (compilation):
20750     - Fix a compilation error when compiling with --disable-curve25519.
20751       Fixes bug 9700; bugfix on 0.2.4.17-rc.
20753   o Minor bugfixes:
20754     - Downgrade the warning severity for the the "md was still
20755       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
20756       for trying to diagnose this bug, and the current warning in
20757       earlier versions of tor achieves nothing useful. Addresses warning
20758       from bug 7164.
20760   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
20761     - When we run out of usable circuit IDs on a channel, log only one
20762       warning for the whole channel, and describe how many circuits
20763       there were on the channel. Fixes part of ticket 11553.
20765   o Minor features (security, backport from 0.2.5.4-alpha):
20766     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
20767       leave the default at 8GBytes), to better support Raspberry Pi
20768       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
20770   o Documentation (backport from 0.2.5.4-alpha):
20771     - Correctly document that we search for a system torrc file before
20772       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
20773       0.2.3.18-rc.
20776 Changes in version 0.2.5.4-alpha - 2014-04-25
20777   Tor 0.2.5.4-alpha includes several security and performance
20778   improvements for clients and relays, including blacklisting authority
20779   signing keys that were used while susceptible to the OpenSSL
20780   "heartbleed" bug, fixing two expensive functions on busy relays,
20781   improved TLS ciphersuite preference lists, support for run-time
20782   hardening on compilers that support AddressSanitizer, and more work on
20783   the Linux sandbox code.
20785   There are also several usability fixes for clients (especially clients
20786   that use bridges), two new TransPort protocols supported (one on
20787   OpenBSD, one on FreeBSD), and various other bugfixes.
20789   This release marks end-of-life for Tor 0.2.2.x; those Tor versions
20790   have accumulated many known flaws; everyone should upgrade.
20792   o Major features (security):
20793     - If you don't specify MaxMemInQueues yourself, Tor now tries to
20794       pick a good value based on your total system memory. Previously,
20795       the default was always 8 GB. You can still override the default by
20796       setting MaxMemInQueues yourself. Resolves ticket 11396.
20797     - Block authority signing keys that were used on authorities
20798       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
20799       don't have any evidence that these keys _were_ compromised; we're
20800       doing this to be prudent.) Resolves ticket 11464.
20802   o Major features (relay performance):
20803     - Speed up server-side lookups of rendezvous and introduction point
20804       circuits by using hashtables instead of linear searches. These
20805       functions previously accounted between 3 and 7% of CPU usage on
20806       some busy relays. Resolves ticket 9841.
20807     - Avoid wasting CPU when extending a circuit over a channel that is
20808       nearly out of circuit IDs. Previously, we would do a linear scan
20809       over possible circuit IDs before finding one or deciding that we
20810       had exhausted our possibilities. Now, we try at most 64 random
20811       circuit IDs before deciding that we probably won't succeed. Fixes
20812       a possible root cause of ticket 11553.
20814   o Major features (seccomp2 sandbox, Linux only):
20815     - The seccomp2 sandbox can now run a test network for multiple hours
20816       without crashing. The sandbox is still experimental, and more bugs
20817       will probably turn up. To try it, enable "Sandbox 1" on a Linux
20818       host. Resolves ticket 11351.
20819     - Strengthen sandbox code: the sandbox can now test the arguments
20820       for rename(), and blocks _sysctl() entirely. Resolves another part
20821       of ticket 11351.
20822     - When the sandbox blocks a system call, it now tries to log a stack
20823       trace before exiting. Resolves ticket 11465.
20825   o Major bugfixes (TLS cipher selection):
20826     - The relay ciphersuite list is now generated automatically based on
20827       uniform criteria, and includes all OpenSSL ciphersuites with
20828       acceptable strength and forward secrecy. Previously, we had left
20829       some perfectly fine ciphersuites unsupported due to omission or
20830       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
20831       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
20832     - Relays now trust themselves to have a better view than clients of
20833       which TLS ciphersuites are better than others. (Thanks to bug
20834       11513, the relay list is now well-considered, whereas the client
20835       list has been chosen mainly for anti-fingerprinting purposes.)
20836       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
20837       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
20838       AES128. Resolves ticket 11528.
20839     - Clients now try to advertise the same list of ciphersuites as
20840       Firefox 28. This change enables selection of (fast) GCM
20841       ciphersuites, disables some strange old ciphers, and stops
20842       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
20843       Resolves ticket 11438.
20845   o Major bugfixes (bridge client):
20846     - Avoid 60-second delays in the bootstrapping process when Tor is
20847       launching for a second time while using bridges. Fixes bug 9229;
20848       bugfix on 0.2.0.3-alpha.
20850   o Minor features (transparent proxy, *BSD):
20851     - Support FreeBSD's ipfw firewall interface for TransPort ports on
20852       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
20853       10267; patch from "yurivict".
20854     - Support OpenBSD's divert-to rules with the pf firewall for
20855       transparent proxy ports. To enable it, set "TransProxyType
20856       pf-divert". This allows Tor to run a TransPort transparent proxy
20857       port on OpenBSD 4.4 or later without root privileges. See the
20858       pf.conf(5) manual page for information on configuring pf to use
20859       divert-to rules. Closes ticket 10896; patch from Dana Koch.
20861   o Minor features (security):
20862     - New --enable-expensive-hardening option to enable security
20863       hardening options that consume nontrivial amounts of CPU and
20864       memory. Right now, this includes AddressSanitizer and UbSan, which
20865       are supported in newer versions of GCC and Clang. Closes ticket
20866       11477.
20868   o Minor features (log verbosity):
20869     - Demote the message that we give when a flushing connection times
20870       out for too long from NOTICE to INFO. It was usually meaningless.
20871       Resolves ticket 5286.
20872     - Don't log so many notice-level bootstrapping messages at startup
20873       about downloading descriptors. Previously, we'd log a notice
20874       whenever we learned about more routers. Now, we only log a notice
20875       at every 5% of progress. Fixes bug 9963.
20876     - Warn less verbosely when receiving a malformed
20877       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
20878     - When we run out of usable circuit IDs on a channel, log only one
20879       warning for the whole channel, and describe how many circuits
20880       there were on the channel. Fixes part of ticket 11553.
20882   o Minor features (relay):
20883     - If a circuit timed out for at least 3 minutes, check if we have a
20884       new external IP address, and publish a new descriptor with the new
20885       IP address if it changed. Resolves ticket 2454.
20887   o Minor features (controller):
20888     - Make the entire exit policy available from the control port via
20889       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
20890       "rl1987".
20891     - Because of the fix for ticket 11396, the real limit for memory
20892       usage may no longer match the configured MaxMemInQueues value. The
20893       real limit is now exposed via GETINFO limits/max-mem-in-queues.
20895   o Minor features (bridge client):
20896     - Report a more useful failure message when we can't connect to a
20897       bridge because we don't have the right pluggable transport
20898       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
20900   o Minor features (diagnostic):
20901     - Add more log messages to diagnose bug 7164, which causes
20902       intermittent "microdesc_free() called but md was still referenced"
20903       warnings. We now include more information, to figure out why we
20904       might be cleaning a microdescriptor for being too old if it's
20905       still referenced by a live node_t object.
20907   o Minor bugfixes (client, DNSPort):
20908     - When using DNSPort, try to respond to AAAA requests with AAAA
20909       answers. Previously, we hadn't looked at the request type when
20910       deciding which answer type to prefer. Fixes bug 10468; bugfix on
20911       0.2.4.7-alpha.
20912     - When receiving a DNS query for an unsupported record type, reply
20913       with no answer rather than with a NOTIMPL error. This behavior
20914       isn't correct either, but it will break fewer client programs, we
20915       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
20916       from "epoch".
20918   o Minor bugfixes (exit relay):
20919     - Stop leaking memory when we successfully resolve a PTR record.
20920       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
20922   o Minor bugfixes (bridge client):
20923     - Stop accepting bridge lines containing hostnames. Doing so would
20924       cause clients to perform DNS requests on the hostnames, which was
20925       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
20926     - Avoid a 60-second delay in the bootstrapping process when a Tor
20927       client with pluggable transports re-reads its configuration at
20928       just the wrong time. Re-fixes bug 11156; bugfix on 0.2.5.3-alpha.
20930   o Minor bugfixes (client, logging during bootstrap):
20931     - Warn only once if we start logging in an unsafe way. Previously,
20932       we complain as many times as we had problems. Fixes bug 9870;
20933       bugfix on 0.2.5.1-alpha.
20934     - Only report the first fatal bootstrap error on a given OR
20935       connection. This stops us from telling the controller bogus error
20936       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
20937     - Be more helpful when trying to run sandboxed on Linux without
20938       libseccomp. Instead of saying "Sandbox is not implemented on this
20939       platform", we now explain that we need to be built with
20940       libseccomp. Fixes bug 11543; bugfix on 0.2.5.1-alpha.
20941     - Avoid generating spurious warnings when starting with
20942       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
20943       0.2.3.9-alpha.
20945   o Minor bugfixes (closing OR connections):
20946     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
20947       check if it's an or_connection_t and correctly call
20948       connection_or_close_for_error() rather than
20949       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
20950       0.2.4.4-alpha.
20951     - When closing all connections on setting DisableNetwork to 1, use
20952       connection_or_close_normally() rather than closing OR connections
20953       out from under the channel layer. Fixes bug 11306; bugfix on
20954       0.2.4.4-alpha.
20956   o Minor bugfixes (controller):
20957     - Avoid sending a garbage value to the controller when a circuit is
20958       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
20960   o Minor bugfixes (tor-fw-helper):
20961     - Allow tor-fw-helper to build again by adding src/ext to its
20962       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
20964   o Minor bugfixes (bridges):
20965     - Avoid potential crashes or bad behavior when launching a
20966       server-side managed proxy with ORPort or ExtORPort temporarily
20967       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
20969   o Minor bugfixes (platform-specific):
20970     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
20971       bug 11426; bugfix on 0.2.5.3-alpha.
20972     - When dumping a malformed directory object to disk, save it in
20973       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
20974       0.2.2.1-alpha.
20975     - Don't report failures from make_socket_reuseable() on incoming
20976       sockets on OSX: this can happen when incoming connections close
20977       early. Fixes bug 10081.
20979   o Minor bugfixes (trivial memory leaks):
20980     - Fix a small memory leak when signing a directory object. Fixes bug
20981       11275; bugfix on 0.2.4.13-alpha.
20982     - Free placeholder entries in our circuit table at exit; fixes a
20983       harmless memory leak. Fixes bug 11278; bugfix on 0.2.5.1-alpha.
20984     - Don't re-initialize a second set of OpenSSL mutexes when starting
20985       up. Previously, we'd make one set of mutexes, and then immediately
20986       replace them with another. Fixes bug 11726; bugfix on
20987       0.2.5.3-alpha.
20988     - Resolve some memory leaks found by coverity in the unit tests, on
20989       exit in tor-gencert, and on a failure to compute digests for our
20990       own keys when generating a v3 networkstatus vote. These leaks
20991       should never have affected anyone in practice.
20993   o Minor bugfixes (hidden service):
20994     - Only retry attempts to connect to a chosen rendezvous point 8
20995       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
20997   o Minor bugfixes (misc code correctness):
20998     - Fix various instances of undefined behavior in channeltls.c,
20999       tor_memmem(), and eventdns.c that would cause us to construct
21000       pointers to memory outside an allocated object. (These invalid
21001       pointers were not accessed, but C does not even allow them to
21002       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
21003       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
21004     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
21005       fix some miscellaneous errors in our tests and codebase. Fixes bug
21006       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
21007     - Always check return values for unlink, munmap, UnmapViewOfFile;
21008       check strftime return values more often. In some cases all we can
21009       do is report a warning, but this may help prevent deeper bugs from
21010       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
21011       versions.
21012     - Fix numerous warnings from the clang "scan-build" static analyzer.
21013       Some of these are programming style issues; some of them are false
21014       positives that indicated awkward code; some are undefined behavior
21015       cases related to constructing (but not using) invalid pointers;
21016       some are assumptions about API behavior; some are (harmlessly)
21017       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
21018       correct; and one or two are genuine bugs that weren't reachable
21019       from the rest of the program. Fixes bug 8793; bugfixes on many,
21020       many tor versions.
21022   o Documentation:
21023     - Build the torify.1 manpage again. Previously, we were only trying
21024       to build it when also building tor-fw-helper. That's why we didn't
21025       notice that we'd broken the ability to build it. Fixes bug 11321;
21026       bugfix on 0.2.5.1-alpha.
21027     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
21028       11061; bugfix on 0.2.4.7-alpha.
21029     - Correctly document that we search for a system torrc file before
21030       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
21031       0.2.3.18-rc.
21032     - Resolve warnings from Doxygen.
21034   o Code simplifications and refactoring:
21035     - Remove is_internal_IP() function. Resolves ticket 4645.
21036     - Remove unused function circuit_dump_by_chan from circuitlist.c.
21037       Closes issue 9107; patch from "marek".
21038     - Change our use of the ENUM_BF macro to avoid declarations that
21039       confuse Doxygen.
21041   o Deprecated versions:
21042     - Tor 0.2.2.x has reached end-of-life; it has received no patches or
21043       attention for some while. Directory authorities no longer accept
21044       descriptors from relays running any version of Tor prior to Tor
21045       0.2.3.16-alpha. Resolves ticket 11149.
21047   o Testing:
21048     - New macros in test.h to simplify writing mock-functions for unit
21049       tests. Part of ticket 11507. Patch from Dana Koch.
21050     - Complete tests for the status.c module. Resolves ticket 11507.
21051       Patch from Dana Koch.
21053   o Removed code:
21054     - Remove all code for the long unused v1 directory protocol.
21055       Resolves ticket 11070.
21058 Changes in version 0.2.5.3-alpha - 2014-03-22
21059   Tor 0.2.5.3-alpha includes all the fixes from 0.2.4.21. It contains
21060   two new anti-DoS features for Tor relays, resolves a bug that kept
21061   SOCKS5 support for IPv6 from working, fixes several annoying usability
21062   issues for bridge users, and removes more old code for unused
21063   directory formats.
21065   The Tor 0.2.5.x release series is now in patch-freeze: no feature
21066   patches not already written will be considered for inclusion in 0.2.5.x.
21068   o Major features (relay security, DoS-resistance):
21069     - When deciding whether we have run out of memory and we need to
21070       close circuits, also consider memory allocated in buffers for
21071       streams attached to each circuit.
21073       This change, which extends an anti-DoS feature introduced in
21074       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
21075       better resist more memory-based DoS attacks than before. Since the
21076       MaxMemInCellQueues option now applies to all queues, it is renamed
21077       to MaxMemInQueues. This feature fixes bug 10169.
21078     - Avoid hash-flooding denial-of-service attacks by using the secure
21079       SipHash-2-4 hash function for our hashtables. Without this
21080       feature, an attacker could degrade performance of a targeted
21081       client or server by flooding their data structures with a large
21082       number of entries to be stored at the same hash table position,
21083       thereby slowing down the Tor instance. With this feature, hash
21084       table positions are derived from a randomized cryptographic key,
21085       and an attacker cannot predict which entries will collide. Closes
21086       ticket 4900.
21087     - Decrease the lower limit of MaxMemInQueues to 256 MBytes (but leave
21088       the default at 8GBytes), to better support Raspberry Pi users. Fixes
21089       bug 9686; bugfix on 0.2.4.14-alpha.
21091   o Minor features (bridges, pluggable transports):
21092     - Bridges now write the SHA1 digest of their identity key
21093       fingerprint (that is, a hash of a hash of their public key) to
21094       notice-level logs, and to a new hashed-fingerprint file. This
21095       information will help bridge operators look up their bridge in
21096       Globe and similar tools. Resolves ticket 10884.
21097     - Improve the message that Tor displays when running as a bridge
21098       using pluggable transports without an Extended ORPort listener.
21099       Also, log the message in the log file too. Resolves ticket 11043.
21101   o Minor features (other):
21102     - Add a new option, PredictedPortsRelevanceTime, to control how long
21103       after having received a request to connect to a given port Tor
21104       will try to keep circuits ready in anticipation of future requests
21105       for that port. Patch from "unixninja92"; implements ticket 9176.
21106     - Generate a warning if any ports are listed in the SocksPolicy,
21107       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
21108       AuthDirBadExit options. (These options only support address
21109       ranges.) Fixes part of ticket 11108.
21110     - Update geoip and geoip6 to the February 7 2014 Maxmind GeoLite2
21111       Country database.
21113   o Minor bugfixes (new since 0.2.5.2-alpha, also in 0.2.4.21):
21114     - Build without warnings under clang 3.4. (We have some macros that
21115       define static functions only some of which will get used later in
21116       the module. Starting with clang 3.4, these give a warning unless the
21117       unused attribute is set on them.) Resolves ticket 10904.
21118     - Fix build warnings about missing "a2x" comment when building the
21119       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
21120       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
21122   o Minor bugfixes (client):
21123     - Improve the log message when we can't connect to a hidden service
21124       because all of the hidden service directory nodes hosting its
21125       descriptor are excluded. Improves on our fix for bug 10722, which
21126       was a bugfix on 0.2.0.10-alpha.
21127     - Raise a control port warning when we fail to connect to all of
21128       our bridges. Previously, we didn't inform the controller, and
21129       the bootstrap process would stall. Fixes bug 11069; bugfix on
21130       0.2.1.2-alpha.
21131     - Exit immediately when a process-owning controller exits.
21132       Previously, tor relays would wait for a little while after their
21133       controller exited, as if they had gotten an INT signal -- but this
21134       was problematic, since there was no feedback for the user. To do a
21135       clean shutdown, controllers should send an INT signal and give Tor
21136       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
21137     - Stop attempting to connect to bridges before our pluggable
21138       transports are configured (harmless but resulted in some erroneous
21139       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
21140     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
21141       generating incorrect SOCKS5 responses, and confusing client
21142       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
21144   o Minor bugfixes (relays and bridges):
21145     - Avoid crashing on a malformed resolv.conf file when running a
21146       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
21147     - Non-exit relays no longer launch mock DNS requests to check for
21148       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
21149       non-exit relays stopped servicing DNS requests. Fixes bug 965;
21150       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
21151     - Bridges now report complete directory request statistics. Related
21152       to bug 5824; bugfix on 0.2.2.1-alpha.
21153     - Bridges now never collect statistics that were designed for
21154       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
21155     - Stop giving annoying warning messages when we decide not to launch
21156       a pluggable transport proxy that we don't need (because there are
21157       no bridges configured to use it). Resolves ticket 5018; bugfix
21158       on 0.2.5.2-alpha.
21159     - Give the correct URL in the warning message when trying to run a
21160       relay on an ancient version of Windows. Fixes bug 9393.
21162   o Minor bugfixes (backtrace support):
21163     - Support automatic backtraces on more platforms by using the
21164       "-fasynchronous-unwind-tables" compiler option. This option is
21165       needed for platforms like 32-bit Intel where "-fomit-frame-pointer"
21166       is on by default and table generation is not. This doesn't yet
21167       add Windows support; only Linux, OSX, and some BSDs are affected.
21168       Reported by 'cypherpunks'; fixes bug 11047; bugfix on 0.2.5.2-alpha.
21169     - Avoid strange behavior if two threads hit failed assertions at the
21170       same time and both try to log backtraces at once. (Previously, if
21171       this had happened, both threads would have stored their intermediate
21172       results in the same buffer, and generated junk outputs.) Reported by
21173       "cypherpunks". Fixes bug 11048; bugfix on 0.2.5.2-alpha.
21174     - Fix a compiler warning in format_number_sigsafe(). Bugfix on
21175       0.2.5.2-alpha; patch from Nick Hopper.
21177   o Minor bugfixes (unit tests):
21178     - Fix a small bug in the unit tests that might have made the tests
21179       call 'chmod' with an uninitialized bitmask. Fixes bug 10928;
21180       bugfix on 0.2.5.1-alpha. Patch from Dana Koch.
21182   o Removed code:
21183     - Remove all remaining code related to version-0 hidden service
21184       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
21185       the rest of bug 10841.
21187   o Documentation:
21188     - Document in the manpage that "KBytes" may also be written as
21189       "kilobytes" or "KB", that "Kbits" may also be written as
21190       "kilobits", and so forth. Closes ticket 9222.
21191     - Document that the ClientOnly config option overrides ORPort.
21192       Our old explanation made ClientOnly sound as though it did
21193       nothing at all. Resolves bug 9059.
21194     - Explain that SocksPolicy, DirPolicy, and similar options don't
21195       take port arguments. Fixes the other part of ticket 11108.
21196     - Fix a comment about the rend_server_descriptor_t.protocols field
21197       to more accurately describe its range. Also, make that field
21198       unsigned, to more accurately reflect its usage. Fixes bug 9099;
21199       bugfix on 0.2.1.5-alpha.
21200     - Fix the manpage's description of HiddenServiceAuthorizeClient:
21201       the maximum client name length is 16, not 19. Fixes bug 11118;
21202       bugfix on 0.2.1.6-alpha.
21204   o Code simplifications and refactoring:
21205     - Get rid of router->address, since in all cases it was just the
21206       string representation of router->addr. Resolves ticket 5528.
21208   o Test infrastructure:
21209     - Update to the latest version of tinytest.
21210     - Improve the tinytest implementation of string operation tests so
21211       that comparisons with NULL strings no longer crash the tests; they
21212       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
21215 Changes in version 0.2.4.21 - 2014-02-28
21216   Tor 0.2.4.21 further improves security against potential adversaries who
21217   find breaking 1024-bit crypto doable, and backports several stability
21218   and robustness patches from the 0.2.5 branch.
21220   o Major features (client security):
21221     - When we choose a path for a 3-hop circuit, make sure it contains
21222       at least one relay that supports the NTor circuit extension
21223       handshake. Otherwise, there is a chance that we're building
21224       a circuit that's worth attacking by an adversary who finds
21225       breaking 1024-bit crypto doable, and that chance changes the game
21226       theory. Implements ticket 9777.
21228   o Major bugfixes:
21229     - Do not treat streams that fail with reason
21230       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
21231       since it could also indicate an ENETUNREACH connection error. Fixes
21232       part of bug 10777; bugfix on 0.2.4.8-alpha.
21234   o Code simplification and refactoring:
21235     - Remove data structures which were introduced to implement the
21236       CellStatistics option: they are now redundant with the new timestamp
21237       field in the regular packed_cell_t data structure, which we did
21238       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
21240   o Minor features:
21241     - Always clear OpenSSL bignums before freeing them -- even bignums
21242       that don't contain secrets. Resolves ticket 10793. Patch by
21243       Florent Daigniere.
21244     - Build without warnings under clang 3.4. (We have some macros that
21245       define static functions only some of which will get used later in
21246       the module. Starting with clang 3.4, these give a warning unless the
21247       unused attribute is set on them.) Resolves ticket 10904.
21248     - Update geoip and geoip6 files to the February 7 2014 Maxmind
21249       GeoLite2 Country database.
21251   o Minor bugfixes:
21252     - Set the listen() backlog limit to the largest actually supported
21253       on the system, not to the value in a header file. Fixes bug 9716;
21254       bugfix on every released Tor.
21255     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
21256       exit node as a NOROUTE error, not an INTERNAL error, since they
21257       can apparently happen when trying to connect to the wrong sort
21258       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
21259     - Fix build warnings about missing "a2x" comment when building the
21260       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
21261       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
21262     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
21263       not entirely remove it from the connection lists. Fixes bug 9602;
21264       bugfix on 0.2.4.4-alpha.
21265     - Fix a segmentation fault in our benchmark code when running with
21266       Fedora's OpenSSL package, or any other OpenSSL that provides
21267       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
21268     - Turn "circuit handshake stats since last time" log messages into a
21269       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
21271   o Documentation fixes:
21272     - Document that all but one DirPort entry must have the NoAdvertise
21273       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
21276 Changes in version 0.2.5.2-alpha - 2014-02-13
21277   Tor 0.2.5.2-alpha includes all the fixes from 0.2.4.18-rc and 0.2.4.20,
21278   like the "poor random number generation" fix and the "building too many
21279   circuits" fix. It also further improves security against potential
21280   adversaries who find breaking 1024-bit crypto doable, and launches
21281   pluggable transports on demand (which gets us closer to integrating
21282   pluggable transport support by default -- not to be confused with Tor
21283   bundles enabling pluggable transports and bridges by default).
21285   o Major features (client security):
21286     - When we choose a path for a 3-hop circuit, make sure it contains
21287       at least one relay that supports the NTor circuit extension
21288       handshake. Otherwise, there is a chance that we're building
21289       a circuit that's worth attacking by an adversary who finds
21290       breaking 1024-bit crypto doable, and that chance changes the game
21291       theory. Implements ticket 9777.
21292     - Clients now look at the "usecreatefast" consensus parameter to
21293       decide whether to use CREATE_FAST or CREATE cells for the first hop
21294       of their circuit. This approach can improve security on connections
21295       where Tor's circuit handshake is stronger than the available TLS
21296       connection security levels, but the tradeoff is more computational
21297       load on guard relays. Implements proposal 221. Resolves ticket 9386.
21299   o Major features (bridges):
21300     - Don't launch pluggable transport proxies if we don't have any
21301       bridges configured that would use them. Now we can list many
21302       pluggable transports, and Tor will dynamically start one when it
21303       hears a bridge address that needs it. Resolves ticket 5018.
21304     - The bridge directory authority now assigns status flags (Stable,
21305       Guard, etc) to bridges based on thresholds calculated over all
21306       Running bridges. Now bridgedb can finally make use of its features
21307       to e.g. include at least one Stable bridge in its answers. Fixes
21308       bug 9859.
21310   o Major features (other):
21311     - Extend ORCONN controller event to include an "ID" parameter,
21312       and add four new controller event types CONN_BW, CIRC_BW,
21313       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
21314       The new events are emitted in private Tor networks only, with the
21315       goal of being able to better track performance and load during
21316       full-network simulations. Implements proposal 218 and ticket 7359.
21317     - On some platforms (currently: recent OSX versions, glibc-based
21318       platforms that support the ELF format, and a few other
21319       Unix-like operating systems), Tor can now dump stack traces
21320       when a crash occurs or an assertion fails. By default, traces
21321       are dumped to stderr (if possible) and to any logs that are
21322       reporting errors. Implements ticket 9299.
21324   o Major bugfixes:
21325     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
21326       not entirely remove it from the connection lists. Fixes bug 9602;
21327       bugfix on 0.2.4.4-alpha.
21328     - Do not treat streams that fail with reason
21329       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
21330       since it could also indicate an ENETUNREACH connection error. Fixes
21331       part of bug 10777; bugfix on 0.2.4.8-alpha.
21333   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
21334     - Do not allow OpenSSL engines to replace the PRNG, even when
21335       HardwareAccel is set. The only default builtin PRNG engine uses
21336       the Intel RDRAND instruction to replace the entire PRNG, and
21337       ignores all attempts to seed it with more entropy. That's
21338       cryptographically stupid: the right response to a new alleged
21339       entropy source is never to discard all previously used entropy
21340       sources. Fixes bug 10402; works around behavior introduced in
21341       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
21342       and "rl1987".
21343     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
21344       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
21345     - Avoid launching spurious extra circuits when a stream is pending.
21346       This fixes a bug where any circuit that _wasn't_ unusable for new
21347       streams would be treated as if it were, causing extra circuits to
21348       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
21350   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21351     - No longer stop reading or writing on cpuworker connections when
21352       our rate limiting buckets go empty. Now we should handle circuit
21353       handshake requests more promptly. Resolves bug 9731.
21354     - Stop trying to bootstrap all our directory information from
21355       only our first guard. Discovered while fixing bug 9946; bugfix
21356       on 0.2.4.8-alpha.
21358   o Minor features (bridges, pluggable transports):
21359     - Add threshold cutoffs to the networkstatus document created by
21360       the Bridge Authority. Fixes bug 1117.
21361     - On Windows, spawn background processes using the CREATE_NO_WINDOW
21362       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
21363       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
21364       Vidalia set this option for us.) Implements ticket 10297.
21366   o Minor features (security):
21367     - Always clear OpenSSL bignums before freeing them -- even bignums
21368       that don't contain secrets. Resolves ticket 10793. Patch by
21369       Florent Daignière.
21371   o Minor features (config options and command line):
21372     - Add an --allow-missing-torrc commandline option that tells Tor to
21373       run even if the configuration file specified by -f is not available.
21374       Implements ticket 10060.
21375     - Add support for the TPROXY transparent proxying facility on Linux.
21376       See documentation for the new TransProxyType option for more
21377       details. Implementation by "thomo". Closes ticket 10582.
21379   o Minor features (controller):
21380     - Add a new "HS_DESC" controller event that reports activities
21381       related to hidden service descriptors. Resolves ticket 8510.
21382     - New "DROPGUARDS" controller command to forget all current entry
21383       guards. Not recommended for ordinary use, since replacing guards
21384       too frequently makes several attacks easier. Resolves ticket 9934;
21385       patch from "ra".
21387   o Minor features (build):
21388     - Assume that a user using ./configure --host wants to cross-compile,
21389       and give an error if we cannot find a properly named
21390       tool-chain. Add a --disable-tool-name-check option to proceed
21391       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
21392     - If we run ./configure and the compiler recognizes -fstack-protector
21393       but the linker rejects it, warn the user about a potentially missing
21394       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
21396   o Minor features (testing):
21397     - If Python is installed, "make check" now runs extra tests beyond
21398       the unit test scripts.
21399     - When bootstrapping a test network, sometimes very few relays get
21400       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
21401       specify a set of relays which should be voted Guard regardless of
21402       their uptime or bandwidth. Addresses ticket 9206.
21404   o Minor features (log messages):
21405     - When ServerTransportPlugin is set on a bridge, Tor can write more
21406       useful statistics about bridge use in its extrainfo descriptors,
21407       but only if the Extended ORPort ("ExtORPort") is set too. Add a
21408       log message to inform the user in this case. Resolves ticket 9651.
21409     - When receiving a new controller connection, log the origin address.
21410       Resolves ticket 9698; patch from "sigpipe".
21411     - When logging OpenSSL engine status at startup, log the status of
21412       more engines. Fixes ticket 10043; patch from Joshua Datko.
21413     - Turn "circuit handshake stats since last time" log messages into a
21414       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
21416   o Minor features (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21417     - Improve the circuit queue out-of-memory handler. Previously, when
21418       we ran low on memory, we'd close whichever circuits had the most
21419       queued cells. Now, we close those that have the *oldest* queued
21420       cells, on the theory that those are most responsible for us
21421       running low on memory. Based on analysis from a forthcoming paper
21422       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
21423     - Generate bootstrapping status update events correctly when fetching
21424       microdescriptors. Fixes bug 9927.
21425     - Update to the October 2 2013 Maxmind GeoLite Country database.
21427   o Minor bugfixes (clients):
21428     - When closing a channel that has already been open, do not close
21429       pending circuits that were waiting to connect to the same relay.
21430       Fixes bug 9880; bugfix on 0.2.5.1-alpha. Thanks to skruffy for
21431       finding this bug.
21433   o Minor bugfixes (relays):
21434     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
21435       exit node as a NOROUTE error, not an INTERNAL error, since they
21436       can apparently happen when trying to connect to the wrong sort
21437       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
21439   o Minor bugfixes (bridges):
21440     - Fix a bug where the first connection works to a bridge that uses a
21441       pluggable transport with client-side parameters, but we don't send
21442       the client-side parameters on subsequent connections. (We don't
21443       use any pluggable transports with client-side parameters yet,
21444       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
21445       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
21447   o Minor bugfixes (node selection):
21448     - If ExcludeNodes is set, consider non-excluded hidden service
21449       directory servers before excluded ones. Do not consider excluded
21450       hidden service directory servers at all if StrictNodes is
21451       set. (Previously, we would sometimes decide to connect to those
21452       servers, and then realize before we initiated a connection that
21453       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
21454       Reported by "mr-4".
21455     - If we set the ExitNodes option but it doesn't include any nodes
21456       that have the Exit flag, we would choose not to bootstrap. Now we
21457       bootstrap so long as ExitNodes includes nodes which can exit to
21458       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
21460   o Minor bugfixes (controller and command-line):
21461     - If changing a config option via "setconf" fails in a recoverable
21462       way, we used to nonetheless write our new control ports to the
21463       file described by the "ControlPortWriteToFile" option. Now we only
21464       write out that file if we successfully switch to the new config
21465       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
21466     - When a command-line option such as --version or --help that
21467       ordinarily implies --hush appears on the command line along with
21468       --quiet, then actually obey --quiet. Previously, we obeyed --quiet
21469       only if it appeared later on the command line. Fixes bug 9578;
21470       bugfix on 0.2.5.1-alpha.
21472   o Minor bugfixes (code correctness):
21473     - Previously we used two temporary files when writing descriptors to
21474       disk; now we only use one. Fixes bug 1376.
21475     - Remove an erroneous (but impossible and thus harmless) pointer
21476       comparison that would have allowed compilers to skip a bounds
21477       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
21478       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
21479     - Fix an always-true assertion in pluggable transports code so it
21480       actually checks what it was trying to check. Fixes bug 10046;
21481       bugfix on 0.2.3.9-alpha. Found by "dcb".
21483   o Minor bugfixes (protocol correctness):
21484     - When receiving a VERSIONS cell with an odd number of bytes, close
21485       the connection immediately since the cell is malformed. Fixes bug
21486       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
21487       "rl1987".
21489   o Minor bugfixes (build):
21490     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
21491       turned off (that is, without support for v2 link handshakes). Fixes
21492       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
21493     - Fix compilation warnings and startup issues when running with
21494       "Sandbox 1" and libseccomp-2.1.0. Fixes bug 10563; bugfix on
21495       0.2.5.1-alpha.
21496     - Fix compilation on Solaris 9, which didn't like us having an
21497       identifier named "sun". Fixes bug 10565; bugfix in 0.2.5.1-alpha.
21499   o Minor bugfixes (testing):
21500     - Fix a segmentation fault in our benchmark code when running with
21501       Fedora's OpenSSL package, or any other OpenSSL that provides
21502       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
21504   o Minor bugfixes (log messages):
21505     - Fix a bug where clients using bridges would report themselves
21506       as 50% bootstrapped even without a live consensus document.
21507       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
21508     - Suppress a warning where, if there's only one directory authority
21509       in the network, we would complain that votes and signatures cannot
21510       be uploaded to other directory authorities. Fixes bug 10842;
21511       bugfix on 0.2.2.26-beta.
21512     - Report bootstrapping progress correctly when we're downloading
21513       microdescriptors. We had updated our "do we have enough microdescs
21514       to begin building circuits?" logic most recently in 0.2.4.10-alpha
21515       (see bug 5956), but we left the bootstrap status event logic at
21516       "how far through getting 1/4 of them are we?" Fixes bug 9958;
21517       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
21519   o Minor bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
21520     - Avoid a crash bug when starting with a corrupted microdescriptor
21521       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
21522     - If we fail to dump a previously cached microdescriptor to disk, avoid
21523       freeing duplicate data later on. Fixes bug 10423; bugfix on
21524       0.2.4.13-alpha. Spotted by "bobnomnom".
21526   o Minor bugfixes on 0.2.4.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21527     - Correctly log long IPv6 exit policies, instead of truncating them
21528       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
21529     - Our default TLS ecdhe groups were backwards: we meant to be using
21530       P224 for relays (for performance win) and P256 for bridges (since
21531       it is more common in the wild). Instead we had it backwards. After
21532       reconsideration, we decided that the default should be P256 on all
21533       hosts, since its security is probably better, and since P224 is
21534       reportedly used quite little in the wild.  Found by "skruffy" on
21535       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
21536     - Free directory authority certificate download statuses on exit
21537       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
21539   o Minor bugfixes on 0.2.3.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21540     - If the guard we choose first doesn't answer, we would try the
21541       second guard, but once we connected to the second guard we would
21542       abandon it and retry the first one, slowing down bootstrapping.
21543       The fix is to treat all our initially chosen guards as acceptable
21544       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
21545     - Fix an assertion failure that would occur when disabling the
21546       ORPort setting on a running Tor process while accounting was
21547       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
21548     - When examining the list of network interfaces to find our address,
21549       do not consider non-running or disabled network interfaces. Fixes
21550       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
21551     - Avoid an off-by-one error when checking buffer boundaries when
21552       formatting the exit status of a pluggable transport helper.
21553       This is probably not an exploitable bug, but better safe than
21554       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
21555       Pedro Ribeiro.
21557   o Removed code and features:
21558     - Clients now reject any directory authority certificates lacking
21559       a dir-key-crosscert element. These have been included since
21560       0.2.1.9-alpha, so there's no real reason for them to be optional
21561       any longer. Completes proposal 157. Resolves ticket 10162.
21562     - Remove all code that existed to support the v2 directory system,
21563       since there are no longer any v2 directory authorities. Resolves
21564       ticket 10758.
21565     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
21566       options, which were used for designating authorities as "Hidden
21567       service authorities". There has been no use of hidden service
21568       authorities since 0.2.2.1-alpha, when we stopped uploading or
21569       downloading v0 hidden service descriptors. Fixes bug 10881; also
21570       part of a fix for bug 10841.
21572   o Code simplification and refactoring:
21573     - Remove some old fallback code designed to keep Tor clients working
21574       in a network with only two working relays. Elsewhere in the code we
21575       have long since stopped supporting such networks, so there wasn't
21576       much point in keeping it around. Addresses ticket 9926.
21577     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
21578       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
21579     - Remove data structures which were introduced to implement the
21580       CellStatistics option: they are now redundant with the addition
21581       of a timestamp to the regular packed_cell_t data structure, which
21582       we did in 0.2.4.18-rc in order to resolve ticket 9093. Implements
21583       ticket 10870.
21585   o Documentation (man page) fixes:
21586     - Update manpage to describe some of the files you can expect to
21587       find in Tor's DataDirectory. Addresses ticket 9839.
21588     - Document that all but one DirPort entry must have the NoAdvertise
21589       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
21591   o Documentation fixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21592     - Clarify the usage and risks of setting the ContactInfo torrc line
21593       for your relay or bridge. Resolves ticket 9854.
21594     - Add anchors to the manpage so we can link to the html version of
21595       the documentation for specific options. Resolves ticket 9866.
21596     - Replace remaining references to DirServer in man page and
21597       log entries. Resolves ticket 10124.
21599   o Tool changes:
21600     - Make the "tor-gencert" tool used by directory authority operators
21601       create 2048-bit signing keys by default (rather than 1024-bit, since
21602       1024-bit is uncomfortably small these days). Addresses ticket 10324.
21605 Changes in version 0.2.4.20 - 2013-12-22
21606   Tor 0.2.4.20 fixes potentially poor random number generation for users
21607   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
21608   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
21609   and 4) have no state file in their DataDirectory (as would happen on
21610   first start). Users who generated relay or hidden service identity
21611   keys in such a situation should discard them and generate new ones.
21613   This release also fixes a logic error that caused Tor clients to build
21614   many more preemptive circuits than they actually need.
21616   o Major bugfixes:
21617     - Do not allow OpenSSL engines to replace the PRNG, even when
21618       HardwareAccel is set. The only default builtin PRNG engine uses
21619       the Intel RDRAND instruction to replace the entire PRNG, and
21620       ignores all attempts to seed it with more entropy. That's
21621       cryptographically stupid: the right response to a new alleged
21622       entropy source is never to discard all previously used entropy
21623       sources. Fixes bug 10402; works around behavior introduced in
21624       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
21625       and "rl1987".
21626     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
21627       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
21628     - Avoid launching spurious extra circuits when a stream is pending.
21629       This fixes a bug where any circuit that _wasn't_ unusable for new
21630       streams would be treated as if it were, causing extra circuits to
21631       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
21633   o Minor bugfixes:
21634     - Avoid a crash bug when starting with a corrupted microdescriptor
21635       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
21636     - If we fail to dump a previously cached microdescriptor to disk, avoid
21637       freeing duplicate data later on. Fixes bug 10423; bugfix on
21638       0.2.4.13-alpha. Spotted by "bobnomnom".
21641 Changes in version 0.2.4.19 - 2013-12-11
21642   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
21643   (1986-2013). Aaron worked on diverse projects including helping to guide
21644   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
21645   transparency to the U.S government's PACER documents, and contributing
21646   design and development for Tor and Tor2Web. Aaron was one of the latest
21647   martyrs in our collective fight for civil liberties and human rights,
21648   and his death is all the more painful because he was one of us.
21650   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
21651   a new circuit handshake and link encryption that use ECC to provide
21652   better security and efficiency; makes relays better manage circuit
21653   creation requests; uses "directory guards" to reduce client enumeration
21654   risks; makes bridges collect and report statistics about the pluggable
21655   transports they support; cleans up and improves our geoip database;
21656   gets much closer to IPv6 support for clients, bridges, and relays; makes
21657   directory authorities use measured bandwidths rather than advertised
21658   ones when computing flags and thresholds; disables client-side DNS
21659   caching to reduce tracking risks; and fixes a big bug in bridge
21660   reachability testing. This release introduces two new design
21661   abstractions in the code: a new "channel" abstraction between circuits
21662   and or_connections to allow for implementing alternate relay-to-relay
21663   transports, and a new "circuitmux" abstraction storing the queue of
21664   circuits for a channel. The release also includes many stability,
21665   security, and privacy fixes.
21668 Changes in version 0.2.4.18-rc - 2013-11-16
21669   Tor 0.2.4.18-rc is the fourth release candidate for the Tor 0.2.4.x
21670   series. It takes a variety of fixes from the 0.2.5.x branch to improve
21671   stability, performance, and better handling of edge cases.
21673   o Major features:
21674     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
21675       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
21676       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
21677       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
21678       them to solve bug 6033.)
21680   o Major bugfixes:
21681     - No longer stop reading or writing on cpuworker connections when
21682       our rate limiting buckets go empty. Now we should handle circuit
21683       handshake requests more promptly. Resolves bug 9731.
21684     - If we are unable to save a microdescriptor to the journal, do not
21685       drop it from memory and then reattempt downloading it. Fixes bug
21686       9645; bugfix on 0.2.2.6-alpha.
21687     - Stop trying to bootstrap all our directory information from
21688       only our first guard. Discovered while fixing bug 9946; bugfix
21689       on 0.2.4.8-alpha.
21690     - The new channel code sometimes lost track of in-progress circuits,
21691       causing long-running clients to stop building new circuits. The
21692       fix is to always call circuit_n_chan_done(chan, 0) from
21693       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
21695   o Minor bugfixes (on 0.2.4.x):
21696     - Correctly log long IPv6 exit policies, instead of truncating them
21697       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
21698     - Our default TLS ecdhe groups were backwards: we meant to be using
21699       P224 for relays (for performance win) and P256 for bridges (since
21700       it is more common in the wild). Instead we had it backwards. After
21701       reconsideration, we decided that the default should be P256 on all
21702       hosts, since its security is probably better, and since P224 is
21703       reportedly used quite little in the wild.  Found by "skruffy" on
21704       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
21705     - Free directory authority certificate download statuses on exit
21706       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
21708   o Minor bugfixes (on 0.2.3.x and earlier):
21709     - If the guard we choose first doesn't answer, we would try the
21710       second guard, but once we connected to the second guard we would
21711       abandon it and retry the first one, slowing down bootstrapping.
21712       The fix is to treat all our initially chosen guards as acceptable
21713       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
21714     - Fix an assertion failure that would occur when disabling the
21715       ORPort setting on a running Tor process while accounting was
21716       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
21717     - When examining the list of network interfaces to find our address,
21718       do not consider non-running or disabled network interfaces. Fixes
21719       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
21720     - Avoid an off-by-one error when checking buffer boundaries when
21721       formatting the exit status of a pluggable transport helper.
21722       This is probably not an exploitable bug, but better safe than
21723       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
21724       Pedro Ribeiro.
21726   o Minor features (protecting client timestamps):
21727     - Clients no longer send timestamps in their NETINFO cells. These were
21728       not used for anything, and they provided one small way for clients
21729       to be distinguished from each other as they moved from network to
21730       network or behind NAT. Implements part of proposal 222.
21731     - Clients now round timestamps in INTRODUCE cells down to the nearest
21732       10 minutes. If a new Support022HiddenServices option is set to 0, or
21733       if it's set to "auto" and the feature is disabled in the consensus,
21734       the timestamp is sent as 0 instead. Implements part of proposal 222.
21735     - Stop sending timestamps in AUTHENTICATE cells. This is not such
21736       a big deal from a security point of view, but it achieves no actual
21737       good purpose, and isn't needed. Implements part of proposal 222.
21738     - Reduce down accuracy of timestamps in hidden service descriptors.
21739       Implements part of proposal 222.
21741   o Minor features (other):
21742     - Improve the circuit queue out-of-memory handler. Previously, when
21743       we ran low on memory, we'd close whichever circuits had the most
21744       queued cells. Now, we close those that have the *oldest* queued
21745       cells, on the theory that those are most responsible for us
21746       running low on memory. Based on analysis from a forthcoming paper
21747       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
21748     - Generate bootstrapping status update events correctly when fetching
21749       microdescriptors. Fixes bug 9927.
21750     - Update to the October 2 2013 Maxmind GeoLite Country database.
21752   o Documentation fixes:
21753     - Clarify the usage and risks of setting the ContactInfo torrc line
21754       for your relay or bridge. Resolves ticket 9854.
21755     - Add anchors to the manpage so we can link to the html version of
21756       the documentation for specific options. Resolves ticket 9866.
21757     - Replace remaining references to DirServer in man page and
21758       log entries. Resolves ticket 10124.
21761 Changes in version 0.2.5.1-alpha - 2013-10-02
21762   Tor 0.2.5.1-alpha introduces experimental support for syscall sandboxing
21763   on Linux, allows bridges that offer pluggable transports to report usage
21764   statistics, fixes many issues to make testing easier, and provides
21765   a pile of minor features and bugfixes that have been waiting for a
21766   release of the new branch.
21768   This is the first alpha release in a new series, so expect there to
21769   be bugs. Users who would rather test out a more stable branch should
21770   stay with 0.2.4.x for now.
21772   o Major features (security):
21773     - Use the seccomp2 syscall filtering facility on Linux to limit
21774       which system calls Tor can invoke. This is an experimental,
21775       Linux-only feature to provide defense-in-depth against unknown
21776       attacks. To try turning it on, set "Sandbox 1" in your torrc
21777       file. Please be ready to report bugs. We hope to add support
21778       for better sandboxing in the future, including more fine-grained
21779       filters, better division of responsibility, and support for more
21780       platforms. This work has been done by Cristian-Matei Toader for
21781       Google Summer of Code.
21782     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
21783       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
21784       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
21785       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
21786       them to solve bug 6033.)
21788   o Major features (other):
21789     - Add support for passing arguments to managed pluggable transport
21790       proxies. Implements ticket 3594.
21791     - Bridges now track GeoIP information and the number of their users
21792       even when pluggable transports are in use, and report usage
21793       statistics in their extra-info descriptors. Resolves tickets 4773
21794       and 5040.
21795     - Make testing Tor networks bootstrap better: lower directory fetch
21796       retry schedules and maximum interval without directory requests,
21797       and raise maximum download tries. Implements ticket 6752.
21798     - Add make target 'test-network' to run tests on a Chutney network.
21799       Implements ticket 8530.
21800     - The ntor handshake is now on-by-default, no matter what the
21801       directory authorities recommend. Implements ticket 8561.
21803   o Major bugfixes:
21804     - Instead of writing destroy cells directly to outgoing connection
21805       buffers, queue them and intersperse them with other outgoing cells.
21806       This can prevent a set of resource starvation conditions where too
21807       many pending destroy cells prevent data cells from actually getting
21808       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
21809       bugfix on 0.2.0.1-alpha.
21810     - If we are unable to save a microdescriptor to the journal, do not
21811       drop it from memory and then reattempt downloading it. Fixes bug
21812       9645; bugfix on 0.2.2.6-alpha.
21813     - The new channel code sometimes lost track of in-progress circuits,
21814       causing long-running clients to stop building new circuits. The
21815       fix is to always call circuit_n_chan_done(chan, 0) from
21816       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
21818   o Build features:
21819     - Tor now builds each source file in two modes: a mode that avoids
21820       exposing identifiers needlessly, and another mode that exposes
21821       more identifiers for testing. This lets the compiler do better at
21822       optimizing the production code, while enabling us to take more
21823       radical measures to let the unit tests test things.
21824     - The production builds no longer include functions used only in
21825       the unit tests; all functions exposed from a module only for
21826       unit-testing are now static in production builds.
21827     - Add an --enable-coverage configuration option to make the unit
21828       tests (and a new src/or/tor-cov target) to build with gcov test
21829       coverage support.
21831   o Testing:
21832     - We now have rudimentary function mocking support that our unit
21833       tests can use to test functions in isolation. Function mocking
21834       lets the tests temporarily replace a function's dependencies with
21835       stub functions, so that the tests can check the function without
21836       invoking the other functions it calls.
21837     - Add more unit tests for the <circid,channel>->circuit map, and
21838       the destroy-cell-tracking code to fix bug 7912.
21839     - Unit tests for failing cases of the TAP onion handshake.
21840     - More unit tests for address-manipulation functions.
21842   o Minor features (protecting client timestamps):
21843     - Clients no longer send timestamps in their NETINFO cells. These were
21844       not used for anything, and they provided one small way for clients
21845       to be distinguished from each other as they moved from network to
21846       network or behind NAT. Implements part of proposal 222.
21847     - Clients now round timestamps in INTRODUCE cells down to the nearest
21848       10 minutes. If a new Support022HiddenServices option is set to 0, or
21849       if it's set to "auto" and the feature is disabled in the consensus,
21850       the timestamp is sent as 0 instead. Implements part of proposal 222.
21851     - Stop sending timestamps in AUTHENTICATE cells. This is not such
21852       a big deal from a security point of view, but it achieves no actual
21853       good purpose, and isn't needed. Implements part of proposal 222.
21854     - Reduce down accuracy of timestamps in hidden service descriptors.
21855       Implements part of proposal 222.
21857   o Minor features (config options):
21858     - Config (torrc) lines now handle fingerprints which are missing
21859       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
21860     - Support a --dump-config option to print some or all of the
21861       configured options. Mainly useful for debugging the command-line
21862       option parsing code. Helps resolve ticket 4647.
21863     - Raise awareness of safer logging: notify user of potentially
21864       unsafe config options, like logging more verbosely than severity
21865       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
21866     - Add a new configuration option TestingV3AuthVotingStartOffset
21867       that bootstraps a network faster by changing the timing for
21868       consensus votes. Addresses ticket 8532.
21869     - Add a new torrc option "ServerTransportOptions" that allows
21870       bridge operators to pass configuration parameters to their
21871       pluggable transports. Resolves ticket 8929.
21872     - The config (torrc) file now accepts bandwidth and space limits in
21873       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
21874       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
21875       Patch by CharlieB.
21877   o Minor features (build):
21878     - Add support for `--library-versions` flag. Implements ticket 6384.
21879     - Return the "unexpected sendme" warnings to a warn severity, but make
21880       them rate limited, to help diagnose ticket 8093.
21881     - Detect a missing asciidoc, and warn the user about it, during
21882       configure rather than at build time. Fixes issue 6506. Patch from
21883       Arlo Breault.
21885   o Minor features (other):
21886     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
21887       sockets in a single system call. Implements ticket 5129.
21888     - Log current accounting state (bytes sent and received + remaining
21889       time for the current accounting period) in the relay's heartbeat
21890       message. Implements ticket 5526; patch from Peter Retzlaff.
21891     - Implement the TRANSPORT_LAUNCHED control port event that
21892       notifies controllers about new launched pluggable
21893       transports. Resolves ticket 5609.
21894     - If we're using the pure-C 32-bit curve25519_donna implementation
21895       of curve25519, build it with the -fomit-frame-pointer option to
21896       make it go faster on register-starved hosts. This improves our
21897       handshake performance by about 6% on i386 hosts without nacl.
21898       Closes ticket 8109.
21899     - Update to the September 4 2013 Maxmind GeoLite Country database.
21901   o Minor bugfixes:
21902     - Set the listen() backlog limit to the largest actually supported
21903       on the system, not to the value in a header file. Fixes bug 9716;
21904       bugfix on every released Tor.
21905     - No longer accept malformed http headers when parsing urls from
21906       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
21907       bugfix on 0.0.6pre1.
21908     - In munge_extrainfo_into_routerinfo(), check the return value of
21909       memchr(). This would have been a serious issue if we ever passed
21910       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
21911       from Arlo Breault.
21912     - On the chance that somebody manages to build Tor on a
21913       platform where time_t is unsigned, correct the way that
21914       microdesc_add_to_cache() handles negative time arguments.
21915       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
21916     - Reject relative control socket paths and emit a warning. Previously,
21917       single-component control socket paths would be rejected, but Tor
21918       would not log why it could not validate the config. Fixes bug 9258;
21919       bugfix on 0.2.3.16-alpha.
21921   o Minor bugfixes (command line):
21922     - Use a single command-line parser for parsing torrc options on the
21923       command line and for finding special command-line options to avoid
21924       inconsistent behavior for torrc option arguments that have the same
21925       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
21926       0.0.9pre5.
21927     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
21928       9573; bugfix on 0.0.9pre5.
21930   o Minor fixes (build, auxiliary programs):
21931     - Stop preprocessing the "torify" script with autoconf, since
21932       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
21933       from Guilhem.
21934     - The tor-fw-helper program now follows the standard convention and
21935       exits with status code "0" on success. Fixes bug 9030; bugfix on
21936       0.2.3.1-alpha. Patch by Arlo Breault.
21937     - Corrected ./configure advice for what openssl dev package you should
21938       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
21940   o Minor code improvements:
21941     - Remove constants and tests for PKCS1 padding; it's insecure and
21942       shouldn't be used for anything new. Fixes bug 8792; patch
21943       from Arlo Breault.
21944     - Remove instances of strcpy() from the unit tests. They weren't
21945       hurting anything, since they were only in the unit tests, but it's
21946       embarrassing to have strcpy() in the code at all, and some analysis
21947       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
21948       0.2.3.8-alpha. Patch from Arlo Breault.
21950   o Removed features:
21951     - Remove migration code from when we renamed the "cached-routers"
21952       file to "cached-descriptors" back in 0.2.0.8-alpha. This
21953       incidentally resolves ticket 6502 by cleaning up the related code
21954       a bit. Patch from Akshay Hebbar.
21956   o Code simplification and refactoring:
21957     - Extract the common duplicated code for creating a subdirectory
21958       of the data directory and writing to a file in it. Fixes ticket
21959       4282; patch from Peter Retzlaff.
21960     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
21961       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
21962       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
21963     - Add a set of accessor functions for the circuit timeout data
21964       structure. Fixes ticket 6153; patch from "piet".
21965     - Clean up exit paths from connection_listener_new(). Closes ticket
21966       8789. Patch from Arlo Breault.
21967     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
21968       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
21969     - Use a doubly-linked list to implement the global circuit list.
21970       Resolves ticket 9108. Patch from Marek Majkowski.
21971     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
21974 Changes in version 0.2.4.17-rc - 2013-09-05
21975   Tor 0.2.4.17-rc is the third release candidate for the Tor 0.2.4.x
21976   series. It adds an emergency step to help us tolerate the massive
21977   influx of users: 0.2.4 clients using the new (faster and safer) "NTor"
21978   circuit-level handshakes now effectively jump the queue compared to
21979   the 0.2.3 clients using "TAP" handshakes. This release also fixes a
21980   big bug hindering bridge reachability tests.
21982   o Major features:
21983     - Relays now process the new "NTor" circuit-level handshake requests
21984       with higher priority than the old "TAP" circuit-level handshake
21985       requests. We still process some TAP requests to not totally starve
21986       0.2.3 clients when NTor becomes popular. A new consensus parameter
21987       "NumNTorsPerTAP" lets us tune the balance later if we need to.
21988       Implements ticket 9574.
21990   o Major bugfixes:
21991     - If the circuit build timeout logic is disabled (via the consensus,
21992       or because we are an authority), then don't build testing circuits.
21993       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
21994     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
21995       previously they did not, which prevented them from receiving
21996       successful connections from relays for self-test or bandwidth
21997       testing. Also, when a relay is extending a circuit to a bridge,
21998       it needs to send a NETINFO cell, even when the bridge hasn't sent
21999       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
22000     - If the time to download the next old-style networkstatus is in
22001       the future, do not decline to consider whether to download the
22002       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
22003       0.2.3.14-alpha.
22005   o Minor bugfixes:
22006     - Avoid double-closing the listener socket in our socketpair()
22007       replacement (used on Windows) in the case where the addresses on
22008       our opened sockets don't match what we expected. Fixes bug 9400;
22009       bugfix on 0.0.2pre7. Found by Coverity.
22011   o Minor fixes (config options):
22012     - Avoid overflows when the user sets MaxCircuitDirtiness to a
22013       ridiculously high value, by imposing a (ridiculously high) 30-day
22014       maximum on MaxCircuitDirtiness.
22015     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
22016       message is logged at notice, not at info.
22017     - Warn and fail if a server is configured not to advertise any
22018       ORPorts at all. (We need *something* to put in our descriptor,
22019       or we just won't work.)
22021   o Minor features:
22022     - Track how many "TAP" and "NTor" circuit handshake requests we get,
22023       and how many we complete, and log it every hour to help relay
22024       operators follow trends in network load. Addresses ticket 9658.
22025     - Update to the August 7 2013 Maxmind GeoLite Country database.
22028 Changes in version 0.2.4.16-rc - 2013-08-10
22029   Tor 0.2.4.16-rc is the second release candidate for the Tor 0.2.4.x
22030   series. It fixes several crash bugs in the 0.2.4 branch.
22032   o Major bugfixes:
22033     - Fix a bug in the voting algorithm that could yield incorrect results
22034       when a non-naming authority declared too many flags. Fixes bug 9200;
22035       bugfix on 0.2.0.3-alpha.
22036     - Fix an uninitialized read that could in some cases lead to a remote
22037       crash while parsing INTRODUCE2 cells. Bugfix on 0.2.4.1-alpha.
22038       Anybody running a hidden service on the experimental 0.2.4.x
22039       branch should upgrade. (This is, so far as we know, unrelated to
22040       the recent news.)
22041     - Avoid an assertion failure when processing DNS replies without the
22042       answer types we expected. Fixes bug 9337; bugfix on 0.2.4.7-alpha.
22043     - Avoid a crash when using --hash-password. Fixes bug 9295; bugfix on
22044       0.2.4.15-rc. Found by stem integration tests.
22046   o Minor bugfixes:
22047     - Fix an invalid memory read that occurred when a pluggable
22048       transport proxy failed its configuration protocol.
22049       Fixes bug 9288; bugfix on 0.2.4.1-alpha.
22050     - When evaluating whether to use a connection that we haven't
22051       decided is canonical using a recent link protocol version,
22052       decide that it's canonical only if it used address _does_
22053       match the desired address. Fixes bug 9309; bugfix on
22054       0.2.4.4-alpha. Reported by skruffy.
22055     - Make the default behavior of NumDirectoryGuards be to track
22056       NumEntryGuards. Now a user who changes only NumEntryGuards will get
22057       the behavior she expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
22058     - Fix a spurious compilation warning with some older versions of
22059       GCC on FreeBSD. Fixes bug 9254; bugfix on 0.2.4.14-alpha.
22061   o Minor features:
22062     - Update to the July 3 2013 Maxmind GeoLite Country database.
22065 Changes in version 0.2.4.15-rc - 2013-07-01
22066   Tor 0.2.4.15-rc is the first release candidate for the Tor 0.2.4.x
22067   series. It fixes a few smaller bugs, but generally appears stable.
22068   Please test it and let us know whether it is!
22070   o Major bugfixes:
22071     - When receiving a new configuration file via the control port's
22072       LOADCONF command, do not treat the defaults file as absent.
22073       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
22075   o Minor features:
22076     - Issue a warning when running with the bufferevents backend enabled.
22077       It's still not stable, and people should know that they're likely
22078       to hit unexpected problems. Closes ticket 9147.
22081 Changes in version 0.2.4.14-alpha - 2013-06-18
22082   Tor 0.2.4.14-alpha fixes a pair of client guard enumeration problems
22083   present in 0.2.4.13-alpha.
22085   o Major bugfixes:
22086     - When we have too much memory queued in circuits (according to a new
22087       MaxMemInCellQueues option), close the circuits consuming the most
22088       memory. This prevents us from running out of memory as a relay if
22089       circuits fill up faster than they can be drained. Fixes bug 9063;
22090       bugfix on the 54th commit of Tor. This bug is a further fix beyond
22091       bug 6252, whose fix was merged into 0.2.3.21-rc.
22093       This change also fixes an earlier approach taken in 0.2.4.13-alpha,
22094       where we tried to solve this issue simply by imposing an upper limit
22095       on the number of queued cells for a single circuit. That approach
22096       proved to be problematic, since there are ways to provoke clients to
22097       send a number of cells in excess of any such reasonable limit. Fixes
22098       bug 9072; bugfix on 0.2.4.13-alpha.
22100     - Limit hidden service descriptors to at most ten introduction
22101       points, to slow one kind of guard enumeration. Fixes bug 9002;
22102       bugfix on 0.1.1.11-alpha.
22105 Changes in version 0.2.4.13-alpha - 2013-06-14
22106   Tor 0.2.4.13-alpha fixes a variety of potential remote crash
22107   vulnerabilities, makes socks5 username/password circuit isolation
22108   actually actually work (this time for sure!), and cleans up a bunch
22109   of other issues in preparation for a release candidate.
22111   o Major bugfixes (robustness):
22112     - Close any circuit that has too many cells queued on it. Fixes
22113       bug 9063; bugfix on the 54th commit of Tor. This bug is a further
22114       fix beyond bug 6252, whose fix was merged into 0.2.3.21-rc.
22115     - Prevent the get_freelists() function from running off the end of
22116       the list of freelists if it somehow gets an unrecognized
22117       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
22118       eugenis.
22119     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
22120       when an exit connection with optimistic data succeeds immediately
22121       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
22122       0.2.3.1-alpha.
22123     - Fix a directory authority crash bug when building a consensus
22124       using an older consensus as its basis. Fixes bug 8833. Bugfix
22125       on 0.2.4.12-alpha.
22127   o Major bugfixes:
22128     - Avoid a memory leak where we would leak a consensus body when we
22129       find that a consensus which we couldn't previously verify due to
22130       missing certificates is now verifiable. Fixes bug 8719; bugfix
22131       on 0.2.0.10-alpha.
22132     - We used to always request authority certificates by identity digest,
22133       meaning we'd get the newest one even when we wanted one with a
22134       different signing key. Then we would complain about being given
22135       a certificate we already had, and never get the one we really
22136       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
22137       resource to request the one we want. Fixes bug 5595; bugfix on
22138       0.2.0.8-alpha.
22139     - Follow the socks5 protocol when offering username/password
22140       authentication. The fix for bug 8117 exposed this bug, and it
22141       turns out real-world applications like Pidgin do care. Bugfix on
22142       0.2.3.2-alpha; fixes bug 8879.
22143     - Prevent failures on Windows Vista and later when rebuilding the
22144       microdescriptor cache. Diagnosed by Robert Ransom. Fixes bug 8822;
22145       bugfix on 0.2.4.12-alpha.
22147   o Minor bugfixes:
22148     - Fix an impossible buffer overrun in the AES unit tests. Fixes
22149       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
22150     - If for some reason we fail to write a microdescriptor while
22151       rebuilding the cache, do not let the annotations from that
22152       microdescriptor linger in the cache file, and do not let the
22153       microdescriptor stay recorded as present in its old location.
22154       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
22155     - Fix a memory leak that would occur whenever a configuration
22156       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
22157     - Paste the description for PathBias parameters from the man
22158       page into or.h, so the code documents them too. Fixes bug 7982;
22159       bugfix on 0.2.3.17-beta and 0.2.4.8-alpha.
22160     - Relays now treat a changed IPv6 ORPort as sufficient reason to
22161       publish an updated descriptor. Fixes bug 6026; bugfix on
22162       0.2.4.1-alpha.
22163     - When launching a resolve request on behalf of an AF_UNIX control
22164       socket, omit the address field of the new entry connection, used in
22165       subsequent controller events, rather than letting tor_dup_addr()
22166       set it to "<unknown address type>". Fixes bug 8639; bugfix on
22167       0.2.4.12-alpha.
22169   o Minor bugfixes (log messages):
22170     - Fix a scaling issue in the path bias accounting code that
22171       resulted in "Bug:" log messages from either
22172       pathbias_scale_close_rates() or pathbias_count_build_success().
22173       This represents a bugfix on a previous bugfix: the original fix
22174       attempted in 0.2.4.10-alpha was incomplete. Fixes bug 8235; bugfix
22175       on 0.2.4.1-alpha.
22176     - Give a less useless error message when the user asks for an IPv4
22177       address on an IPv6-only port, or vice versa. Fixes bug 8846; bugfix
22178       on 0.2.4.7-alpha.
22180   o Minor features:
22181     - Downgrade "unexpected SENDME" warnings to protocol-warn for 0.2.4.x,
22182       to tolerate bug 8093 for now.
22183     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
22184       in directory authority votes to describe whether they have enough
22185       measured bandwidths to ignore advertised (relay descriptor)
22186       bandwidth claims. Resolves ticket 8711.
22187     - Update to the June 5 2013 Maxmind GeoLite Country database.
22189   o Removed documentation:
22190     - Remove some of the older contents of doc/ as obsolete; move others
22191       to torspec.git. Fixes bug 8965.
22193   o Code simplification and refactoring:
22194     - Avoid using character buffers when constructing most directory
22195       objects: this approach was unwieldy and error-prone. Instead,
22196       build smartlists of strings, and concatenate them when done.
22199 Changes in version 0.2.4.12-alpha - 2013-04-18
22200   Tor 0.2.4.12-alpha moves Tor forward on several fronts: it starts the
22201   process for lengthening the guard rotation period, makes directory
22202   authority opinions in the consensus a bit less gameable, makes socks5
22203   username/password circuit isolation actually work, and fixes a wide
22204   variety of other issues.
22206   o Major features:
22207     - Raise the default time that a client keeps an entry guard from
22208       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
22209       2012 paper. (We would make it even longer, but we need better client
22210       load balancing first.) Also, make the guard lifetime controllable
22211       via a new GuardLifetime torrc option and a GuardLifetime consensus
22212       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
22213     - Directory authorities now prefer using measured bandwidths to
22214       advertised ones when computing flags and thresholds. Resolves
22215       ticket 8273.
22216     - Directory authorities that have more than a threshold number
22217       of relays with measured bandwidths now treat relays with unmeasured
22218       bandwidths as having bandwidth 0. Resolves ticket 8435.
22220   o Major bugfixes (assert / resource use):
22221     - Avoid a bug where our response to TLS renegotiation under certain
22222       network conditions could lead to a busy-loop, with 100% CPU
22223       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
22224     - Avoid an assertion when we discover that we'd like to write a cell
22225       onto a closing connection: just discard the cell. Fixes another
22226       case of bug 7350; bugfix on 0.2.4.4-alpha.
22228   o Major bugfixes (client-side privacy):
22229     - When we mark a circuit as unusable for new circuits, have it
22230       continue to be unusable for new circuits even if MaxCircuitDirtiness
22231       is increased too much at the wrong time, or the system clock jumps
22232       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
22233     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
22234       which have resolved to internal addresses") is set, apply that
22235       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
22236     - When an exit relay rejects a stream with reason "exit policy", but
22237       we only know an exit policy summary (e.g. from the microdesc
22238       consensus) for it, do not mark the relay as useless for all exiting.
22239       Instead, mark just the circuit as unsuitable for that particular
22240       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
22241     - Allow applications to get proper stream isolation with
22242       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
22243       username/password authentication also offer "no authentication". Tor
22244       had previously preferred "no authentication", so the applications
22245       never actually sent Tor their auth details. Now Tor selects
22246       username/password authentication if it's offered. You can disable
22247       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
22248       bug 8117; bugfix on 0.2.3.3-alpha.
22250   o Major bugfixes (other):
22251     - When unable to find any working directory nodes to use as a
22252       directory guard, give up rather than adding the same non-working
22253       nodes to the directory guard list over and over. Fixes bug 8231;
22254       bugfix on 0.2.4.8-alpha.
22256   o Minor features:
22257     - Reject as invalid most directory objects containing a NUL.
22258       Belt-and-suspender fix for bug 8037.
22259     - In our testsuite, create temporary directories with a bit more
22260       entropy in their name to make name collisions less likely. Fixes
22261       bug 8638.
22262     - Add CACHED keyword to ADDRMAP events in the control protocol
22263       to indicate whether a DNS result will be cached or not. Resolves
22264       ticket 8596.
22265     - Update to the April 3 2013 Maxmind GeoLite Country database.
22267   o Minor features (build):
22268     - Detect and reject attempts to build Tor with threading support
22269       when OpenSSL has been compiled without threading support.
22270       Fixes bug 6673.
22271     - Clarify that when autoconf is checking for nacl, it is checking
22272       specifically for nacl with a fast curve25519 implementation.
22273       Fixes bug 8014.
22274     - Warn if building on a platform with an unsigned time_t: there
22275       are too many places where Tor currently assumes that time_t can
22276       hold negative values. We'd like to fix them all, but probably
22277       some will remain.
22279   o Minor bugfixes (build):
22280     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
22281       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
22282       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
22283     - Add the old src/or/micro-revision.i filename to CLEANFILES.
22284       On the off chance that somebody has one, it will go away as soon
22285       as they run "make clean". Fix for bug 7143; bugfix on 0.2.4.1-alpha.
22286     - Build Tor correctly on 32-bit platforms where the compiler can build
22287       but not run code using the "uint128_t" construction. Fixes bug 8587;
22288       bugfix on 0.2.4.8-alpha.
22289     - Fix compilation warning with some versions of clang that would
22290       prefer the -Wswitch-enum compiler flag to warn about switch
22291       statements with missing enum values, even if those switch
22292       statements have a "default:" statement. Fixes bug 8598; bugfix
22293       on 0.2.4.10-alpha.
22295   o Minor bugfixes (protocol):
22296     - Fix the handling of a TRUNCATE cell when it arrives while the
22297       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
22298     - Fix a misframing issue when reading the version numbers in a
22299       VERSIONS cell. Previously we would recognize [00 01 00 02] as
22300       'version 1, version 2, and version 0x100', when it should have
22301       only included versions 1 and 2. Fixes bug 8059; bugfix on
22302       0.2.0.10-alpha. Reported pseudonymously.
22303     - Make the format and order of STREAM events for DNS lookups
22304       consistent among the various ways to launch DNS lookups. Fixes
22305       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy".
22306     - Correct our check for which versions of Tor support the EXTEND2
22307       cell. We had been willing to send it to Tor 0.2.4.7-alpha and
22308       later, when support was really added in version 0.2.4.8-alpha.
22309       Fixes bug 8464; bugfix on 0.2.4.8-alpha.
22311   o Minor bugfixes (other):
22312     - Correctly store microdescriptors and extrainfo descriptors with
22313       an internal NUL byte. Fixes bug 8037; bugfix on 0.2.0.1-alpha.
22314       Bug reported by "cypherpunks".
22315     - Increase the width of the field used to remember a connection's
22316       link protocol version to two bytes. Harmless for now, since the
22317       only currently recognized versions are one byte long. Reported
22318       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
22319     - If the state file's path bias counts are invalid (presumably from a
22320       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
22321       additional checks and log messages to the scaling of Path Bias
22322       counts, in case there still are remaining issues with scaling.
22323       Should help resolve bug 8235.
22324     - Eliminate several instances where we use "Nickname=ID" to refer to
22325       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
22326       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
22327       on 0.2.3.21-rc, 0.2.4.5-alpha, 0.2.4.8-alpha, and 0.2.4.10-alpha.
22329   o Minor bugfixes (syscalls):
22330     - Always check the return values of functions fcntl() and
22331       setsockopt(). We don't believe these are ever actually failing in
22332       practice, but better safe than sorry. Also, checking these return
22333       values should please analysis tools like Coverity. Patch from
22334       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
22335     - Use direct writes rather than stdio when building microdescriptor
22336       caches, in an attempt to mitigate bug 8031, or at least make it
22337       less common.
22339   o Minor bugfixes (config):
22340     - When rejecting a configuration because we were unable to parse a
22341       quoted string, log an actual error message. Fixes bug 7950; bugfix
22342       on 0.2.0.16-alpha.
22343     - Behave correctly when the user disables LearnCircuitBuildTimeout
22344       but doesn't tell us what they would like the timeout to be. Fixes
22345       bug 6304; bugfix on 0.2.2.14-alpha.
22346     - When autodetecting the number of CPUs, use the number of available
22347       CPUs in preference to the number of configured CPUs. Inform the
22348       user if this reduces the number of available CPUs. Fixes bug 8002;
22349       bugfix on 0.2.3.1-alpha.
22350     - Make it an error when you set EntryNodes but disable UseGuardNodes,
22351       since it will (surprisingly to some users) ignore EntryNodes. Fixes
22352       bug 8180; bugfix on 0.2.3.11-alpha.
22353     - Allow TestingTorNetworks to override the 4096-byte minimum for
22354       the Fast threshold. Otherwise they can't bootstrap until they've
22355       observed more traffic. Fixes bug 8508; bugfix on 0.2.4.10-alpha.
22356     - Fix some logic errors when the user manually overrides the
22357       PathsNeededToBuildCircuits option in torrc. Fixes bug 8599; bugfix
22358       on 0.2.4.10-alpha.
22360   o Minor bugfixes (log messages to help diagnose bugs):
22361     - If we fail to free a microdescriptor because of bug 7164, log
22362       the filename and line number from which we tried to free it.
22363     - Add another diagnostic to the heartbeat message: track and log
22364       overhead that TLS is adding to the data we write. If this is
22365       high, we are sending too little data to SSL_write at a time.
22366       Diagnostic for bug 7707.
22367     - Add more detail to a log message about relaxed timeouts, to help
22368       track bug 7799.
22369     - Warn more aggressively when flushing microdescriptors to a
22370       microdescriptor cache fails, in an attempt to mitigate bug 8031,
22371       or at least make it more diagnosable.
22372     - Improve debugging output to help track down bug 8185 ("Bug:
22373       outgoing relay cell has n_chan==NULL. Dropping.")
22374     - Log the purpose of a path-bias testing circuit correctly.
22375       Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.
22377   o Minor bugfixes (0.2.4.x log messages that were too noisy):
22378     - Don't attempt to relax the timeout of already opened 1-hop circuits.
22379       They might never timeout. This should eliminate some/all cases of
22380       the relaxed timeout log message.
22381     - Use circuit creation time for network liveness evaluation. This
22382       should eliminate warning log messages about liveness caused
22383       by changes in timeout evaluation. Fixes bug 6572; bugfix on
22384       0.2.4.8-alpha.
22385     - Reduce a path bias length check from notice to info. The message
22386       is triggered when creating controller circuits. Fixes bug 8196;
22387       bugfix on 0.2.4.8-alpha.
22388     - Fix a path state issue that triggered a notice during relay startup.
22389       Fixes bug 8320; bugfix on 0.2.4.10-alpha.
22390     - Reduce occurrences of warns about circuit purpose in
22391       connection_ap_expire_building(). Fixes bug 8477; bugfix on
22392       0.2.4.11-alpha.
22394   o Minor bugfixes (pre-0.2.4.x log messages that were too noisy):
22395     - If we encounter a write failure on a SOCKS connection before we
22396       finish our SOCKS handshake, don't warn that we closed the
22397       connection before we could send a SOCKS reply. Fixes bug 8427;
22398       bugfix on 0.1.0.1-rc.
22399     - Correctly recognize that [::1] is a loopback address. Fixes
22400       bug 8377; bugfix on 0.2.1.3-alpha.
22401     - Fix a directory authority warn caused when we have a large amount
22402       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
22403     - Don't log inappropriate heartbeat messages when hibernating: a
22404       hibernating node is _expected_ to drop out of the consensus,
22405       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
22406       bugfix on 0.2.3.1-alpha.
22407     - Don't complain about bootstrapping problems while hibernating.
22408       These complaints reflect a general code problem, but not one
22409       with any problematic effects (no connections are actually
22410       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
22412   o Documentation fixes:
22413     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
22414       names match. Fixes bug 7768.
22415     - Make the torify manpage no longer refer to tsocks; torify hasn't
22416       supported tsocks since 0.2.3.14-alpha.
22417     - Make the tor manpage no longer reference tsocks.
22418     - Fix the GeoIPExcludeUnknown documentation to refer to
22419       ExcludeExitNodes rather than the currently nonexistent
22420       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
22422   o Removed files:
22423     - The tor-tsocks.conf is no longer distributed or installed. We
22424       recommend that tsocks users use torsocks instead. Resolves
22425       ticket 8290.
22428 Changes in version 0.2.4.11-alpha - 2013-03-11
22429   Tor 0.2.4.11-alpha makes relay measurement by directory authorities
22430   more robust, makes hidden service authentication work again, and
22431   resolves a DPI fingerprint for Tor's SSL transport.
22433   o Major features (directory authorities):
22434     - Directory authorities now support a new consensus method (17)
22435       where they cap the published bandwidth of servers for which
22436       insufficient bandwidth measurements exist. Fixes part of bug 2286.
22437     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
22438       serve any v2 directory information. Now we can test disabling the
22439       old deprecated v2 directory format, and see whether doing so has
22440       any effect on network load. Begins to fix bug 6783.
22441     - Directory authorities now include inside each vote a statement of
22442       the performance thresholds they used when assigning flags.
22443       Implements ticket 8151.
22445   o Major bugfixes (directory authorities):
22446     - Stop marking every relay as having been down for one hour every
22447       time we restart a directory authority. These artificial downtimes
22448       were messing with our Stable and Guard flag calculations. Fixes
22449       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
22451   o Major bugfixes (hidden services):
22452     - Allow hidden service authentication to succeed again. When we
22453       refactored the hidden service introduction code back
22454       in 0.2.4.1-alpha, we didn't update the code that checks
22455       whether authentication information is present, causing all
22456       authentication checks to return "false". Fix for bug 8207; bugfix
22457       on 0.2.4.1-alpha. Found by Coverity; this is CID 718615.
22459   o Minor features (relays, bridges):
22460     - Make bridge relays check once a minute for whether their IP
22461       address has changed, rather than only every 15 minutes. Resolves
22462       bugs 1913 and 1992.
22463     - Refactor resolve_my_address() so it returns the method by which we
22464       decided our public IP address (explicitly configured, resolved from
22465       explicit hostname, guessed from interfaces, learned by gethostname).
22466       Now we can provide more helpful log messages when a relay guesses
22467       its IP address incorrectly (e.g. due to unexpected lines in
22468       /etc/hosts). Resolves ticket 2267.
22469     - Teach bridge-using clients to avoid 0.2.2 bridges when making
22470       microdescriptor-related dir requests, and only fall back to normal
22471       descriptors if none of their bridges can handle microdescriptors
22472       (as opposed to the fix in ticket 4013, which caused them to fall
22473       back to normal descriptors if *any* of their bridges preferred
22474       them). Resolves ticket 4994.
22475     - Randomize the lifetime of our SSL link certificate, so censors can't
22476       use the static value for filtering Tor flows. Resolves ticket 8443;
22477       related to ticket 4014 which was included in 0.2.2.33.
22478     - Support a new version of the link protocol that allows 4-byte circuit
22479       IDs. Previously, circuit IDs were limited to 2 bytes, which presented
22480       a possible resource exhaustion issue. Closes ticket 7351; implements
22481       proposal 214.
22483   o Minor features (portability):
22484     - Tweak the curve25519-donna*.c implementations to tolerate systems
22485       that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
22486     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
22487       the signs of types during autoconf. This is better than our old
22488       approach, which didn't work when cross-compiling.
22489     - Detect the sign of enum values, rather than assuming that MSC is the
22490       only compiler where enum types are all signed. Fixes bug 7727;
22491       bugfix on 0.2.4.10-alpha.
22493   o Minor features (other):
22494     - Say "KBytes" rather than "KB" in the man page (for various values
22495       of K), to further reduce confusion about whether Tor counts in
22496       units of memory or fractions of units of memory. Resolves ticket 7054.
22497     - Clear the high bit on curve25519 public keys before passing them to
22498       our backend, in case we ever wind up using a backend that doesn't do
22499       so itself. If we used such a backend, and *didn't* clear the high bit,
22500       we could wind up in a situation where users with such backends would
22501       be distinguishable from users without. Fixes bug 8121; bugfix on
22502       0.2.4.8-alpha.
22503     - Update to the March 6 2013 Maxmind GeoLite Country database.
22505   o Minor bugfixes (clients):
22506     - When we receive a RELAY_END cell with the reason DONE, or with no
22507       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
22508       status as "connection refused". Previously we reported these cases
22509       as success but then immediately closed the connection. Fixes bug
22510       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
22511     - Downgrade an assertion in connection_ap_expire_beginning to an
22512       LD_BUG message. The fix for bug 8024 should prevent this message
22513       from displaying, but just in case, a warn that we can diagnose
22514       is better than more assert crashes. Fixes bug 8065; bugfix on
22515       0.2.4.8-alpha.
22516     - Lower path use bias thresholds to .80 for notice and .60 for warn.
22517       Also make the rate limiting flags for the path use bias log messages
22518       independent from the original path bias flags. Fixes bug 8161;
22519       bugfix on 0.2.4.10-alpha.
22521   o Minor bugfixes (relays):
22522     - Stop trying to resolve our hostname so often (e.g. every time we
22523       think about doing a directory fetch). Now we reuse the cached
22524       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
22525       and 2410 (bugfix on 0.1.2.2-alpha).
22526     - Stop sending a stray "(null)" in some cases for the server status
22527       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
22528       on 0.1.2.6-alpha.
22529     - When choosing which stream on a formerly stalled circuit to wake
22530       first, make better use of the platform's weak RNG. Previously,
22531       we had been using the % ("modulo") operator to try to generate a
22532       1/N chance of picking each stream, but this behaves badly with
22533       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
22534       0.2.2.20-alpha.
22535     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
22536       Irix's random() only return 15 bits; Solaris's random() returns more
22537       bits but its RAND_MAX says it only returns 15, and so on. Motivated
22538       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
22540   o Minor bugfixes (directory authorities):
22541     - Directory authorities now use less space when formatting identical
22542       microdescriptor lines in directory votes. Fixes bug 8158; bugfix
22543       on 0.2.4.1-alpha.
22545   o Minor bugfixes (memory leaks spotted by Coverity -- bug 7816):
22546     - Avoid leaking memory if we fail to compute a consensus signature
22547       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
22548     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
22549       on 0.2.1.1-alpha.
22550     - Fix a memory leak during safe-cookie controller authentication.
22551       Bugfix on 0.2.3.13-alpha.
22552     - Avoid memory leak of IPv6 policy content if we fail to format it into
22553       a router descriptor. Bugfix on 0.2.4.7-alpha.
22555   o Minor bugfixes (other code correctness issues):
22556     - Avoid a crash if we fail to generate an extrainfo descriptor.
22557       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
22558       this is CID 718634.
22559     - When detecting the largest possible file descriptor (in order to
22560       close all file descriptors when launching a new program), actually
22561       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
22562       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
22563       is CID 743383.
22564     - Fix a copy-and-paste error when adding a missing A1 to a routerset
22565       because of GeoIPExcludeUnknown. Fix for Coverity CID 980650.
22566       Bugfix on 0.2.4.10-alpha.
22567     - Fix an impossible-to-trigger integer overflow when estimating how
22568       long our onionskin queue would take. (This overflow would require us
22569       to accept 4 million onionskins before processing 100 of them.) Fixes
22570       bug 8210; bugfix on 0.2.4.10-alpha.
22572   o Code simplification and refactoring:
22573     - Add a wrapper function for the common "log a message with a
22574       rate-limit" case.
22577 Changes in version 0.2.4.10-alpha - 2013-02-04
22578   Tor 0.2.4.10-alpha adds defenses at the directory authority level from
22579   certain attacks that flood the network with relays; changes the queue
22580   for circuit create requests from a sized-based limit to a time-based
22581   limit; resumes building with MSVC on Windows; and fixes a wide variety
22582   of other issues.
22584   o Major bugfixes (directory authority):
22585     - When computing directory thresholds, ignore any rejected-as-sybil
22586       nodes during the computation so that they can't influence Fast,
22587       Guard, etc. (We should have done this for proposal 109.) Fixes
22588       bug 8146.
22589     - When marking a node as a likely sybil, reset its uptime metrics
22590       to zero, so that it cannot time towards getting marked as Guard,
22591       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
22592       bug 8147.
22594   o Major bugfixes:
22595     - When a TLS write is partially successful but incomplete, remember
22596       that the flushed part has been flushed, and notice that bytes were
22597       actually written. Reported and fixed pseudonymously. Fixes bug
22598       7708; bugfix on Tor 0.1.0.5-rc.
22599     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
22600       ID: these could be used to create unexpected streams and circuits
22601       which would count as "present" to some parts of Tor but "absent"
22602       to others, leading to zombie circuits and streams or to a bandwidth
22603       denial-of-service. Fixes bug 7889; bugfix on every released version
22604       of Tor. Reported by "oftc_must_be_destroyed".
22605     - Rename all macros in our local copy of queue.h to begin with "TOR_".
22606       This change seems the only good way to permanently prevent conflicts
22607       with queue.h on various operating systems. Fixes bug 8107; bugfix
22608       on 0.2.4.6-alpha.
22610   o Major features (relay):
22611     - Instead of limiting the number of queued onionskins (aka circuit
22612       create requests) to a fixed, hard-to-configure number, we limit
22613       the size of the queue based on how many we expect to be able to
22614       process in a given amount of time. We estimate the time it will
22615       take to process an onionskin based on average processing time
22616       of previous onionskins. Closes ticket 7291. You'll never have to
22617       configure MaxOnionsPending again.
22619   o Major features (portability):
22620     - Resume building correctly with MSVC and Makefile.nmake. This patch
22621       resolves numerous bugs and fixes reported by ultramage, including
22622       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
22623     - Make the ntor and curve25519 code build correctly with MSVC.
22624       Fix on 0.2.4.8-alpha.
22626   o Minor features:
22627     - When directory authorities are computing thresholds for flags,
22628       never let the threshold for the Fast flag fall below 4096
22629       bytes. Also, do not consider nodes with extremely low bandwidths
22630       when deciding thresholds for various directory flags. This change
22631       should raise our threshold for Fast relays, possibly in turn
22632       improving overall network performance; see ticket 1854. Resolves
22633       ticket 8145.
22634     - The Tor client now ignores sub-domain components of a .onion
22635       address. This change makes HTTP "virtual" hosting
22636       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
22637       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
22638       hosted on the same hidden service. Implements proposal 204.
22639     - We compute the overhead from passing onionskins back and forth to
22640       cpuworkers, and report it when dumping statistics in response to
22641       SIGUSR1. Supports ticket 7291.
22643   o Minor features (path selection):
22644     - When deciding whether we have enough descriptors to build circuits,
22645       instead of looking at raw relay counts, look at which fraction
22646       of (bandwidth-weighted) paths we're able to build. This approach
22647       keeps clients from building circuits if their paths are likely to
22648       stand out statistically. The default fraction of paths needed is
22649       taken from the consensus directory; you can override it with the
22650       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
22651     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
22652       and we have GeoIP information, also exclude all nodes with unknown
22653       countries "??" and "A1". This behavior is controlled by the
22654       new GeoIPExcludeUnknown option: you can make such nodes always
22655       excluded with "GeoIPExcludeUnknown 1", and disable the feature
22656       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
22657       gets you the default behavior. Implements feature 7706.
22658     - Path Use Bias: Perform separate accounting for successful circuit
22659       use. Keep separate statistics on stream attempt rates versus stream
22660       success rates for each guard. Provide configurable thresholds to
22661       determine when to emit log messages or disable use of guards that
22662       fail too many stream attempts. Resolves ticket 7802.
22664   o Minor features (log messages):
22665     - When learning a fingerprint for a bridge, log its corresponding
22666       transport type. Implements ticket 7896.
22667     - Improve the log message when "Bug/attack: unexpected sendme cell
22668       from client" occurs, to help us track bug 8093.
22670   o Minor bugfixes:
22671     - Remove a couple of extraneous semicolons that were upsetting the
22672       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
22673       bugfix on 0.2.2.1-alpha.
22674     - Remove a source of rounding error during path bias count scaling;
22675       don't count cannibalized circuits as used for path bias until we
22676       actually try to use them; and fix a circuit_package_relay_cell()
22677       warning message about n_chan==NULL. Fixes bug 7802.
22678     - Detect nacl when its headers are in a nacl/ subdirectory. Also,
22679       actually link against nacl when we're configured to use it. Fixes
22680       bug 7972; bugfix on 0.2.4.8-alpha.
22681     - Compile correctly with the --disable-curve25519 option. Fixes
22682       bug 8153; bugfix on 0.2.4.8-alpha.
22684   o Build improvements:
22685     - Do not report status verbosely from autogen.sh unless the -v flag
22686       is specified. Fixes issue 4664. Patch from Onizuka.
22687     - Replace all calls to snprintf() outside of src/ext with
22688       tor_snprintf(). Also remove the #define to replace snprintf with
22689       _snprintf on Windows; they have different semantics, and all of
22690       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
22691     - Try to detect if we are ever building on a platform where
22692       memset(...,0,...) does not set the value of a double to 0.0. Such
22693       platforms are permitted by the C standard, though in practice
22694       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
22695       currently support them, but it's better to detect them and fail
22696       than to perform erroneously.
22698   o Removed features:
22699     - Stop exporting estimates of v2 and v3 directory traffic shares
22700       in extrainfo documents. They were unneeded and sometimes inaccurate.
22701       Also stop exporting any v2 directory request statistics. Resolves
22702       ticket 5823.
22703     - Drop support for detecting and warning about versions of Libevent
22704       before 1.3e. Nothing reasonable ships with them any longer;
22705       warning the user about them shouldn't be needed. Resolves ticket
22706       6826.
22708   o Code simplifications and refactoring:
22709     - Rename "isin" functions to "contains", for grammar. Resolves
22710       ticket 5285.
22711     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
22712       with the natural logarithm function from the system libm. Resolves
22713       ticket 7599.
22716 Changes in version 0.2.4.9-alpha - 2013-01-15
22717   Tor 0.2.4.9-alpha provides a quick fix to make the new ntor handshake
22718   work more robustly.
22720   o Major bugfixes:
22721     - Fix backward compatibility logic when receiving an embedded ntor
22722       handshake tunneled in a CREATE cell. This clears up the "Bug:
22723       couldn't format CREATED cell" warning. Fixes bug 7959; bugfix
22724       on 0.2.4.8-alpha.
22727 Changes in version 0.2.4.8-alpha - 2013-01-14
22728   Tor 0.2.4.8-alpha introduces directory guards to reduce user enumeration
22729   risks, adds a new stronger and faster circuit handshake, and offers
22730   stronger and faster link encryption when both sides support it.
22732   o Major features:
22733     - Preliminary support for directory guards (proposal 207): when
22734       possible, clients now use their entry guards for non-anonymous
22735       directory requests. This can help prevent client enumeration. Note
22736       that this behavior only works when we have a usable consensus
22737       directory, and when options about what to download are more or less
22738       standard. In the future we should re-bootstrap from our guards,
22739       rather than re-bootstrapping from the preconfigured list of
22740       directory sources that ships with Tor. Resolves ticket 6526.
22741     - Tor relays and clients now support a better CREATE/EXTEND cell
22742       format, allowing the sender to specify multiple address, identity,
22743       and handshake types. Implements Robert Ransom's proposal 200;
22744       closes ticket 7199.
22746   o Major features (new circuit handshake):
22747     - Tor now supports a new circuit extension handshake designed by Ian
22748       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
22749       circuit extension handshake, later called "TAP", was a bit slow
22750       (especially on the relay side), had a fragile security proof, and
22751       used weaker keys than we'd now prefer. The new circuit handshake
22752       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
22753       function, making it significantly more secure than the older
22754       handshake, and significantly faster. Tor can use one of two built-in
22755       pure-C curve25519-donna implementations by Adam Langley, or it
22756       can link against the "nacl" library for a tuned version if present.
22758       The built-in version is very fast for 64-bit systems when building
22759       with GCC. The built-in 32-bit version is still faster than the
22760       old TAP protocol, but using libnacl is better on most such hosts.
22762       Clients don't currently use this protocol by default, since
22763       comparatively few clients support it so far. To try it, set
22764       UseNTorHandshake to 1.
22766       Implements proposal 216; closes ticket 7202.
22768   o Major features (better link encryption):
22769     - Relays can now enable the ECDHE TLS ciphersuites when available
22770       and appropriate. These ciphersuites let us negotiate forward-secure
22771       TLS secret keys more safely and more efficiently than with our
22772       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
22773       public relays prefer the (faster) P224 group, and bridges prefer
22774       the (more common) P256 group; you can override this with the
22775       TLSECGroup option.
22777       Enabling these ciphers was a little tricky, since for a long time,
22778       clients had been claiming to support them without actually doing
22779       so, in order to foil fingerprinting. But with the client-side
22780       implementation of proposal 198 in 0.2.3.17-beta, clients can now
22781       match the ciphers from recent Firefox versions *and* list the
22782       ciphers they actually mean, so relays can believe such clients
22783       when they advertise ECDHE support in their TLS ClientHello messages.
22785       This feature requires clients running 0.2.3.17-beta or later,
22786       and requires both sides to be running OpenSSL 1.0.0 or later
22787       with ECC support. OpenSSL 1.0.1, with the compile-time option
22788       "enable-ec_nistp_64_gcc_128", is highly recommended.
22790       Implements the relay side of proposal 198; closes ticket 7200.
22792   o Major bugfixes:
22793     - Avoid crashing when, as a relay without IPv6-exit support, a
22794       client insists on getting an IPv6 address or nothing. Fixes bug
22795       7814; bugfix on 0.2.4.7-alpha.
22797   o Minor features:
22798     - Improve circuit build timeout handling for hidden services.
22799       In particular: adjust build timeouts more accurately depending
22800       upon the number of hop-RTTs that a particular circuit type
22801       undergoes. Additionally, launch intro circuits in parallel
22802       if they timeout, and take the first one to reply as valid.
22803     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
22804       separate error codes; or at least, don't break for that reason.
22805       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
22806     - Update to the January 2 2013 Maxmind GeoLite Country database.
22808   o Minor features (testing):
22809     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
22810       (P-256) Diffie-Hellman handshakes to src/or/bench.
22811     - Add benchmark functions to test onion handshake performance.
22813   o Minor features (path bias detection):
22814     - Alter the Path Bias log messages to be more descriptive in terms
22815       of reporting timeouts and other statistics.
22816     - Create three levels of Path Bias log messages, as opposed to just
22817       two. These are configurable via consensus as well as via the torrc
22818       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
22819       The default values are 0.70, 0.50, and 0.30 respectively.
22820     - Separate the log message levels from the decision to drop guards,
22821       which also is available via torrc option PathBiasDropGuards.
22822       PathBiasDropGuards still defaults to 0 (off).
22823     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
22824       in combination with PathBiasExtremeRate.
22825     - Increase the default values for PathBiasScaleThreshold and
22826       PathBiasCircThreshold from (200, 20) to (300, 150).
22827     - Add in circuit usage accounting to path bias. If we try to use a
22828       built circuit but fail for any reason, it counts as path bias.
22829       Certain classes of circuits where the adversary gets to pick your
22830       destination node are exempt from this accounting. Usage accounting
22831       can be specifically disabled via consensus parameter or torrc.
22832     - Convert all internal path bias state to double-precision floating
22833       point, to avoid roundoff error and other issues.
22834     - Only record path bias information for circuits that have completed
22835       *two* hops. Assuming end-to-end tagging is the attack vector, this
22836       makes us more resilient to ambient circuit failure without any
22837       detection capability loss.
22839   o Minor bugfixes (log messages):
22840     - Rate-limit the "No circuits are opened. Relaxed timeout for a
22841       circuit with channel state open..." message to once per hour to
22842       keep it from filling the notice logs. Mitigates bug 7799 but does
22843       not fix the underlying cause. Bugfix on 0.2.4.7-alpha.
22844     - Avoid spurious warnings when configuring multiple client ports of
22845       which only some are nonlocal. Previously, we had claimed that some
22846       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
22847       0.2.3.3-alpha.
22849   o Code simplifications and refactoring:
22850     - Get rid of a couple of harmless clang warnings, where we compared
22851       enums to ints. These warnings are newly introduced in clang 3.2.
22852     - Split the onion.c file into separate modules for the onion queue
22853       and the different handshakes it supports.
22854     - Remove the marshalling/unmarshalling code for sending requests to
22855       cpuworkers over a socket, and instead just send structs. The
22856       recipient will always be the same Tor binary as the sender, so
22857       any encoding is overkill.
22860 Changes in version 0.2.4.7-alpha - 2012-12-24
22861   Tor 0.2.4.7-alpha introduces a new approach to providing fallback
22862   directory mirrors for more robust bootstrapping; fixes more issues where
22863   clients with changing network conditions refuse to make any circuits;
22864   adds initial support for exiting to IPv6 addresses; resumes being able
22865   to update our GeoIP database, and includes the geoip6 file this time;
22866   turns off the client-side DNS cache by default due to privacy risks;
22867   and fixes a variety of other issues.
22869   o Major features (client resilience):
22870     - Add a new "FallbackDir" torrc option to use when we can't use
22871       a directory mirror from the consensus (either because we lack a
22872       consensus, or because they're all down). Currently, all authorities
22873       are fallbacks by default, and there are no other default fallbacks,
22874       but that will change. This option will allow us to give clients a
22875       longer list of servers to try to get a consensus from when first
22876       connecting to the Tor network, and thereby reduce load on the
22877       directory authorities. Implements proposal 206, "Preconfigured
22878       directory sources for bootstrapping". We also removed the old
22879       "FallbackNetworkstatus" option, since we never got it working well
22880       enough to use it. Closes bug 572.
22881     - If we have no circuits open, use a relaxed timeout (the
22882       95-percentile cutoff) until a circuit succeeds. This heuristic
22883       should allow Tor to succeed at building circuits even when the
22884       network connection drastically changes. Should help with bug 3443.
22886   o Major features (IPv6):
22887     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
22888       connectivity, then set the IPv6Exit flag to 1. Also make sure your
22889       exit policy reads as you would like: the address * applies to all
22890       address families, whereas *4 is IPv4 address only, and *6 is IPv6
22891       addresses only. On the client side, you'll need to wait until the
22892       authorities have upgraded, wait for enough exits to support IPv6,
22893       apply the "IPv6Traffic" flag to a SocksPort, and use Socks5. Closes
22894       ticket 5547, implements proposal 117 as revised in proposal 208.
22896       We DO NOT recommend that clients with actual anonymity needs start
22897       using IPv6 over Tor yet, since not enough exits support it yet.
22899   o Major features (geoip database):
22900     - Maxmind began labelling Tor relays as being in country "A1",
22901       which breaks by-country node selection inside Tor. Now we use a
22902       script to replace "A1" ("Anonymous Proxy") entries in our geoip
22903       file with real country codes. This script fixes about 90% of "A1"
22904       entries automatically and uses manual country code assignments to
22905       fix the remaining 10%. See src/config/README.geoip for details.
22906       Fixes bug 6266. Also update to the December 5 2012 Maxmind GeoLite
22907       Country database, as modified above.
22909   o Major bugfixes (client-side DNS):
22910     - Turn off the client-side DNS cache by default. Updating and using
22911       the DNS cache is now configurable on a per-client-port
22912       level. SOCKSPort, DNSPort, etc lines may now contain
22913       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
22914       cache these types of DNS answers when we receive them from an
22915       exit node in response to an application request on this port, and
22916       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
22917       cached DNS answers of these types, we shouldn't use them. It's
22918       potentially risky to use cached DNS answers at the client, since
22919       doing so can indicate to one exit what answers we've gotten
22920       for DNS lookups in the past. With IPv6, this becomes especially
22921       problematic. Using cached DNS answers for requests on the same
22922       circuit would present less linkability risk, since all traffic
22923       on a circuit is already linkable, but it would also provide
22924       little performance benefit: the exit node caches DNS replies
22925       too. Implements a simplified version of Proposal 205. Implements
22926       ticket 7570.
22928   o Major bugfixes (other):
22929     - Alter circuit build timeout measurement to start at the point
22930       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
22931       initialization). This should make our timeout measurements more
22932       uniform. Previously, we were sometimes including ORconn setup time
22933       in our circuit build time measurements. Should resolve bug 3443.
22934     - Fix an assertion that could trigger in hibernate_go_dormant() when
22935       closing an or_connection_t: call channel_mark_for_close() rather
22936       than connection_mark_for_close(). Fixes bug 7267. Bugfix on
22937       0.2.4.4-alpha.
22938     - Include the geoip6 IPv6 GeoIP database in the tarball. Fixes bug
22939       7655; bugfix on 0.2.4.6-alpha.
22941   o Minor features:
22942     - Add a new torrc option "ServerTransportListenAddr" to let bridge
22943       operators select the address where their pluggable transports will
22944       listen for connections. Resolves ticket 7013.
22945     - Allow an optional $ before the node identity digest in the
22946       controller command GETINFO ns/id/<identity>, for consistency with
22947       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
22948     - Log packaged cell fullness as part of the heartbeat message.
22949       Diagnosis to try to determine the extent of bug 7743.
22951   o Minor features (IPv6):
22952     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
22953       prefer to hand out virtual IPv6 addresses, since there are more of
22954       them and we can't run out. To override this behavior and make IPv4
22955       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
22956       or DNSPort you're using for resolving. Implements ticket 7571.
22957     - AutomapHostsOnResolve responses are now randomized, to avoid
22958       annoying situations where Tor is restarted and applications
22959       connect to the wrong addresses.
22960     - Never try more than 1000 times to pick a new virtual address when
22961       AutomapHostsOnResolve is set. That's good enough so long as we
22962       aren't close to handing out our entire virtual address space;
22963       if you're getting there, it's best to switch to IPv6 virtual
22964       addresses anyway.
22966   o Minor bugfixes:
22967     - The ADDRMAP command can no longer generate an ill-formed error
22968       code on a failed MAPADDRESS. It now says "internal" rather than
22969       an English sentence fragment with spaces in the middle. Bugfix on
22970       Tor 0.2.0.19-alpha.
22971     - Fix log messages and comments to avoid saying "GMT" when we mean
22972       "UTC". Fixes bug 6113.
22973     - Compile on win64 using mingw64. Fixes bug 7260; patches from
22974       "yayooo".
22975     - Fix a crash when debugging unit tests on Windows: deallocate a
22976       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
22977       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
22979   o Renamed options:
22980     - The DirServer option is now DirAuthority, for consistency with
22981       current naming patterns. You can still use the old DirServer form.
22983   o Code simplification and refactoring:
22984     - Move the client-side address-map/virtual-address/DNS-cache code
22985       out of connection_edge.c into a new addressmap.c module.
22986     - Remove unused code for parsing v1 directories and "running routers"
22987       documents. Fixes bug 6887.
22990 Changes in version 0.2.3.25 - 2012-11-19
22991   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
22992   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
22993   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
22994   programmer, and friend. Unstinting in his dedication to the cause of
22995   freedom, he inspired and helped many of us as we began our work on
22996   anonymity, and inspires us still. Please honor his memory by writing
22997   software to protect people's freedoms, and by helping others to do so.
22999   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
23000   significantly reduced directory overhead (via microdescriptors),
23001   enormous crypto performance improvements for fast relays on new
23002   enough hardware, a new v3 TLS handshake protocol that can better
23003   resist fingerprinting, support for protocol obfuscation plugins (aka
23004   pluggable transports), better scalability for hidden services, IPv6
23005   support for bridges, performance improvements like allowing clients
23006   to skip the first round-trip on the circuit ("optimistic data") and
23007   refilling token buckets more often, a new "stream isolation" design
23008   to isolate different applications on different circuits, and many
23009   stability, security, and privacy fixes.
23011   o Major bugfixes:
23012     - Tor tries to wipe potentially sensitive data after using it, so
23013       that if some subsequent security failure exposes Tor's memory,
23014       the damage will be limited. But we had a bug where the compiler
23015       was eliminating these wipe operations when it decided that the
23016       memory was no longer visible to a (correctly running) program,
23017       hence defeating our attempt at defense in depth. We fix that
23018       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
23019       is unlikely to optimize away. Future versions of Tor may use
23020       a less ridiculously heavy approach for this. Fixes bug 7352.
23021       Reported in an article by Andrey Karpov.
23023   o Minor bugfixes:
23024     - Fix a harmless bug when opting against publishing a relay descriptor
23025       because DisableNetwork is set. Fixes bug 7464; bugfix on
23026       0.2.3.9-alpha.
23029 Changes in version 0.2.4.6-alpha - 2012-11-13
23030   Tor 0.2.4.6-alpha fixes an assert bug that has been plaguing relays,
23031   makes our defense-in-depth memory wiping more reliable, and begins to
23032   count IPv6 addresses in bridge statistics,
23034   o Major bugfixes:
23035     - Fix an assertion failure that could occur when closing a connection
23036       with a spliced rendezvous circuit. Fix for bug 7212; bugfix on
23037       Tor 0.2.4.4-alpha.
23038     - Tor tries to wipe potentially sensitive data after using it, so
23039       that if some subsequent security failure exposes Tor's memory,
23040       the damage will be limited. But we had a bug where the compiler
23041       was eliminating these wipe operations when it decided that the
23042       memory was no longer visible to a (correctly running) program,
23043       hence defeating our attempt at defense in depth. We fix that
23044       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
23045       is unlikely to optimize away. Future versions of Tor may use
23046       a less ridiculously heavy approach for this. Fixes bug 7352.
23047       Reported in an article by Andrey Karpov.
23049   o Minor features:
23050     - Add GeoIP database for IPv6 addresses. The new config option
23051       is GeoIPv6File.
23052     - Bridge statistics now count bridge clients connecting over IPv6:
23053       bridge statistics files now list "bridge-ip-versions" and
23054       extra-info documents list "geoip6-db-digest". The control protocol
23055       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
23056       implementation by "shkoo", addressing ticket 5055.
23058   o Minor bugfixes:
23059     - Warn when we are binding low ports when hibernation is enabled;
23060       previously we had warned when we were _advertising_ low ports with
23061       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
23062     - Fix a harmless bug when opting against publishing a relay descriptor
23063       because DisableNetwork is set. Fixes bug 7464; bugfix on
23064       0.2.3.9-alpha.
23065     - Add warning message when a managed proxy dies during configuration.
23066       Fixes bug 7195; bugfix on 0.2.4.2-alpha.
23067     - Fix a linking error when building tor-fw-helper without miniupnp.
23068       Fixes bug 7235; bugfix on 0.2.4.2-alpha. Fix by Anthony G. Basile.
23069     - Check for closing an or_connection_t without going through correct
23070       channel functions; emit a warning and then call
23071       connection_or_close_for_error() so we don't assert as in bugs 7212
23072       and 7267.
23073     - Compile correctly on compilers without C99 designated initializer
23074       support. Fixes bug 7286; bugfix on 0.2.4.4-alpha.
23075     - Avoid a possible assert that can occur when channel_send_destroy() is
23076       called on a channel in CHANNEL_STATE_CLOSING, CHANNEL_STATE_CLOSED,
23077       or CHANNEL_STATE_ERROR when the Tor process is resumed after being
23078       blocked for a long interval. Fixes bug 7350; bugfix on 0.2.4.4-alpha.
23079     - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
23080       Fixes bug 7422; bugfix on 0.2.4.4-alpha.
23082   o Code simplification and refactoring:
23083     - Start using OpenBSD's implementation of queue.h, so that we don't
23084       need to hand-roll our own pointer and list structures whenever we
23085       need them. (We can't rely on a sys/queue.h, since some operating
23086       systems don't have them, and the ones that do have them don't all
23087       present the same extensions.)
23090 Changes in version 0.2.4.5-alpha - 2012-10-25
23091   Tor 0.2.4.5-alpha comes hard at the heels of 0.2.4.4-alpha, to fix
23092   two important security vulnerabilities that could lead to remotely
23093   triggerable relay crashes, fix a major bug that was preventing clients
23094   from choosing suitable exit nodes, and refactor some of our code.
23096   o Major bugfixes (security, also in 0.2.3.24-rc):
23097     - Fix a group of remotely triggerable assertion failures related to
23098       incorrect link protocol negotiation. Found, diagnosed, and fixed
23099       by "some guy from France". Fix for CVE-2012-2250; bugfix on
23100       0.2.3.6-alpha.
23101     - Fix a denial of service attack by which any directory authority
23102       could crash all the others, or by which a single v2 directory
23103       authority could crash everybody downloading v2 directory
23104       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
23106   o Major bugfixes (also in 0.2.3.24-rc):
23107     - When parsing exit policy summaries from microdescriptors, we had
23108       previously been ignoring the last character in each one, so that
23109       "accept 80,443,8080" would be treated by clients as indicating
23110       a node that allows access to ports 80, 443, and 808. That would
23111       lead to clients attempting connections that could never work,
23112       and ignoring exit nodes that would support their connections. Now
23113       clients parse these exit policy summaries correctly. Fixes bug 7192;
23114       bugfix on 0.2.3.1-alpha.
23116   o Minor bugfixes (also in 0.2.3.24-rc):
23117     - Clients now consider the ClientRejectInternalAddresses config option
23118       when using a microdescriptor consensus stanza to decide whether
23119       an exit relay would allow exiting to an internal address. Fixes
23120       bug 7190; bugfix on 0.2.3.1-alpha.
23122   o Minor bugfixes:
23123     - Only disable TLS session ticket support when running as a TLS
23124       server. Now clients will blend better with regular Firefox
23125       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
23127   o Code simplification and refactoring:
23128     - Start using OpenBSD's implementation of queue.h (originally by
23129       Niels Provos).
23130     - Move the entry node code from circuitbuild.c to its own file.
23131     - Move the circuit build timeout tracking code from circuitbuild.c
23132       to its own file.
23135 Changes in version 0.2.3.24-rc - 2012-10-25
23136   Tor 0.2.3.24-rc fixes two important security vulnerabilities that
23137   could lead to remotely triggerable relay crashes, and fixes
23138   a major bug that was preventing clients from choosing suitable exit
23139   nodes.
23141   o Major bugfixes (security):
23142     - Fix a group of remotely triggerable assertion failures related to
23143       incorrect link protocol negotiation. Found, diagnosed, and fixed
23144       by "some guy from France". Fix for CVE-2012-2250; bugfix on
23145       0.2.3.6-alpha.
23146     - Fix a denial of service attack by which any directory authority
23147       could crash all the others, or by which a single v2 directory
23148       authority could crash everybody downloading v2 directory
23149       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
23151   o Major bugfixes:
23152     - When parsing exit policy summaries from microdescriptors, we had
23153       previously been ignoring the last character in each one, so that
23154       "accept 80,443,8080" would be treated by clients as indicating
23155       a node that allows access to ports 80, 443, and 808. That would
23156       lead to clients attempting connections that could never work,
23157       and ignoring exit nodes that would support their connections. Now
23158       clients parse these exit policy summaries correctly. Fixes bug 7192;
23159       bugfix on 0.2.3.1-alpha.
23161   o Minor bugfixes:
23162     - Clients now consider the ClientRejectInternalAddresses config option
23163       when using a microdescriptor consensus stanza to decide whether
23164       an exit relay would allow exiting to an internal address. Fixes
23165       bug 7190; bugfix on 0.2.3.1-alpha.
23168 Changes in version 0.2.4.4-alpha - 2012-10-20
23169   Tor 0.2.4.4-alpha adds a new v3 directory authority, fixes a privacy
23170   vulnerability introduced by a change in OpenSSL, fixes a remotely
23171   triggerable assert, and adds new channel_t and circuitmux_t abstractions
23172   that will make it easier to test new connection transport and cell
23173   scheduling algorithms.
23175   o New directory authorities (also in 0.2.3.23-rc):
23176     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
23177       authority. Closes ticket 5749.
23179   o Major bugfixes (security/privacy, also in 0.2.3.23-rc):
23180     - Disable TLS session tickets. OpenSSL's implementation was giving
23181       our TLS session keys the lifetime of our TLS context objects, when
23182       perfect forward secrecy would want us to discard anything that
23183       could decrypt a link connection as soon as the link connection
23184       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
23185       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
23186     - Discard extraneous renegotiation attempts once the V3 link
23187       protocol has been initiated. Failure to do so left us open to
23188       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
23189       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
23191   o Internal abstraction features:
23192     - Introduce new channel_t abstraction between circuits and
23193       or_connection_t to allow for implementing alternate OR-to-OR
23194       transports. A channel_t is an abstract object which can either be a
23195       cell-bearing channel, which is responsible for authenticating and
23196       handshaking with the remote OR and transmitting cells to and from
23197       it, or a listening channel, which spawns new cell-bearing channels
23198       at the request of remote ORs. Implements part of ticket 6465.
23199     - Also new is the channel_tls_t subclass of channel_t, adapting it
23200       to the existing or_connection_t code. The V2/V3 protocol handshaking
23201       code which formerly resided in command.c has been moved below the
23202       channel_t abstraction layer and may be found in channeltls.c now.
23203       Implements the rest of ticket 6465.
23204     - Introduce new circuitmux_t storing the queue of circuits for
23205       a channel; this encapsulates and abstracts the queue logic and
23206       circuit selection policy, and allows the latter to be overridden
23207       easily by switching out a policy object. The existing EWMA behavior
23208       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
23210   o Required libraries:
23211     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
23212       strongly recommended.
23214   o Minor features:
23215     - Warn users who run hidden services on a Tor client with
23216       UseEntryGuards disabled that their hidden services will be
23217       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
23218       attack which motivated Tor to support entry guards in the first
23219       place). Resolves ticket 6889.
23220     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
23221       dhill. Resolves ticket 6982.
23222     - Option OutboundBindAddress can be specified multiple times and
23223       accepts IPv6 addresses. Resolves ticket 6876.
23225   o Minor bugfixes (also in 0.2.3.23-rc):
23226     - Don't serve or accept v2 hidden service descriptors over a
23227       relay's DirPort. It's never correct to do so, and disabling it
23228       might make it more annoying to exploit any bugs that turn up in the
23229       descriptor-parsing code. Fixes bug 7149.
23230     - Fix two cases in src/or/transports.c where we were calling
23231       fmt_addr() twice in a parameter list. Bug found by David
23232       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
23233     - Fix memory leaks whenever we logged any message about the "path
23234       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
23235     - When relays refuse a "create" cell because their queue of pending
23236       create cells is too big (typically because their cpu can't keep up
23237       with the arrival rate), send back reason "resource limit" rather
23238       than reason "internal", so network measurement scripts can get a
23239       more accurate picture. Fixes bug 7037; bugfix on 0.1.1.11-alpha.
23241   o Minor bugfixes:
23242     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
23243     - Free some more still-in-use memory at exit, to make hunting for
23244       memory leaks easier. Resolves bug 7029.
23245     - When a Tor client gets a "truncated" relay cell, the first byte of
23246       its payload specifies why the circuit was truncated. We were
23247       ignoring this 'reason' byte when tearing down the circuit, resulting
23248       in the controller not being told why the circuit closed. Now we
23249       pass the reason from the truncated cell to the controller. Bugfix
23250       on 0.1.2.3-alpha; fixes bug 7039.
23251     - Downgrade "Failed to hand off onionskin" messages to "debug"
23252       severity, since they're typically redundant with the "Your computer
23253       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
23254     - Make clients running with IPv6 bridges connect over IPv6 again,
23255       even without setting new config options ClientUseIPv6 and
23256       ClientPreferIPv6ORPort. Fixes bug 6757; bugfix on 0.2.4.1-alpha.
23257     - Use square brackets around IPv6 addresses in numerous places
23258       that needed them, including log messages, HTTPS CONNECT proxy
23259       requests, TransportProxy statefile entries, and pluggable transport
23260       extra-info lines. Fixes bug 7011; patch by David Fifield.
23262   o Code refactoring and cleanup:
23263     - Source files taken from other packages now reside in src/ext;
23264       previously they were scattered around the rest of Tor.
23265     - Avoid use of reserved identifiers in our C code. The C standard
23266       doesn't like us declaring anything that starts with an
23267       underscore, so let's knock it off before we get in trouble. Fix
23268       for bug 1031; bugfix on the first Tor commit.
23271 Changes in version 0.2.3.23-rc - 2012-10-20
23272   Tor 0.2.3.23-rc adds a new v3 directory authority, fixes a privacy
23273   vulnerability introduced by a change in OpenSSL, and fixes a variety
23274   of smaller bugs in preparation for the release.
23276   o New directory authorities:
23277     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
23278       authority. Closes ticket 5749.
23280   o Major bugfixes (security/privacy):
23281     - Disable TLS session tickets. OpenSSL's implementation was giving
23282       our TLS session keys the lifetime of our TLS context objects, when
23283       perfect forward secrecy would want us to discard anything that
23284       could decrypt a link connection as soon as the link connection
23285       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
23286       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
23287     - Discard extraneous renegotiation attempts once the V3 link
23288       protocol has been initiated. Failure to do so left us open to
23289       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
23290       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
23292   o Major bugfixes:
23293     - Fix a possible crash bug when checking for deactivated circuits
23294       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
23295       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
23297   o Minor bugfixes (on 0.2.3.x):
23298     - Fix two cases in src/or/transports.c where we were calling
23299       fmt_addr() twice in a parameter list. Bug found by David
23300       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
23301     - Convert an assert in the pathbias code to a log message. The assert
23302       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
23303       bugfix on 0.2.3.17-beta.
23304     - Fix memory leaks whenever we logged any message about the "path
23305       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
23307   o Minor bugfixes (on 0.2.2.x and earlier):
23308     - Don't serve or accept v2 hidden service descriptors over a relay's
23309       DirPort. It's never correct to do so, and disabling it might
23310       make it more annoying to exploit any bugs that turn up in the
23311       descriptor-parsing code. Fixes bug 7149.
23312     - When relays refuse a "create" cell because their queue of pending
23313       create cells is too big (typically because their cpu can't keep up
23314       with the arrival rate), send back reason "resource limit" rather
23315       than reason "internal", so network measurement scripts can get a
23316       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
23317     - Correct file sizes when reading binary files on Cygwin, to avoid
23318       a bug where Tor would fail to read its state file. Fixes bug 6844;
23319       bugfix on 0.1.2.7-alpha.
23320     - Avoid undefined behavior when parsing the list of supported
23321       rendezvous/introduction protocols in a hidden service descriptor.
23322       Previously, Tor would have confused (as-yet-unused) protocol version
23323       numbers greater than 32 with lower ones on many platforms. Fixes
23324       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
23326   o Documentation fixes:
23327     - Clarify that hidden services are TCP only. Fixes bug 6024.
23330 Changes in version 0.2.4.3-alpha - 2012-09-22
23331   Tor 0.2.4.3-alpha fixes another opportunity for a remotely triggerable
23332   assertion, resumes letting relays test reachability of their DirPort,
23333   and cleans up a bunch of smaller bugs.
23335   o Security fixes:
23336     - Fix an assertion failure in tor_timegm() that could be triggered
23337       by a badly formatted directory object. Bug found by fuzzing with
23338       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23340   o Major bugfixes:
23341     - Fix a possible crash bug when checking for deactivated circuits
23342       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
23343       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
23344     - Allow routers to detect that their own DirPorts are running. When
23345       we removed support for versions_supports_begindir, we also
23346       accidentally removed the mechanism we used to self-test our
23347       DirPort. Diagnosed with help from kargig. Fixes bugs 6814 and 6815;
23348       bugfix on 0.2.4.2-alpha.
23350   o Security features:
23351     - Switch to a completely time-invariant approach for picking nodes
23352       weighted by bandwidth. Our old approach would run through the
23353       part of the loop after it had made its choice slightly slower
23354       than it ran through the part of the loop before it had made its
23355       choice. Addresses ticket 6538.
23356     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
23357       by tor2web clients allows hidden services to identify tor2web
23358       clients through their repeated selection of the same rendezvous
23359       and introduction point circuit endpoints (their guards). Resolves
23360       ticket 6888.
23362   o Minor features:
23363     - Enable Tor to read configuration, state, and key information from
23364       a FIFO. Previously Tor would only read from files with a positive
23365       stat.st_size. Code from meejah; fixes bug 6044.
23367   o Minor bugfixes:
23368     - Correct file sizes when reading binary files on Cygwin, to avoid
23369       a bug where Tor would fail to read its state file. Fixes bug 6844;
23370       bugfix on 0.1.2.7-alpha.
23371     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
23372       bugfix on 0.2.0.3-alpha.
23373     - When complaining about a client port on a public address, log
23374       which address we're complaining about. Fixes bug 4020; bugfix on
23375       0.2.3.3-alpha. Patch by Tom Fitzhenry.
23376     - Convert an assert in the pathbias code to a log message. The assert
23377       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
23378       bugfix on 0.2.3.17-beta.
23379     - Our new buildsystem was overzealous about rebuilding manpages: it
23380       would rebuild them all whenever any one of them changed. Now our
23381       dependency checking should be correct. Fixes bug 6843; bugfix on
23382       0.2.4.1-alpha.
23383     - Don't do reachability testing over IPv6 unless AuthDirPublishIPv6
23384       is set. Fixes bug 6880. Bugfix on 0.2.4.1-alpha.
23385     - Correct log printout about which address family is preferred
23386       when connecting to a bridge with both an IPv4 and IPv6 OR port.
23387       Fixes bug 6884; bugfix on 0.2.4.1-alpha.
23389   o Minor bugfixes (code cleanliness):
23390     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
23391       with large values. This situation was untriggered, but nevertheless
23392       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
23393     - Reject consensus votes with more than 64 known-flags. We aren't even
23394       close to that limit yet, and our code doesn't handle it correctly.
23395       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
23396     - Avoid undefined behavior when parsing the list of supported
23397       rendezvous/introduction protocols in a hidden service descriptor.
23398       Previously, Tor would have confused (as-yet-unused) protocol version
23399       numbers greater than 32 with lower ones on many platforms. Fixes
23400       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
23401     - Fix handling of rendezvous client authorization types over 8.
23402       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
23403     - Fix building with older versions of GCC (2.95, for one) that don't
23404       like preprocessor directives inside macro arguments. Found by
23405       grarpamp. Fixes bug 6842; bugfix on 0.2.4.2-alpha.
23406     - Switch weighted node selection rule from using a list of doubles
23407       to using a list of int64_t. This change should make the process
23408       slightly easier to debug and maintain. Needed to finish ticket 6538.
23410   o Code simplification and refactoring:
23411     - Move the generic "config" code into a new file, and have "config.c"
23412       hold only torrc- and state-related code. Resolves ticket 6823.
23413     - Move the core of our "choose a weighted element at random" logic
23414       into its own function, and give it unit tests. Now the logic is
23415       testable, and a little less fragile too.
23416     - Removed the testing_since field of node_t, which hasn't been used
23417       for anything since 0.2.0.9-alpha.
23419   o Documentation fixes:
23420     - Clarify that hidden services are TCP only. Fixes bug 6024.
23421     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
23422       0.2.3.14-alpha.
23425 Changes in version 0.2.3.22-rc - 2012-09-11
23426   Tor 0.2.3.22-rc fixes another opportunity for a remotely triggerable
23427   assertion.
23429   o Security fixes:
23430     - Fix an assertion failure in tor_timegm() that could be triggered
23431       by a badly formatted directory object. Bug found by fuzzing with
23432       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23434   o Minor bugfixes:
23435     - Avoid segfault when starting up having run with an extremely old
23436       version of Tor and parsing its state file. Fixes bug 6801; bugfix
23437       on 0.2.2.23-alpha.
23440 Changes in version 0.2.2.39 - 2012-09-11
23441   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
23442   assertions.
23444   o Security fixes:
23445     - Fix an assertion failure in tor_timegm() that could be triggered
23446       by a badly formatted directory object. Bug found by fuzzing with
23447       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23448     - Do not crash when comparing an address with port value 0 to an
23449       address policy. This bug could have been used to cause a remote
23450       assertion failure by or against directory authorities, or to
23451       allow some applications to crash clients. Fixes bug 6690; bugfix
23452       on 0.2.1.10-alpha.
23455 Changes in version 0.2.4.2-alpha - 2012-09-10
23456   Tor 0.2.4.2-alpha enables port forwarding for pluggable transports,
23457   raises the default rate limiting even more, and makes the bootstrapping
23458   log messages less noisy.
23460   o Major features:
23461     - Automatically forward the TCP ports of pluggable transport
23462       proxies using tor-fw-helper if PortForwarding is enabled. Implements
23463       ticket 4567.
23465   o Major bugfixes:
23466     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
23467       to 1GB/1GB. The previous defaults were intended to be "basically
23468       infinite", but it turns out they're now limiting our 100mbit+
23469       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
23470       last time we raised it).
23472   o Minor features:
23473     - Detect when we're running with a version of OpenSSL other than the
23474       one we compiled with. This has occasionally given people hard-to-
23475       track-down errors.
23476     - Log fewer lines at level "notice" about our OpenSSL and Libevent
23477       versions and capabilities when everything is going right. Resolves
23478       part of ticket 6736.
23479     - Directory authorities no long accept descriptors for any version of
23480       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
23481       These versions are insecure, unsupported, or both. Implements
23482       ticket 6789.
23484   o Minor bugfixes:
23485     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
23486       to start with a triple-underscore so the controller won't touch it.
23487       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
23488     - Avoid segfault when starting up having run with an extremely old
23489       version of Tor and parsing its state file. Fixes bug 6801; bugfix
23490       on 0.2.2.23-alpha.
23491     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
23492       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
23493     - Don't follow the NULL pointer if microdescriptor generation fails.
23494       (This does not appear to be triggerable, but it's best to be safe.)
23495       Found by "f. tp.". Fixes bug 6797; bugfix on 0.2.4.1-alpha.
23496     - Fix mis-declared dependencies on src/common/crypto.c and
23497       src/or/tor_main.c that could break out-of-tree builds under some
23498       circumstances. Fixes bug 6778; bugfix on 0.2.4.1-alpha.
23499     - Avoid a warning when building common_sha1.i out of tree. Fixes bug
23500       6778; bugfix on 0.2.4.1-alpha.
23501     - Fix a harmless (in this case) build warning for implicitly
23502       converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
23504   o Removed features:
23505     - Now that all versions before 0.2.2.x are disallowed, we no longer
23506       need to work around their missing features. Thus we can remove a
23507       bunch of compatibility code.
23509   o Code refactoring:
23510     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
23511       TCP ports to forward. In the past it only accepted two ports:
23512       the ORPort and the DirPort.
23515 Changes in version 0.2.4.1-alpha - 2012-09-05
23516   Tor 0.2.4.1-alpha lets bridges publish their pluggable transports to
23517   bridgedb; lets relays use IPv6 addresses and directory authorities
23518   advertise them; and switches to a cleaner build interface.
23520   This is the first alpha release in a new series, so expect there to
23521   be bugs. Users who would rather test out a more stable branch should
23522   stay with 0.2.3.x for now.
23524   o Major features (bridges):
23525     - Bridges now report the pluggable transports they support to the
23526       bridge authority, so it can pass the supported transports on to
23527       bridgedb and/or eventually do reachability testing. Implements
23528       ticket 3589.
23530   o Major features (IPv6):
23531     - Bridge authorities now accept IPv6 bridge addresses and include
23532       them in network status documents. Implements ticket 5534.
23533     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
23534       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
23535       to happen. Implements ticket 5535.
23536     - All kind of relays, not just bridges, can now advertise an IPv6
23537       OR port. Implements ticket 6362.
23538     - Directory authorities vote on IPv6 OR ports using the new consensus
23539       method 14. Implements ticket 6363.
23541   o Major features (build):
23542     - Switch to a nonrecursive Makefile structure. Now instead of each
23543       Makefile.am invoking other Makefile.am's, there is a master
23544       Makefile.am that includes the others. This change makes our build
23545       process slightly more maintainable, and improves parallelism for
23546       building with make -j. Original patch by Stewart Smith; various
23547       fixes by Jim Meyering.
23548     - Where available, we now use automake's "silent" make rules by
23549       default, so that warnings are easier to spot. You can get the old
23550       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
23552   o Minor features (code security and spec conformance):
23553     - Clear keys and key-derived material left on the stack in
23554       rendservice.c and rendclient.c. Check return value of
23555       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
23556       These fixes should make us more forward-secure against cold-boot
23557       attacks and the like. Fixes bug 2385.
23558     - Reject EXTEND cells sent to nonexistent streams. According to the
23559       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
23560       we were only checking for stream IDs that were currently in use.
23561       Found while hunting for more instances of bug 6271. Bugfix on
23562       0.0.2pre8, which introduced incremental circuit construction.
23564   o Minor features (streamlining);
23565     - No longer include the "opt" prefix when generating routerinfos
23566       or v2 directories: it has been needless since Tor 0.1.2. Closes
23567       ticket 5124.
23568     - Remove some now-needless code that tried to aggressively flush
23569       OR connections as data was added to them. Since 0.2.0.1-alpha, our
23570       cell queue logic has saved us from the failure mode that this code
23571       was supposed to prevent. Removing this code will limit the number
23572       of baroque control flow paths through Tor's network logic. Reported
23573       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
23575   o Minor features (controller):
23576     - Add a "GETINFO signal/names" control port command. Implements
23577       ticket 3842.
23578     - Provide default values for all options via "GETINFO config/defaults".
23579       Implements ticket 4971.
23581   o Minor features (IPv6):
23582     - New config option "AuthDirHasIPv6Connectivity 1" that directory
23583       authorities should set if they have IPv6 connectivity and want to
23584       do reachability tests for IPv6 relays. Implements feature 5974.
23585     - A relay with an IPv6 OR port now sends that address in NETINFO
23586       cells (in addition to its other address). Implements ticket 6364.
23588   o Minor features (log messages):
23589     - Omit the first heartbeat log message, because it never has anything
23590       useful to say, and it clutters up the bootstrapping messages.
23591       Resolves ticket 6758.
23592     - Don't log about reloading the microdescriptor cache at startup. Our
23593       bootstrap warnings are supposed to tell the user when there's a
23594       problem, and our bootstrap notices say when there isn't. Resolves
23595       ticket 6759; bugfix on 0.2.2.6-alpha.
23596     - Don't log "I learned some more directory information" when we're
23597       reading cached directory information. Reserve it for when new
23598       directory information arrives in response to a fetch. Resolves
23599       ticket 6760.
23600     - Prevent rounding error in path bias counts when scaling
23601       them down, and use the correct scale factor default. Also demote
23602       some path bias related log messages down a level and make others
23603       less scary sounding. Fixes bug 6647. Bugfix against 0.2.3.17-beta.
23604     - We no longer warn so much when generating manpages from their
23605       asciidoc source.
23607   o Code simplifications and refactoring:
23608     - Enhance our internal sscanf replacement so that we can eliminate
23609       the last remaining uses of the system sscanf. (Though those uses
23610       of sscanf were safe, sscanf itself is generally error prone, so
23611       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
23612       CID 448.
23613     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
23614     - Move last_reachable and testing_since from routerinfo_t to node_t.
23615       Implements ticket 5529.
23616     - Add replaycache_t structure, functions and unit tests, then refactor
23617       rend_service_introduce() to be more clear to read, improve, debug,
23618       and test. Resolves bug 6177.
23619     - Finally remove support for malloc_good_size and malloc_usable_size.
23620       We had hoped that these functions would let us eke a little more
23621       memory out of our malloc implementation. Unfortunately, the only
23622       implementations that provided these functions are also ones that
23623       are already efficient about not overallocation: they never got us
23624       more than 7 or so bytes per allocation. Removing them saves us a
23625       little code complexity and a nontrivial amount of build complexity.
23627   o New requirements:
23628     - Tor maintainers now require Automake version 1.9 or later to build
23629       Tor from the Git repository. (Automake is not required when building
23630       from a source distribution.)
23633 Changes in version 0.2.3.21-rc - 2012-09-05
23634   Tor 0.2.3.21-rc is the fourth release candidate for the Tor 0.2.3.x
23635   series. It fixes a trio of potential security bugs, fixes a bug where
23636   we were leaving some of the fast relays out of the microdescriptor
23637   consensus, resumes interpreting "ORPort 0" and "DirPort 0" correctly,
23638   and cleans up other smaller issues.
23640   o Major bugfixes (security):
23641     - Tear down the circuit if we get an unexpected SENDME cell. Clients
23642       could use this trick to make their circuits receive cells faster
23643       than our flow control would have allowed, or to gum up the network,
23644       or possibly to do targeted memory denial-of-service attacks on
23645       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
23646       from July 2002, before the release of Tor 0.0.0. We had committed
23647       this patch previously, but we had to revert it because of bug 6271.
23648       Now that 6271 is fixed, this patch appears to work.
23649     - Reject any attempt to extend to an internal address. Without
23650       this fix, a router could be used to probe addresses on an internal
23651       network to see whether they were accepting connections. Fixes bug
23652       6710; bugfix on 0.0.8pre1.
23653     - Do not crash when comparing an address with port value 0 to an
23654       address policy. This bug could have been used to cause a remote
23655       assertion failure by or against directory authorities, or to
23656       allow some applications to crash clients. Fixes bug 6690; bugfix
23657       on 0.2.1.10-alpha.
23659   o Major bugfixes:
23660     - Remove the upper bound on microdescriptor length. We were hitting
23661       the limit for routers with complex exit policies or family
23662       declarations, causing clients to not use them. Fixes the first
23663       piece of bug 6404; fix on 0.2.2.6-alpha.
23664     - Detect "ORPort 0" as meaning, uniformly, that we're not running
23665       as a relay. Previously, some of our code would treat the presence
23666       of any ORPort line as meaning that we should act like a relay,
23667       even though our new listener code would correctly not open any
23668       ORPorts for ORPort 0. Similar bugs in other Port options are also
23669       fixed. Fixes the first half of bug 6507; bugfix on 0.2.3.3-alpha.
23671   o Minor bugfixes:
23672     - Avoid a pair of double-free and use-after-mark bugs that can
23673       occur with certain timings in canceled and re-received DNS
23674       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
23675     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
23676       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
23677     - Allow one-hop directory fetching circuits the full "circuit build
23678       timeout" period, rather than just half of it, before failing them
23679       and marking the relay down. This fix should help reduce cases where
23680       clients declare relays (or worse, bridges) unreachable because
23681       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
23682       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
23683       30 seconds.
23684     - Authorities no longer include any router in their microdescriptor
23685       consensuses for which they couldn't generate or agree on a
23686       microdescriptor. Fixes the second piece of bug 6404; fix on
23687       0.2.2.6-alpha.
23688     - Detect and reject attempts to specify both "FooPort" and
23689       "FooPort 0" in the same configuration domain. (It's still okay
23690       to have a FooPort in your configuration file, and use "FooPort 0"
23691       on the command line to disable it.) Fixes the second half of bug
23692       6507; bugfix on 0.2.3.3-alpha.
23693     - Make wildcarded addresses (that is, ones beginning with "*.") work
23694       when provided via the controller's MapAddress command. Previously,
23695       they were accepted, but we never actually noticed that they were
23696       wildcards. Fixes bug 6244; bugfix on 0.2.3.9-alpha.
23697     - Avoid crashing on a malformed state file where EntryGuardPathBias
23698       precedes EntryGuard. Fix for bug 6774; bugfix on 0.2.3.17-beta.
23699     - Add a (probably redundant) memory clear between iterations of
23700       the router status voting loop, to prevent future coding errors
23701       where data might leak between iterations of the loop. Resolves
23702       ticket 6514.
23704   o Minor bugfixes (log messages):
23705     - Downgrade "set buildtimeout to low value" messages to "info"
23706       severity; they were never an actual problem, there was never
23707       anything reasonable to do about them, and they tended to spam logs
23708       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
23709     - Downgrade path-bias warning messages to "info". We'll try to get
23710       them working better in 0.2.4. Add internal circuit construction
23711       state to protect against the noisy warn message "Unexpectedly high
23712       circuit_successes". Also add some additional rate-limited notice
23713       messages to help determine the root cause of the warn. Fixes bug
23714       6475. Bugfix against 0.2.3.17-beta.
23715     - Move log message when unable to find a microdesc in a routerstatus
23716       entry to parse time. Previously we'd spam this warning every time
23717       we tried to figure out which microdescriptors to download. Fixes
23718       the third piece of bug 6404; fix on 0.2.3.18-rc.
23720   o Minor features:
23721     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
23722       change when the authority is deciding whether to accept a newly
23723       uploaded descriptor. Implements ticket 6423.
23724     - Add missing documentation for consensus and microdesc files.
23725       Resolves ticket 6732.
23728 Changes in version 0.2.2.38 - 2012-08-12
23729   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
23730   attack that could in theory leak path information.
23732   o Security fixes:
23733     - Avoid an uninitialized memory read when reading a vote or consensus
23734       document that has an unrecognized flavor name. This read could
23735       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
23736     - Try to leak less information about what relays a client is
23737       choosing to a side-channel attacker. Previously, a Tor client would
23738       stop iterating through the list of available relays as soon as it
23739       had chosen one, thus finishing a little earlier when it picked
23740       a router earlier in the list. If an attacker can recover this
23741       timing information (nontrivial but not proven to be impossible),
23742       they could learn some coarse-grained information about which relays
23743       a client was picking (middle nodes in particular are likelier to
23744       be affected than exits). The timing attack might be mitigated by
23745       other factors (see bug 6537 for some discussion), but it's best
23746       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
23749 Changes in version 0.2.3.20-rc - 2012-08-05
23750   Tor 0.2.3.20-rc is the third release candidate for the Tor 0.2.3.x
23751   series. It fixes a pair of code security bugs and a potential anonymity
23752   issue, updates our RPM spec files, and cleans up other smaller issues.
23754   o Security fixes:
23755     - Avoid read-from-freed-memory and double-free bugs that could occur
23756       when a DNS request fails while launching it. Fixes bug 6480;
23757       bugfix on 0.2.0.1-alpha.
23758     - Avoid an uninitialized memory read when reading a vote or consensus
23759       document that has an unrecognized flavor name. This read could
23760       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
23761     - Try to leak less information about what relays a client is
23762       choosing to a side-channel attacker. Previously, a Tor client would
23763       stop iterating through the list of available relays as soon as it
23764       had chosen one, thus finishing a little earlier when it picked
23765       a router earlier in the list. If an attacker can recover this
23766       timing information (nontrivial but not proven to be impossible),
23767       they could learn some coarse-grained information about which relays
23768       a client was picking (middle nodes in particular are likelier to
23769       be affected than exits). The timing attack might be mitigated by
23770       other factors (see bug 6537 for some discussion), but it's best
23771       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
23773   o Minor features:
23774     - Try to make the warning when giving an obsolete SOCKSListenAddress
23775       a little more useful.
23776     - Terminate active server managed proxies if Tor stops being a
23777       relay. Addresses parts of bug 6274; bugfix on 0.2.3.6-alpha.
23778     - Provide a better error message about possible OSX Asciidoc failure
23779       reasons. Fixes bug 6436.
23780     - Warn when Tor is configured to use accounting in a way that can
23781       link a hidden service to some other hidden service or public
23782       address. Resolves ticket 6490.
23784   o Minor bugfixes:
23785     - Check return value of fputs() when writing authority certificate
23786       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
23787     - Ignore ServerTransportPlugin lines when Tor is not configured as
23788       a relay. Fixes bug 6274; bugfix on 0.2.3.6-alpha.
23789     - When disabling guards for having too high a proportion of failed
23790       circuits, make sure to look at each guard. Fixes bug 6397; bugfix
23791       on 0.2.3.17-beta.
23793   o Packaging (RPM):
23794     - Update our default RPM spec files to work with mock and rpmbuild
23795       on RHEL/Fedora. They have an updated set of dependencies and
23796       conflicts, a fix for an ancient typo when creating the "_tor"
23797       user, and better instructions. Thanks to Ondrej Mikle for the
23798       patch series. Fixes bug 6043.
23800   o Testing:
23801     - Make it possible to set the TestingTorNetwork configuration
23802       option using AlternateDirAuthority and AlternateBridgeAuthority
23803       as an alternative to setting DirServer. Addresses ticket 6377.
23805   o Documentation:
23806     - Clarify the documentation for the Alternate*Authority options.
23807       Fixes bug 6387.
23808     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
23810   o Code simplification and refactoring:
23811     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
23812       10 lines. Also, don't nest them. Doing so in the past has
23813       led to hard-to-debug code. The new style is to use the
23814       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
23817 Changes in version 0.2.3.19-rc - 2012-07-06
23818   Tor 0.2.3.19-rc is the second release candidate for the Tor 0.2.3.x
23819   series. It fixes the compile on Windows, reverts to a GeoIP database
23820   that isn't as broken, and fixes a flow control bug that has been around
23821   since the beginning of Tor.
23823   o Major bugfixes:
23824     - Fix a bug handling SENDME cells on nonexistent streams that could
23825       result in bizarre window values. Report and patch contributed
23826       pseudonymously. Fixes part of bug 6271. This bug was introduced
23827       before the first Tor release, in svn commit r152.
23828     - Revert to the May 1 2012 Maxmind GeoLite Country database. In the
23829       June 2012 database, Maxmind marked many Tor relays as country "A1",
23830       which will cause risky behavior for clients that set EntryNodes
23831       or ExitNodes. Addresses bug 6334; bugfix on 0.2.3.17-beta.
23832     - Instead of ENOBUFS on Windows, say WSAENOBUFS. Fixes compilation
23833       on Windows. Fixes bug 6296; bugfix on 0.2.3.18-rc.
23835   o Minor bugfixes:
23836     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
23837       bugfix on 0.2.1.10-alpha.
23840 Changes in version 0.2.3.18-rc - 2012-06-28
23841   Tor 0.2.3.18-rc is the first release candidate for the Tor 0.2.3.x
23842   series. It fixes a few smaller bugs, but generally appears stable.
23843   Please test it and let us know whether it is!
23845   o Major bugfixes:
23846     - Allow wildcarded mapaddress targets to be specified on the
23847       controlport. Partially fixes bug 6244; bugfix on 0.2.3.9-alpha.
23848     - Make our linker option detection code more robust against linkers
23849       such as on FreeBSD 8, where a bad combination of options completes
23850       successfully but makes an unrunnable binary. Fixes bug 6173;
23851       bugfix on 0.2.3.17-beta.
23853   o Minor bugfixes (on 0.2.2.x and earlier):
23854     - Avoid a false positive in the util/threads unit test by increasing
23855       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
23856     - Replace "Sending publish request" log messages with "Launching
23857       upload", so that they no longer confusingly imply that we're
23858       sending something to a directory we might not even be connected
23859       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
23860     - Make sure to set *socket_error in all error cases in
23861       connection_connect(), so it can't produce a warning about
23862       errno being zero from errno_to_orconn_end_reason(). Bugfix on
23863       0.2.1.1-alpha; resolves ticket 6028.
23864     - Downgrade "Got a certificate, but we already have it" log messages
23865       from warning to info, except when we're a dirauth. Fixes bug 5238;
23866       bugfix on 0.2.1.7-alpha.
23867     - When checking for requested signatures on the latest consensus
23868       before serving it to a client, make sure to check the right
23869       consensus flavor. Bugfix on 0.2.2.6-alpha.
23870     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
23871       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
23873   o Minor bugfixes (on 0.2.3.x):
23874     - Make format_helper_exit_status() avoid unnecessary space padding
23875       and stop confusing log_from_pipe(). Fixes ticket 5557; bugfix
23876       on 0.2.3.1-alpha.
23877     - Downgrade a message about cleaning the microdescriptor cache to
23878       "info" from "notice". Fixes bug 6238; bugfix on 0.2.3.1-alpha.
23879     - Log a BUG message at severity INFO if we have a networkstatus with
23880       a missing entry for some microdescriptor. Continues on a patch
23881       to 0.2.3.2-alpha.
23882     - Improve the log message when a managed proxy fails to launch. Fixes
23883       bug 5099; bugfix on 0.2.3.6-alpha.
23884     - Don't do DNS lookups when parsing corrupted managed proxy protocol
23885       messages. Fixes bug 6226; bugfix on 0.2.3.6-alpha.
23886     - When formatting wildcarded address mappings for the controller,
23887       be sure to include "*." as appropriate. Partially fixes bug 6244;
23888       bugfix on 0.2.3.9-alpha.
23889     - Avoid a warning caused by using strcspn() from glibc with clang 3.0.
23890       Bugfix on 0.2.3.13-alpha.
23891     - Stop logging messages about running with circuit timeout learning
23892       enabled at severity LD_BUG. Fixes bug 6169; bugfix on 0.2.3.17-beta.
23893     - Disable a spurious warning about reading on a marked and flushing
23894       connection. We shouldn't be doing that, but apparently we
23895       sometimes do. Fixes bug 6203; bugfix on 0.2.3.17-beta.
23896     - Fix a bug that stopped AllowDotExit from working on addresses
23897       that had an entry in the DNS cache. Fixes bug 6211; bugfix on
23898       0.2.3.17-beta.
23900   o Code simplification, refactoring, unit tests:
23901     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
23902       Libevent's notion of cached time when possible.
23903     - Remove duplicate code for invoking getrlimit() from control.c.
23904     - Add a unit test for the environment_variable_names_equal function.
23906   o Documentation:
23907     - Document the --defaults-torrc option, and the new (in 0.2.3)
23908       semantics for overriding, extending, and clearing lists of
23909       options. Closes bug 4748.
23912 Changes in version 0.2.3.17-beta - 2012-06-15
23913   Tor 0.2.3.17-beta enables compiler and linker hardening by default,
23914   gets our TLS handshake back on track for being able to blend in with
23915   Firefox, fixes a big bug in 0.2.3.16-alpha that broke Tor's interaction
23916   with Vidalia, and otherwise continues to get us closer to a release
23917   candidate.
23919   o Major features:
23920     - Enable gcc and ld hardening by default. Resolves ticket 5210.
23921     - Update TLS cipher list to match Firefox 8 and later. Resolves
23922       ticket 4744.
23923     - Implement the client side of proposal 198: remove support for
23924       clients falsely claiming to support standard ciphersuites that
23925       they can actually provide. As of modern OpenSSL versions, it's not
23926       necessary to fake any standard ciphersuite, and doing so prevents
23927       us from using better ciphersuites in the future, since servers
23928       can't know whether an advertised ciphersuite is really supported or
23929       not. Some hosts -- notably, ones with very old versions of OpenSSL
23930       or where OpenSSL has been built with ECC disabled -- will stand
23931       out because of this change; TBB users should not be affected.
23933   o Major bugfixes:
23934     - Change the default value for DynamicDHGroups (introduced in
23935       0.2.3.9-alpha) to 0. This feature can make Tor relays less
23936       identifiable by their use of the mod_ssl DH group, but at
23937       the cost of some usability (#4721) and bridge tracing (#6087)
23938       regressions. Resolves ticket 5598.
23939     - Send a CRLF at the end of each STATUS_* control protocol event. This
23940       bug tickled a bug in Vidalia which would make it freeze. Fixes
23941       bug 6094; bugfix on 0.2.3.16-alpha.
23943   o Minor bugfixes:
23944     - Disable writing on marked-for-close connections when they are
23945       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
23946       bug 5263; bugfix on 0.0.2pre13, where we first added a special
23947       case for flushing marked connections.
23948     - Detect SSL handshake even when the initial attempt to write the
23949       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
23950     - Change the AllowDotExit rules so they should actually work.
23951       We now enforce AllowDotExit only immediately after receiving an
23952       address via SOCKS or DNSPort: other sources are free to provide
23953       .exit addresses after the resolution occurs. Fixes bug 3940;
23954       bugfix on 0.2.2.1-alpha.
23955     - Fix a (harmless) integer overflow in cell statistics reported by
23956       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
23957     - Make sure circuitbuild.c checks LearnCircuitBuildTimeout in all the
23958       right places and never depends on the consensus parameters or
23959       computes adaptive timeouts when it is disabled. Fixes bug 5049;
23960       bugfix on 0.2.2.14-alpha.
23961     - When building Tor on Windows with -DUNICODE (not default), ensure
23962       that error messages, filenames, and DNS server names are always
23963       NUL-terminated when we convert them to a single-byte encoding.
23964       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
23965     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
23966       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
23967     - Fix an edge case where TestingTorNetwork is set but the authorities
23968       and relays all have an uptime of zero, where the private Tor network
23969       could briefly lack support for hidden services. Fixes bug 3886;
23970       bugfix on 0.2.2.18-alpha.
23971     - Correct the manpage's descriptions for the default values of
23972       DirReqStatistics and ExtraInfoStatistics. Fixes bug 2865; bugfix
23973       on 0.2.3.1-alpha.
23974     - Fix the documentation for the --hush and --quiet command line
23975       options, which changed their behavior back in 0.2.3.3-alpha.
23976     - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
23977       0.2.3.11-alpha.
23979   o Minor features:
23980     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
23981       more information to it, so that we can track it down in case it
23982       returns again. Mitigates bug 5235.
23983     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
23984       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
23985       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
23986     - Warn the user when HTTPProxy, but no other proxy type, is
23987       configured. This can cause surprising behavior: it doesn't send
23988       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
23989       directory traffic only. Resolves ticket 4663.
23990     - Issue a notice if a guard completes less than 40% of your circuits.
23991       Threshold is configurable by torrc option PathBiasNoticeRate and
23992       consensus parameter pb_noticepct. There is additional, off-by-
23993       default code to disable guards which fail too many circuits.
23994       Addresses ticket 5458.
23995     - Update to the June 6 2012 Maxmind GeoLite Country database.
23997   o Code simplifications and refactoring:
23998     - Remove validate_pluggable_transports_config(): its warning
23999       message is now handled by connection_or_connect().
24002 Changes in version 0.2.2.37 - 2012-06-06
24003   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
24004   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
24005   currently).
24007   o Major bugfixes:
24008     - Work around a bug in OpenSSL that broke renegotiation with TLS
24009       1.1 and TLS 1.2. Without this workaround, all attempts to speak
24010       the v2 Tor connection protocol when both sides were using OpenSSL
24011       1.0.1 would fail. Resolves ticket 6033.
24012     - When waiting for a client to renegotiate, don't allow it to add
24013       any bytes to the input buffer. This fixes a potential DoS issue.
24014       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
24015     - Fix an edge case where if we fetch or publish a hidden service
24016       descriptor, we might build a 4-hop circuit and then use that circuit
24017       for exiting afterwards -- even if the new last hop doesn't obey our
24018       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
24020   o Minor bugfixes:
24021     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
24022       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
24024   o Minor features:
24025     - Tell GCC and Clang to check for any errors in format strings passed
24026       to the tor_v*(print|scan)f functions.
24029 Changes in version 0.2.3.16-alpha - 2012-06-05
24030   Tor 0.2.3.16-alpha introduces a workaround for a critical renegotiation
24031   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
24032   currently). It also fixes a variety of smaller bugs and other cleanups
24033   that get us closer to a release candidate.
24035   o Major bugfixes (general):
24036     - Work around a bug in OpenSSL that broke renegotiation with TLS
24037       1.1 and TLS 1.2. Without this workaround, all attempts to speak
24038       the v2 Tor connection protocol when both sides were using OpenSSL
24039       1.0.1 would fail. Resolves ticket 6033.
24040     - When waiting for a client to renegotiate, don't allow it to add
24041       any bytes to the input buffer. This fixes a potential DoS issue.
24042       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
24043     - Pass correct OR address to managed proxies (like obfsproxy),
24044       even when ORListenAddress is used. Fixes bug 4865; bugfix on
24045       0.2.3.9-alpha.
24046     - The advertised platform of a router now includes only its operating
24047       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not its
24048       service pack level (for Windows) or its CPU architecture (for Unix).
24049       We also no longer include the "git-XYZ" tag in the version. Resolves
24050       part of bug 2988.
24052   o Major bugfixes (clients):
24053     - If we are unable to find any exit that supports our predicted ports,
24054       stop calling them predicted, so that we don't loop and build
24055       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
24056       which introduced predicted ports.
24057     - Fix an edge case where if we fetch or publish a hidden service
24058       descriptor, we might build a 4-hop circuit and then use that circuit
24059       for exiting afterwards -- even if the new last hop doesn't obey our
24060       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
24061     - Check at each new consensus whether our entry guards were picked
24062       long enough ago that we should rotate them. Previously, we only
24063       did this check at startup, which could lead to us holding a guard
24064       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
24065     - When fetching a bridge descriptor from a bridge authority,
24066       always do so anonymously, whether we have been able to open
24067       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
24068       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
24069       but we'll need to wait for bug 6010 before it's actually usable.
24071   o Major bugfixes (directory authorities):
24072     - When computing weight parameters, behave more robustly in the
24073       presence of a bad bwweightscale value. Previously, the authorities
24074       would crash if they agreed on a sufficiently broken weight_scale
24075       value: now, they use a reasonable default and carry on. Partial
24076       fix for 5786; bugfix on 0.2.2.17-alpha.
24077     - Check more thoroughly to prevent a rogue authority from
24078       double-voting on any consensus directory parameter. Previously,
24079       authorities would crash in this case if the total number of
24080       votes for any parameter exceeded the number of active voters,
24081       but would let it pass otherwise. Partial fix for bug 5786; bugfix
24082       on 0.2.2.2-alpha.
24084   o Minor features:
24085     - Rate-limit log messages when asked to connect anonymously to
24086       a private address. When these hit, they tended to hit fast and
24087       often. Also, don't bother trying to connect to addresses that we
24088       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
24089       reply makes us think we have been lied to, even when the address the
24090       client tried to connect to was "localhost." Resolves ticket 2822.
24091     - Allow packagers to insert an extra string in server descriptor
24092       platform lines by setting the preprocessor variable TOR_BUILD_TAG.
24093       Resolves the rest of ticket 2988.
24094     - Raise the threshold of server descriptors needed (75%) and exit
24095       server descriptors needed (50%) before we will declare ourselves
24096       bootstrapped. This will make clients start building circuits a
24097       little later, but makes the initially constructed circuits less
24098       skewed and less in conflict with further directory fetches. Fixes
24099       ticket 3196.
24100     - Close any connection that sends unrecognized junk before the
24101       handshake. Solves an issue noted in bug 4369.
24102     - Improve log messages about managed transports. Resolves ticket 5070.
24103     - Tag a bridge's descriptor as "never to be sent unencrypted".
24104       This shouldn't matter, since bridges don't open non-anonymous
24105       connections to the bridge authority and don't allow unencrypted
24106       directory connections from clients, but we might as well make
24107       sure. Closes bug 5139.
24108     - Expose our view of whether we have gone dormant to the controller,
24109       via a new "GETINFO dormant" value. Torbutton and other controllers
24110       can use this to avoid doing periodic requests through Tor while
24111       it's dormant (bug 4718). Fixes bug 5954.
24112     - Tell GCC and Clang to check for any errors in format strings passed
24113       to the tor_v*(print|scan)f functions.
24114     - Update to the May 1 2012 Maxmind GeoLite Country database.
24116   o Minor bugfixes (already included in 0.2.2.36):
24117     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
24118       Fixes bug 5346; bugfix on 0.0.8pre3.
24119     - Correct parsing of certain date types in parse_http_time().
24120       Without this patch, If-Modified-Since would behave
24121       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
24122       Esteban Manchado Velázques.
24123     - Make our number-parsing functions always treat too-large values
24124       as an error, even when those values exceed the width of the
24125       underlying type. Previously, if the caller provided these
24126       functions with minima or maxima set to the extreme values of the
24127       underlying integer type, these functions would return those
24128       values on overflow rather than treating overflow as an error.
24129       Fixes part of bug 5786; bugfix on 0.0.9.
24130     - If we hit the error case where routerlist_insert() replaces an
24131       existing (old) server descriptor, make sure to remove that
24132       server descriptor from the old_routers list. Fix related to bug
24133       1776. Bugfix on 0.2.2.18-alpha.
24134     - Clarify the behavior of MaxCircuitDirtiness with hidden service
24135       circuits. Fixes issue 5259.
24137   o Minor bugfixes (coding cleanup, on 0.2.2.x and earlier):
24138     - Prevent a null-pointer dereference when receiving a data cell
24139       for a nonexistent stream when the circuit in question has an
24140       empty deliver window. We don't believe this is triggerable,
24141       since we don't currently allow deliver windows to become empty,
24142       but the logic is tricky enough that it's better to make the code
24143       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
24144     - Fix a memory leak when trying to launch a DNS request when the
24145       network is disabled or the nameservers are unconfigurable. Fixes
24146       bug 5916; bugfix on Tor 0.1.2.1-alpha (for the unconfigurable
24147       nameserver case) and on 0.2.3.9-alpha (for the DisableNetwork case).
24148     - Don't hold a Windows file handle open for every file mapping;
24149       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
24150       0.1.2.1-alpha.
24151     - Avoid O(n^2) performance characteristics when parsing a large
24152       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
24153     - Format more doubles with %f, not %lf. Patch from grarpamp to make
24154       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
24155       Tor 0.2.0.8-alpha.
24156     - Make our replacement implementation of strtok_r() compatible with
24157       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
24158       bugfix on 0.2.2.1-alpha.
24159     - Fix a NULL-pointer dereference on a badly formed
24160       SETCIRCUITPURPOSE command. Found by mikeyc. Fixes bug 5796;
24161       bugfix on 0.2.2.9-alpha.
24162     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
24163       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
24164     - Defensively refactor rend_mid_rendezvous() so that protocol
24165       violations and length checks happen in the beginning. Fixes
24166       bug 5645.
24167     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
24168       that IPv6 stuff will compile on MSVC, and compilation issues
24169       will be easier to track down. Fixes bug 5861.
24171   o Minor bugfixes (correctness, on 0.2.2.x and earlier):
24172     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
24173       resource exhaustion, so that clients can adjust their load to
24174       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
24175       started using END_STREAM_REASON_RESOURCELIMIT.
24176     - Don't check for whether the address we're using for outbound
24177       connections has changed until after the outbound connection has
24178       completed. On Windows, getsockname() doesn't succeed until the
24179       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
24180     - If the configuration tries to set MyFamily on a bridge, refuse to
24181       do so, and warn about the security implications. Fixes bug 4657;
24182       bugfix on 0.2.0.3-alpha.
24183     - If the client fails to set a reasonable set of ciphersuites
24184       during its v2 handshake renegotiation, allow the renegotiation to
24185       continue nevertheless (i.e. send all the required certificates).
24186       Fixes bug 4591; bugfix on 0.2.0.20-rc.
24187     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
24188       option is set to 0 (which Vidalia version 0.2.16 now does when
24189       a SAVECONF attempt fails), perform other actions that SIGHUP
24190       usually causes (like reopening the logs). Fixes bug 5095; bugfix
24191       on 0.2.1.9-alpha.
24192     - If we fail to write a microdescriptor to the disk cache, do not
24193       continue replacing the old microdescriptor file. Fixes bug 2954;
24194       bugfix on 0.2.2.6-alpha.
24195     - Exit nodes don't need to fetch certificates for authorities that
24196       they don't recognize; only directory authorities, bridges,
24197       and caches need to do that. Fixes part of bug 2297; bugfix on
24198       0.2.2.11-alpha.
24199     - Correctly handle checking the permissions on the parent
24200       directory of a control socket in the root directory. Bug found
24201       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
24202       0.2.2.26-beta.
24203     - When told to add a bridge with the same digest as a preexisting
24204       bridge but a different addr:port, change the addr:port as
24205       requested. Previously we would not notice the change. Fixes half
24206       of bug 5603; fix on 0.2.2.26-beta.
24207     - End AUTHCHALLENGE error messages (in the control protocol) with
24208       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36 and 0.2.3.13-alpha.
24210   o Minor bugfixes (on 0.2.3.x):
24211     - Turn an assertion (that the number of handshakes received as a
24212       server is not < 1) into a warning. Fixes bug 4873; bugfix on
24213       0.2.3.1-alpha.
24214     - Format IPv4 addresses correctly in ADDRMAP events. (Previously,
24215       we had reversed them when the answer was cached.) Fixes bug
24216       5723; bugfix on 0.2.3.1-alpha.
24217     - Work correctly on Linux systems with accept4 support advertised in
24218       their headers, but without accept4 support in the kernel. Fix
24219       by murb. Fixes bug 5762; bugfix on 0.2.3.1-alpha.
24220     - When told to add a bridge with the same addr:port as a preexisting
24221       bridge but a different transport, change the transport as
24222       requested. Previously we would not notice the change. Fixes half
24223       of bug 5603; fix on 0.2.3.2-alpha.
24224     - Avoid a "double-reply" warning when replying to a SOCKS request
24225       with a parse error. Patch from Fabian Keil. Fixes bug 4108;
24226       bugfix on 0.2.3.4-alpha.
24227     - Fix a bug where a bridge authority crashes if it has seen no
24228       directory requests when it's time to write statistics to disk.
24229       Fixes bug 5891; bugfix on 0.2.3.6-alpha. Also fixes bug 5508 in
24230       a better way.
24231     - Don't try to open non-control listeners when DisableNetwork is set.
24232       Previously, we'd open all listeners, then immediately close them.
24233       Fixes bug 5604; bugfix on 0.2.3.9-alpha.
24234     - Don't abort the managed proxy protocol if the managed proxy
24235       sends us an unrecognized line; ignore it instead. Fixes bug
24236       5910; bugfix on 0.2.3.9-alpha.
24237     - Fix a compile warning in crypto.c when compiling with clang 3.1.
24238       Fixes bug 5969, bugfix on 0.2.3.9-alpha.
24239     - Fix a compilation issue on GNU Hurd, which doesn't have PATH_MAX.
24240       Fixes bug 5355; bugfix on 0.2.3.11-alpha.
24241     - Remove bogus definition of "_WIN32" from src/win32/orconfig.h, to
24242       unbreak the MSVC build. Fixes bug 5858; bugfix on 0.2.3.12-alpha.
24243     - Resolve numerous small warnings and build issues with MSVC. Resolves
24244       bug 5859.
24246   o Documentation fixes:
24247     - Improve the manual's documentation for the NT Service command-line
24248       options. Addresses ticket 3964.
24249     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
24250     - Document the changes to the ORPort and DirPort options, and the
24251       fact that {OR/Dir}ListenAddress is now unnecessary (and
24252       therefore deprecated). Resolves ticket 5597.
24254   o Removed files:
24255     - Remove the torrc.bridge file: we don't use it for anything, and
24256       it had become badly desynchronized from torrc.sample. Resolves
24257       bug 5622.
24260 Changes in version 0.2.2.36 - 2012-05-24
24261   Tor 0.2.2.36 updates the addresses for two of the eight directory
24262   authorities, fixes some potential anonymity and security issues,
24263   and fixes several crash bugs.
24265   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
24266   known flaws, and nobody should be using them. You should upgrade. If
24267   you're using a Linux or BSD and its packages are obsolete, stop using
24268   those packages and upgrade anyway.
24270   o Directory authority changes:
24271     - Change IP address for maatuska (v3 directory authority).
24272     - Change IP address for ides (v3 directory authority), and rename
24273       it to turtles.
24275   o Security fixes:
24276     - When building or running with any version of OpenSSL earlier
24277       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
24278       versions have a bug (CVE-2011-4576) in which their block cipher
24279       padding includes uninitialized data, potentially leaking sensitive
24280       information to any peer with whom they make a SSLv3 connection. Tor
24281       does not use SSL v3 by default, but a hostile client or server
24282       could force an SSLv3 connection in order to gain information that
24283       they shouldn't have been able to get. The best solution here is to
24284       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
24285       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
24286       to make sure that the bug can't happen.
24287     - Never use a bridge or a controller-supplied node as an exit, even
24288       if its exit policy allows it. Found by wanoskarnet. Fixes bug
24289       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
24290       and 0.2.0.3-alpha (for bridge-purpose descriptors).
24291     - Only build circuits if we have a sufficient threshold of the total
24292       descriptors that are marked in the consensus with the "Exit"
24293       flag. This mitigates an attack proposed by wanoskarnet, in which
24294       all of a client's bridges collude to restrict the exit nodes that
24295       the client knows about. Fixes bug 5343.
24296     - Provide controllers with a safer way to implement the cookie
24297       authentication mechanism. With the old method, if another locally
24298       running program could convince a controller that it was the Tor
24299       process, then that program could trick the controller into telling
24300       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
24301       authentication method uses a challenge-response approach to prevent
24302       this attack. Fixes bug 5185; implements proposal 193.
24304   o Major bugfixes:
24305     - Avoid logging uninitialized data when unable to decode a hidden
24306       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
24307     - Avoid a client-side assertion failure when receiving an INTRODUCE2
24308       cell on a general purpose circuit. Fixes bug 5644; bugfix on
24309       0.2.1.6-alpha.
24310     - Fix builds when the path to sed, openssl, or sha1sum contains
24311       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
24312       on 0.2.2.1-alpha.
24313     - Correct our replacements for the timeradd() and timersub() functions
24314       on platforms that lack them (for example, Windows). The timersub()
24315       function is used when expiring circuits, while timeradd() is
24316       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
24317       bugfix on 0.2.2.24-alpha.
24318     - Fix the SOCKET_OK test that we use to tell when socket
24319       creation fails so that it works on Win64. Fixes part of bug 4533;
24320       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
24322   o Minor bugfixes:
24323     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
24324       Fixes bug 5346; bugfix on 0.0.8pre3.
24325     - Make our number-parsing functions always treat too-large values
24326       as an error, even when those values exceed the width of the
24327       underlying type. Previously, if the caller provided these
24328       functions with minima or maxima set to the extreme values of the
24329       underlying integer type, these functions would return those
24330       values on overflow rather than treating overflow as an error.
24331       Fixes part of bug 5786; bugfix on 0.0.9.
24332     - Older Linux kernels erroneously respond to strange nmap behavior
24333       by having accept() return successfully with a zero-length
24334       socket. When this happens, just close the connection. Previously,
24335       we would try harder to learn the remote address: but there was
24336       no such remote address to learn, and our method for trying to
24337       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
24338       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
24339     - Correct parsing of certain date types in parse_http_time().
24340       Without this patch, If-Modified-Since would behave
24341       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
24342       Esteban Manchado Velázques.
24343     - Change the BridgePassword feature (part of the "bridge community"
24344       design, which is not yet implemented) to use a time-independent
24345       comparison. The old behavior might have allowed an adversary
24346       to use timing to guess the BridgePassword value. Fixes bug 5543;
24347       bugfix on 0.2.0.14-alpha.
24348     - Detect and reject certain misformed escape sequences in
24349       configuration values. Previously, these values would cause us
24350       to crash if received in a torrc file or over an authenticated
24351       control port. Bug found by Esteban Manchado Velázquez, and
24352       independently by Robert Connolly from Matta Consulting who further
24353       noted that it allows a post-authentication heap overflow. Patch
24354       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
24355       bugfix on 0.2.0.16-alpha.
24356     - Fix a compile warning when using the --enable-openbsd-malloc
24357       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
24358     - During configure, detect when we're building with clang version
24359       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
24360       CFLAGS. clang doesn't support them yet.
24361     - When sending an HTTP/1.1 proxy request, include a Host header.
24362       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
24363     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
24364       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
24365     - If we hit the error case where routerlist_insert() replaces an
24366       existing (old) server descriptor, make sure to remove that
24367       server descriptor from the old_routers list. Fix related to bug
24368       1776. Bugfix on 0.2.2.18-alpha.
24370   o Minor bugfixes (documentation and log messages):
24371     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
24372       Fixes bug 4856; bugfix on Tor 0.0.6.
24373     - Update "ClientOnly" man page entry to explain that there isn't
24374       really any point to messing with it. Resolves ticket 5005.
24375     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
24376       directory authority option (introduced in Tor 0.2.2.34).
24377     - Downgrade the "We're missing a certificate" message from notice
24378       to info: people kept mistaking it for a real problem, whereas it
24379       is seldom the problem even when we are failing to bootstrap. Fixes
24380       bug 5067; bugfix on 0.2.0.10-alpha.
24381     - Correctly spell "connect" in a log message on failure to create a
24382       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
24383     - Clarify the behavior of MaxCircuitDirtiness with hidden service
24384       circuits. Fixes issue 5259.
24386   o Minor features:
24387     - Directory authorities now reject versions of Tor older than
24388       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
24389       inclusive. These versions accounted for only a small fraction of
24390       the Tor network, and have numerous known security issues. Resolves
24391       issue 4788.
24392     - Update to the May 1 2012 Maxmind GeoLite Country database.
24394   o Feature removal:
24395     - When sending or relaying a RELAY_EARLY cell, we used to convert
24396       it to a RELAY cell if the connection was using the v1 link
24397       protocol. This was a workaround for older versions of Tor, which
24398       didn't handle RELAY_EARLY cells properly. Now that all supported
24399       versions can handle RELAY_EARLY cells, and now that we're enforcing
24400       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
24401       remove this workaround. Addresses bug 4786.
24404 Changes in version 0.2.3.15-alpha - 2012-04-30
24405   Tor 0.2.3.15-alpha fixes a variety of smaller bugs, including making
24406   the development branch build on Windows again.
24408   o Minor bugfixes (on 0.2.2.x and earlier):
24409     - Make sure that there are no unhandled pending TLS errors before
24410       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
24411       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
24412       Bugfix on 0.1.0.5-rc; fixes bug 4528.
24413     - Fix an assert that directory authorities could trigger on sighup
24414       during some configuration state transitions. We now don't treat
24415       it as a fatal error when the new descriptor we just generated in
24416       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
24417     - After we pick a directory mirror, we would refuse to use it if
24418       it's in our ExcludeExitNodes list, resulting in mysterious failures
24419       to bootstrap for people who just wanted to avoid exiting from
24420       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
24421     - When building with --enable-static-tor on OpenBSD, do not
24422       erroneously attempt to link -lrt. Fixes bug 5103.
24424   o Minor bugfixes (on 0.2.3.x):
24425     - When Tor is built with kernel headers from a recent (last few
24426       years) Linux kernel, do not fail to run on older (pre-2.6.28
24427       Linux kernels). Fixes bug 5112; bugfix on 0.2.3.1-alpha.
24428     - Fix cross-compilation issues with mingw. Bugfixes on 0.2.3.6-alpha
24429       and 0.2.3.12-alpha.
24430     - Fix compilation with miniupnpc version 1.6; patch from
24431       Anthony G. Basile. Fixes bug 5434; bugfix on 0.2.3.12-alpha.
24432     - Fix compilation with MSVC, which had defined MS_WINDOWS. Bugfix
24433       on 0.2.3.13-alpha; found and fixed by Gisle Vanem.
24434     - Fix compilation on platforms without unistd.h, or where environ
24435       is defined in stdlib.h. Fixes bug 5704; bugfix on 0.2.3.13-alpha.
24437   o Minor features:
24438     - Directory authorities are now a little more lenient at accepting
24439       older router descriptors, or newer router descriptors that don't
24440       make big changes. This should help ameliorate past and future
24441       issues where routers think they have uploaded valid descriptors,
24442       but the authorities don't think so. Fix for ticket 2479.
24443     - Make the code that clients use to detect an address change be
24444       IPv6-aware, so that it won't fill clients' logs with error
24445       messages when trying to get the IPv4 address of an IPv6
24446       connection. Implements ticket 5537.
24448   o Removed features:
24449     - Remove the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays option;
24450       authorities needed to use it for a while to keep the network working
24451       as people upgraded to 0.2.1.31, 0.2.2.34, or 0.2.3.6-alpha, but
24452       that was six months ago. As of now, it should no longer be needed
24453       or used.
24456 Changes in version 0.2.3.14-alpha - 2012-04-23
24457   Tor 0.2.3.14-alpha fixes yet more bugs to get us closer to a release
24458   candidate. It also dramatically speeds up AES: fast relays should
24459   consider switching to the newer OpenSSL library.
24461   o Directory authority changes:
24462     - Change IP address for ides (v3 directory authority), and rename
24463       it to turtles.
24465   o Major bugfixes:
24466     - Avoid logging uninitialized data when unable to decode a hidden
24467       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
24468     - Avoid a client-side assertion failure when receiving an INTRODUCE2
24469       cell on a general purpose circuit. Fixes bug 5644; bugfix on
24470       0.2.1.6-alpha.
24471     - If authorities are unable to get a v2 consensus document from other
24472       directory authorities, they no longer fall back to fetching
24473       them from regular directory caches. Fixes bug 5635; bugfix on
24474       0.2.2.26-beta, where routers stopped downloading v2 consensus
24475       documents entirely.
24476     - When we start a Tor client with a normal consensus already cached,
24477       be willing to download a microdescriptor consensus. Fixes bug 4011;
24478       fix on 0.2.3.1-alpha.
24480   o Major features (performance):
24481     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
24482       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
24483       vectorized AES implementations as appropriate. These can be much,
24484       much faster than other AES implementations.
24486   o Minor bugfixes (0.2.2.x and earlier):
24487     - Don't launch more than 10 service-side introduction-point circuits
24488       for a hidden service in five minutes. Previously, we would consider
24489       launching more introduction-point circuits if at least one second
24490       had passed without any introduction-point circuits failing. Fixes
24491       bug 4607; bugfix on 0.0.7pre1.
24492     - Change the BridgePassword feature (part of the "bridge community"
24493       design, which is not yet implemented) to use a time-independent
24494       comparison. The old behavior might have allowed an adversary
24495       to use timing to guess the BridgePassword value. Fixes bug 5543;
24496       bugfix on 0.2.0.14-alpha.
24497     - Enforce correct return behavior of tor_vsscanf() when the '%%'
24498       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
24499     - When sending an HTTP/1.1 proxy request, include a Host header.
24500       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
24501     - Don't log that we have "decided to publish new relay descriptor"
24502       unless we are actually publishing a descriptor. Fixes bug 3942;
24503       bugfix on 0.2.2.28-beta.
24505   o Minor bugfixes (0.2.3.x):
24506     - Fix a bug where a bridge authority crashes (on a failed assert)
24507       if it has seen no directory requests when it's time to write
24508       statistics to disk. Fixes bug 5508. Bugfix on 0.2.3.6-alpha.
24509     - Fix bug stomping on ORPort option NoListen and ignoring option
24510       NoAdvertise. Fixes bug 5151; bugfix on 0.2.3.9-alpha.
24511     - In the testsuite, provide a large enough buffer in the tor_sscanf
24512       unit test. Otherwise we'd overrun that buffer and crash during
24513       the unit tests. Found by weasel. Fixes bug 5449; bugfix on
24514       0.2.3.12-alpha.
24515     - Make sure we create the keys directory if it doesn't exist and we're
24516       about to store the dynamic Diffie-Hellman parameters. Fixes bug
24517       5572; bugfix on 0.2.3.13-alpha.
24518     - Fix a small memory leak when trying to decode incorrect base16
24519       authenticator during SAFECOOKIE authentication. Found by
24520       Coverity Scan. Fixes CID 507. Bugfix on 0.2.3.13-alpha.
24522   o Minor features:
24523     - Add more information to a log statement that might help track down
24524       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
24525       non-IP address" messages (or any Bug messages, for that matter!),
24526       please let us know about it.
24527     - Relays now understand an IPv6 address when they get one from a
24528       directory server. Resolves ticket 4875.
24529     - Resolve IPv6 addresses in bridge and entry statistics to country
24530       code "??" which means we at least count them. Resolves ticket 5053;
24531       improves on 0.2.3.9-alpha.
24532     - Update to the April 3 2012 Maxmind GeoLite Country database.
24533     - Begin a doc/state-contents.txt file to explain the contents of
24534       the Tor state file. Fixes bug 2987.
24536   o Default torrc changes:
24537     - Stop listing "socksport 9050" in torrc.sample. We open a socks
24538       port on 9050 by default anyway, so this should not change anything
24539       in practice.
24540     - Stop mentioning the deprecated *ListenAddress options in
24541       torrc.sample. Fixes bug 5438.
24542     - Document unit of bandwidth related options in sample torrc.
24543       Fixes bug 5621.
24545   o Removed features:
24546     - The "torify" script no longer supports the "tsocks" socksifier
24547       tool, since tsocks doesn't support DNS and UDP right for Tor.
24548       Everyone should be using torsocks instead. Fixes bugs 3530 and
24549       5180. Based on a patch by "ugh".
24551   o Code refactoring:
24552     - Change the symmetric cipher interface so that creating and
24553       initializing a stream cipher are no longer separate functions.
24554     - Remove all internal support for unpadded RSA. We never used it, and
24555       it would be a bad idea to start.
24558 Changes in version 0.2.3.13-alpha - 2012-03-26
24559   Tor 0.2.3.13-alpha fixes a variety of stability and correctness bugs
24560   in managed pluggable transports, as well as providing other cleanups
24561   that get us closer to a release candidate.
24563   o Directory authority changes:
24564     - Change IP address for maatuska (v3 directory authority).
24566   o Security fixes:
24567     - Provide controllers with a safer way to implement the cookie
24568       authentication mechanism. With the old method, if another locally
24569       running program could convince a controller that it was the Tor
24570       process, then that program could trick the controller into telling
24571       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
24572       authentication method uses a challenge-response approach to prevent
24573       this attack. Fixes bug 5185, implements proposal 193.
24574     - Never use a bridge or a controller-supplied node as an exit, even
24575       if its exit policy allows it. Found by wanoskarnet. Fixes bug
24576       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
24577       and 0.2.0.3-alpha (for bridge-purpose descriptors).
24578     - Only build circuits if we have a sufficient threshold of the total
24579       descriptors that are marked in the consensus with the "Exit"
24580       flag. This mitigates an attack proposed by wanoskarnet, in which
24581       all of a client's bridges collude to restrict the exit nodes that
24582       the client knows about. Fixes bug 5343.
24584   o Major bugfixes (on Tor 0.2.3.x):
24585     - Avoid an assert when managed proxies like obfsproxy are configured,
24586       and we receive HUP signals or setconf attempts too rapidly. This
24587       situation happens most commonly when Vidalia tries to attach to
24588       Tor or tries to configure the Tor it's attached to. Fixes bug 5084;
24589       bugfix on 0.2.3.6-alpha.
24590     - Fix a relay-side pluggable transports bug where managed proxies were
24591       unreachable from the Internet, because Tor asked them to bind on
24592       localhost. Fixes bug 4725; bugfix on 0.2.3.9-alpha.
24593     - Stop discarding command-line arguments when TestingTorNetwork
24594       is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
24595       0.2.3.9-alpha, where task 4552 added support for two layers of
24596       torrc files.
24597     - Resume allowing the unit tests to run in gdb. This was accidentally
24598       made impossible when the DisableDebuggerAttachment option was
24599       introduced. Fixes bug 5448; bugfix on 0.2.3.9-alpha.
24600     - Resume building with nat-pmp support. Fixes bug 4955; bugfix on
24601       0.2.3.11-alpha. Reported by Anthony G. Basile.
24603   o Minor bugfixes (on 0.2.2.x and earlier):
24604     - Ensure we don't cannibalize circuits that are longer than three hops
24605       already, so we don't end up making circuits with 5 or more
24606       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
24607       0.1.0.1-rc which introduced cannibalization.
24608     - Detect and reject certain misformed escape sequences in
24609       configuration values. Previously, these values would cause us
24610       to crash if received in a torrc file or over an authenticated
24611       control port. Bug found by Esteban Manchado Velázquez, and
24612       independently by Robert Connolly from Matta Consulting who further
24613       noted that it allows a post-authentication heap overflow. Patch
24614       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
24615       bugfix on 0.2.0.16-alpha.
24616     - Fix a compile warning when using the --enable-openbsd-malloc
24617       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
24618     - Directory caches no longer refuse to clean out descriptors because
24619       of missing v2 networkstatus documents, unless they're configured
24620       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
24621       0.2.2.26-beta. Patch by Daniel Bryg.
24622     - Update to the latest version of the tinytest unit testing framework.
24623       This includes a couple of bugfixes that can be relevant for
24624       running forked unit tests on Windows, and removes all reserved
24625       identifiers.
24627   o Minor bugfixes (on 0.2.3.x):
24628     - On a failed pipe() call, don't leak file descriptors. Fixes bug
24629       4296; bugfix on 0.2.3.1-alpha.
24630     - Spec conformance: on a v3 handshake, do not send a NETINFO cell
24631       until after we have received a CERTS cell. Fixes bug 4361; bugfix
24632       on 0.2.3.6-alpha. Patch by "frosty".
24633     - When binding to an IPv6 address, set the IPV6_V6ONLY socket
24634       option, so that the IP stack doesn't decide to use it for IPv4
24635       too. Fixes bug 4760; bugfix on 0.2.3.9-alpha.
24636     - Ensure that variables set in Tor's environment cannot override
24637       environment variables that Tor passes to a managed
24638       pluggable-transport proxy. Previously, Tor would pass every
24639       variable in its environment to managed proxies along with the new
24640       ones, in such a way that on many operating systems, the inherited
24641       environment variables would override those which Tor tried to
24642       explicitly set. Bugfix on 0.2.3.12-alpha for most Unixoid systems;
24643       bugfix on 0.2.3.9-alpha for Windows.
24645   o Minor features:
24646     - A wide variety of new unit tests by Esteban Manchado Velázquez.
24647     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
24648     - Update to the March 6 2012 Maxmind GeoLite Country database.
24651 Changes in version 0.2.3.12-alpha - 2012-02-13
24652   Tor 0.2.3.12-alpha lets fast exit relays scale better, allows clients
24653   to use bridges that run Tor 0.2.2.x, and resolves several big bugs
24654   when Tor is configured to use a pluggable transport like obfsproxy.
24656   o Major bugfixes:
24657     - Fix builds when the path to sed, openssl, or sha1sum contains
24658       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
24659       on 0.2.2.1-alpha.
24660     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
24661       connections. This change should allow busy exit relays to stop
24662       running out of available sockets as quickly. Fixes bug 4950;
24663       bugfix on 0.2.2.26-beta.
24664     - Allow 0.2.3.x clients to use 0.2.2.x bridges. Previously the client
24665       would ask the bridge for microdescriptors, which are only supported
24666       in 0.2.3.x, and then fail to bootstrap when it didn't get the
24667       answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.
24668     - Properly set up obfsproxy's environment when in managed mode. The
24669       Tor Browser Bundle needs LD_LIBRARY_PATH to be passed to obfsproxy,
24670       and when you run your Tor as a daemon, there's no HOME. Fixes bugs
24671       5076 and 5082; bugfix on 0.2.3.6-alpha.
24673   o Minor features:
24674     - Use the dead_strip option when building Tor on OS X. This reduces
24675       binary size by almost 19% when linking openssl and libevent
24676       statically, which we do for Tor Browser Bundle.
24677     - Fix broken URLs in the sample torrc file, and tell readers about
24678       the OutboundBindAddress, ExitPolicyRejectPrivate, and
24679       PublishServerDescriptor options. Addresses bug 4652.
24680     - Update to the February 7 2012 Maxmind GeoLite Country database.
24682   o Minor bugfixes:
24683     - Downgrade the "We're missing a certificate" message from notice
24684       to info: people kept mistaking it for a real problem, whereas it
24685       is seldom the problem even when we are failing to bootstrap. Fixes
24686       bug 5067; bugfix on 0.2.0.10-alpha.
24687     - Don't put "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200" in a
24688       managed pluggable transport server proxy's environment.
24689       Previously, we would put it there, even though Tor doesn't
24690       implement an 'extended server port' yet, and even though Tor
24691       almost certainly isn't listening at that address. For now, we set
24692       it to an empty string to avoid crashing older obfsproxies. Bugfix
24693       on 0.2.3.6-alpha.
24694     - Log the heartbeat message every HeartbeatPeriod seconds, not every
24695       HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
24696       0.2.3.1-alpha. Bug reported by Scott Bennett.
24697     - Calculate absolute paths correctly on Windows. Fixes bug 4973;
24698       bugfix on 0.2.3.11-alpha.
24699     - Update "ClientOnly" man page entry to explain that there isn't
24700       really any point to messing with it. Resolves ticket 5005.
24701     - Use the correct CVE number for CVE-2011-4576 in our comments and
24702       log messages. Found by "fermenthor". Resolves bug 5066; bugfix on
24703       0.2.3.11-alpha.
24705   o Code simplifications and refactoring:
24706     - Use the _WIN32 macro throughout our code to detect Windows.
24707       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
24708       'MS_WINDOWS'.)
24711 Changes in version 0.2.3.11-alpha - 2012-01-22
24712   Tor 0.2.3.11-alpha marks feature-freeze for the 0.2.3 tree. It deploys
24713   the last step of the plan to limit maximum circuit length, includes
24714   a wide variety of hidden service performance and correctness fixes,
24715   works around an OpenSSL security flaw if your distro is too stubborn
24716   to upgrade, and fixes a bunch of smaller issues.
24718   o Major features:
24719     - Now that Tor 0.2.0.x is completely deprecated, enable the final
24720       part of "Proposal 110: Avoiding infinite length circuits" by
24721       refusing all circuit-extend requests that do not use a relay_early
24722       cell. This change helps Tor resist a class of denial-of-service
24723       attacks by limiting the maximum circuit length.
24724     - Adjust the number of introduction points that a hidden service
24725       will try to maintain based on how long its introduction points
24726       remain in use and how many introductions they handle. Fixes
24727       part of bug 3825.
24728     - Try to use system facilities for enumerating local interface
24729       addresses, before falling back to our old approach (which was
24730       binding a UDP socket, and calling getsockname() on it). That
24731       approach was scaring OS X users whose draconian firewall
24732       software warned about binding to UDP sockets, regardless of
24733       whether packets were sent. Now we try to use getifaddrs(),
24734       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
24735       system supports. Resolves ticket 1827.
24737   o Major security workaround:
24738     - When building or running with any version of OpenSSL earlier
24739       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
24740       versions have a bug (CVE-2011-4576) in which their block cipher
24741       padding includes uninitialized data, potentially leaking sensitive
24742       information to any peer with whom they make a SSLv3 connection. Tor
24743       does not use SSL v3 by default, but a hostile client or server
24744       could force an SSLv3 connection in order to gain information that
24745       they shouldn't have been able to get. The best solution here is to
24746       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
24747       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
24748       to make sure that the bug can't happen.
24750   o Major bugfixes:
24751     - Fix the SOCKET_OK test that we use to tell when socket
24752       creation fails so that it works on Win64. Fixes part of bug 4533;
24753       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
24754     - Correct our replacements for the timeradd() and timersub() functions
24755       on platforms that lack them (for example, Windows). The timersub()
24756       function is used when expiring circuits, while timeradd() is
24757       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
24758       bugfix on 0.2.2.24-alpha and 0.2.3.1-alpha.
24759     - Do not use OpenSSL 1.0.0's counter mode: it has a critical bug
24760       that was fixed in OpenSSL 1.0.0a. We test for the counter mode
24761       bug at runtime, not compile time, because some distributions hack
24762       their OpenSSL to mis-report its version. Fixes bug 4779; bugfix
24763       on 0.2.3.9-alpha. Found by Pascal.
24765   o Minor features (controller):
24766     - Use absolute path names when reporting the torrc filename in the
24767       control protocol, so a controller can more easily find the torrc
24768       file. Resolves bug 1101.
24769     - Extend the control protocol to report flags that control a circuit's
24770       path selection in CIRC events and in replies to 'GETINFO
24771       circuit-status'. Implements part of ticket 2411.
24772     - Extend the control protocol to report the hidden service address
24773       and current state of a hidden-service-related circuit in CIRC
24774       events and in replies to 'GETINFO circuit-status'. Implements part
24775       of ticket 2411.
24776     - When reporting the path to the cookie file to the controller,
24777       give an absolute path. Resolves ticket 4881.
24778     - Allow controllers to request an event notification whenever a
24779       circuit is cannibalized or its purpose is changed. Implements
24780       part of ticket 3457.
24781     - Include the creation time of a circuit in CIRC and CIRC2
24782       control-port events and the list produced by the 'GETINFO
24783       circuit-status' control-port command.
24785   o Minor features (directory authorities):
24786     - Directory authorities now reject versions of Tor older than
24787       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
24788       inclusive. These versions accounted for only a small fraction of
24789       the Tor network, and have numerous known security issues. Resolves
24790       issue 4788.
24791     - Authority operators can now vote for all relays in a given
24792       set of countries to be BadDir/BadExit/Invalid/Rejected.
24793     - Provide two consensus parameters (FastFlagMinThreshold and
24794       FastFlagMaxThreshold) to control the range of allowable bandwidths
24795       for the Fast directory flag. These allow authorities to run
24796       experiments on appropriate requirements for being a "Fast" node.
24797       The AuthDirFastGuarantee config value still applies. Implements
24798       ticket 3946.
24799     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
24800       directory authority option (introduced in Tor 0.2.2.34).
24802   o Minor features (other):
24803     - Don't disable the DirPort when we cannot exceed our AccountingMax
24804       limit during this interval because the effective bandwidthrate is
24805       low enough. This is useful in a situation where AccountMax is only
24806       used as an additional safeguard or to provide statistics.
24807     - Prepend an informative header to generated dynamic_dh_params files.
24808     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
24809       EntryNodes will have no effect. Resolves issue 2571.
24810     - Log more useful messages when we fail to disable debugger
24811       attachment.
24812     - Log which authority we're missing votes from when we go to fetch
24813       them from the other auths.
24814     - Log (at debug level) whenever a circuit's purpose is changed.
24815     - Add missing documentation for the MaxClientCircuitsPending,
24816       UseMicrodescriptors, UserspaceIOCPBuffers, and
24817       _UseFilteringSSLBufferevents options, all introduced during
24818       the 0.2.3.x series.
24819     - Update to the January 3 2012 Maxmind GeoLite Country database.
24821   o Minor bugfixes (hidden services):
24822     - Don't close hidden service client circuits which have almost
24823       finished connecting to their destination when they reach
24824       the normal circuit-build timeout. Previously, we would close
24825       introduction circuits which are waiting for an acknowledgement
24826       from the introduction point, and rendezvous circuits which have
24827       been specified in an INTRODUCE1 cell sent to a hidden service,
24828       after the normal CBT. Now, we mark them as 'timed out', and launch
24829       another rendezvous attempt in parallel. This behavior change can
24830       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
24831       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
24832     - Don't close hidden-service-side rendezvous circuits when they
24833       reach the normal circuit-build timeout. This behavior change can
24834       be disabled using the new
24835       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
24836       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
24837     - Make sure we never mark the wrong rendezvous circuit as having
24838       had its introduction cell acknowledged by the introduction-point
24839       relay. Previously, when we received an INTRODUCE_ACK cell on a
24840       client-side hidden-service introduction circuit, we might have
24841       marked a rendezvous circuit other than the one we specified in
24842       the INTRODUCE1 cell as INTRO_ACKED, which would have produced
24843       a warning message and interfered with the hidden service
24844       connection-establishment process. Fixes bug 4759; bugfix on
24845       0.2.3.3-alpha, when we added the stream-isolation feature which
24846       might cause Tor to open multiple rendezvous circuits for the same
24847       hidden service.
24848     - Don't trigger an assertion failure when we mark a new client-side
24849       hidden-service introduction circuit for close during the process
24850       of creating it. Fixes bug 4796; bugfix on 0.2.3.6-alpha. Reported
24851       by murb.
24853   o Minor bugfixes (log messages):
24854     - Correctly spell "connect" in a log message on failure to create a
24855       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta and
24856       0.2.3.2-alpha.
24857     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
24858       Fixes bug 4856; bugfix on Tor 0.0.6.
24859     - Fix the log message describing how we work around discovering
24860       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
24861       4837; bugfix on 0.2.2.9-alpha.
24862     - When logging about a disallowed .exit name, do not also call it
24863       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
24865   o Minor bugfixes (build fixes):
24866     - During configure, detect when we're building with clang version
24867       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
24868       CFLAGS. clang doesn't support them yet.
24869     - During configure, search for library containing cos function as
24870       libm lives in libcore on some platforms (BeOS/Haiku). Linking
24871       against libm was hard-coded before. Fixes the first part of bug
24872       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
24873       Pedersen.
24874     - Detect attempts to build Tor on (as yet hypothetical) versions
24875       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
24876       fix for bug 4533. Bugfix on 0.2.2.28-beta.
24877     - Preprocessor directives should not be put inside the arguments
24878       of a macro. This would break compilation with GCC releases prior
24879       to version 3.3. We would never recommend such an old GCC version,
24880       but it is apparently required for binary compatibility on some
24881       platforms (namely, certain builds of Haiku). Fixes the other part
24882       of bug 4727; bugfix on 0.2.3.3-alpha. Patch and analysis by Martin
24883       Hebnes Pedersen.
24885   o Minor bugfixes (other):
24886     - Older Linux kernels erroneously respond to strange nmap behavior
24887       by having accept() return successfully with a zero-length
24888       socket. When this happens, just close the connection. Previously,
24889       we would try harder to learn the remote address: but there was
24890       no such remote address to learn, and our method for trying to
24891       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
24892       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
24893     - Fix null-pointer access that could occur if TLS allocation failed.
24894       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". This was
24895       erroneously listed as fixed in 0.2.3.9-alpha, but the fix had
24896       accidentally been reverted.
24897     - Fix our implementation of crypto_random_hostname() so it can't
24898       overflow on ridiculously large inputs. (No Tor version has ever
24899       provided this kind of bad inputs, but let's be correct in depth.)
24900       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
24901     - Find more places in the code that should have been testing for
24902       invalid sockets using the SOCKET_OK macro. Required for a fix
24903       for bug 4533. Bugfix on 0.2.2.28-beta.
24904     - Fix an assertion failure when, while running with bufferevents, a
24905       connection finishes connecting after it is marked for close, but
24906       before it is closed. Fixes bug 4697; bugfix on 0.2.3.1-alpha.
24907     - test_util_spawn_background_ok() hardcoded the expected value
24908       for ENOENT to 2. This isn't portable as error numbers are
24909       platform specific, and particularly the hurd has ENOENT at
24910       0x40000002. Construct expected string at runtime, using the correct
24911       value for ENOENT. Fixes bug 4733; bugfix on 0.2.3.1-alpha.
24912     - Reject attempts to disable DisableDebuggerAttachment while Tor is
24913       running. Fixes bug 4650; bugfix on 0.2.3.9-alpha.
24914     - Use an appropriate-width type for sockets in tor-fw-helper on
24915       win64. Fixes bug 1983 at last. Bugfix on 0.2.3.9-alpha.
24917   o Feature removal:
24918     - When sending or relaying a RELAY_EARLY cell, we used to convert
24919       it to a RELAY cell if the connection was using the v1 link
24920       protocol. This was a workaround for older versions of Tor, which
24921       didn't handle RELAY_EARLY cells properly. Now that all supported
24922       versions can handle RELAY_EARLY cells, and now that we're enforcing
24923       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
24924       remove this workaround. Addresses bug 4786.
24926   o Code simplifications and refactoring:
24927     - Use OpenSSL's built-in SSL_state_string_long() instead of our
24928       own homebrewed ssl_state_to_string() replacement. Patch from
24929       Emile Snyder. Fixes bug 4653.
24930     - Use macros to indicate OpenSSL versions, so we don't need to worry
24931       about accidental hexadecimal bit shifts.
24932     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
24933       supported).
24934     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
24935     - Use the smartlist_add_asprintf() alias more consistently.
24936     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
24937       invalid value, rather than just -1.
24938     - Rename a handful of old identifiers, mostly related to crypto
24939       structures and crypto functions. By convention, our "create an
24940       object" functions are called "type_new()", our "free an object"
24941       functions are called "type_free()", and our types indicate that
24942       they are types only with a final "_t". But a handful of older
24943       types and functions broke these rules, with function names like
24944       "type_create" or "subsystem_op_type", or with type names like
24945       type_env_t.
24948 Changes in version 0.2.3.10-alpha - 2011-12-16
24949   Tor 0.2.3.10-alpha fixes a critical heap-overflow security issue in
24950   Tor's buffers code. Absolutely everybody should upgrade.
24952   The bug relied on an incorrect calculation when making data continuous
24953   in one of our IO buffers, if the first chunk of the buffer was
24954   misaligned by just the wrong amount. The miscalculation would allow an
24955   attacker to overflow a piece of heap-allocated memory. To mount this
24956   attack, the attacker would need to either open a SOCKS connection to
24957   Tor's SocksPort (usually restricted to localhost), or target a Tor
24958   instance configured to make its connections through a SOCKS proxy
24959   (which Tor does not do by default).
24961   Good security practice requires that all heap-overflow bugs should be
24962   presumed to be exploitable until proven otherwise, so we are treating
24963   this as a potential code execution attack. Please upgrade immediately!
24964   This bug does not affect bufferevents-based builds of Tor. Special
24965   thanks to "Vektor" for reporting this issue to us!
24967   This release also contains a few minor bugfixes for issues discovered
24968   in 0.2.3.9-alpha.
24970   o Major bugfixes:
24971     - Fix a heap overflow bug that could occur when trying to pull
24972       data into the first chunk of a buffer, when that chunk had
24973       already had some data drained from it. Fixes CVE-2011-2778;
24974       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
24976   o Minor bugfixes:
24977     - If we can't attach streams to a rendezvous circuit when we
24978       finish connecting to a hidden service, clear the rendezvous
24979       circuit's stream-isolation state and try to attach streams
24980       again. Previously, we cleared rendezvous circuits' isolation
24981       state either too early (if they were freshly built) or not at all
24982       (if they had been built earlier and were cannibalized). Bugfix on
24983       0.2.3.3-alpha; fixes bug 4655.
24984     - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
24985       0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
24986     - Fix an assertion failure when a relay with accounting enabled
24987       starts up while dormant. Fixes bug 4702; bugfix on 0.2.3.9-alpha.
24989   o Minor features:
24990     - Update to the December 6 2011 Maxmind GeoLite Country database.
24993 Changes in version 0.2.2.35 - 2011-12-16
24994   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
24995   buffers code. Absolutely everybody should upgrade.
24997   The bug relied on an incorrect calculation when making data continuous
24998   in one of our IO buffers, if the first chunk of the buffer was
24999   misaligned by just the wrong amount. The miscalculation would allow an
25000   attacker to overflow a piece of heap-allocated memory. To mount this
25001   attack, the attacker would need to either open a SOCKS connection to
25002   Tor's SocksPort (usually restricted to localhost), or target a Tor
25003   instance configured to make its connections through a SOCKS proxy
25004   (which Tor does not do by default).
25006   Good security practice requires that all heap-overflow bugs should be
25007   presumed to be exploitable until proven otherwise, so we are treating
25008   this as a potential code execution attack. Please upgrade immediately!
25009   This bug does not affect bufferevents-based builds of Tor. Special
25010   thanks to "Vektor" for reporting this issue to us!
25012   Tor 0.2.2.35 also fixes several bugs in previous versions, including
25013   crash bugs for unusual configurations, and a long-term bug that
25014   would prevent Tor from starting on Windows machines with draconian
25015   AV software.
25017   With this release, we remind everyone that 0.2.0.x has reached its
25018   formal end-of-life. Those Tor versions have many known flaws, and
25019   nobody should be using them. You should upgrade -- ideally to the
25020   0.2.2.x series. If you're using a Linux or BSD and its packages are
25021   obsolete, stop using those packages and upgrade anyway.
25023   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
25024   longer receive support after some time in early 2012.
25026   o Major bugfixes:
25027     - Fix a heap overflow bug that could occur when trying to pull
25028       data into the first chunk of a buffer, when that chunk had
25029       already had some data drained from it. Fixes CVE-2011-2778;
25030       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
25031     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
25032       that it doesn't attempt to allocate a socketpair. This could cause
25033       some problems on Windows systems with overzealous firewalls. Fix for
25034       bug 4457; workaround for Libevent versions 2.0.1-alpha through
25035       2.0.15-stable.
25036     - If we mark an OR connection for close based on a cell we process,
25037       don't process any further cells on it. We already avoid further
25038       reads on marked-for-close connections, but now we also discard the
25039       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
25040       which was the first version where we might mark a connection for
25041       close based on processing a cell on it.
25042     - Correctly sanity-check that we don't underflow on a memory
25043       allocation (and then assert) for hidden service introduction
25044       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
25045       bugfix on 0.2.1.5-alpha.
25046     - Fix a memory leak when we check whether a hidden service
25047       descriptor has any usable introduction points left. Fixes bug
25048       4424. Bugfix on 0.2.2.25-alpha.
25049     - Don't crash when we're running as a relay and don't have a GeoIP
25050       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
25051       we've had in the 0.2.3.x branch already.
25052     - When running as a client, do not print a misleading (and plain
25053       wrong) log message that we're collecting "directory request"
25054       statistics: clients don't collect statistics. Also don't create a
25055       useless (because empty) stats file in the stats/ directory. Fixes
25056       bug 4353; bugfix on 0.2.2.34.
25058   o Minor bugfixes:
25059     - Detect failure to initialize Libevent. This fix provides better
25060       detection for future instances of bug 4457.
25061     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
25062       function. This was eating up hideously large amounts of time on some
25063       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
25064     - Resolve an integer overflow bug in smartlist_ensure_capacity().
25065       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
25066       Mansour Moufid.
25067     - Don't warn about unused log_mutex in log.c when building with
25068       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
25069       0.1.0.6-rc which introduced --disable-threads.
25070     - When configuring, starting, or stopping an NT service, stop
25071       immediately after the service configuration attempt has succeeded
25072       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
25073     - When sending a NETINFO cell, include the original address
25074       received for the other side, not its canonical address. Found
25075       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
25076     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
25077       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
25078     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
25079       occurred when a client tried to fetch a descriptor for a bridge
25080       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
25081     - Backport fixes for a pair of compilation warnings on Windows.
25082       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
25083     - If we had ever tried to call tor_addr_to_str on an address of
25084       unknown type, we would have done a strdup on an uninitialized
25085       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
25086       Reported by "troll_un".
25087     - Correctly detect and handle transient lookup failures from
25088       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
25089       Reported by "troll_un".
25090     - Fix null-pointer access that could occur if TLS allocation failed.
25091       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
25092     - Use tor_socket_t type for listener argument to accept(). Fixes bug
25093       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
25095   o Minor features:
25096     - Add two new config options for directory authorities:
25097       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
25098       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
25099       that is always sufficient to satisfy the bandwidth requirement for
25100       the Guard flag. Now it will be easier for researchers to simulate
25101       Tor networks with different values. Resolves ticket 4484.
25102     - When Tor ignores a hidden service specified in its configuration,
25103       include the hidden service's directory in the warning message.
25104       Previously, we would only tell the user that some hidden service
25105       was ignored. Bugfix on 0.0.6; fixes bug 4426.
25106     - Update to the December 6 2011 Maxmind GeoLite Country database.
25108   o Packaging changes:
25109     - Make it easier to automate expert package builds on Windows,
25110       by removing an absolute path from makensis.exe command.
25113 Changes in version 0.2.1.32 - 2011-12-16
25114   Tor 0.2.1.32 backports important security and privacy fixes for
25115   oldstable. This release is intended only for package maintainers and
25116   others who cannot use the 0.2.2 stable series. All others should be
25117   using Tor 0.2.2.x or newer.
25119   The Tor 0.2.1.x series will reach formal end-of-life some time in
25120   early 2012; we will stop releasing patches for it then.
25122   o Major bugfixes (also included in 0.2.2.x):
25123     - Correctly sanity-check that we don't underflow on a memory
25124       allocation (and then assert) for hidden service introduction
25125       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
25126       bugfix on 0.2.1.5-alpha.
25127     - Fix a heap overflow bug that could occur when trying to pull
25128       data into the first chunk of a buffer, when that chunk had
25129       already had some data drained from it. Fixes CVE-2011-2778;
25130       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
25132   o Minor features:
25133     - Update to the December 6 2011 Maxmind GeoLite Country database.
25136 Changes in version 0.2.3.9-alpha - 2011-12-08
25137   Tor 0.2.3.9-alpha introduces initial IPv6 support for bridges, adds
25138   a "DisableNetwork" security feature that bundles can use to avoid
25139   touching the network until bridges are configured, moves forward on
25140   the pluggable transport design, fixes a flaw in the hidden service
25141   design that unnecessarily prevented clients with wrong clocks from
25142   reaching hidden services, and fixes a wide variety of other issues.
25144   o Major features:
25145     - Clients can now connect to private bridges over IPv6. Bridges
25146       still need at least one IPv4 address in order to connect to
25147       other relays. Note that we don't yet handle the case where the
25148       user has two bridge lines for the same bridge (one IPv4, one
25149       IPv6). Implements parts of proposal 186.
25150     - New "DisableNetwork" config option to prevent Tor from launching any
25151       connections or accepting any connections except on a control port.
25152       Bundles and controllers can set this option before letting Tor talk
25153       to the rest of the network, for example to prevent any connections
25154       to a non-bridge address. Packages like Orbot can also use this
25155       option to instruct Tor to save power when the network is off.
25156     - Clients and bridges can now be configured to use a separate
25157       "transport" proxy. This approach makes the censorship arms race
25158       easier by allowing bridges to use protocol obfuscation plugins. It
25159       implements the "managed proxy" part of proposal 180 (ticket 3472).
25160     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
25161       implementation. It makes AES_CTR about 7% faster than our old one
25162       (which was about 10% faster than the one OpenSSL used to provide).
25163       Resolves ticket 4526.
25164     - Add a "tor2web mode" for clients that want to connect to hidden
25165       services non-anonymously (and possibly more quickly). As a safety
25166       measure to try to keep users from turning this on without knowing
25167       what they are doing, tor2web mode must be explicitly enabled at
25168       compile time, and a copy of Tor compiled to run in tor2web mode
25169       cannot be used as a normal Tor client. Implements feature 2553.
25170     - Add experimental support for running on Windows with IOCP and no
25171       kernel-space socket buffers. This feature is controlled by a new
25172       "UserspaceIOCPBuffers" config option (off by default), which has
25173       no effect unless Tor has been built with support for bufferevents,
25174       is running on Windows, and has enabled IOCP. This may, in the long
25175       run, help solve or mitigate bug 98.
25176     - Use a more secure consensus parameter voting algorithm. Now at
25177       least three directory authorities or a majority of them must
25178       vote on a given parameter before it will be included in the
25179       consensus. Implements proposal 178.
25181   o Major bugfixes:
25182     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
25183       They used to check that the timestamp was within 30 minutes
25184       of their system clock, so they could cap the size of their
25185       replay-detection cache, but that approach unnecessarily refused
25186       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
25187       the v3 intro-point protocol (the first one which sent a timestamp
25188       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
25189     - Only use the EVP interface when AES acceleration is enabled,
25190       to avoid a 5-7% performance regression. Resolves issue 4525;
25191       bugfix on 0.2.3.8-alpha.
25193   o Privacy/anonymity features (bridge detection):
25194     - Make bridge SSL certificates a bit more stealthy by using random
25195       serial numbers, in the same fashion as OpenSSL when generating
25196       self-signed certificates. Implements ticket 4584.
25197     - Introduce a new config option "DynamicDHGroups", enabled by
25198       default, which provides each bridge with a unique prime DH modulus
25199       to be used during SSL handshakes. This option attempts to help
25200       against censors who might use the Apache DH modulus as a static
25201       identifier for bridges. Addresses ticket 4548.
25203   o Minor features (new/different config options):
25204     - New configuration option "DisableDebuggerAttachment" (on by default)
25205       to prevent basic debugging attachment attempts by other processes.
25206       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
25207     - Allow MapAddress directives to specify matches against super-domains,
25208       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
25209       Implements issue 933.
25210     - Slightly change behavior of "list" options (that is, config
25211       options that can appear more than once) when they appear both in
25212       torrc and on the command line. Previously, the command-line options
25213       would be appended to the ones from torrc. Now, the command-line
25214       options override the torrc options entirely. This new behavior
25215       allows the user to override list options (like exit policies and
25216       ports to listen on) from the command line, rather than simply
25217       appending to the list.
25218     - You can get the old (appending) command-line behavior for "list"
25219       options by prefixing the option name with a "+".
25220     - You can remove all the values for a "list" option from the command
25221       line without adding any new ones by prefixing the option name
25222       with a "/".
25223     - Add experimental support for a "defaults" torrc file to be parsed
25224       before the regular torrc. Torrc options override the defaults file's
25225       options in the same way that the command line overrides the torrc.
25226       The SAVECONF controller command saves only those options which
25227       differ between the current configuration and the defaults file. HUP
25228       reloads both files. (Note: This is an experimental feature; its
25229       behavior will probably be refined in future 0.2.3.x-alpha versions
25230       to better meet packagers' needs.) Implements task 4552.
25232   o Minor features:
25233     - Try to make the introductory warning message that Tor prints on
25234       startup more useful for actually finding help and information.
25235       Resolves ticket 2474.
25236     - Running "make version" now displays the version of Tor that
25237       we're about to build. Idea from katmagic; resolves issue 4400.
25238     - Expire old or over-used hidden service introduction points.
25239       Required by fix for bug 3460.
25240     - Move the replay-detection cache for the RSA-encrypted parts of
25241       INTRODUCE2 cells to the introduction point data structures.
25242       Previously, we would use one replay-detection cache per hidden
25243       service. Required by fix for bug 3460.
25244     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
25245       public key replay-detection cache from 60 minutes to 5 minutes. This
25246       replay-detection cache is now used only to detect multiple
25247       INTRODUCE2 cells specifying the same rendezvous point, so we can
25248       avoid launching multiple simultaneous attempts to connect to it.
25250   o Minor bugfixes (on Tor 0.2.2.x and earlier):
25251     - Resolve an integer overflow bug in smartlist_ensure_capacity().
25252       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
25253       Mansour Moufid.
25254     - Fix a minor formatting issue in one of tor-gencert's error messages.
25255       Fixes bug 4574.
25256     - Prevent a false positive from the check-spaces script, by disabling
25257       the "whitespace between function name and (" check for functions
25258       named 'op()'.
25259     - Fix a log message suggesting that people contact a non-existent
25260       email address. Fixes bug 3448.
25261     - Fix null-pointer access that could occur if TLS allocation failed.
25262       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
25263     - Report a real bootstrap problem to the controller on router
25264       identity mismatch. Previously we just said "foo", which probably
25265       made a lot of sense at the time. Fixes bug 4169; bugfix on
25266       0.2.1.1-alpha.
25267     - If we had ever tried to call tor_addr_to_str() on an address of
25268       unknown type, we would have done a strdup() on an uninitialized
25269       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
25270       Reported by "troll_un".
25271     - Correctly detect and handle transient lookup failures from
25272       tor_addr_lookup(). Fixes bug 4530; bugfix on 0.2.1.5-alpha.
25273       Reported by "troll_un".
25274     - Use tor_socket_t type for listener argument to accept(). Fixes bug
25275       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
25276     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
25277       bug 4532; found by "troll_un".
25279   o Minor bugfixes (on Tor 0.2.3.x):
25280     - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
25281       fixes bug 4554.
25282     - Don't send two ESTABLISH_RENDEZVOUS cells when opening a new
25283       circuit for use as a hidden service client's rendezvous point.
25284       Fixes bugs 4641 and 4171; bugfix on 0.2.3.3-alpha. Diagnosed
25285       with help from wanoskarnet.
25286     - Restore behavior of overriding SocksPort, ORPort, and similar
25287       options from the command line. Bugfix on 0.2.3.3-alpha.
25289   o Build fixes:
25290     - Properly handle the case where the build-tree is not the same
25291       as the source tree when generating src/common/common_sha1.i,
25292       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
25293       bugfix on 0.2.0.1-alpha.
25295   o Code simplifications, cleanups, and refactorings:
25296     - Remove the pure attribute from all functions that used it
25297       previously. In many cases we assigned it incorrectly, because the
25298       functions might assert or call impure functions, and we don't have
25299       evidence that keeping the pure attribute is worthwhile. Implements
25300       changes suggested in ticket 4421.
25301     - Remove some dead code spotted by coverity. Fixes cid 432.
25302       Bugfix on 0.2.3.1-alpha, closes bug 4637.
25305 Changes in version 0.2.3.8-alpha - 2011-11-22
25306   Tor 0.2.3.8-alpha fixes some crash and assert bugs, including a
25307   socketpair-related bug that has been bothering Windows users. It adds
25308   support to serve microdescriptors to controllers, so Vidalia's network
25309   map can resume listing relays (once Vidalia implements its side),
25310   and adds better support for hardware AES acceleration. Finally, it
25311   starts the process of adjusting the bandwidth cutoff for getting the
25312   "Fast" flag from 20KB to (currently) 32KB -- preliminary results show
25313   that tiny relays harm performance more than they help network capacity.
25315   o Major bugfixes:
25316     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
25317       that it doesn't attempt to allocate a socketpair. This could cause
25318       some problems on Windows systems with overzealous firewalls. Fix for
25319       bug 4457; workaround for Libevent versions 2.0.1-alpha through
25320       2.0.15-stable.
25321     - Correctly sanity-check that we don't underflow on a memory
25322       allocation (and then assert) for hidden service introduction
25323       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
25324       bugfix on 0.2.1.5-alpha.
25325     - Remove the artificially low cutoff of 20KB to guarantee the Fast
25326       flag. In the past few years the average relay speed has picked
25327       up, and while the "top 7/8 of the network get the Fast flag" and
25328       "all relays with 20KB or more of capacity get the Fast flag" rules
25329       used to have the same result, now the top 7/8 of the network has
25330       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
25331     - Fix a rare assertion failure when checking whether a v0 hidden
25332       service descriptor has any usable introduction points left, and
25333       we don't have enough information to build a circuit to the first
25334       intro point named in the descriptor. The HS client code in
25335       0.2.3.x no longer uses v0 HS descriptors, but this assertion can
25336       trigger on (and crash) v0 HS authorities. Fixes bug 4411.
25337       Bugfix on 0.2.3.1-alpha; diagnosed by frosty_un.
25338     - Make bridge authorities not crash when they are asked for their own
25339       descriptor. Bugfix on 0.2.3.7-alpha, reported by Lucky Green.
25340     - When running as a client, do not print a misleading (and plain
25341       wrong) log message that we're collecting "directory request"
25342       statistics: clients don't collect statistics. Also don't create a
25343       useless (because empty) stats file in the stats/ directory. Fixes
25344       bug 4353; bugfix on 0.2.2.34 and 0.2.3.7-alpha.
25346   o Major features:
25347     - Allow Tor controllers like Vidalia to obtain the microdescriptor
25348       for a relay by identity digest or nickname. Previously,
25349       microdescriptors were only available by their own digests, so a
25350       controller would have to ask for and parse the whole microdescriptor
25351       consensus in order to look up a single relay's microdesc. Fixes
25352       bug 3832; bugfix on 0.2.3.1-alpha.
25353     - Use OpenSSL's EVP interface for AES encryption, so that all AES
25354       operations can use hardware acceleration (if present). Resolves
25355       ticket 4442.
25357   o Minor bugfixes (on 0.2.2.x and earlier):
25358     - Detect failure to initialize Libevent. This fix provides better
25359       detection for future instances of bug 4457.
25360     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
25361       function. This was eating up hideously large amounts of time on some
25362       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
25363     - Don't warn about unused log_mutex in log.c when building with
25364       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
25365       0.1.0.6-rc which introduced --disable-threads.
25366     - Allow manual 'authenticate' commands to the controller interface
25367       from netcat (nc) as well as telnet. We were rejecting them because
25368       they didn't come with the expected whitespace at the end of the
25369       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
25370     - Fix some (not actually triggerable) buffer size checks in usage of
25371       tor_inet_ntop. Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
25372       by Anders Sundman.
25373     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
25374       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
25375     - When configuring, starting, or stopping an NT service, stop
25376       immediately after the service configuration attempt has succeeded
25377       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
25378     - When sending a NETINFO cell, include the original address
25379       received for the other side, not its canonical address. Found
25380       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
25381     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
25382       can pick them up when the tests aren't disabled. Bugfix on
25383       0.2.2.4-alpha which introduced tinytest.
25384     - Fix a memory leak when we check whether a hidden service
25385       descriptor has any usable introduction points left. Fixes bug
25386       4424. Bugfix on 0.2.2.25-alpha.
25387     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
25388       occurred when a client tried to fetch a descriptor for a bridge
25389       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
25391   o Minor bugfixes (on 0.2.3.x):
25392     - Make util unit tests build correctly with MSVC. Bugfix on
25393       0.2.3.3-alpha. Patch by Gisle Vanem.
25394     - Successfully detect AUTH_CHALLENGE cells with no recognized
25395       authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
25396       Found by frosty_un.
25397     - If a relay receives an AUTH_CHALLENGE cell it can't answer,
25398       it should still send a NETINFO cell to allow the connection to
25399       become open. Fixes bug 4368; fix on 0.2.3.6-alpha; bug found by
25400       "frosty".
25401     - Log less loudly when we get an invalid authentication certificate
25402       from a source other than a directory authority: it's not unusual
25403       to see invalid certs because of clock skew. Fixes bug 4370; bugfix
25404       on 0.2.3.6-alpha.
25405     - Tolerate servers with more clock skew in their authentication
25406       certificates than previously. Fixes bug 4371; bugfix on
25407       0.2.3.6-alpha.
25408     - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
25409       on 0.2.3.4-alpha and 0.2.3.6-alpha.
25411   o Minor features:
25412     - Add two new config options for directory authorities:
25413       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
25414       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
25415       that is always sufficient to satisfy the bandwidth requirement for
25416       the Guard flag. Now it will be easier for researchers to simulate
25417       Tor networks with different values. Resolves ticket 4484.
25418     - When Tor ignores a hidden service specified in its configuration,
25419       include the hidden service's directory in the warning message.
25420       Previously, we would only tell the user that some hidden service
25421       was ignored. Bugfix on 0.0.6; fixes bug 4426.
25422     - When we fail to initialize Libevent, retry with IOCP disabled so we
25423       don't need to turn on multi-threading support in Libevent, which in
25424       turn requires a working socketpair(). This is a workaround for bug
25425       4457, which affects Libevent versions from 2.0.1-alpha through
25426       2.0.15-stable.
25427     - Detect when we try to build on a platform that doesn't define
25428       AF_UNSPEC to 0. We don't work there, so refuse to compile.
25429     - Update to the November 1 2011 Maxmind GeoLite Country database.
25431   o Packaging changes:
25432     - Make it easier to automate expert package builds on Windows,
25433       by removing an absolute path from makensis.exe command.
25435   o Code simplifications and refactoring:
25436     - Remove some redundant #include directives throughout the code.
25437       Patch from Andrea Gelmini.
25438     - Unconditionally use OpenSSL's AES implementation instead of our
25439       old built-in one. OpenSSL's AES has been better for a while, and
25440       relatively few servers should still be on any version of OpenSSL
25441       that doesn't have good optimized assembly AES.
25442     - Use the name "CERTS" consistently to refer to the new cell type;
25443       we were calling it CERT in some places and CERTS in others.
25445   o Testing:
25446     - Numerous new unit tests for functions in util.c and address.c by
25447       Anders Sundman.
25448     - The long-disabled benchmark tests are now split into their own
25449       ./src/test/bench binary.
25450     - The benchmark tests can now use more accurate timers than
25451       gettimeofday() when such timers are available.
25454 Changes in version 0.2.3.7-alpha - 2011-10-30
25455   Tor 0.2.3.7-alpha fixes a crash bug in 0.2.3.6-alpha introduced by
25456   the new v3 handshake. It also resolves yet another bridge address
25457   enumeration issue.
25459   o Major bugfixes:
25460     - If we mark an OR connection for close based on a cell we process,
25461       don't process any further cells on it. We already avoid further
25462       reads on marked-for-close connections, but now we also discard the
25463       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
25464       which was the first version where we might mark a connection for
25465       close based on processing a cell on it.
25466     - Fix a double-free bug that would occur when we received an invalid
25467       certificate in a CERT cell in the new v3 handshake. Fixes bug 4343;
25468       bugfix on 0.2.3.6-alpha.
25469     - Bridges no longer include their address in NETINFO cells on outgoing
25470       OR connections, to allow them to blend in better with clients.
25471       Removes another avenue for enumerating bridges. Reported by
25472       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
25473       cells were introduced.
25475   o Trivial fixes:
25476     - Fixed a typo in a hibernation-related log message. Fixes bug 4331;
25477       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
25480 Changes in version 0.2.3.6-alpha - 2011-10-26
25481   Tor 0.2.3.6-alpha includes the fix from 0.2.2.34 for a critical
25482   anonymity vulnerability where an attacker can deanonymize Tor
25483   users. Everybody should upgrade.
25485   This release also features support for a new v3 connection handshake
25486   protocol, and fixes to make hidden service connections more robust.
25488   o Major features:
25489     - Implement a new handshake protocol (v3) for authenticating Tors to
25490       each other over TLS. It should be more resistant to fingerprinting
25491       than previous protocols, and should require less TLS hacking for
25492       future Tor implementations. Implements proposal 176.
25493     - Allow variable-length padding cells to disguise the length of
25494       Tor's TLS records. Implements part of proposal 184.
25496   o Privacy/anonymity fixes (clients):
25497     - Clients and bridges no longer send TLS certificate chains on
25498       outgoing OR connections. Previously, each client or bridge would
25499       use the same cert chain for all outgoing OR connections until
25500       its IP address changes, which allowed any relay that the client
25501       or bridge contacted to determine which entry guards it is using.
25502       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
25503     - If a relay receives a CREATE_FAST cell on a TLS connection, it
25504       no longer considers that connection as suitable for satisfying a
25505       circuit EXTEND request. Now relays can protect clients from the
25506       CVE-2011-2768 issue even if the clients haven't upgraded yet.
25507     - Directory authorities no longer assign the Guard flag to relays
25508       that haven't upgraded to the above "refuse EXTEND requests
25509       to client connections" fix. Now directory authorities can
25510       protect clients from the CVE-2011-2768 issue even if neither
25511       the clients nor the relays have upgraded yet. There's a new
25512       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
25513       to let us transition smoothly, else tomorrow there would be no
25514       guard relays.
25516   o Major bugfixes (hidden services):
25517     - Improve hidden service robustness: when an attempt to connect to
25518       a hidden service ends, be willing to refetch its hidden service
25519       descriptors from each of the HSDir relays responsible for them
25520       immediately. Previously, we would not consider refetching the
25521       service's descriptors from each HSDir for 15 minutes after the last
25522       fetch, which was inconvenient if the hidden service was not running
25523       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
25524     - When one of a hidden service's introduction points appears to be
25525       unreachable, stop trying it. Previously, we would keep trying
25526       to build circuits to the introduction point until we lost the
25527       descriptor, usually because the user gave up and restarted Tor.
25528       Partly fixes bug 3825.
25529     - Don't launch a useless circuit after failing to use one of a
25530       hidden service's introduction points. Previously, we would
25531       launch a new introduction circuit, but not set the hidden service
25532       which that circuit was intended to connect to, so it would never
25533       actually be used. A different piece of code would then create a
25534       new introduction circuit correctly. Bug reported by katmagic and
25535       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
25537   o Major bugfixes (other):
25538     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
25539       that they initiated. Relays could distinguish incoming bridge
25540       connections from client connections, creating another avenue for
25541       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
25542       Found by "frosty_un".
25543     - Don't update the AccountingSoftLimitHitAt state file entry whenever
25544       tor gets started. This prevents a wrong average bandwidth
25545       estimate, which would cause relays to always start a new accounting
25546       interval at the earliest possible moment. Fixes bug 2003; bugfix
25547       on 0.2.2.7-alpha. Reported by BryonEldridge, who also helped
25548       immensely in tracking this bug down.
25549     - Fix a crash bug when changing node restrictions while a DNS lookup
25550       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
25551       by "Tey'".
25553   o Minor bugfixes (on 0.2.2.x and earlier):
25554     - When a hidden service turns an extra service-side introduction
25555       circuit into a general-purpose circuit, free the rend_data and
25556       intro_key fields first, so we won't leak memory if the circuit
25557       is cannibalized for use as another service-side introduction
25558       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
25559     - Rephrase the log message emitted if the TestSocks check is
25560       successful. Patch from Fabian Keil; fixes bug 4094.
25561     - Bridges now skip DNS self-tests, to act a little more stealthily.
25562       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
25563       bridges. Patch by "warms0x".
25564     - Remove a confusing dollar sign from the example fingerprint in the
25565       man page, and also make the example fingerprint a valid one. Fixes
25566       bug 4309; bugfix on 0.2.1.3-alpha.
25567     - Fix internal bug-checking logic that was supposed to catch
25568       failures in digest generation so that it will fail more robustly
25569       if we ask for a nonexistent algorithm. Found by Coverity Scan.
25570       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
25571     - Report any failure in init_keys() calls launched because our
25572       IP address has changed. Spotted by Coverity Scan. Bugfix on
25573       0.1.1.4-alpha; fixes CID 484.
25575   o Minor bugfixes (on 0.2.3.x):
25576     - Fix a bug in configure.in that kept it from building a configure
25577       script with autoconf versions earlier than 2.61. Fixes bug 2430;
25578       bugfix on 0.2.3.1-alpha.
25579     - Don't warn users that they are exposing a client port to the
25580       Internet if they have specified an RFC1918 address. Previously,
25581       we would warn if the user had specified any non-loopback
25582       address. Bugfix on 0.2.3.3-alpha. Fixes bug 4018; reported by Tas.
25583     - Fix memory leaks in the failing cases of the new SocksPort and
25584       ControlPort code. Found by Coverity Scan. Bugfix on 0.2.3.3-alpha;
25585       fixes coverity CIDs 485, 486, and 487.
25587   o Minor features:
25588     - When a hidden service's introduction point times out, consider
25589       trying it again during the next attempt to connect to the
25590       HS. Previously, we would not try it again unless a newly fetched
25591       descriptor contained it. Required by fixes for bugs 1297 and 3825.
25592     - The next version of Windows will be called Windows 8, and it has
25593       a major version of 6, minor version of 2. Correctly identify that
25594       version instead of calling it "Very recent version". Resolves
25595       ticket 4153; reported by funkstar.
25596     - The Bridge Authority now writes statistics on how many bridge
25597       descriptors it gave out in total, and how many unique descriptors
25598       it gave out. It also lists how often the most and least commonly
25599       fetched descriptors were given out, as well as the median and
25600       25th/75th percentile. Implements tickets 4200 and 4294.
25601     - Update to the October 4 2011 Maxmind GeoLite Country database.
25603   o Code simplifications and refactoring:
25604     - Remove some old code to remember statistics about which descriptors
25605       we've served as a directory mirror. The feature wasn't used and
25606       is outdated now that microdescriptors are around.
25607     - Rename Tor functions that turn strings into addresses, so that
25608       "parse" indicates that no hostname resolution occurs, and
25609       "lookup" indicates that hostname resolution may occur. This
25610       should help prevent mistakes in the future. Fixes bug 3512.
25613 Changes in version 0.2.2.34 - 2011-10-26
25614   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
25615   can deanonymize Tor users. Everybody should upgrade.
25617   The attack relies on four components: 1) Clients reuse their TLS cert
25618   when talking to different relays, so relays can recognize a user by
25619   the identity key in her cert. 2) An attacker who knows the client's
25620   identity key can probe each guard relay to see if that identity key
25621   is connected to that guard relay right now. 3) A variety of active
25622   attacks in the literature (starting from "Low-Cost Traffic Analysis
25623   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
25624   discover the guard relays that a Tor user visiting the website is using.
25625   4) Clients typically pick three guards at random, so the set of guards
25626   for a given user could well be a unique fingerprint for her. This
25627   release fixes components #1 and #2, which is enough to block the attack;
25628   the other two remain as open research problems. Special thanks to
25629   "frosty_un" for reporting the issue to us!
25631   Clients should upgrade so they are no longer recognizable by the TLS
25632   certs they present. Relays should upgrade so they no longer allow a
25633   remote attacker to probe them to test whether unpatched clients are
25634   currently connected to them.
25636   This release also fixes several vulnerabilities that allow an attacker
25637   to enumerate bridge relays. Some bridge enumeration attacks still
25638   remain; see for example proposal 188.
25640   o Privacy/anonymity fixes (clients):
25641     - Clients and bridges no longer send TLS certificate chains on
25642       outgoing OR connections. Previously, each client or bridge would
25643       use the same cert chain for all outgoing OR connections until
25644       its IP address changes, which allowed any relay that the client
25645       or bridge contacted to determine which entry guards it is using.
25646       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
25647     - If a relay receives a CREATE_FAST cell on a TLS connection, it
25648       no longer considers that connection as suitable for satisfying a
25649       circuit EXTEND request. Now relays can protect clients from the
25650       CVE-2011-2768 issue even if the clients haven't upgraded yet.
25651     - Directory authorities no longer assign the Guard flag to relays
25652       that haven't upgraded to the above "refuse EXTEND requests
25653       to client connections" fix. Now directory authorities can
25654       protect clients from the CVE-2011-2768 issue even if neither
25655       the clients nor the relays have upgraded yet. There's a new
25656       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
25657       to let us transition smoothly, else tomorrow there would be no
25658       guard relays.
25660   o Privacy/anonymity fixes (bridge enumeration):
25661     - Bridge relays now do their directory fetches inside Tor TLS
25662       connections, like all the other clients do, rather than connecting
25663       directly to the DirPort like public relays do. Removes another
25664       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
25665     - Bridges relays now build circuits for themselves in a more similar
25666       way to how clients build them. Removes another avenue for
25667       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
25668       when bridges were introduced.
25669     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
25670       that they initiated. Relays could distinguish incoming bridge
25671       connections from client connections, creating another avenue for
25672       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
25673       Found by "frosty_un".
25675   o Major bugfixes:
25676     - Fix a crash bug when changing node restrictions while a DNS lookup
25677       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
25678       by "Tey'".
25679     - Don't launch a useless circuit after failing to use one of a
25680       hidden service's introduction points. Previously, we would
25681       launch a new introduction circuit, but not set the hidden service
25682       which that circuit was intended to connect to, so it would never
25683       actually be used. A different piece of code would then create a
25684       new introduction circuit correctly. Bug reported by katmagic and
25685       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
25687   o Minor bugfixes:
25688     - Change an integer overflow check in the OpenBSD_Malloc code so
25689       that GCC is less likely to eliminate it as impossible. Patch
25690       from Mansour Moufid. Fixes bug 4059.
25691     - When a hidden service turns an extra service-side introduction
25692       circuit into a general-purpose circuit, free the rend_data and
25693       intro_key fields first, so we won't leak memory if the circuit
25694       is cannibalized for use as another service-side introduction
25695       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
25696     - Bridges now skip DNS self-tests, to act a little more stealthily.
25697       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
25698       bridges. Patch by "warms0x".
25699     - Fix internal bug-checking logic that was supposed to catch
25700       failures in digest generation so that it will fail more robustly
25701       if we ask for a nonexistent algorithm. Found by Coverity Scan.
25702       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
25703     - Report any failure in init_keys() calls launched because our
25704       IP address has changed. Spotted by Coverity Scan. Bugfix on
25705       0.1.1.4-alpha; fixes CID 484.
25707   o Minor bugfixes (log messages and documentation):
25708     - Remove a confusing dollar sign from the example fingerprint in the
25709       man page, and also make the example fingerprint a valid one. Fixes
25710       bug 4309; bugfix on 0.2.1.3-alpha.
25711     - The next version of Windows will be called Windows 8, and it has
25712       a major version of 6, minor version of 2. Correctly identify that
25713       version instead of calling it "Very recent version". Resolves
25714       ticket 4153; reported by funkstar.
25715     - Downgrade log messages about circuit timeout calibration from
25716       "notice" to "info": they don't require or suggest any human
25717       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
25718       bugfix on 0.2.2.14-alpha.
25720   o Minor features:
25721     - Turn on directory request statistics by default and include them in
25722       extra-info descriptors. Don't break if we have no GeoIP database.
25723       Backported from 0.2.3.1-alpha; implements ticket 3951.
25724     - Update to the October 4 2011 Maxmind GeoLite Country database.
25727 Changes in version 0.2.1.31 - 2011-10-26
25728   Tor 0.2.1.31 backports important security and privacy fixes for
25729   oldstable. This release is intended only for package maintainers and
25730   others who cannot use the 0.2.2 stable series. All others should be
25731   using Tor 0.2.2.x or newer.
25733   o Security fixes (also included in 0.2.2.x):
25734     - Replace all potentially sensitive memory comparison operations
25735       with versions whose runtime does not depend on the data being
25736       compared. This will help resist a class of attacks where an
25737       adversary can use variations in timing information to learn
25738       sensitive data. Fix for one case of bug 3122. (Safe memcmp
25739       implementation by Robert Ransom based partially on code by DJB.)
25740     - Fix an assert in parsing router descriptors containing IPv6
25741       addresses. This one took down the directory authorities when
25742       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
25744   o Privacy/anonymity fixes (also included in 0.2.2.x):
25745     - Clients and bridges no longer send TLS certificate chains on
25746       outgoing OR connections. Previously, each client or bridge would
25747       use the same cert chain for all outgoing OR connections until
25748       its IP address changes, which allowed any relay that the client
25749       or bridge contacted to determine which entry guards it is using.
25750       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
25751     - If a relay receives a CREATE_FAST cell on a TLS connection, it
25752       no longer considers that connection as suitable for satisfying a
25753       circuit EXTEND request. Now relays can protect clients from the
25754       CVE-2011-2768 issue even if the clients haven't upgraded yet.
25755     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
25756       that they initiated. Relays could distinguish incoming bridge
25757       connections from client connections, creating another avenue for
25758       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
25759       Found by "frosty_un".
25760     - When receiving a hidden service descriptor, check that it is for
25761       the hidden service we wanted. Previously, Tor would store any
25762       hidden service descriptors that a directory gave it, whether it
25763       wanted them or not. This wouldn't have let an attacker impersonate
25764       a hidden service, but it did let directories pre-seed a client
25765       with descriptors that it didn't want. Bugfix on 0.0.6.
25766     - Avoid linkability based on cached hidden service descriptors: forget
25767       all hidden service descriptors cached as a client when processing a
25768       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
25769     - Make the bridge directory authority refuse to answer directory
25770       requests for "all" descriptors. It used to include bridge
25771       descriptors in its answer, which was a major information leak.
25772       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
25773     - Don't attach new streams to old rendezvous circuits after SIGNAL
25774       NEWNYM. Previously, we would keep using an existing rendezvous
25775       circuit if it remained open (i.e. if it were kept open by a
25776       long-lived stream, or if a new stream were attached to it before
25777       Tor could notice that it was old and no longer in use). Bugfix on
25778       0.1.1.15-rc; fixes bug 3375.
25780   o Minor bugfixes (also included in 0.2.2.x):
25781     - When we restart our relay, we might get a successful connection
25782       from the outside before we've started our reachability tests,
25783       triggering a warning: "ORPort found reachable, but I have no
25784       routerinfo yet. Failing to inform controller of success." This
25785       bug was harmless unless Tor is running under a controller
25786       like Vidalia, in which case the controller would never get a
25787       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
25788       fixes bug 1172.
25789     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
25790       enabled. Fixes bug 1526.
25791     - Remove undocumented option "-F" from tor-resolve: it hasn't done
25792       anything since 0.2.1.16-rc.
25793     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
25794       None of the cases where we did this before were wrong, but by making
25795       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
25796     - Fix a rare crash bug that could occur when a client was configured
25797       with a large number of bridges. Fixes bug 2629; bugfix on
25798       0.2.1.2-alpha. Bugfix by trac user "shitlei".
25799     - Correct the warning displayed when a rendezvous descriptor exceeds
25800       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
25801       John Brooks.
25802     - Fix an uncommon assertion failure when running with DNSPort under
25803       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
25804     - When warning about missing zlib development packages during compile,
25805       give the correct package names. Bugfix on 0.2.0.1-alpha.
25806     - Require that introduction point keys and onion keys have public
25807       exponent 65537. Bugfix on 0.2.0.10-alpha.
25808     - Do not crash when our configuration file becomes unreadable, for
25809       example due to a permissions change, between when we start up
25810       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
25811       on 0.0.9pre6.
25812     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
25813       Fixes bug 3208.
25814     - Always NUL-terminate the sun_path field of a sockaddr_un before
25815       passing it to the kernel. (Not a security issue: kernels are
25816       smart enough to reject bad sockaddr_uns.) Found by Coverity;
25817       CID #428. Bugfix on Tor 0.2.0.3-alpha.
25818     - Don't stack-allocate the list of supplementary GIDs when we're
25819       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
25820       could take up to 256K, which is way too much stack. Found by
25821       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
25823   o Minor bugfixes (only in 0.2.1.x):
25824     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
25825       rely on them. Bugfix on 0.2.1.30.
25826     - Use git revisions instead of svn revisions when generating our
25827       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
25829   o Minor features (also included in 0.2.2.x):
25830     - Adjust the expiration time on our SSL session certificates to
25831       better match SSL certs seen in the wild. Resolves ticket 4014.
25832     - Allow nameservers with IPv6 address. Resolves bug 2574.
25833     - Update to the October 4 2011 Maxmind GeoLite Country database.
25836 Changes in version 0.2.3.5-alpha - 2011-09-28
25837   Tor 0.2.3.5-alpha fixes two bugs that make it possible to enumerate
25838   bridge relays; fixes an assertion error that many users started hitting
25839   today; and adds the ability to refill token buckets more often than
25840   once per second, allowing significant performance improvements.
25842   o Security fixes:
25843     - Bridge relays now do their directory fetches inside Tor TLS
25844       connections, like all the other clients do, rather than connecting
25845       directly to the DirPort like public relays do. Removes another
25846       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
25847     - Bridges relays now build circuits for themselves in a more similar
25848       way to how clients build them. Removes another avenue for
25849       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
25850       when bridges were introduced.
25852   o Major bugfixes:
25853     - Fix an "Assertion md->held_by_node == 1 failed" error that could
25854       occur when the same microdescriptor was referenced by two node_t
25855       objects at once. Fix for bug 4118; bugfix on Tor 0.2.3.1-alpha.
25857   o Major features (networking):
25858     - Add a new TokenBucketRefillInterval option to refill token buckets
25859       more frequently than once per second. This should improve network
25860       performance, alleviate queueing problems, and make traffic less
25861       bursty. Implements proposal 183; closes ticket 3630. Design by
25862       Florian Tschorsch and Björn Scheuermann; implementation by
25863       Florian Tschorsch.
25865   o Minor bugfixes:
25866     - Change an integer overflow check in the OpenBSD_Malloc code so
25867       that GCC is less likely to eliminate it as impossible. Patch
25868       from Mansour Moufid. Fixes bug 4059.
25870   o Minor bugfixes (usability):
25871     - Downgrade log messages about circuit timeout calibration from
25872       "notice" to "info": they don't require or suggest any human
25873       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
25874       bugfix on 0.2.2.14-alpha.
25876   o Minor features (diagnostics):
25877     - When the system call to create a listener socket fails, log the
25878       error message explaining why. This may help diagnose bug 4027.
25881 Changes in version 0.2.3.4-alpha - 2011-09-13
25882   Tor 0.2.3.4-alpha includes the fixes from 0.2.2.33, including a slight
25883   tweak to Tor's TLS handshake that makes relays and bridges that run
25884   this new version reachable from Iran again. It also fixes a few new
25885   bugs in 0.2.3.x, and teaches relays to recognize when they're not
25886   listed in the network consensus and republish.
25888   o Major bugfixes (also part of 0.2.2.33):
25889     - Avoid an assertion failure when reloading a configuration with
25890       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
25891       3923; bugfix on 0.2.2.25-alpha.
25893   o Minor features (security, also part of 0.2.2.33):
25894     - Check for replays of the public-key encrypted portion of an
25895       INTRODUCE1 cell, in addition to the current check for replays of
25896       the g^x value. This prevents a possible class of active attacks
25897       by an attacker who controls both an introduction point and a
25898       rendezvous point, and who uses the malleability of AES-CTR to
25899       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
25900       that these attacks are infeasible (requiring the attacker to send
25901       on the order of zettabytes of altered cells in a short interval),
25902       but we'd rather block them off in case there are any classes of
25903       this attack that we missed. Reported by Willem Pinckaers.
25905   o Minor features (also part of 0.2.2.33):
25906     - Adjust the expiration time on our SSL session certificates to
25907       better match SSL certs seen in the wild. Resolves ticket 4014.
25908     - Change the default required uptime for a relay to be accepted as
25909       a HSDir (hidden service directory) from 24 hours to 25 hours.
25910       Improves on 0.2.0.10-alpha; resolves ticket 2649.
25911     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
25912       authorities to abstain from voting on assignment of the HSDir
25913       consensus flag. Related to bug 2649.
25914     - Update to the September 6 2011 Maxmind GeoLite Country database.
25916   o Minor bugfixes (also part of 0.2.2.33):
25917     - Demote the 'replay detected' log message emitted when a hidden
25918       service receives the same Diffie-Hellman public key in two different
25919       INTRODUCE2 cells to info level. A normal Tor client can cause that
25920       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
25921       fixes part of bug 2442.
25922     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
25923       level. There is nothing that a hidden service's operator can do
25924       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
25925       of bug 2442.
25926     - Clarify a log message specifying the characters permitted in
25927       HiddenServiceAuthorizeClient client names. Previously, the log
25928       message said that "[A-Za-z0-9+-_]" were permitted; that could have
25929       given the impression that every ASCII character between "+" and "_"
25930       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
25932   o Build fixes (also part of 0.2.2.33):
25933     - Clean up some code issues that prevented Tor from building on older
25934       BSDs. Fixes bug 3894; reported by "grarpamp".
25935     - Search for a platform-specific version of "ar" when cross-compiling.
25936       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
25938   o Major bugfixes:
25939     - Fix a bug where the SocksPort option (for example) would get
25940       ignored and replaced by the default if a SocksListenAddress
25941       option was set. Bugfix on 0.2.3.3-alpha; fixes bug 3936. Fix by
25942       Fabian Keil.
25944   o Major features:
25945     - Relays now try regenerating and uploading their descriptor more
25946       frequently if they are not listed in the consensus, or if the
25947       version of their descriptor listed in the consensus is too
25948       old. This fix should prevent situations where a server declines
25949       to re-publish itself because it has done so too recently, even
25950       though the authorities decided not to list its recent-enough
25951       descriptor. Fix for bug 3327.
25953   o Minor features:
25954     - Relays now include a reason for regenerating their descriptors
25955       in an HTTP header when uploading to the authorities. This will
25956       make it easier to debug descriptor-upload issues in the future.
25957     - When starting as root and then changing our UID via the User
25958       control option, and we have a ControlSocket configured, make sure
25959       that the ControlSocket is owned by the same account that Tor will
25960       run under. Implements ticket 3421; fix by Jérémy Bobbio.
25962   o Minor bugfixes:
25963     - Abort if tor_vasprintf fails in connection_printf_to_buf (a
25964       utility function used in the control-port code). This shouldn't
25965       ever happen unless Tor is completely out of memory, but if it did
25966       happen and Tor somehow recovered from it, Tor could have sent a log
25967       message to a control port in the middle of a reply to a controller
25968       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
25969     - Make 'FetchUselessDescriptors' cause all descriptor types and
25970       all consensus types (including microdescriptors) to get fetched.
25971       Fixes bug 3851; bugfix on 0.2.3.1-alpha.
25973   o Code refactoring:
25974     - Make a new "entry connection" struct as an internal subtype of "edge
25975       connection", to simplify the code and make exit connections smaller.
25978 Changes in version 0.2.2.33 - 2011-09-13
25979   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
25980   TLS handshake that makes relays and bridges that run this new version
25981   reachable from Iran again.
25983   o Major bugfixes:
25984     - Avoid an assertion failure when reloading a configuration with
25985       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
25986       3923; bugfix on 0.2.2.25-alpha.
25988   o Minor features (security):
25989     - Check for replays of the public-key encrypted portion of an
25990       INTRODUCE1 cell, in addition to the current check for replays of
25991       the g^x value. This prevents a possible class of active attacks
25992       by an attacker who controls both an introduction point and a
25993       rendezvous point, and who uses the malleability of AES-CTR to
25994       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
25995       that these attacks are infeasible (requiring the attacker to send
25996       on the order of zettabytes of altered cells in a short interval),
25997       but we'd rather block them off in case there are any classes of
25998       this attack that we missed. Reported by Willem Pinckaers.
26000   o Minor features:
26001     - Adjust the expiration time on our SSL session certificates to
26002       better match SSL certs seen in the wild. Resolves ticket 4014.
26003     - Change the default required uptime for a relay to be accepted as
26004       a HSDir (hidden service directory) from 24 hours to 25 hours.
26005       Improves on 0.2.0.10-alpha; resolves ticket 2649.
26006     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
26007       authorities to abstain from voting on assignment of the HSDir
26008       consensus flag. Related to bug 2649.
26009     - Update to the September 6 2011 Maxmind GeoLite Country database.
26011   o Minor bugfixes (documentation and log messages):
26012     - Correct the man page to explain that HashedControlPassword and
26013       CookieAuthentication can both be set, in which case either method
26014       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
26015       when we decided to allow these config options to both be set. Issue
26016       raised by bug 3898.
26017     - Demote the 'replay detected' log message emitted when a hidden
26018       service receives the same Diffie-Hellman public key in two different
26019       INTRODUCE2 cells to info level. A normal Tor client can cause that
26020       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
26021       fixes part of bug 2442.
26022     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
26023       level. There is nothing that a hidden service's operator can do
26024       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
26025       of bug 2442.
26026     - Clarify a log message specifying the characters permitted in
26027       HiddenServiceAuthorizeClient client names. Previously, the log
26028       message said that "[A-Za-z0-9+-_]" were permitted; that could have
26029       given the impression that every ASCII character between "+" and "_"
26030       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
26032   o Build fixes:
26033     - Provide a substitute implementation of lround() for MSVC, which
26034       apparently lacks it. Patch from Gisle Vanem.
26035     - Clean up some code issues that prevented Tor from building on older
26036       BSDs. Fixes bug 3894; reported by "grarpamp".
26037     - Search for a platform-specific version of "ar" when cross-compiling.
26038       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
26041 Changes in version 0.2.3.3-alpha - 2011-09-01
26042   Tor 0.2.3.3-alpha adds a new "stream isolation" feature to improve Tor's
26043   security, and provides client-side support for the microdescriptor
26044   and optimistic data features introduced earlier in the 0.2.3.x
26045   series. It also includes numerous critical bugfixes in the (optional)
26046   bufferevent-based networking backend.
26048   o Major features (stream isolation):
26049     - You can now configure Tor so that streams from different
26050       applications are isolated on different circuits, to prevent an
26051       attacker who sees your streams as they leave an exit node from
26052       linking your sessions to one another. To do this, choose some way
26053       to distinguish the applications: have them connect to different
26054       SocksPorts, or have one of them use SOCKS4 while the other uses
26055       SOCKS5, or have them pass different authentication strings to the
26056       SOCKS proxy. Then, use the new SocksPort syntax to configure the
26057       degree of isolation you need. This implements Proposal 171.
26058     - There's a new syntax for specifying multiple client ports (such as
26059       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
26060       multiple *Port entries with full addr:port syntax on each.
26061       The old *ListenAddress format is still supported, but you can't
26062       mix it with the new *Port syntax.
26064   o Major features (other):
26065     - Enable microdescriptor fetching by default for clients. This allows
26066       clients to download a much smaller amount of directory information.
26067       To disable it (and go back to the old-style consensus and
26068       descriptors), set "UseMicrodescriptors 0" in your torrc file.
26069     - Tor's firewall-helper feature, introduced in 0.2.3.1-alpha (see the
26070       "PortForwarding" config option), now supports Windows.
26071     - When using an exit relay running 0.2.3.x, clients can now
26072       "optimistically" send data before the exit relay reports that
26073       the stream has opened. This saves a round trip when starting
26074       connections where the client speaks first (such as web browsing).
26075       This behavior is controlled by a consensus parameter (currently
26076       disabled). To turn it on or off manually, use the "OptimisticData"
26077       torrc option. Implements proposal 181; code by Ian Goldberg.
26079   o Major bugfixes (bufferevents, fixes on 0.2.3.1-alpha):
26080     - When using IOCP on Windows, we need to enable Libevent windows
26081       threading support.
26082     - The IOCP backend now works even when the user has not specified
26083       the (internal, debugging-only) _UseFilteringSSLBufferevents option.
26084       Fixes part of bug 3752.
26085     - Correctly record the bytes we've read and written when using
26086       bufferevents, so that we can include them in our bandwidth history
26087       and advertised bandwidth. Fixes bug 3803.
26088     - Apply rate-limiting only at the bottom of a chain of filtering
26089       bufferevents. This prevents us from filling up internal read
26090       buffers and violating rate-limits when filtering bufferevents
26091       are enabled. Fixes part of bug 3804.
26092     - Add high-watermarks to the output buffers for filtered
26093       bufferevents. This prevents us from filling up internal write
26094       buffers and wasting CPU cycles when filtering bufferevents are
26095       enabled. Fixes part of bug 3804.
26096     - Correctly notice when data has been written from a bufferevent
26097       without flushing it completely. Fixes bug 3805.
26098     - Fix a bug where server-side tunneled bufferevent-based directory
26099       streams would get closed prematurely. Fixes bug 3814.
26100     - Fix a use-after-free error with per-connection rate-limiting
26101       buckets. Fixes bug 3888.
26103   o Major bugfixes (also part of 0.2.2.31-rc):
26104     - If we're configured to write our ControlPorts to disk, only write
26105       them after switching UID and creating the data directory. This way,
26106       we don't fail when starting up with a nonexistent DataDirectory
26107       and a ControlPortWriteToFile setting based on that directory. Fixes
26108       bug 3747; bugfix on Tor 0.2.2.26-beta.
26110   o Minor features:
26111     - Added a new CONF_CHANGED event so that controllers can be notified
26112       of any configuration changes made by other controllers, or by the
26113       user. Implements ticket 1692.
26114     - Use evbuffer_copyout() in inspect_evbuffer(). This fixes a memory
26115       leak when using bufferevents, and lets Libevent worry about how to
26116       best copy data out of a buffer.
26117     - Replace files in stats/ rather than appending to them. Now that we
26118       include statistics in extra-info descriptors, it makes no sense to
26119       keep old statistics forever. Implements ticket 2930.
26121   o Minor features (build compatibility):
26122     - Limited, experimental support for building with nmake and MSVC.
26123     - Provide a substitute implementation of lround() for MSVC, which
26124       apparently lacks it. Patch from Gisle Vanem.
26126   o Minor features (also part of 0.2.2.31-rc):
26127     - Update to the August 2 2011 Maxmind GeoLite Country database.
26129   o Minor bugfixes (on 0.2.3.x-alpha):
26130     - Fix a spurious warning when parsing SOCKS requests with
26131       bufferevents enabled. Fixes bug 3615; bugfix on 0.2.3.2-alpha.
26132     - Get rid of a harmless warning that could happen on relays running
26133       with bufferevents. The warning was caused by someone doing an http
26134       request to a relay's orport. Also don't warn for a few related
26135       non-errors. Fixes bug 3700; bugfix on 0.2.3.1-alpha.
26137   o Minor bugfixes (on 2.2.x and earlier):
26138     - Correct the man page to explain that HashedControlPassword and
26139       CookieAuthentication can both be set, in which case either method
26140       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
26141       when we decided to allow these config options to both be set. Issue
26142       raised by bug 3898.
26143     - The "--quiet" and "--hush" options now apply not only to Tor's
26144       behavior before logs are configured, but also to Tor's behavior in
26145       the absence of configured logs. Fixes bug 3550; bugfix on
26146       0.2.0.10-alpha.
26148   o Minor bugfixes (also part of 0.2.2.31-rc):
26149     - Write several files in text mode, on OSes that distinguish text
26150       mode from binary mode (namely, Windows). These files are:
26151       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
26152       that collect those statistics; 'client_keys' and 'hostname' for
26153       hidden services that use authentication; and (in the tor-gencert
26154       utility) newly generated identity and signing keys. Previously,
26155       we wouldn't specify text mode or binary mode, leading to an
26156       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
26157       the DirRecordUsageByCountry option which would have triggered
26158       the assertion failure was added), although this assertion failure
26159       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
26160     - Selectively disable deprecation warnings on OS X because Lion
26161       started deprecating the shipped copy of openssl. Fixes bug 3643.
26162     - Remove an extra pair of quotation marks around the error
26163       message in control-port STATUS_GENERAL BUG events. Bugfix on
26164       0.1.2.6-alpha; fixes bug 3732.
26165     - When unable to format an address as a string, report its value
26166       as "???" rather than reusing the last formatted address. Bugfix
26167       on 0.2.1.5-alpha.
26169   o Code simplifications and refactoring:
26170     - Rewrite the listener-selection logic so that parsing which ports
26171       we want to listen on is now separate from binding to the ports
26172       we want.
26174   o Build changes:
26175     - Building Tor with bufferevent support now requires Libevent
26176       2.0.13-stable or later. Previous versions of Libevent had bugs in
26177       SSL-related bufferevents and related issues that would make Tor
26178       work badly with bufferevents. Requiring 2.0.13-stable also allows
26179       Tor with bufferevents to take advantage of Libevent APIs
26180       introduced after 2.0.8-rc.
26183 Changes in version 0.2.2.32 - 2011-08-27
26184   The Tor 0.2.2 release series is dedicated to the memory of Andreas
26185   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
26186   a founder of the PETS community, a leader in our field, a mentor,
26187   and a friend. He left us with these words: "I had the possibility
26188   to contribute to this world that is not as it should be. I hope I
26189   could help in some areas to make the world a better place, and that
26190   I could also encourage other people to be engaged in improving the
26191   world. Please, stay engaged. This world needs you, your love, your
26192   initiative -- now I cannot be part of that anymore."
26194   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
26195   ready. More than two years in the making, this release features improved
26196   client performance and hidden service reliability, better compatibility
26197   for Android, correct behavior for bridges that listen on more than
26198   one address, more extensible and flexible directory object handling,
26199   better reporting of network statistics, improved code security, and
26200   many many other features and bugfixes.
26203 Changes in version 0.2.2.31-rc - 2011-08-17
26204   Tor 0.2.2.31-rc is the second and hopefully final release candidate
26205   for the Tor 0.2.2.x series.
26207   o Major bugfixes:
26208     - Remove an extra pair of quotation marks around the error
26209       message in control-port STATUS_GENERAL BUG events. Bugfix on
26210       0.1.2.6-alpha; fixes bug 3732.
26211     - If we're configured to write our ControlPorts to disk, only write
26212       them after switching UID and creating the data directory. This way,
26213       we don't fail when starting up with a nonexistent DataDirectory
26214       and a ControlPortWriteToFile setting based on that directory. Fixes
26215       bug 3747; bugfix on Tor 0.2.2.26-beta.
26217   o Minor features:
26218     - Update to the August 2 2011 Maxmind GeoLite Country database.
26220   o Minor bugfixes:
26221     - Allow GETINFO fingerprint to return a fingerprint even when
26222       we have not yet built a router descriptor. Fixes bug 3577;
26223       bugfix on 0.2.0.1-alpha.
26224     - Write several files in text mode, on OSes that distinguish text
26225       mode from binary mode (namely, Windows). These files are:
26226       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
26227       that collect those statistics; 'client_keys' and 'hostname' for
26228       hidden services that use authentication; and (in the tor-gencert
26229       utility) newly generated identity and signing keys. Previously,
26230       we wouldn't specify text mode or binary mode, leading to an
26231       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
26232       the DirRecordUsageByCountry option which would have triggered
26233       the assertion failure was added), although this assertion failure
26234       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
26235     - Selectively disable deprecation warnings on OS X because Lion
26236       started deprecating the shipped copy of openssl. Fixes bug 3643.
26237     - When unable to format an address as a string, report its value
26238       as "???" rather than reusing the last formatted address. Bugfix
26239       on 0.2.1.5-alpha.
26242 Changes in version 0.2.3.2-alpha - 2011-07-18
26243   Tor 0.2.3.2-alpha introduces two new experimental features:
26244   microdescriptors and pluggable transports. It also continues cleaning
26245   up a variety of recently introduced features.
26247   o Major features:
26248     - Clients can now use microdescriptors instead of regular descriptors
26249       to build circuits. Microdescriptors are authority-generated
26250       summaries of regular descriptors' contents, designed to change
26251       very rarely (see proposal 158 for details). This feature is
26252       designed to save bandwidth, especially for clients on slow internet
26253       connections. It's off by default for now, since nearly no caches
26254       support it, but it will be on-by-default for clients in a future
26255       version. You can use the UseMicrodescriptors option to turn it on.
26256     - Tor clients using bridges can now be configured to use a separate
26257       'transport' proxy for each bridge. This approach helps to resist
26258       censorship by allowing bridges to use protocol obfuscation
26259       plugins. It implements part of proposal 180. Implements ticket 2841.
26260     - While we're trying to bootstrap, record how many TLS connections
26261       fail in each state, and report which states saw the most failures
26262       in response to any bootstrap failures. This feature may speed up
26263       diagnosis of censorship events. Implements ticket 3116.
26265   o Major bugfixes (on 0.2.3.1-alpha):
26266     - When configuring a large set of nodes in EntryNodes (as with
26267       'EntryNodes {cc}' or 'EntryNodes 1.1.1.1/16'), choose only a
26268       random subset to be guards, and choose them in random
26269       order. Fixes bug 2798.
26270     - Tor could crash when remembering a consensus in a non-used consensus
26271       flavor without having a current consensus set. Fixes bug 3361.
26272     - Comparing an unknown address to a microdescriptor's shortened exit
26273       policy would always give a "rejected" result. Fixes bug 3599.
26274     - Using microdescriptors as a client no longer prevents Tor from
26275       uploading and downloading hidden service descriptors. Fixes
26276       bug 3601.
26278   o Minor features:
26279     - Allow nameservers with IPv6 address. Resolves bug 2574.
26280     - Accept attempts to include a password authenticator in the
26281       handshake, as supported by SOCKS5. This handles SOCKS clients that
26282       don't know how to omit a password when authenticating. Resolves
26283       bug 1666.
26284     - When configuring a large set of nodes in EntryNodes, and there are
26285       enough of them listed as Guard so that we don't need to consider
26286       the non-guard entries, prefer the ones listed with the Guard flag.
26287     - Check for and recover from inconsistency in the microdescriptor
26288       cache. This will make it harder for us to accidentally free a
26289       microdescriptor without removing it from the appropriate data
26290       structures. Fixes issue 3135; issue noted by "wanoskarnet".
26291     - Log SSL state transitions at log level DEBUG, log domain
26292       HANDSHAKE. This can be useful for debugging censorship events.
26293       Implements ticket 3264.
26294     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
26295       implements ticket 3439.
26297   o Minor bugfixes (on 0.2.3.1-alpha):
26298     - Do not free all general-purpose regular descriptors just
26299       because microdescriptor use is enabled. Fixes bug 3113.
26300     - Correctly link libevent_openssl when --enable-static-libevent
26301       is passed to configure. Fixes bug 3118.
26302     - Bridges should not complain during their heartbeat log messages that
26303       they are unlisted in the consensus: that's more or less the point
26304       of being a bridge. Fixes bug 3183.
26305     - Report a SIGNAL event to controllers when acting on a delayed
26306       SIGNAL NEWNYM command. Previously, we would report a SIGNAL
26307       event to the controller if we acted on a SIGNAL NEWNYM command
26308       immediately, and otherwise not report a SIGNAL event for the
26309       command at all. Fixes bug 3349.
26310     - Fix a crash when handling the SIGNAL controller command or
26311       reporting ERR-level status events with bufferevents enabled. Found
26312       by Robert Ransom. Fixes bug 3367.
26313     - Always ship the tor-fw-helper manpage in our release tarballs.
26314       Fixes bug 3389. Reported by Stephen Walker.
26315     - Fix a class of double-mark-for-close bugs when bufferevents
26316       are enabled. Fixes bug 3403.
26317     - Update tor-fw-helper to support libnatpmp-20110618. Fixes bug 3434.
26318     - Add SIGNAL to the list returned by the 'GETINFO events/names'
26319       control-port command. Fixes part of bug 3465.
26320     - Prevent using negative indices during unit test runs when read_all()
26321       fails. Spotted by coverity.
26322     - Fix a rare memory leak when checking the nodelist without it being
26323       present. Found by coverity.
26324     - Only try to download a microdescriptor-flavored consensus from
26325       a directory cache that provides them.
26327   o Minor bugfixes (on 0.2.2.x and earlier):
26328     - Assert that hidden-service-related operations are not performed
26329       using single-hop circuits. Previously, Tor would assert that
26330       client-side streams are not attached to single-hop circuits,
26331       but not that other sensitive operations on the client and service
26332       side are not performed using single-hop circuits. Fixes bug 3332;
26333       bugfix on 0.0.6.
26334     - Don't publish a new relay descriptor when we reload our onion key,
26335       unless the onion key has actually changed. Fixes bug 3263 and
26336       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
26337     - Allow GETINFO fingerprint to return a fingerprint even when
26338       we have not yet built a router descriptor. Fixes bug 3577;
26339       bugfix on 0.2.0.1-alpha.
26340     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
26341       on 0.2.2.4-alpha; fixes bug 3427.
26343   o Code simplification and refactoring:
26344     - Use tor_sscanf() in place of scanf() in more places through the
26345       code. This makes us a little more locale-independent, and
26346       should help shut up code-analysis tools that can't tell
26347       a safe sscanf string from a dangerous one.
26348     - Use tt_assert(), not tor_assert(), for checking for test failures.
26349       This makes the unit tests more able to go on in the event that
26350       one of them fails.
26351     - Split connection_about_to_close() into separate functions for each
26352       connection type.
26354   o Build changes:
26355     - On Windows, we now define the _WIN32_WINNT macros only if they
26356       are not already defined. This lets the person building Tor decide,
26357       if they want, to require a later version of Windows.
26360 Changes in version 0.2.2.30-rc - 2011-07-07
26361   Tor 0.2.2.30-rc is the first release candidate for the Tor 0.2.2.x
26362   series. It fixes a few smaller bugs, but generally appears stable.
26363   Please test it and let us know whether it is!
26365   o Minor bugfixes:
26366     - Send a SUCCEEDED stream event to the controller when a reverse
26367       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
26368       discovered by katmagic.
26369     - Always NUL-terminate the sun_path field of a sockaddr_un before
26370       passing it to the kernel. (Not a security issue: kernels are
26371       smart enough to reject bad sockaddr_uns.) Found by Coverity;
26372       CID #428. Bugfix on Tor 0.2.0.3-alpha.
26373     - Don't stack-allocate the list of supplementary GIDs when we're
26374       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
26375       could take up to 256K, which is way too much stack. Found by
26376       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
26377     - Add BUILDTIMEOUT_SET to the list returned by the 'GETINFO
26378       events/names' control-port command. Bugfix on 0.2.2.9-alpha;
26379       fixes part of bug 3465.
26380     - Fix a memory leak when receiving a descriptor for a hidden
26381       service we didn't ask for. Found by Coverity; CID #30. Bugfix
26382       on 0.2.2.26-beta.
26384   o Minor features:
26385     - Update to the July 1 2011 Maxmind GeoLite Country database.
26388 Changes in version 0.2.2.29-beta - 2011-06-20
26389   Tor 0.2.2.29-beta reverts an accidental behavior change for users who
26390   have bridge lines in their torrc but don't want to use them; gets
26391   us closer to having the control socket feature working on Debian;
26392   and fixes a variety of smaller bugs.
26394   o Major bugfixes:
26395     - Revert the UseBridges option to its behavior before 0.2.2.28-beta.
26396       When we changed the default behavior to "use bridges if any
26397       are listed in the torrc", we surprised users who had bridges
26398       in their torrc files but who didn't actually want to use them.
26399       Partial resolution for bug 3354.
26401   o Privacy fixes:
26402     - Don't attach new streams to old rendezvous circuits after SIGNAL
26403       NEWNYM. Previously, we would keep using an existing rendezvous
26404       circuit if it remained open (i.e. if it were kept open by a
26405       long-lived stream, or if a new stream were attached to it before
26406       Tor could notice that it was old and no longer in use). Bugfix on
26407       0.1.1.15-rc; fixes bug 3375.
26409   o Minor bugfixes:
26410     - Fix a bug when using ControlSocketsGroupWritable with User. The
26411       directory's group would be checked against the current group, not
26412       the configured group. Patch by Jérémy Bobbio. Fixes bug 3393;
26413       bugfix on 0.2.2.26-beta.
26414     - Make connection_printf_to_buf()'s behavior sane. Its callers
26415       expect it to emit a CRLF iff the format string ends with CRLF;
26416       it actually emitted a CRLF iff (a) the format string ended with
26417       CRLF or (b) the resulting string was over 1023 characters long or
26418       (c) the format string did not end with CRLF *and* the resulting
26419       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
26420       fixes part of bug 3407.
26421     - Make send_control_event_impl()'s behavior sane. Its callers
26422       expect it to always emit a CRLF at the end of the string; it
26423       might have emitted extra control characters as well. Bugfix on
26424       0.1.1.9-alpha; fixes another part of bug 3407.
26425     - Make crypto_rand_int() check the value of its input correctly.
26426       Previously, it accepted values up to UINT_MAX, but could return a
26427       negative number if given a value above INT_MAX+1. Found by George
26428       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
26429     - Avoid a segfault when reading a malformed circuit build state
26430       with more than INT_MAX entries. Found by wanoskarnet. Bugfix on
26431       0.2.2.4-alpha.
26432     - When asked about a DNS record type we don't support via a
26433       client DNSPort, reply with NOTIMPL rather than an empty
26434       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
26435     - Fix a rare memory leak during stats writing. Found by coverity.
26437   o Minor features:
26438     - Update to the June 1 2011 Maxmind GeoLite Country database.
26440   o Code simplifications and refactoring:
26441     - Remove some dead code as indicated by coverity.
26442     - Remove a few dead assignments during router parsing. Found by
26443       coverity.
26444     - Add some forgotten return value checks during unit tests. Found
26445       by coverity.
26446     - Don't use 1-bit wide signed bit fields. Found by coverity.
26449 Changes in version 0.2.2.28-beta - 2011-06-04
26450   Tor 0.2.2.28-beta makes great progress towards a new stable release: we
26451   fixed a big bug in whether relays stay in the consensus consistently,
26452   we moved closer to handling bridges and hidden services correctly,
26453   and we started the process of better handling the dreaded "my Vidalia
26454   died, and now my Tor demands a password when I try to reconnect to it"
26455   usability issue.
26457   o Major bugfixes:
26458     - Don't decide to make a new descriptor when receiving a HUP signal.
26459       This bug has caused a lot of 0.2.2.x relays to disappear from the
26460       consensus periodically. Fixes the most common case of triggering
26461       bug 1810; bugfix on 0.2.2.7-alpha.
26462     - Actually allow nameservers with IPv6 addresses. Fixes bug 2574.
26463     - Don't try to build descriptors if "ORPort auto" is set and we
26464       don't know our actual ORPort yet. Fix for bug 3216; bugfix on
26465       0.2.2.26-beta.
26466     - Resolve a crash that occurred when setting BridgeRelay to 1 with
26467       accounting enabled. Fixes bug 3228; bugfix on 0.2.2.18-alpha.
26468     - Apply circuit timeouts to opened hidden-service-related circuits
26469       based on the correct start time. Previously, we would apply the
26470       circuit build timeout based on time since the circuit's creation;
26471       it was supposed to be applied based on time since the circuit
26472       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
26473     - Use the same circuit timeout for client-side introduction
26474       circuits as for other four-hop circuits, rather than the timeout
26475       for single-hop directory-fetch circuits; the shorter timeout may
26476       have been appropriate with the static circuit build timeout in
26477       0.2.1.x and earlier, but caused many hidden service access attempts
26478       to fail with the adaptive CBT introduced in 0.2.2.2-alpha. Bugfix
26479       on 0.2.2.2-alpha; fixes another part of bug 1297.
26480     - In ticket 2511 we fixed a case where you could use an unconfigured
26481       bridge if you had configured it as a bridge the last time you ran
26482       Tor. Now fix another edge case: if you had configured it as a bridge
26483       but then switched to a different bridge via the controller, you
26484       would still be willing to use the old one. Bugfix on 0.2.0.1-alpha;
26485       fixes bug 3321.
26487   o Major features:
26488     - Add an __OwningControllerProcess configuration option and a
26489       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
26490       that when it exits, Tor will shut down. Implements feature 3049.
26491     - If "UseBridges 1" is set and no bridges are configured, Tor will
26492       now refuse to build any circuits until some bridges are set.
26493       If "UseBridges auto" is set, Tor will use bridges if they are
26494       configured and we are not running as a server, but otherwise will
26495       make circuits as usual. The new default is "auto". Patch by anonym,
26496       so the Tails LiveCD can stop automatically revealing you as a Tor
26497       user on startup.
26499   o Minor bugfixes:
26500     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
26501     - Remove a trailing asterisk from "exit-policy/default" in the
26502       output of the control port command "GETINFO info/names". Bugfix
26503       on 0.1.2.5-alpha.
26504     - Use a wide type to hold sockets when built for 64-bit Windows builds.
26505       Fixes bug 3270.
26506     - Warn when the user configures two HiddenServiceDir lines that point
26507       to the same directory. Bugfix on 0.0.6 (the version introducing
26508       HiddenServiceDir); fixes bug 3289.
26509     - Remove dead code from rend_cache_lookup_v2_desc_as_dir. Fixes
26510       part of bug 2748; bugfix on 0.2.0.10-alpha.
26511     - Log malformed requests for rendezvous descriptors as protocol
26512       warnings, not warnings. Also, use a more informative log message
26513       in case someone sees it at log level warning without prior
26514       info-level messages. Fixes the other part of bug 2748; bugfix
26515       on 0.2.0.10-alpha.
26516     - Clear the table recording the time of the last request for each
26517       hidden service descriptor from each HS directory on SIGNAL NEWNYM.
26518       Previously, we would clear our HS descriptor cache on SIGNAL
26519       NEWNYM, but if we had previously retrieved a descriptor (or tried
26520       to) from every directory responsible for it, we would refuse to
26521       fetch it again for up to 15 minutes. Bugfix on 0.2.2.25-alpha;
26522       fixes bug 3309.
26523     - Fix a log message that said "bits" while displaying a value in
26524       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
26525       0.2.0.1-alpha.
26526     - When checking for 1024-bit keys, check for 1024 bits, not 128
26527       bytes. This allows Tor to correctly discard keys of length 1017
26528       through 1023. Bugfix on 0.0.9pre5.
26530   o Minor features:
26531     - Relays now log the reason for publishing a new relay descriptor,
26532       so we have a better chance of hunting down instances of bug 1810.
26533       Resolves ticket 3252.
26534     - Revise most log messages that refer to nodes by nickname to
26535       instead use the "$key=nickname at address" format. This should be
26536       more useful, especially since nicknames are less and less likely
26537       to be unique. Resolves ticket 3045.
26538     - Log (at info level) when purging pieces of hidden-service-client
26539       state because of SIGNAL NEWNYM.
26541   o Removed options:
26542     - Remove undocumented option "-F" from tor-resolve: it hasn't done
26543       anything since 0.2.1.16-rc.
26546 Changes in version 0.2.2.27-beta - 2011-05-18
26547   Tor 0.2.2.27-beta fixes a bridge-related stability bug in the previous
26548   release, and also adds a few more general bugfixes.
26550   o Major bugfixes:
26551     - Fix a crash bug when changing bridges in a running Tor process.
26552       Fixes bug 3213; bugfix on 0.2.2.26-beta.
26553     - When the controller configures a new bridge, don't wait 10 to 60
26554       seconds before trying to fetch its descriptor. Bugfix on
26555       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
26557   o Minor bugfixes:
26558     - Require that onion keys have exponent 65537 in microdescriptors too.
26559       Fixes more of bug 3207; bugfix on 0.2.2.26-beta.
26560     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
26561       Changed the limit to 512 characters by removing base64 newlines.
26562       Fixes bug 2752. Fix by Michael Yakubovich.
26563     - When a client starts or stops using bridges, never use a circuit
26564       that was built before the configuration change. This behavior could
26565       put at risk a user who uses bridges to ensure that her traffic
26566       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
26567       bug 3200.
26570 Changes in version 0.2.2.26-beta - 2011-05-17
26571   Tor 0.2.2.26-beta fixes a variety of potential privacy problems. It
26572   also introduces a new "socksport auto" approach that should make it
26573   easier to run multiple Tors on the same system, and does a lot of
26574   cleanup to get us closer to a release candidate.
26576   o Security/privacy fixes:
26577     - Replace all potentially sensitive memory comparison operations
26578       with versions whose runtime does not depend on the data being
26579       compared. This will help resist a class of attacks where an
26580       adversary can use variations in timing information to learn
26581       sensitive data. Fix for one case of bug 3122. (Safe memcmp
26582       implementation by Robert Ransom based partially on code by DJB.)
26583     - When receiving a hidden service descriptor, check that it is for
26584       the hidden service we wanted. Previously, Tor would store any
26585       hidden service descriptors that a directory gave it, whether it
26586       wanted them or not. This wouldn't have let an attacker impersonate
26587       a hidden service, but it did let directories pre-seed a client
26588       with descriptors that it didn't want. Bugfix on 0.0.6.
26589     - On SIGHUP, do not clear out all TrackHostExits mappings, client
26590       DNS cache entries, and virtual address mappings: that's what
26591       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
26593   o Major features:
26594     - The options SocksPort, ControlPort, and so on now all accept a
26595       value "auto" that opens a socket on an OS-selected port. A
26596       new ControlPortWriteToFile option tells Tor to write its
26597       actual control port or ports to a chosen file. If the option
26598       ControlPortFileGroupReadable is set, the file is created as
26599       group-readable. Now users can run two Tor clients on the same
26600       system without needing to manually mess with parameters. Resolves
26601       part of ticket 3076.
26602     - Set SO_REUSEADDR on all sockets, not just listeners. This should
26603       help busy exit nodes avoid running out of useable ports just
26604       because all the ports have been used in the near past. Resolves
26605       issue 2850.
26607   o Minor features:
26608     - New "GETINFO net/listeners/(type)" controller command to return
26609       a list of addresses and ports that are bound for listeners for a
26610       given connection type. This is useful when the user has configured
26611       "SocksPort auto" and the controller needs to know which port got
26612       chosen. Resolves another part of ticket 3076.
26613     - Add a new ControlSocketsGroupWritable configuration option: when
26614       it is turned on, ControlSockets are group-writeable by the default
26615       group of the current user. Patch by Jérémy Bobbio; implements
26616       ticket 2972.
26617     - Tor now refuses to create a ControlSocket in a directory that is
26618       world-readable (or group-readable if ControlSocketsGroupWritable
26619       is 0). This is necessary because some operating systems do not
26620       enforce permissions on an AF_UNIX sockets. Permissions on the
26621       directory holding the socket, however, seems to work everywhere.
26622     - Rate-limit a warning about failures to download v2 networkstatus
26623       documents. Resolves part of bug 1352.
26624     - Backport code from 0.2.3.x that allows directory authorities to
26625       clean their microdescriptor caches. Needed to resolve bug 2230.
26626     - When an HTTPS proxy reports "403 Forbidden", we now explain
26627       what it means rather than calling it an unexpected status code.
26628       Closes bug 2503. Patch from Michael Yakubovich.
26629     - Update to the May 1 2011 Maxmind GeoLite Country database.
26631   o Minor bugfixes:
26632     - Authorities now clean their microdesc cache periodically and when
26633       reading from disk initially, not only when adding new descriptors.
26634       This prevents a bug where we could lose microdescriptors. Bugfix
26635       on 0.2.2.6-alpha. Fixes bug 2230.
26636     - Do not crash when our configuration file becomes unreadable, for
26637       example due to a permissions change, between when we start up
26638       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
26639       on 0.0.9pre6.
26640     - Avoid a bug that would keep us from replacing a microdescriptor
26641       cache on Windows. (We would try to replace the file while still
26642       holding it open. That's fine on Unix, but Windows doesn't let us
26643       do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.
26644     - Add missing explanations for the authority-related torrc options
26645       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey in the
26646       man page. Resolves issue 2379.
26647     - As an authority, do not upload our own vote or signature set to
26648       ourself. It would tell us nothing new, and as of 0.2.2.24-alpha,
26649       it would get flagged as a duplicate. Resolves bug 3026.
26650     - Accept hidden service descriptors if we think we might be a hidden
26651       service directory, regardless of what our consensus says. This
26652       helps robustness, since clients and hidden services can sometimes
26653       have a more up-to-date view of the network consensus than we do,
26654       and if they think that the directory authorities list us a HSDir,
26655       we might actually be one. Related to bug 2732; bugfix on
26656       0.2.0.10-alpha.
26657     - When a controller changes TrackHostExits, remove mappings for
26658       hosts that should no longer have their exits tracked. Bugfix on
26659       0.1.0.1-rc.
26660     - When a controller changes VirtualAddrNetwork, remove any mappings
26661       for hosts that were automapped to the old network. Bugfix on
26662       0.1.1.19-rc.
26663     - When a controller changes one of the AutomapHosts* options, remove
26664       any mappings for hosts that should no longer be automapped. Bugfix
26665       on 0.2.0.1-alpha.
26666     - Do not reset the bridge descriptor download status every time we
26667       re-parse our configuration or get a configuration change. Fixes
26668       bug 3019; bugfix on 0.2.0.3-alpha.
26670   o Minor bugfixes (code cleanup):
26671     - When loading the microdesc journal, remember its current size.
26672       In 0.2.2, this helps prevent the microdesc journal from growing
26673       without limit on authorities (who are the only ones to use it in
26674       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
26675       Fix posted by "cypherpunks."
26676     - The microdesc journal is supposed to get rebuilt only if it is
26677       at least _half_ the length of the store, not _twice_ the length
26678       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
26679     - Fix a potential null-pointer dereference while computing a
26680       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
26681       clang's analyzer.
26682     - Avoid a possible null-pointer dereference when rebuilding the mdesc
26683       cache without actually having any descriptors to cache. Bugfix on
26684       0.2.2.6-alpha. Issue discovered using clang's static analyzer.
26685     - If we fail to compute the identity digest of a v3 legacy keypair,
26686       warn, and don't use a buffer-full of junk instead. Bugfix on
26687       0.2.1.1-alpha; fixes bug 3106.
26688     - Resolve an untriggerable issue in smartlist_string_num_isin(),
26689       where if the function had ever in the future been used to check
26690       for the presence of a too-large number, it would have given an
26691       incorrect result. (Fortunately, we only used it for 16-bit
26692       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
26693     - Require that introduction point keys and onion handshake keys
26694       have a public exponent of 65537. Starts to fix bug 3207; bugfix
26695       on 0.2.0.10-alpha.
26697   o Removed features:
26698     - Caches no longer download and serve v2 networkstatus documents
26699       unless FetchV2Networkstatus flag is set: these documents haven't
26700       haven't been used by clients or relays since 0.2.0.x. Resolves
26701       bug 3022.
26704 Changes in version 0.2.3.1-alpha - 2011-05-05
26705   Tor 0.2.3.1-alpha adds some new experimental features, including support
26706   for an improved network IO backend, IOCP networking on Windows,
26707   microdescriptor caching, "fast-start" support for streams, and automatic
26708   home router configuration. There are also numerous internal improvements
26709   to try to make the code easier for developers to work with.
26711   This is the first alpha release in a new series, so expect there to be
26712   bugs. Users who would rather test out a more stable branch should
26713   stay with 0.2.2.x for now.
26715   o Major features:
26716     - Tor can now optionally build with the "bufferevents" buffered IO
26717       backend provided by Libevent 2. To use this feature, make sure you
26718       have the latest possible version of Libevent, and pass the
26719       --enable-bufferevents flag to configure when building Tor from
26720       source. This feature will make our networking code more flexible,
26721       let us stack layers on each other, and let us use more efficient
26722       zero-copy transports where available.
26723     - As an experimental feature, Tor can use IOCP for networking on Windows.
26724       Once this code is tuned and optimized, it promises much better
26725       performance than the select-based backend we've used in the past. To
26726       try this feature, you must build Tor with Libevent 2, configure Tor
26727       with the "bufferevents" buffered IO backend, and add "DisableIOCP 0" to
26728       your torrc. There are known bugs here: only try this if you can help
26729       debug it as it breaks.
26730     - The EntryNodes option can now include country codes like {de} or IP
26731       addresses or network masks. Previously we had disallowed these options
26732       because we didn't have an efficient way to keep the list up to
26733       date. Fixes bug 1982, but see bug 2798 for an unresolved issue here.
26734     - Exit nodes now accept and queue data on not-yet-connected streams.
26735       Previously, the client wasn't allowed to send data until the stream was
26736       connected, which slowed down all connections. This change will enable
26737       clients to perform a "fast-start" on streams and send data without
26738       having to wait for a confirmation that the stream has opened. (Patch
26739       from Ian Goldberg; implements the server side of Proposal 174.)
26740     - Tor now has initial support for automatic port mapping on the many
26741       home routers that support NAT-PMP or UPnP. (Not yet supported on
26742       Windows). To build the support code, you'll need to have libnatpnp
26743       library and/or the libminiupnpc library, and you'll need to enable the
26744       feature specifically by passing "--enable-upnp" and/or
26745       "--enable-natpnp" to configure. To turn it on, use the new
26746       PortForwarding option.
26747     - Caches now download, cache, and serve multiple "flavors" of the
26748       consensus, including a flavor that describes microdescriptors.
26749     - Caches now download, cache, and serve microdescriptors -- small
26750       summaries of router descriptors that are authenticated by all of the
26751       directory authorities. Once enough caches are running this code,
26752       clients will be able to save significant amounts of directory bandwidth
26753       by downloading microdescriptors instead of router descriptors.
26755   o Minor features:
26756     - Make logging resolution configurable with a new LogTimeGranularity
26757       option, and change the default from 1 millisecond to 1 second.
26758       Implements enhancement 1668.
26759     - We log which torrc file we're using on startup. Implements ticket
26760       2444.
26761     - Ordinarily, Tor does not count traffic from private addresses (like
26762       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
26763       There is now a new option, CountPrivateBandwidth, to disable this
26764       behavior. Patch from Daniel Cagara.
26765     - New --enable-static-tor configure option for building Tor as
26766       statically as possible. Idea, general hackery and thoughts from
26767       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
26768       2702.
26769     - If you set the NumCPUs option to 0, Tor will now try to detect how
26770       many CPUs you have. This is the new default behavior.
26771     - Turn on directory request statistics by default and include them in
26772       extra-info descriptors. Don't break if we have no GeoIP database.
26773     - Relays that set "ConnDirectionStatistics 1" write statistics on the
26774       bidirectional use of connections to disk every 24 hours.
26775     - Add a GeoIP file digest to the extra-info descriptor. Implements
26776       enhancement 1883.
26777     - The NodeFamily option -- which let you declare that you want to
26778       consider nodes to be part of a family whether they list themselves
26779       that way or not -- now allows IP address ranges and country codes.
26780     - Add a new 'Heartbeat' log message type to periodically log a message
26781       describing Tor's status at level Notice. This feature is meant for
26782       operators who log at notice, and want to make sure that their Tor
26783       server is still working. Implementation by George Kadianakis.
26785   o Minor bugfixes (on 0.2.2.25-alpha):
26786     - When loading the microdesc journal, remember its current size.
26787       In 0.2.2, this helps prevent the microdesc journal from growing
26788       without limit on authorities (who are the only ones to use it in
26789       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
26790       Fix posted by "cypherpunks."
26791     - The microdesc journal is supposed to get rebuilt only if it is
26792       at least _half_ the length of the store, not _twice_ the length
26793       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
26794     - If as an authority we fail to compute the identity digest of a v3
26795       legacy keypair, warn, and don't use a buffer-full of junk instead.
26796       Bugfix on 0.2.1.1-alpha; fixes bug 3106.
26797     - Authorities now clean their microdesc cache periodically and when
26798       reading from disk initially, not only when adding new descriptors.
26799       This prevents a bug where we could lose microdescriptors. Bugfix
26800       on 0.2.2.6-alpha.
26802   o Minor features (controller):
26803     - Add a new SIGNAL event to the controller interface so that
26804       controllers can be notified when Tor handles a signal. Resolves
26805       issue 1955. Patch by John Brooks.
26806     - Add a new GETINFO option to get total bytes read and written. Patch
26807       from pipe, revised by atagar. Resolves ticket 2345.
26808     - Implement some GETINFO controller fields to provide information about
26809       the Tor process's pid, euid, username, and resource limits.
26811   o Build changes:
26812     - Our build system requires automake 1.6 or later to create the
26813       Makefile.in files. Previously, you could have used 1.4.
26814       This only affects developers and people building Tor from git;
26815       people who build Tor from the source distribution without changing
26816       the Makefile.am files should be fine.
26817     - Our autogen.sh script uses autoreconf to launch autoconf, automake, and
26818       so on. This is more robust against some of the failure modes
26819       associated with running the autotools pieces on their own.
26821   o Minor packaging issues:
26822     - On OpenSUSE, create the /var/run/tor directory on startup if it is not
26823       already created. Patch from Andreas Stieger. Fixes bug 2573.
26825   o Code simplifications and refactoring:
26826     - A major revision to our internal node-selecting and listing logic.
26827       Tor already had at least two major ways to look at the question of
26828       "which Tor servers do we know about": a list of router descriptors,
26829       and a list of entries in the current consensus. With
26830       microdescriptors, we're adding a third. Having so many systems
26831       without an abstraction layer over them was hurting the codebase.
26832       Now, we have a new "node_t" abstraction that presents a consistent
26833       interface to a client's view of a Tor node, and holds (nearly) all
26834       of the mutable state formerly in routerinfo_t and routerstatus_t.
26835     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
26836       no longer link against Libevent: they never used it, but
26837       our library structure used to force them to link it.
26839   o Removed features:
26840     - Remove some old code to work around even older versions of Tor that
26841       used forked processes to handle DNS requests. Such versions of Tor
26842       are no longer in use as servers.
26844   o Documentation fixes:
26845     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
26846     - Add missing documentation for the authority-related torrc options
26847       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey. Resolves
26848       issue 2379.
26851 Changes in version 0.2.2.25-alpha - 2011-04-29
26852   Tor 0.2.2.25-alpha fixes many bugs: hidden service clients are more
26853   robust, routers no longer overreport their bandwidth, Win7 should crash
26854   a little less, and NEWNYM (as used by Vidalia's "new identity" button)
26855   now prevents hidden service-related activity from being linkable. It
26856   provides more information to Vidalia so you can see if your bridge is
26857   working. Also, 0.2.2.25-alpha revamps the Entry/Exit/ExcludeNodes and
26858   StrictNodes configuration options to make them more reliable, more
26859   understandable, and more regularly applied. If you use those options,
26860   please see the revised documentation for them in the manual page.
26862   o Major bugfixes:
26863     - Relays were publishing grossly inflated bandwidth values because
26864       they were writing their state files wrong--now they write the
26865       correct value. Also, resume reading bandwidth history from the
26866       state file correctly. Fixes bug 2704; bugfix on 0.2.2.23-alpha.
26867     - Improve hidden service robustness: When we find that we have
26868       extended a hidden service's introduction circuit to a relay not
26869       listed as an introduction point in the HS descriptor we currently
26870       have, retry with an introduction point from the current
26871       descriptor. Previously we would just give up. Fixes bugs 1024 and
26872       1930; bugfix on 0.2.0.10-alpha.
26873     - Clients now stop trying to use an exit node associated with a given
26874       destination by TrackHostExits if they fail to reach that exit node.
26875       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
26876     - Fix crash bug on platforms where gmtime and localtime can return
26877       NULL. Windows 7 users were running into this one. Fixes part of bug
26878       2077. Bugfix on all versions of Tor. Found by boboper.
26880   o Security and stability fixes:
26881     - Don't double-free a parsable, but invalid, microdescriptor, even if
26882       it is followed in the blob we're parsing by an unparsable
26883       microdescriptor. Fixes an issue reported in a comment on bug 2954.
26884       Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
26885     - If the Nickname configuration option isn't given, Tor would pick a
26886       nickname based on the local hostname as the nickname for a relay.
26887       Because nicknames are not very important in today's Tor and the
26888       "Unnamed" nickname has been implemented, this is now problematic
26889       behavior: It leaks information about the hostname without being
26890       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
26891       introduced the Unnamed nickname. Reported by tagnaq.
26892     - Fix an uncommon assertion failure when running with DNSPort under
26893       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
26894     - Avoid linkability based on cached hidden service descriptors: forget
26895       all hidden service descriptors cached as a client when processing a
26896       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
26898   o Major features:
26899     - Export GeoIP information on bridge usage to controllers even if we
26900       have not yet been running for 24 hours. Now Vidalia bridge operators
26901       can get more accurate and immediate feedback about their
26902       contributions to the network.
26904   o Major features and bugfixes (node selection):
26905     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
26906       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and StrictNodes
26907       options. Previously, we had been ambiguous in describing what
26908       counted as an "exit" node, and what operations exactly "StrictNodes
26909       0" would permit. This created confusion when people saw nodes built
26910       through unexpected circuits, and made it hard to tell real bugs from
26911       surprises. Now the intended behavior is:
26912         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
26913           a node that delivers user traffic outside the Tor network.
26914         . "Entry", in the context of EntryNodes, means a node used as the
26915           first hop of a multihop circuit. It doesn't include direct
26916           connections to directory servers.
26917         . "ExcludeNodes" applies to all nodes.
26918         . "StrictNodes" changes the behavior of ExcludeNodes only. When
26919           StrictNodes is set, Tor should avoid all nodes listed in
26920           ExcludeNodes, even when it will make user requests fail. When
26921           StrictNodes is *not* set, then Tor should follow ExcludeNodes
26922           whenever it can, except when it must use an excluded node to
26923           perform self-tests, connect to a hidden service, provide a
26924           hidden service, fulfill a .exit request, upload directory
26925           information, or fetch directory information.
26926       Collectively, the changes to implement the behavior fix bug 1090.
26927     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
26928       a node is listed in both, it's treated as excluded.
26929     - ExcludeNodes now applies to directory nodes -- as a preference if
26930       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
26931       Don't exclude all the directory authorities and set StrictNodes to 1
26932       unless you really want your Tor to break.
26933     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
26934     - ExcludeExitNodes now overrides .exit requests.
26935     - We don't use bridges listed in ExcludeNodes.
26936     - When StrictNodes is 1:
26937        . We now apply ExcludeNodes to hidden service introduction points
26938          and to rendezvous points selected by hidden service users. This
26939          can make your hidden service less reliable: use it with caution!
26940        . If we have used ExcludeNodes on ourself, do not try relay
26941          reachability self-tests.
26942        . If we have excluded all the directory authorities, we will not
26943          even try to upload our descriptor if we're a relay.
26944        . Do not honor .exit requests to an excluded node.
26945     - Remove a misfeature that caused us to ignore the Fast/Stable flags
26946       when ExitNodes is set. Bugfix on 0.2.2.7-alpha.
26947     - When the set of permitted nodes changes, we now remove any mappings
26948       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
26949       0.1.0.1-rc.
26950     - We never cannibalize a circuit that had excluded nodes on it, even
26951       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
26952     - Revert a change where we would be laxer about attaching streams to
26953       circuits than when building the circuits. This was meant to prevent
26954       a set of bugs where streams were never attachable, but our improved
26955       code here should make this unnecessary. Bugfix on 0.2.2.7-alpha.
26956     - Keep track of how many times we launch a new circuit to handle a
26957       given stream. Too many launches could indicate an inconsistency
26958       between our "launch a circuit to handle this stream" logic and our
26959       "attach this stream to one of the available circuits" logic.
26960     - Improve log messages related to excluded nodes.
26962   o Minor bugfixes:
26963     - Fix a spurious warning when moving from a short month to a long
26964       month on relays with month-based BandwidthAccounting. Bugfix on
26965       0.2.2.17-alpha; fixes bug 3020.
26966     - When a client finds that an origin circuit has run out of 16-bit
26967       stream IDs, we now mark it as unusable for new streams. Previously,
26968       we would try to close the entire circuit. Bugfix on 0.0.6.
26969     - Add a forgotten cast that caused a compile warning on OS X 10.6.
26970       Bugfix on 0.2.2.24-alpha.
26971     - Be more careful about reporting the correct error from a failed
26972       connect() system call. Under some circumstances, it was possible to
26973       look at an incorrect value for errno when sending the end reason.
26974       Bugfix on 0.1.0.1-rc.
26975     - Correctly handle an "impossible" overflow cases in connection byte
26976       counting, where we write or read more than 4GB on an edge connection
26977       in a single second. Bugfix on 0.1.2.8-beta.
26978     - Correct the warning displayed when a rendezvous descriptor exceeds
26979       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
26980       John Brooks.
26981     - Clients and hidden services now use HSDir-flagged relays for hidden
26982       service descriptor downloads and uploads even if the relays have no
26983       DirPort set and the client has disabled TunnelDirConns. This will
26984       eventually allow us to give the HSDir flag to relays with no
26985       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
26986     - Downgrade "no current certificates known for authority" message from
26987       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
26988     - Make the SIGNAL DUMP control-port command work on FreeBSD. Fixes bug
26989       2917. Bugfix on 0.1.1.1-alpha.
26990     - Only limit the lengths of single HS descriptors, even when multiple
26991       HS descriptors are published to an HSDir relay in a single POST
26992       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
26993     - Write the current time into the LastWritten line in our state file,
26994       rather than the time from the previous write attempt. Also, stop
26995       trying to use a time of -1 in our log statements. Fixes bug 3039;
26996       bugfix on 0.2.2.14-alpha.
26997     - Be more consistent in our treatment of file system paths. "~" should
26998       get expanded to the user's home directory in the Log config option.
26999       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
27000       feature for the -f and --DataDirectory options.
27002   o Minor features:
27003     - Make sure every relay writes a state file at least every 12 hours.
27004       Previously, a relay could go for weeks without writing its state
27005       file, and on a crash could lose its bandwidth history, capacity
27006       estimates, client country statistics, and so on. Addresses bug 3012.
27007     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
27008       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
27009       clients are already deprecated because of security bugs.
27010     - Don't allow v0 hidden service authorities to act as clients.
27011       Required by fix for bug 3000.
27012     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
27013       by fix for bug 3000.
27014     - Ensure that no empty [dirreq-](read|write)-history lines are added
27015       to an extrainfo document. Implements ticket 2497.
27017   o Code simplification and refactoring:
27018     - Remove workaround code to handle directory responses from servers
27019       that had bug 539 (they would send HTTP status 503 responses _and_
27020       send a body too). Since only server versions before
27021       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
27022       keep the workaround in place.
27023     - Remove the old 'fuzzy time' logic. It was supposed to be used for
27024       handling calculations where we have a known amount of clock skew and
27025       an allowed amount of unknown skew. But we only used it in three
27026       places, and we never adjusted the known/unknown skew values. This is
27027       still something we might want to do someday, but if we do, we'll
27028       want to do it differently.
27029     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
27030       None of the cases where we did this before were wrong, but by making
27031       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
27032     - Use GetTempDir to find the proper temporary directory location on
27033       Windows when generating temporary files for the unit tests. Patch by
27034       Gisle Vanem.
27037 Changes in version 0.2.2.24-alpha - 2011-04-08
27038   Tor 0.2.2.24-alpha fixes a variety of bugs, including a big bug that
27039   prevented Tor clients from effectively using "multihomed" bridges,
27040   that is, bridges that listen on multiple ports or IP addresses so users
27041   can continue to use some of their addresses even if others get blocked.
27043   o Major bugfixes:
27044     - Fix a bug where bridge users who configure the non-canonical
27045       address of a bridge automatically switch to its canonical
27046       address. If a bridge listens at more than one address, it should be
27047       able to advertise those addresses independently and any non-blocked
27048       addresses should continue to work. Bugfix on Tor 0.2.0.x. Fixes
27049       bug 2510.
27050     - If you configured Tor to use bridge A, and then quit and
27051       configured Tor to use bridge B instead, it would happily continue
27052       to use bridge A if it's still reachable. While this behavior is
27053       a feature if your goal is connectivity, in some scenarios it's a
27054       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
27055     - Directory authorities now use data collected from their own
27056       uptime observations when choosing whether to assign the HSDir flag
27057       to relays, instead of trusting the uptime value the relay reports in
27058       its descriptor. This change helps prevent an attack where a small
27059       set of nodes with frequently-changing identity keys can blackhole
27060       a hidden service. (Only authorities need upgrade; others will be
27061       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
27063   o Minor bugfixes:
27064     - When we restart our relay, we might get a successful connection
27065       from the outside before we've started our reachability tests,
27066       triggering a warning: "ORPort found reachable, but I have no
27067       routerinfo yet. Failing to inform controller of success." This
27068       bug was harmless unless Tor is running under a controller
27069       like Vidalia, in which case the controller would never get a
27070       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
27071       fixes bug 1172.
27072     - Make directory authorities more accurate at recording when
27073       relays that have failed several reachability tests became
27074       unreachable, so we can provide more accuracy at assigning Stable,
27075       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
27076     - Fix an issue that prevented static linking of libevent on
27077       some platforms (notably Linux). Fixes bug 2698; bugfix on
27078       versions 0.2.1.23/0.2.2.8-alpha (the versions introducing
27079       the --with-static-libevent configure option).
27080     - We now ask the other side of a stream (the client or the exit)
27081       for more data on that stream when the amount of queued data on
27082       that stream dips low enough. Previously, we wouldn't ask the
27083       other side for more data until either it sent us more data (which
27084       it wasn't supposed to do if it had exhausted its window!) or we
27085       had completely flushed all our queued data. This flow control fix
27086       should improve throughput. Fixes bug 2756; bugfix on the earliest
27087       released versions of Tor (svn commit r152).
27088     - Avoid a double-mark-for-free warning when failing to attach a
27089       transparent proxy connection. (We thought we had fixed this in
27090       0.2.2.23-alpha, but it turns out our fix was checking the wrong
27091       connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
27092       bug) and 0.2.2.23-alpha (the incorrect fix).
27093     - When warning about missing zlib development packages during compile,
27094       give the correct package names. Bugfix on 0.2.0.1-alpha.
27096   o Minor features:
27097     - Directory authorities now log the source of a rejected POSTed v3
27098       networkstatus vote.
27099     - Make compilation with clang possible when using
27100       --enable-gcc-warnings by removing two warning options that clang
27101       hasn't implemented yet and by fixing a few warnings. Implements
27102       ticket 2696.
27103     - When expiring circuits, use microsecond timers rather than
27104       one-second timers. This can avoid an unpleasant situation where a
27105       circuit is launched near the end of one second and expired right
27106       near the beginning of the next, and prevent fluctuations in circuit
27107       timeout values.
27108     - Use computed circuit-build timeouts to decide when to launch
27109       parallel introduction circuits for hidden services. (Previously,
27110       we would retry after 15 seconds.)
27111     - Update to the April 1 2011 Maxmind GeoLite Country database.
27113   o Packaging fixes:
27114     - Create the /var/run/tor directory on startup on OpenSUSE if it is
27115       not already created. Patch from Andreas Stieger. Fixes bug 2573.
27117   o Documentation changes:
27118     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
27119     - Resolve all doxygen warnings except those for missing documentation.
27120       Fixes bug 2705.
27121     - Add doxygen documentation for more functions, fields, and types.
27124 Changes in version 0.2.2.23-alpha - 2011-03-08
27125   Tor 0.2.2.23-alpha lets relays record their bandwidth history so when
27126   they restart they don't lose their bandwidth capacity estimate. This
27127   release also fixes a diverse set of user-facing bugs, ranging from
27128   relays overrunning their rate limiting to clients falsely warning about
27129   clock skew to bridge descriptor leaks by our bridge directory authority.
27131   o Major bugfixes:
27132     - Stop sending a CLOCK_SKEW controller status event whenever
27133       we fetch directory information from a relay that has a wrong clock.
27134       Instead, only inform the controller when it's a trusted authority
27135       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
27136       the rest of bug 1074.
27137     - Fix an assert in parsing router descriptors containing IPv6
27138       addresses. This one took down the directory authorities when
27139       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
27140     - Make the bridge directory authority refuse to answer directory
27141       requests for "all" descriptors. It used to include bridge
27142       descriptors in its answer, which was a major information leak.
27143       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
27144     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
27145       Tor would ignore their RelayBandwidthBurst setting,
27146       potentially using more bandwidth than expected. Bugfix on
27147       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
27148     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
27149       hidserv" in her torrc. The 'hidserv' argument never controlled
27150       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
27152   o Major features:
27153     - Relays now save observed peak bandwidth throughput rates to their
27154       state file (along with total usage, which was already saved)
27155       so that they can determine their correct estimated bandwidth on
27156       restart. Resolves bug 1863, where Tor relays would reset their
27157       estimated bandwidth to 0 after restarting.
27158     - Directory authorities now take changes in router IP address and
27159       ORPort into account when determining router stability. Previously,
27160       if a router changed its IP or ORPort, the authorities would not
27161       treat it as having any downtime for the purposes of stability
27162       calculation, whereas clients would experience downtime since the
27163       change could take a while to propagate to them. Resolves issue 1035.
27164     - Enable Address Space Layout Randomization (ASLR) and Data Execution
27165       Prevention (DEP) by default on Windows to make it harder for
27166       attackers to exploit vulnerabilities. Patch from John Brooks.
27168   o Minor bugfixes (on 0.2.1.x and earlier):
27169     - Fix a rare crash bug that could occur when a client was configured
27170       with a large number of bridges. Fixes bug 2629; bugfix on
27171       0.2.1.2-alpha. Bugfix by trac user "shitlei".
27172     - Avoid a double mark-for-free warning when failing to attach a
27173       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
27174       bug 2279.
27175     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
27176       found by "cypherpunks". This bug was introduced before the first
27177       Tor release, in svn commit r110.
27178     - Country codes aren't supported in EntryNodes until 0.2.3.x, so
27179       don't mention them in the manpage. Fixes bug 2450; issue
27180       spotted by keb and G-Lo.
27181     - Fix a bug in bandwidth history state parsing that could have been
27182       triggered if a future version of Tor ever changed the timing
27183       granularity at which bandwidth history is measured. Bugfix on
27184       Tor 0.1.1.11-alpha.
27185     - When a relay decides that its DNS is too broken for it to serve
27186       as an exit server, it advertised itself as a non-exit, but
27187       continued to act as an exit. This could create accidental
27188       partitioning opportunities for users. Instead, if a relay is
27189       going to advertise reject *:* as its exit policy, it should
27190       really act with exit policy "reject *:*". Fixes bug 2366.
27191       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
27192     - In the special case where you configure a public exit relay as your
27193       bridge, Tor would be willing to use that exit relay as the last
27194       hop in your circuit as well. Now we fail that circuit instead.
27195       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
27196     - Fix a bug with our locking implementation on Windows that couldn't
27197       correctly detect when a file was already locked. Fixes bug 2504,
27198       bugfix on 0.2.1.6-alpha.
27199     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
27200       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
27201       "piebeer".
27202     - Set target port in get_interface_address6() correctly. Bugfix
27203       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
27204     - Directory authorities are now more robust to hops back in time
27205       when calculating router stability. Previously, if a run of uptime
27206       or downtime appeared to be negative, the calculation could give
27207       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
27208       bug 1035.
27209     - Fix an assert that got triggered when using the TestingTorNetwork
27210       configuration option and then issuing a GETINFO config-text control
27211       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
27213   o Minor bugfixes (on 0.2.2.x):
27214     - Clients should not weight BadExit nodes as Exits in their node
27215       selection. Similarly, directory authorities should not count BadExit
27216       bandwidth as Exit bandwidth when computing bandwidth-weights.
27217       Bugfix on 0.2.2.10-alpha; fixes bug 2203.
27218     - Correctly clear our dir_read/dir_write history when there is an
27219       error parsing any bw history value from the state file. Bugfix on
27220       Tor 0.2.2.15-alpha.
27221     - Resolve a bug in verifying signatures of directory objects
27222       with digests longer than SHA1. Bugfix on 0.2.2.20-alpha.
27223       Fixes bug 2409. Found by "piebeer".
27224     - Bridge authorities no longer crash on SIGHUP when they try to
27225       publish their relay descriptor to themselves. Fixes bug 2572. Bugfix
27226       on 0.2.2.22-alpha.
27228   o Minor features:
27229     - Log less aggressively about circuit timeout changes, and improve
27230       some other circuit timeout messages. Resolves bug 2004.
27231     - Log a little more clearly about the times at which we're no longer
27232       accepting new connections. Resolves bug 2181.
27233     - Reject attempts at the client side to open connections to private
27234       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
27235       a randomly chosen exit node. Attempts to do so are always
27236       ill-defined, generally prevented by exit policies, and usually
27237       in error. This will also help to detect loops in transparent
27238       proxy configurations. You can disable this feature by setting
27239       "ClientRejectInternalAddresses 0" in your torrc.
27240     - Always treat failure to allocate an RSA key as an unrecoverable
27241       allocation error.
27242     - Update to the March 1 2011 Maxmind GeoLite Country database.
27244   o Minor features (log subsystem):
27245     - Add documentation for configuring logging at different severities in
27246       different log domains. We've had this feature since 0.2.1.1-alpha,
27247       but for some reason it never made it into the manpage. Fixes
27248       bug 2215.
27249     - Make it simpler to specify "All log domains except for A and B".
27250       Previously you needed to say "[*,~A,~B]". Now you can just say
27251       "[~A,~B]".
27252     - Add a "LogMessageDomains 1" option to include the domains of log
27253       messages along with the messages. Without this, there's no way
27254       to use log domains without reading the source or doing a lot
27255       of guessing.
27257   o Packaging changes:
27258     - Stop shipping the Tor specs files and development proposal documents
27259       in the tarball. They are now in a separate git repository at
27260       git://git.torproject.org/torspec.git
27263 Changes in version 0.2.1.30 - 2011-02-23
27264   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
27265   change is a slight tweak to Tor's TLS handshake that makes relays
27266   and bridges that run this new version reachable from Iran again.
27267   We don't expect this tweak will win the arms race long-term, but it
27268   buys us time until we roll out a better solution.
27270   o Major bugfixes:
27271     - Stop sending a CLOCK_SKEW controller status event whenever
27272       we fetch directory information from a relay that has a wrong clock.
27273       Instead, only inform the controller when it's a trusted authority
27274       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
27275       the rest of bug 1074.
27276     - Fix a bounds-checking error that could allow an attacker to
27277       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
27278       Found by "piebeer".
27279     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
27280       Tor would ignore their RelayBandwidthBurst setting,
27281       potentially using more bandwidth than expected. Bugfix on
27282       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
27283     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
27284       hidserv" in her torrc. The 'hidserv' argument never controlled
27285       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
27287   o Minor features:
27288     - Adjust our TLS Diffie-Hellman parameters to match those used by
27289       Apache's mod_ssl.
27290     - Update to the February 1 2011 Maxmind GeoLite Country database.
27292   o Minor bugfixes:
27293     - Check for and reject overly long directory certificates and
27294       directory tokens before they have a chance to hit any assertions.
27295       Bugfix on 0.2.1.28. Found by "doorss".
27296     - Bring the logic that gathers routerinfos and assesses the
27297       acceptability of circuits into line. This prevents a Tor OP from
27298       getting locked in a cycle of choosing its local OR as an exit for a
27299       path (due to a .exit request) and then rejecting the circuit because
27300       its OR is not listed yet. It also prevents Tor clients from using an
27301       OR running in the same instance as an exit (due to a .exit request)
27302       if the OR does not meet the same requirements expected of an OR
27303       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
27305   o Packaging changes:
27306     - Stop shipping the Tor specs files and development proposal documents
27307       in the tarball. They are now in a separate git repository at
27308       git://git.torproject.org/torspec.git
27309     - Do not include Git version tags as though they are SVN tags when
27310       generating a tarball from inside a repository that has switched
27311       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
27314 Changes in version 0.2.2.22-alpha - 2011-01-25
27315   Tor 0.2.2.22-alpha fixes a few more less-critical security issues. The
27316   main other change is a slight tweak to Tor's TLS handshake that makes
27317   relays and bridges that run this new version reachable from Iran again.
27318   We don't expect this tweak will win the arms race long-term, but it
27319   will buy us a bit more time until we roll out a better solution.
27321   o Major bugfixes:
27322     - Fix a bounds-checking error that could allow an attacker to
27323       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
27324       Found by "piebeer".
27325     - Don't assert when changing from bridge to relay or vice versa
27326       via the controller. The assert happened because we didn't properly
27327       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
27328       bug 2433. Reported by bastik.
27330   o Minor features:
27331     - Adjust our TLS Diffie-Hellman parameters to match those used by
27332       Apache's mod_ssl.
27333     - Provide a log message stating which geoip file we're parsing
27334       instead of just stating that we're parsing the geoip file.
27335       Implements ticket 2432.
27337   o Minor bugfixes:
27338     - Check for and reject overly long directory certificates and
27339       directory tokens before they have a chance to hit any assertions.
27340       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
27343 Changes in version 0.2.2.21-alpha - 2011-01-15
27344   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
27345   continues our recent code security audit work. The main fix resolves
27346   a remote heap overflow vulnerability that can allow remote code
27347   execution (CVE-2011-0427). Other fixes address a variety of assert
27348   and crash bugs, most of which we think are hard to exploit remotely.
27350   o Major bugfixes (security), also included in 0.2.1.29:
27351     - Fix a heap overflow bug where an adversary could cause heap
27352       corruption. This bug probably allows remote code execution
27353       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
27354       0.1.2.10-rc.
27355     - Prevent a denial-of-service attack by disallowing any
27356       zlib-compressed data whose compression factor is implausibly
27357       high. Fixes part of bug 2324; reported by "doorss".
27358     - Zero out a few more keys in memory before freeing them. Fixes
27359       bug 2384 and part of bug 2385. These key instances found by
27360       "cypherpunks", based on Andrew Case's report about being able
27361       to find sensitive data in Tor's memory space if you have enough
27362       permissions. Bugfix on 0.0.2pre9.
27364   o Major bugfixes (crashes), also included in 0.2.1.29:
27365     - Prevent calls to Libevent from inside Libevent log handlers.
27366       This had potential to cause a nasty set of crashes, especially
27367       if running Libevent with debug logging enabled, and running
27368       Tor with a controller watching for low-severity log messages.
27369       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
27370     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
27371       underflow errors there too. Fixes the other part of bug 2324.
27372     - Fix a bug where we would assert if we ever had a
27373       cached-descriptors.new file (or another file read directly into
27374       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
27375       on 0.2.1.25. Found by doorss.
27376     - Fix some potential asserts and parsing issues with grossly
27377       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
27378       Found by doorss.
27380   o Minor bugfixes (other), also included in 0.2.1.29:
27381     - Fix a bug with handling misformed replies to reverse DNS lookup
27382       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
27383       bug reported by doorss.
27384     - Fix compilation on mingw when a pthreads compatibility library
27385       has been installed. (We don't want to use it, so we shouldn't
27386       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
27387     - Fix a bug where we would declare that we had run out of virtual
27388       addresses when the address space was only half-exhausted. Bugfix
27389       on 0.1.2.1-alpha.
27390     - Correctly handle the case where AutomapHostsOnResolve is set but
27391       no virtual addresses are available. Fixes bug 2328; bugfix on
27392       0.1.2.1-alpha. Bug found by doorss.
27393     - Correctly handle wrapping around when we run out of virtual
27394       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
27396   o Minor features, also included in 0.2.1.29:
27397     - Update to the January 1 2011 Maxmind GeoLite Country database.
27398     - Introduce output size checks on all of our decryption functions.
27400   o Build changes, also included in 0.2.1.29:
27401     - Tor does not build packages correctly with Automake 1.6 and earlier;
27402       added a check to Makefile.am to make sure that we're building with
27403       Automake 1.7 or later.
27404     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
27405       because we built it with a too-old version of automake. Thus that
27406       release broke ./configure --enable-openbsd-malloc, which is popular
27407       among really fast exit relays on Linux.
27409   o Major bugfixes, new in 0.2.2.21-alpha:
27410     - Prevent crash/heap corruption when the cbtnummodes consensus
27411       parameter is set to 0 or large values. Fixes bug 2317; bugfix
27412       on 0.2.2.14-alpha.
27414   o Major features, new in 0.2.2.21-alpha:
27415     - Introduce minimum/maximum values that clients will believe
27416       from the consensus. Now we'll have a better chance to avoid crashes
27417       or worse when a consensus param has a weird value.
27419   o Minor features, new in 0.2.2.21-alpha:
27420     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
27421       used on bridges, and it makes bridge scanning somewhat easier.
27422     - If writing the state file to disk fails, wait up to an hour before
27423       retrying again, rather than trying again each second. Fixes bug
27424       2346; bugfix on Tor 0.1.1.3-alpha.
27425     - Make Libevent log messages get delivered to controllers later,
27426       and not from inside the Libevent log handler. This prevents unsafe
27427       reentrant Libevent calls while still letting the log messages
27428       get through.
27429     - Detect platforms that brokenly use a signed size_t, and refuse to
27430       build there. Found and analyzed by doorss and rransom.
27431     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
27432       Resolves bug 2314.
27434   o Minor bugfixes, new in 0.2.2.21-alpha:
27435     - Handle SOCKS messages longer than 128 bytes long correctly, rather
27436       than waiting forever for them to finish. Fixes bug 2330; bugfix
27437       on 0.2.0.16-alpha. Found by doorss.
27438     - Add assertions to check for overflow in arguments to
27439       base32_encode() and base32_decode(); fix a signed-unsigned
27440       comparison there too. These bugs are not actually reachable in Tor,
27441       but it's good to prevent future errors too. Found by doorss.
27442     - Correctly detect failures to create DNS requests when using Libevent
27443       versions before v2. (Before Libevent 2, we used our own evdns
27444       implementation. Its return values for Libevent's evdns_resolve_*()
27445       functions are not consistent with those from Libevent.) Fixes bug
27446       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
27448   o Documentation, new in 0.2.2.21-alpha:
27449     - Document the default socks host and port (127.0.0.1:9050) for
27450       tor-resolve.
27453 Changes in version 0.2.1.29 - 2011-01-15
27454   Tor 0.2.1.29 continues our recent code security audit work. The main
27455   fix resolves a remote heap overflow vulnerability that can allow remote
27456   code execution. Other fixes address a variety of assert and crash bugs,
27457   most of which we think are hard to exploit remotely.
27459   o Major bugfixes (security):
27460     - Fix a heap overflow bug where an adversary could cause heap
27461       corruption. This bug probably allows remote code execution
27462       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
27463       0.1.2.10-rc.
27464     - Prevent a denial-of-service attack by disallowing any
27465       zlib-compressed data whose compression factor is implausibly
27466       high. Fixes part of bug 2324; reported by "doorss".
27467     - Zero out a few more keys in memory before freeing them. Fixes
27468       bug 2384 and part of bug 2385. These key instances found by
27469       "cypherpunks", based on Andrew Case's report about being able
27470       to find sensitive data in Tor's memory space if you have enough
27471       permissions. Bugfix on 0.0.2pre9.
27473   o Major bugfixes (crashes):
27474     - Prevent calls to Libevent from inside Libevent log handlers.
27475       This had potential to cause a nasty set of crashes, especially
27476       if running Libevent with debug logging enabled, and running
27477       Tor with a controller watching for low-severity log messages.
27478       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
27479     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
27480       underflow errors there too. Fixes the other part of bug 2324.
27481     - Fix a bug where we would assert if we ever had a
27482       cached-descriptors.new file (or another file read directly into
27483       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
27484       on 0.2.1.25. Found by doorss.
27485     - Fix some potential asserts and parsing issues with grossly
27486       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
27487       Found by doorss.
27489   o Minor bugfixes (other):
27490     - Fix a bug with handling misformed replies to reverse DNS lookup
27491       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
27492       bug reported by doorss.
27493     - Fix compilation on mingw when a pthreads compatibility library
27494       has been installed. (We don't want to use it, so we shouldn't
27495       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
27496     - Fix a bug where we would declare that we had run out of virtual
27497       addresses when the address space was only half-exhausted. Bugfix
27498       on 0.1.2.1-alpha.
27499     - Correctly handle the case where AutomapHostsOnResolve is set but
27500       no virtual addresses are available. Fixes bug 2328; bugfix on
27501       0.1.2.1-alpha. Bug found by doorss.
27502     - Correctly handle wrapping around to when we run out of virtual
27503       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
27504     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
27505       because we built it with a too-old version of automake. Thus that
27506       release broke ./configure --enable-openbsd-malloc, which is popular
27507       among really fast exit relays on Linux.
27509   o Minor features:
27510     - Update to the January 1 2011 Maxmind GeoLite Country database.
27511     - Introduce output size checks on all of our decryption functions.
27513   o Build changes:
27514     - Tor does not build packages correctly with Automake 1.6 and earlier;
27515       added a check to Makefile.am to make sure that we're building with
27516       Automake 1.7 or later.
27519 Changes in version 0.2.2.20-alpha - 2010-12-17
27520   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
27521   exploitable bugs. We also fix a variety of other significant bugs,
27522   change the IP address for one of our directory authorities, and update
27523   the minimum version that Tor relays must run to join the network.
27525   o Major bugfixes:
27526     - Fix a remotely exploitable bug that could be used to crash instances
27527       of Tor remotely by overflowing on the heap. Remote-code execution
27528       hasn't been confirmed, but can't be ruled out. Everyone should
27529       upgrade. Bugfix on the 0.1.1 series and later.
27530     - Fix a bug that could break accounting on 64-bit systems with large
27531       time_t values, making them hibernate for impossibly long intervals.
27532       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
27533     - Fix a logic error in directory_fetches_from_authorities() that
27534       would cause all _non_-exits refusing single-hop-like circuits
27535       to fetch from authorities, when we wanted to have _exits_ fetch
27536       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
27537       fix by boboper.
27538     - Fix a stream fairness bug that would cause newer streams on a given
27539       circuit to get preference when reading bytes from the origin or
27540       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
27541       introduced before the first Tor release, in svn revision r152.
27543   o Directory authority changes:
27544     - Change IP address and ports for gabelmoo (v3 directory authority).
27546   o Minor bugfixes:
27547     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
27548       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
27549     - Fix an off-by-one error in calculating some controller command
27550       argument lengths. Fortunately, this mistake is harmless since
27551       the controller code does redundant NUL termination too. Found by
27552       boboper. Bugfix on 0.1.1.1-alpha.
27553     - Do not dereference NULL if a bridge fails to build its
27554       extra-info descriptor. Found by an anonymous commenter on
27555       Trac. Bugfix on 0.2.2.19-alpha.
27557   o Minor features:
27558     - Update to the December 1 2010 Maxmind GeoLite Country database.
27559     - Directory authorities now reject relays running any versions of
27560       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
27561       known bugs that keep RELAY_EARLY cells from working on rendezvous
27562       circuits. Followup to fix for bug 2081.
27563     - Directory authorities now reject relays running any version of Tor
27564       older than 0.2.0.26-rc. That version is the earliest that fetches
27565       current directory information correctly. Fixes bug 2156.
27566     - Report only the top 10 ports in exit-port stats in order not to
27567       exceed the maximum extra-info descriptor length of 50 KB. Implements
27568       task 2196.
27571 Changes in version 0.2.1.28 - 2010-12-17
27572   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
27573   exploitable bugs. We also took this opportunity to change the IP address
27574   for one of our directory authorities, and to update the geoip database
27575   we ship.
27577   o Major bugfixes:
27578     - Fix a remotely exploitable bug that could be used to crash instances
27579       of Tor remotely by overflowing on the heap. Remote-code execution
27580       hasn't been confirmed, but can't be ruled out. Everyone should
27581       upgrade. Bugfix on the 0.1.1 series and later.
27583   o Directory authority changes:
27584     - Change IP address and ports for gabelmoo (v3 directory authority).
27586   o Minor features:
27587     - Update to the December 1 2010 Maxmind GeoLite Country database.
27590 Changes in version 0.2.1.27 - 2010-11-23
27591   Yet another OpenSSL security patch broke its compatibility with Tor:
27592   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
27593   also took this opportunity to fix several crash bugs, integrate a new
27594   directory authority, and update the bundled GeoIP database.
27596   o Major bugfixes:
27597     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
27598       No longer set the tlsext_host_name extension on server SSL objects;
27599       but continue to set it on client SSL objects. Our goal in setting
27600       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
27601       bugfix on 0.2.1.1-alpha.
27602     - Do not log messages to the controller while shrinking buffer
27603       freelists. Doing so would sometimes make the controller connection
27604       try to allocate a buffer chunk, which would mess up the internals
27605       of the freelist and cause an assertion failure. Fixes bug 1125;
27606       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
27607     - Learn our external IP address when we're a relay or bridge, even if
27608       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
27609       where we introduced bridge relays that don't need to publish to
27610       be useful. Fixes bug 2050.
27611     - Do even more to reject (and not just ignore) annotations on
27612       router descriptors received anywhere but from the cache. Previously
27613       we would ignore such annotations at first, but cache them to disk
27614       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
27615     - When you're using bridges and your network goes away and your
27616       bridges get marked as down, recover when you attempt a new socks
27617       connection (if the network is back), rather than waiting up to an
27618       hour to try fetching new descriptors for your bridges. Bugfix on
27619       0.2.0.3-alpha; fixes bug 1981.
27621   o Major features:
27622     - Move to the November 2010 Maxmind GeoLite country db (rather
27623       than the June 2009 ip-to-country GeoIP db) for our statistics that
27624       count how many users relays are seeing from each country. Now we'll
27625       have more accurate data, especially for many African countries.
27627   o New directory authorities:
27628     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
27629       authority.
27631   o Minor bugfixes:
27632     - Fix an assertion failure that could occur in directory caches or
27633       bridge users when using a very short voting interval on a testing
27634       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
27635       0.2.0.8-alpha.
27636     - Enforce multiplicity rules when parsing annotations. Bugfix on
27637       0.2.0.8-alpha. Found by piebeer.
27638     - Allow handshaking OR connections to take a full KeepalivePeriod
27639       seconds to handshake. Previously, we would close them after
27640       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
27641       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
27642       for analysis help.
27643     - When building with --enable-gcc-warnings on OpenBSD, disable
27644       warnings in system headers. This makes --enable-gcc-warnings
27645       pass on OpenBSD 4.8.
27647   o Minor features:
27648     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
27649       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
27650       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
27651       Servers can start sending this code when enough clients recognize
27652       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
27653     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
27654       Patch from mingw-san.
27656   o Removed files:
27657     - Remove the old debian/ directory from the main Tor distribution.
27658       The official Tor-for-debian git repository lives at the URL
27659       https://git.torproject.org/debian/tor.git
27660     - Stop shipping the old doc/website/ directory in the tarball. We
27661       changed the website format in late 2010, and what we shipped in
27662       0.2.1.26 really wasn't that useful anyway.
27665 Changes in version 0.2.2.19-alpha - 2010-11-22
27666   Yet another OpenSSL security patch broke its compatibility with Tor:
27667   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
27669   o Major bugfixes:
27670     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
27671       No longer set the tlsext_host_name extension on server SSL objects;
27672       but continue to set it on client SSL objects. Our goal in setting
27673       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
27674       bugfix on 0.2.1.1-alpha.
27676   o Minor bugfixes:
27677     - Try harder not to exceed the maximum length of 50 KB when writing
27678       statistics to extra-info descriptors. This bug was triggered by very
27679       fast relays reporting exit-port, entry, and dirreq statistics.
27680       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
27681     - Publish a router descriptor even if generating an extra-info
27682       descriptor fails. Previously we would not publish a router
27683       descriptor without an extra-info descriptor; this can cause fast
27684       exit relays collecting exit-port statistics to drop from the
27685       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
27688 Changes in version 0.2.2.18-alpha - 2010-11-16
27689   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
27690   us lately, makes unpublished bridge relays able to detect their IP
27691   address, and fixes a wide variety of other bugs to get us much closer
27692   to a stable release.
27694   o Major bugfixes:
27695     - Do even more to reject (and not just ignore) annotations on
27696       router descriptors received anywhere but from the cache. Previously
27697       we would ignore such annotations at first, but cache them to disk
27698       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
27699     - Do not log messages to the controller while shrinking buffer
27700       freelists. Doing so would sometimes make the controller connection
27701       try to allocate a buffer chunk, which would mess up the internals
27702       of the freelist and cause an assertion failure. Fixes bug 1125;
27703       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
27704     - Learn our external IP address when we're a relay or bridge, even if
27705       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
27706       where we introduced bridge relays that don't need to publish to
27707       be useful. Fixes bug 2050.
27708     - Maintain separate TLS contexts and certificates for incoming and
27709       outgoing connections in bridge relays. Previously we would use the
27710       same TLS contexts and certs for incoming and outgoing connections.
27711       Bugfix on 0.2.0.3-alpha; addresses bug 988.
27712     - Maintain separate identity keys for incoming and outgoing TLS
27713       contexts in bridge relays. Previously we would use the same
27714       identity keys for incoming and outgoing TLS contexts. Bugfix on
27715       0.2.0.3-alpha; addresses the other half of bug 988.
27716     - Avoid an assertion failure when we as an authority receive a
27717       duplicate upload of a router descriptor that we already have,
27718       but which we previously considered an obsolete descriptor.
27719       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
27720     - Avoid a crash bug triggered by looking at a dangling pointer while
27721       setting the network status consensus. Found by Robert Ransom.
27722       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
27723     - Fix a logic error where servers that _didn't_ act as exits would
27724       try to keep their server lists more aggressively up to date than
27725       exits, when it was supposed to be the other way around. Bugfix
27726       on 0.2.2.17-alpha.
27728   o Minor bugfixes (on Tor 0.2.1.x and earlier):
27729     - When we're trying to guess whether we know our IP address as
27730       a relay, we would log various ways that we failed to guess
27731       our address, but never log that we ended up guessing it
27732       successfully. Now add a log line to help confused and anxious
27733       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
27734     - Bring the logic that gathers routerinfos and assesses the
27735       acceptability of circuits into line. This prevents a Tor OP from
27736       getting locked in a cycle of choosing its local OR as an exit for a
27737       path (due to a .exit request) and then rejecting the circuit because
27738       its OR is not listed yet. It also prevents Tor clients from using an
27739       OR running in the same instance as an exit (due to a .exit request)
27740       if the OR does not meet the same requirements expected of an OR
27741       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
27742     - Correctly describe errors that occur when generating a TLS object.
27743       Previously we would attribute them to a failure while generating a
27744       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
27745       bug 1994.
27746     - Enforce multiplicity rules when parsing annotations. Bugfix on
27747       0.2.0.8-alpha. Found by piebeer.
27748     - Fix warnings that newer versions of autoconf produced during
27749       ./autogen.sh. These warnings appear to be harmless in our case,
27750       but they were extremely verbose. Fixes bug 2020.
27752   o Minor bugfixes (on Tor 0.2.2.x):
27753     - Enable protection of small arrays whenever we build with gcc
27754       hardening features, not only when also building with warnings
27755       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
27757   o Minor features:
27758     - Make hidden services work better in private Tor networks by not
27759       requiring any uptime to join the hidden service descriptor
27760       DHT. Implements ticket 2088.
27761     - Rate-limit the "your application is giving Tor only an IP address"
27762       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
27763     - When AllowSingleHopExits is set, print a warning to explain to the
27764       relay operator why most clients are avoiding her relay.
27765     - Update to the November 1 2010 Maxmind GeoLite Country database.
27767   o Code simplifications and refactoring:
27768     - When we fixed bug 1038 we had to put in a restriction not to send
27769       RELAY_EARLY cells on rend circuits. This was necessary as long
27770       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
27771       active. Now remove this obsolete check. Resolves bug 2081.
27772     - Some options used different conventions for uppercasing of acronyms
27773       when comparing manpage and source. Fix those in favor of the
27774       manpage, as it makes sense to capitalize acronyms.
27775     - Remove the torrc.complete file. It hasn't been kept up to date
27776       and users will have better luck checking out the manpage.
27777     - Remove the obsolete "NoPublish" option; it has been flagged
27778       as obsolete and has produced a warning since 0.1.1.18-rc.
27779     - Remove everything related to building the expert bundle for OS X.
27780       It has confused many users, doesn't work right on OS X 10.6,
27781       and is hard to get rid of once installed. Resolves bug 1274.
27784 Changes in version 0.2.2.17-alpha - 2010-09-30
27785   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
27786   to use one-hop circuits (which can put the exit relays at higher risk,
27787   plus unbalance the network); fixes a big bug in bandwidth accounting
27788   for relays that want to limit their monthly bandwidth use; fixes a
27789   big pile of bugs in how clients tolerate temporary network failure;
27790   and makes our adaptive circuit build timeout feature (which improves
27791   client performance if your network is fast while not breaking things
27792   if your network is slow) better handle bad networks.
27794   o Major features:
27795     - Exit relays now try harder to block exit attempts from unknown
27796       relays, to make it harder for people to use them as one-hop proxies
27797       a la tortunnel. Controlled by the refuseunknownexits consensus
27798       parameter (currently enabled), or you can override it on your
27799       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
27801   o Major bugfixes (0.2.1.x and earlier):
27802     - Fix a bug in bandwidth accounting that could make us use twice
27803       the intended bandwidth when our interval start changes due to
27804       daylight saving time. Now we tolerate skew in stored vs computed
27805       interval starts: if the start of the period changes by no more than
27806       50% of the period's duration, we remember bytes that we transferred
27807       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
27808     - Always search the Windows system directory for system DLLs, and
27809       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
27810     - When you're using bridges and your network goes away and your
27811       bridges get marked as down, recover when you attempt a new socks
27812       connection (if the network is back), rather than waiting up to an
27813       hour to try fetching new descriptors for your bridges. Bugfix on
27814       0.2.0.3-alpha; fixes bug 1981.
27816   o Major bugfixes (on 0.2.2.x):
27817     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
27818       bug 1797.
27819     - Fix a segfault that could happen when operating a bridge relay with
27820       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
27821     - The consensus bandwidth-weights (used by clients to choose fast
27822       relays) entered an unexpected edge case in September where
27823       Exits were much scarcer than Guards, resulting in bad weight
27824       recommendations. Now we compute them using new constraints that
27825       should succeed in all cases. Also alter directory authorities to
27826       not include the bandwidth-weights line if they fail to produce
27827       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
27828     - When weighting bridges during path selection, we used to trust
27829       the bandwidths they provided in their descriptor, only capping them
27830       at 10MB/s. This turned out to be problematic for two reasons:
27831       Bridges could claim to handle a lot more traffic then they
27832       actually would, thus making more clients pick them and have a
27833       pretty effective DoS attack. The other issue is that new bridges
27834       that might not have a good estimate for their bw capacity yet
27835       would not get used at all unless no other bridges are available
27836       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
27838   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
27839     - Ignore cannibalized circuits when recording circuit build times.
27840       This should provide for a minor performance improvement for hidden
27841       service users using 0.2.2.14-alpha, and should remove two spurious
27842       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
27843     - Simplify the logic that causes us to decide if the network is
27844       unavailable for purposes of recording circuit build times. If we
27845       receive no cells whatsoever for the entire duration of a circuit's
27846       full measured lifetime, the network is probably down. Also ignore
27847       one-hop directory fetching circuit timeouts when calculating our
27848       circuit build times. These changes should hopefully reduce the
27849       cases where we see ridiculous circuit build timeouts for people
27850       with spotty wireless connections. Fixes part of bug 1772; bugfix
27851       on 0.2.2.2-alpha.
27852     - Prevent the circuit build timeout from becoming larger than
27853       the maximum build time we have ever seen. Also, prevent the time
27854       period for measurement circuits from becoming larger than twice that
27855       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
27857   o Minor features:
27858     - When we run out of directory information such that we can't build
27859       circuits, but then get enough that we can build circuits, log when
27860       we actually construct a circuit, so the user has a better chance of
27861       knowing what's going on. Fixes bug 1362.
27862     - Be more generous with how much bandwidth we'd use up (with
27863       accounting enabled) before entering "soft hibernation". Previously,
27864       we'd refuse new connections and circuits once we'd used up 95% of
27865       our allotment. Now, we use up 95% of our allotment, AND make sure
27866       that we have no more than 500MB (or 3 hours of expected traffic,
27867       whichever is lower) remaining before we enter soft hibernation.
27868     - If we've configured EntryNodes and our network goes away and/or all
27869       our entrynodes get marked down, optimistically retry them all when
27870       a new socks application request appears. Fixes bug 1882.
27871     - Add some more defensive programming for architectures that can't
27872       handle unaligned integer accesses. We don't know of any actual bugs
27873       right now, but that's the best time to fix them. Fixes bug 1943.
27874     - Support line continuations in the torrc config file. If a line
27875       ends with a single backslash character, the newline is ignored, and
27876       the configuration value is treated as continuing on the next line.
27877       Resolves bug 1929.
27879   o Minor bugfixes (on 0.2.1.x and earlier):
27880     - For bandwidth accounting, calculate our expected bandwidth rate
27881       based on the time during which we were active and not in
27882       soft-hibernation during the last interval. Previously, we were
27883       also considering the time spent in soft-hibernation. If this
27884       was a long time, we would wind up underestimating our bandwidth
27885       by a lot, and skewing our wakeup time towards the start of the
27886       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
27888   o Minor bugfixes (on 0.2.2.x):
27889     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
27890       which were disabled by the circuit build timeout changes in
27891       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
27892     - Make sure we don't warn about missing bandwidth weights when
27893       choosing bridges or other relays not in the consensus. Bugfix on
27894       0.2.2.10-alpha; fixes bug 1805.
27895     - In our logs, do not double-report signatures from unrecognized
27896       authorities both as "from unknown authority" and "not
27897       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
27900 Changes in version 0.2.2.16-alpha - 2010-09-17
27901   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
27902   evident at exit relays), and also continues to resolve all the little
27903   bugs that have been filling up trac lately.
27905   o Major bugfixes (stream-level fairness):
27906     - When receiving a circuit-level SENDME for a blocked circuit, try
27907       to package cells fairly from all the streams that had previously
27908       been blocked on that circuit. Previously, we had started with the
27909       oldest stream, and allowed each stream to potentially exhaust
27910       the circuit's package window. This gave older streams on any
27911       given circuit priority over newer ones. Fixes bug 1937. Detected
27912       originally by Camilo Viecco. This bug was introduced before the
27913       first Tor release, in svn commit r152: it is the new winner of
27914       the longest-lived bug prize.
27915     - When the exit relay got a circuit-level sendme cell, it started
27916       reading on the exit streams, even if had 500 cells queued in the
27917       circuit queue already, so the circuit queue just grew and grew in
27918       some cases. We fix this by not re-enabling reading on receipt of a
27919       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
27920       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
27921       "yetonetime".
27922     - Newly created streams were allowed to read cells onto circuits,
27923       even if the circuit's cell queue was blocked and waiting to drain.
27924       This created potential unfairness, as older streams would be
27925       blocked, but newer streams would gladly fill the queue completely.
27926       We add code to detect this situation and prevent any stream from
27927       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
27928       fixes bug 1298.
27930   o Minor features:
27931     - Update to the September 1 2010 Maxmind GeoLite Country database.
27932     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
27933       not. This would lead to a cookie that is still not group readable.
27934       Closes bug 1843. Suggested by katmagic.
27935     - When logging a rate-limited warning, we now mention how many messages
27936       got suppressed since the last warning.
27937     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
27938       do individual connection-level rate limiting of clients. The torrc
27939       config options with the same names trump the consensus params, if
27940       both are present. Replaces the old "bwconnrate" and "bwconnburst"
27941       consensus params which were broken from 0.2.2.7-alpha through
27942       0.2.2.14-alpha. Closes bug 1947.
27943     - When a router changes IP address or port, authorities now launch
27944       a new reachability test for it. Implements ticket 1899.
27945     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
27946       2 no signature, 4 required" messages about consensus signatures
27947       easier to read, and make sure they get logged at the same severity
27948       as the messages explaining which keys are which. Fixes bug 1290.
27949     - Don't warn when we have a consensus that we can't verify because
27950       of missing certificates, unless those certificates are ones
27951       that we have been trying and failing to download. Fixes bug 1145.
27952     - If you configure your bridge with a known identity fingerprint,
27953       and the bridge authority is unreachable (as it is in at least
27954       one country now), fall back to directly requesting the descriptor
27955       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
27956       closes bug 1138.
27957     - When building with --enable-gcc-warnings on OpenBSD, disable
27958       warnings in system headers. This makes --enable-gcc-warnings
27959       pass on OpenBSD 4.8.
27961   o Minor bugfixes (on 0.2.1.x and earlier):
27962     - Authorities will now attempt to download consensuses if their
27963       own efforts to make a live consensus have failed. This change
27964       means authorities that restart will fetch a valid consensus, and
27965       it means authorities that didn't agree with the current consensus
27966       will still fetch and serve it if it has enough signatures. Bugfix
27967       on 0.2.0.9-alpha; fixes bug 1300.
27968     - Ensure DNS requests launched by "RESOLVE" commands from the
27969       controller respect the __LeaveStreamsUnattached setconf options. The
27970       same goes for requests launched via DNSPort or transparent
27971       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
27972     - Allow handshaking OR connections to take a full KeepalivePeriod
27973       seconds to handshake. Previously, we would close them after
27974       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
27975       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
27976       for analysis help.
27977     - Rate-limit "Failed to hand off onionskin" warnings.
27978     - Never relay a cell for a circuit we have already destroyed.
27979       Between marking a circuit as closeable and finally closing it,
27980       it may have been possible for a few queued cells to get relayed,
27981       even though they would have been immediately dropped by the next
27982       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
27983     - Never queue a cell for a circuit that's already been marked
27984       for close.
27985     - Never vote for a server as "Running" if we have a descriptor for
27986       it claiming to be hibernating, and that descriptor was published
27987       more recently than our last contact with the server. Bugfix on
27988       0.2.0.3-alpha; fixes bug 911.
27989     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
27990       bug 1848.
27992   o Minor bugfixes (on 0.2.2.x):
27993     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
27994       down if a directory fetch fails and you've configured either
27995       bridges or EntryNodes. The intent was to mark the relay as down
27996       _unless_ you're using bridges or EntryNodes, since if you are
27997       then you could quickly run out of entry points.
27998     - Fix the Windows directory-listing code. A bug introduced in
27999       0.2.2.14-alpha could make Windows directory servers forget to load
28000       some of their cached v2 networkstatus files.
28001     - Really allow clients to use relays as bridges. Fixes bug 1776;
28002       bugfix on 0.2.2.15-alpha.
28003     - Demote a warn to info that happens when the CellStatistics option
28004       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
28005       Reported by Moritz Bartl.
28006     - On Windows, build correctly either with or without Unicode support.
28007       This is necessary so that Tor can support fringe platforms like
28008       Windows 98 (which has no Unicode), or Windows CE (which has no
28009       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
28011   o Testing
28012     - Add a unit test for cross-platform directory-listing code.
28015 Changes in version 0.2.2.15-alpha - 2010-08-18
28016   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
28017   fixes a variety of other bugs that were preventing performance
28018   experiments from moving forward, fixes several bothersome memory leaks,
28019   and generally closes a lot of smaller bugs that have been filling up
28020   trac lately.
28022   o Major bugfixes:
28023     - Stop assigning the HSDir flag to relays that disable their
28024       DirPort (and thus will refuse to answer directory requests). This
28025       fix should dramatically improve the reachability of hidden services:
28026       hidden services and hidden service clients pick six HSDir relays
28027       to store and retrieve the hidden service descriptor, and currently
28028       about half of the HSDir relays will refuse to work. Bugfix on
28029       0.2.0.10-alpha; fixes part of bug 1693.
28030     - The PerConnBWRate and Burst config options, along with the
28031       bwconnrate and bwconnburst consensus params, initialized each conn's
28032       token bucket values only when the connection is established. Now we
28033       update them if the config options change, and update them every time
28034       we get a new consensus. Otherwise we can encounter an ugly edge
28035       case where we initialize an OR conn to client-level bandwidth,
28036       but then later the relay joins the consensus and we leave it
28037       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
28038     - Fix a regression that caused Tor to rebind its ports if it receives
28039       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
28041   o Major features:
28042     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
28043       should give us approximately 40-50% more Guard-flagged nodes,
28044       improving the anonymity the Tor network can provide and also
28045       decreasing the dropoff in throughput that relays experience when
28046       they first get the Guard flag.
28047     - Allow enabling or disabling the *Statistics config options while
28048       Tor is running.
28050   o Minor features:
28051     - Update to the August 1 2010 Maxmind GeoLite Country database.
28052     - Have the controller interface give a more useful message than
28053       "Internal Error" in response to failed GETINFO requests.
28054     - Warn when the same option is provided more than once in a torrc
28055       file, on the command line, or in a single SETCONF statement, and
28056       the option is one that only accepts a single line. Closes bug 1384.
28057     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
28058       Patch from mingw-san.
28059     - Add support for the country code "{??}" in torrc options like
28060       ExcludeNodes, to indicate all routers of unknown country. Closes
28061       bug 1094.
28062     - Relays report the number of bytes spent on answering directory
28063       requests in extra-info descriptors similar to {read,write}-history.
28064       Implements enhancement 1790.
28066   o Minor bugfixes (on 0.2.1.x and earlier):
28067     - Complain if PublishServerDescriptor is given multiple arguments that
28068       include 0 or 1. This configuration will be rejected in the future.
28069       Bugfix on 0.2.0.1-alpha; closes bug 1107.
28070     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
28071       Bugfix on 0.2.0.13-alpha; closes bug 928.
28072     - Change "Application request when we're believed to be offline."
28073       notice to "Application request when we haven't used client
28074       functionality lately.", to clarify that it's not an error. Bugfix
28075       on 0.0.9.3; fixes bug 1222.
28076     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
28077       would return "551 Internal error" rather than "552 Unrecognized key
28078       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
28079     - Users can't configure a regular relay to be their bridge. It didn't
28080       work because when Tor fetched the bridge descriptor, it found
28081       that it already had it, and didn't realize that the purpose of the
28082       descriptor had changed. Now we replace routers with a purpose other
28083       than bridge with bridge descriptors when fetching them. Bugfix on
28084       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
28085       refetch the descriptor with router purpose 'general', disabling
28086       it as a bridge.
28087     - Fix a rare bug in rend_fn unit tests: we would fail a test when
28088       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
28089       on 0.2.0.10-alpha; fixes bug 1808.
28090     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
28091       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
28092       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
28093       Servers can start sending this code when enough clients recognize
28094       it. Also update the spec to reflect this new reason. Bugfix on
28095       0.1.0.1-rc; fixes part of bug 1793.
28096     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
28097       when we switch from being a public relay to a bridge. Otherwise
28098       there will still be clients that see the relay in their consensus,
28099       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
28100       932 even more.
28101     - Instead of giving an assertion failure on an internal mismatch
28102       on estimated freelist size, just log a BUG warning and try later.
28103       Mitigates but does not fix bug 1125.
28104     - Fix an assertion failure that could occur in caches or bridge users
28105       when using a very short voting interval on a testing network.
28106       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
28108   o Minor bugfixes (on 0.2.2.x):
28109     - Alter directory authorities to always consider Exit-flagged nodes
28110       as potential Guard nodes in their votes. The actual decision to
28111       use Exits as Guards is done in the consensus bandwidth weights.
28112       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
28113     - When the controller is reporting the purpose of circuits that
28114       didn't finish building before the circuit build timeout, it was
28115       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
28116     - Our libevent version parsing code couldn't handle versions like
28117       1.4.14b-stable and incorrectly warned the user about using an
28118       old and broken version of libevent. Treat 1.4.14b-stable like
28119       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
28120       on 0.2.2.1-alpha.
28121     - Don't use substitution references like $(VAR:MOD) when
28122       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
28123       '$(:x)' to 'x' rather than the empty string. This bites us in
28124       doc/ when configured with --disable-asciidoc. Bugfix on
28125       0.2.2.9-alpha; fixes bug 1773.
28126     - Remove a spurious hidden service server-side log notice about
28127       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
28128       bug 1741.
28129     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
28130       fixes bug 1832.
28131     - Correctly report written bytes on linked connections. Found while
28132       implementing 1790. Bugfix on 0.2.2.4-alpha.
28133     - Fix three memory leaks: one in circuit_build_times_parse_state(),
28134       one in dirvote_add_signatures_to_pending_consensus(), and one every
28135       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
28136       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
28138   o Code simplifications and refactoring:
28139     - Take a first step towards making or.h smaller by splitting out
28140       function definitions for all source files in src/or/. Leave
28141       structures and defines in or.h for now.
28142     - Remove a bunch of unused function declarations as well as a block of
28143       #if 0'd code from the unit tests. Closes bug 1824.
28144     - New unit tests for exit-port history statistics; refactored exit
28145       statistics code to be more easily tested.
28146     - Remove the old debian/ directory from the main Tor distribution.
28147       The official Tor-for-debian git repository lives at the URL
28148       https://git.torproject.org/debian/tor.git
28151 Changes in version 0.2.2.14-alpha - 2010-07-12
28152   Tor 0.2.2.14-alpha greatly improves client-side handling of
28153   circuit build timeouts, which are used to estimate speed and improve
28154   performance. We also move to a much better GeoIP database, port Tor to
28155   Windows CE, introduce new compile flags that improve code security,
28156   add an eighth v3 directory authority, and address a lot of more
28157   minor issues.
28159   o Major bugfixes:
28160     - Tor directory authorities no longer crash when started with a
28161       cached-microdesc-consensus file in their data directory. Bugfix
28162       on 0.2.2.6-alpha; fixes bug 1532.
28163     - Treat an unset $HOME like an empty $HOME rather than triggering an
28164       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
28165     - Ignore negative and large circuit build timeout values that can
28166       happen during a suspend or hibernate. These values caused various
28167       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
28168     - Alter calculation of Pareto distribution parameter 'Xm' for
28169       Circuit Build Timeout learning to use the weighted average of the
28170       top N=3 modes (because we have three entry guards). Considering
28171       multiple modes should improve the timeout calculation in some cases,
28172       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
28173       fixes bug 1335.
28174     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
28175       right censored distribution model. This approach improves over the
28176       synthetic timeout generation approach that was producing insanely
28177       high timeout values. Now we calculate build timeouts using truncated
28178       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
28179     - Do not close circuits that are under construction when they reach
28180       the circuit build timeout. Instead, leave them building (but do not
28181       use them) for up until the time corresponding to the 95th percentile
28182       on the Pareto CDF or 60 seconds, whichever is greater. This is done
28183       to provide better data for the new Pareto model. This percentile
28184       can be controlled by the consensus.
28186   o Major features:
28187     - Move to the June 2010 Maxmind GeoLite country db (rather than the
28188       June 2009 ip-to-country GeoIP db) for our statistics that count
28189       how many users relays are seeing from each country. Now we have
28190       more accurate data for many African countries.
28191     - Port Tor to build and run correctly on Windows CE systems, using
28192       the wcecompat library. Contributed by Valerio Lupi.
28193     - New "--enable-gcc-hardening" ./configure flag (off by default)
28194       to turn on gcc compile time hardening options. It ensures
28195       that signed ints have defined behavior (-fwrapv), enables
28196       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
28197       with canaries (-fstack-protector-all), turns on ASLR protection if
28198       supported by the kernel (-fPIE, -pie), and adds additional security
28199       related warnings. Verified to work on Mac OS X and Debian Lenny.
28200     - New "--enable-linker-hardening" ./configure flag (off by default)
28201       to turn on ELF specific hardening features (relro, now). This does
28202       not work with Mac OS X or any other non-ELF binary format.
28204   o New directory authorities:
28205     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
28206       authority.
28208   o Minor features:
28209     - New config option "WarnUnsafeSocks 0" disables the warning that
28210       occurs whenever Tor receives a socks handshake using a version of
28211       the socks protocol that can only provide an IP address (rather
28212       than a hostname). Setups that do DNS locally over Tor are fine,
28213       and we shouldn't spam the logs in that case.
28214     - Convert the HACKING file to asciidoc, and add a few new sections
28215       to it, explaining how we use Git, how we make changelogs, and
28216       what should go in a patch.
28217     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
28218       event, to give information on the current rate of circuit timeouts
28219       over our stored history.
28220     - Add ability to disable circuit build time learning via consensus
28221       parameter and via a LearnCircuitBuildTimeout config option. Also
28222       automatically disable circuit build time calculation if we are
28223       either a AuthoritativeDirectory, or if we fail to write our state
28224       file. Fixes bug 1296.
28225     - More gracefully handle corrupt state files, removing asserts
28226       in favor of saving a backup and resetting state.
28227     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
28228       system headers.
28230   o Minor bugfixes:
28231     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
28232       enabled.
28233     - When a2x fails, mention that the user could disable manpages instead
28234       of trying to fix their asciidoc installation.
28235     - Where available, use Libevent 2.0's periodic timers so that our
28236       once-per-second cleanup code gets called even more closely to
28237       once per second than it would otherwise. Fixes bug 943.
28238     - If you run a bridge that listens on multiple IP addresses, and
28239       some user configures a bridge address that uses a different IP
28240       address than your bridge writes in its router descriptor, and the
28241       user doesn't specify an identity key, their Tor would discard the
28242       descriptor because "it isn't one of our configured bridges", and
28243       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
28244       Bugfix on 0.2.0.3-alpha.
28245     - If OpenSSL fails to make a duplicate of a private or public key, log
28246       an error message and try to exit cleanly. May help with debugging
28247       if bug 1209 ever remanifests.
28248     - Save a couple bytes in memory allocation every time we escape
28249       certain characters in a string. Patch from Florian Zumbiehl.
28250     - Make it explicit that we don't cannibalize one-hop circuits. This
28251       happens in the wild, but doesn't turn out to be a problem because
28252       we fortunately don't use those circuits. Many thanks to outofwords
28253       for the initial analysis and to swissknife who confirmed that
28254       two-hop circuits are actually created.
28255     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
28256       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
28257     - Eliminate a case where a circuit build time warning was displayed
28258       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
28261 Changes in version 0.2.1.26 - 2010-05-02
28262   Tor 0.2.1.26 addresses the recent connection and memory overload
28263   problems we've been seeing on relays, especially relays with their
28264   DirPort open. If your relay has been crashing, or you turned it off
28265   because it used too many resources, give this release a try.
28267   This release also fixes yet another instance of broken OpenSSL libraries
28268   that was causing some relays to drop out of the consensus.
28270   o Major bugfixes:
28271     - Teach relays to defend themselves from connection overload. Relays
28272       now close idle circuits early if it looks like they were intended
28273       for directory fetches. Relays are also more aggressive about closing
28274       TLS connections that have no circuits on them. Such circuits are
28275       unlikely to be re-used, and tens of thousands of them were piling
28276       up at the fast relays, causing the relays to run out of sockets
28277       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
28278       their directory fetches over TLS).
28279     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
28280       that claim to be earlier than 0.9.8m, but which have in reality
28281       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
28282       behavior. Possible fix for some cases of bug 1346.
28283     - Directory mirrors were fetching relay descriptors only from v2
28284       directory authorities, rather than v3 authorities like they should.
28285       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
28286       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
28288   o Minor bugfixes:
28289     - Finally get rid of the deprecated and now harmful notion of "clique
28290       mode", where directory authorities maintain TLS connections to
28291       every other relay.
28293   o Testsuite fixes:
28294     - In the util/threads test, no longer free the test_mutex before all
28295       worker threads have finished. Bugfix on 0.2.1.6-alpha.
28296     - The master thread could starve the worker threads quite badly on
28297       certain systems, causing them to run only partially in the allowed
28298       window. This resulted in test failures. Now the master thread sleeps
28299       occasionally for a few microseconds while the two worker-threads
28300       compete for the mutex. Bugfix on 0.2.0.1-alpha.
28303 Changes in version 0.2.2.13-alpha - 2010-04-24
28304   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
28305   problems we've been seeing on relays, especially relays with their
28306   DirPort open. If your relay has been crashing, or you turned it off
28307   because it used too many resources, give this release a try.
28309   o Major bugfixes:
28310     - Teach relays to defend themselves from connection overload. Relays
28311       now close idle circuits early if it looks like they were intended
28312       for directory fetches. Relays are also more aggressive about closing
28313       TLS connections that have no circuits on them. Such circuits are
28314       unlikely to be re-used, and tens of thousands of them were piling
28315       up at the fast relays, causing the relays to run out of sockets
28316       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
28317       their directory fetches over TLS).
28319   o Minor features:
28320     - Finally get rid of the deprecated and now harmful notion of "clique
28321       mode", where directory authorities maintain TLS connections to
28322       every other relay.
28323     - Directory authorities now do an immediate reachability check as soon
28324       as they hear about a new relay. This change should slightly reduce
28325       the time between setting up a relay and getting listed as running
28326       in the consensus. It should also improve the time between setting
28327       up a bridge and seeing use by bridge users.
28328     - Directory authorities no longer launch a TLS connection to every
28329       relay as they startup. Now that we have 2k+ descriptors cached,
28330       the resulting network hiccup is becoming a burden. Besides,
28331       authorities already avoid voting about Running for the first half
28332       hour of their uptime.
28335 Changes in version 0.2.2.12-alpha - 2010-04-20
28336   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
28337   handle and vote on descriptors. It was causing relays to drop out of
28338   the consensus.
28340   o Major bugfixes:
28341     - Many relays have been falling out of the consensus lately because
28342       not enough authorities know about their descriptor for them to get
28343       a majority of votes. When we deprecated the v2 directory protocol,
28344       we got rid of the only way that v3 authorities can hear from each
28345       other about other descriptors. Now authorities examine every v3
28346       vote for new descriptors, and fetch them from that authority. Bugfix
28347       on 0.2.1.23.
28348     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
28349       and a warning in or.h related to bandwidth_weight_rule_t that
28350       prevented clean compile on OS X. Fixes bug 1363; bugfix on
28351       0.2.2.11-alpha.
28352     - Fix a segfault on relays when DirReqStatistics is enabled
28353       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
28354       0.2.2.11-alpha.
28356   o Minor bugfixes:
28357     - Demote a confusing TLS warning that relay operators might get when
28358       someone tries to talk to their OrPort. It is neither the operator's
28359       fault nor can they do anything about it. Fixes bug 1364; bugfix
28360       on 0.2.0.14-alpha.
28363 Changes in version 0.2.2.11-alpha - 2010-04-15
28364   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
28365   libraries that was causing some relays to drop out of the consensus.
28367   o Major bugfixes:
28368     - Directory mirrors were fetching relay descriptors only from v2
28369       directory authorities, rather than v3 authorities like they should.
28370       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
28371       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
28372     - Fix a parsing error that made every possible value of
28373       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
28374       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
28375       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
28376       about the option without breaking older ones.
28377     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
28378       that claim to be earlier than 0.9.8m, but which have in reality
28379       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
28380       behavior. Possible fix for some cases of bug 1346.
28382   o Minor features:
28383     - Experiment with a more aggressive approach to preventing clients
28384       from making one-hop exit streams. Exit relays who want to try it
28385       out can set "RefuseUnknownExits 1" in their torrc, and then look
28386       for "Attempt by %s to open a stream" log messages. Let us know
28387       how it goes!
28388     - Add support for statically linking zlib by specifying
28389       --enable-static-zlib, to go with our support for statically linking
28390       openssl and libevent. Resolves bug 1358.
28392   o Minor bugfixes:
28393     - Fix a segfault that happens whenever a Tor client that is using
28394       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
28395       fixes bug 1341.
28396     - When we cleaned up the contrib/tor-exit-notice.html file, we left
28397       out the first line. Fixes bug 1295.
28398     - When building the manpage from a tarball, we required asciidoc, but
28399       the asciidoc -> roff/html conversion was already done for the
28400       tarball. Make 'make' complain only when we need asciidoc (either
28401       because we're compiling directly from git, or because we altered
28402       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
28403     - When none of the directory authorities vote on any params, Tor
28404       segfaulted when trying to make the consensus from the votes. We
28405       didn't trigger the bug in practice, because authorities do include
28406       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
28408   o Testsuite fixes:
28409     - In the util/threads test, no longer free the test_mutex before all
28410       worker threads have finished. Bugfix on 0.2.1.6-alpha.
28411     - The master thread could starve the worker threads quite badly on
28412       certain systems, causing them to run only partially in the allowed
28413       window. This resulted in test failures. Now the master thread sleeps
28414       occasionally for a few microseconds while the two worker-threads
28415       compete for the mutex. Bugfix on 0.2.0.1-alpha.
28418 Changes in version 0.2.2.10-alpha - 2010-03-07
28419   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
28420   could prevent relays from guessing their IP address correctly. It also
28421   starts the groundwork for another client-side performance boost, since
28422   currently we're not making efficient use of relays that have both the
28423   Guard flag and the Exit flag.
28425   o Major bugfixes:
28426     - Fix a regression from our patch for bug 1244 that caused relays
28427       to guess their IP address incorrectly if they didn't set Address
28428       in their torrc and/or their address fails to resolve. Bugfix on
28429       0.2.2.9-alpha; fixes bug 1269.
28431   o Major features (performance):
28432     - Directory authorities now compute consensus weightings that instruct
28433       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
28434       and no flag. Clients that use these weightings will distribute
28435       network load more evenly across these different relay types. The
28436       weightings are in the consensus so we can change them globally in
28437       the future. Extra thanks to "outofwords" for finding some nasty
28438       security bugs in the first implementation of this feature.
28440   o Minor features (performance):
28441     - Always perform router selections using weighted relay bandwidth,
28442       even if we don't need a high capacity circuit at the time. Non-fast
28443       circuits now only differ from fast ones in that they can use relays
28444       not marked with the Fast flag. This "feature" could turn out to
28445       be a horrible bug; we should investigate more before it goes into
28446       a stable release.
28448   o Minor features:
28449     - Allow disabling building of the manpages. Skipping the manpage
28450       speeds up the build considerably.
28452   o Minor bugfixes (on 0.2.2.x):
28453     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
28454       Bugfix on 0.2.2.9-alpha.
28455     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
28456       config option. Bugfix on 0.2.2.7-alpha.
28457     - Ship the asciidoc-helper file in the tarball, so that people can
28458       build from source if they want to, and touching the .1.txt files
28459       doesn't break the build. Bugfix on 0.2.2.9-alpha.
28461   o Minor bugfixes (on 0.2.1.x or earlier):
28462     - Fix a dereference-then-NULL-check sequence when publishing
28463       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
28464       bug 1255.
28465     - Fix another dereference-then-NULL-check sequence. Bugfix on
28466       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
28467     - Make sure we treat potentially not NUL-terminated strings correctly.
28468       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
28470   o Code simplifications and refactoring:
28471     - Fix some urls in the exit notice file and make it XHTML1.1 strict
28472       compliant. Based on a patch from Christian Kujau.
28473     - Don't use sed in asciidoc-helper anymore.
28474     - Make the build process fail if asciidoc cannot be found and
28475       building with asciidoc isn't disabled.
28478 Changes in version 0.2.2.9-alpha - 2010-02-22
28479   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
28480   location of a directory authority, and cleans up a bunch of small bugs.
28482   o Directory authority changes:
28483     - Change IP address for dannenberg (v3 directory authority), and
28484       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
28485       service directory authority) from the list.
28487   o Major bugfixes:
28488     - Make Tor work again on the latest OS X: when deciding whether to
28489       use strange flags to turn TLS renegotiation on, detect the OpenSSL
28490       version at run-time, not compile time. We need to do this because
28491       Apple doesn't update its dev-tools headers when it updates its
28492       libraries in a security patch.
28493     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
28494       that could happen on 32-bit platforms with 64-bit time_t. Also fix
28495       a memory leak when requesting a hidden service descriptor we've
28496       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
28497       by aakova.
28498     - Authorities could be tricked into giving out the Exit flag to relays
28499       that didn't allow exiting to any ports. This bug could screw
28500       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
28501       1238. Bug discovered by Martin Kowalczyk.
28502     - When freeing a session key, zero it out completely. We only zeroed
28503       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
28504       patched by ekir. Fixes bug 1254.
28506   o Minor bugfixes:
28507     - Fix static compilation by listing the openssl libraries in the right
28508       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
28509     - Resume handling .exit hostnames in a special way: originally we
28510       stripped the .exit part and used the requested exit relay. In
28511       0.2.2.1-alpha we stopped treating them in any special way, meaning
28512       if you use a .exit address then Tor will pass it on to the exit
28513       relay. Now we reject the .exit stream outright, since that behavior
28514       might be more expected by the user. Found and diagnosed by Scott
28515       Bennett and Downie on or-talk.
28516     - Don't spam the controller with events when we have no file
28517       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
28518       for log messages was already solved from bug 748.)
28519     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
28520       "memcpyfail".
28521     - Make the DNSPort option work with libevent 2.x. Don't alter the
28522       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
28523     - Emit a GUARD DROPPED controller event for a case we missed.
28524     - Make more fields in the controller protocol case-insensitive, since
28525       control-spec.txt said they were.
28526     - Refactor resolve_my_address() to not use gethostbyname() anymore.
28527       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
28528     - Fix a spec conformance issue: the network-status-version token
28529       must be the first token in a v3 consensus or vote. Discovered by
28530       parakeep. Bugfix on 0.2.0.3-alpha.
28532   o Code simplifications and refactoring:
28533     - Generate our manpage and HTML documentation using Asciidoc. This
28534       change should make it easier to maintain the documentation, and
28535       produce nicer HTML.
28536     - Remove the --enable-iphone option. According to reports from Marco
28537       Bonetti, Tor builds fine without any special tweaking on recent
28538       iPhone SDK versions.
28539     - Removed some unnecessary files from the source distribution. The
28540       AUTHORS file has now been merged into the people page on the
28541       website. The roadmaps and design doc can now be found in the
28542       projects directory in svn.
28543     - Enabled various circuit build timeout constants to be controlled
28544       by consensus parameters. Also set better defaults for these
28545       parameters based on experimentation on broadband and simulated
28546       high latency links.
28548   o Minor features:
28549     - The 'EXTENDCIRCUIT' control port command can now be used with
28550       a circ id of 0 and no path. This feature will cause Tor to build
28551       a new 'fast' general purpose circuit using its own path selection
28552       algorithms.
28553     - Added a BUILDTIMEOUT_SET controller event to describe changes
28554       to the circuit build timeout.
28555     - Future-proof the controller protocol a bit by ignoring keyword
28556       arguments we do not recognize.
28557     - Expand homedirs passed to tor-checkkey. This should silence a
28558       coverity complaint about passing a user-supplied string into
28559       open() without checking it.
28562 Changes in version 0.2.1.25 - 2010-03-16
28563   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
28564   prevent relays from guessing their IP address correctly. It also fixes
28565   several minor potential security bugs.
28567   o Major bugfixes:
28568     - Fix a regression from our patch for bug 1244 that caused relays
28569       to guess their IP address incorrectly if they didn't set Address
28570       in their torrc and/or their address fails to resolve. Bugfix on
28571       0.2.1.23; fixes bug 1269.
28572     - When freeing a session key, zero it out completely. We only zeroed
28573       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
28574       patched by ekir. Fixes bug 1254.
28576   o Minor bugfixes:
28577     - Fix a dereference-then-NULL-check sequence when publishing
28578       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
28579       bug 1255.
28580     - Fix another dereference-then-NULL-check sequence. Bugfix on
28581       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
28582     - Make sure we treat potentially not NUL-terminated strings correctly.
28583       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
28587 Changes in version 0.2.1.24 - 2010-02-21
28588   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
28589   for sure!
28591   o Minor bugfixes:
28592     - Work correctly out-of-the-box with even more vendor-patched versions
28593       of OpenSSL. In particular, make it so Debian and OS X don't need
28594       customized patches to run/build.
28597 Changes in version 0.2.1.23 - 2010-02-13
28598   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
28599   again on the latest OS X, and updates the location of a directory
28600   authority.
28602   o Major bugfixes (performance):
28603     - We were selecting our guards uniformly at random, and then weighting
28604       which of our guards we'd use uniformly at random. This imbalance
28605       meant that Tor clients were severely limited on throughput (and
28606       probably latency too) by the first hop in their circuit. Now we
28607       select guards weighted by currently advertised bandwidth. We also
28608       automatically discard guards picked using the old algorithm. Fixes
28609       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
28611   o Major bugfixes:
28612     - Make Tor work again on the latest OS X: when deciding whether to
28613       use strange flags to turn TLS renegotiation on, detect the OpenSSL
28614       version at run-time, not compile time. We need to do this because
28615       Apple doesn't update its dev-tools headers when it updates its
28616       libraries in a security patch.
28617     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
28618       that could happen on 32-bit platforms with 64-bit time_t. Also fix
28619       a memory leak when requesting a hidden service descriptor we've
28620       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
28621       by aakova.
28623   o Directory authority changes:
28624     - Change IP address for dannenberg (v3 directory authority), and
28625       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
28626       service directory authority) from the list.
28628   o Minor bugfixes:
28629     - Refactor resolve_my_address() to not use gethostbyname() anymore.
28630       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
28632   o Minor features:
28633     - Avoid a mad rush at the beginning of each month when each client
28634       rotates half of its guards. Instead we spread the rotation out
28635       throughout the month, but we still avoid leaving a precise timestamp
28636       in the state file about when we first picked the guard. Improves
28637       over the behavior introduced in 0.1.2.17.
28640 Changes in version 0.2.2.8-alpha - 2010-01-26
28641   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
28642   causing bridge relays to disappear. If you're running a bridge,
28643   please upgrade.
28645   o Major bugfixes:
28646     - Fix a memory corruption bug on bridges that occurred during the
28647       inclusion of stats data in extra-info descriptors. Also fix the
28648       interface for geoip_get_bridge_stats* to prevent similar bugs in
28649       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
28650       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
28652   o Minor bugfixes:
28653     - Ignore OutboundBindAddress when connecting to localhost.
28654       Connections to localhost need to come _from_ localhost, or else
28655       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
28656       refuse to listen.
28659 Changes in version 0.2.2.7-alpha - 2010-01-19
28660   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
28661   as laying the groundwork for further relay-side performance fixes. It
28662   also starts cleaning up client behavior with respect to the EntryNodes,
28663   ExitNodes, and StrictNodes config options.
28665   This release also rotates two directory authority keys, due to a
28666   security breach of some of the Torproject servers.
28668   o Directory authority changes:
28669     - Rotate keys (both v3 identity and relay identity) for moria1
28670       and gabelmoo.
28672   o Major features (performance):
28673     - We were selecting our guards uniformly at random, and then weighting
28674       which of our guards we'd use uniformly at random. This imbalance
28675       meant that Tor clients were severely limited on throughput (and
28676       probably latency too) by the first hop in their circuit. Now we
28677       select guards weighted by currently advertised bandwidth. We also
28678       automatically discard guards picked using the old algorithm. Fixes
28679       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
28680     - When choosing which cells to relay first, relays can now favor
28681       circuits that have been quiet recently, to provide lower latency
28682       for low-volume circuits. By default, relays enable or disable this
28683       feature based on a setting in the consensus. You can override
28684       this default by using the new "CircuitPriorityHalflife" config
28685       option. Design and code by Ian Goldberg, Can Tang, and Chris
28686       Alexander.
28687     - Add separate per-conn write limiting to go with the per-conn read
28688       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
28689       but never per-conn write limits.
28690     - New consensus params "bwconnrate" and "bwconnburst" to let us
28691       rate-limit client connections as they enter the network. It's
28692       controlled in the consensus so we can turn it on and off for
28693       experiments. It's starting out off. Based on proposal 163.
28695   o Major features (relay selection options):
28696     - Switch to a StrictNodes config option, rather than the previous
28697       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
28698       "StrictExcludeNodes" option.
28699     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
28700       change during a config reload, mark and discard all our origin
28701       circuits. This fix should address edge cases where we change the
28702       config options and but then choose a circuit that we created before
28703       the change.
28704     - If EntryNodes or ExitNodes are set, be more willing to use an
28705       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
28706       they get it.
28707     - Make EntryNodes config option much more aggressive even when
28708       StrictNodes is not set. Before it would prepend your requested
28709       entrynodes to your list of guard nodes, but feel free to use others
28710       after that. Now it chooses only from your EntryNodes if any of
28711       those are available, and only falls back to others if a) they're
28712       all down and b) StrictNodes is not set.
28713     - Now we refresh your entry guards from EntryNodes at each consensus
28714       fetch -- rather than just at startup and then they slowly rot as
28715       the network changes.
28717   o Major bugfixes:
28718     - Stop bridge directory authorities from answering dbg-stability.txt
28719       directory queries, which would let people fetch a list of all
28720       bridge identities they track. Bugfix on 0.2.1.6-alpha.
28722   o Minor features:
28723     - Log a notice when we get a new control connection. Now it's easier
28724       for security-conscious users to recognize when a local application
28725       is knocking on their controller door. Suggested by bug 1196.
28726     - New config option "CircuitStreamTimeout" to override our internal
28727       timeout schedule for how many seconds until we detach a stream from
28728       a circuit and try a new circuit. If your network is particularly
28729       slow, you might want to set this to a number like 60.
28730     - New controller command "getinfo config-text". It returns the
28731       contents that Tor would write if you send it a SAVECONF command,
28732       so the controller can write the file to disk itself.
28733     - New options for SafeLogging to allow scrubbing only log messages
28734       generated while acting as a relay.
28735     - Ship the bridges spec file in the tarball too.
28736     - Avoid a mad rush at the beginning of each month when each client
28737       rotates half of its guards. Instead we spread the rotation out
28738       throughout the month, but we still avoid leaving a precise timestamp
28739       in the state file about when we first picked the guard. Improves
28740       over the behavior introduced in 0.1.2.17.
28742   o Minor bugfixes (compiling):
28743     - Fix compilation on OS X 10.3, which has a stub mlockall() but
28744       hides it. Bugfix on 0.2.2.6-alpha.
28745     - Fix compilation on Solaris by removing support for the
28746       DisableAllSwap config option. Solaris doesn't have an rlimit for
28747       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
28748       0.2.2.6-alpha.
28750   o Minor bugfixes (crashes):
28751     - Do not segfault when writing buffer stats when we haven't observed
28752       a single circuit to report about. Found by Fabian Lanze. Bugfix on
28753       0.2.2.1-alpha.
28754     - If we're in the pathological case where there's no exit bandwidth
28755       but there is non-exit bandwidth, or no guard bandwidth but there
28756       is non-guard bandwidth, don't crash during path selection. Bugfix
28757       on 0.2.0.3-alpha.
28758     - Fix an impossible-to-actually-trigger buffer overflow in relay
28759       descriptor generation. Bugfix on 0.1.0.15.
28761   o Minor bugfixes (privacy):
28762     - Fix an instance where a Tor directory mirror might accidentally
28763       log the IP address of a misbehaving Tor client. Bugfix on
28764       0.1.0.1-rc.
28765     - Don't list Windows capabilities in relay descriptors. We never made
28766       use of them, and maybe it's a bad idea to publish them. Bugfix
28767       on 0.1.1.8-alpha.
28769   o Minor bugfixes (other):
28770     - Resolve an edge case in path weighting that could make us misweight
28771       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
28772     - Fix statistics on client numbers by country as seen by bridges that
28773       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
28774       intervals instead of variable 12-to-48-hour intervals.
28775     - After we free an internal connection structure, overwrite it
28776       with a different memory value than we use for overwriting a freed
28777       internal circuit structure. Should help with debugging. Suggested
28778       by bug 1055.
28779     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
28780       too.
28782   o Removed features:
28783     - Remove the HSAuthorityRecordStats option that version 0 hidden
28784       service authorities could have used to track statistics of overall
28785       hidden service usage.
28788 Changes in version 0.2.1.22 - 2010-01-19
28789   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
28790   authorities -- it would tell you its whole history of bridge descriptors
28791   if you make the right directory request. This stable update also
28792   rotates two of the seven v3 directory authority keys and locations.
28794   o Directory authority changes:
28795     - Rotate keys (both v3 identity and relay identity) for moria1
28796       and gabelmoo.
28798   o Major bugfixes:
28799     - Stop bridge directory authorities from answering dbg-stability.txt
28800       directory queries, which would let people fetch a list of all
28801       bridge identities they track. Bugfix on 0.2.1.6-alpha.
28804 Changes in version 0.2.1.21 - 2009-12-21
28805   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
28806   library. If you use Tor on Linux / Unix and you're getting SSL
28807   renegotiation errors, upgrading should help. We also recommend an
28808   upgrade if you're an exit relay.
28810   o Major bugfixes:
28811     - Work around a security feature in OpenSSL 0.9.8l that prevents our
28812       handshake from working unless we explicitly tell OpenSSL that we
28813       are using SSL renegotiation safely. We are, of course, but OpenSSL
28814       0.9.8l won't work unless we say we are.
28815     - Avoid crashing if the client is trying to upload many bytes and the
28816       circuit gets torn down at the same time, or if the flip side
28817       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
28819   o Minor bugfixes:
28820     - Do not refuse to learn about authority certs and v2 networkstatus
28821       documents that are older than the latest consensus. This bug might
28822       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
28823       Spotted and fixed by xmux.
28824     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
28825       trigger platform-specific option misparsing case found by Coverity
28826       Scan.
28827     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
28828       trigger assert. Fixes bug 1173.
28831 Changes in version 0.2.2.6-alpha - 2009-11-19
28832   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
28833   support for the new lower-footprint "microdescriptor" directory design,
28834   future-proofing our consensus format against new hash functions or
28835   other changes, and an Android port. It also makes Tor compatible with
28836   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
28838   o Major features:
28839     - Directory authorities can now create, vote on, and serve multiple
28840       parallel formats of directory data as part of their voting process.
28841       Partially implements Proposal 162: "Publish the consensus in
28842       multiple flavors".
28843     - Directory authorities can now agree on and publish small summaries
28844       of router information that clients can use in place of regular
28845       server descriptors. This transition will eventually allow clients
28846       to use far less bandwidth for downloading information about the
28847       network. Begins the implementation of Proposal 158: "Clients
28848       download consensus + microdescriptors".
28849     - The directory voting system is now extensible to use multiple hash
28850       algorithms for signatures and resource selection. Newer formats
28851       are signed with SHA256, with a possibility for moving to a better
28852       hash algorithm in the future.
28853     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
28854       current and future memory pages via mlockall(). On supported
28855       platforms (modern Linux and probably BSD but not Windows or OS X),
28856       this should effectively disable any and all attempts to page out
28857       memory. This option requires that you start your Tor as root --
28858       if you use DisableAllSwap, please consider using the User option
28859       to properly reduce the privileges of your Tor.
28860     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
28861       to help Tor build correctly for Android phones.
28863   o Major bugfixes:
28864     - Work around a security feature in OpenSSL 0.9.8l that prevents our
28865       handshake from working unless we explicitly tell OpenSSL that we
28866       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
28867       won't work unless we say we are.
28869   o Minor bugfixes:
28870     - Fix a crash bug when trying to initialize the evdns module in
28871       Libevent 2. Bugfix on 0.2.1.16-rc.
28872     - Stop logging at severity 'warn' when some other Tor client tries
28873       to establish a circuit with us using weak DH keys. It's a protocol
28874       violation, but that doesn't mean ordinary users need to hear about
28875       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
28876     - Do not refuse to learn about authority certs and v2 networkstatus
28877       documents that are older than the latest consensus. This bug might
28878       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
28879       Spotted and fixed by xmux.
28880     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
28881     - If all authorities restart at once right before a consensus vote,
28882       nobody will vote about "Running", and clients will get a consensus
28883       with no usable relays. Instead, authorities refuse to build a
28884       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
28885     - If your relay can't keep up with the number of incoming create
28886       cells, it would log one warning per failure into your logs. Limit
28887       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
28888     - Bridges now use "reject *:*" as their default exit policy. Bugfix
28889       on 0.2.0.3-alpha; fixes bug 1113.
28890     - Fix a memory leak on directory authorities during voting that was
28891       introduced in 0.2.2.1-alpha. Found via valgrind.
28894 Changes in version 0.2.1.20 - 2009-10-15
28895   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
28896   services at once, prepares for more performance improvements, and
28897   fixes a bunch of smaller bugs.
28899   The Windows and OS X bundles also include a more recent Vidalia,
28900   and switch from Privoxy to Polipo.
28902   The OS X installers are now drag and drop. It's best to un-install
28903   Tor/Vidalia and then install this new bundle, rather than upgrade. If
28904   you want to upgrade, you'll need to update the paths for Tor and Polipo
28905   in the Vidalia Settings window.
28907   o Major bugfixes:
28908     - Send circuit or stream sendme cells when our window has decreased
28909       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
28910       by Karsten when testing the "reduce circuit window" performance
28911       patch. Bugfix on the 54th commit on Tor -- from July 2002,
28912       before the release of Tor 0.0.0. This is the new winner of the
28913       oldest-bug prize.
28914     - Fix a remotely triggerable memory leak when a consensus document
28915       contains more than one signature from the same voter. Bugfix on
28916       0.2.0.3-alpha.
28917     - Avoid segfault in rare cases when finishing an introduction circuit
28918       as a client and finding out that we don't have an introduction key
28919       for it. Fixes bug 1073. Reported by Aaron Swartz.
28921   o Major features:
28922     - Tor now reads the "circwindow" parameter out of the consensus,
28923       and uses that value for its circuit package window rather than the
28924       default of 1000 cells. Begins the implementation of proposal 168.
28926   o New directory authorities:
28927     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
28928       authority.
28929     - Move moria1 and tonga to alternate IP addresses.
28931   o Minor bugfixes:
28932     - Fix a signed/unsigned compile warning in 0.2.1.19.
28933     - Fix possible segmentation fault on directory authorities. Bugfix on
28934       0.2.1.14-rc.
28935     - Fix an extremely rare infinite recursion bug that could occur if
28936       we tried to log a message after shutting down the log subsystem.
28937       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
28938     - Fix an obscure bug where hidden services on 64-bit big-endian
28939       systems might mis-read the timestamp in v3 introduce cells, and
28940       refuse to connect back to the client. Discovered by "rotor".
28941       Bugfix on 0.2.1.6-alpha.
28942     - We were triggering a CLOCK_SKEW controller status event whenever
28943       we connect via the v2 connection protocol to any relay that has
28944       a wrong clock. Instead, we should only inform the controller when
28945       it's a trusted authority that claims our clock is wrong. Bugfix
28946       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
28947     - We were telling the controller about CHECKING_REACHABILITY and
28948       REACHABILITY_FAILED status events whenever we launch a testing
28949       circuit or notice that one has failed. Instead, only tell the
28950       controller when we want to inform the user of overall success or
28951       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
28952       by SwissTorExit.
28953     - Don't warn when we're using a circuit that ends with a node
28954       excluded in ExcludeExitNodes, but the circuit is not used to access
28955       the outside world. This should help fix bug 1090. Bugfix on
28956       0.2.1.6-alpha.
28957     - Work around a small memory leak in some versions of OpenSSL that
28958       stopped the memory used by the hostname TLS extension from being
28959       freed.
28961   o Minor features:
28962     - Add a "getinfo status/accepted-server-descriptor" controller
28963       command, which is the recommended way for controllers to learn
28964       whether our server descriptor has been successfully received by at
28965       least on directory authority. Un-recommend good-server-descriptor
28966       getinfo and status events until we have a better design for them.
28969 Changes in version 0.2.2.5-alpha - 2009-10-11
28970   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
28972   o Major bugfixes:
28973     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
28975   o Directory authorities:
28976     - Temporarily (just for this release) move dizum to an alternate
28977       IP address.
28980 Changes in version 0.2.2.4-alpha - 2009-10-10
28981   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
28982   introduces a new unit test framework, shifts directry authority
28983   addresses around to reduce the impact from recent blocking events,
28984   and fixes a few smaller bugs.
28986   o Major bugfixes:
28987     - Fix several more asserts in the circuit_build_times code, for
28988       example one that causes Tor to fail to start once we have
28989       accumulated 5000 build times in the state file. Bugfixes on
28990       0.2.2.2-alpha; fixes bug 1108.
28992   o New directory authorities:
28993     - Move moria1 and Tonga to alternate IP addresses.
28995   o Minor features:
28996     - Log SSL state transitions at debug level during handshake, and
28997       include SSL states in error messages. This may help debug future
28998       SSL handshake issues.
28999     - Add a new "Handshake" log domain for activities that happen
29000       during the TLS handshake.
29001     - Revert to the "June 3 2009" ip-to-country file. The September one
29002       seems to have removed most US IP addresses.
29003     - Directory authorities now reject Tor relays with versions less than
29004       0.1.2.14. This step cuts out four relays from the current network,
29005       none of which are very big.
29007   o Minor bugfixes:
29008     - Fix a couple of smaller issues with gathering statistics. Bugfixes
29009       on 0.2.2.1-alpha.
29010     - Fix two memory leaks in the error case of
29011       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
29012     - Don't count one-hop circuits when we're estimating how long it
29013       takes circuits to build on average. Otherwise we'll set our circuit
29014       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
29015     - Directory authorities no longer change their opinion of, or vote on,
29016       whether a router is Running, unless they have themselves been
29017       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
29018       Fixes bug 1023.
29020   o Code simplifications and refactoring:
29021     - Revise our unit tests to use the "tinytest" framework, so we
29022       can run tests in their own processes, have smarter setup/teardown
29023       code, and so on. The unit test code has moved to its own
29024       subdirectory, and has been split into multiple modules.
29027 Changes in version 0.2.2.3-alpha - 2009-09-23
29028   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
29030   o Major bugfixes:
29031     - Fix an overzealous assert in our new circuit build timeout code.
29032       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
29034   o Minor bugfixes:
29035     - If the networkstatus consensus tells us that we should use a
29036       negative circuit package window, ignore it. Otherwise we'll
29037       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
29040 Changes in version 0.2.2.2-alpha - 2009-09-21
29041   Tor 0.2.2.2-alpha introduces our latest performance improvement for
29042   clients: Tor tracks the average time it takes to build a circuit, and
29043   avoids using circuits that take too long to build. For fast connections,
29044   this feature can cut your expected latency in half. For slow or flaky
29045   connections, it could ruin your Tor experience. Let us know if it does!
29047   o Major features:
29048     - Tor now tracks how long it takes to build client-side circuits
29049       over time, and adapts its timeout to local network performance.
29050       Since a circuit that takes a long time to build will also provide
29051       bad performance, we get significant latency improvements by
29052       discarding the slowest 20% of circuits. Specifically, Tor creates
29053       circuits more aggressively than usual until it has enough data
29054       points for a good timeout estimate. Implements proposal 151.
29055       We are especially looking for reports (good and bad) from users with
29056       both EDGE and broadband connections that can move from broadband
29057       to EDGE and find out if the build-time data in the .tor/state gets
29058       reset without loss of Tor usability. You should also see a notice
29059       log message telling you that Tor has reset its timeout.
29060     - Directory authorities can now vote on arbitrary integer values as
29061       part of the consensus process. This is designed to help set
29062       network-wide parameters. Implements proposal 167.
29063     - Tor now reads the "circwindow" parameter out of the consensus,
29064       and uses that value for its circuit package window rather than the
29065       default of 1000 cells. Begins the implementation of proposal 168.
29067   o Major bugfixes:
29068     - Fix a remotely triggerable memory leak when a consensus document
29069       contains more than one signature from the same voter. Bugfix on
29070       0.2.0.3-alpha.
29072   o Minor bugfixes:
29073     - Fix an extremely rare infinite recursion bug that could occur if
29074       we tried to log a message after shutting down the log subsystem.
29075       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
29076     - Fix parsing for memory or time units given without a space between
29077       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
29078     - A networkstatus vote must contain exactly one signature. Spec
29079       conformance issue. Bugfix on 0.2.0.3-alpha.
29080     - Fix an obscure bug where hidden services on 64-bit big-endian
29081       systems might mis-read the timestamp in v3 introduce cells, and
29082       refuse to connect back to the client. Discovered by "rotor".
29083       Bugfix on 0.2.1.6-alpha.
29084     - We were triggering a CLOCK_SKEW controller status event whenever
29085       we connect via the v2 connection protocol to any relay that has
29086       a wrong clock. Instead, we should only inform the controller when
29087       it's a trusted authority that claims our clock is wrong. Bugfix
29088       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
29089     - We were telling the controller about CHECKING_REACHABILITY and
29090       REACHABILITY_FAILED status events whenever we launch a testing
29091       circuit or notice that one has failed. Instead, only tell the
29092       controller when we want to inform the user of overall success or
29093       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
29094       by SwissTorExit.
29095     - Don't warn when we're using a circuit that ends with a node
29096       excluded in ExcludeExitNodes, but the circuit is not used to access
29097       the outside world. This should help fix bug 1090, but more problems
29098       remain. Bugfix on 0.2.1.6-alpha.
29099     - Work around a small memory leak in some versions of OpenSSL that
29100       stopped the memory used by the hostname TLS extension from being
29101       freed.
29102     - Make our 'torify' script more portable; if we have only one of
29103       'torsocks' or 'tsocks' installed, don't complain to the user;
29104       and explain our warning about tsocks better.
29106   o Minor features:
29107     - Add a "getinfo status/accepted-server-descriptor" controller
29108       command, which is the recommended way for controllers to learn
29109       whether our server descriptor has been successfully received by at
29110       least on directory authority. Un-recommend good-server-descriptor
29111       getinfo and status events until we have a better design for them.
29112     - Update to the "September 4 2009" ip-to-country file.
29115 Changes in version 0.2.2.1-alpha - 2009-08-26
29116   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
29117   Tor clients to bootstrap on networks where only port 80 is reachable,
29118   makes it more straightforward to support hardware crypto accelerators,
29119   and starts the groundwork for gathering stats safely at relays.
29121   o Security fixes:
29122     - Start the process of disabling ".exit" address notation, since it
29123       can be used for a variety of esoteric application-level attacks
29124       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
29125       on 0.0.9rc5.
29127   o New directory authorities:
29128     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
29129       authority.
29131   o Major features:
29132     - New AccelName and AccelDir options add support for dynamic OpenSSL
29133       hardware crypto acceleration engines.
29134     - Tor now supports tunneling all of its outgoing connections over
29135       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
29136       configuration options. Code by Christopher Davis.
29138   o Major bugfixes:
29139     - Send circuit or stream sendme cells when our window has decreased
29140       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
29141       by Karsten when testing the "reduce circuit window" performance
29142       patch. Bugfix on the 54th commit on Tor -- from July 2002,
29143       before the release of Tor 0.0.0. This is the new winner of the
29144       oldest-bug prize.
29146   o New options for gathering stats safely:
29147     - Directory mirrors that set "DirReqStatistics 1" write statistics
29148       about directory requests to disk every 24 hours. As compared to the
29149       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
29150       1) stats are written to disk exactly every 24 hours; 2) estimated
29151       shares of v2 and v3 requests are determined as mean values, not at
29152       the end of a measurement period; 3) unresolved requests are listed
29153       with country code '??'; 4) directories also measure download times.
29154     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
29155       number of exit streams and transferred bytes per port to disk every
29156       24 hours.
29157     - Relays that set "CellStatistics 1" write statistics on how long
29158       cells spend in their circuit queues to disk every 24 hours.
29159     - Entry nodes that set "EntryStatistics 1" write statistics on the
29160       rough number and origins of connecting clients to disk every 24
29161       hours.
29162     - Relays that write any of the above statistics to disk and set
29163       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
29164       their extra-info documents.
29166   o Minor features:
29167     - New --digests command-line switch to output the digests of the
29168       source files Tor was built with.
29169     - The "torify" script now uses torsocks where available.
29170     - The memarea code now uses a sentinel value at the end of each area
29171       to make sure nothing writes beyond the end of an area. This might
29172       help debug some conceivable causes of bug 930.
29173     - Time and memory units in the configuration file can now be set to
29174       fractional units. For example, "2.5 GB" is now a valid value for
29175       AccountingMax.
29176     - Certain Tor clients (such as those behind check.torproject.org) may
29177       want to fetch the consensus in an extra early manner. To enable this
29178       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
29179       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
29180       as only certain clients who must have this information sooner should
29181       set this option.
29182     - Instead of adding the svn revision to the Tor version string, report
29183       the git commit (when we're building from a git checkout).
29185   o Minor bugfixes:
29186     - If any of the v3 certs we download are unparseable, we should
29187       actually notice the failure so we don't retry indefinitely. Bugfix
29188       on 0.2.0.x; reported by "rotator".
29189     - If the cached cert file is unparseable, warn but don't exit.
29190     - Fix possible segmentation fault on directory authorities. Bugfix on
29191       0.2.1.14-rc.
29192     - When Tor fails to parse a descriptor of any kind, dump it to disk.
29193       Might help diagnosing bug 1051.
29195   o Deprecated and removed features:
29196     - The controller no longer accepts the old obsolete "addr-mappings/"
29197       or "unregistered-servers-" GETINFO values.
29198     - Hidden services no longer publish version 0 descriptors, and clients
29199       do not request or use version 0 descriptors. However, the old hidden
29200       service authorities still accept and serve version 0 descriptors
29201       when contacted by older hidden services/clients.
29202     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
29203       always on; using them is necessary for correct forward-compatible
29204       controllers.
29205     - Remove support for .noconnect style addresses. Nobody was using
29206       them, and they provided another avenue for detecting Tor users
29207       via application-level web tricks.
29209   o Packaging changes:
29210     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
29211       installer bundles. See
29212       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
29213       for details of what's new in Vidalia 0.2.3.
29214     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
29215     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
29216       configuration file, rather than the old Privoxy.
29217     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
29218       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
29219     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
29220       better compatibility with OS X 10.6, aka Snow Leopard.
29221     - OS X Vidalia Bundle: The multi-package installer is now replaced
29222       by a simple drag and drop to the /Applications folder. This change
29223       occurred with the upgrade to Vidalia 0.2.3.
29226 Changes in version 0.2.1.19 - 2009-07-28
29227   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
29228   services on Tor 0.2.1.3-alpha through 0.2.1.18.
29230   o Major bugfixes:
29231     - Make accessing hidden services on 0.2.1.x work right again.
29232       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
29233       part of patch provided by "optimist".
29235   o Minor features:
29236     - When a relay/bridge is writing out its identity key fingerprint to
29237       the "fingerprint" file and to its logs, write it without spaces. Now
29238       it will look like the fingerprints in our bridges documentation,
29239       and confuse fewer users.
29241   o Minor bugfixes:
29242     - Relays no longer publish a new server descriptor if they change
29243       their MaxAdvertisedBandwidth config option but it doesn't end up
29244       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
29245       fixes bug 1026. Patch from Sebastian.
29246     - Avoid leaking memory every time we get a create cell but we have
29247       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
29248       fixes bug 1034. Reported by BarkerJr.
29251 Changes in version 0.2.1.18 - 2009-07-24
29252   Tor 0.2.1.18 lays the foundations for performance improvements,
29253   adds status events to help users diagnose bootstrap problems, adds
29254   optional authentication/authorization for hidden services, fixes a
29255   variety of potential anonymity problems, and includes a huge pile of
29256   other features and bug fixes.
29258   o Build fixes:
29259     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
29262 Changes in version 0.2.1.17-rc - 2009-07-07
29263   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
29264   candidate for the 0.2.1.x series. It lays the groundwork for further
29265   client performance improvements, and also fixes a big bug with directory
29266   authorities that were causing them to assign Guard and Stable flags
29267   poorly.
29269   The Windows bundles also finally include the geoip database that we
29270   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
29271   should actually install Torbutton rather than giving you a cryptic
29272   failure message (oops).
29274   o Major features:
29275     - Clients now use the bandwidth values in the consensus, rather than
29276       the bandwidth values in each relay descriptor. This approach opens
29277       the door to more accurate bandwidth estimates once the directory
29278       authorities start doing active measurements. Implements more of
29279       proposal 141.
29281   o Major bugfixes:
29282     - When Tor clients restart after 1-5 days, they discard all their
29283       cached descriptors as too old, but they still use the cached
29284       consensus document. This approach is good for robustness, but
29285       bad for performance: since they don't know any bandwidths, they
29286       end up choosing at random rather than weighting their choice by
29287       speed. Fixed by the above feature of putting bandwidths in the
29288       consensus. Bugfix on 0.2.0.x.
29289     - Directory authorities were neglecting to mark relays down in their
29290       internal histories if the relays fall off the routerlist without
29291       ever being found unreachable. So there were relays in the histories
29292       that haven't been seen for eight months, and are listed as being
29293       up for eight months. This wreaked havoc on the "median wfu"
29294       and "median mtbf" calculations, in turn making Guard and Stable
29295       flags very wrong, hurting network performance. Fixes bugs 696 and
29296       969. Bugfix on 0.2.0.6-alpha.
29298   o Minor bugfixes:
29299     - Serve the DirPortFrontPage page even when we have been approaching
29300       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
29301     - The control port would close the connection before flushing long
29302       replies, such as the network consensus, if a QUIT command was issued
29303       before the reply had completed. Now, the control port flushes all
29304       pending replies before closing the connection. Also fixed a spurious
29305       warning when a QUIT command is issued after a malformed or rejected
29306       AUTHENTICATE command, but before the connection was closed. Patch
29307       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
29308     - When we can't find an intro key for a v2 hidden service descriptor,
29309       fall back to the v0 hidden service descriptor and log a bug message.
29310       Workaround for bug 1024.
29311     - Fix a log message that did not respect the SafeLogging option.
29312       Resolves bug 1027.
29314   o Minor features:
29315     - If we're a relay and we change our IP address, be more verbose
29316       about the reason that made us change. Should help track down
29317       further bugs for relays on dynamic IP addresses.
29320 Changes in version 0.2.0.35 - 2009-06-24
29321   o Security fix:
29322     - Avoid crashing in the presence of certain malformed descriptors.
29323       Found by lark, and by automated fuzzing.
29324     - Fix an edge case where a malicious exit relay could convince a
29325       controller that the client's DNS question resolves to an internal IP
29326       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
29328   o Major bugfixes:
29329     - Finally fix the bug where dynamic-IP relays disappear when their
29330       IP address changes: directory mirrors were mistakenly telling
29331       them their old address if they asked via begin_dir, so they
29332       never got an accurate answer about their new address, so they
29333       just vanished after a day. For belt-and-suspenders, relays that
29334       don't set Address in their config now avoid using begin_dir for
29335       all direct connections. Should fix bugs 827, 883, and 900.
29336     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
29337       that would occur on some exit nodes when DNS failures and timeouts
29338       occurred in certain patterns. Fix for bug 957.
29340   o Minor bugfixes:
29341     - When starting with a cache over a few days old, do not leak
29342       memory for the obsolete router descriptors in it. Bugfix on
29343       0.2.0.33; fixes bug 672.
29344     - Hidden service clients didn't use a cached service descriptor that
29345       was older than 15 minutes, but wouldn't fetch a new one either,
29346       because there was already one in the cache. Now, fetch a v2
29347       descriptor unless the same descriptor was added to the cache within
29348       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
29351 Changes in version 0.2.1.16-rc - 2009-06-20
29352   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
29353   a bunch of minor bugs.
29355   o Security fixes:
29356     - Fix an edge case where a malicious exit relay could convince a
29357       controller that the client's DNS question resolves to an internal IP
29358       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
29360   o Major performance improvements (on 0.2.0.x):
29361     - Disable and refactor some debugging checks that forced a linear scan
29362       over the whole server-side DNS cache. These accounted for over 50%
29363       of CPU time on a relatively busy exit node's gprof profile. Found
29364       by Jacob.
29365     - Disable some debugging checks that appeared in exit node profile
29366       data.
29368   o Minor features:
29369     - Update to the "June 3 2009" ip-to-country file.
29370     - Do not have tor-resolve automatically refuse all .onion addresses;
29371       if AutomapHostsOnResolve is set in your torrc, this will work fine.
29373   o Minor bugfixes (on 0.2.0.x):
29374     - Log correct error messages for DNS-related network errors on
29375       Windows.
29376     - Fix a race condition that could cause crashes or memory corruption
29377       when running as a server with a controller listening for log
29378       messages.
29379     - Avoid crashing when we have a policy specified in a DirPolicy or
29380       SocksPolicy or ReachableAddresses option with ports set on it,
29381       and we re-load the policy. May fix bug 996.
29382     - Hidden service clients didn't use a cached service descriptor that
29383       was older than 15 minutes, but wouldn't fetch a new one either,
29384       because there was already one in the cache. Now, fetch a v2
29385       descriptor unless the same descriptor was added to the cache within
29386       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
29388   o Minor bugfixes (on 0.2.1.x):
29389     - Don't warn users about low port and hibernation mix when they
29390       provide a *ListenAddress directive to fix that. Bugfix on
29391       0.2.1.15-rc.
29392     - When switching back and forth between bridge mode, do not start
29393       gathering GeoIP data until two hours have passed.
29394     - Do not complain that the user has requested an excluded node as
29395       an exit when the node is not really an exit. This could happen
29396       because the circuit was for testing, or an introduction point.
29397       Fix for bug 984.
29400 Changes in version 0.2.1.15-rc - 2009-05-25
29401   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
29402   series. It fixes a major bug on fast exit relays, as well as a variety
29403   of more minor bugs.
29405   o Major bugfixes (on 0.2.0.x):
29406     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
29407       that would occur on some exit nodes when DNS failures and timeouts
29408       occurred in certain patterns. Fix for bug 957.
29410   o Minor bugfixes (on 0.2.0.x):
29411     - Actually return -1 in the error case for read_bandwidth_usage().
29412       Harmless bug, since we currently don't care about the return value
29413       anywhere. Bugfix on 0.2.0.9-alpha.
29414     - Provide a more useful log message if bug 977 (related to buffer
29415       freelists) ever reappears, and do not crash right away.
29416     - Fix an assertion failure on 64-bit platforms when we allocated
29417       memory right up to the end of a memarea, then realigned the memory
29418       one step beyond the end. Fixes a possible cause of bug 930.
29419     - Protect the count of open sockets with a mutex, so we can't
29420       corrupt it when two threads are closing or opening sockets at once.
29421       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
29422     - Don't allow a bridge to publish its router descriptor to a
29423       non-bridge directory authority. Fixes part of bug 932.
29424     - When we change to or from being a bridge, reset our counts of
29425       client usage by country. Fixes bug 932.
29426     - Fix a bug that made stream bandwidth get misreported to the
29427       controller.
29428     - Stop using malloc_usable_size() to use more area than we had
29429       actually allocated: it was safe, but made valgrind really unhappy.
29430     - Fix a memory leak when v3 directory authorities load their keys
29431       and cert from disk. Bugfix on 0.2.0.1-alpha.
29433   o Minor bugfixes (on 0.2.1.x):
29434     - Fix use of freed memory when deciding to mark a non-addable
29435       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
29438 Changes in version 0.2.1.14-rc - 2009-04-12
29439   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
29440   series. It begins fixing some major performance problems, and also
29441   finally addresses the bug that was causing relays on dynamic IP
29442   addresses to fall out of the directory.
29444   o Major features:
29445     - Clients replace entry guards that were chosen more than a few months
29446       ago. This change should significantly improve client performance,
29447       especially once more people upgrade, since relays that have been
29448       a guard for a long time are currently overloaded.
29450   o Major bugfixes (on 0.2.0):
29451     - Finally fix the bug where dynamic-IP relays disappear when their
29452       IP address changes: directory mirrors were mistakenly telling
29453       them their old address if they asked via begin_dir, so they
29454       never got an accurate answer about their new address, so they
29455       just vanished after a day. For belt-and-suspenders, relays that
29456       don't set Address in their config now avoid using begin_dir for
29457       all direct connections. Should fix bugs 827, 883, and 900.
29458     - Relays were falling out of the networkstatus consensus for
29459       part of a day if they changed their local config but the
29460       authorities discarded their new descriptor as "not sufficiently
29461       different". Now directory authorities accept a descriptor as changed
29462       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
29463       patch by Sebastian.
29464     - Avoid crashing in the presence of certain malformed descriptors.
29465       Found by lark, and by automated fuzzing.
29467   o Minor features:
29468     - When generating circuit events with verbose nicknames for
29469       controllers, try harder to look up nicknames for routers on a
29470       circuit. (Previously, we would look in the router descriptors we had
29471       for nicknames, but not in the consensus.) Partial fix for bug 941.
29472     - If the bridge config line doesn't specify a port, assume 443.
29473       This makes bridge lines a bit smaller and easier for users to
29474       understand.
29475     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
29476       bytes (aka 20KB/s), to match our documentation. Also update
29477       directory authorities so they always assign the Fast flag to relays
29478       with 20KB/s of capacity. Now people running relays won't suddenly
29479       find themselves not seeing any use, if the network gets faster
29480       on average.
29481     - Update to the "April 3 2009" ip-to-country file.
29483   o Minor bugfixes:
29484     - Avoid trying to print raw memory to the logs when we decide to
29485       give up on downloading a given relay descriptor. Bugfix on
29486       0.2.1.9-alpha.
29487     - In tor-resolve, when the Tor client to use is specified by
29488       <hostname>:<port>, actually use the specified port rather than
29489       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
29490     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
29491     - When starting with a cache over a few days old, do not leak
29492       memory for the obsolete router descriptors in it. Bugfix on
29493       0.2.0.33.
29494     - Avoid double-free on list of successfully uploaded hidden
29495       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
29496     - Change memarea_strndup() implementation to work even when
29497       duplicating a string at the end of a page. This bug was
29498       harmless for now, but could have meant crashes later. Fix by
29499       lark. Bugfix on 0.2.1.1-alpha.
29500     - Limit uploaded directory documents to be 16M rather than 500K.
29501       The directory authorities were refusing v3 consensus votes from
29502       other authorities, since the votes are now 504K. Fixes bug 959;
29503       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
29504     - Directory authorities should never send a 503 "busy" response to
29505       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
29506       bug 959.
29509 Changes in version 0.2.1.13-alpha - 2009-03-09
29510   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
29511   cleanups. We're finally getting close to a release candidate.
29513   o Major bugfixes:
29514     - Correctly update the list of which countries we exclude as
29515       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
29516       lark. Bugfix on 0.2.1.6-alpha.
29518   o Minor bugfixes (on 0.2.0.x and earlier):
29519     - Automatically detect MacOSX versions earlier than 10.4.0, and
29520       disable kqueue from inside Tor when running with these versions.
29521       We previously did this from the startup script, but that was no
29522       help to people who didn't use the startup script. Resolves bug 863.
29523     - When we had picked an exit node for a connection, but marked it as
29524       "optional", and it turned out we had no onion key for the exit,
29525       stop wanting that exit and try again. This situation may not
29526       be possible now, but will probably become feasible with proposal
29527       158. Spotted by rovv. Fixes another case of bug 752.
29528     - Clients no longer cache certificates for authorities they do not
29529       recognize. Bugfix on 0.2.0.9-alpha.
29530     - When we can't transmit a DNS request due to a network error, retry
29531       it after a while, and eventually transmit a failing response to
29532       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
29533     - If the controller claimed responsibility for a stream, but that
29534       stream never finished making its connection, it would live
29535       forever in circuit_wait state. Now we close it after SocksTimeout
29536       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
29537     - Drop begin cells to a hidden service if they come from the middle
29538       of a circuit. Patch from lark.
29539     - When we erroneously receive two EXTEND cells for the same circuit
29540       ID on the same connection, drop the second. Patch from lark.
29541     - Fix a crash that occurs on exit nodes when a nameserver request
29542       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
29543       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
29544       bug 929.
29545     - Do not assume that a stack-allocated character array will be
29546       64-bit aligned on platforms that demand that uint64_t access is
29547       aligned. Possible fix for bug 604.
29548     - Parse dates and IPv4 addresses in a locale- and libc-independent
29549       manner, to avoid platform-dependent behavior on malformed input.
29550     - Build correctly when configured to build outside the main source
29551       path. Patch from Michael Gold.
29552     - We were already rejecting relay begin cells with destination port
29553       of 0. Now also reject extend cells with destination port or address
29554       of 0. Suggested by lark.
29556   o Minor bugfixes (on 0.2.1.x):
29557     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
29558       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
29559     - If we're an exit node, scrub the IP address to which we are exiting
29560       in the logs. Bugfix on 0.2.1.8-alpha.
29562   o Minor features:
29563     - On Linux, use the prctl call to re-enable core dumps when the user
29564       is option is set.
29565     - New controller event NEWCONSENSUS that lists the networkstatus
29566       lines for every recommended relay. Now controllers like Torflow
29567       can keep up-to-date on which relays they should be using.
29568     - Update to the "February 26 2009" ip-to-country file.
29571 Changes in version 0.2.0.34 - 2009-02-08
29572   Tor 0.2.0.34 features several more security-related fixes. You should
29573   upgrade, especially if you run an exit relay (remote crash) or a
29574   directory authority (remote infinite loop), or you're on an older
29575   (pre-XP) or not-recently-patched Windows (remote exploit).
29577   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
29578   have many known flaws, and nobody should be using them. You should
29579   upgrade. If you're using a Linux or BSD and its packages are obsolete,
29580   stop using those packages and upgrade anyway.
29582   o Security fixes:
29583     - Fix an infinite-loop bug on handling corrupt votes under certain
29584       circumstances. Bugfix on 0.2.0.8-alpha.
29585     - Fix a temporary DoS vulnerability that could be performed by
29586       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
29587     - Avoid a potential crash on exit nodes when processing malformed
29588       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
29589     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
29590       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
29592   o Minor bugfixes:
29593     - Fix compilation on systems where time_t is a 64-bit integer.
29594       Patch from Matthias Drochner.
29595     - Don't consider expiring already-closed client connections. Fixes
29596       bug 893. Bugfix on 0.0.2pre20.
29599 Changes in version 0.2.1.12-alpha - 2009-02-08
29600   Tor 0.2.1.12-alpha features several more security-related fixes. You
29601   should upgrade, especially if you run an exit relay (remote crash) or
29602   a directory authority (remote infinite loop), or you're on an older
29603   (pre-XP) or not-recently-patched Windows (remote exploit). It also
29604   includes a big pile of minor bugfixes and cleanups.
29606   o Security fixes:
29607     - Fix an infinite-loop bug on handling corrupt votes under certain
29608       circumstances. Bugfix on 0.2.0.8-alpha.
29609     - Fix a temporary DoS vulnerability that could be performed by
29610       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
29611     - Avoid a potential crash on exit nodes when processing malformed
29612       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
29614   o Minor bugfixes:
29615     - Let controllers actually ask for the "clients_seen" event for
29616       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
29617       reported by Matt Edman.
29618     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
29619       0.2.1.11-alpha.
29620     - Fix a bug in address parsing that was preventing bridges or hidden
29621       service targets from being at IPv6 addresses.
29622     - Solve a bug that kept hardware crypto acceleration from getting
29623       enabled when accounting was turned on. Fixes bug 907. Bugfix on
29624       0.0.9pre6.
29625     - Remove a bash-ism from configure.in to build properly on non-Linux
29626       platforms. Bugfix on 0.2.1.1-alpha.
29627     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
29628       headers. Bugfix on 0.2.0.10-alpha.
29629     - Don't consider expiring already-closed client connections. Fixes
29630       bug 893. Bugfix on 0.0.2pre20.
29631     - Fix another interesting corner-case of bug 891 spotted by rovv:
29632       Previously, if two hosts had different amounts of clock drift, and
29633       one of them created a new connection with just the wrong timing,
29634       the other might decide to deprecate the new connection erroneously.
29635       Bugfix on 0.1.1.13-alpha.
29636     - Resolve a very rare crash bug that could occur when the user forced
29637       a nameserver reconfiguration during the middle of a nameserver
29638       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
29639     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
29640       Bugfix on 0.2.1.7-alpha.
29641     - If we're using bridges and our network goes away, be more willing
29642       to forgive our bridges and try again when we get an application
29643       request. Bugfix on 0.2.0.x.
29645   o Minor features:
29646     - Support platforms where time_t is 64 bits long. (Congratulations,
29647       NetBSD!) Patch from Matthias Drochner.
29648     - Add a 'getinfo status/clients-seen' controller command, in case
29649       controllers want to hear clients_seen events but connect late.
29651   o Build changes:
29652     - Disable GCC's strict alias optimization by default, to avoid the
29653       likelihood of its introducing subtle bugs whenever our code violates
29654       the letter of C99's alias rules.
29657 Changes in version 0.2.0.33 - 2009-01-21
29658   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
29659   useful to users. It also finally fixes a bug where a relay or client
29660   that's been off for many days would take a long time to bootstrap.
29662   This update also fixes an important security-related bug reported by
29663   Ilja van Sprundel. You should upgrade. (We'll send out more details
29664   about the bug once people have had some time to upgrade.)
29666   o Security fixes:
29667     - Fix a heap-corruption bug that may be remotely triggerable on
29668       some platforms. Reported by Ilja van Sprundel.
29670   o Major bugfixes:
29671     - When a stream at an exit relay is in state "resolving" or
29672       "connecting" and it receives an "end" relay cell, the exit relay
29673       would silently ignore the end cell and not close the stream. If
29674       the client never closes the circuit, then the exit relay never
29675       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
29676       reported by "wood".
29677     - When sending CREATED cells back for a given circuit, use a 64-bit
29678       connection ID to find the right connection, rather than an addr:port
29679       combination. Now that we can have multiple OR connections between
29680       the same ORs, it is no longer possible to use addr:port to uniquely
29681       identify a connection.
29682     - Bridge relays that had DirPort set to 0 would stop fetching
29683       descriptors shortly after startup, and then briefly resume
29684       after a new bandwidth test and/or after publishing a new bridge
29685       descriptor. Bridge users that try to bootstrap from them would
29686       get a recent networkstatus but would get descriptors from up to
29687       18 hours earlier, meaning most of the descriptors were obsolete
29688       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
29689     - Prevent bridge relays from serving their 'extrainfo' document
29690       to anybody who asks, now that extrainfo docs include potentially
29691       sensitive aggregated client geoip summaries. Bugfix on
29692       0.2.0.13-alpha.
29693     - If the cached networkstatus consensus is more than five days old,
29694       discard it rather than trying to use it. In theory it could be
29695       useful because it lists alternate directory mirrors, but in practice
29696       it just means we spend many minutes trying directory mirrors that
29697       are long gone from the network. Also discard router descriptors as
29698       we load them if they are more than five days old, since the onion
29699       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
29701   o Minor bugfixes:
29702     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
29703       could make gcc generate non-functional binary search code. Bugfix
29704       on 0.2.0.10-alpha.
29705     - Build correctly on platforms without socklen_t.
29706     - Compile without warnings on solaris.
29707     - Avoid potential crash on internal error during signature collection.
29708       Fixes bug 864. Patch from rovv.
29709     - Correct handling of possible malformed authority signing key
29710       certificates with internal signature types. Fixes bug 880.
29711       Bugfix on 0.2.0.3-alpha.
29712     - Fix a hard-to-trigger resource leak when logging credential status.
29713       CID 349.
29714     - When we can't initialize DNS because the network is down, do not
29715       automatically stop Tor from starting. Instead, we retry failed
29716       dns_init() every 10 minutes, and change the exit policy to reject
29717       *:* until one succeeds. Fixes bug 691.
29718     - Use 64 bits instead of 32 bits for connection identifiers used with
29719       the controller protocol, to greatly reduce risk of identifier reuse.
29720     - When we're choosing an exit node for a circuit, and we have
29721       no pending streams, choose a good general exit rather than one that
29722       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
29723     - Fix another case of assuming, when a specific exit is requested,
29724       that we know more than the user about what hosts it allows.
29725       Fixes one case of bug 752. Patch from rovv.
29726     - Clip the MaxCircuitDirtiness config option to a minimum of 10
29727       seconds. Warn the user if lower values are given in the
29728       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
29729     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
29730       user if lower values are given in the configuration. Bugfix on
29731       0.1.1.17-rc. Patch by Sebastian.
29732     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
29733       the cache because we already had a v0 descriptor with the same ID.
29734       Bugfix on 0.2.0.18-alpha.
29735     - Fix a race condition when freeing keys shared between main thread
29736       and CPU workers that could result in a memory leak. Bugfix on
29737       0.1.0.1-rc. Fixes bug 889.
29738     - Send a valid END cell back when a client tries to connect to a
29739       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
29740       840. Patch from rovv.
29741     - Check which hops rendezvous stream cells are associated with to
29742       prevent possible guess-the-streamid injection attacks from
29743       intermediate hops. Fixes another case of bug 446. Based on patch
29744       from rovv.
29745     - If a broken client asks a non-exit router to connect somewhere,
29746       do not even do the DNS lookup before rejecting the connection.
29747       Fixes another case of bug 619. Patch from rovv.
29748     - When a relay gets a create cell it can't decrypt (e.g. because it's
29749       using the wrong onion key), we were dropping it and letting the
29750       client time out. Now actually answer with a destroy cell. Fixes
29751       bug 904. Bugfix on 0.0.2pre8.
29753   o Minor bugfixes (hidden services):
29754     - Do not throw away existing introduction points on SIGHUP. Bugfix on
29755       0.0.6pre1. Patch by Karsten. Fixes bug 874.
29757   o Minor features:
29758     - Report the case where all signatures in a detached set are rejected
29759       differently than the case where there is an error handling the
29760       detached set.
29761     - When we realize that another process has modified our cached
29762       descriptors, print out a more useful error message rather than
29763       triggering an assertion. Fixes bug 885. Patch from Karsten.
29764     - Implement the 0x20 hack to better resist DNS poisoning: set the
29765       case on outgoing DNS requests randomly, and reject responses that do
29766       not match the case correctly. This logic can be disabled with the
29767       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
29768       of servers that do not reliably preserve case in replies. See
29769       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
29770       for more info.
29771     - Check DNS replies for more matching fields to better resist DNS
29772       poisoning.
29773     - Never use OpenSSL compression: it wastes RAM and CPU trying to
29774       compress cells, which are basically all encrypted, compressed, or
29775       both.
29778 Changes in version 0.2.1.11-alpha - 2009-01-20
29779   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
29780   week it will take a long time to bootstrap again" bug. It also fixes
29781   an important security-related bug reported by Ilja van Sprundel. You
29782   should upgrade. (We'll send out more details about the bug once people
29783   have had some time to upgrade.)
29785   o Security fixes:
29786     - Fix a heap-corruption bug that may be remotely triggerable on
29787       some platforms. Reported by Ilja van Sprundel.
29789   o Major bugfixes:
29790     - Discard router descriptors as we load them if they are more than
29791       five days old. Otherwise if Tor is off for a long time and then
29792       starts with cached descriptors, it will try to use the onion
29793       keys in those obsolete descriptors when building circuits. Bugfix
29794       on 0.2.0.x. Fixes bug 887.
29796   o Minor features:
29797     - Try to make sure that the version of Libevent we're running with
29798       is binary-compatible with the one we built with. May address bug
29799       897 and others.
29800     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
29801       for bug 905. Bugfix on 0.2.1.7-alpha.
29802     - Add a new --enable-local-appdata configuration switch to change
29803       the default location of the datadir on win32 from APPDATA to
29804       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
29805       entirely. Patch from coderman.
29807   o Minor bugfixes:
29808     - Make outbound DNS packets respect the OutboundBindAddress setting.
29809       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
29810     - When our circuit fails at the first hop (e.g. we get a destroy
29811       cell back), avoid using that OR connection anymore, and also
29812       tell all the one-hop directory requests waiting for it that they
29813       should fail. Bugfix on 0.2.1.3-alpha.
29814     - In the torify(1) manpage, mention that tsocks will leak your
29815       DNS requests.
29818 Changes in version 0.2.1.10-alpha - 2009-01-06
29819   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
29820   would make the bridge relay not so useful if it had DirPort set to 0,
29821   and one that could let an attacker learn a little bit of information
29822   about the bridge's users), and a bug that would cause your Tor relay
29823   to ignore a circuit create request it can't decrypt (rather than reply
29824   with an error). It also fixes a wide variety of other bugs.
29826   o Major bugfixes:
29827     - If the cached networkstatus consensus is more than five days old,
29828       discard it rather than trying to use it. In theory it could
29829       be useful because it lists alternate directory mirrors, but in
29830       practice it just means we spend many minutes trying directory
29831       mirrors that are long gone from the network. Helps bug 887 a bit;
29832       bugfix on 0.2.0.x.
29833     - Bridge relays that had DirPort set to 0 would stop fetching
29834       descriptors shortly after startup, and then briefly resume
29835       after a new bandwidth test and/or after publishing a new bridge
29836       descriptor. Bridge users that try to bootstrap from them would
29837       get a recent networkstatus but would get descriptors from up to
29838       18 hours earlier, meaning most of the descriptors were obsolete
29839       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
29840     - Prevent bridge relays from serving their 'extrainfo' document
29841       to anybody who asks, now that extrainfo docs include potentially
29842       sensitive aggregated client geoip summaries. Bugfix on
29843       0.2.0.13-alpha.
29845   o Minor features:
29846     - New controller event "clients_seen" to report a geoip-based summary
29847       of which countries we've seen clients from recently. Now controllers
29848       like Vidalia can show bridge operators that they're actually making
29849       a difference.
29850     - Build correctly against versions of OpenSSL 0.9.8 or later built
29851       without support for deprecated functions.
29852     - Update to the "December 19 2008" ip-to-country file.
29854   o Minor bugfixes (on 0.2.0.x):
29855     - Authorities now vote for the Stable flag for any router whose
29856       weighted MTBF is at least 5 days, regardless of the mean MTBF.
29857     - Do not remove routers as too old if we do not have any consensus
29858       document. Bugfix on 0.2.0.7-alpha.
29859     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
29860       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
29861     - When an exit relay resolves a stream address to a local IP address,
29862       do not just keep retrying that same exit relay over and
29863       over. Instead, just close the stream. Addresses bug 872. Bugfix
29864       on 0.2.0.32. Patch from rovv.
29865     - If a hidden service sends us an END cell, do not consider
29866       retrying the connection; just close it. Patch from rovv.
29867     - When we made bridge authorities stop serving bridge descriptors over
29868       unencrypted links, we also broke DirPort reachability testing for
29869       bridges. So bridges with a non-zero DirPort were printing spurious
29870       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
29871     - When a relay gets a create cell it can't decrypt (e.g. because it's
29872       using the wrong onion key), we were dropping it and letting the
29873       client time out. Now actually answer with a destroy cell. Fixes
29874       bug 904. Bugfix on 0.0.2pre8.
29875     - Squeeze 2-5% out of client performance (according to oprofile) by
29876       improving the implementation of some policy-manipulation functions.
29878   o Minor bugfixes (on 0.2.1.x):
29879     - Make get_interface_address() function work properly again; stop
29880       guessing the wrong parts of our address as our address.
29881     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
29882       send on that circuit. Otherwise we might violate the proposal-110
29883       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
29884       thanks to Karsten.
29885     - When we're sending non-EXTEND cells to the first hop in a circuit,
29886       for example to use an encrypted directory connection, we don't need
29887       to use RELAY_EARLY cells: the first hop knows what kind of cell
29888       it is, and nobody else can even see the cell type. Conserving
29889       RELAY_EARLY cells makes it easier to cannibalize circuits like
29890       this later.
29891     - Stop logging nameserver addresses in reverse order.
29892     - If we are retrying a directory download slowly over and over, do
29893       not automatically give up after the 254th failure. Bugfix on
29894       0.2.1.9-alpha.
29895     - Resume reporting accurate "stream end" reasons to the local control
29896       port. They were lost in the changes for Proposal 148. Bugfix on
29897       0.2.1.9-alpha.
29899   o Deprecated and removed features:
29900     - The old "tor --version --version" command, which would print out
29901       the subversion "Id" of most of the source files, is now removed. It
29902       turned out to be less useful than we'd expected, and harder to
29903       maintain.
29905   o Code simplifications and refactoring:
29906     - Change our header file guard macros to be less likely to conflict
29907       with system headers. Adam Langley noticed that we were conflicting
29908       with log.h on Android.
29909     - Tool-assisted documentation cleanup. Nearly every function or
29910       static variable in Tor should have its own documentation now.
29913 Changes in version 0.2.1.9-alpha - 2008-12-25
29914   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
29916   o New directory authorities:
29917     - gabelmoo (the authority run by Karsten Loesing) now has a new
29918       IP address.
29920   o Security fixes:
29921     - Never use a connection with a mismatched address to extend a
29922       circuit, unless that connection is canonical. A canonical
29923       connection is one whose address is authenticated by the router's
29924       identity key, either in a NETINFO cell or in a router descriptor.
29925     - Avoid a possible memory corruption bug when receiving hidden service
29926       descriptors. Bugfix on 0.2.1.6-alpha.
29928   o Major bugfixes:
29929     - Fix a logic error that would automatically reject all but the first
29930       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
29931       part of bug 813/868. Bug spotted by coderman.
29932     - When a stream at an exit relay is in state "resolving" or
29933       "connecting" and it receives an "end" relay cell, the exit relay
29934       would silently ignore the end cell and not close the stream. If
29935       the client never closes the circuit, then the exit relay never
29936       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
29937       reported by "wood".
29938     - When we can't initialize DNS because the network is down, do not
29939       automatically stop Tor from starting. Instead, retry failed
29940       dns_init() every 10 minutes, and change the exit policy to reject
29941       *:* until one succeeds. Fixes bug 691.
29943   o Minor features:
29944     - Give a better error message when an overzealous init script says
29945       "sudo -u username tor --user username". Makes Bug 882 easier for
29946       users to diagnose.
29947     - When a directory authority gives us a new guess for our IP address,
29948       log which authority we used. Hopefully this will help us debug
29949       the recent complaints about bad IP address guesses.
29950     - Detect svn revision properly when we're using git-svn.
29951     - Try not to open more than one descriptor-downloading connection
29952       to an authority at once. This should reduce load on directory
29953       authorities. Fixes bug 366.
29954     - Add cross-certification to newly generated certificates, so that
29955       a signing key is enough information to look up a certificate.
29956       Partial implementation of proposal 157.
29957     - Start serving certificates by <identity digest, signing key digest>
29958       pairs. Partial implementation of proposal 157.
29959     - Clients now never report any stream end reason except 'MISC'.
29960       Implements proposal 148.
29961     - On platforms with a maximum syslog string length, truncate syslog
29962       messages to that length ourselves, rather than relying on the
29963       system to do it for us.
29964     - Optimize out calls to time(NULL) that occur for every IO operation,
29965       or for every cell. On systems where time() is a slow syscall,
29966       this fix will be slightly helpful.
29967     - Exit servers can now answer resolve requests for ip6.arpa addresses.
29968     - When we download a descriptor that we then immediately (as
29969       a directory authority) reject, do not retry downloading it right
29970       away. Should save some bandwidth on authorities. Fix for bug
29971       888. Patch by Sebastian Hahn.
29972     - When a download gets us zero good descriptors, do not notify
29973       Tor that new directory information has arrived.
29974     - Avoid some nasty corner cases in the logic for marking connections
29975       as too old or obsolete or noncanonical for circuits. Partial
29976       bugfix on bug 891.
29978   o Minor features (controller):
29979     - New CONSENSUS_ARRIVED event to note when a new consensus has
29980       been fetched and validated.
29981     - When we realize that another process has modified our cached
29982       descriptors file, print out a more useful error message rather
29983       than triggering an assertion. Fixes bug 885. Patch from Karsten.
29984     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
29985       controllers to prevent SIGHUP from reloading the
29986       configuration. Fixes bug 856.
29988   o Minor bugfixes:
29989     - Resume using the correct "REASON=" stream when telling the
29990       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
29991     - When a canonical connection appears later in our internal list
29992       than a noncanonical one for a given OR ID, always use the
29993       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
29994       Spotted by rovv.
29995     - Clip the MaxCircuitDirtiness config option to a minimum of 10
29996       seconds. Warn the user if lower values are given in the
29997       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
29998     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
29999       user if lower values are given in the configuration. Bugfix on
30000       0.1.1.17-rc. Patch by Sebastian.
30001     - Fix a race condition when freeing keys shared between main thread
30002       and CPU workers that could result in a memory leak. Bugfix on
30003       0.1.0.1-rc. Fixes bug 889.
30005   o Minor bugfixes (hidden services):
30006     - Do not throw away existing introduction points on SIGHUP (bugfix on
30007       0.0.6pre1); also, do not stall hidden services because we're
30008       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
30009       by John Brooks. Patch by Karsten. Fixes bug 874.
30010     - Fix a memory leak when we decline to add a v2 rendezvous
30011       descriptor to the cache because we already had a v0 descriptor
30012       with the same ID. Bugfix on 0.2.0.18-alpha.
30014   o Deprecated and removed features:
30015     - RedirectExits has been removed. It was deprecated since
30016       0.2.0.3-alpha.
30017     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
30018       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
30019     - Cell pools are now always enabled; --disable-cell-pools is ignored.
30021   o Code simplifications and refactoring:
30022     - Rename the confusing or_is_obsolete field to the more appropriate
30023       is_bad_for_new_circs, and move it to or_connection_t where it
30024       belongs.
30025     - Move edge-only flags from connection_t to edge_connection_t: not
30026       only is this better coding, but on machines of plausible alignment,
30027       it should save 4-8 bytes per connection_t. "Every little bit helps."
30028     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
30029       for consistency; keep old option working for backward compatibility.
30030     - Simplify the code for finding connections to use for a circuit.
30033 Changes in version 0.2.1.8-alpha - 2008-12-08
30034   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
30035   builds better on unusual platforms like Solaris and old OS X, and
30036   fixes a variety of other issues.
30038   o Major features:
30039     - New DirPortFrontPage option that takes an html file and publishes
30040       it as "/" on the DirPort. Now relay operators can provide a
30041       disclaimer without needing to set up a separate webserver. There's
30042       a sample disclaimer in contrib/tor-exit-notice.html.
30044   o Security fixes:
30045     - When the client is choosing entry guards, now it selects at most
30046       one guard from a given relay family. Otherwise we could end up with
30047       all of our entry points into the network run by the same operator.
30048       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
30050   o Major bugfixes:
30051     - Fix a DOS opportunity during the voting signature collection process
30052       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
30053     - Fix a possible segfault when establishing an exit connection. Bugfix
30054       on 0.2.1.5-alpha.
30056   o Minor bugfixes:
30057     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
30058       bug 859.
30059     - Made Tor a little less aggressive about deleting expired
30060       certificates. Partial fix for bug 854.
30061     - Stop doing unaligned memory access that generated bus errors on
30062       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
30063     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
30064       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
30065     - Make USR2 log-level switch take effect immediately. Bugfix on
30066       0.1.2.8-beta.
30067     - If one win32 nameserver fails to get added, continue adding the
30068       rest, and don't automatically fail.
30069     - Use fcntl() for locking when flock() is not available. Should fix
30070       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
30071     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
30072       could make gcc generate non-functional binary search code. Bugfix
30073       on 0.2.0.10-alpha.
30074     - Build correctly on platforms without socklen_t.
30075     - Avoid potential crash on internal error during signature collection.
30076       Fixes bug 864. Patch from rovv.
30077     - Do not use C's stdio library for writing to log files. This will
30078       improve logging performance by a minute amount, and will stop
30079       leaking fds when our disk is full. Fixes bug 861.
30080     - Stop erroneous use of O_APPEND in cases where we did not in fact
30081       want to re-seek to the end of a file before every last write().
30082     - Correct handling of possible malformed authority signing key
30083       certificates with internal signature types. Fixes bug 880. Bugfix
30084       on 0.2.0.3-alpha.
30085     - Fix a hard-to-trigger resource leak when logging credential status.
30086       CID 349.
30088   o Minor features:
30089     - Directory mirrors no longer fetch the v1 directory or
30090       running-routers files. They are obsolete, and nobody asks for them
30091       anymore. This is the first step to making v1 authorities obsolete.
30093   o Minor features (controller):
30094     - Return circuit purposes in response to GETINFO circuit-status. Fixes
30095       bug 858.
30098 Changes in version 0.2.0.32 - 2008-11-20
30099   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
30100   packages (and maybe other packages) noticed by Theo de Raadt, fixes
30101   a smaller security flaw that might allow an attacker to access local
30102   services, further improves hidden service performance, and fixes a
30103   variety of other issues.
30105   o Security fixes:
30106     - The "User" and "Group" config options did not clear the
30107       supplementary group entries for the Tor process. The "User" option
30108       is now more robust, and we now set the groups to the specified
30109       user's primary group. The "Group" option is now ignored. For more
30110       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
30111       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
30112       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
30113     - The "ClientDNSRejectInternalAddresses" config option wasn't being
30114       consistently obeyed: if an exit relay refuses a stream because its
30115       exit policy doesn't allow it, we would remember what IP address
30116       the relay said the destination address resolves to, even if it's
30117       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
30119   o Major bugfixes:
30120     - Fix a DOS opportunity during the voting signature collection process
30121       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
30123   o Major bugfixes (hidden services):
30124     - When fetching v0 and v2 rendezvous service descriptors in parallel,
30125       we were failing the whole hidden service request when the v0
30126       descriptor fetch fails, even if the v2 fetch is still pending and
30127       might succeed. Similarly, if the last v2 fetch fails, we were
30128       failing the whole hidden service request even if a v0 fetch is
30129       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
30130     - When extending a circuit to a hidden service directory to upload a
30131       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
30132       requests failed, because the router descriptor has not been
30133       downloaded yet. In these cases, do not attempt to upload the
30134       rendezvous descriptor, but wait until the router descriptor is
30135       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
30136       descriptor from a hidden service directory for which the router
30137       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
30138       on 0.2.0.10-alpha.
30140   o Minor bugfixes:
30141     - Fix several infrequent memory leaks spotted by Coverity.
30142     - When testing for libevent functions, set the LDFLAGS variable
30143       correctly. Found by Riastradh.
30144     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
30145       bootstrapping with tunneled directory connections. Bugfix on
30146       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
30147     - When asked to connect to A.B.exit:80, if we don't know the IP for A
30148       and we know that server B rejects most-but-not all connections to
30149       port 80, we would previously reject the connection. Now, we assume
30150       the user knows what they were asking for. Fixes bug 752. Bugfix
30151       on 0.0.9rc5. Diagnosed by BarkerJr.
30152     - If we overrun our per-second write limits a little, count this as
30153       having used up our write allocation for the second, and choke
30154       outgoing directory writes. Previously, we had only counted this when
30155       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
30156       Bugfix on 0.2.0.x (??).
30157     - Remove the old v2 directory authority 'lefkada' from the default
30158       list. It has been gone for many months.
30159     - Stop doing unaligned memory access that generated bus errors on
30160       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
30161     - Make USR2 log-level switch take effect immediately. Bugfix on
30162       0.1.2.8-beta.
30164   o Minor bugfixes (controller):
30165     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
30166       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
30169 Changes in version 0.2.1.7-alpha - 2008-11-08
30170   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
30171   packages (and maybe other packages) noticed by Theo de Raadt, fixes
30172   a smaller security flaw that might allow an attacker to access local
30173   services, adds better defense against DNS poisoning attacks on exit
30174   relays, further improves hidden service performance, and fixes a
30175   variety of other issues.
30177   o Security fixes:
30178     - The "ClientDNSRejectInternalAddresses" config option wasn't being
30179       consistently obeyed: if an exit relay refuses a stream because its
30180       exit policy doesn't allow it, we would remember what IP address
30181       the relay said the destination address resolves to, even if it's
30182       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
30183     - The "User" and "Group" config options did not clear the
30184       supplementary group entries for the Tor process. The "User" option
30185       is now more robust, and we now set the groups to the specified
30186       user's primary group. The "Group" option is now ignored. For more
30187       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
30188       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
30189       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
30190     - Do not use or believe expired v3 authority certificates. Patch
30191       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
30193   o Minor features:
30194     - Now NodeFamily and MyFamily config options allow spaces in
30195       identity fingerprints, so it's easier to paste them in.
30196       Suggested by Lucky Green.
30197     - Implement the 0x20 hack to better resist DNS poisoning: set the
30198       case on outgoing DNS requests randomly, and reject responses that do
30199       not match the case correctly. This logic can be disabled with the
30200       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
30201       of servers that do not reliably preserve case in replies. See
30202       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
30203       for more info.
30204     - Preserve case in replies to DNSPort requests in order to support
30205       the 0x20 hack for resisting DNS poisoning attacks.
30207   o Hidden service performance improvements:
30208     - When the client launches an introduction circuit, retry with a
30209       new circuit after 30 seconds rather than 60 seconds.
30210     - Launch a second client-side introduction circuit in parallel
30211       after a delay of 15 seconds (based on work by Christian Wilms).
30212     - Hidden services start out building five intro circuits rather
30213       than three, and when the first three finish they publish a service
30214       descriptor using those. Now we publish our service descriptor much
30215       faster after restart.
30217   o Minor bugfixes:
30218     - Minor fix in the warning messages when you're having problems
30219       bootstrapping; also, be more forgiving of bootstrap problems when
30220       we're still making incremental progress on a given bootstrap phase.
30221     - When we're choosing an exit node for a circuit, and we have
30222       no pending streams, choose a good general exit rather than one that
30223       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
30224     - Send a valid END cell back when a client tries to connect to a
30225       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
30226       840. Patch from rovv.
30227     - If a broken client asks a non-exit router to connect somewhere,
30228       do not even do the DNS lookup before rejecting the connection.
30229       Fixes another case of bug 619. Patch from rovv.
30230     - Fix another case of assuming, when a specific exit is requested,
30231       that we know more than the user about what hosts it allows.
30232       Fixes another case of bug 752. Patch from rovv.
30233     - Check which hops rendezvous stream cells are associated with to
30234       prevent possible guess-the-streamid injection attacks from
30235       intermediate hops. Fixes another case of bug 446. Based on patch
30236       from rovv.
30237     - Avoid using a negative right-shift when comparing 32-bit
30238       addresses. Possible fix for bug 845 and bug 811.
30239     - Make the assert_circuit_ok() function work correctly on circuits that
30240       have already been marked for close.
30241     - Fix read-off-the-end-of-string error in unit tests when decoding
30242       introduction points.
30243     - Fix uninitialized size field for memory area allocation: may improve
30244       memory performance during directory parsing.
30245     - Treat duplicate certificate fetches as failures, so that we do
30246       not try to re-fetch an expired certificate over and over and over.
30247     - Do not say we're fetching a certificate when we'll in fact skip it
30248       because of a pending download.
30251 Changes in version 0.2.1.6-alpha - 2008-09-30
30252   Tor 0.2.1.6-alpha further improves performance and robustness of
30253   hidden services, starts work on supporting per-country relay selection,
30254   and fixes a variety of smaller issues.
30256   o Major features:
30257     - Implement proposal 121: make it possible to build hidden services
30258       that only certain clients are allowed to connect to. This is
30259       enforced at several points, so that unauthorized clients are unable
30260       to send INTRODUCE cells to the service, or even (depending on the
30261       type of authentication) to learn introduction points. This feature
30262       raises the bar for certain kinds of active attacks against hidden
30263       services. Code by Karsten Loesing.
30264     - Relays now store and serve v2 hidden service descriptors by default,
30265       i.e., the new default value for HidServDirectoryV2 is 1. This is
30266       the last step in proposal 114, which aims to make hidden service
30267       lookups more reliable.
30268     - Start work to allow node restrictions to include country codes. The
30269       syntax to exclude nodes in a country with country code XX is
30270       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
30271       refinement to decide what config options should take priority if
30272       you ask to both use a particular node and exclude it.
30273     - Allow ExitNodes list to include IP ranges and country codes, just
30274       like the Exclude*Nodes lists. Patch from Robert Hogan.
30276   o Major bugfixes:
30277     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
30278       Tor to fail to start if you had it configured to use a bridge
30279       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
30280     - When extending a circuit to a hidden service directory to upload a
30281       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
30282       requests failed, because the router descriptor had not been
30283       downloaded yet. In these cases, we now wait until the router
30284       descriptor is downloaded, and then retry. Likewise, clients
30285       now skip over a hidden service directory if they don't yet have
30286       its router descriptor, rather than futilely requesting it and
30287       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
30288       on 0.2.0.10-alpha.
30289     - When fetching v0 and v2 rendezvous service descriptors in parallel,
30290       we were failing the whole hidden service request when the v0
30291       descriptor fetch fails, even if the v2 fetch is still pending and
30292       might succeed. Similarly, if the last v2 fetch fails, we were
30293       failing the whole hidden service request even if a v0 fetch is
30294       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
30295     - DNS replies need to have names matching their requests, but
30296       these names should be in the questions section, not necessarily
30297       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
30299   o Minor features:
30300     - Update to the "September 1 2008" ip-to-country file.
30301     - Allow ports 465 and 587 in the default exit policy again. We had
30302       rejected them in 0.1.0.15, because back in 2005 they were commonly
30303       misconfigured and ended up as spam targets. We hear they are better
30304       locked down these days.
30305     - Use a lockfile to make sure that two Tor processes are not
30306       simultaneously running with the same datadir.
30307     - Serve the latest v3 networkstatus consensus via the control
30308       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
30309     - Better logging about stability/reliability calculations on directory
30310       servers.
30311     - Drop the requirement to have an open dir port for storing and
30312       serving v2 hidden service descriptors.
30313     - Directory authorities now serve a /tor/dbg-stability.txt URL to
30314       help debug WFU and MTBF calculations.
30315     - Implement most of Proposal 152: allow specialized servers to permit
30316       single-hop circuits, and clients to use those servers to build
30317       single-hop circuits when using a specialized controller. Patch
30318       from Josh Albrecht. Resolves feature request 768.
30319     - Add a -p option to tor-resolve for specifying the SOCKS port: some
30320       people find host:port too confusing.
30321     - Make TrackHostExit mappings expire a while after their last use, not
30322       after their creation. Patch from Robert Hogan.
30323     - Provide circuit purposes along with circuit events to the controller.
30325   o Minor bugfixes:
30326     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
30327       Reported by Tas.
30328     - Fixed some memory leaks -- some quite frequent, some almost
30329       impossible to trigger -- based on results from Coverity.
30330     - When testing for libevent functions, set the LDFLAGS variable
30331       correctly. Found by Riastradh.
30332     - Fix an assertion bug in parsing policy-related options; possible fix
30333       for bug 811.
30334     - Catch and report a few more bootstrapping failure cases when Tor
30335       fails to establish a TCP connection. Cleanup on 0.2.1.x.
30336     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
30337       bootstrapping with tunneled directory connections. Bugfix on
30338       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
30339     - When asked to connect to A.B.exit:80, if we don't know the IP for A
30340       and we know that server B rejects most-but-not all connections to
30341       port 80, we would previously reject the connection. Now, we assume
30342       the user knows what they were asking for. Fixes bug 752. Bugfix
30343       on 0.0.9rc5. Diagnosed by BarkerJr.
30344     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
30345       service directories if they have no advertised dir port. Bugfix
30346       on 0.2.0.10-alpha.
30347     - If we overrun our per-second write limits a little, count this as
30348       having used up our write allocation for the second, and choke
30349       outgoing directory writes. Previously, we had only counted this when
30350       we had met our limits precisely. Fixes bug 824. Patch by rovv.
30351       Bugfix on 0.2.0.x (??).
30352     - Avoid a "0 divided by 0" calculation when calculating router uptime
30353       at directory authorities. Bugfix on 0.2.0.8-alpha.
30354     - Make DNS resolved controller events into "CLOSED", not
30355       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
30356       bug 807.
30357     - Fix a bug where an unreachable relay would establish enough
30358       reachability testing circuits to do a bandwidth test -- if
30359       we already have a connection to the middle hop of the testing
30360       circuit, then it could establish the last hop by using the existing
30361       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
30362       circuits no longer use entry guards in 0.2.1.3-alpha.
30363     - If we have correct permissions on $datadir, we complain to stdout
30364       and fail to start. But dangerous permissions on
30365       $datadir/cached-status/ would cause us to open a log and complain
30366       there. Now complain to stdout and fail to start in both cases. Fixes
30367       bug 820, reported by seeess.
30368     - Remove the old v2 directory authority 'lefkada' from the default
30369       list. It has been gone for many months.
30371   o Code simplifications and refactoring:
30372     - Revise the connection_new functions so that a more typesafe variant
30373       exists. This will work better with Coverity, and let us find any
30374       actual mistakes we're making here.
30375     - Refactor unit testing logic so that dmalloc can be used sensibly
30376       with unit tests to check for memory leaks.
30377     - Move all hidden-service related fields from connection and circuit
30378       structure to substructures: this way they won't eat so much memory.
30381 Changes in version 0.2.0.31 - 2008-09-03
30382   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
30383   a big bug we're seeing where in rare cases traffic from one Tor stream
30384   gets mixed into another stream, and fixes a variety of smaller issues.
30386   o Major bugfixes:
30387     - Make sure that two circuits can never exist on the same connection
30388       with the same circuit ID, even if one is marked for close. This
30389       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
30390     - Relays now reject risky extend cells: if the extend cell includes
30391       a digest of all zeroes, or asks to extend back to the relay that
30392       sent the extend cell, tear down the circuit. Ideas suggested
30393       by rovv.
30394     - If not enough of our entry guards are available so we add a new
30395       one, we might use the new one even if it overlapped with the
30396       current circuit's exit relay (or its family). Anonymity bugfix
30397       pointed out by rovv.
30399   o Minor bugfixes:
30400     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
30401       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
30402     - Correctly detect the presence of the linux/netfilter_ipv4.h header
30403       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
30404     - Pick size of default geoip filename string correctly on windows.
30405       Fixes bug 806. Bugfix on 0.2.0.30.
30406     - Make the autoconf script accept the obsolete --with-ssl-dir
30407       option as an alias for the actually-working --with-openssl-dir
30408       option. Fix the help documentation to recommend --with-openssl-dir.
30409       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
30410     - When using the TransPort option on OpenBSD, and using the User
30411       option to change UID and drop privileges, make sure to open
30412       /dev/pf before dropping privileges. Fixes bug 782. Patch from
30413       Christopher Davis. Bugfix on 0.1.2.1-alpha.
30414     - Try to attach connections immediately upon receiving a RENDEZVOUS2
30415       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
30416       on the client side when connecting to a hidden service. Bugfix
30417       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
30418     - When closing an application-side connection because its circuit is
30419       getting torn down, generate the stream event correctly. Bugfix on
30420       0.1.2.x. Anonymous patch.
30423 Changes in version 0.2.1.5-alpha - 2008-08-31
30424   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
30425   in a lot of the infrastructure for adding authorization to hidden
30426   services, lays the groundwork for having clients read their load
30427   balancing information out of the networkstatus consensus rather than
30428   the individual router descriptors, addresses two potential anonymity
30429   issues, and fixes a variety of smaller issues.
30431   o Major features:
30432     - Convert many internal address representations to optionally hold
30433       IPv6 addresses.
30434     - Generate and accept IPv6 addresses in many protocol elements.
30435     - Make resolver code handle nameservers located at ipv6 addresses.
30436     - Begin implementation of proposal 121 ("Client authorization for
30437       hidden services"): configure hidden services with client
30438       authorization, publish descriptors for them, and configure
30439       authorization data for hidden services at clients. The next
30440       step is to actually access hidden services that perform client
30441       authorization.
30442     - More progress toward proposal 141: Network status consensus
30443       documents and votes now contain bandwidth information for each
30444       router and a summary of that router's exit policy. Eventually this
30445       will be used by clients so that they do not have to download every
30446       known descriptor before building circuits.
30448   o Major bugfixes (on 0.2.0.x and before):
30449     - When sending CREATED cells back for a given circuit, use a 64-bit
30450       connection ID to find the right connection, rather than an addr:port
30451       combination. Now that we can have multiple OR connections between
30452       the same ORs, it is no longer possible to use addr:port to uniquely
30453       identify a connection.
30454     - Relays now reject risky extend cells: if the extend cell includes
30455       a digest of all zeroes, or asks to extend back to the relay that
30456       sent the extend cell, tear down the circuit. Ideas suggested
30457       by rovv.
30458     - If not enough of our entry guards are available so we add a new
30459       one, we might use the new one even if it overlapped with the
30460       current circuit's exit relay (or its family). Anonymity bugfix
30461       pointed out by rovv.
30463   o Minor bugfixes:
30464     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
30465       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
30466     - When using the TransPort option on OpenBSD, and using the User
30467       option to change UID and drop privileges, make sure to open /dev/pf
30468       before dropping privileges. Fixes bug 782. Patch from Christopher
30469       Davis. Bugfix on 0.1.2.1-alpha.
30470     - Correctly detect the presence of the linux/netfilter_ipv4.h header
30471       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
30472     - Add a missing safe_str() call for a debug log message.
30473     - Use 64 bits instead of 32 bits for connection identifiers used with
30474       the controller protocol, to greatly reduce risk of identifier reuse.
30475     - Make the autoconf script accept the obsolete --with-ssl-dir
30476       option as an alias for the actually-working --with-openssl-dir
30477       option. Fix the help documentation to recommend --with-openssl-dir.
30478       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
30480   o Minor features:
30481     - Rate-limit too-many-sockets messages: when they happen, they happen
30482       a lot. Resolves bug 748.
30483     - Resist DNS poisoning a little better by making sure that names in
30484       answer sections match.
30485     - Print the SOCKS5 error message string as well as the error code
30486       when a tor-resolve request fails. Patch from Jacob.
30489 Changes in version 0.2.1.4-alpha - 2008-08-04
30490   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
30492   o Major bugfixes:
30493     - The address part of exit policies was not correctly written
30494       to router descriptors. This generated router descriptors that failed
30495       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
30496       on 0.2.1.3-alpha.
30497     - Tor triggered a false assert when extending a circuit to a relay
30498       but we already have a connection open to that relay. Noticed by
30499       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
30501   o Minor bugfixes:
30502     - Fix a hidden service logging bug: in some edge cases, the router
30503       descriptor of a previously picked introduction point becomes
30504       obsolete and we need to give up on it rather than continually
30505       complaining that it has become obsolete. Observed by xiando. Bugfix
30506       on 0.2.1.3-alpha.
30508   o Removed features:
30509     - Take out the TestVia config option, since it was a workaround for
30510       a bug that was fixed in Tor 0.1.1.21.
30513 Changes in version 0.2.1.3-alpha - 2008-08-03
30514   Tor 0.2.1.3-alpha implements most of the pieces to prevent
30515   infinite-length circuit attacks (see proposal 110); fixes a bug that
30516   might cause exit relays to corrupt streams they send back; allows
30517   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
30518   ExcludeExitNodes config options; and fixes a big pile of bugs.
30520   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
30521     - Send a bootstrap problem "warn" event on the first problem if the
30522       reason is NO_ROUTE (that is, our network is down).
30524   o Major features:
30525     - Implement most of proposal 110: The first K cells to be sent
30526       along a circuit are marked as special "early" cells; only K "early"
30527       cells will be allowed. Once this code is universal, we can block
30528       certain kinds of DOS attack by requiring that EXTEND commands must
30529       be sent using an "early" cell.
30531   o Major bugfixes:
30532     - Try to attach connections immediately upon receiving a RENDEZVOUS2
30533       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
30534       on the client side when connecting to a hidden service. Bugfix
30535       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
30536     - Ensure that two circuits can never exist on the same connection
30537       with the same circuit ID, even if one is marked for close. This
30538       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
30540   o Minor features:
30541     - When relays do their initial bandwidth measurement, don't limit
30542       to just our entry guards for the test circuits. Otherwise we tend
30543       to have multiple test circuits going through a single entry guard,
30544       which makes our bandwidth test less accurate. Fixes part of bug 654;
30545       patch contributed by Josh Albrecht.
30546     - Add an ExcludeExitNodes option so users can list a set of nodes
30547       that should be be excluded from the exit node position, but
30548       allowed elsewhere. Implements proposal 151.
30549     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
30550       ExcludeNodes and ExcludeExitNodes lists.
30551     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
30552       be more efficient. Formerly it was quadratic in the number of
30553       servers; now it should be linear. Fixes bug 509.
30554     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
30555       and n_conn_id_digest fields into a separate structure that's
30556       only needed when the circuit has not yet attached to an n_conn.
30558   o Minor bugfixes:
30559     - Change the contrib/tor.logrotate script so it makes the new
30560       logs as "_tor:_tor" rather than the default, which is generally
30561       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
30562     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
30563       warnings (occasionally), but it can also cause the compiler to
30564       eliminate error-checking code. Suggested by Peter Gutmann.
30565     - When a hidden service is giving up on an introduction point candidate
30566       that was not included in the last published rendezvous descriptor,
30567       don't reschedule publication of the next descriptor. Fixes bug 763.
30568       Bugfix on 0.0.9.3.
30569     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
30570       HiddenServiceExcludeNodes as obsolete: they never worked properly,
30571       and nobody claims to be using them. Fixes bug 754. Bugfix on
30572       0.1.0.1-rc. Patch from Christian Wilms.
30573     - Fix a small alignment and memory-wasting bug on buffer chunks.
30574       Spotted by rovv.
30576   o Minor bugfixes (controller):
30577     - When closing an application-side connection because its circuit
30578       is getting torn down, generate the stream event correctly.
30579       Bugfix on 0.1.2.x. Anonymous patch.
30581   o Removed features:
30582     - Remove all backward-compatibility code to support relays running
30583       versions of Tor so old that they no longer work at all on the
30584       Tor network.
30587 Changes in version 0.2.0.30 - 2008-07-15
30588   o Minor bugfixes:
30589     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
30590       warnings (occasionally), but it can also cause the compiler to
30591       eliminate error-checking code. Suggested by Peter Gutmann.
30594 Changes in version 0.2.0.29-rc - 2008-07-08
30595   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
30596   hidden-service performance bugs, and fixes a bunch of smaller bugs.
30598   o Major bugfixes:
30599     - If you have more than one bridge but don't know their keys,
30600       you would only launch a request for the descriptor of the first one
30601       on your list. (Tor considered launching requests for the others, but
30602       found that it already had a connection on the way for $0000...0000
30603       so it didn't open another.) Bugfix on 0.2.0.x.
30604     - If you have more than one bridge but don't know their keys, and the
30605       connection to one of the bridges failed, you would cancel all
30606       pending bridge connections. (After all, they all have the same
30607       digest.) Bugfix on 0.2.0.x.
30608     - When a hidden service was trying to establish an introduction point,
30609       and Tor had built circuits preemptively for such purposes, we
30610       were ignoring all the preemptive circuits and launching a new one
30611       instead. Bugfix on 0.2.0.14-alpha.
30612     - When a hidden service was trying to establish an introduction point,
30613       and Tor *did* manage to reuse one of the preemptively built
30614       circuits, it didn't correctly remember which one it used,
30615       so it asked for another one soon after, until there were no
30616       more preemptive circuits, at which point it launched one from
30617       scratch. Bugfix on 0.0.9.x.
30618     - Make directory servers include the X-Your-Address-Is: http header in
30619       their responses even for begin_dir conns. Now clients who only
30620       ever use begin_dir connections still have a way to learn their IP
30621       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
30623   o Minor bugfixes:
30624     - Fix a macro/CPP interaction that was confusing some compilers:
30625       some GCCs don't like #if/#endif pairs inside macro arguments.
30626       Fixes bug 707.
30627     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
30628       Fixes bug 704; fix from Steven Murdoch.
30629     - When opening /dev/null in finish_daemonize(), do not pass the
30630       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
30631       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
30632     - Correctly detect transparent proxy support on Linux hosts that
30633       require in.h to be included before netfilter_ipv4.h. Patch
30634       from coderman.
30635     - Disallow session resumption attempts during the renegotiation
30636       stage of the v2 handshake protocol. Clients should never be trying
30637       session resumption at this point, but apparently some did, in
30638       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
30639       found by Geoff Goodell.
30642 Changes in version 0.2.1.2-alpha - 2008-06-20
30643   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
30644   make it easier to set up your own private Tor network; fixes several
30645   big bugs with using more than one bridge relay; fixes a big bug with
30646   offering hidden services quickly after Tor starts; and uses a better
30647   API for reporting potential bootstrapping problems to the controller.
30649   o Major features:
30650     - New TestingTorNetwork config option to allow adjustment of
30651       previously constant values that, while reasonable, could slow
30652       bootstrapping. Implements proposal 135. Patch from Karsten.
30654   o Major bugfixes:
30655     - If you have more than one bridge but don't know their digests,
30656       you would only learn a request for the descriptor of the first one
30657       on your list. (Tor considered launching requests for the others, but
30658       found that it already had a connection on the way for $0000...0000
30659       so it didn't open another.) Bugfix on 0.2.0.x.
30660     - If you have more than one bridge but don't know their digests,
30661       and the connection to one of the bridges failed, you would cancel
30662       all pending bridge connections. (After all, they all have the
30663       same digest.) Bugfix on 0.2.0.x.
30664     - When establishing a hidden service, introduction points that
30665       originate from cannibalized circuits are completely ignored and not
30666       included in rendezvous service descriptors. This might be another
30667       reason for delay in making a hidden service available. Bugfix
30668       from long ago (0.0.9.x?)
30670   o Minor features:
30671     - Allow OpenSSL to use dynamic locks if it wants.
30672     - When building a consensus, do not include routers that are down.
30673       This will cut down 30% to 40% on consensus size. Implements
30674       proposal 138.
30675     - In directory authorities' approved-routers files, allow
30676       fingerprints with or without space.
30677     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
30678       controller can query our current bootstrap state in case it attaches
30679       partway through and wants to catch up.
30680     - Send an initial "Starting" bootstrap status event, so we have a
30681       state to start out in.
30683   o Minor bugfixes:
30684     - Asking for a conditional consensus at .../consensus/<fingerprints>
30685       would crash a dirserver if it did not already have a
30686       consensus. Bugfix on 0.2.1.1-alpha.
30687     - Clean up some macro/CPP interactions: some GCC versions don't like
30688       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
30689       0.2.0.x.
30691   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
30692     - Directory authorities shouldn't complain about bootstrapping
30693       problems just because they do a lot of reachability testing and
30694       some of the connection attempts fail.
30695     - Start sending "count" and "recommendation" key/value pairs in
30696       bootstrap problem status events, so the controller can hear about
30697       problems even before Tor decides they're worth reporting for sure.
30698     - If you're using bridges, generate "bootstrap problem" warnings
30699       as soon as you run out of working bridges, rather than waiting
30700       for ten failures -- which will never happen if you have less than
30701       ten bridges.
30702     - If we close our OR connection because there's been a circuit
30703       pending on it for too long, we were telling our bootstrap status
30704       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
30707 Changes in version 0.2.1.1-alpha - 2008-06-13
30708   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
30709   were making the Tor process bloat especially on Linux; makes our TLS
30710   handshake blend in better; sends "bootstrap phase" status events to
30711   the controller, so it can keep the user informed of progress (and
30712   problems) fetching directory information and establishing circuits;
30713   and adds a variety of smaller features.
30715   o Major features:
30716     - More work on making our TLS handshake blend in: modify the list
30717       of ciphers advertised by OpenSSL in client mode to even more
30718       closely resemble a common web browser. We cheat a little so that
30719       we can advertise ciphers that the locally installed OpenSSL doesn't
30720       know about.
30721     - Start sending "bootstrap phase" status events to the controller,
30722       so it can keep the user informed of progress fetching directory
30723       information and establishing circuits. Also inform the controller
30724       if we think we're stuck at a particular bootstrap phase. Implements
30725       proposal 137.
30726     - Resume using OpenSSL's RAND_poll() for better (and more portable)
30727       cross-platform entropy collection again. We used to use it, then
30728       stopped using it because of a bug that could crash systems that
30729       called RAND_poll when they had a lot of fds open. It looks like the
30730       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
30731       at startup, and to call RAND_poll() when we reseed later only if
30732       we have a non-buggy OpenSSL version.
30734   o Major bugfixes:
30735     - When we choose to abandon a new entry guard because we think our
30736       older ones might be better, close any circuits pending on that
30737       new entry guard connection. This fix should make us recover much
30738       faster when our network is down and then comes back. Bugfix on
30739       0.1.2.8-beta; found by lodger.
30741   o Memory fixes and improvements:
30742     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
30743       to avoid unused RAM in buffer chunks and memory pools.
30744     - Speed up parsing and cut down on memory fragmentation by using
30745       stack-style allocations for parsing directory objects. Previously,
30746       this accounted for over 40% of allocations from within Tor's code
30747       on a typical directory cache.
30748     - Use a Bloom filter rather than a digest-based set to track which
30749       descriptors we need to keep around when we're cleaning out old
30750       router descriptors. This speeds up the computation significantly,
30751       and may reduce fragmentation.
30752     - Reduce the default smartlist size from 32 to 16; it turns out that
30753       most smartlists hold around 8-12 elements tops.
30754     - Make dumpstats() log the fullness and size of openssl-internal
30755       buffers.
30756     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
30757       patch to their OpenSSL, turn it on to save memory on servers. This
30758       patch will (with any luck) get included in a mainline distribution
30759       before too long.
30760     - Never use OpenSSL compression: it wastes RAM and CPU trying to
30761       compress cells, which are basically all encrypted, compressed,
30762       or both.
30764   o Minor bugfixes:
30765     - Stop reloading the router list from disk for no reason when we
30766       run out of reachable directory mirrors. Once upon a time reloading
30767       it would set the 'is_running' flag back to 1 for them. It hasn't
30768       done that for a long time.
30769     - In very rare situations new hidden service descriptors were
30770       published earlier than 30 seconds after the last change to the
30771       service. (We currently think that a hidden service descriptor
30772       that's been stable for 30 seconds is worth publishing.)
30774   o Minor features:
30775     - Allow separate log levels to be configured for different logging
30776       domains. For example, this allows one to log all notices, warnings,
30777       or errors, plus all memory management messages of level debug or
30778       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
30779     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
30780       and stop using a warning that had become unfixably verbose under
30781       GCC 4.3.
30782     - New --hush command-line option similar to --quiet. While --quiet
30783       disables all logging to the console on startup, --hush limits the
30784       output to messages of warning and error severity.
30785     - Servers support a new URL scheme for consensus downloads that
30786       allows the client to specify which authorities are trusted.
30787       The server then only sends the consensus if the client will trust
30788       it. Otherwise a 404 error is sent back. Clients use this
30789       new scheme when the server supports it (meaning it's running
30790       0.2.1.1-alpha or later). Implements proposal 134.
30791     - New configure/torrc options (--enable-geoip-stats,
30792       DirRecordUsageByCountry) to record how many IPs we've served
30793       directory info to in each country code, how many status documents
30794       total we've sent to each country code, and what share of the total
30795       directory requests we should expect to see.
30796     - Use the TLS1 hostname extension to more closely resemble browser
30797       behavior.
30798     - Lots of new unit tests.
30799     - Add a macro to implement the common pattern of iterating through
30800       two parallel lists in lockstep.
30803 Changes in version 0.2.0.28-rc - 2008-06-13
30804   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
30805   performance bug, and fixes a bunch of smaller bugs.
30807   o Anonymity fixes:
30808     - Fix a bug where, when we were choosing the 'end stream reason' to
30809       put in our relay end cell that we send to the exit relay, Tor
30810       clients on Windows were sometimes sending the wrong 'reason'. The
30811       anonymity problem is that exit relays may be able to guess whether
30812       the client is running Windows, thus helping partition the anonymity
30813       set. Down the road we should stop sending reasons to exit relays,
30814       or otherwise prevent future versions of this bug.
30816   o Major bugfixes:
30817     - While setting up a hidden service, some valid introduction circuits
30818       were overlooked and abandoned. This might be the reason for
30819       the long delay in making a hidden service available. Bugfix on
30820       0.2.0.14-alpha.
30822   o Minor features:
30823     - Update to the "June 9 2008" ip-to-country file.
30824     - Run 'make test' as part of 'make dist', so we stop releasing so
30825       many development snapshots that fail their unit tests.
30827   o Minor bugfixes:
30828     - When we're checking if we have enough dir info for each relay
30829       to begin establishing circuits, make sure that we actually have
30830       the descriptor listed in the consensus, not just any descriptor.
30831       Bugfix on 0.1.2.x.
30832     - Bridge relays no longer print "xx=0" in their extrainfo document
30833       for every single country code in the geoip db. Bugfix on
30834       0.2.0.27-rc.
30835     - Only warn when we fail to load the geoip file if we were planning to
30836       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
30837     - If we change our MaxAdvertisedBandwidth and then reload torrc,
30838       Tor won't realize it should publish a new relay descriptor. Fixes
30839       bug 688, reported by mfr. Bugfix on 0.1.2.x.
30840     - When we haven't had any application requests lately, don't bother
30841       logging that we have expired a bunch of descriptors. Bugfix
30842       on 0.1.2.x.
30843     - Make relay cells written on a connection count as non-padding when
30844       tracking how long a connection has been in use. Bugfix on
30845       0.2.0.1-alpha. Spotted by lodger.
30846     - Fix unit tests in 0.2.0.27-rc.
30847     - Fix compile on Windows.
30850 Changes in version 0.2.0.27-rc - 2008-06-03
30851   Tor 0.2.0.27-rc adds a few features we left out of the earlier
30852   release candidates. In particular, we now include an IP-to-country
30853   GeoIP database, so controllers can easily look up what country a
30854   given relay is in, and so bridge relays can give us some sanitized
30855   summaries about which countries are making use of bridges. (See proposal
30856   126-geoip-fetching.txt for details.)
30858   o Major features:
30859     - Include an IP-to-country GeoIP file in the tarball, so bridge
30860       relays can report sanitized summaries of the usage they're seeing.
30862   o Minor features:
30863     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
30864       Robert Hogan. Fixes the first part of bug 681.
30865     - Make bridge authorities never serve extrainfo docs.
30866     - Add support to detect Libevent versions in the 1.4.x series
30867       on mingw.
30868     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
30869     - Include a new contrib/tor-exit-notice.html file that exit relay
30870       operators can put on their website to help reduce abuse queries.
30872   o Minor bugfixes:
30873     - When tunneling an encrypted directory connection, and its first
30874       circuit fails, do not leave it unattached and ask the controller
30875       to deal. Fixes the second part of bug 681.
30876     - Make bridge authorities correctly expire old extrainfo documents
30877       from time to time.
30880 Changes in version 0.2.0.26-rc - 2008-05-13
30881   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
30882   in Debian's OpenSSL packages. All users running any 0.2.0.x version
30883   should upgrade, whether they're running Debian or not.
30885   o Major security fixes:
30886     - Use new V3 directory authority keys on the tor26, gabelmoo, and
30887       moria1 V3 directory authorities. The old keys were generated with
30888       a vulnerable version of Debian's OpenSSL package, and must be
30889       considered compromised. Other authorities' keys were not generated
30890       with an affected version of OpenSSL.
30892   o Major bugfixes:
30893     - List authority signatures as "unrecognized" based on DirServer
30894       lines, not on cert cache. Bugfix on 0.2.0.x.
30896   o Minor features:
30897     - Add a new V3AuthUseLegacyKey option to make it easier for
30898       authorities to change their identity keys if they have to.
30901 Changes in version 0.2.0.25-rc - 2008-04-23
30902   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
30904   o Major bugfixes:
30905     - Remember to initialize threading before initializing logging.
30906       Otherwise, many BSD-family implementations will crash hard on
30907       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
30909   o Minor bugfixes:
30910     - Authorities correctly free policies on bad servers on
30911       exit. Fixes bug 672. Bugfix on 0.2.0.x.
30914 Changes in version 0.2.0.24-rc - 2008-04-22
30915   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
30916   v3 directory authority, makes relays with dynamic IP addresses and no
30917   DirPort notice more quickly when their IP address changes, fixes a few
30918   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
30920   o New directory authorities:
30921     - Take lefkada out of the list of v3 directory authorities, since
30922       it has been down for months.
30923     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
30924       authority.
30926   o Major bugfixes:
30927     - Detect address changes more quickly on non-directory mirror
30928       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
30930   o Minor features (security):
30931     - Reject requests for reverse-dns lookup of names that are in
30932       a private address space. Patch from lodger.
30933     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
30934       from lodger.
30936   o Minor bugfixes (crashes):
30937     - Avoid a rare assert that can trigger when Tor doesn't have much
30938       directory information yet and it tries to fetch a v2 hidden
30939       service descriptor. Fixes bug 651, reported by nwf.
30940     - Initialize log mutex before initializing dmalloc. Otherwise,
30941       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
30942     - Use recursive pthread mutexes in order to avoid deadlock when
30943       logging debug-level messages to a controller. Bug spotted by nwf,
30944       bugfix on 0.2.0.16-alpha.
30946   o Minor bugfixes (resource management):
30947     - Keep address policies from leaking memory: start their refcount
30948       at 1, not 2. Bugfix on 0.2.0.16-alpha.
30949     - Free authority certificates on exit, so they don't look like memory
30950       leaks. Bugfix on 0.2.0.19-alpha.
30951     - Free static hashtables for policy maps and for TLS connections on
30952       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
30953     - Avoid allocating extra space when computing consensuses on 64-bit
30954       platforms. Bug spotted by aakova.
30956   o Minor bugfixes (misc):
30957     - Do not read the configuration file when we've only been told to
30958       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
30959       based on patch from Sebastian Hahn.
30960     - Exit relays that are used as a client can now reach themselves
30961       using the .exit notation, rather than just launching an infinite
30962       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
30963     - When attempting to open a logfile fails, tell us why.
30964     - Fix a dumb bug that was preventing us from knowing that we should
30965       preemptively build circuits to handle expected directory requests.
30966       Fixes bug 660. Bugfix on 0.1.2.x.
30967     - Warn less verbosely about clock skew from netinfo cells from
30968       untrusted sources. Fixes bug 663.
30969     - Make controller stream events for DNS requests more consistent,
30970       by adding "new stream" events for DNS requests, and removing
30971       spurious "stream closed" events" for cached reverse resolves.
30972       Patch from mwenge. Fixes bug 646.
30973     - Correctly notify one-hop connections when a circuit build has
30974       failed. Possible fix for bug 669. Found by lodger.
30977 Changes in version 0.2.0.23-rc - 2008-03-24
30978   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
30979   makes bootstrapping faster if the first directory mirror you contact
30980   is down. The bundles also include the new Vidalia 0.1.2 release.
30982   o Major bugfixes:
30983     - When a tunneled directory request is made to a directory server
30984       that's down, notice after 30 seconds rather than 120 seconds. Also,
30985       fail any begindir streams that are pending on it, so they can
30986       retry elsewhere. This was causing multi-minute delays on bootstrap.
30989 Changes in version 0.2.0.22-rc - 2008-03-18
30990   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
30991   enables encrypted directory connections by default for non-relays, fixes
30992   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
30993   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
30995   o Major features:
30996     - Enable encrypted directory connections by default for non-relays,
30997       so censor tools that block Tor directory connections based on their
30998       plaintext patterns will no longer work. This means Tor works in
30999       certain censored countries by default again.
31001   o Major bugfixes:
31002     - Make sure servers always request certificates from clients during
31003       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
31004     - Do not enter a CPU-eating loop when a connection is closed in
31005       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
31006       diagnosed by lodger; bugfix on 0.2.0.20-rc.
31007     - Fix assertion failure that could occur when a blocked circuit
31008       became unblocked, and it had pending client DNS requests. Bugfix
31009       on 0.2.0.1-alpha. Fixes bug 632.
31011   o Minor bugfixes (on 0.1.2.x):
31012     - Generate "STATUS_SERVER" events rather than misspelled
31013       "STATUS_SEVER" events. Caught by mwenge.
31014     - When counting the number of bytes written on a TLS connection,
31015       look at the BIO actually used for writing to the network, not
31016       at the BIO used (sometimes) to buffer data for the network.
31017       Looking at different BIOs could result in write counts on the
31018       order of ULONG_MAX. Fixes bug 614.
31019     - On Windows, correctly detect errors when listing the contents of
31020       a directory. Fix from lodger.
31022   o Minor bugfixes (on 0.2.0.x):
31023     - Downgrade "sslv3 alert handshake failure" message to INFO.
31024     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
31025       left BandwidthRate and BandwidthBurst at the default, we would be
31026       silently limited by those defaults. Now raise them to match the
31027       RelayBandwidth* values.
31028     - Fix the SVK version detection logic to work correctly on a branch.
31029     - Make --enable-openbsd-malloc work correctly on Linux with alpha
31030       CPUs. Fixes bug 625.
31031     - Logging functions now check that the passed severity is sane.
31032     - Use proper log levels in the testsuite call of
31033       get_interface_address6().
31034     - When using a nonstandard malloc, do not use the platform values for
31035       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
31036     - Make the openbsd malloc code use 8k pages on alpha CPUs and
31037       16k pages on ia64.
31038     - Detect mismatched page sizes when using --enable-openbsd-malloc.
31039     - Avoid double-marked-for-close warning when certain kinds of invalid
31040       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
31041       for bug 617. Bugfix on 0.2.0.1-alpha.
31042     - Make sure that the "NULL-means-reject *:*" convention is followed by
31043       all the policy manipulation functions, avoiding some possible crash
31044       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
31045     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
31046       actually works, and doesn't warn about every single reverse lookup.
31047       Fixes the other part of bug 617. Bugfix on 0.2.0.1-alpha.
31049   o Minor features:
31050     - Only log guard node status when guard node status has changed.
31051     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
31052       make "INFO" 75% less verbose.
31055 Changes in version 0.2.0.21-rc - 2008-03-02
31056   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
31057   makes Tor work well with Vidalia again, fixes a rare assert bug,
31058   and fixes a pair of more minor bugs. The bundles also include Vidalia
31059   0.1.0 and Torbutton 1.1.16.
31061   o Major bugfixes:
31062     - The control port should declare that it requires password auth
31063       when HashedControlSessionPassword is set too. Patch from Matt Edman;
31064       bugfix on 0.2.0.20-rc. Fixes bug 615.
31065     - Downgrade assert in connection_buckets_decrement() to a log message.
31066       This may help us solve bug 614, and in any case will make its
31067       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
31068     - We were sometimes miscounting the number of bytes read from the
31069       network, causing our rate limiting to not be followed exactly.
31070       Bugfix on 0.2.0.16-alpha. Reported by lodger.
31072   o Minor bugfixes:
31073     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
31074       OpenSSL versions should have been working fine. Diagnosis and patch
31075       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
31076       Bugfix on 0.2.0.20-rc.
31079 Changes in version 0.2.0.20-rc - 2008-02-24
31080   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
31081   makes more progress towards normalizing Tor's TLS handshake, makes
31082   hidden services work better again, helps relays bootstrap if they don't
31083   know their IP address, adds optional support for linking in openbsd's
31084   allocator or tcmalloc, allows really fast relays to scale past 15000
31085   sockets, and fixes a bunch of minor bugs reported by Veracode.
31087   o Major features:
31088     - Enable the revised TLS handshake based on the one designed by
31089       Steven Murdoch in proposal 124, as revised in proposal 130. It
31090       includes version negotiation for OR connections as described in
31091       proposal 105. The new handshake is meant to be harder for censors
31092       to fingerprint, and it adds the ability to detect certain kinds of
31093       man-in-the-middle traffic analysis attacks. The version negotiation
31094       feature will allow us to improve Tor's link protocol more safely
31095       in the future.
31096     - Choose which bridge to use proportional to its advertised bandwidth,
31097       rather than uniformly at random. This should speed up Tor for
31098       bridge users. Also do this for people who set StrictEntryNodes.
31099     - When a TrackHostExits-chosen exit fails too many times in a row,
31100       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
31102   o Major bugfixes:
31103     - Resolved problems with (re-)fetching hidden service descriptors.
31104       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
31105       and 0.2.0.19-alpha.
31106     - If we only ever used Tor for hidden service lookups or posts, we
31107       would stop building circuits and start refusing connections after
31108       24 hours, since we falsely believed that Tor was dormant. Reported
31109       by nwf; bugfix on 0.1.2.x.
31110     - Servers that don't know their own IP address should go to the
31111       authorities for their first directory fetch, even if their DirPort
31112       is off or if they don't know they're reachable yet. This will help
31113       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
31114     - When counting the number of open sockets, count not only the number
31115       of sockets we have received from the socket() call, but also
31116       the number we've gotten from accept() and socketpair(). This bug
31117       made us fail to count all sockets that we were using for incoming
31118       connections. Bugfix on 0.2.0.x.
31119     - Fix code used to find strings within buffers, when those strings
31120       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
31121     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
31122     - Add a new __HashedControlSessionPassword option for controllers
31123       to use for one-off session password hashes that shouldn't get
31124       saved to disk by SAVECONF --- Vidalia users were accumulating a
31125       pile of HashedControlPassword lines in their torrc files, one for
31126       each time they had restarted Tor and then clicked Save. Make Tor
31127       automatically convert "HashedControlPassword" to this new option but
31128       only when it's given on the command line. Partial fix for bug 586.
31130   o Minor features (performance):
31131     - Tune parameters for cell pool allocation to minimize amount of
31132       RAM overhead used.
31133     - Add OpenBSD malloc code from phk as an optional malloc
31134       replacement on Linux: some glibc libraries do very poorly
31135       with Tor's memory allocation patterns. Pass
31136       --enable-openbsd-malloc to get the replacement malloc code.
31137     - Add a --with-tcmalloc option to the configure script to link
31138       against tcmalloc (if present). Does not yet search for
31139       non-system include paths.
31140     - Stop imposing an arbitrary maximum on the number of file descriptors
31141       used for busy servers. Bug reported by Olaf Selke; patch from
31142       Sebastian Hahn.
31144   o Minor features (other):
31145     - When SafeLogging is disabled, log addresses along with all TLS
31146       errors.
31147     - When building with --enable-gcc-warnings, check for whether Apple's
31148       warning "-Wshorten-64-to-32" is available.
31149     - Add a --passphrase-fd argument to the tor-gencert command for
31150       scriptability.
31152   o Minor bugfixes (memory leaks and code problems):
31153     - We were leaking a file descriptor if Tor started with a zero-length
31154       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
31155     - Detect size overflow in zlib code. Reported by Justin Ferguson and
31156       Dan Kaminsky.
31157     - We were comparing the raw BridgePassword entry with a base64'ed
31158       version of it, when handling a "/tor/networkstatus-bridges"
31159       directory request. Now compare correctly. Noticed by Veracode.
31160     - Recover from bad tracked-since value in MTBF-history file.
31161       Should fix bug 537.
31162     - Alter the code that tries to recover from unhandled write
31163       errors, to not try to flush onto a socket that's given us
31164       unhandled errors. Bugfix on 0.1.2.x.
31165     - Make Unix controlsockets work correctly on OpenBSD. Patch from
31166       tup. Bugfix on 0.2.0.3-alpha.
31168   o Minor bugfixes (other):
31169     - If we have an extra-info document for our server, always make
31170       it available on the control port, even if we haven't gotten
31171       a copy of it from an authority yet. Patch from mwenge.
31172     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
31173     - Directory mirrors no longer include a guess at the client's IP
31174       address if the connection appears to be coming from the same /24
31175       network; it was producing too many wrong guesses.
31176     - Make the new hidden service code respect the SafeLogging setting.
31177       Bugfix on 0.2.0.x. Patch from Karsten.
31178     - When starting as an authority, do not overwrite all certificates
31179       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
31180     - If we're trying to flush the last bytes on a connection (for
31181       example, when answering a directory request), reset the
31182       time-to-give-up timeout every time we manage to write something
31183       on the socket. Bugfix on 0.1.2.x.
31184     - Change the behavior of "getinfo status/good-server-descriptor"
31185       so it doesn't return failure when any authority disappears.
31186     - Even though the man page said that "TrackHostExits ." should
31187       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
31188     - Report TLS "zero return" case as a "clean close" and "IO error"
31189       as a "close". Stop calling closes "unexpected closes": existing
31190       Tors don't use SSL_close(), so having a connection close without
31191       the TLS shutdown handshake is hardly unexpected.
31192     - Send NAMESERVER_STATUS messages for a single failed nameserver
31193       correctly.
31195   o Code simplifications and refactoring:
31196     - Remove the tor_strpartition function: its logic was confused,
31197       and it was only used for one thing that could be implemented far
31198       more easily.
31201 Changes in version 0.2.0.19-alpha - 2008-02-09
31202   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
31203   handshake, makes path selection for relays more secure and IP address
31204   guessing more robust, and generally fixes a lot of bugs in preparation
31205   for calling the 0.2.0 branch stable.
31207   o Major features:
31208     - Do not include recognizeable strings in the commonname part of
31209       Tor's x509 certificates.
31211   o Major bugfixes:
31212     - If we're a relay, avoid picking ourselves as an introduction point,
31213       a rendezvous point, or as the final hop for internal circuits. Bug
31214       reported by taranis and lodger. Bugfix on 0.1.2.x.
31215     - Patch from "Andrew S. Lists" to catch when we contact a directory
31216       mirror at IP address X and he says we look like we're coming from
31217       IP address X. Bugfix on 0.1.2.x.
31219   o Minor features (security):
31220     - Be more paranoid about overwriting sensitive memory on free(),
31221       as a defensive programming tactic to ensure forward secrecy.
31223   o Minor features (directory authority):
31224     - Actually validate the options passed to AuthDirReject,
31225       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
31226     - Reject router descriptors with out-of-range bandwidthcapacity or
31227       bandwidthburst values.
31229   o Minor features (controller):
31230     - Reject controller commands over 1MB in length. This keeps rogue
31231       processes from running us out of memory.
31233   o Minor features (misc):
31234     - Give more descriptive well-formedness errors for out-of-range
31235       hidden service descriptor/protocol versions.
31236     - Make memory debugging information describe more about history
31237       of cell allocation, so we can help reduce our memory use.
31239   o Deprecated features (controller):
31240     - The status/version/num-versioning and status/version/num-concurring
31241       GETINFO options are no longer useful in the v3 directory protocol:
31242       treat them as deprecated, and warn when they're used.
31244   o Minor bugfixes:
31245     - When our consensus networkstatus has been expired for a while, stop
31246       being willing to build circuits using it. Fixes bug 401. Bugfix
31247       on 0.1.2.x.
31248     - Directory caches now fetch certificates from all authorities
31249       listed in a networkstatus consensus, even when they do not
31250       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
31251     - When connecting to a bridge without specifying its key, insert
31252       the connection into the identity-to-connection map as soon as
31253       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
31254     - Detect versions of OS X where malloc_good_size() is present in the
31255       library but never actually declared. Resolves bug 587. Bugfix
31256       on 0.2.0.x.
31257     - Stop incorrectly truncating zlib responses to directory authority
31258       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
31259     - Stop recommending that every server operator send mail to tor-ops.
31260       Resolves bug 597. Bugfix on 0.1.2.x.
31261     - Don't trigger an assert if we start a directory authority with a
31262       private IP address (like 127.0.0.1).
31263     - Avoid possible failures when generating a directory with routers
31264       with over-long versions strings, or too many flags set. Bugfix
31265       on 0.1.2.x.
31266     - If an attempt to launch a DNS resolve request over the control
31267       port fails because we have overrun the limit on the number of
31268       connections, tell the controller that the request has failed.
31269     - Avoid using too little bandwidth when our clock skips a few
31270       seconds. Bugfix on 0.1.2.x.
31271     - Fix shell error when warning about missing packages in configure
31272       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
31273     - Do not become confused when receiving a spurious VERSIONS-like
31274       cell from a confused v1 client. Bugfix on 0.2.0.x.
31275     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
31276       introduction points for a hidden service have failed. Patch from
31277       Karsten Loesing. Bugfix on 0.2.0.x.
31279   o Code simplifications and refactoring:
31280     - Remove some needless generality from cpuworker code, for improved
31281       type-safety.
31282     - Stop overloading the circuit_t.onionskin field for both "onionskin
31283       from a CREATE cell that we are waiting for a cpuworker to be
31284       assigned" and "onionskin from an EXTEND cell that we are going to
31285       send to an OR as soon as we are connected". Might help with bug 600.
31286     - Add an in-place version of aes_crypt() so that we can avoid doing a
31287       needless memcpy() call on each cell payload.
31290 Changes in version 0.2.0.18-alpha - 2008-01-25
31291   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
31292   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
31293   that can warn or reject connections to ports generally associated with
31294   vulnerable-plaintext protocols.
31296   o New directory authorities:
31297     - Set up dannenberg (run by CCC) as the sixth v3 directory
31298       authority.
31300   o Major bugfixes:
31301     - Fix a major memory leak when attempting to use the v2 TLS
31302       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
31303     - We accidentally enabled the under-development v2 TLS handshake
31304       code, which was causing log entries like "TLS error while
31305       renegotiating handshake". Disable it again. Resolves bug 590.
31306     - We were computing the wrong Content-Length: header for directory
31307       responses that need to be compressed on the fly, causing clients
31308       asking for those items to always fail. Bugfix on 0.2.0.x; partially
31309       fixes bug 593.
31311   o Major features:
31312     - Avoid going directly to the directory authorities even if you're a
31313       relay, if you haven't found yourself reachable yet or if you've
31314       decided not to advertise your dirport yet. Addresses bug 556.
31315     - If we've gone 12 hours since our last bandwidth check, and we
31316       estimate we have less than 50KB bandwidth capacity but we could
31317       handle more, do another bandwidth test.
31318     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
31319       Tor can warn and/or refuse connections to ports commonly used with
31320       vulnerable-plaintext protocols. Currently we warn on ports 23,
31321       109, 110, and 143, but we don't reject any.
31323   o Minor bugfixes:
31324     - When we setconf ClientOnly to 1, close any current OR and Dir
31325       listeners. Reported by mwenge.
31326     - When we get a consensus that's been signed by more people than
31327       we expect, don't log about it; it's not a big deal. Reported
31328       by Kyle Williams.
31330   o Minor features:
31331     - Don't answer "/tor/networkstatus-bridges" directory requests if
31332       the request isn't encrypted.
31333     - Make "ClientOnly 1" config option disable directory ports too.
31334     - Patches from Karsten Loesing to make v2 hidden services more
31335       robust: work even when there aren't enough HSDir relays available;
31336       retry when a v2 rend desc fetch fails; but don't retry if we
31337       already have a usable v0 rend desc.
31340 Changes in version 0.2.0.17-alpha - 2008-01-17
31341   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
31343   o Compile fixes:
31344     - Make the tor-gencert man page get included correctly in the tarball.
31347 Changes in version 0.2.0.16-alpha - 2008-01-17
31348   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
31349   Loesing, and generally cleans up a lot of features and minor bugs.
31351   o New directory authorities:
31352     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
31353       authority.
31355   o Major performance improvements:
31356     - Switch our old ring buffer implementation for one more like that
31357       used by free Unix kernels. The wasted space in a buffer with 1mb
31358       of data will now be more like 8k than 1mb. The new implementation
31359       also avoids realloc();realloc(); patterns that can contribute to
31360       memory fragmentation.
31362   o Minor features:
31363     - Configuration files now accept C-style strings as values. This
31364       helps encode characters not allowed in the current configuration
31365       file format, such as newline or #. Addresses bug 557.
31366     - Although we fixed bug 539 (where servers would send HTTP status 503
31367       responses _and_ send a body too), there are still servers out
31368       there that haven't upgraded. Therefore, make clients parse such
31369       bodies when they receive them.
31370     - When we're not serving v2 directory information, there is no reason
31371       to actually keep any around. Remove the obsolete files and directory
31372       on startup if they are very old and we aren't going to serve them.
31374   o Minor performance improvements:
31375     - Reference-count and share copies of address policy entries; only 5%
31376       of them were actually distinct.
31377     - Never walk through the list of logs if we know that no log is
31378       interested in a given message.
31380   o Minor bugfixes:
31381     - When an authority has not signed a consensus, do not try to
31382       download a nonexistent "certificate with key 00000000". Bugfix
31383       on 0.2.0.x. Fixes bug 569.
31384     - Fix a rare assert error when we're closing one of our threads:
31385       use a mutex to protect the list of logs, so we never write to the
31386       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
31387       bug 575, which is kind of the revenge of bug 222.
31388     - Patch from Karsten Loesing to complain less at both the client
31389       and the relay when a relay used to have the HSDir flag but doesn't
31390       anymore, and we try to upload a hidden service descriptor.
31391     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
31392       0.2.0.15-alpha.
31393     - Do not try to download missing certificates until we have tried
31394       to check our fallback consensus. Fixes bug 583.
31395     - Make bridges round reported GeoIP stats info up to the nearest
31396       estimate, not down. Now we can distinguish between "0 people from
31397       this country" and "1 person from this country".
31398     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
31399     - Avoid possible segfault if key generation fails in
31400       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
31401     - Avoid segfault in the case where a badly behaved v2 versioning
31402       directory sends a signed networkstatus with missing client-versions.
31403       Bugfix on 0.1.2.
31404     - Avoid segfaults on certain complex invocations of
31405       router_get_by_hexdigest(). Bugfix on 0.1.2.
31406     - Correct bad index on array access in parse_http_time(). Bugfix
31407       on 0.2.0.
31408     - Fix possible bug in vote generation when server versions are present
31409       but client versions are not.
31410     - Fix rare bug on REDIRECTSTREAM control command when called with no
31411       port set: it could erroneously report an error when none had
31412       happened.
31413     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
31414       compressing large objects and find ourselves with more than 4k
31415       left over. Bugfix on 0.2.0.
31416     - Fix a small memory leak when setting up a hidden service.
31417     - Fix a few memory leaks that could in theory happen under bizarre
31418       error conditions.
31419     - Fix an assert if we post a general-purpose descriptor via the
31420       control port but that descriptor isn't mentioned in our current
31421       network consensus. Bug reported by Jon McLachlan; bugfix on
31422       0.2.0.9-alpha.
31424   o Minor features (controller):
31425     - Get NS events working again. Patch from tup.
31426     - The GETCONF command now escapes and quotes configuration values
31427       that don't otherwise fit into the torrc file.
31428     - The SETCONF command now handles quoted values correctly.
31430   o Minor features (directory authorities):
31431     - New configuration options to override default maximum number of
31432       servers allowed on a single IP address. This is important for
31433       running a test network on a single host.
31434     - Actually implement the -s option to tor-gencert.
31435     - Add a manual page for tor-gencert.
31437   o Minor features (bridges):
31438     - Bridge authorities no longer serve bridge descriptors over
31439       unencrypted connections.
31441   o Minor features (other):
31442     - Add hidden services and DNSPorts to the list of things that make
31443       Tor accept that it has running ports. Change starting Tor with no
31444       ports from a fatal error to a warning; we might change it back if
31445       this turns out to confuse anybody. Fixes bug 579.
31448 Changes in version 0.1.2.19 - 2008-01-17
31449   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
31450   exit policy a little bit more conservative so it's safer to run an
31451   exit relay on a home system, and fixes a variety of smaller issues.
31453   o Security fixes:
31454     - Exit policies now reject connections that are addressed to a
31455       relay's public (external) IP address too, unless
31456       ExitPolicyRejectPrivate is turned off. We do this because too
31457       many relays are running nearby to services that trust them based
31458       on network address.
31460   o Major bugfixes:
31461     - When the clock jumps forward a lot, do not allow the bandwidth
31462       buckets to become negative. Fixes bug 544.
31463     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
31464       on every successful resolve. Reported by Mike Perry.
31465     - Purge old entries from the "rephist" database and the hidden
31466       service descriptor database even when DirPort is zero.
31467     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
31468       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
31469       crashing or mis-answering these requests.
31470     - When we decide to send a 503 response to a request for servers, do
31471       not then also send the server descriptors: this defeats the whole
31472       purpose. Fixes bug 539.
31474   o Minor bugfixes:
31475     - Changing the ExitPolicyRejectPrivate setting should cause us to
31476       rebuild our server descriptor.
31477     - Fix handling of hex nicknames when answering controller requests for
31478       networkstatus by name, or when deciding whether to warn about
31479       unknown routers in a config option. (Patch from mwenge.)
31480     - Fix a couple of hard-to-trigger autoconf problems that could result
31481       in really weird results on platforms whose sys/types.h files define
31482       nonstandard integer types.
31483     - Don't try to create the datadir when running --verify-config or
31484       --hash-password. Resolves bug 540.
31485     - If we were having problems getting a particular descriptor from the
31486       directory caches, and then we learned about a new descriptor for
31487       that router, we weren't resetting our failure count. Reported
31488       by lodger.
31489     - Although we fixed bug 539 (where servers would send HTTP status 503
31490       responses _and_ send a body too), there are still servers out there
31491       that haven't upgraded. Therefore, make clients parse such bodies
31492       when they receive them.
31493     - Run correctly on systems where rlim_t is larger than unsigned long.
31494       This includes some 64-bit systems.
31495     - Run correctly on platforms (like some versions of OS X 10.5) where
31496       the real limit for number of open files is OPEN_FILES, not rlim_max
31497       from getrlimit(RLIMIT_NOFILES).
31498     - Avoid a spurious free on base64 failure.
31499     - Avoid segfaults on certain complex invocations of
31500       router_get_by_hexdigest().
31501     - Fix rare bug on REDIRECTSTREAM control command when called with no
31502       port set: it could erroneously report an error when none had
31503       happened.
31506 Changes in version 0.2.0.15-alpha - 2007-12-25
31507   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
31508   features added in 0.2.0.13-alpha.
31510   o Major bugfixes:
31511     - Fix several remotely triggerable asserts based on DirPort requests
31512       for a v2 or v3 networkstatus object before we were prepared. This
31513       was particularly bad for 0.2.0.13 and later bridge relays, who
31514       would never have a v2 networkstatus and would thus always crash
31515       when used. Bugfixes on 0.2.0.x.
31516     - Estimate the v3 networkstatus size more accurately, rather than
31517       estimating it at zero bytes and giving it artificially high priority
31518       compared to other directory requests. Bugfix on 0.2.0.x.
31520   o Minor bugfixes:
31521     - Fix configure.in logic for cross-compilation.
31522     - When we load a bridge descriptor from the cache, and it was
31523       previously unreachable, mark it as retriable so we won't just
31524       ignore it. Also, try fetching a new copy immediately. Bugfixes
31525       on 0.2.0.13-alpha.
31526     - The bridge GeoIP stats were counting other relays, for example
31527       self-reachability and authority-reachability tests.
31529   o Minor features:
31530     - Support compilation to target iPhone; patch from cjacker huang.
31531       To build for iPhone, pass the --enable-iphone option to configure.
31534 Changes in version 0.2.0.14-alpha - 2007-12-23
31535   o Major bugfixes:
31536     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
31537       without a datadirectory from a previous Tor install. Reported
31538       by Zax.
31539     - Fix a crash when we fetch a descriptor that turns out to be
31540       unexpected (it used to be in our networkstatus when we started
31541       fetching it, but it isn't in our current networkstatus), and we
31542       aren't using bridges. Bugfix on 0.2.0.x.
31543     - Fix a crash when accessing hidden services: it would work the first
31544       time you use a given introduction point for your service, but
31545       on subsequent requests we'd be using garbage memory. Fixed by
31546       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
31547     - Fix a crash when we load a bridge descriptor from disk but we don't
31548       currently have a Bridge line for it in our torrc. Bugfix on
31549       0.2.0.13-alpha.
31551   o Major features:
31552     - If bridge authorities set BridgePassword, they will serve a
31553       snapshot of known bridge routerstatuses from their DirPort to
31554       anybody who knows that password. Unset by default.
31556   o Minor bugfixes:
31557     - Make the unit tests build again.
31558     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
31559     - Make PublishServerDescriptor default to 1, so the default doesn't
31560       have to change as we invent new directory protocol versions.
31561     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
31562       be included unless sys/time.h is already included. Fixes
31563       bug 553. Bugfix on 0.2.0.x.
31564     - If we receive a general-purpose descriptor and then receive an
31565       identical bridge-purpose descriptor soon after, don't discard
31566       the next one as a duplicate.
31568   o Minor features:
31569     - If BridgeRelay is set to 1, then the default for
31570       PublishServerDescriptor is now "bridge" rather than "v2,v3".
31571     - If the user sets RelayBandwidthRate but doesn't set
31572       RelayBandwidthBurst, then make them equal rather than erroring out.
31575 Changes in version 0.2.0.13-alpha - 2007-12-21
31576   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
31577   Goodell, fixes many more bugs, and adds a lot of infrastructure for
31578   upcoming features.
31580   o New directory authorities:
31581     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
31582       authority.
31584   o Major bugfixes:
31585     - Only update guard status (usable / not usable) once we have
31586       enough directory information. This was causing us to always pick
31587       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
31588       causing us to discard all our guards on startup if we hadn't been
31589       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
31590     - Purge old entries from the "rephist" database and the hidden
31591       service descriptor databases even when DirPort is zero. Bugfix
31592       on 0.1.2.x.
31593     - We were ignoring our RelayBandwidthRate for the first 30 seconds
31594       after opening a circuit -- even a relayed circuit. Bugfix on
31595       0.2.0.3-alpha.
31596     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
31597       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
31598       crashing or mis-answering these types of requests.
31599     - Relays were publishing their server descriptor to v1 and v2
31600       directory authorities, but they didn't try publishing to v3-only
31601       authorities. Fix this; and also stop publishing to v1 authorities.
31602       Bugfix on 0.2.0.x.
31603     - When we were reading router descriptors from cache, we were ignoring
31604       the annotations -- so for example we were reading in bridge-purpose
31605       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
31606     - When we decided to send a 503 response to a request for servers, we
31607       were then also sending the server descriptors: this defeats the
31608       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
31610   o Major features:
31611     - Bridge relays now behave like clients with respect to time
31612       intervals for downloading new consensus documents -- otherwise they
31613       stand out. Bridge users now wait until the end of the interval,
31614       so their bridge relay will be sure to have a new consensus document.
31615     - Three new config options (AlternateDirAuthority,
31616       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
31617       user selectively replace the default directory authorities by type,
31618       rather than the all-or-nothing replacement that DirServer offers.
31619     - Tor can now be configured to read a GeoIP file from disk in one
31620       of two formats. This can be used by controllers to map IP addresses
31621       to countries. Eventually, it may support exit-by-country.
31622     - When possible, bridge relays remember which countries users
31623       are coming from, and report aggregate information in their
31624       extra-info documents, so that the bridge authorities can learn
31625       where Tor is blocked.
31626     - Bridge directory authorities now do reachability testing on the
31627       bridges they know. They provide router status summaries to the
31628       controller via "getinfo ns/purpose/bridge", and also dump summaries
31629       to a file periodically.
31630     - Stop fetching directory info so aggressively if your DirPort is
31631       on but your ORPort is off; stop fetching v2 dir info entirely.
31632       You can override these choices with the new FetchDirInfoEarly
31633       config option.
31635   o Minor bugfixes:
31636     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
31637       consensus documents when there are too many relays at a single
31638       IP address. Now clear it in v2 network status documents too, and
31639       also clear it in routerinfo_t when the relay is no longer listed
31640       in the relevant networkstatus document.
31641     - Don't crash if we get an unexpected value for the
31642       PublishServerDescriptor config option. Reported by Matt Edman;
31643       bugfix on 0.2.0.9-alpha.
31644     - Our new v2 hidden service descriptor format allows descriptors
31645       that have no introduction points. But Tor crashed when we tried
31646       to build a descriptor with no intro points (and it would have
31647       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
31648       by Karsten Loesing.
31649     - Fix building with dmalloc 5.5.2 with glibc.
31650     - Reject uploaded descriptors and extrainfo documents if they're
31651       huge. Otherwise we'll cache them all over the network and it'll
31652       clog everything up. Reported by Aljosha Judmayer.
31653     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
31654       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
31655     - When the DANGEROUS_VERSION controller status event told us we're
31656       running an obsolete version, it used the string "OLD" to describe
31657       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
31658       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
31659     - If we can't expand our list of entry guards (e.g. because we're
31660       using bridges or we have StrictEntryNodes set), don't mark relays
31661       down when they fail a directory request. Otherwise we're too quick
31662       to mark all our entry points down. Bugfix on 0.1.2.x.
31663     - Fix handling of hex nicknames when answering controller requests for
31664       networkstatus by name, or when deciding whether to warn about unknown
31665       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
31666     - Fix a couple of hard-to-trigger autoconf problems that could result
31667       in really weird results on platforms whose sys/types.h files define
31668       nonstandard integer types. Bugfix on 0.1.2.x.
31669     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
31670     - Don't crash on name lookup when we have no current consensus. Fixes
31671       bug 538; bugfix on 0.2.0.x.
31672     - Only Tors that want to mirror the v2 directory info should
31673       create the "cached-status" directory in their datadir. (All Tors
31674       used to create it.) Bugfix on 0.2.0.9-alpha.
31675     - Directory authorities should only automatically download Extra Info
31676       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
31678   o Minor features:
31679     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
31680       consumers. (We already do this on HUP.)
31681     - Authorities and caches fetch the v2 networkstatus documents
31682       less often, now that v3 is encouraged.
31683     - Add a new config option BridgeRelay that specifies you want to
31684       be a bridge relay. Right now the only difference is that it makes
31685       you answer begin_dir requests, and it makes you cache dir info,
31686       even if your DirPort isn't on.
31687     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
31688       ask about source, timestamp of arrival, purpose, etc. We need
31689       something like this to help Vidalia not do GeoIP lookups on bridge
31690       addresses.
31691     - Allow multiple HashedControlPassword config lines, to support
31692       multiple controller passwords.
31693     - Authorities now decide whether they're authoritative for a given
31694       router based on the router's purpose.
31695     - New config options AuthDirBadDir and AuthDirListBadDirs for
31696       authorities to mark certain relays as "bad directories" in the
31697       networkstatus documents. Also supports the "!baddir" directive in
31698       the approved-routers file.
31701 Changes in version 0.2.0.12-alpha - 2007-11-16
31702   This twelfth development snapshot fixes some more build problems as
31703   well as a few minor bugs.
31705   o Compile fixes:
31706     - Make it build on OpenBSD again. Patch from tup.
31707     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
31708       package-building for Red Hat, OS X, etc.
31710   o Minor bugfixes (on 0.1.2.x):
31711     - Changing the ExitPolicyRejectPrivate setting should cause us to
31712       rebuild our server descriptor.
31714   o Minor bugfixes (on 0.2.0.x):
31715     - When we're lacking a consensus, don't try to perform rendezvous
31716       operations. Reported by Karsten Loesing.
31717     - Fix a small memory leak whenever we decide against using a
31718       newly picked entry guard. Reported by Mike Perry.
31719     - When authorities detected more than two relays running on the same
31720       IP address, they were clearing all the status flags but forgetting
31721       to clear the "hsdir" flag. So clients were being told that a
31722       given relay was the right choice for a v2 hsdir lookup, yet they
31723       never had its descriptor because it was marked as 'not running'
31724       in the consensus.
31725     - If we're trying to fetch a bridge descriptor and there's no way
31726       the bridge authority could help us (for example, we don't know
31727       a digest, or there is no bridge authority), don't be so eager to
31728       fall back to asking the bridge authority.
31729     - If we're using bridges or have strictentrynodes set, and our
31730       chosen exit is in the same family as all our bridges/entry guards,
31731       then be flexible about families.
31733   o Minor features:
31734     - When we negotiate a v2 link-layer connection (not yet implemented),
31735       accept RELAY_EARLY cells and turn them into RELAY cells if we've
31736       negotiated a v1 connection for their next step. Initial code for
31737       proposal 110.
31740 Changes in version 0.2.0.11-alpha - 2007-11-12
31741   This eleventh development snapshot fixes some build problems with
31742   the previous snapshot. It also includes a more secure-by-default exit
31743   policy for relays, fixes an enormous memory leak for exit relays, and
31744   fixes another bug where servers were falling out of the directory list.
31746   o Security fixes:
31747     - Exit policies now reject connections that are addressed to a
31748       relay's public (external) IP address too, unless
31749       ExitPolicyRejectPrivate is turned off. We do this because too
31750       many relays are running nearby to services that trust them based
31751       on network address. Bugfix on 0.1.2.x.
31753   o Major bugfixes:
31754     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
31755       on every successful resolve. Reported by Mike Perry; bugfix
31756       on 0.1.2.x.
31757     - On authorities, never downgrade to old router descriptors simply
31758       because they're listed in the consensus. This created a catch-22
31759       where we wouldn't list a new descriptor because there was an
31760       old one in the consensus, and we couldn't get the new one in the
31761       consensus because we wouldn't list it. Possible fix for bug 548.
31762       Also, this might cause bug 543 to appear on authorities; if so,
31763       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
31765   o Packaging fixes on 0.2.0.10-alpha:
31766     - We were including instructions about what to do with the
31767       src/config/fallback-consensus file, but we weren't actually
31768       including it in the tarball. Disable all of that for now.
31770   o Minor features:
31771     - Allow people to say PreferTunnelledDirConns rather than
31772       PreferTunneledDirConns, for those alternate-spellers out there.
31774   o Minor bugfixes:
31775     - Don't reevaluate all the information from our consensus document
31776       just because we've downloaded a v2 networkstatus that we intend
31777       to cache. Fixes bug 545; bugfix on 0.2.0.x.
31780 Changes in version 0.2.0.10-alpha - 2007-11-10
31781   This tenth development snapshot adds a third v3 directory authority
31782   run by Mike Perry, adds most of Karsten Loesing's new hidden service
31783   descriptor format, fixes a bad crash bug and new bridge bugs introduced
31784   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
31785   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
31786   addresses many more minor issues.
31788   o New directory authorities:
31789     - Set up ides (run by Mike Perry) as the third v3 directory authority.
31791   o Major features:
31792     - Allow tunnelled directory connections to ask for an encrypted
31793       "begin_dir" connection or an anonymized "uses a full Tor circuit"
31794       connection independently. Now we can make anonymized begin_dir
31795       connections for (e.g.) more secure hidden service posting and
31796       fetching.
31797     - More progress on proposal 114: code from Karsten Loesing to
31798       implement new hidden service descriptor format.
31799     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
31800       accommodate the growing number of servers that use the default
31801       and are reaching it.
31802     - Directory authorities use a new formula for selecting which nodes
31803       to advertise as Guards: they must be in the top 7/8 in terms of
31804       how long we have known about them, and above the median of those
31805       nodes in terms of weighted fractional uptime.
31806     - Make "not enough dir info yet" warnings describe *why* Tor feels
31807       it doesn't have enough directory info yet.
31809   o Major bugfixes:
31810     - Stop servers from crashing if they set a Family option (or
31811       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
31812       by Fabian Keil.
31813     - Make bridge users work again -- the move to v3 directories in
31814       0.2.0.9-alpha had introduced a number of bugs that made bridges
31815       no longer work for clients.
31816     - When the clock jumps forward a lot, do not allow the bandwidth
31817       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
31819   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
31820     - When the consensus lists a router descriptor that we previously were
31821       mirroring, but that we considered non-canonical, reload the
31822       descriptor as canonical. This fixes bug 543 where Tor servers
31823       would start complaining after a few days that they don't have
31824       enough directory information to build a circuit.
31825     - Consider replacing the current consensus when certificates arrive
31826       that make the pending consensus valid. Previously, we were only
31827       considering replacement when the new certs _didn't_ help.
31828     - Fix an assert error on startup if we didn't already have the
31829       consensus and certs cached in our datadirectory: we were caching
31830       the consensus in consensus_waiting_for_certs but then free'ing it
31831       right after.
31832     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
31833       Request) if we need more v3 certs but we've already got pending
31834       requests for all of them.
31835     - Correctly back off from failing certificate downloads. Fixes
31836       bug 546.
31837     - Authorities don't vote on the Running flag if they have been running
31838       for less than 30 minutes themselves. Fixes bug 547, where a newly
31839       started authority would vote that everyone was down.
31841   o New requirements:
31842     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
31843       it, it had no AES, and it hasn't seen any security patches since
31844       2004.
31846   o Minor features:
31847     - Clients now hold circuitless TLS connections open for 1.5 times
31848       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
31849       rebuild a new circuit over them within that timeframe. Previously,
31850       they held them open only for KeepalivePeriod (5 minutes).
31851     - Use "If-Modified-Since" to avoid retrieving consensus
31852       networkstatuses that we already have.
31853     - When we have no consensus, check FallbackNetworkstatusFile (defaults
31854       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
31855       we start knowing some directory caches.
31856     - When we receive a consensus from the future, warn about skew.
31857     - Improve skew reporting: try to give the user a better log message
31858       about how skewed they are, and how much this matters.
31859     - When we have a certificate for an authority, believe that
31860       certificate's claims about the authority's IP address.
31861     - New --quiet command-line option to suppress the default console log.
31862       Good in combination with --hash-password.
31863     - Authorities send back an X-Descriptor-Not-New header in response to
31864       an accepted-but-discarded descriptor upload. Partially implements
31865       fix for bug 535.
31866     - Make the log message for "tls error. breaking." more useful.
31867     - Better log messages about certificate downloads, to attempt to
31868       track down the second incarnation of bug 546.
31870   o Minor features (bridges):
31871     - If bridge users set UpdateBridgesFromAuthority, but the digest
31872       they ask for is a 404 from the bridge authority, they now fall
31873       back to trying the bridge directly.
31874     - Bridges now use begin_dir to publish their server descriptor to
31875       the bridge authority, even when they haven't set TunnelDirConns.
31877   o Minor features (controller):
31878     - When reporting clock skew, and we know that the clock is _at least
31879       as skewed_ as some value, but we don't know the actual value,
31880       report the value as a "minimum skew."
31882   o Utilities:
31883     - Update linux-tor-prio.sh script to allow QoS based on the uid of
31884       the Tor process. Patch from Marco Bonetti with tweaks from Mike
31885       Perry.
31887   o Minor bugfixes:
31888     - Refuse to start if both ORPort and UseBridges are set. Bugfix
31889       on 0.2.0.x, suggested by Matt Edman.
31890     - Don't stop fetching descriptors when FetchUselessDescriptors is
31891       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
31892       reported by tup and ioerror.
31893     - Better log message on vote from unknown authority.
31894     - Don't log "Launching 0 request for 0 router" message.
31896   o Minor bugfixes (memory leaks):
31897     - Stop leaking memory every time we parse a v3 certificate. Bugfix
31898       on 0.2.0.1-alpha.
31899     - Stop leaking memory every time we load a v3 certificate. Bugfix
31900       on 0.2.0.1-alpha. Fixes bug 536.
31901     - Stop leaking a cached networkstatus on exit. Bugfix on
31902       0.2.0.3-alpha.
31903     - Stop leaking voter information every time we free a consensus.
31904       Bugfix on 0.2.0.3-alpha.
31905     - Stop leaking signed data every time we check a voter signature.
31906       Bugfix on 0.2.0.3-alpha.
31907     - Stop leaking a signature every time we fail to parse a consensus or
31908       a vote. Bugfix on 0.2.0.3-alpha.
31909     - Stop leaking v2_download_status_map on shutdown. Bugfix on
31910       0.2.0.9-alpha.
31911     - Stop leaking conn->nickname every time we make a connection to a
31912       Tor relay without knowing its expected identity digest (e.g. when
31913       using bridges). Bugfix on 0.2.0.3-alpha.
31915   - Minor bugfixes (portability):
31916     - Run correctly on platforms where rlim_t is larger than unsigned
31917       long, and/or where the real limit for number of open files is
31918       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
31919       particular, these may be needed for OS X 10.5.
31922 Changes in version 0.1.2.18 - 2007-10-28
31923   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
31924   hidden service introduction that were causing huge delays, and a big
31925   bug that was causing some servers to disappear from the network status
31926   lists for a few hours each day.
31928   o Major bugfixes (crashes):
31929     - If a connection is shut down abruptly because of something that
31930       happened inside connection_flushed_some(), do not call
31931       connection_finished_flushing(). Should fix bug 451:
31932       "connection_stop_writing: Assertion conn->write_event failed"
31933       Bugfix on 0.1.2.7-alpha.
31934     - Fix possible segfaults in functions called from
31935       rend_process_relay_cell().
31937   o Major bugfixes (hidden services):
31938     - Hidden services were choosing introduction points uniquely by
31939       hexdigest, but when constructing the hidden service descriptor
31940       they merely wrote the (potentially ambiguous) nickname.
31941     - Clients now use the v2 intro format for hidden service
31942       connections: they specify their chosen rendezvous point by identity
31943       digest rather than by (potentially ambiguous) nickname. These
31944       changes could speed up hidden service connections dramatically.
31946   o Major bugfixes (other):
31947     - Stop publishing a new server descriptor just because we get a
31948       HUP signal. This led (in a roundabout way) to some servers getting
31949       dropped from the networkstatus lists for a few hours each day.
31950     - When looking for a circuit to cannibalize, consider family as well
31951       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
31952       circuit cannibalization).
31953     - When a router wasn't listed in a new networkstatus, we were leaving
31954       the flags for that router alone -- meaning it remained Named,
31955       Running, etc -- even though absence from the networkstatus means
31956       that it shouldn't be considered to exist at all anymore. Now we
31957       clear all the flags for routers that fall out of the networkstatus
31958       consensus. Fixes bug 529.
31960   o Minor bugfixes:
31961     - Don't try to access (or alter) the state file when running
31962       --list-fingerprint or --verify-config or --hash-password. Resolves
31963       bug 499.
31964     - When generating information telling us how to extend to a given
31965       router, do not try to include the nickname if it is
31966       absent. Resolves bug 467.
31967     - Fix a user-triggerable segfault in expand_filename(). (There isn't
31968       a way to trigger this remotely.)
31969     - When sending a status event to the controller telling it that an
31970       OR address is reachable, set the port correctly. (Previously we
31971       were reporting the dir port.)
31972     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
31973       command. Bugfix on 0.1.2.17.
31974     - When loading bandwidth history, do not believe any information in
31975       the future. Fixes bug 434.
31976     - When loading entry guard information, do not believe any information
31977       in the future.
31978     - When we have our clock set far in the future and generate an
31979       onion key, then re-set our clock to be correct, we should not stop
31980       the onion key from getting rotated.
31981     - On some platforms, accept() can return a broken address. Detect
31982       this more quietly, and deal accordingly. Fixes bug 483.
31983     - It's not actually an error to find a non-pending entry in the DNS
31984       cache when canceling a pending resolve. Don't log unless stuff
31985       is fishy. Resolves bug 463.
31986     - Don't reset trusted dir server list when we set a configuration
31987       option. Patch from Robert Hogan.
31988     - Don't try to create the datadir when running --verify-config or
31989       --hash-password. Resolves bug 540.
31992 Changes in version 0.2.0.9-alpha - 2007-10-24
31993   This ninth development snapshot switches clients to the new v3 directory
31994   system; allows servers to be listed in the network status even when they
31995   have the same nickname as a registered server; and fixes many other
31996   bugs including a big one that was causing some servers to disappear
31997   from the network status lists for a few hours each day.
31999   o Major features (directory system):
32000     - Clients now download v3 consensus networkstatus documents instead
32001       of v2 networkstatus documents. Clients and caches now base their
32002       opinions about routers on these consensus documents. Clients only
32003       download router descriptors listed in the consensus.
32004     - Authorities now list servers who have the same nickname as
32005       a different named server, but list them with a new flag,
32006       "Unnamed". Now we can list servers that happen to pick the same
32007       nickname as a server that registered two years ago and then
32008       disappeared. Partially implements proposal 122.
32009     - If the consensus lists a router as "Unnamed", the name is assigned
32010       to a different router: do not identify the router by that name.
32011       Partially implements proposal 122.
32012     - Authorities can now come to a consensus on which method to use to
32013       compute the consensus. This gives us forward compatibility.
32015   o Major bugfixes:
32016     - Stop publishing a new server descriptor just because we HUP or
32017       when we find our DirPort to be reachable but won't actually publish
32018       it. New descriptors without any real changes are dropped by the
32019       authorities, and can screw up our "publish every 18 hours" schedule.
32020       Bugfix on 0.1.2.x.
32021     - When a router wasn't listed in a new networkstatus, we were leaving
32022       the flags for that router alone -- meaning it remained Named,
32023       Running, etc -- even though absence from the networkstatus means
32024       that it shouldn't be considered to exist at all anymore. Now we
32025       clear all the flags for routers that fall out of the networkstatus
32026       consensus. Fixes bug 529; bugfix on 0.1.2.x.
32027     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
32028       extrainfo documents and then discard them immediately for not
32029       matching the latest router. Bugfix on 0.2.0.1-alpha.
32031   o Minor features (v3 directory protocol):
32032     - Allow tor-gencert to generate a new certificate without replacing
32033       the signing key.
32034     - Allow certificates to include an address.
32035     - When we change our directory-cache settings, reschedule all voting
32036       and download operations.
32037     - Reattempt certificate downloads immediately on failure, as long as
32038       we haven't failed a threshold number of times yet.
32039     - Delay retrying consensus downloads while we're downloading
32040       certificates to verify the one we just got. Also, count getting a
32041       consensus that we already have (or one that isn't valid) as a failure,
32042       and count failing to get the certificates after 20 minutes as a
32043       failure.
32044     - Build circuits and download descriptors even if our consensus is a
32045       little expired. (This feature will go away once authorities are
32046       more reliable.)
32048   o Minor features (router descriptor cache):
32049     - If we find a cached-routers file that's been sitting around for more
32050       than 28 days unmodified, then most likely it's a leftover from
32051       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
32052       routers anyway.
32053     - When we (as a cache) download a descriptor because it was listed
32054       in a consensus, remember when the consensus was supposed to expire,
32055       and don't expire the descriptor until then.
32057   o Minor features (performance):
32058     - Call routerlist_remove_old_routers() much less often. This should
32059       speed startup, especially on directory caches.
32060     - Don't try to launch new descriptor downloads quite so often when we
32061       already have enough directory information to build circuits.
32062     - Base64 decoding was actually showing up on our profile when parsing
32063       the initial descriptor file; switch to an in-process all-at-once
32064       implementation that's about 3.5x times faster than calling out to
32065       OpenSSL.
32067   o Minor features (compilation):
32068     - Detect non-ASCII platforms (if any still exist) and refuse to
32069       build there: some of our code assumes that 'A' is 65 and so on.
32071   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
32072     - Make the "next period" votes into "current period" votes immediately
32073       after publishing the consensus; avoid a heisenbug that made them
32074       stick around indefinitely.
32075     - When we discard a vote as a duplicate, do not report this as
32076       an error.
32077     - Treat missing v3 keys or certificates as an error when running as a
32078       v3 directory authority.
32079     - When we're configured to be a v3 authority, but we're only listed
32080       as a non-v3 authority in our DirServer line for ourself, correct
32081       the listing.
32082     - If an authority doesn't have a qualified hostname, just put
32083       its address in the vote. This fixes the problem where we referred to
32084       "moria on moria:9031."
32085     - Distinguish between detached signatures for the wrong period, and
32086       detached signatures for a divergent vote.
32087     - Fix a small memory leak when computing a consensus.
32088     - When there's no consensus, we were forming a vote every 30
32089       minutes, but writing the "valid-after" line in our vote based
32090       on our configured V3AuthVotingInterval: so unless the intervals
32091       matched up, we immediately rejected our own vote because it didn't
32092       start at the voting interval that caused us to construct a vote.
32094   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
32095     - Delete unverified-consensus when the real consensus is set.
32096     - Consider retrying a consensus networkstatus fetch immediately
32097       after one fails: don't wait 60 seconds to notice.
32098     - When fetching a consensus as a cache, wait until a newer consensus
32099       should exist before trying to replace the current one.
32100     - Use a more forgiving schedule for retrying failed consensus
32101       downloads than for other types.
32103   o Minor bugfixes (other directory issues):
32104     - Correct the implementation of "download votes by digest." Bugfix on
32105       0.2.0.8-alpha.
32106     - Authorities no longer send back "400 you're unreachable please fix
32107       it" errors to Tor servers that aren't online all the time. We're
32108       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
32110   o Minor bugfixes (controller):
32111     - Don't reset trusted dir server list when we set a configuration
32112       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
32113     - Respond to INT and TERM SIGNAL commands before we execute the
32114       signal, in case the signal shuts us down. We had a patch in
32115       0.1.2.1-alpha that tried to do this by queueing the response on
32116       the connection's buffer before shutting down, but that really
32117       isn't the same thing at all. Bug located by Matt Edman.
32119   o Minor bugfixes (misc):
32120     - Correctly check for bad options to the "PublishServerDescriptor"
32121       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
32122     - Stop leaking memory on failing case of base32_decode, and make
32123       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
32124     - Don't try to download extrainfo documents when we're trying to
32125       fetch enough directory info to build a circuit: having enough
32126       info should get priority. Bugfix on 0.2.0.x.
32127     - Don't complain that "your server has not managed to confirm that its
32128       ports are reachable" if we haven't been able to build any circuits
32129       yet. Bug found by spending four hours without a v3 consensus. Bugfix
32130       on 0.1.2.x.
32131     - Detect the reason for failing to mmap a descriptor file we just
32132       wrote, and give a more useful log message. Fixes bug 533. Bugfix
32133       on 0.1.2.x.
32135   o Code simplifications and refactoring:
32136     - Remove support for the old bw_accounting file: we've been storing
32137       bandwidth accounting information in the state file since
32138       0.1.2.5-alpha. This may result in bandwidth accounting errors
32139       if you try to upgrade from 0.1.1.x or earlier, or if you try to
32140       downgrade to 0.1.1.x or earlier.
32141     - New convenience code to locate a file within the DataDirectory.
32142     - Move non-authority functionality out of dirvote.c.
32143     - Refactor the arguments for router_pick_{directory_|trusteddir}server
32144       so that they all take the same named flags.
32146   o Utilities
32147     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
32148       Unix users an easy way to script their Tor process (e.g. by
32149       adjusting bandwidth based on the time of the day).
32152 Changes in version 0.2.0.8-alpha - 2007-10-12
32153   This eighth development snapshot fixes a crash bug that's been bothering
32154   us since February 2007, lets bridge authorities store a list of bridge
32155   descriptors they've seen, gets v3 directory voting closer to working,
32156   starts caching v3 directory consensus documents on directory mirrors,
32157   and fixes a variety of smaller issues including some minor memory leaks.
32159   o Major features (router descriptor cache):
32160     - Store routers in a file called cached-descriptors instead of in
32161       cached-routers. Initialize cached-descriptors from cached-routers
32162       if the old format is around. The new format allows us to store
32163       annotations along with descriptors.
32164     - Use annotations to record the time we received each descriptor, its
32165       source, and its purpose.
32166     - Disable the SETROUTERPURPOSE controller command: it is now
32167       obsolete.
32168     - Controllers should now specify cache=no or cache=yes when using
32169       the +POSTDESCRIPTOR command.
32170     - Bridge authorities now write bridge descriptors to disk, meaning
32171       we can export them to other programs and begin distributing them
32172       to blocked users.
32174   o Major features (directory authorities):
32175     - When a v3 authority is missing votes or signatures, it now tries
32176       to fetch them.
32177     - Directory authorities track weighted fractional uptime as well as
32178       weighted mean-time-between failures. WFU is suitable for deciding
32179       whether a node is "usually up", while MTBF is suitable for deciding
32180       whether a node is "likely to stay up." We need both, because
32181       "usually up" is a good requirement for guards, while "likely to
32182       stay up" is a good requirement for long-lived connections.
32184   o Major features (v3 directory system):
32185     - Caches now download v3 network status documents as needed,
32186       and download the descriptors listed in them.
32187     - All hosts now attempt to download and keep fresh v3 authority
32188       certificates, and re-attempt after failures.
32189     - More internal-consistency checks for vote parsing.
32191   o Major bugfixes (crashes):
32192     - If a connection is shut down abruptly because of something that
32193       happened inside connection_flushed_some(), do not call
32194       connection_finished_flushing(). Should fix bug 451. Bugfix on
32195       0.1.2.7-alpha.
32197   o Major bugfixes (performance):
32198     - Fix really bad O(n^2) performance when parsing a long list of
32199       routers: Instead of searching the entire list for an "extra-info "
32200       string which usually wasn't there, once for every routerinfo
32201       we read, just scan lines forward until we find one we like.
32202       Bugfix on 0.2.0.1.
32203     - When we add data to a write buffer in response to the data on that
32204       write buffer getting low because of a flush, do not consider the
32205       newly added data as a candidate for immediate flushing, but rather
32206       make it wait until the next round of writing. Otherwise, we flush
32207       and refill recursively, and a single greedy TLS connection can
32208       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
32210   o Minor features (v3 authority system):
32211     - Add more ways for tools to download the votes that lead to the
32212       current consensus.
32213     - Send a 503 when low on bandwidth and a vote, consensus, or
32214       certificate is requested.
32215     - If-modified-since is now implemented properly for all kinds of
32216       certificate requests.
32218   o Minor bugfixes (network statuses):
32219     - Tweak the implementation of proposal 109 slightly: allow at most
32220       two Tor servers on the same IP address, except if it's the location
32221       of a directory authority, in which case allow five. Bugfix on
32222       0.2.0.3-alpha.
32224   o Minor bugfixes (controller):
32225     - When sending a status event to the controller telling it that an
32226       OR address is reachable, set the port correctly. (Previously we
32227       were reporting the dir port.) Bugfix on 0.1.2.x.
32229   o Minor bugfixes (v3 directory system):
32230     - Fix logic to look up a cert by its signing key digest. Bugfix on
32231       0.2.0.7-alpha.
32232     - Only change the reply to a vote to "OK" if it's not already
32233       set. This gets rid of annoying "400 OK" log messages, which may
32234       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
32235     - When we get a valid consensus, recompute the voting schedule.
32236     - Base the valid-after time of a vote on the consensus voting
32237       schedule, not on our preferred schedule.
32238     - Make the return values and messages from signature uploads and
32239       downloads more sensible.
32240     - Fix a memory leak when serving votes and consensus documents, and
32241       another when serving certificates.
32243   o Minor bugfixes (performance):
32244     - Use a slightly simpler string hashing algorithm (copying Python's
32245       instead of Java's) and optimize our digest hashing algorithm to take
32246       advantage of 64-bit platforms and to remove some possibly-costly
32247       voodoo.
32248     - Fix a minor memory leak whenever we parse guards from our state
32249       file. Bugfix on 0.2.0.7-alpha.
32250     - Fix a minor memory leak whenever we write out a file. Bugfix on
32251       0.2.0.7-alpha.
32252     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
32253       command. Bugfix on 0.2.0.5-alpha.
32255   o Minor bugfixes (portability):
32256     - On some platforms, accept() can return a broken address. Detect
32257       this more quietly, and deal accordingly. Fixes bug 483.
32258     - Stop calling tor_strlower() on uninitialized memory in some cases.
32259       Bugfix in 0.2.0.7-alpha.
32261   o Minor bugfixes (usability):
32262     - Treat some 403 responses from directory servers as INFO rather than
32263       WARN-severity events.
32264     - It's not actually an error to find a non-pending entry in the DNS
32265       cache when canceling a pending resolve. Don't log unless stuff is
32266       fishy. Resolves bug 463.
32268   o Minor bugfixes (anonymity):
32269     - Never report that we've used more bandwidth than we're willing to
32270       relay: it leaks how much non-relay traffic we're using. Resolves
32271       bug 516.
32272     - When looking for a circuit to cannibalize, consider family as well
32273       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
32274       circuit cannibalization).
32276   o Code simplifications and refactoring:
32277     - Make a bunch of functions static. Remove some dead code.
32278     - Pull out about a third of the really big routerlist.c; put it in a
32279       new module, networkstatus.c.
32280     - Merge the extra fields in local_routerstatus_t back into
32281       routerstatus_t: we used to need one routerstatus_t for each
32282       authority's opinion, plus a local_routerstatus_t for the locally
32283       computed consensus opinion. To save space, we put the locally
32284       modified fields into local_routerstatus_t, and only the common
32285       stuff into routerstatus_t. But once v3 directories are in use,
32286       clients and caches will no longer need to hold authority opinions;
32287       thus, the rationale for keeping the types separate is now gone.
32288     - Make the code used to reschedule and reattempt downloads more
32289       uniform.
32290     - Turn all 'Are we a directory server/mirror?' logic into a call to
32291       dirserver_mode().
32292     - Remove the code to generate the oldest (v1) directory format.
32293       The code has been disabled since 0.2.0.5-alpha.
32296 Changes in version 0.2.0.7-alpha - 2007-09-21
32297   This seventh development snapshot makes bridges work again, makes bridge
32298   authorities work for the first time, fixes two huge performance flaws
32299   in hidden services, and fixes a variety of minor issues.
32301   o New directory authorities:
32302     - Set up moria1 and tor26 as the first v3 directory authorities. See
32303       doc/spec/dir-spec.txt for details on the new directory design.
32305   o Major bugfixes (crashes):
32306     - Fix possible segfaults in functions called from
32307       rend_process_relay_cell(). Bugfix on 0.1.2.x.
32309   o Major bugfixes (bridges):
32310     - Fix a bug that made servers send a "404 Not found" in response to
32311       attempts to fetch their server descriptor. This caused Tor servers
32312       to take many minutes to establish reachability for their DirPort,
32313       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
32314     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
32315       users configure that and specify a bridge with an identity
32316       fingerprint, now they will lookup the bridge descriptor at the
32317       default bridge authority via a one-hop tunnel, but once circuits
32318       are established they will switch to a three-hop tunnel for later
32319       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
32321   o Major bugfixes (hidden services):
32322     - Hidden services were choosing introduction points uniquely by
32323       hexdigest, but when constructing the hidden service descriptor
32324       they merely wrote the (potentially ambiguous) nickname.
32325     - Clients now use the v2 intro format for hidden service
32326       connections: they specify their chosen rendezvous point by identity
32327       digest rather than by (potentially ambiguous) nickname. Both
32328       are bugfixes on 0.1.2.x, and they could speed up hidden service
32329       connections dramatically. Thanks to Karsten Loesing.
32331   o Minor features (security):
32332     - As a client, do not believe any server that tells us that an
32333       address maps to an internal address space.
32334     - Make it possible to enable HashedControlPassword and
32335       CookieAuthentication at the same time.
32337   o Minor features (guard nodes):
32338     - Tag every guard node in our state file with the version that
32339       we believe added it, or with our own version if we add it. This way,
32340       if a user temporarily runs an old version of Tor and then switches
32341       back to a new one, she doesn't automatically lose her guards.
32343   o Minor features (speed):
32344     - When implementing AES counter mode, update only the portions of the
32345       counter buffer that need to change, and don't keep separate
32346       network-order and host-order counters when they are the same (i.e.,
32347       on big-endian hosts.)
32349   o Minor features (controller):
32350     - Accept LF instead of CRLF on controller, since some software has a
32351       hard time generating real Internet newlines.
32352     - Add GETINFO values for the server status events
32353       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
32354       Robert Hogan.
32356   o Removed features:
32357      - Routers no longer include bandwidth-history lines in their
32358        descriptors; this information is already available in extra-info
32359        documents, and including it in router descriptors took up 60%
32360        (!) of compressed router descriptor downloads. Completes
32361        implementation of proposal 104.
32362      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
32363        and TorControl.py, as they use the old v0 controller protocol,
32364        and are obsoleted by TorFlow anyway.
32365      - Drop support for v1 rendezvous descriptors, since we never used
32366        them anyway, and the code has probably rotted by now. Based on
32367        patch from Karsten Loesing.
32368      - On OSX, stop warning the user that kqueue support in libevent is
32369       "experimental", since it seems to have worked fine for ages.
32371   o Minor bugfixes:
32372     - When generating information telling us how to extend to a given
32373       router, do not try to include the nickname if it is absent. Fixes
32374       bug 467. Bugfix on 0.2.0.3-alpha.
32375     - Fix a user-triggerable (but not remotely-triggerable) segfault
32376       in expand_filename(). Bugfix on 0.1.2.x.
32377     - Fix a memory leak when freeing incomplete requests from DNSPort.
32378       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
32379     - Don't try to access (or alter) the state file when running
32380       --list-fingerprint or --verify-config or --hash-password. (Resolves
32381       bug 499.) Bugfix on 0.1.2.x.
32382     - Servers used to decline to publish their DirPort if their
32383       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
32384       were below a threshold. Now they only look at BandwidthRate and
32385       RelayBandwidthRate. Bugfix on 0.1.2.x.
32386     - Remove an optimization in the AES counter-mode code that assumed
32387       that the counter never exceeded 2^68. When the counter can be set
32388       arbitrarily as an IV (as it is by Karsten's new hidden services
32389       code), this assumption no longer holds. Bugfix on 0.1.2.x.
32390     - Resume listing "AUTHORITY" flag for authorities in network status.
32391       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
32393   o Code simplifications and refactoring:
32394     - Revamp file-writing logic so we don't need to have the entire
32395       contents of a file in memory at once before we write to disk. Tor,
32396       meet stdio.
32397     - Turn "descriptor store" into a full-fledged type.
32398     - Move all NT services code into a separate source file.
32399     - Unify all code that computes medians, percentile elements, etc.
32400     - Get rid of a needless malloc when parsing address policies.
32403 Changes in version 0.1.2.17 - 2007-08-30
32404   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
32405   X bundles. Vidalia 0.0.14 makes authentication required for the
32406   ControlPort in the default configuration, which addresses important
32407   security risks. Everybody who uses Vidalia (or another controller)
32408   should upgrade.
32410   In addition, this Tor update fixes major load balancing problems with
32411   path selection, which should speed things up a lot once many people
32412   have upgraded.
32414   o Major bugfixes (security):
32415     - We removed support for the old (v0) control protocol. It has been
32416       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
32417       become more of a headache than it's worth.
32419   o Major bugfixes (load balancing):
32420     - When choosing nodes for non-guard positions, weight guards
32421       proportionally less, since they already have enough load. Patch
32422       from Mike Perry.
32423     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
32424       will allow fast Tor servers to get more attention.
32425     - When we're upgrading from an old Tor version, forget our current
32426       guards and pick new ones according to the new weightings. These
32427       three load balancing patches could raise effective network capacity
32428       by a factor of four. Thanks to Mike Perry for measurements.
32430   o Major bugfixes (stream expiration):
32431     - Expire not-yet-successful application streams in all cases if
32432       they've been around longer than SocksTimeout. Right now there are
32433       some cases where the stream will live forever, demanding a new
32434       circuit every 15 seconds. Fixes bug 454; reported by lodger.
32436   o Minor features (controller):
32437     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
32438       is valid before any authentication has been received. It tells
32439       a controller what kind of authentication is expected, and what
32440       protocol is spoken. Implements proposal 119.
32442   o Minor bugfixes (performance):
32443     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
32444       greatly speeding up loading cached-routers from disk on startup.
32445     - Disable sentinel-based debugging for buffer code: we squashed all
32446       the bugs that this was supposed to detect a long time ago, and now
32447       its only effect is to change our buffer sizes from nice powers of
32448       two (which platform mallocs tend to like) to values slightly over
32449       powers of two (which make some platform mallocs sad).
32451   o Minor bugfixes (misc):
32452     - If exit bandwidth ever exceeds one third of total bandwidth, then
32453       use the correct formula to weight exit nodes when choosing paths.
32454       Based on patch from Mike Perry.
32455     - Choose perfectly fairly among routers when choosing by bandwidth and
32456       weighting by fraction of bandwidth provided by exits. Previously, we
32457       would choose with only approximate fairness, and correct ourselves
32458       if we ran off the end of the list.
32459     - If we require CookieAuthentication but we fail to write the
32460       cookie file, we would warn but not exit, and end up in a state
32461       where no controller could authenticate. Now we exit.
32462     - If we require CookieAuthentication, stop generating a new cookie
32463       every time we change any piece of our config.
32464     - Refuse to start with certain directory authority keys, and
32465       encourage people using them to stop.
32466     - Terminate multi-line control events properly. Original patch
32467       from tup.
32468     - Fix a minor memory leak when we fail to find enough suitable
32469       servers to choose a circuit.
32470     - Stop leaking part of the descriptor when we run into a particularly
32471       unparseable piece of it.
32474 Changes in version 0.2.0.6-alpha - 2007-08-26
32475   This sixth development snapshot features a new Vidalia version in the
32476   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
32477   the ControlPort in the default configuration, which addresses important
32478   security risks.
32480   In addition, this snapshot fixes major load balancing problems
32481   with path selection, which should speed things up a lot once many
32482   people have upgraded. The directory authorities also use a new
32483   mean-time-between-failure approach to tracking which servers are stable,
32484   rather than just looking at the most recent uptime.
32486   o New directory authorities:
32487     - Set up Tonga as the default bridge directory authority.
32489   o Major features:
32490     - Directory authorities now track servers by weighted
32491       mean-times-between-failures. When we have 4 or more days of data,
32492       use measured MTBF rather than declared uptime to decide whether
32493       to call a router Stable. Implements proposal 108.
32495   o Major bugfixes (load balancing):
32496     - When choosing nodes for non-guard positions, weight guards
32497       proportionally less, since they already have enough load. Patch
32498       from Mike Perry.
32499     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
32500       will allow fast Tor servers to get more attention.
32501     - When we're upgrading from an old Tor version, forget our current
32502       guards and pick new ones according to the new weightings. These
32503       three load balancing patches could raise effective network capacity
32504       by a factor of four. Thanks to Mike Perry for measurements.
32506   o Major bugfixes (descriptor parsing):
32507     - Handle unexpected whitespace better in malformed descriptors. Bug
32508       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
32510   o Minor features:
32511     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
32512       GETINFO for Torstat to use until it can switch to using extrainfos.
32513     - Optionally (if built with -DEXPORTMALLINFO) export the output
32514       of mallinfo via http, as tor/mallinfo.txt. Only accessible
32515       from localhost.
32517   o Minor bugfixes:
32518     - Do not intermix bridge routers with controller-added
32519       routers. (Bugfix on 0.2.0.x)
32520     - Do not fail with an assert when accept() returns an unexpected
32521       address family. Addresses but does not wholly fix bug 483. (Bugfix
32522       on 0.2.0.x)
32523     - Let directory authorities startup even when they can't generate
32524       a descriptor immediately, e.g. because they don't know their
32525       address.
32526     - Stop putting the authentication cookie in a file called "0"
32527       in your working directory if you don't specify anything for the
32528       new CookieAuthFile option. Reported by Matt Edman.
32529     - Make it possible to read the PROTOCOLINFO response in a way that
32530       conforms to our control-spec. Reported by Matt Edman.
32531     - Fix a minor memory leak when we fail to find enough suitable
32532       servers to choose a circuit. Bugfix on 0.1.2.x.
32533     - Stop leaking part of the descriptor when we run into a particularly
32534       unparseable piece of it. Bugfix on 0.1.2.x.
32535     - Unmap the extrainfo cache file on exit.
32538 Changes in version 0.2.0.5-alpha - 2007-08-19
32539   This fifth development snapshot fixes compilation on Windows again;
32540   fixes an obnoxious client-side bug that slowed things down and put
32541   extra load on the network; gets us closer to using the v3 directory
32542   voting scheme; makes it easier for Tor controllers to use cookie-based
32543   authentication; and fixes a variety of other bugs.
32545   o Removed features:
32546     - Version 1 directories are no longer generated in full. Instead,
32547       authorities generate and serve "stub" v1 directories that list
32548       no servers. This will stop Tor versions 0.1.0.x and earlier from
32549       working, but (for security reasons) nobody should be running those
32550       versions anyway.
32552   o Major bugfixes (compilation, 0.2.0.x):
32553     - Try to fix Win32 compilation again: improve checking for IPv6 types.
32554     - Try to fix MSVC compilation: build correctly on platforms that do
32555       not define s6_addr16 or s6_addr32.
32556     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
32557       Zhou.
32559   o Major bugfixes (stream expiration):
32560     - Expire not-yet-successful application streams in all cases if
32561       they've been around longer than SocksTimeout. Right now there are
32562       some cases where the stream will live forever, demanding a new
32563       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
32564       reported by lodger.
32566   o Minor features (directory servers):
32567     - When somebody requests a list of statuses or servers, and we have
32568       none of those, return a 404 rather than an empty 200.
32570   o Minor features (directory voting):
32571     - Store v3 consensus status consensuses on disk, and reload them
32572       on startup.
32574   o Minor features (security):
32575     - Warn about unsafe ControlPort configurations.
32576     - Refuse to start with certain directory authority keys, and
32577       encourage people using them to stop.
32579   o Minor features (controller):
32580     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
32581       is valid before any authentication has been received. It tells
32582       a controller what kind of authentication is expected, and what
32583       protocol is spoken. Implements proposal 119.
32584     - New config option CookieAuthFile to choose a new location for the
32585       cookie authentication file, and config option
32586       CookieAuthFileGroupReadable to make it group-readable.
32588   o Minor features (unit testing):
32589     - Add command-line arguments to unit-test executable so that we can
32590       invoke any chosen test from the command line rather than having
32591       to run the whole test suite at once; and so that we can turn on
32592       logging for the unit tests.
32594   o Minor bugfixes (on 0.1.2.x):
32595     - If we require CookieAuthentication but we fail to write the
32596       cookie file, we would warn but not exit, and end up in a state
32597       where no controller could authenticate. Now we exit.
32598     - If we require CookieAuthentication, stop generating a new cookie
32599       every time we change any piece of our config.
32600     - When loading bandwidth history, do not believe any information in
32601       the future. Fixes bug 434.
32602     - When loading entry guard information, do not believe any information
32603       in the future.
32604     - When we have our clock set far in the future and generate an
32605       onion key, then re-set our clock to be correct, we should not stop
32606       the onion key from getting rotated.
32607     - Clean up torrc sample config file.
32608     - Do not automatically run configure from autogen.sh. This
32609       non-standard behavior tended to annoy people who have built other
32610       programs.
32612   o Minor bugfixes (on 0.2.0.x):
32613     - Fix a bug with AutomapHostsOnResolve that would always cause
32614       the second request to fail. Bug reported by Kate. Bugfix on
32615       0.2.0.3-alpha.
32616     - Fix a bug in ADDRMAP controller replies that would sometimes
32617       try to print a NULL. Patch from tup.
32618     - Read v3 directory authority keys from the right location.
32619     - Numerous bugfixes to directory voting code.
32622 Changes in version 0.1.2.16 - 2007-08-01
32623   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
32624   remote attacker in certain situations to rewrite the user's torrc
32625   configuration file. This can completely compromise anonymity of users
32626   in most configurations, including those running the Vidalia bundles,
32627   TorK, etc. Or worse.
32629   o Major security fixes:
32630     - Close immediately after missing authentication on control port;
32631       do not allow multiple authentication attempts.
32634 Changes in version 0.2.0.4-alpha - 2007-08-01
32635   This fourth development snapshot fixes a critical security vulnerability
32636   for most users, specifically those running Vidalia, TorK, etc. Everybody
32637   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
32639   o Major security fixes:
32640     - Close immediately after missing authentication on control port;
32641       do not allow multiple authentication attempts.
32643   o Major bugfixes (compilation):
32644     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
32645       defined there.
32647   o Minor features (performance):
32648     - Be even more aggressive about releasing RAM from small
32649       empty buffers. Thanks to our free-list code, this shouldn't be too
32650       performance-intensive.
32651     - Disable sentinel-based debugging for buffer code: we squashed all
32652       the bugs that this was supposed to detect a long time ago, and
32653       now its only effect is to change our buffer sizes from nice
32654       powers of two (which platform mallocs tend to like) to values
32655       slightly over powers of two (which make some platform mallocs sad).
32656     - Log malloc statistics from mallinfo() on platforms where it
32657       exists.
32660 Changes in version 0.2.0.3-alpha - 2007-07-29
32661   This third development snapshot introduces new experimental
32662   blocking-resistance features and a preliminary version of the v3
32663   directory voting design, and includes many other smaller features
32664   and bugfixes.
32666   o Major features:
32667     - The first pieces of our "bridge" design for blocking-resistance
32668       are implemented. People can run bridge directory authorities;
32669       people can run bridges; and people can configure their Tor clients
32670       with a set of bridges to use as the first hop into the Tor network.
32671       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
32672       details.
32673     - Create listener connections before we setuid to the configured
32674       User and Group. Now non-Windows users can choose port values
32675       under 1024, start Tor as root, and have Tor bind those ports
32676       before it changes to another UID. (Windows users could already
32677       pick these ports.)
32678     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
32679       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
32680       on "vserver" accounts. (Patch from coderman.)
32681     - Be even more aggressive about separating local traffic from relayed
32682       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
32684   o Major features (experimental):
32685     - First cut of code for "v3 dir voting": directory authorities will
32686       vote on a common network status document rather than each publishing
32687       their own opinion. This code needs more testing and more corner-case
32688       handling before it's ready for use.
32690   o Security fixes:
32691     - Directory authorities now call routers Fast if their bandwidth is
32692       at least 100KB/s, and consider their bandwidth adequate to be a
32693       Guard if it is at least 250KB/s, no matter the medians. This fix
32694       complements proposal 107. [Bugfix on 0.1.2.x]
32695     - Directory authorities now never mark more than 3 servers per IP as
32696       Valid and Running. (Implements proposal 109, by Kevin Bauer and
32697       Damon McCoy.)
32698     - Minor change to organizationName and commonName generation
32699       procedures in TLS certificates during Tor handshakes, to invalidate
32700       some earlier censorware approaches. This is not a long-term
32701       solution, but applying it will give us a bit of time to look into
32702       the epidemiology of countermeasures as they spread.
32704   o Major bugfixes (directory):
32705     - Rewrite directory tokenization code to never run off the end of
32706       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
32708   o Minor features (controller):
32709     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
32710       match requests to applications. (Patch from Robert Hogan.)
32711     - Report address and port correctly on connections to DNSPort. (Patch
32712       from Robert Hogan.)
32713     - Add a RESOLVE command to launch hostname lookups. (Original patch
32714       from Robert Hogan.)
32715     - Add GETINFO status/enough-dir-info to let controllers tell whether
32716       Tor has downloaded sufficient directory information. (Patch
32717       from Tup.)
32718     - You can now use the ControlSocket option to tell Tor to listen for
32719       controller connections on Unix domain sockets on systems that
32720       support them. (Patch from Peter Palfrader.)
32721     - STREAM NEW events are generated for DNSPort requests and for
32722       tunneled directory connections. (Patch from Robert Hogan.)
32723     - New "GETINFO address-mappings/*" command to get address mappings
32724       with expiry information. "addr-mappings/*" is now deprecated.
32725       (Patch from Tup.)
32727   o Minor features (misc):
32728     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
32729       from croup.)
32730     - The tor-gencert tool for v3 directory authorities now creates all
32731       files as readable to the file creator only, and write-protects
32732       the authority identity key.
32733     - When dumping memory usage, list bytes used in buffer memory
32734       free-lists.
32735     - When running with dmalloc, dump more stats on hup and on exit.
32736     - Directory authorities now fail quickly and (relatively) harmlessly
32737       if they generate a network status document that is somehow
32738       malformed.
32740   o Traffic load balancing improvements:
32741     - If exit bandwidth ever exceeds one third of total bandwidth, then
32742       use the correct formula to weight exit nodes when choosing paths.
32743       (Based on patch from Mike Perry.)
32744     - Choose perfectly fairly among routers when choosing by bandwidth and
32745       weighting by fraction of bandwidth provided by exits. Previously, we
32746       would choose with only approximate fairness, and correct ourselves
32747       if we ran off the end of the list. [Bugfix on 0.1.2.x]
32749   o Performance improvements:
32750     - Be more aggressive with freeing buffer RAM or putting it on the
32751       memory free lists.
32752     - Use Critical Sections rather than Mutexes for synchronizing threads
32753       on win32; Mutexes are heavier-weight, and designed for synchronizing
32754       between processes.
32756   o Deprecated and removed features:
32757     - RedirectExits is now deprecated.
32758     - Stop allowing address masks that do not correspond to bit prefixes.
32759       We have warned about these for a really long time; now it's time
32760       to reject them. (Patch from croup.)
32762   o Minor bugfixes (directory):
32763     - Fix another crash bug related to extra-info caching. (Bug found by
32764       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
32765     - Directories no longer return a "304 not modified" when they don't
32766       have the networkstatus the client asked for. Also fix a memory
32767       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
32768     - We had accidentally labelled 0.1.2.x directory servers as not
32769       suitable for begin_dir requests, and had labelled no directory
32770       servers as suitable for uploading extra-info documents. [Bugfix
32771       on 0.2.0.1-alpha]
32773   o Minor bugfixes (dns):
32774     - Fix a crash when DNSPort is set more than once. (Patch from Robert
32775       Hogan.) [Bugfix on 0.2.0.2-alpha]
32776     - Add DNSPort connections to the global connection list, so that we
32777       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
32778       on 0.2.0.2-alpha]
32779     - Fix a dangling reference that could lead to a crash when DNSPort is
32780       changed or closed (Patch from Robert Hogan.) [Bugfix on
32781       0.2.0.2-alpha]
32783   o Minor bugfixes (controller):
32784     - Provide DNS expiry times in GMT, not in local time. For backward
32785       compatibility, ADDRMAP events only provide GMT expiry in an extended
32786       field. "GETINFO address-mappings" always does the right thing.
32787     - Use CRLF line endings properly in NS events.
32788     - Terminate multi-line control events properly. (Original patch
32789       from tup.) [Bugfix on 0.1.2.x-alpha]
32790     - Do not include spaces in SOURCE_ADDR fields in STREAM
32791       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
32794 Changes in version 0.1.2.15 - 2007-07-17
32795   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
32796   problems, fixes compilation on BSD, and fixes a variety of other
32797   bugs. Everybody should upgrade.
32799   o Major bugfixes (compilation):
32800     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
32802   o Major bugfixes (crashes):
32803     - Try even harder not to dereference the first character after
32804       an mmap(). Reported by lodger.
32805     - Fix a crash bug in directory authorities when we re-number the
32806       routerlist while inserting a new router.
32807     - When the cached-routers file is an even multiple of the page size,
32808       don't run off the end and crash. (Fixes bug 455; based on idea
32809       from croup.)
32810     - Fix eventdns.c behavior on Solaris: It is critical to include
32811       orconfig.h _before_ sys/types.h, so that we can get the expected
32812       definition of _FILE_OFFSET_BITS.
32814   o Major bugfixes (security):
32815     - Fix a possible buffer overrun when using BSD natd support. Bug
32816       found by croup.
32817     - When sending destroy cells from a circuit's origin, don't include
32818       the reason for tearing down the circuit. The spec says we didn't,
32819       and now we actually don't. Reported by lodger.
32820     - Keep streamids from different exits on a circuit separate. This
32821       bug may have allowed other routers on a given circuit to inject
32822       cells into streams. Reported by lodger; fixes bug 446.
32823     - If there's a never-before-connected-to guard node in our list,
32824       never choose any guards past it. This way we don't expand our
32825       guard list unless we need to.
32827   o Minor bugfixes (guard nodes):
32828     - Weight guard selection by bandwidth, so that low-bandwidth nodes
32829       don't get overused as guards.
32831   o Minor bugfixes (directory):
32832     - Correctly count the number of authorities that recommend each
32833       version. Previously, we were under-counting by 1.
32834     - Fix a potential crash bug when we load many server descriptors at
32835       once and some of them make others of them obsolete. Fixes bug 458.
32837   o Minor bugfixes (hidden services):
32838     - Stop tearing down the whole circuit when the user asks for a
32839       connection to a port that the hidden service didn't configure.
32840       Resolves bug 444.
32842   o Minor bugfixes (misc):
32843     - On Windows, we were preventing other processes from reading
32844       cached-routers while Tor was running. Reported by janbar.
32845     - Fix a possible (but very unlikely) bug in picking routers by
32846       bandwidth. Add a log message to confirm that it is in fact
32847       unlikely. Patch from lodger.
32848     - Backport a couple of memory leak fixes.
32849     - Backport miscellaneous cosmetic bugfixes.
32852 Changes in version 0.2.0.2-alpha - 2007-06-02
32853   o Major bugfixes on 0.2.0.1-alpha:
32854     - Fix an assertion failure related to servers without extra-info digests.
32855       Resolves bugs 441 and 442.
32857   o Minor features (directory):
32858     - Support "If-Modified-Since" when answering HTTP requests for
32859       directories, running-routers documents, and network-status documents.
32860       (There's no need to support it for router descriptors, since those
32861       are downloaded by descriptor digest.)
32863   o Minor build issues:
32864     - Clear up some MIPSPro compiler warnings.
32865     - When building from a tarball on a machine that happens to have SVK
32866       installed, report the micro-revision as whatever version existed
32867       in the tarball, not as "x".
32870 Changes in version 0.2.0.1-alpha - 2007-06-01
32871   This early development snapshot provides new features for people running
32872   Tor as both a client and a server (check out the new RelayBandwidth
32873   config options); lets Tor run as a DNS proxy; and generally moves us
32874   forward on a lot of fronts.
32876   o Major features, server usability:
32877     - New config options RelayBandwidthRate and RelayBandwidthBurst:
32878       a separate set of token buckets for relayed traffic. Right now
32879       relayed traffic is defined as answers to directory requests, and
32880       OR connections that don't have any local circuits on them.
32882   o Major features, client usability:
32883     - A client-side DNS proxy feature to replace the need for
32884       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
32885       for DNS requests on port 9999, use the Tor network to resolve them
32886       anonymously, and send the reply back like a regular DNS server.
32887       The code still only implements a subset of DNS.
32888     - Make PreferTunneledDirConns and TunnelDirConns work even when
32889       we have no cached directory info. This means Tor clients can now
32890       do all of their connections protected by TLS.
32892   o Major features, performance and efficiency:
32893     - Directory authorities accept and serve "extra info" documents for
32894       routers. These documents contain fields from router descriptors
32895       that aren't usually needed, and that use a lot of excess
32896       bandwidth. Once these fields are removed from router descriptors,
32897       the bandwidth savings should be about 60%. [Partially implements
32898       proposal 104.]
32899     - Servers upload extra-info documents to any authority that accepts
32900       them. Authorities (and caches that have been configured to download
32901       extra-info documents) download them as needed. [Partially implements
32902       proposal 104.]
32903     - Change the way that Tor buffers data that it is waiting to write.
32904       Instead of queueing data cells in an enormous ring buffer for each
32905       client->OR or OR->OR connection, we now queue cells on a separate
32906       queue for each circuit. This lets us use less slack memory, and
32907       will eventually let us be smarter about prioritizing different kinds
32908       of traffic.
32909     - Use memory pools to allocate cells with better speed and memory
32910       efficiency, especially on platforms where malloc() is inefficient.
32911     - Stop reading on edge connections when their corresponding circuit
32912       buffers are full; start again as the circuits empty out.
32914   o Major features, other:
32915     - Add an HSAuthorityRecordStats option that hidden service authorities
32916       can use to track statistics of overall hidden service usage without
32917       logging information that would be very useful to an attacker.
32918     - Start work implementing multi-level keys for directory authorities:
32919       Add a standalone tool to generate key certificates. (Proposal 103.)
32921   o Security fixes:
32922     - Directory authorities now call routers Stable if they have an
32923       uptime of at least 30 days, even if that's not the median uptime
32924       in the network. Implements proposal 107, suggested by Kevin Bauer
32925       and Damon McCoy.
32927   o Minor fixes (resource management):
32928     - Count the number of open sockets separately from the number
32929       of active connection_t objects. This will let us avoid underusing
32930       our allocated connection limit.
32931     - We no longer use socket pairs to link an edge connection to an
32932       anonymous directory connection or a DirPort test connection.
32933       Instead, we track the link internally and transfer the data
32934       in-process. This saves two sockets per "linked" connection (at the
32935       client and at the server), and avoids the nasty Windows socketpair()
32936       workaround.
32937     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
32938       for every single inactive connection_t. Free items from the
32939       4k/16k-buffer free lists when they haven't been used for a while.
32941   o Minor features (build):
32942     - Make autoconf search for libevent, openssl, and zlib consistently.
32943     - Update deprecated macros in configure.in.
32944     - When warning about missing headers, tell the user to let us
32945       know if the compile succeeds anyway, so we can downgrade the
32946       warning.
32947     - Include the current subversion revision as part of the version
32948       string: either fetch it directly if we're in an SVN checkout, do
32949       some magic to guess it if we're in an SVK checkout, or use
32950       the last-detected version if we're building from a .tar.gz.
32951       Use this version consistently in log messages.
32953   o Minor features (logging):
32954     - Always prepend "Bug: " to any log message about a bug.
32955     - Put a platform string (e.g. "Linux i686") in the startup log
32956       message, so when people paste just their logs, we know if it's
32957       OpenBSD or Windows or what.
32958     - When logging memory usage, break down memory used in buffers by
32959       buffer type.
32961   o Minor features (directory system):
32962     - New config option V2AuthoritativeDirectory that all directory
32963       authorities should set. This will let future authorities choose
32964       not to serve V2 directory information.
32965     - Directory authorities allow multiple router descriptors and/or extra
32966       info documents to be uploaded in a single go. This will make
32967       implementing proposal 104 simpler.
32969   o Minor features (controller):
32970     - Add a new config option __DisablePredictedCircuits designed for
32971       use by the controller, when we don't want Tor to build any circuits
32972       preemptively.
32973     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
32974       so we can exit from the middle of the circuit.
32975     - Implement "getinfo status/circuit-established".
32976     - Implement "getinfo status/version/..." so a controller can tell
32977       whether the current version is recommended, and whether any versions
32978       are good, and how many authorities agree. (Patch from shibz.)
32980   o Minor features (hidden services):
32981     - Allow multiple HiddenServicePort directives with the same virtual
32982       port; when they occur, the user is sent round-robin to one
32983       of the target ports chosen at random. Partially fixes bug 393 by
32984       adding limited ad-hoc round-robining.
32986   o Minor features (other):
32987     - More unit tests.
32988     - Add a new AutomapHostsOnResolve option: when it is enabled, any
32989       resolve request for hosts matching a given pattern causes Tor to
32990       generate an internal virtual address mapping for that host. This
32991       allows DNSPort to work sensibly with hidden service users. By
32992       default, .exit and .onion addresses are remapped; the list of
32993       patterns can be reconfigured with AutomapHostsSuffixes.
32994     - Add an "-F" option to tor-resolve to force a resolve for a .onion
32995       address. Thanks to the AutomapHostsOnResolve option, this is no
32996       longer a completely silly thing to do.
32997     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
32998       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
32999     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
33000       minus 1 byte: the actual maximum declared bandwidth.
33002   o Removed features:
33003     - Removed support for the old binary "version 0" controller protocol.
33004       This has been deprecated since 0.1.1, and warnings have been issued
33005       since 0.1.2. When we encounter a v0 control message, we now send
33006       back an error and close the connection.
33007     - Remove the old "dns worker" server DNS code: it hasn't been default
33008       since 0.1.2.2-alpha, and all the servers seem to be using the new
33009       eventdns code.
33011   o Minor bugfixes (portability):
33012     - Even though Windows is equally happy with / and \ as path separators,
33013       try to use \ consistently on Windows and / consistently on Unix: it
33014       makes the log messages nicer.
33015     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
33016     - Read resolv.conf files correctly on platforms where read() returns
33017       partial results on small file reads.
33019   o Minor bugfixes (directory):
33020     - Correctly enforce that elements of directory objects do not appear
33021       more often than they are allowed to appear.
33022     - When we are reporting the DirServer line we just parsed, we were
33023       logging the second stanza of the key fingerprint, not the first.
33025   o Minor bugfixes (logging):
33026     - When we hit an EOF on a log (probably because we're shutting down),
33027       don't try to remove the log from the list: just mark it as
33028       unusable. (Bulletproofs against bug 222.)
33030   o Minor bugfixes (other):
33031     - In the exitlist script, only consider the most recently published
33032       server descriptor for each server. Also, when the user requests
33033       a list of servers that _reject_ connections to a given address,
33034       explicitly exclude the IPs that also have servers that accept
33035       connections to that address. (Resolves bug 405.)
33036     - Stop allowing hibernating servers to be "stable" or "fast".
33037     - On Windows, we were preventing other processes from reading
33038       cached-routers while Tor was running. (Reported by janbar)
33039     - Make the NodeFamilies config option work. (Reported by
33040       lodger -- it has never actually worked, even though we added it
33041       in Oct 2004.)
33042     - Check return values from pthread_mutex functions.
33043     - Don't save non-general-purpose router descriptors to the disk cache,
33044       because we have no way of remembering what their purpose was when
33045       we restart.
33046     - Add even more asserts to hunt down bug 417.
33047     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
33048     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
33049       Add a log message to confirm that it is in fact unlikely.
33051   o Minor bugfixes (controller):
33052     - Make 'getinfo fingerprint' return a 551 error if we're not a
33053       server, so we match what the control spec claims we do. Reported
33054       by daejees.
33055     - Fix a typo in an error message when extendcircuit fails that
33056       caused us to not follow the \r\n-based delimiter protocol. Reported
33057       by daejees.
33059   o Code simplifications and refactoring:
33060     - Stop passing around circuit_t and crypt_path_t pointers that are
33061       implicit in other procedure arguments.
33062     - Drop the old code to choke directory connections when the
33063       corresponding OR connections got full: thanks to the cell queue
33064       feature, OR conns don't get full any more.
33065     - Make dns_resolve() handle attaching connections to circuits
33066       properly, so the caller doesn't have to.
33067     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
33068     - Keep the connection array as a dynamic smartlist_t, rather than as
33069       a fixed-sized array. This is important, as the number of connections
33070       is becoming increasingly decoupled from the number of sockets.
33073 Changes in version 0.1.2.14 - 2007-05-25
33074   Tor 0.1.2.14 changes the addresses of two directory authorities (this
33075   change especially affects those who serve or use hidden services),
33076   and fixes several other crash- and security-related bugs.
33078   o Directory authority changes:
33079     - Two directory authorities (moria1 and moria2) just moved to new
33080       IP addresses. This change will particularly affect those who serve
33081       or use hidden services.
33083   o Major bugfixes (crashes):
33084     - If a directory server runs out of space in the connection table
33085       as it's processing a begin_dir request, it will free the exit stream
33086       but leave it attached to the circuit, leading to unpredictable
33087       behavior. (Reported by seeess, fixes bug 425.)
33088     - Fix a bug in dirserv_remove_invalid() that would cause authorities
33089       to corrupt memory under some really unlikely scenarios.
33090     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
33091     - Avoid segfaults when reading from mmaped descriptor file. (Reported
33092       by lodger.)
33094   o Major bugfixes (security):
33095     - When choosing an entry guard for a circuit, avoid using guards
33096       that are in the same family as the chosen exit -- not just guards
33097       that are exactly the chosen exit. (Reported by lodger.)
33099   o Major bugfixes (resource management):
33100     - If a directory authority is down, skip it when deciding where to get
33101       networkstatus objects or descriptors. Otherwise we keep asking
33102       every 10 seconds forever. Fixes bug 384.
33103     - Count it as a failure if we fetch a valid network-status but we
33104       don't want to keep it. Otherwise we'll keep fetching it and keep
33105       not wanting to keep it. Fixes part of bug 422.
33106     - If all of our dirservers have given us bad or no networkstatuses
33107       lately, then stop hammering them once per minute even when we
33108       think they're failed. Fixes another part of bug 422.
33110   o Minor bugfixes:
33111     - Actually set the purpose correctly for descriptors inserted with
33112       purpose=controller.
33113     - When we have k non-v2 authorities in our DirServer config,
33114       we ignored the last k authorities in the list when updating our
33115       network-statuses.
33116     - Correctly back-off from requesting router descriptors that we are
33117       having a hard time downloading.
33118     - Read resolv.conf files correctly on platforms where read() returns
33119       partial results on small file reads.
33120     - Don't rebuild the entire router store every time we get 32K of
33121       routers: rebuild it when the journal gets very large, or when
33122       the gaps in the store get very large.
33124   o Minor features:
33125     - When routers publish SVN revisions in their router descriptors,
33126       authorities now include those versions correctly in networkstatus
33127       documents.
33128     - Warn when using a version of libevent before 1.3b to run a server on
33129       OSX or BSD: these versions interact badly with userspace threads.
33132 Changes in version 0.1.2.13 - 2007-04-24
33133   This release features some major anonymity fixes, such as safer path
33134   selection; better client performance; faster bootstrapping, better
33135   address detection, and better DNS support for servers; write limiting as
33136   well as read limiting to make servers easier to run; and a huge pile of
33137   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
33139   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
33140   of the Freenode IRC network, remembering his patience and vision for
33141   free speech on the Internet.
33143   o Minor fixes:
33144     - Fix a memory leak when we ask for "all" networkstatuses and we
33145       get one we don't recognize.
33146     - Add more asserts to hunt down bug 417.
33147     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
33150 Changes in version 0.1.2.12-rc - 2007-03-16
33151   o Major bugfixes:
33152     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
33153       directory information requested inside Tor connections (i.e. via
33154       begin_dir cells). It only triggered when the same connection was
33155       serving other data at the same time. Reported by seeess.
33157   o Minor bugfixes:
33158     - When creating a circuit via the controller, send a 'launched'
33159       event when we're done, so we follow the spec better.
33162 Changes in version 0.1.2.11-rc - 2007-03-15
33163   o Minor bugfixes (controller), reported by daejees:
33164     - Correct the control spec to match how the code actually responds
33165       to 'getinfo addr-mappings/*'.
33166     - The control spec described a GUARDS event, but the code
33167       implemented a GUARD event. Standardize on GUARD, but let people
33168       ask for GUARDS too.
33171 Changes in version 0.1.2.10-rc - 2007-03-07
33172   o Major bugfixes (Windows):
33173     - Do not load the NT services library functions (which may not exist)
33174       just to detect if we're a service trying to shut down. Now we run
33175       on Win98 and friends again.
33177   o Minor bugfixes (other):
33178     - Clarify a couple of log messages.
33179     - Fix a misleading socks5 error number.
33182 Changes in version 0.1.2.9-rc - 2007-03-02
33183   o Major bugfixes (Windows):
33184     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
33185       of the usual GCC "%llu". This prevents a bug when saving 64-bit
33186       int configuration values: the high-order 32 bits would get
33187       truncated. In particular, we were being bitten by the default
33188       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
33189       and maybe also bug 397.)
33191   o Minor bugfixes (performance):
33192     - Use OpenSSL's AES implementation on platforms where it's faster.
33193       This could save us as much as 10% CPU usage.
33195   o Minor bugfixes (server):
33196     - Do not rotate onion key immediately after setting it for the first
33197       time.
33199   o Minor bugfixes (directory authorities):
33200     - Stop calling servers that have been hibernating for a long time
33201       "stable". Also, stop letting hibernating or obsolete servers affect
33202       uptime and bandwidth cutoffs.
33203     - Stop listing hibernating servers in the v1 directory.
33205   o Minor bugfixes (hidden services):
33206     - Upload hidden service descriptors slightly less often, to reduce
33207       load on authorities.
33209   o Minor bugfixes (other):
33210     - Fix an assert that could trigger if a controller quickly set then
33211       cleared EntryNodes. Bug found by Udo van den Heuvel.
33212     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
33213       to INT32_MAX.
33214     - Fix a potential race condition in the rpm installer. Found by
33215       Stefan Nordhausen.
33216     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
33217       of 2 as indicating that the server is completely bad; it sometimes
33218       means that the server is just bad for the request in question. (may fix
33219       the last of bug 326.)
33220     - Disable encrypted directory connections when we don't have a server
33221       descriptor for the destination. We'll get this working again in
33222       the 0.2.0 branch.
33225 Changes in version 0.1.2.8-beta - 2007-02-26
33226   o Major bugfixes (crashes):
33227     - Stop crashing when the controller asks us to resetconf more than
33228       one config option at once. (Vidalia 0.0.11 does this.)
33229     - Fix a crash that happened on Win98 when we're given command-line
33230       arguments: don't try to load NT service functions from advapi32.dll
33231       except when we need them. (Bug introduced in 0.1.2.7-alpha;
33232       resolves bug 389.)
33233     - Fix a longstanding obscure crash bug that could occur when
33234       we run out of DNS worker processes. (Resolves bug 390.)
33236   o Major bugfixes (hidden services):
33237     - Correctly detect whether hidden service descriptor downloads are
33238       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
33240   o Major bugfixes (accounting):
33241     - When we start during an accounting interval before it's time to wake
33242       up, remember to wake up at the correct time. (May fix bug 342.)
33244   o Minor bugfixes (controller):
33245     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
33246       clear the corresponding on_circuit variable, and remember later
33247       that we don't need to send a redundant CLOSED event. Resolves part
33248       3 of bug 367.
33249     - Report events where a resolve succeeded or where we got a socks
33250       protocol error correctly, rather than calling both of them
33251       "INTERNAL".
33252     - Change reported stream target addresses to IP consistently when
33253       we finally get the IP from an exit node.
33254     - Send log messages to the controller even if they happen to be very
33255       long.
33257   o Minor bugfixes (other):
33258     - Display correct results when reporting which versions are
33259       recommended, and how recommended they are. (Resolves bug 383.)
33260     - Improve our estimates for directory bandwidth to be less random:
33261       guess that an unrecognized directory will have the average bandwidth
33262       from all known directories, not that it will have the average
33263       bandwidth from those directories earlier than it on the list.
33264     - If we start a server with ClientOnly 1, then set ClientOnly to 0
33265       and hup, stop triggering an assert based on an empty onion_key.
33266     - On platforms with no working mmap() equivalent, don't warn the
33267       user when cached-routers doesn't exist.
33268     - Warn the user when mmap() [or its equivalent] fails for some reason
33269       other than file-not-found.
33270     - Don't warn the user when cached-routers.new doesn't exist: that's
33271       perfectly fine when starting up for the first time.
33272     - When EntryNodes are configured, rebuild the guard list to contain,
33273       in order: the EntryNodes that were guards before; the rest of the
33274       EntryNodes; the nodes that were guards before.
33275     - Mask out all signals in sub-threads; only the libevent signal
33276       handler should be processing them. This should prevent some crashes
33277       on some machines using pthreads. (Patch from coderman.)
33278     - Fix switched arguments on memset in the implementation of
33279       tor_munmap() for systems with no mmap() call.
33280     - When Tor receives a router descriptor that it asked for, but
33281       no longer wants (because it has received fresh networkstatuses
33282       in the meantime), do not warn the user. Cache the descriptor if
33283       we're a cache; drop it if we aren't.
33284     - Make earlier entry guards _really_ get retried when the network
33285       comes back online.
33286     - On a malformed DNS reply, always give an error to the corresponding
33287       DNS request.
33288     - Build with recent libevents on platforms that do not define the
33289       nonstandard types "u_int8_t" and friends.
33291   o Minor features (controller):
33292     - Warn the user when an application uses the obsolete binary v0
33293       control protocol. We're planning to remove support for it during
33294       the next development series, so it's good to give people some
33295       advance warning.
33296     - Add STREAM_BW events to report per-entry-stream bandwidth
33297       use. (Patch from Robert Hogan.)
33298     - Rate-limit SIGNEWNYM signals in response to controllers that
33299       impolitely generate them for every single stream. (Patch from
33300       mwenge; closes bug 394.)
33301     - Make REMAP stream events have a SOURCE (cache or exit), and
33302       make them generated in every case where we get a successful
33303       connected or resolved cell.
33305   o Minor bugfixes (performance):
33306     - Call router_have_min_dir_info half as often. (This is showing up in
33307       some profiles, but not others.)
33308     - When using GCC, make log_debug never get called at all, and its
33309       arguments never get evaluated, when no debug logs are configured.
33310       (This is showing up in some profiles, but not others.)
33312   o Minor features:
33313     - Remove some never-implemented options. Mark PathlenCoinWeight as
33314       obsolete.
33315     - Implement proposal 106: Stop requiring clients to have well-formed
33316       certificates; stop checking nicknames in certificates. (Clients
33317       have certificates so that they can look like Tor servers, but in
33318       the future we might want to allow them to look like regular TLS
33319       clients instead. Nicknames in certificates serve no purpose other
33320       than making our protocol easier to recognize on the wire.)
33321     - Revise messages on handshake failure again to be even more clear about
33322       which are incoming connections and which are outgoing.
33323     - Discard any v1 directory info that's over 1 month old (for
33324       directories) or over 1 week old (for running-routers lists).
33325     - Do not warn when individual nodes in the configuration's EntryNodes,
33326       ExitNodes, etc are down: warn only when all possible nodes
33327       are down. (Fixes bug 348.)
33328     - Always remove expired routers and networkstatus docs before checking
33329       whether we have enough information to build circuits. (Fixes
33330       bug 373.)
33331     - Put a lower-bound on MaxAdvertisedBandwidth.
33334 Changes in version 0.1.2.7-alpha - 2007-02-06
33335   o Major bugfixes (rate limiting):
33336     - Servers decline directory requests much more aggressively when
33337       they're low on bandwidth. Otherwise they end up queueing more and
33338       more directory responses, which can't be good for latency.
33339     - But never refuse directory requests from local addresses.
33340     - Fix a memory leak when sending a 503 response for a networkstatus
33341       request.
33342     - Be willing to read or write on local connections (e.g. controller
33343       connections) even when the global rate limiting buckets are empty.
33344     - If our system clock jumps back in time, don't publish a negative
33345       uptime in the descriptor. Also, don't let the global rate limiting
33346       buckets go absurdly negative.
33347     - Flush local controller connection buffers periodically as we're
33348       writing to them, so we avoid queueing 4+ megabytes of data before
33349       trying to flush.
33351   o Major bugfixes (NT services):
33352     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
33353       command-line flag so that admins can override the default by saying
33354       "tor --service install --user "SomeUser"". This will not affect
33355       existing installed services. Also, warn the user that the service
33356       will look for its configuration file in the service user's
33357       %appdata% directory. (We can't do the 'hardwire the user's appdata
33358       directory' trick any more, since we may not have read access to that
33359       directory.)
33361   o Major bugfixes (other):
33362     - Previously, we would cache up to 16 old networkstatus documents
33363       indefinitely, if they came from nontrusted authorities. Now we
33364       discard them if they are more than 10 days old.
33365     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
33366       Del Vecchio).
33367     - Detect and reject malformed DNS responses containing circular
33368       pointer loops.
33369     - If exits are rare enough that we're not marking exits as guards,
33370       ignore exit bandwidth when we're deciding the required bandwidth
33371       to become a guard.
33372     - When we're handling a directory connection tunneled over Tor,
33373       don't fill up internal memory buffers with all the data we want
33374       to tunnel; instead, only add it if the OR connection that will
33375       eventually receive it has some room for it. (This can lead to
33376       slowdowns in tunneled dir connections; a better solution will have
33377       to wait for 0.2.0.)
33379   o Minor bugfixes (dns):
33380     - Add some defensive programming to eventdns.c in an attempt to catch
33381       possible memory-stomping bugs.
33382     - Detect and reject DNS replies containing IPv4 or IPv6 records with
33383       an incorrect number of bytes. (Previously, we would ignore the
33384       extra bytes.)
33385     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
33386       in the correct order, and doesn't crash.
33387     - Free memory held in recently-completed DNS lookup attempts on exit.
33388       This was not a memory leak, but may have been hiding memory leaks.
33389     - Handle TTL values correctly on reverse DNS lookups.
33390     - Treat failure to parse resolv.conf as an error.
33392   o Minor bugfixes (other):
33393     - Fix crash with "tor --list-fingerprint" (reported by seeess).
33394     - When computing clock skew from directory HTTP headers, consider what
33395       time it was when we finished asking for the directory, not what
33396       time it is now.
33397     - Expire socks connections if they spend too long waiting for the
33398       handshake to finish. Previously we would let them sit around for
33399       days, if the connecting application didn't close them either.
33400     - And if the socks handshake hasn't started, don't send a
33401       "DNS resolve socks failed" handshake reply; just close it.
33402     - Stop using C functions that OpenBSD's linker doesn't like.
33403     - Don't launch requests for descriptors unless we have networkstatuses
33404       from at least half of the authorities. This delays the first
33405       download slightly under pathological circumstances, but can prevent
33406       us from downloading a bunch of descriptors we don't need.
33407     - Do not log IPs with TLS failures for incoming TLS
33408       connections. (Fixes bug 382.)
33409     - If the user asks to use invalid exit nodes, be willing to use
33410       unstable ones.
33411     - Stop using the reserved ac_cv namespace in our configure script.
33412     - Call stat() slightly less often; use fstat() when possible.
33413     - Refactor the way we handle pending circuits when an OR connection
33414       completes or fails, in an attempt to fix a rare crash bug.
33415     - Only rewrite a conn's address based on X-Forwarded-For: headers
33416       if it's a parseable public IP address; and stop adding extra quotes
33417       to the resulting address.
33419   o Major features:
33420     - Weight directory requests by advertised bandwidth. Now we can
33421       let servers enable write limiting but still allow most clients to
33422       succeed at their directory requests. (We still ignore weights when
33423       choosing a directory authority; I hope this is a feature.)
33425   o Minor features:
33426     - Create a new file ReleaseNotes which was the old ChangeLog. The
33427       new ChangeLog file now includes the summaries for all development
33428       versions too.
33429     - Check for addresses with invalid characters at the exit as well
33430       as at the client, and warn less verbosely when they fail. You can
33431       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
33432     - Adapt a patch from goodell to let the contrib/exitlist script
33433       take arguments rather than require direct editing.
33434     - Inform the server operator when we decide not to advertise a
33435       DirPort due to AccountingMax enabled or a low BandwidthRate. It
33436       was confusing Zax, so now we're hopefully more helpful.
33437     - Bring us one step closer to being able to establish an encrypted
33438       directory tunnel without knowing a descriptor first. Still not
33439       ready yet. As part of the change, now assume we can use a
33440       create_fast cell if we don't know anything about a router.
33441     - Allow exit nodes to use nameservers running on ports other than 53.
33442     - Servers now cache reverse DNS replies.
33443     - Add an --ignore-missing-torrc command-line option so that we can
33444       get the "use sensible defaults if the configuration file doesn't
33445       exist" behavior even when specifying a torrc location on the command
33446       line.
33448   o Minor features (controller):
33449     - Track reasons for OR connection failure; make these reasons
33450       available via the controller interface. (Patch from Mike Perry.)
33451     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
33452       can learn when clients are sending malformed hostnames to Tor.
33453     - Clean up documentation for controller status events.
33454     - Add a REMAP status to stream events to note that a stream's
33455       address has changed because of a cached address or a MapAddress
33456       directive.
33459 Changes in version 0.1.2.6-alpha - 2007-01-09
33460   o Major bugfixes:
33461     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
33462       connection handles more than 4 gigs in either direction, we crash.
33463     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
33464       advertised exit node, somebody might try to exit from us when
33465       we're bootstrapping and before we've built our descriptor yet.
33466       Refuse the connection rather than crashing.
33468   o Minor bugfixes:
33469     - Warn if we (as a server) find that we've resolved an address that we
33470       weren't planning to resolve.
33471     - Warn that using select() on any libevent version before 1.1 will be
33472       unnecessarily slow (even for select()).
33473     - Flush ERR-level controller status events just like we currently
33474       flush ERR-level log events, so that a Tor shutdown doesn't prevent
33475       the controller from learning about current events.
33477   o Minor features (more controller status events):
33478     - Implement EXTERNAL_ADDRESS server status event so controllers can
33479       learn when our address changes.
33480     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
33481       can learn when directories reject our descriptor.
33482     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
33483       can learn when a client application is speaking a non-socks protocol
33484       to our SocksPort.
33485     - Implement DANGEROUS_SOCKS client status event so controllers
33486       can learn when a client application is leaking DNS addresses.
33487     - Implement BUG general status event so controllers can learn when
33488       Tor is unhappy about its internal invariants.
33489     - Implement CLOCK_SKEW general status event so controllers can learn
33490       when Tor thinks the system clock is set incorrectly.
33491     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
33492       server status events so controllers can learn when their descriptors
33493       are accepted by a directory.
33494     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
33495       server status events so controllers can learn about Tor's progress in
33496       deciding whether it's reachable from the outside.
33497     - Implement BAD_LIBEVENT general status event so controllers can learn
33498       when we have a version/method combination in libevent that needs to
33499       be changed.
33500     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
33501       and DNS_USELESS server status events so controllers can learn
33502       about changes to DNS server status.
33504   o Minor features (directory):
33505     - Authorities no longer recommend exits as guards if this would shift
33506       too much load to the exit nodes.
33509 Changes in version 0.1.2.5-alpha - 2007-01-06
33510   o Major features:
33511     - Enable write limiting as well as read limiting. Now we sacrifice
33512       capacity if we're pushing out lots of directory traffic, rather
33513       than overrunning the user's intended bandwidth limits.
33514     - Include TLS overhead when counting bandwidth usage; previously, we
33515       would count only the bytes sent over TLS, but not the bytes used
33516       to send them.
33517     - Support running the Tor service with a torrc not in the same
33518       directory as tor.exe and default to using the torrc located in
33519       the %appdata%\Tor\ of the user who installed the service. Patch
33520       from Matt Edman.
33521     - Servers now check for the case when common DNS requests are going to
33522       wildcarded addresses (i.e. all getting the same answer), and change
33523       their exit policy to reject *:* if it's happening.
33524     - Implement BEGIN_DIR cells, so we can connect to the directory
33525       server via TLS to do encrypted directory requests rather than
33526       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
33527       config options if you like.
33529   o Minor features (config and docs):
33530     - Start using the state file to store bandwidth accounting data:
33531       the bw_accounting file is now obsolete. We'll keep generating it
33532       for a while for people who are still using 0.1.2.4-alpha.
33533     - Try to batch changes to the state file so that we do as few
33534       disk writes as possible while still storing important things in
33535       a timely fashion.
33536     - The state file and the bw_accounting file get saved less often when
33537       the AvoidDiskWrites config option is set.
33538     - Make PIDFile work on Windows (untested).
33539     - Add internal descriptions for a bunch of configuration options:
33540       accessible via controller interface and in comments in saved
33541       options files.
33542     - Reject *:563 (NNTPS) in the default exit policy. We already reject
33543       NNTP by default, so this seems like a sensible addition.
33544     - Clients now reject hostnames with invalid characters. This should
33545       avoid some inadvertent info leaks. Add an option
33546       AllowNonRFC953Hostnames to disable this behavior, in case somebody
33547       is running a private network with hosts called @, !, and #.
33548     - Add a maintainer script to tell us which options are missing
33549       documentation: "make check-docs".
33550     - Add a new address-spec.txt document to describe our special-case
33551       addresses: .exit, .onion, and .noconnnect.
33553   o Minor features (DNS):
33554     - Ongoing work on eventdns infrastructure: now it has dns server
33555       and ipv6 support. One day Tor will make use of it.
33556     - Add client-side caching for reverse DNS lookups.
33557     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
33558     - When we change nameservers or IP addresses, reset and re-launch
33559       our tests for DNS hijacking.
33561   o Minor features (directory):
33562     - Authorities now specify server versions in networkstatus. This adds
33563       about 2% to the size of compressed networkstatus docs, and allows
33564       clients to tell which servers support BEGIN_DIR and which don't.
33565       The implementation is forward-compatible with a proposed future
33566       protocol version scheme not tied to Tor versions.
33567     - DirServer configuration lines now have an orport= option so
33568       clients can open encrypted tunnels to the authorities without
33569       having downloaded their descriptors yet. Enabled for moria1,
33570       moria2, tor26, and lefkada now in the default configuration.
33571     - Directory servers are more willing to send a 503 "busy" if they
33572       are near their write limit, especially for v1 directory requests.
33573       Now they can use their limited bandwidth for actual Tor traffic.
33574     - Clients track responses with status 503 from dirservers. After a
33575       dirserver has given us a 503, we try not to use it until an hour has
33576       gone by, or until we have no dirservers that haven't given us a 503.
33577     - When we get a 503 from a directory, and we're not a server, we don't
33578       count the failure against the total number of failures allowed
33579       for the thing we're trying to download.
33580     - Report X-Your-Address-Is correctly from tunneled directory
33581       connections; don't report X-Your-Address-Is when it's an internal
33582       address; and never believe reported remote addresses when they're
33583       internal.
33584     - Protect against an unlikely DoS attack on directory servers.
33585     - Add a BadDirectory flag to network status docs so that authorities
33586       can (eventually) tell clients about caches they believe to be
33587       broken.
33589   o Minor features (controller):
33590     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
33591     - Reimplement GETINFO so that info/names stays in sync with the
33592       actual keys.
33593     - Implement "GETINFO fingerprint".
33594     - Implement "SETEVENTS GUARD" so controllers can get updates on
33595       entry guard status as it changes.
33597   o Minor features (clean up obsolete pieces):
33598     - Remove some options that have been deprecated since at least
33599       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
33600       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
33601       to set log options.
33602     - We no longer look for identity and onion keys in "identity.key" and
33603       "onion.key" -- these were replaced by secret_id_key and
33604       secret_onion_key in 0.0.8pre1.
33605     - We no longer require unrecognized directory entries to be
33606       preceded by "opt".
33608   o Major bugfixes (security):
33609     - Stop sending the HttpProxyAuthenticator string to directory
33610       servers when directory connections are tunnelled through Tor.
33611     - Clients no longer store bandwidth history in the state file.
33612     - Do not log introduction points for hidden services if SafeLogging
33613       is set.
33614     - When generating bandwidth history, round down to the nearest
33615       1k. When storing accounting data, round up to the nearest 1k.
33616     - When we're running as a server, remember when we last rotated onion
33617       keys, so that we will rotate keys once they're a week old even if
33618       we never stay up for a week ourselves.
33620   o Major bugfixes (other):
33621     - Fix a longstanding bug in eventdns that prevented the count of
33622       timed-out resolves from ever being reset. This bug caused us to
33623       give up on a nameserver the third time it timed out, and try it
33624       10 seconds later... and to give up on it every time it timed out
33625       after that.
33626     - Take out the '5 second' timeout from the connection retry
33627       schedule. Now the first connect attempt will wait a full 10
33628       seconds before switching to a new circuit. Perhaps this will help
33629       a lot. Based on observations from Mike Perry.
33630     - Fix a bug on the Windows implementation of tor_mmap_file() that
33631       would prevent the cached-routers file from ever loading. Reported
33632       by John Kimble.
33634   o Minor bugfixes:
33635     - Fix an assert failure when a directory authority sets
33636       AuthDirRejectUnlisted and then receives a descriptor from an
33637       unlisted router. Reported by seeess.
33638     - Avoid a double-free when parsing malformed DirServer lines.
33639     - Fix a bug when a BSD-style PF socket is first used. Patch from
33640       Fabian Keil.
33641     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
33642       to resolve an address at a given exit node even when they ask for
33643       it by name.
33644     - Servers no longer ever list themselves in their "family" line,
33645       even if configured to do so. This makes it easier to configure
33646       family lists conveniently.
33647     - When running as a server, don't fall back to 127.0.0.1 when no
33648       nameservers are configured in /etc/resolv.conf; instead, make the
33649       user fix resolv.conf or specify nameservers explicitly. (Resolves
33650       bug 363.)
33651     - Stop accepting certain malformed ports in configured exit policies.
33652     - Don't re-write the fingerprint file every restart, unless it has
33653       changed.
33654     - Stop warning when a single nameserver fails: only warn when _all_ of
33655       our nameservers have failed. Also, when we only have one nameserver,
33656       raise the threshold for deciding that the nameserver is dead.
33657     - Directory authorities now only decide that routers are reachable
33658       if their identity keys are as expected.
33659     - When the user uses bad syntax in the Log config line, stop
33660       suggesting other bad syntax as a replacement.
33661     - Correctly detect ipv6 DNS capability on OpenBSD.
33663   o Minor bugfixes (controller):
33664     - Report the circuit number correctly in STREAM CLOSED events. Bug
33665       reported by Mike Perry.
33666     - Do not report bizarre values for results of accounting GETINFOs
33667       when the last second's write or read exceeds the allotted bandwidth.
33668     - Report "unrecognized key" rather than an empty string when the
33669       controller tries to fetch a networkstatus that doesn't exist.
33672 Changes in version 0.1.1.26 - 2006-12-14
33673   o Security bugfixes:
33674     - Stop sending the HttpProxyAuthenticator string to directory
33675       servers when directory connections are tunnelled through Tor.
33676     - Clients no longer store bandwidth history in the state file.
33677     - Do not log introduction points for hidden services if SafeLogging
33678       is set.
33680   o Minor bugfixes:
33681     - Fix an assert failure when a directory authority sets
33682       AuthDirRejectUnlisted and then receives a descriptor from an
33683       unlisted router (reported by seeess).
33686 Changes in version 0.1.2.4-alpha - 2006-12-03
33687   o Major features:
33688     - Add support for using natd; this allows FreeBSDs earlier than
33689       5.1.2 to have ipfw send connections through Tor without using
33690       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
33692   o Minor features:
33693     - Make all connections to addresses of the form ".noconnect"
33694       immediately get closed. This lets application/controller combos
33695       successfully test whether they're talking to the same Tor by
33696       watching for STREAM events.
33697     - Make cross.sh cross-compilation script work even when autogen.sh
33698       hasn't been run. (Patch from Michael Mohr.)
33699     - Statistics dumped by -USR2 now include a breakdown of public key
33700       operations, for profiling.
33702   o Major bugfixes:
33703     - Fix a major leak when directory authorities parse their
33704       approved-routers list, a minor memory leak when we fail to pick
33705       an exit node, and a few rare leaks on errors.
33706     - Handle TransPort connections even when the server sends data before
33707       the client sends data. Previously, the connection would just hang
33708       until the client sent data. (Patch from tup based on patch from
33709       Zajcev Evgeny.)
33710     - Avoid assert failure when our cached-routers file is empty on
33711       startup.
33713   o Minor bugfixes:
33714     - Don't log spurious warnings when we see a circuit close reason we
33715       don't recognize; it's probably just from a newer version of Tor.
33716     - Have directory authorities allow larger amounts of drift in uptime
33717       without replacing the server descriptor: previously, a server that
33718       restarted every 30 minutes could have 48 "interesting" descriptors
33719       per day.
33720     - Start linking to the Tor specification and Tor reference manual
33721       correctly in the Windows installer.
33722     - Add Vidalia to the OS X uninstaller script, so when we uninstall
33723       Tor/Privoxy we also uninstall Vidalia.
33724     - Resume building on Irix64, and fix a lot of warnings from its
33725       MIPSpro C compiler.
33726     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
33727       when we're running as a client.
33730 Changes in version 0.1.1.25 - 2006-11-04
33731   o Major bugfixes:
33732     - When a client asks us to resolve (rather than connect to)
33733       an address, and we have a cached answer, give them the cached
33734       answer. Previously, we would give them no answer at all.
33735     - We were building exactly the wrong circuits when we predict
33736       hidden service requirements, meaning Tor would have to build all
33737       its circuits on demand.
33738     - If none of our live entry guards have a high uptime, but we
33739       require a guard with a high uptime, try adding a new guard before
33740       we give up on the requirement. This patch should make long-lived
33741       connections more stable on average.
33742     - When testing reachability of our DirPort, don't launch new
33743       tests when there's already one in progress -- unreachable
33744       servers were stacking up dozens of testing streams.
33746   o Security bugfixes:
33747     - When the user sends a NEWNYM signal, clear the client-side DNS
33748       cache too. Otherwise we continue to act on previous information.
33750   o Minor bugfixes:
33751     - Avoid a memory corruption bug when creating a hash table for
33752       the first time.
33753     - Avoid possibility of controller-triggered crash when misusing
33754       certain commands from a v0 controller on platforms that do not
33755       handle printf("%s",NULL) gracefully.
33756     - Avoid infinite loop on unexpected controller input.
33757     - Don't log spurious warnings when we see a circuit close reason we
33758       don't recognize; it's probably just from a newer version of Tor.
33759     - Add Vidalia to the OS X uninstaller script, so when we uninstall
33760       Tor/Privoxy we also uninstall Vidalia.
33763 Changes in version 0.1.2.3-alpha - 2006-10-29
33764   o Minor features:
33765     - Prepare for servers to publish descriptors less often: never
33766       discard a descriptor simply for being too old until either it is
33767       recommended by no authorities, or until we get a better one for
33768       the same router. Make caches consider retaining old recommended
33769       routers for even longer.
33770     - If most authorities set a BadExit flag for a server, clients
33771       don't think of it as a general-purpose exit. Clients only consider
33772       authorities that advertise themselves as listing bad exits.
33773     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
33774       headers for content, so that we can work better in the presence of
33775       caching HTTP proxies.
33776     - Allow authorities to list nodes as bad exits by fingerprint or by
33777       address.
33779   o Minor features, controller:
33780     - Add a REASON field to CIRC events; for backward compatibility, this
33781       field is sent only to controllers that have enabled the extended
33782       event format. Also, add additional reason codes to explain why
33783       a given circuit has been destroyed or truncated. (Patches from
33784       Mike Perry)
33785     - Add a REMOTE_REASON field to extended CIRC events to tell the
33786       controller about why a remote OR told us to close a circuit.
33787     - Stream events also now have REASON and REMOTE_REASON fields,
33788       working much like those for circuit events.
33789     - There's now a GETINFO ns/... field so that controllers can ask Tor
33790       about the current status of a router.
33791     - A new event type "NS" to inform a controller when our opinion of
33792       a router's status has changed.
33793     - Add a GETINFO events/names and GETINFO features/names so controllers
33794       can tell which events and features are supported.
33795     - A new CLEARDNSCACHE signal to allow controllers to clear the
33796       client-side DNS cache without expiring circuits.
33798   o Security bugfixes:
33799     - When the user sends a NEWNYM signal, clear the client-side DNS
33800       cache too. Otherwise we continue to act on previous information.
33802   o Minor bugfixes:
33803     - Avoid sending junk to controllers or segfaulting when a controller
33804       uses EVENT_NEW_DESC with verbose nicknames.
33805     - Stop triggering asserts if the controller tries to extend hidden
33806       service circuits (reported by mwenge).
33807     - Avoid infinite loop on unexpected controller input.
33808     - When the controller does a "GETINFO network-status", tell it
33809       about even those routers whose descriptors are very old, and use
33810       long nicknames where appropriate.
33811     - Change NT service functions to be loaded on demand. This lets us
33812       build with MinGW without breaking Tor for Windows 98 users.
33813     - Do DirPort reachability tests less often, since a single test
33814       chews through many circuits before giving up.
33815     - In the hidden service example in torrc.sample, stop recommending
33816       esoteric and discouraged hidden service options.
33817     - When stopping an NT service, wait up to 10 sec for it to actually
33818       stop. Patch from Matt Edman; resolves bug 295.
33819     - Fix handling of verbose nicknames with ORCONN controller events:
33820       make them show up exactly when requested, rather than exactly when
33821       not requested.
33822     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
33823       printing a duplicate "$" in the keys we send (reported by mwenge).
33824     - Correctly set maximum connection limit on Cygwin. (This time
33825       for sure!)
33826     - Try to detect Windows correctly when cross-compiling.
33827     - Detect the size of the routers file correctly even if it is
33828       corrupted (on systems without mmap) or not page-aligned (on systems
33829       with mmap). This bug was harmless.
33830     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
33831       to open a stream fails; now we do in more cases. This should
33832       make clients able to find a good exit faster in some cases, since
33833       unhandleable requests will now get an error rather than timing out.
33834     - Resolve two memory leaks when rebuilding the on-disk router cache
33835       (reported by fookoowa).
33836     - Clean up minor code warnings suggested by the MIPSpro C compiler,
33837       and reported by some Centos users.
33838     - Controller signals now work on non-Unix platforms that don't define
33839       SIGUSR1 and SIGUSR2 the way we expect.
33840     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
33841       values before failing, and always enables eventdns.
33842     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
33843       Try to fix this in configure.in by checking for most functions
33844       before we check for libevent.
33847 Changes in version 0.1.2.2-alpha - 2006-10-07
33848   o Major features:
33849     - Make our async eventdns library on-by-default for Tor servers,
33850       and plan to deprecate the separate dnsworker threads.
33851     - Add server-side support for "reverse" DNS lookups (using PTR
33852       records so clients can determine the canonical hostname for a given
33853       IPv4 address). Only supported by servers using eventdns; servers
33854       now announce in their descriptors whether they support eventdns.
33855     - Specify and implement client-side SOCKS5 interface for reverse DNS
33856       lookups (see doc/socks-extensions.txt).
33857     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
33858       connect to directory servers through Tor. Previously, clients needed
33859       to find Tor exits to make private connections to directory servers.
33860     - Avoid choosing Exit nodes for entry or middle hops when the
33861       total bandwidth available from non-Exit nodes is much higher than
33862       the total bandwidth available from Exit nodes.
33863     - Workaround for name servers (like Earthlink's) that hijack failing
33864       DNS requests and replace the no-such-server answer with a "helpful"
33865       redirect to an advertising-driven search portal. Also work around
33866       DNS hijackers who "helpfully" decline to hijack known-invalid
33867       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
33868       lets you turn it off.
33869     - Send out a burst of long-range padding cells once we've established
33870       that we're reachable. Spread them over 4 circuits, so hopefully
33871       a few will be fast. This exercises our bandwidth and bootstraps
33872       us into the directory more quickly.
33874   o New/improved config options:
33875     - Add new config option "ResolvConf" to let the server operator
33876       choose an alternate resolve.conf file when using eventdns.
33877     - Add an "EnforceDistinctSubnets" option to control our "exclude
33878       servers on the same /16" behavior. It's still on by default; this
33879       is mostly for people who want to operate private test networks with
33880       all the machines on the same subnet.
33881     - If one of our entry guards is on the ExcludeNodes list, or the
33882       directory authorities don't think it's a good guard, treat it as
33883       if it were unlisted: stop using it as a guard, and throw it off
33884       the guards list if it stays that way for a long time.
33885     - Allow directory authorities to be marked separately as authorities
33886       for the v1 directory protocol, the v2 directory protocol, and
33887       as hidden service directories, to make it easier to retire old
33888       authorities. V1 authorities should set "HSAuthoritativeDir 1"
33889       to continue being hidden service authorities too.
33890     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
33892   o Minor features, controller:
33893     - Fix CIRC controller events so that controllers can learn the
33894       identity digests of non-Named servers used in circuit paths.
33895     - Let controllers ask for more useful identifiers for servers. Instead
33896       of learning identity digests for un-Named servers and nicknames
33897       for Named servers, the new identifiers include digest, nickname,
33898       and indication of Named status. Off by default; see control-spec.txt
33899       for more information.
33900     - Add a "getinfo address" controller command so it can display Tor's
33901       best guess to the user.
33902     - New controller event to alert the controller when our server
33903       descriptor has changed.
33904     - Give more meaningful errors on controller authentication failure.
33906   o Minor features, other:
33907     - When asked to resolve a hostname, don't use non-exit servers unless
33908       requested to do so. This allows servers with broken DNS to be
33909       useful to the network.
33910     - Divide eventdns log messages into warn and info messages.
33911     - Reserve the nickname "Unnamed" for routers that can't pick
33912       a hostname: any router can call itself Unnamed; directory
33913       authorities will never allocate Unnamed to any particular router;
33914       clients won't believe that any router is the canonical Unnamed.
33915     - Only include function names in log messages for info/debug messages.
33916       For notice/warn/err, the content of the message should be clear on
33917       its own, and printing the function name only confuses users.
33918     - Avoid some false positives during reachability testing: don't try
33919       to test via a server that's on the same /24 as us.
33920     - If we fail to build a circuit to an intended enclave, and it's
33921       not mandatory that we use that enclave, stop wanting it.
33922     - When eventdns is enabled, allow multithreaded builds on NetBSD and
33923       OpenBSD. (We had previously disabled threads on these platforms
33924       because they didn't have working thread-safe resolver functions.)
33926   o Major bugfixes, anonymity/security:
33927     - If a client asked for a server by name, and there's a named server
33928       in our network-status but we don't have its descriptor yet, we
33929       could return an unnamed server instead.
33930     - Fix NetBSD bug that could allow someone to force uninitialized RAM
33931       to be sent to a server's DNS resolver. This only affects NetBSD
33932       and other platforms that do not bounds-check tolower().
33933     - Reject (most) attempts to use Tor circuits with length one. (If
33934       many people start using Tor as a one-hop proxy, exit nodes become
33935       a more attractive target for compromise.)
33936     - Just because your DirPort is open doesn't mean people should be
33937       able to remotely teach you about hidden service descriptors. Now
33938       only accept rendezvous posts if you've got HSAuthoritativeDir set.
33940   o Major bugfixes, other:
33941     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
33942     - When a client asks the server to resolve (not connect to)
33943       an address, and it has a cached answer, give them the cached answer.
33944       Previously, the server would give them no answer at all.
33945     - Allow really slow clients to not hang up five minutes into their
33946       directory downloads (suggested by Adam J. Richter).
33947     - We were building exactly the wrong circuits when we anticipated
33948       hidden service requirements, meaning Tor would have to build all
33949       its circuits on demand.
33950     - Avoid crashing when we mmap a router cache file of size 0.
33951     - When testing reachability of our DirPort, don't launch new
33952       tests when there's already one in progress -- unreachable
33953       servers were stacking up dozens of testing streams.
33955   o Minor bugfixes, correctness:
33956     - If we're a directory mirror and we ask for "all" network status
33957       documents, we would discard status documents from authorities
33958       we don't recognize.
33959     - Avoid a memory corruption bug when creating a hash table for
33960       the first time.
33961     - Avoid controller-triggered crash when misusing certain commands
33962       from a v0 controller on platforms that do not handle
33963       printf("%s",NULL) gracefully.
33964     - Don't crash when a controller sends a third argument to an
33965       "extendcircuit" request.
33966     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
33967       response; fix error code when "getinfo dir/status/" fails.
33968     - Avoid crash when telling controller stream-status and a stream
33969       is detached.
33970     - Patch from Adam Langley to fix assert() in eventdns.c.
33971     - Fix a debug log message in eventdns to say "X resolved to Y"
33972       instead of "X resolved to X".
33973     - Make eventdns give strings for DNS errors, not just error numbers.
33974     - Track unreachable entry guards correctly: don't conflate
33975       'unreachable by us right now' with 'listed as down by the directory
33976       authorities'. With the old code, if a guard was unreachable by
33977       us but listed as running, it would clog our guard list forever.
33978     - Behave correctly in case we ever have a network with more than
33979       2GB/s total advertised capacity.
33980     - Make TrackExitHosts case-insensitive, and fix the behavior of
33981       ".suffix" TrackExitHosts items to avoid matching in the middle of
33982       an address.
33983     - Finally fix the openssl warnings from newer gccs that believe that
33984       ignoring a return value is okay, but casting a return value and
33985       then ignoring it is a sign of madness.
33986     - Prevent the contrib/exitlist script from printing the same
33987       result more than once.
33988     - Patch from Steve Hildrey: Generate network status correctly on
33989       non-versioning dirservers.
33990     - Don't listen to the X-Your-Address-Is hint if you did the lookup
33991       via Tor; otherwise you'll think you're the exit node's IP address.
33993   o Minor bugfixes, performance:
33994     - Two small performance improvements on parsing descriptors.
33995     - Major performance improvement on inserting descriptors: change
33996       algorithm from O(n^2) to O(n).
33997     - Make the common memory allocation path faster on machines where
33998       malloc(0) returns a pointer.
33999     - Start remembering X-Your-Address-Is directory hints even if you're
34000       a client, so you can become a server more smoothly.
34001     - Avoid duplicate entries on MyFamily line in server descriptor.
34003   o Packaging, features:
34004     - Remove architecture from OS X builds. The official builds are
34005       now universal binaries.
34006     - The Debian package now uses --verify-config when (re)starting,
34007       to distinguish configuration errors from other errors.
34008     - Update RPMs to require libevent 1.1b.
34010   o Packaging, bugfixes:
34011     - Patches so Tor builds with MinGW on Windows.
34012     - Patches so Tor might run on Cygwin again.
34013     - Resume building on non-gcc compilers and ancient gcc. Resume
34014       building with the -O0 compile flag. Resume building cleanly on
34015       Debian woody.
34016     - Run correctly on OS X platforms with case-sensitive filesystems.
34017     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
34018     - Add autoconf checks so Tor can build on Solaris x86 again.
34020   o Documentation
34021     - Documented (and renamed) ServerDNSSearchDomains and
34022       ServerDNSResolvConfFile options.
34023     - Be clearer that the *ListenAddress directives can be repeated
34024       multiple times.
34027 Changes in version 0.1.1.24 - 2006-09-29
34028   o Major bugfixes:
34029     - Allow really slow clients to not hang up five minutes into their
34030       directory downloads (suggested by Adam J. Richter).
34031     - Fix major performance regression from 0.1.0.x: instead of checking
34032       whether we have enough directory information every time we want to
34033       do something, only check when the directory information has changed.
34034       This should improve client CPU usage by 25-50%.
34035     - Don't crash if, after a server has been running for a while,
34036       it can't resolve its hostname.
34038   o Minor bugfixes:
34039     - Allow Tor to start when RunAsDaemon is set but no logs are set.
34040     - Don't crash when the controller receives a third argument to an
34041       "extendcircuit" request.
34042     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
34043       response; fix error code when "getinfo dir/status/" fails.
34044     - Fix configure.in to not produce broken configure files with
34045       more recent versions of autoconf. Thanks to Clint for his auto*
34046       voodoo.
34047     - Fix security bug on NetBSD that could allow someone to force
34048       uninitialized RAM to be sent to a server's DNS resolver. This
34049       only affects NetBSD and other platforms that do not bounds-check
34050       tolower().
34051     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
34052       methods: these are known to be buggy.
34053     - If we're a directory mirror and we ask for "all" network status
34054       documents, we would discard status documents from authorities
34055       we don't recognize.
34058 Changes in version 0.1.2.1-alpha - 2006-08-27
34059   o Major features:
34060     - Add "eventdns" async dns library from Adam Langley, tweaked to
34061       build on OSX and Windows. Only enabled if you pass the
34062       --enable-eventdns argument to configure.
34063     - Allow servers with no hostname or IP address to learn their
34064       IP address by asking the directory authorities. This code only
34065       kicks in when you would normally have exited with a "no address"
34066       error. Nothing's authenticated, so use with care.
34067     - Rather than waiting a fixed amount of time between retrying
34068       application connections, we wait only 5 seconds for the first,
34069       10 seconds for the second, and 15 seconds for each retry after
34070       that. Hopefully this will improve the expected user experience.
34071     - Patch from Tup to add support for transparent AP connections:
34072       this basically bundles the functionality of trans-proxy-tor
34073       into the Tor mainline. Now hosts with compliant pf/netfilter
34074       implementations can redirect TCP connections straight to Tor
34075       without diverting through SOCKS. Needs docs.
34076     - Busy directory servers save lots of memory by spooling server
34077       descriptors, v1 directories, and v2 networkstatus docs to buffers
34078       as needed rather than en masse. Also mmap the cached-routers
34079       files, so we don't need to keep the whole thing in memory too.
34080     - Automatically avoid picking more than one node from the same
34081       /16 network when constructing a circuit.
34082     - Revise and clean up the torrc.sample that we ship with; add
34083       a section for BandwidthRate and BandwidthBurst.
34085   o Minor features:
34086     - Split circuit_t into origin_circuit_t and or_circuit_t, and
34087       split connection_t into edge, or, dir, control, and base structs.
34088       These will save quite a bit of memory on busy servers, and they'll
34089       also help us track down bugs in the code and bugs in the spec.
34090     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
34091       or later. Log when we are doing this, so we can diagnose it when
34092       it fails. (Also, recommend libevent 1.1b for kqueue and
34093       win32 methods; deprecate libevent 1.0b harder; make libevent
34094       recommendation system saner.)
34095     - Start being able to build universal binaries on OS X (thanks
34096       to Phobos).
34097     - Export the default exit policy via the control port, so controllers
34098       don't need to guess what it is / will be later.
34099     - Add a man page entry for ProtocolWarnings.
34100     - Add TestVia config option to the man page.
34101     - Remove even more protocol-related warnings from Tor server logs,
34102       such as bad TLS handshakes and malformed begin cells.
34103     - Stop fetching descriptors if you're not a dir mirror and you
34104       haven't tried to establish any circuits lately. [This currently
34105       causes some dangerous behavior, because when you start up again
34106       you'll use your ancient server descriptors.]
34107     - New DirPort behavior: if you have your dirport set, you download
34108       descriptors aggressively like a directory mirror, whether or not
34109       your ORPort is set.
34110     - Get rid of the router_retry_connections notion. Now routers
34111       no longer try to rebuild long-term connections to directory
34112       authorities, and directory authorities no longer try to rebuild
34113       long-term connections to all servers. We still don't hang up
34114       connections in these two cases though -- we need to look at it
34115       more carefully to avoid flapping, and we likely need to wait til
34116       0.1.1.x is obsolete.
34117     - Drop compatibility with obsolete Tors that permit create cells
34118       to have the wrong circ_id_type.
34119     - Re-enable per-connection rate limiting. Get rid of the "OP
34120       bandwidth" concept. Lay groundwork for "bandwidth classes" --
34121       separate global buckets that apply depending on what sort of conn
34122       it is.
34123     - Start publishing one minute or so after we find our ORPort
34124       to be reachable. This will help reduce the number of descriptors
34125       we have for ourselves floating around, since it's quite likely
34126       other things (e.g. DirPort) will change during that minute too.
34127     - Fork the v1 directory protocol into its own spec document,
34128       and mark dir-spec.txt as the currently correct (v2) spec.
34130   o Major bugfixes:
34131     - When we find our DirPort to be reachable, publish a new descriptor
34132       so we'll tell the world (reported by pnx).
34133     - Publish a new descriptor after we hup/reload. This is important
34134       if our config has changed such that we'll want to start advertising
34135       our DirPort now, etc.
34136     - Allow Tor to start when RunAsDaemon is set but no logs are set.
34137     - When we have a state file we cannot parse, tell the user and
34138       move it aside. Now we avoid situations where the user starts
34139       Tor in 1904, Tor writes a state file with that timestamp in it,
34140       the user fixes her clock, and Tor refuses to start.
34141     - Fix configure.in to not produce broken configure files with
34142       more recent versions of autoconf. Thanks to Clint for his auto*
34143       voodoo.
34144     - "tor --verify-config" now exits with -1(255) or 0 depending on
34145       whether the config options are bad or good.
34146     - Resolve bug 321 when using dnsworkers: append a period to every
34147       address we resolve at the exit node, so that we do not accidentally
34148       pick up local addresses, and so that failing searches are retried
34149       in the resolver search domains. (This is already solved for
34150       eventdns.) (This breaks Blossom servers for now.)
34151     - If we are using an exit enclave and we can't connect, e.g. because
34152       its webserver is misconfigured to not listen on localhost, then
34153       back off and try connecting from somewhere else before we fail.
34155   o Minor bugfixes:
34156     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
34157     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
34158     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
34159       when the IP address is mapped through MapAddress to a hostname.
34160     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
34161       useless IPv6 DNS resolves.
34162     - Patch suggested by Karsten Loesing: respond to SIGNAL command
34163       before we execute the signal, in case the signal shuts us down.
34164     - Clean up AllowInvalidNodes man page entry.
34165     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
34166     - Add more asserts to track down an assert error on a windows Tor
34167       server with connection_add being called with socket == -1.
34168     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
34169     - Fix misleading log messages: an entry guard that is "unlisted",
34170       as well as not known to be "down" (because we've never heard
34171       of it), is not therefore "up".
34172     - Remove code to special-case "-cvs" ending, since it has not
34173       actually mattered since 0.0.9.
34174     - Make our socks5 handling more robust to broken socks clients:
34175       throw out everything waiting on the buffer in between socks
34176       handshake phases, since they can't possibly (so the theory
34177       goes) have predicted what we plan to respond to them.
34180 Changes in version 0.1.1.23 - 2006-07-30
34181   o Major bugfixes:
34182     - Fast Tor servers, especially exit nodes, were triggering asserts
34183       due to a bug in handling the list of pending DNS resolves. Some
34184       bugs still remain here; we're hunting them.
34185     - Entry guards could crash clients by sending unexpected input.
34186     - More fixes on reachability testing: if you find yourself reachable,
34187       then don't ever make any client requests (so you stop predicting
34188       circuits), then hup or have your clock jump, then later your IP
34189       changes, you won't think circuits are working, so you won't try to
34190       test reachability, so you won't publish.
34192   o Minor bugfixes:
34193     - Avoid a crash if the controller does a resetconf firewallports
34194       and then a setconf fascistfirewall=1.
34195     - Avoid an integer underflow when the dir authority decides whether
34196       a router is stable: we might wrongly label it stable, and compute
34197       a slightly wrong median stability, when a descriptor is published
34198       later than now.
34199     - Fix a place where we might trigger an assert if we can't build our
34200       own server descriptor yet.
34203 Changes in version 0.1.1.22 - 2006-07-05
34204   o Major bugfixes:
34205     - Fix a big bug that was causing servers to not find themselves
34206       reachable if they changed IP addresses. Since only 0.1.1.22+
34207       servers can do reachability testing correctly, now we automatically
34208       make sure to test via one of these.
34209     - Fix to allow clients and mirrors to learn directory info from
34210       descriptor downloads that get cut off partway through.
34211     - Directory authorities had a bug in deciding if a newly published
34212       descriptor was novel enough to make everybody want a copy -- a few
34213       servers seem to be publishing new descriptors many times a minute.
34214   o Minor bugfixes:
34215     - Fix a rare bug that was causing some servers to complain about
34216       "closing wedged cpuworkers" and skip some circuit create requests.
34217     - Make the Exit flag in directory status documents actually work.
34220 Changes in version 0.1.1.21 - 2006-06-10
34221   o Crash and assert fixes from 0.1.1.20:
34222     - Fix a rare crash on Tor servers that have enabled hibernation.
34223     - Fix a seg fault on startup for Tor networks that use only one
34224       directory authority.
34225     - Fix an assert from a race condition that occurs on Tor servers
34226       while exiting, where various threads are trying to log that they're
34227       exiting, and delete the logs, at the same time.
34228     - Make our unit tests pass again on certain obscure platforms.
34230   o Other fixes:
34231     - Add support for building SUSE RPM packages.
34232     - Speed up initial bootstrapping for clients: if we are making our
34233       first ever connection to any entry guard, then don't mark it down
34234       right after that.
34235     - When only one Tor server in the network is labelled as a guard,
34236       and we've already picked him, we would cycle endlessly picking him
34237       again, being unhappy about it, etc. Now we specifically exclude
34238       current guards when picking a new guard.
34239     - Servers send create cells more reliably after the TLS connection
34240       is established: we were sometimes forgetting to send half of them
34241       when we had more than one pending.
34242     - If we get a create cell that asks us to extend somewhere, but the
34243       Tor server there doesn't match the expected digest, we now send
34244       a destroy cell back, rather than silently doing nothing.
34245     - Make options->RedirectExit work again.
34246     - Make cookie authentication for the controller work again.
34247     - Stop being picky about unusual characters in the arguments to
34248       mapaddress. It's none of our business.
34249     - Add a new config option "TestVia" that lets you specify preferred
34250       middle hops to use for test circuits. Perhaps this will let me
34251       debug the reachability problems better.
34253   o Log / documentation fixes:
34254     - If we're a server and some peer has a broken TLS certificate, don't
34255       log about it unless ProtocolWarnings is set, i.e., we want to hear
34256       about protocol violations by others.
34257     - Fix spelling of VirtualAddrNetwork in man page.
34258     - Add a better explanation at the top of the autogenerated torrc file
34259       about what happened to our old torrc.
34262 Changes in version 0.1.1.20 - 2006-05-23
34263   o Bugfixes:
34264     - Downgrade a log severity where servers complain that they're
34265       invalid.
34266     - Avoid a compile warning on FreeBSD.
34267     - Remove string size limit on NEWDESC messages; solve bug 291.
34268     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
34269       more thoroughly when we're running on windows.
34272 Changes in version 0.1.1.19-rc - 2006-05-03
34273   o Minor bugs:
34274     - Regenerate our local descriptor if it's dirty and we try to use
34275       it locally (e.g. if it changes during reachability detection).
34276     - If we setconf our ORPort to 0, we continued to listen on the
34277       old ORPort and receive connections.
34278     - Avoid a second warning about machine/limits.h on Debian
34279       GNU/kFreeBSD.
34280     - Be willing to add our own routerinfo into the routerlist.
34281       Now authorities will include themselves in their directories
34282       and network-statuses.
34283     - Stop trying to upload rendezvous descriptors to every
34284       directory authority: only try the v1 authorities.
34285     - Servers no longer complain when they think they're not
34286       registered with the directory authorities. There were too many
34287       false positives.
34288     - Backport dist-rpm changes so rpms can be built without errors.
34290   o Features:
34291     - Implement an option, VirtualAddrMask, to set which addresses
34292       get handed out in response to mapaddress requests. This works
34293       around a bug in tsocks where 127.0.0.0/8 is never socksified.
34296 Changes in version 0.1.1.18-rc - 2006-04-10
34297   o Major fixes:
34298     - Work harder to download live network-statuses from all the
34299       directory authorities we know about. Improve the threshold
34300       decision logic so we're more robust to edge cases.
34301     - When fetching rendezvous descriptors, we were willing to ask
34302       v2 authorities too, which would always return 404.
34304   o Minor fixes:
34305     - Stop listing down or invalid nodes in the v1 directory. This will
34306       reduce its bulk by about 1/3, and reduce load on directory
34307       mirrors.
34308     - When deciding whether a router is Fast or Guard-worthy, consider
34309       his advertised BandwidthRate and not just the BandwidthCapacity.
34310     - No longer ship INSTALL and README files -- they are useless now.
34311     - Force rpmbuild to behave and honor target_cpu.
34312     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
34313     - Start to include translated versions of the tor-doc-*.html
34314       files, along with the screenshots. Still needs more work.
34315     - Start sending back 512 and 451 errors if mapaddress fails,
34316       rather than not sending anything back at all.
34317     - When we fail to bind or listen on an incoming or outgoing
34318       socket, we should close it before failing. otherwise we just
34319       leak it. (thanks to weasel for finding.)
34320     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
34321       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
34322     - Make NoPublish (even though deprecated) work again.
34323     - Fix a minor security flaw where a versioning auth dirserver
34324       could list a recommended version many times in a row to make
34325       clients more convinced that it's recommended.
34326     - Fix crash bug if there are two unregistered servers running
34327       with the same nickname, one of them is down, and you ask for
34328       them by nickname in your EntryNodes or ExitNodes. Also, try
34329       to pick the one that's running rather than an arbitrary one.
34330     - Fix an infinite loop we could hit if we go offline for too long.
34331     - Complain when we hit WSAENOBUFS on recv() or write() too.
34332       Perhaps this will help us hunt the bug.
34333     - If you're not a versioning dirserver, don't put the string
34334       "client-versions \nserver-versions \n" in your network-status.
34335     - Lower the minimum required number of file descriptors to 1000,
34336       so we can have some overhead for Valgrind on Linux, where the
34337       default ulimit -n is 1024.
34339   o New features:
34340     - Add tor.dizum.com as the fifth authoritative directory server.
34341     - Add a new config option FetchUselessDescriptors, off by default,
34342       for when you plan to run "exitlist" on your client and you want
34343       to know about even the non-running descriptors.
34346 Changes in version 0.1.1.17-rc - 2006-03-28
34347   o Major fixes:
34348     - Clients and servers since 0.1.1.10-alpha have been expiring
34349       connections whenever they are idle for 5 minutes and they *do*
34350       have circuits on them. Oops. With this new version, clients will
34351       discard their previous entry guard choices and avoid choosing
34352       entry guards running these flawed versions.
34353     - Fix memory leak when uncompressing concatenated zlib streams. This
34354       was causing substantial leaks over time on Tor servers.
34355     - The v1 directory was including servers as much as 48 hours old,
34356       because that's how the new routerlist->routers works. Now only
34357       include them if they're 20 hours old or less.
34359   o Minor fixes:
34360     - Resume building on irix64, netbsd 2.0, etc.
34361     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
34362       "-Wall -g -O2".
34363     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
34364       and it is confusing some users.
34365     - Mirrors stop caching the v1 directory so often.
34366     - Make the max number of old descriptors that a cache will hold
34367       rise with the number of directory authorities, so we can scale.
34368     - Change our win32 uname() hack to be more forgiving about what
34369       win32 versions it thinks it's found.
34371   o New features:
34372     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
34373       server.
34374     - When the controller's *setconf commands fail, collect an error
34375       message in a string and hand it back to the controller.
34376     - Make the v2 dir's "Fast" flag based on relative capacity, just
34377       like "Stable" is based on median uptime. Name everything in the
34378       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
34379     - Log server fingerprint on startup, so new server operators don't
34380       have to go hunting around their filesystem for it.
34381     - Return a robots.txt on our dirport to discourage google indexing.
34382     - Let the controller ask for GETINFO dir/status/foo so it can ask
34383       directly rather than connecting to the dir port. Only works when
34384       dirport is set for now.
34386   o New config options rather than constants in the code:
34387     - SocksTimeout: How long do we let a socks connection wait
34388       unattached before we fail it?
34389     - CircuitBuildTimeout: Cull non-open circuits that were born
34390       at least this many seconds ago.
34391     - CircuitIdleTimeout: Cull open clean circuits that were born
34392       at least this many seconds ago.
34395 Changes in version 0.1.1.16-rc - 2006-03-18
34396   o Bugfixes on 0.1.1.15-rc:
34397     - Fix assert when the controller asks to attachstream a connect-wait
34398       or resolve-wait stream.
34399     - Now do address rewriting when the controller asks us to attach
34400       to a particular circuit too. This will let Blossom specify
34401       "moria2.exit" without having to learn what moria2's IP address is.
34402     - Make the "tor --verify-config" command-line work again, so people
34403       can automatically check if their torrc will parse.
34404     - Authoritative dirservers no longer require an open connection from
34405       a server to consider him "reachable". We need this change because
34406       when we add new auth dirservers, old servers won't know not to
34407       hang up on them.
34408     - Let Tor build on Sun CC again.
34409     - Fix an off-by-one buffer size in dirserv.c that magically never
34410       hit our three authorities but broke sjmurdoch's own tor network.
34411     - If we as a directory mirror don't know of any v1 directory
34412       authorities, then don't try to cache any v1 directories.
34413     - Stop warning about unknown servers in our family when they are
34414       given as hex digests.
34415     - Stop complaining as quickly to the server operator that he
34416       hasn't registered his nickname/key binding.
34417     - Various cleanups so we can add new V2 Auth Dirservers.
34418     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
34419       reflect the updated flags in our v2 dir protocol.
34420     - Resume allowing non-printable characters for exit streams (both
34421       for connecting and for resolving). Now we tolerate applications
34422       that don't follow the RFCs. But continue to block malformed names
34423       at the socks side.
34425   o Bugfixes on 0.1.0.x:
34426     - Fix assert bug in close_logs(): when we close and delete logs,
34427       remove them all from the global "logfiles" list.
34428     - Fix minor integer overflow in calculating when we expect to use up
34429       our bandwidth allocation before hibernating.
34430     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
34431       there are multiple SSLs installed with different versions.
34432     - When we try to be a server and Address is not explicitly set and
34433       our hostname resolves to a private IP address, try to use an
34434       interface address if it has a public address. Now Windows machines
34435       that think of themselves as localhost can work by default.
34437   o New features:
34438     - Let the controller ask for GETINFO dir/server/foo so it can ask
34439       directly rather than connecting to the dir port.
34440     - Let the controller tell us about certain router descriptors
34441       that it doesn't want Tor to use in circuits. Implement
34442       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
34443     - New config option SafeSocks to reject all application connections
34444       using unsafe socks protocols. Defaults to off.
34447 Changes in version 0.1.1.15-rc - 2006-03-11
34448   o Bugfixes and cleanups:
34449     - When we're printing strings from the network, don't try to print
34450       non-printable characters. This protects us against shell escape
34451       sequence exploits, and also against attacks to fool humans into
34452       misreading their logs.
34453     - Fix a bug where Tor would fail to establish any connections if you
34454       left it off for 24 hours and then started it: we were happy with
34455       the obsolete network statuses, but they all referred to router
34456       descriptors that were too old to fetch, so we ended up with no
34457       valid router descriptors.
34458     - Fix a seg fault in the controller's "getinfo orconn-status"
34459       command while listing status on incoming handshaking connections.
34460       Introduce a status name "NEW" for these connections.
34461     - If we get a linelist or linelist_s config option from the torrc
34462       (e.g. ExitPolicy) and it has no value, warn and skip rather than
34463       silently resetting it to its default.
34464     - Don't abandon entry guards until they've been down or gone for
34465       a whole month.
34466     - Cleaner and quieter log messages.
34468   o New features:
34469     - New controller signal NEWNYM that makes new application requests
34470       use clean circuits.
34471     - Add a new circuit purpose 'controller' to let the controller ask
34472       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
34473       controller command to let you specify the purpose if you're
34474       starting a new circuit. Add a new SETCIRCUITPURPOSE controller
34475       command to let you change a circuit's purpose after it's been
34476       created.
34477     - Accept "private:*" in routerdesc exit policies; not generated yet
34478       because older Tors do not understand it.
34479     - Add BSD-style contributed startup script "rc.subr" from Peter
34480       Thoenen.
34483 Changes in version 0.1.1.14-alpha - 2006-02-20
34484   o Bugfixes on 0.1.1.x:
34485     - Don't die if we ask for a stdout or stderr log (even implicitly)
34486       and we're set to RunAsDaemon -- just warn.
34487     - We still had a few bugs in the OR connection rotation code that
34488       caused directory servers to slowly aggregate connections to other
34489       fast Tor servers. This time for sure!
34490     - Make log entries on Win32 include the name of the function again.
34491     - We were treating a pair of exit policies if they were equal even
34492       if one said accept and the other said reject -- causing us to
34493       not always publish a new descriptor since we thought nothing
34494       had changed.
34495     - Retry pending server downloads as well as pending networkstatus
34496       downloads when we unexpectedly get a socks request.
34497     - We were ignoring the IS_FAST flag in the directory status,
34498       meaning we were willing to pick trivial-bandwidth nodes for "fast"
34499       connections.
34500     - If the controller's SAVECONF command fails (e.g. due to file
34501       permissions), let the controller know that it failed.
34503   o Features:
34504     - If we're trying to be a Tor server and running Windows 95/98/ME
34505       as a server, explain that we'll likely crash.
34506     - When we're a server, a client asks for an old-style directory,
34507       and our write bucket is empty, don't give it to him. This way
34508       small servers can continue to serve the directory *sometimes*,
34509       without getting overloaded.
34510     - Compress exit policies even more -- look for duplicate lines
34511       and remove them.
34512     - Clients now honor the "guard" flag in the router status when
34513       picking entry guards, rather than looking at is_fast or is_stable.
34514     - Retain unrecognized lines in $DATADIR/state file, so that we can
34515       be forward-compatible.
34516     - Generate 18.0.0.0/8 address policy format in descs when we can;
34517       warn when the mask is not reducible to a bit-prefix.
34518     - Let the user set ControlListenAddress in the torrc. This can be
34519       dangerous, but there are some cases (like a secured LAN) where it
34520       makes sense.
34521     - Split ReachableAddresses into ReachableDirAddresses and
34522       ReachableORAddresses, so we can restrict Dir conns to port 80
34523       and OR conns to port 443.
34524     - Now we can target arch and OS in rpm builds (contributed by
34525       Phobos). Also make the resulting dist-rpm filename match the
34526       target arch.
34527     - New config options to help controllers: FetchServerDescriptors
34528       and FetchHidServDescriptors for whether to fetch server
34529       info and hidserv info or let the controller do it, and
34530       PublishServerDescriptor and PublishHidServDescriptors.
34531     - Also let the controller set the __AllDirActionsPrivate config
34532       option if you want all directory fetches/publishes to happen via
34533       Tor (it assumes your controller bootstraps your circuits).
34536 Changes in version 0.1.0.17 - 2006-02-17
34537   o Crash bugfixes on 0.1.0.x:
34538     - When servers with a non-zero DirPort came out of hibernation,
34539       sometimes they would trigger an assert.
34541   o Other important bugfixes:
34542     - On platforms that don't have getrlimit (like Windows), we were
34543       artificially constraining ourselves to a max of 1024
34544       connections. Now just assume that we can handle as many as 15000
34545       connections. Hopefully this won't cause other problems.
34547   o Backported features:
34548     - When we're a server, a client asks for an old-style directory,
34549       and our write bucket is empty, don't give it to him. This way
34550       small servers can continue to serve the directory *sometimes*,
34551       without getting overloaded.
34552     - Whenever you get a 503 in response to a directory fetch, try
34553       once more. This will become important once servers start sending
34554       503's whenever they feel busy.
34555     - Fetch a new directory every 120 minutes, not every 40 minutes.
34556       Now that we have hundreds of thousands of users running the old
34557       directory algorithm, it's starting to hurt a lot.
34558     - Bump up the period for forcing a hidden service descriptor upload
34559       from 20 minutes to 1 hour.
34562 Changes in version 0.1.1.13-alpha - 2006-02-09
34563   o Crashes in 0.1.1.x:
34564     - When you tried to setconf ORPort via the controller, Tor would
34565       crash. So people using TorCP to become a server were sad.
34566     - Solve (I hope) the stack-smashing bug that we were seeing on fast
34567       servers. The problem appears to be something do with OpenSSL's
34568       random number generation, or how we call it, or something. Let me
34569       know if the crashes continue.
34570     - Turn crypto hardware acceleration off by default, until we find
34571       somebody smart who can test it for us. (It appears to produce
34572       seg faults in at least some cases.)
34573     - Fix a rare assert error when we've tried all intro points for
34574       a hidden service and we try fetching the service descriptor again:
34575       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
34577   o Major fixes:
34578     - Fix a major load balance bug: we were round-robining in 16 KB
34579       chunks, and servers with bandwidthrate of 20 KB, while downloading
34580       a 600 KB directory, would starve their other connections. Now we
34581       try to be a bit more fair.
34582     - Dir authorities and mirrors were never expiring the newest
34583       descriptor for each server, causing memory and directory bloat.
34584     - Fix memory-bloating and connection-bloating bug on servers: We
34585       were never closing any connection that had ever had a circuit on
34586       it, because we were checking conn->n_circuits == 0, yet we had a
34587       bug that let it go negative.
34588     - Make Tor work using squid as your http proxy again -- squid
34589       returns an error if you ask for a URL that's too long, and it uses
34590       a really generic error message. Plus, many people are behind a
34591       transparent squid so they don't even realize it.
34592     - On platforms that don't have getrlimit (like Windows), we were
34593       artificially constraining ourselves to a max of 1024
34594       connections. Now just assume that we can handle as many as 15000
34595       connections. Hopefully this won't cause other problems.
34596     - Add a new config option ExitPolicyRejectPrivate which defaults to
34597       1. This means all exit policies will begin with rejecting private
34598       addresses, unless the server operator explicitly turns it off.
34600   o Major features:
34601     - Clients no longer download descriptors for non-running
34602       descriptors.
34603     - Before we add new directory authorities, we should make it
34604       clear that only v1 authorities should receive/publish hidden
34605       service descriptors.
34607   o Minor features:
34608     - As soon as we've fetched some more directory info, immediately
34609       try to download more server descriptors. This way we don't have
34610       a 10 second pause during initial bootstrapping.
34611     - Remove even more loud log messages that the server operator can't
34612       do anything about.
34613     - When we're running an obsolete or un-recommended version, make
34614       the log message more clear about what the problem is and what
34615       versions *are* still recommended.
34616     - Provide a more useful warn message when our onion queue gets full:
34617       the CPU is too slow or the exit policy is too liberal.
34618     - Don't warn when we receive a 503 from a dirserver/cache -- this
34619       will pave the way for them being able to refuse if they're busy.
34620     - When we fail to bind a listener, try to provide a more useful
34621       log message: e.g., "Is Tor already running?"
34622     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
34623       Goldberg can prove things about our handshake protocol more
34624       easily.
34625     - MaxConn has been obsolete for a while now. Document the ConnLimit
34626       config option, which is a *minimum* number of file descriptors
34627       that must be available else Tor refuses to start.
34628     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
34629       if you log to syslog and want something other than LOG_DAEMON.
34630     - Make dirservers generate a separate "guard" flag to mean,
34631       "would make a good entry guard". Make clients parse it and vote
34632       on it. Not used by clients yet.
34633     - Implement --with-libevent-dir option to ./configure. Also, improve
34634       search techniques to find libevent, and use those for openssl too.
34635     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
34636     - Only start testing reachability once we've established a
34637       circuit. This will make startup on dirservers less noisy.
34638     - Don't try to upload hidden service descriptors until we have
34639       established a circuit.
34640     - Fix the controller's "attachstream 0" command to treat conn like
34641       it just connected, doing address remapping, handling .exit and
34642       .onion idioms, and so on. Now we're more uniform in making sure
34643       that the controller hears about new and closing connections.
34646 Changes in version 0.1.1.12-alpha - 2006-01-11
34647   o Bugfixes on 0.1.1.x:
34648     - The fix to close duplicate server connections was closing all
34649       Tor client connections if they didn't establish a circuit
34650       quickly enough. Oops.
34651     - Fix minor memory issue (double-free) that happened on exit.
34653   o Bugfixes on 0.1.0.x:
34654     - Tor didn't warn when it failed to open a log file.
34657 Changes in version 0.1.1.11-alpha - 2006-01-10
34658   o Crashes in 0.1.1.x:
34659     - Include all the assert/crash fixes from 0.1.0.16.
34660     - If you start Tor and then quit very quickly, there were some
34661       races that tried to free things that weren't allocated yet.
34662     - Fix a rare memory stomp if you're running hidden services.
34663     - Fix segfault when specifying DirServer in config without nickname.
34664     - Fix a seg fault when you finish connecting to a server but at
34665       that moment you dump his server descriptor.
34666     - Extendcircuit and Attachstream controller commands would
34667       assert/crash if you don't give them enough arguments.
34668     - Fix an assert error when we're out of space in the connection_list
34669       and we try to post a hidden service descriptor (reported by weasel).
34670     - If you specify a relative torrc path and you set RunAsDaemon in
34671       your torrc, then it chdir()'s to the new directory. If you HUP,
34672       it tries to load the new torrc location, fails, and exits.
34673       The fix: no longer allow a relative path to torrc using -f.
34675   o Major features:
34676     - Implement "entry guards": automatically choose a handful of entry
34677       nodes and stick with them for all circuits. Only pick new guards
34678       when the ones you have are unsuitable, and if the old guards
34679       become suitable again, switch back. This will increase security
34680       dramatically against certain end-point attacks. The EntryNodes
34681       config option now provides some hints about which entry guards you
34682       want to use most; and StrictEntryNodes means to only use those.
34683     - New directory logic: download by descriptor digest, not by
34684       fingerprint. Caches try to download all listed digests from
34685       authorities; clients try to download "best" digests from caches.
34686       This avoids partitioning and isolating attacks better.
34687     - Make the "stable" router flag in network-status be the median of
34688       the uptimes of running valid servers, and make clients pay
34689       attention to the network-status flags. Thus the cutoff adapts
34690       to the stability of the network as a whole, making IRC, IM, etc
34691       connections more reliable.
34693   o Major fixes:
34694     - Tor servers with dynamic IP addresses were needing to wait 18
34695       hours before they could start doing reachability testing using
34696       the new IP address and ports. This is because they were using
34697       the internal descriptor to learn what to test, yet they were only
34698       rebuilding the descriptor once they decided they were reachable.
34699     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
34700       to download certain server descriptors, throw them away, and then
34701       fetch them again after 30 minutes. Now mirrors throw away these
34702       server descriptors so clients can't get them.
34703     - We were leaving duplicate connections to other ORs open for a week,
34704       rather than closing them once we detect a duplicate. This only
34705       really affected authdirservers, but it affected them a lot.
34706     - Spread the authdirservers' reachability testing over the entire
34707       testing interval, so we don't try to do 500 TLS's at once every
34708       20 minutes.
34710   o Minor fixes:
34711     - If the network is down, and we try to connect to a conn because
34712       we have a circuit in mind, and we timeout (30 seconds) because the
34713       network never answers, we were expiring the circuit, but we weren't
34714       obsoleting the connection or telling the entry_guards functions.
34715     - Some Tor servers process billions of cells per day. These statistics
34716       need to be uint64_t's.
34717     - Check for integer overflows in more places, when adding elements
34718       to smartlists. This could possibly prevent a buffer overflow
34719       on malicious huge inputs. I don't see any, but I haven't looked
34720       carefully.
34721     - ReachableAddresses kept growing new "reject *:*" lines on every
34722       setconf/reload.
34723     - When you "setconf log" via the controller, it should remove all
34724       logs. We were automatically adding back in a "log notice stdout".
34725     - Newly bootstrapped Tor networks couldn't establish hidden service
34726       circuits until they had nodes with high uptime. Be more tolerant.
34727     - We were marking servers down when they could not answer every piece
34728       of the directory request we sent them. This was far too harsh.
34729     - Fix the torify (tsocks) config file to not use Tor for localhost
34730       connections.
34731     - Directory authorities now go to the proper authority when asking for
34732       a networkstatus, even when they want a compressed one.
34733     - Fix a harmless bug that was causing Tor servers to log
34734       "Got an end because of misc error, but we're not an AP. Closing."
34735     - Authorities were treating their own descriptor changes as cosmetic,
34736       meaning the descriptor available in the network-status and the
34737       descriptor that clients downloaded were different.
34738     - The OS X installer was adding a symlink for tor_resolve but
34739       the binary was called tor-resolve (reported by Thomas Hardly).
34740     - Workaround a problem with some http proxies where they refuse GET
34741       requests that specify "Content-Length: 0" (reported by Adrian).
34742     - Fix wrong log message when you add a "HiddenServiceNodes" config
34743       line without any HiddenServiceDir line (reported by Chris Thomas).
34745   o Minor features:
34746     - Write the TorVersion into the state file so we have a prayer of
34747       keeping forward and backward compatibility.
34748     - Revive the FascistFirewall config option rather than eliminating it:
34749       now it's a synonym for ReachableAddresses *:80,*:443.
34750     - Clients choose directory servers from the network status lists,
34751       not from their internal list of router descriptors. Now they can
34752       go to caches directly rather than needing to go to authorities
34753       to bootstrap.
34754     - Directory authorities ignore router descriptors that have only
34755       cosmetic differences: do this for 0.1.0.x servers now too.
34756     - Add a new flag to network-status indicating whether the server
34757       can answer v2 directory requests too.
34758     - Authdirs now stop whining so loudly about bad descriptors that
34759       they fetch from other dirservers. So when there's a log complaint,
34760       it's for sure from a freshly uploaded descriptor.
34761     - Reduce memory requirements in our structs by changing the order
34762       of fields.
34763     - There used to be two ways to specify your listening ports in a
34764       server descriptor: on the "router" line and with a separate "ports"
34765       line. Remove support for the "ports" line.
34766     - New config option "AuthDirRejectUnlisted" for auth dirservers as
34767       a panic button: if we get flooded with unusable servers we can
34768       revert to only listing servers in the approved-routers file.
34769     - Auth dir servers can now mark a fingerprint as "!reject" or
34770       "!invalid" in the approved-routers file (as its nickname), to
34771       refuse descriptors outright or include them but marked as invalid.
34772     - Servers store bandwidth history across restarts/crashes.
34773     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
34774       get a better idea of why their circuits failed. Not used yet.
34775     - Directory mirrors now cache up to 16 unrecognized network-status
34776       docs. Now we can add new authdirservers and they'll be cached too.
34777     - When picking a random directory, prefer non-authorities if any
34778       are known.
34779     - New controller option "getinfo desc/all-recent" to fetch the
34780       latest server descriptor for every router that Tor knows about.
34783 Changes in version 0.1.0.16 - 2006-01-02
34784   o Crash bugfixes on 0.1.0.x:
34785     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
34786       corrupting the heap, losing FDs, or crashing when we need to resize
34787       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
34788     - It turns out sparc64 platforms crash on unaligned memory access
34789       too -- so detect and avoid this.
34790     - Handle truncated compressed data correctly (by detecting it and
34791       giving an error).
34792     - Fix possible-but-unlikely free(NULL) in control.c.
34793     - When we were closing connections, there was a rare case that
34794       stomped on memory, triggering seg faults and asserts.
34795     - Avoid potential infinite recursion when building a descriptor. (We
34796       don't know that it ever happened, but better to fix it anyway.)
34797     - We were neglecting to unlink marked circuits from soon-to-close OR
34798       connections, which caused some rare scribbling on freed memory.
34799     - Fix a memory stomping race bug when closing the joining point of two
34800       rendezvous circuits.
34801     - Fix an assert in time parsing found by Steven Murdoch.
34803   o Other bugfixes on 0.1.0.x:
34804     - When we're doing reachability testing, provide more useful log
34805       messages so the operator knows what to expect.
34806     - Do not check whether DirPort is reachable when we are suppressing
34807       advertising it because of hibernation.
34808     - When building with -static or on Solaris, we sometimes needed -ldl.
34809     - When we're deciding whether a stream has enough circuits around
34810       that can handle it, count the freshly dirty ones and not the ones
34811       that are so dirty they won't be able to handle it.
34812     - When we're expiring old circuits, we had a logic error that caused
34813       us to close new rendezvous circuits rather than old ones.
34814     - Give a more helpful log message when you try to change ORPort via
34815       the controller: you should upgrade Tor if you want that to work.
34816     - We were failing to parse Tor versions that start with "Tor ".
34817     - Tolerate faulty streams better: when a stream fails for reason
34818       exitpolicy, stop assuming that the router is lying about his exit
34819       policy. When a stream fails for reason misc, allow it to retry just
34820       as if it was resolvefailed. When a stream has failed three times,
34821       reset its failure count so we can try again and get all three tries.
34824 Changes in version 0.1.1.10-alpha - 2005-12-11
34825   o Correctness bugfixes on 0.1.0.x:
34826     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
34827       corrupting the heap, losing FDs, or crashing when we need to resize
34828       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
34829     - Stop doing the complex voodoo overkill checking for insecure
34830       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
34831     - When we were closing connections, there was a rare case that
34832       stomped on memory, triggering seg faults and asserts.
34833     - We were neglecting to unlink marked circuits from soon-to-close OR
34834       connections, which caused some rare scribbling on freed memory.
34835     - When we're deciding whether a stream has enough circuits around
34836       that can handle it, count the freshly dirty ones and not the ones
34837       that are so dirty they won't be able to handle it.
34838     - Recover better from TCP connections to Tor servers that are
34839       broken but don't tell you (it happens!); and rotate TLS
34840       connections once a week.
34841     - When we're expiring old circuits, we had a logic error that caused
34842       us to close new rendezvous circuits rather than old ones.
34843     - Fix a scary-looking but apparently harmless bug where circuits
34844       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
34845       servers, and never switch to state CIRCUIT_STATE_OPEN.
34846     - When building with -static or on Solaris, we sometimes needed to
34847       build with -ldl.
34848     - Give a useful message when people run Tor as the wrong user,
34849       rather than telling them to start chowning random directories.
34850     - We were failing to inform the controller about new .onion streams.
34852   o Security bugfixes on 0.1.0.x:
34853     - Refuse server descriptors if the fingerprint line doesn't match
34854       the included identity key. Tor doesn't care, but other apps (and
34855       humans) might actually be trusting the fingerprint line.
34856     - We used to kill the circuit when we receive a relay command we
34857       don't recognize. Now we just drop it.
34858     - Start obeying our firewall options more rigorously:
34859       . If we can't get to a dirserver directly, try going via Tor.
34860       . Don't ever try to connect (as a client) to a place our
34861         firewall options forbid.
34862       . If we specify a proxy and also firewall options, obey the
34863         firewall options even when we're using the proxy: some proxies
34864         can only proxy to certain destinations.
34865     - Fix a bug found by Lasse Overlier: when we were making internal
34866       circuits (intended to be cannibalized later for rendezvous and
34867       introduction circuits), we were picking them so that they had
34868       useful exit nodes. There was no need for this, and it actually
34869       aids some statistical attacks.
34870     - Start treating internal circuits and exit circuits separately.
34871       It's important to keep them separate because internal circuits
34872       have their last hops picked like middle hops, rather than like
34873       exit hops. So exiting on them will break the user's expectations.
34875   o Bugfixes on 0.1.1.x:
34876     - Take out the mis-feature where we tried to detect IP address
34877       flapping for people with DynDNS, and chose not to upload a new
34878       server descriptor sometimes.
34879     - Try to be compatible with OpenSSL 0.9.6 again.
34880     - Log fix: when the controller is logging about .onion addresses,
34881       sometimes it didn't include the ".onion" part of the address.
34882     - Don't try to modify options->DirServers internally -- if the
34883       user didn't specify any, just add the default ones directly to
34884       the trusted dirserver list. This fixes a bug where people running
34885       controllers would use SETCONF on some totally unrelated config
34886       option, and Tor would start yelling at them about changing their
34887       DirServer lines.
34888     - Let the controller's redirectstream command specify a port, in
34889       case the controller wants to change that too.
34890     - When we requested a pile of server descriptors, we sometimes
34891       accidentally launched a duplicate request for the first one.
34892     - Bugfix for trackhostexits: write down the fingerprint of the
34893       chosen exit, not its nickname, because the chosen exit might not
34894       be verified.
34895     - When parsing foo.exit, if foo is unknown, and we are leaving
34896       circuits unattached, set the chosen_exit field and leave the
34897       address empty. This matters because controllers got confused
34898       otherwise.
34899     - Directory authorities no longer try to download server
34900       descriptors that they know they will reject.
34902   o Features and updates:
34903     - Replace balanced trees with hash tables: this should make stuff
34904       significantly faster.
34905     - Resume using the AES counter-mode implementation that we ship,
34906       rather than OpenSSL's. Ours is significantly faster.
34907     - Many other CPU and memory improvements.
34908     - Add a new config option FastFirstHopPK (on by default) so clients
34909       do a trivial crypto handshake for their first hop, since TLS has
34910       already taken care of confidentiality and authentication.
34911     - Add a new config option TestSocks so people can see if their
34912       applications are using socks4, socks4a, socks5-with-ip, or
34913       socks5-with-hostname. This way they don't have to keep mucking
34914       with tcpdump and wondering if something got cached somewhere.
34915     - Warn when listening on a public address for socks. I suspect a
34916       lot of people are setting themselves up as open socks proxies,
34917       and they have no idea that jerks on the Internet are using them,
34918       since they simply proxy the traffic into the Tor network.
34919     - Add "private:*" as an alias in configuration for policies. Now
34920       you can simplify your exit policy rather than needing to list
34921       every single internal or nonroutable network space.
34922     - Add a new controller event type that allows controllers to get
34923       all server descriptors that were uploaded to a router in its role
34924       as authoritative dirserver.
34925     - Start shipping socks-extensions.txt, tor-doc-unix.html,
34926       tor-doc-server.html, and stylesheet.css in the tarball.
34927     - Stop shipping tor-doc.html in the tarball.
34930 Changes in version 0.1.1.9-alpha - 2005-11-15
34931   o Usability improvements:
34932     - Start calling it FooListenAddress rather than FooBindAddress,
34933       since few of our users know what it means to bind an address
34934       or port.
34935     - Reduce clutter in server logs. We're going to try to make
34936       them actually usable now. New config option ProtocolWarnings that
34937       lets you hear about how _other Tors_ are breaking the protocol. Off
34938       by default.
34939     - Divide log messages into logging domains. Once we put some sort
34940       of interface on this, it will let people looking at more verbose
34941       log levels specify the topics they want to hear more about.
34942     - Make directory servers return better http 404 error messages
34943       instead of a generic "Servers unavailable".
34944     - Check for even more Windows version flags when writing the platform
34945       string in server descriptors, and note any we don't recognize.
34946     - Clean up more of the OpenSSL memory when exiting, so we can detect
34947       memory leaks better.
34948     - Make directory authorities be non-versioning, non-naming by
34949       default. Now we can add new directory servers without requiring
34950       their operators to pay close attention.
34951     - When logging via syslog, include the pid whenever we provide
34952       a log entry. Suggested by Todd Fries.
34954   o Performance improvements:
34955     - Directory servers now silently throw away new descriptors that
34956       haven't changed much if the timestamps are similar. We do this to
34957       tolerate older Tor servers that upload a new descriptor every 15
34958       minutes. (It seemed like a good idea at the time.)
34959     - Inline bottleneck smartlist functions; use fast versions by default.
34960     - Add a "Map from digest to void*" abstraction digestmap_t so we
34961       can do less hex encoding/decoding. Use it in router_get_by_digest()
34962       to resolve a performance bottleneck.
34963     - Allow tor_gzip_uncompress to extract as much as possible from
34964       truncated compressed data. Try to extract as many
34965       descriptors as possible from truncated http responses (when
34966       DIR_PURPOSE_FETCH_ROUTERDESC).
34967     - Make circ->onionskin a pointer, not a static array. moria2 was using
34968       125000 circuit_t's after it had been up for a few weeks, which
34969       translates to 20+ megs of wasted space.
34970     - The private half of our EDH handshake keys are now chosen out
34971       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
34973   o Security improvements:
34974     - Start making directory caches retain old routerinfos, so soon
34975       clients can start asking by digest of descriptor rather than by
34976       fingerprint of server.
34977     - Add half our entropy from RAND_poll in OpenSSL. This knows how
34978       to use egd (if present), openbsd weirdness (if present), vms/os2
34979       weirdness (if we ever port there), and more in the future.
34981   o Bugfixes on 0.1.0.x:
34982     - Do round-robin writes of at most 16 kB per write. This might be
34983       more fair on loaded Tor servers, and it might resolve our Windows
34984       crash bug. It might also slow things down.
34985     - Our TLS handshakes were generating a single public/private
34986       keypair for the TLS context, rather than making a new one for
34987       each new connections. Oops. (But we were still rotating them
34988       periodically, so it's not so bad.)
34989     - When we were cannibalizing a circuit with a particular exit
34990       node in mind, we weren't checking to see if that exit node was
34991       already present earlier in the circuit. Oops.
34992     - When a Tor server's IP changes (e.g. from a dyndns address),
34993       upload a new descriptor so clients will learn too.
34994     - Really busy servers were keeping enough circuits open on stable
34995       connections that they were wrapping around the circuit_id
34996       space. (It's only two bytes.) This exposed a bug where we would
34997       feel free to reuse a circuit_id even if it still exists but has
34998       been marked for close. Try to fix this bug. Some bug remains.
34999     - If we would close a stream early (e.g. it asks for a .exit that
35000       we know would refuse it) but the LeaveStreamsUnattached config
35001       option is set by the controller, then don't close it.
35003   o Bugfixes on 0.1.1.8-alpha:
35004     - Fix a big pile of memory leaks, some of them serious.
35005     - Do not try to download a routerdesc if we would immediately reject
35006       it as obsolete.
35007     - Resume inserting a newline between all router descriptors when
35008       generating (old style) signed directories, since our spec says
35009       we do.
35010     - When providing content-type application/octet-stream for
35011       server descriptors using .z, we were leaving out the
35012       content-encoding header. Oops. (Everything tolerated this just
35013       fine, but that doesn't mean we need to be part of the problem.)
35014     - Fix a potential seg fault in getconf and getinfo using version 1
35015       of the controller protocol.
35016     - Avoid crash: do not check whether DirPort is reachable when we
35017       are suppressing it because of hibernation.
35018     - Make --hash-password not crash on exit.
35021 Changes in version 0.1.1.8-alpha - 2005-10-07
35022   o New features (major):
35023     - Clients don't download or use the directory anymore. Now they
35024       download and use network-statuses from the trusted dirservers,
35025       and fetch individual server descriptors as needed from mirrors.
35026       See dir-spec.txt for all the gory details.
35027     - Be more conservative about whether to advertise our DirPort.
35028       The main change is to not advertise if we're running at capacity
35029       and either a) we could hibernate or b) our capacity is low and
35030       we're using a default DirPort.
35031     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
35033   o New features (minor):
35034     - Try to be smart about when to retry network-status and
35035       server-descriptor fetches. Still needs some tuning.
35036     - Stop parsing, storing, or using running-routers output (but
35037       mirrors still cache and serve it).
35038     - Consider a threshold of versioning dirservers (dirservers who have
35039       an opinion about which Tor versions are still recommended) before
35040       deciding whether to warn the user that he's obsolete.
35041     - Dirservers can now reject/invalidate by key and IP, with the
35042       config options "AuthDirInvalid" and "AuthDirReject". This is
35043       useful since currently we automatically list servers as running
35044       and usable even if we know they're jerks.
35045     - Provide dire warnings to any users who set DirServer; move it out
35046       of torrc.sample and into torrc.complete.
35047     - Add MyFamily to torrc.sample in the server section.
35048     - Add nicknames to the DirServer line, so we can refer to them
35049       without requiring all our users to memorize their IP addresses.
35050     - When we get an EOF or a timeout on a directory connection, note
35051       how many bytes of serverdesc we are dropping. This will help
35052       us determine whether it is smart to parse incomplete serverdesc
35053       responses.
35054     - Add a new function to "change pseudonyms" -- that is, to stop
35055       using any currently-dirty circuits for new streams, so we don't
35056       link new actions to old actions. Currently it's only called on
35057       HUP (or SIGNAL RELOAD).
35058     - On sighup, if UseHelperNodes changed to 1, use new circuits.
35059     - Start using RAND_bytes rather than RAND_pseudo_bytes from
35060       OpenSSL. Also, reseed our entropy every hour, not just at
35061       startup. And entropy in 512-bit chunks, not 160-bit chunks.
35063   o Fixes on 0.1.1.7-alpha:
35064     - Nobody ever implemented EVENT_ADDRMAP for control protocol
35065       version 0, so don't let version 0 controllers ask for it.
35066     - If you requested something with too many newlines via the
35067       v1 controller protocol, you could crash tor.
35068     - Fix a number of memory leaks, including some pretty serious ones.
35069     - Re-enable DirPort testing again, so Tor servers will be willing
35070       to advertise their DirPort if it's reachable.
35071     - On TLS handshake, only check the other router's nickname against
35072       its expected nickname if is_named is set.
35074   o Fixes forward-ported from 0.1.0.15:
35075     - Don't crash when we don't have any spare file descriptors and we
35076       try to spawn a dns or cpu worker.
35077     - Make the numbers in read-history and write-history into uint64s,
35078       so they don't overflow and publish negatives in the descriptor.
35080   o Fixes on 0.1.0.x:
35081     - For the OS X package's modified privoxy config file, comment
35082       out the "logfile" line so we don't log everything passed
35083       through privoxy.
35084     - We were whining about using socks4 or socks5-with-local-lookup
35085       even when it's an IP in the "virtual" range we designed exactly
35086       for this case.
35087     - We were leaking some memory every time the client changes IPs.
35088     - Never call free() on tor_malloc()d memory. This will help us
35089       use dmalloc to detect memory leaks.
35090     - Check for named servers when looking them up by nickname;
35091       warn when we'recalling a non-named server by its nickname;
35092       don't warn twice about the same name.
35093     - Try to list MyFamily elements by key, not by nickname, and warn
35094       if we've not heard of the server.
35095     - Make windows platform detection (uname equivalent) smarter.
35096     - It turns out sparc64 doesn't like unaligned access either.
35099 Changes in version 0.1.0.15 - 2005-09-23
35100   o Bugfixes on 0.1.0.x:
35101     - Reject ports 465 and 587 (spam targets) in default exit policy.
35102     - Don't crash when we don't have any spare file descriptors and we
35103       try to spawn a dns or cpu worker.
35104     - Get rid of IgnoreVersion undocumented config option, and make us
35105       only warn, never exit, when we're running an obsolete version.
35106     - Don't try to print a null string when your server finds itself to
35107       be unreachable and the Address config option is empty.
35108     - Make the numbers in read-history and write-history into uint64s,
35109       so they don't overflow and publish negatives in the descriptor.
35110     - Fix a minor memory leak in smartlist_string_remove().
35111     - We were only allowing ourselves to upload a server descriptor at
35112       most every 20 minutes, even if it changed earlier than that.
35113     - Clean up log entries that pointed to old URLs.
35116 Changes in version 0.1.1.7-alpha - 2005-09-14
35117   o Fixes on 0.1.1.6-alpha:
35118     - Exit servers were crashing when people asked them to make a
35119       connection to an address not in their exit policy.
35120     - Looking up a non-existent stream for a v1 control connection would
35121       cause a segfault.
35122     - Fix a seg fault if we ask a dirserver for a descriptor by
35123       fingerprint but he doesn't know about him.
35124     - SETCONF was appending items to linelists, not clearing them.
35125     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
35126       out and refuse the setconf if it would fail.
35127     - Downgrade the dirserver log messages when whining about
35128       unreachability.
35130   o New features:
35131     - Add Peter Palfrader's check-tor script to tor/contrib/
35132       It lets you easily check whether a given server (referenced by
35133       nickname) is reachable by you.
35134     - Numerous changes to move towards client-side v2 directories. Not
35135       enabled yet.
35137   o Fixes on 0.1.0.x:
35138     - If the user gave tor an odd number of command-line arguments,
35139       we were silently ignoring the last one. Now we complain and fail.
35140       [This wins the oldest-bug prize -- this bug has been present since
35141        November 2002, as released in Tor 0.0.0.]
35142     - Do not use unaligned memory access on alpha, mips, or mipsel.
35143       It *works*, but is very slow, so we treat them as if it doesn't.
35144     - Retry directory requests if we fail to get an answer we like
35145       from a given dirserver (we were retrying before, but only if
35146       we fail to connect).
35147     - When writing the RecommendedVersions line, sort them first.
35148     - When the client asked for a rendezvous port that the hidden
35149       service didn't want to provide, we were sending an IP address
35150       back along with the end cell. Fortunately, it was zero. But stop
35151       that anyway.
35152     - Correct "your server is reachable" log entries to indicate that
35153       it was self-testing that told us so.
35156 Changes in version 0.1.1.6-alpha - 2005-09-09
35157   o Fixes on 0.1.1.5-alpha:
35158     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
35159     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
35160     - Fix bug with tor_memmem finding a match at the end of the string.
35161     - Make unit tests run without segfaulting.
35162     - Resolve some solaris x86 compile warnings.
35163     - Handle duplicate lines in approved-routers files without warning.
35164     - Fix bug where as soon as a server refused any requests due to his
35165       exit policy (e.g. when we ask for localhost and he tells us that's
35166       127.0.0.1 and he won't do it), we decided he wasn't obeying his
35167       exit policy using him for any exits.
35168     - Only do openssl hardware accelerator stuff if openssl version is
35169       at least 0.9.7.
35171   o New controller features/fixes:
35172     - Add a "RESETCONF" command so you can set config options like
35173       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
35174       a config option in the torrc with no value, then it clears it
35175       entirely (rather than setting it to its default).
35176     - Add a "GETINFO config-file" to tell us where torrc is.
35177     - Avoid sending blank lines when GETINFO replies should be empty.
35178     - Add a QUIT command for the controller (for using it manually).
35179     - Fix a bug in SAVECONF that was adding default dirservers and
35180       other redundant entries to the torrc file.
35182   o Start on the new directory design:
35183     - Generate, publish, cache, serve new network-status format.
35184     - Publish individual descriptors (by fingerprint, by "all", and by
35185       "tell me yours").
35186     - Publish client and server recommended versions separately.
35187     - Allow tor_gzip_uncompress() to handle multiple concatenated
35188       compressed strings. Serve compressed groups of router
35189       descriptors. The compression logic here could be more
35190       memory-efficient.
35191     - Distinguish v1 authorities (all currently trusted directories)
35192       from v2 authorities (all trusted directories).
35193     - Change DirServers config line to note which dirs are v1 authorities.
35194     - Add configuration option "V1AuthoritativeDirectory 1" which
35195       moria1, moria2, and tor26 should set.
35196     - Remove option when getting directory cache to see whether they
35197       support running-routers; they all do now. Replace it with one
35198       to see whether caches support v2 stuff.
35200   o New features:
35201     - Dirservers now do their own external reachability testing of each
35202       Tor server, and only list them as running if they've been found to
35203       be reachable. We also send back warnings to the server's logs if
35204       it uploads a descriptor that we already believe is unreachable.
35205     - Implement exit enclaves: if we know an IP address for the
35206       destination, and there's a running Tor server at that address
35207       which allows exit to the destination, then extend the circuit to
35208       that exit first. This provides end-to-end encryption and end-to-end
35209       authentication. Also, if the user wants a .exit address or enclave,
35210       use 4 hops rather than 3, and cannibalize a general circ for it
35211       if you can.
35212     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
35213       controller. Also, rotate dns and cpu workers if the controller
35214       changes options that will affect them; and initialize the dns
35215       worker cache tree whether or not we start out as a server.
35216     - Only upload a new server descriptor when options change, 18
35217       hours have passed, uptime is reset, or bandwidth changes a lot.
35218     - Check [X-]Forwarded-For headers in HTTP requests when generating
35219       log messages. This lets people run dirservers (and caches) behind
35220       Apache but still know which IP addresses are causing warnings.
35222   o Config option changes:
35223     - Replace (Fascist)Firewall* config options with a new
35224       ReachableAddresses option that understands address policies.
35225       For example, "ReachableAddresses *:80,*:443"
35226     - Get rid of IgnoreVersion undocumented config option, and make us
35227       only warn, never exit, when we're running an obsolete version.
35228     - Make MonthlyAccountingStart config option truly obsolete now.
35230   o Fixes on 0.1.0.x:
35231     - Reject ports 465 and 587 in the default exit policy, since
35232       people have started using them for spam too.
35233     - It turns out we couldn't bootstrap a network since we added
35234       reachability detection in 0.1.0.1-rc. Good thing the Tor network
35235       has never gone down. Add an AssumeReachable config option to let
35236       servers and dirservers bootstrap. When we're trying to build a
35237       high-uptime or high-bandwidth circuit but there aren't enough
35238       suitable servers, try being less picky rather than simply failing.
35239     - Our logic to decide if the OR we connected to was the right guy
35240       was brittle and maybe open to a mitm for unverified routers.
35241     - We weren't cannibalizing circuits correctly for
35242       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
35243       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
35244       build those from scratch. This should make hidden services faster.
35245     - Predict required circuits better, with an eye toward making hidden
35246       services faster on the service end.
35247     - Retry streams if the exit node sends back a 'misc' failure. This
35248       should result in fewer random failures. Also, after failing
35249       from resolve failed or misc, reset the num failures, so we give
35250       it a fair shake next time we try.
35251     - Clean up the rendezvous warn log msgs, and downgrade some to info.
35252     - Reduce severity on logs about dns worker spawning and culling.
35253     - When we're shutting down and we do something like try to post a
35254       server descriptor or rendezvous descriptor, don't complain that
35255       we seem to be unreachable. Of course we are, we're shutting down.
35256     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
35257       We don't use them yet, but maybe one day our DNS resolver will be
35258       able to discover them.
35259     - Make ContactInfo mandatory for authoritative directory servers.
35260     - Require server descriptors to list IPv4 addresses -- hostnames
35261       are no longer allowed. This also fixes some potential security
35262       problems with people providing hostnames as their address and then
35263       preferentially resolving them to partition users.
35264     - Change log line for unreachability to explicitly suggest /etc/hosts
35265       as the culprit. Also make it clearer what IP address and ports we're
35266       testing for reachability.
35267     - Put quotes around user-supplied strings when logging so users are
35268       more likely to realize if they add bad characters (like quotes)
35269       to the torrc.
35270     - Let auth dir servers start without specifying an Address config
35271       option.
35272     - Make unit tests (and other invocations that aren't the real Tor)
35273       run without launching listeners, creating subdirectories, and so on.
35276 Changes in version 0.1.1.5-alpha - 2005-08-08
35277   o Bugfixes included in 0.1.0.14.
35279   o Bugfixes on 0.1.0.x:
35280     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
35281       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
35282       it would silently using ignore the 6668.
35285 Changes in version 0.1.0.14 - 2005-08-08
35286   o Bugfixes on 0.1.0.x:
35287       - Fix the other half of the bug with crypto handshakes
35288         (CVE-2005-2643).
35289       - Fix an assert trigger if you send a 'signal term' via the
35290         controller when it's listening for 'event info' messages.
35293 Changes in version 0.1.1.4-alpha - 2005-08-04
35294   o Bugfixes included in 0.1.0.13.
35296   o Features:
35297     - Improve tor_gettimeofday() granularity on windows.
35298     - Make clients regenerate their keys when their IP address changes.
35299     - Implement some more GETINFO goodness: expose helper nodes, config
35300       options, getinfo keys.
35303 Changes in version 0.1.0.13 - 2005-08-04
35304   o Bugfixes on 0.1.0.x:
35305     - Fix a critical bug in the security of our crypto handshakes.
35306     - Fix a size_t underflow in smartlist_join_strings2() that made
35307       it do bad things when you hand it an empty smartlist.
35308     - Fix Windows installer to ship Tor license (thanks to Aphex for
35309       pointing out this oversight) and put a link to the doc directory
35310       in the start menu.
35311     - Explicitly set no-unaligned-access for sparc: it turns out the
35312       new gcc's let you compile broken code, but that doesn't make it
35313       not-broken.
35316 Changes in version 0.1.1.3-alpha - 2005-07-23
35317   o Bugfixes on 0.1.1.2-alpha:
35318     - Fix a bug in handling the controller's "post descriptor"
35319       function.
35320     - Fix several bugs in handling the controller's "extend circuit"
35321       function.
35322     - Fix a bug in handling the controller's "stream status" event.
35323     - Fix an assert failure if we have a controller listening for
35324       circuit events and we go offline.
35325     - Re-allow hidden service descriptors to publish 0 intro points.
35326     - Fix a crash when generating your hidden service descriptor if
35327       you don't have enough intro points already.
35329   o New features on 0.1.1.2-alpha:
35330     - New controller function "getinfo accounting", to ask how
35331       many bytes we've used in this time period.
35332     - Experimental support for helper nodes: a lot of the risk from
35333       a small static adversary comes because users pick new random
35334       nodes every time they rebuild a circuit. Now users will try to
35335       stick to the same small set of entry nodes if they can. Not
35336       enabled by default yet.
35338   o Bugfixes on 0.1.0.12:
35339     - If you're an auth dir server, always publish your dirport,
35340       even if you haven't yet found yourself to be reachable.
35341     - Fix a size_t underflow in smartlist_join_strings2() that made
35342       it do bad things when you hand it an empty smartlist.
35345 Changes in version 0.1.0.12 - 2005-07-18
35346   o New directory servers:
35347       - tor26 has changed IP address.
35349   o Bugfixes on 0.1.0.x:
35350     - Fix a possible double-free in tor_gzip_uncompress().
35351     - When --disable-threads is set, do not search for or link against
35352       pthreads libraries.
35353     - Don't trigger an assert if an authoritative directory server
35354       claims its dirport is 0.
35355     - Fix bug with removing Tor as an NT service: some people were
35356       getting "The service did not return an error." Thanks to Matt
35357       Edman for the fix.
35360 Changes in version 0.1.1.2-alpha - 2005-07-15
35361   o New directory servers:
35362     - tor26 has changed IP address.
35364   o Bugfixes on 0.1.0.x, crashes/leaks:
35365     - Port the servers-not-obeying-their-exit-policies fix from
35366       0.1.0.11.
35367     - Fix an fd leak in start_daemon().
35368     - On Windows, you can't always reopen a port right after you've
35369       closed it. So change retry_listeners() to only close and re-open
35370       ports that have changed.
35371     - Fix a possible double-free in tor_gzip_uncompress().
35373   o Bugfixes on 0.1.0.x, usability:
35374     - When tor_socketpair() fails in Windows, give a reasonable
35375       Windows-style errno back.
35376     - Let people type "tor --install" as well as "tor -install" when
35377       they
35378       want to make it an NT service.
35379     - NT service patch from Matt Edman to improve error messages.
35380     - When the controller asks for a config option with an abbreviated
35381       name, give the full name in our response.
35382     - Correct the man page entry on TrackHostExitsExpire.
35383     - Looks like we were never delivering deflated (i.e. compressed)
35384       running-routers lists, even when asked. Oops.
35385     - When --disable-threads is set, do not search for or link against
35386       pthreads libraries.
35388   o Bugfixes on 0.1.1.x:
35389     - Fix a seg fault with autodetecting which controller version is
35390       being used.
35392   o Features:
35393     - New hidden service descriptor format: put a version in it, and
35394       let people specify introduction/rendezvous points that aren't
35395       in "the directory" (which is subjective anyway).
35396     - Allow the DEBUG controller event to work again. Mark certain log
35397       entries as "don't tell this to controllers", so we avoid cycles.
35400 Changes in version 0.1.0.11 - 2005-06-30
35401   o Bugfixes on 0.1.0.x:
35402     - Fix major security bug: servers were disregarding their
35403       exit policies if clients behaved unexpectedly.
35404     - Make OS X init script check for missing argument, so we don't
35405       confuse users who invoke it incorrectly.
35406     - Fix a seg fault in "tor --hash-password foo".
35407     - The MAPADDRESS control command was broken.
35410 Changes in version 0.1.1.1-alpha - 2005-06-29
35411   o Bugfixes:
35412     - Make OS X init script check for missing argument, so we don't
35413       confuse users who invoke it incorrectly.
35414     - Fix a seg fault in "tor --hash-password foo".
35415     - Fix a possible way to DoS dirservers.
35416     - When we complain that your exit policy implicitly allows local or
35417       private address spaces, name them explicitly so operators can
35418       fix it.
35419     - Make the log message less scary when all the dirservers are
35420       temporarily unreachable.
35421     - We were printing the number of idle dns workers incorrectly when
35422       culling them.
35424   o Features:
35425     - Revised controller protocol (version 1) that uses ascii rather
35426       than binary. Add supporting libraries in python and java so you
35427       can use the controller from your applications without caring how
35428       our protocol works.
35429     - Spiffy new support for crypto hardware accelerators. Can somebody
35430       test this?
35433 Changes in version 0.0.9.10 - 2005-06-16
35434   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
35435     - Refuse relay cells that claim to have a length larger than the
35436       maximum allowed. This prevents a potential attack that could read
35437       arbitrary memory (e.g. keys) from an exit server's process
35438       (CVE-2005-2050).
35441 Changes in version 0.1.0.10 - 2005-06-14
35442   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
35443     libevent before 1.1a.
35446 Changes in version 0.1.0.9-rc - 2005-06-09
35447   o Bugfixes:
35448     - Reset buf->highwater every time buf_shrink() is called, not just on
35449       a successful shrink. This was causing significant memory bloat.
35450     - Fix buffer overflow when checking hashed passwords.
35451     - Security fix: if seeding the RNG on Win32 fails, quit.
35452     - Allow seeding the RNG on Win32 even when you're not running as
35453       Administrator.
35454     - Disable threading on Solaris too. Something is wonky with it,
35455       cpuworkers, and reentrant libs.
35456     - Reenable the part of the code that tries to flush as soon as an
35457       OR outbuf has a full TLS record available. Perhaps this will make
35458       OR outbufs not grow as huge except in rare cases, thus saving lots
35459       of CPU time plus memory.
35460     - Reject malformed .onion addresses rather then passing them on as
35461       normal web requests.
35462     - Adapt patch from Adam Langley: fix possible memory leak in
35463       tor_lookup_hostname().
35464     - Initialize libevent later in the startup process, so the logs are
35465       already established by the time we start logging libevent warns.
35466     - Use correct errno on win32 if libevent fails.
35467     - Check and warn about known-bad/slow libevent versions.
35468     - Pay more attention to the ClientOnly config option.
35469     - Have torctl.in/tor.sh.in check for location of su binary (needed
35470       on FreeBSD)
35471     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
35472       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
35473       HttpProxyAuthenticator
35474     - Stop warning about sigpipes in the logs. We're going to
35475       pretend that getting these occasionally is normal and fine.
35476     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
35477       certain
35478       installer screens; and don't put stuff into StartupItems unless
35479       the user asks you to.
35480     - Require servers that use the default dirservers to have public IP
35481       addresses. We have too many servers that are configured with private
35482       IPs and their admins never notice the log entries complaining that
35483       their descriptors are being rejected.
35484     - Add OSX uninstall instructions. An actual uninstall script will
35485       come later.
35488 Changes in version 0.1.0.8-rc - 2005-05-23
35489   o Bugfixes:
35490     - It turns out that kqueue on OS X 10.3.9 was causing kernel
35491       panics. Disable kqueue on all OS X Tors.
35492     - Fix RPM: remove duplicate line accidentally added to the rpm
35493       spec file.
35494     - Disable threads on openbsd too, since its gethostaddr is not
35495       reentrant either.
35496     - Tolerate libevent 0.8 since it still works, even though it's
35497       ancient.
35498     - Enable building on Red Hat 9.0 again.
35499     - Allow the middle hop of the testing circuit to be running any
35500       version, now that most of them have the bugfix to let them connect
35501       to unknown servers. This will allow reachability testing to work
35502       even when 0.0.9.7-0.0.9.9 become obsolete.
35503     - Handle relay cells with rh.length too large. This prevents
35504       a potential attack that could read arbitrary memory (maybe even
35505       keys) from the exit server's process.
35506     - We screwed up the dirport reachability testing when we don't yet
35507       have a cached version of the directory. Hopefully now fixed.
35508     - Clean up router_load_single_router() (used by the controller),
35509       so it doesn't seg fault on error.
35510     - Fix a minor memory leak when somebody establishes an introduction
35511       point at your Tor server.
35512     - If a socks connection ends because read fails, don't warn that
35513       you're not sending a socks reply back.
35515   o Features:
35516     - Add HttpProxyAuthenticator config option too, that works like
35517       the HttpsProxyAuthenticator config option.
35518     - Encode hashed controller passwords in hex instead of base64,
35519       to make it easier to write controllers.
35522 Changes in version 0.1.0.7-rc - 2005-05-17
35523   o Bugfixes:
35524     - Fix a bug in the OS X package installer that prevented it from
35525       installing on Tiger.
35526     - Fix a script bug in the OS X package installer that made it
35527       complain during installation.
35528     - Find libevent even if it's hiding in /usr/local/ and your
35529       CFLAGS and LDFLAGS don't tell you to look there.
35530     - Be able to link with libevent as a shared library (the default
35531       after 1.0d), even if it's hiding in /usr/local/lib and even
35532       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
35533       assuming you're running gcc. Otherwise fail and give a useful
35534       error message.
35535     - Fix a bug in the RPM packager: set home directory for _tor to
35536       something more reasonable when first installing.
35537     - Free a minor amount of memory that is still reachable on exit.
35540 Changes in version 0.1.0.6-rc - 2005-05-14
35541   o Bugfixes:
35542     - Implement --disable-threads configure option. Disable threads on
35543       netbsd by default, because it appears to have no reentrant resolver
35544       functions.
35545     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
35546       release (1.1) detects and disables kqueue if it's broken.
35547     - Append default exit policy before checking for implicit internal
35548       addresses. Now we don't log a bunch of complaints on startup
35549       when using the default exit policy.
35550     - Some people were putting "Address  " in their torrc, and they had
35551       a buggy resolver that resolved " " to 0.0.0.0. Oops.
35552     - If DataDir is ~/.tor, and that expands to /.tor, then default to
35553       LOCALSTATEDIR/tor instead.
35554     - Fix fragmented-message bug in TorControl.py.
35555     - Resolve a minor bug which would prevent unreachable dirports
35556       from getting suppressed in the published descriptor.
35557     - When the controller gave us a new descriptor, we weren't resolving
35558       it immediately, so Tor would think its address was 0.0.0.0 until
35559       we fetched a new directory.
35560     - Fix an uppercase/lowercase case error in suppressing a bogus
35561       libevent warning on some Linuxes.
35563   o Features:
35564     - Begin scrubbing sensitive strings from logs by default. Turn off
35565       the config option SafeLogging if you need to do debugging.
35566     - Switch to a new buffer management algorithm, which tries to avoid
35567       reallocing and copying quite as much. In first tests it looks like
35568       it uses *more* memory on average, but less cpu.
35569     - First cut at support for "create-fast" cells. Clients can use
35570       these when extending to their first hop, since the TLS already
35571       provides forward secrecy and authentication. Not enabled on
35572       clients yet.
35573     - When dirservers refuse a router descriptor, we now log its
35574       contactinfo, platform, and the poster's IP address.
35575     - Call tor_free_all instead of connections_free_all after forking, to
35576       save memory on systems that need to fork.
35577     - Whine at you if you're a server and you don't set your contactinfo.
35578     - Implement --verify-config command-line option to check if your torrc
35579       is valid without actually launching Tor.
35580     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
35581       rather than just rejecting it.
35584 Changes in version 0.1.0.5-rc - 2005-04-27
35585   o Bugfixes:
35586     - Stop trying to print a null pointer if an OR conn fails because
35587       we didn't like its cert.
35588   o Features:
35589     - Switch our internal buffers implementation to use a ring buffer,
35590       to hopefully improve performance for fast servers a lot.
35591     - Add HttpsProxyAuthenticator support (basic auth only), based
35592       on patch from Adam Langley.
35593     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
35594       the fast servers that have been joining lately.
35595     - Give hidden service accesses extra time on the first attempt,
35596       since 60 seconds is often only barely enough. This might improve
35597       robustness more.
35598     - Improve performance for dirservers: stop re-parsing the whole
35599       directory every time you regenerate it.
35600     - Add more debugging info to help us find the weird dns freebsd
35601       pthreads bug; cleaner debug messages to help track future issues.
35604 Changes in version 0.0.9.9 - 2005-04-23
35605   o Bugfixes on 0.0.9.x:
35606     - If unofficial Tor clients connect and send weird TLS certs, our
35607       Tor server triggers an assert. This release contains a minimal
35608       backport from the broader fix that we put into 0.1.0.4-rc.
35611 Changes in version 0.1.0.4-rc - 2005-04-23
35612   o Bugfixes:
35613     - If unofficial Tor clients connect and send weird TLS certs, our
35614       Tor server triggers an assert. Stop asserting, and start handling
35615       TLS errors better in other situations too.
35616     - When the controller asks us to tell it about all the debug-level
35617       logs, it turns out we were generating debug-level logs while
35618       telling it about them, which turns into a bad loop. Now keep
35619       track of whether you're sending a debug log to the controller,
35620       and don't log when you are.
35621     - Fix the "postdescriptor" feature of the controller interface: on
35622       non-complete success, only say "done" once.
35623   o Features:
35624     - Clients are now willing to load balance over up to 2mB, not 1mB,
35625       of advertised bandwidth capacity.
35626     - Add a NoPublish config option, so you can be a server (e.g. for
35627       testing running Tor servers in other Tor networks) without
35628       publishing your descriptor to the primary dirservers.
35631 Changes in version 0.1.0.3-rc - 2005-04-08
35632   o Improvements on 0.1.0.2-rc:
35633     - Client now retries when streams end early for 'hibernating' or
35634       'resource limit' reasons, rather than failing them.
35635     - More automated handling for dirserver operators:
35636       - Automatically approve nodes running 0.1.0.2-rc or later,
35637         now that the the reachability detection stuff is working.
35638       - Now we allow two unverified servers with the same nickname
35639         but different keys. But if a nickname is verified, only that
35640         nickname+key are allowed.
35641       - If you're an authdirserver connecting to an address:port,
35642         and it's not the OR you were expecting, forget about that
35643         descriptor. If he *was* the one you were expecting, then forget
35644         about all other descriptors for that address:port.
35645       - Allow servers to publish descriptors from 12 hours in the future.
35646         Corollary: only whine about clock skew from the dirserver if
35647         he's a trusted dirserver (since now even verified servers could
35648         have quite wrong clocks).
35649     - Adjust maximum skew and age for rendezvous descriptors: let skew
35650       be 48 hours rather than 90 minutes.
35651     - Efficiency improvements:
35652       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
35653         it much faster to look up a circuit for each relay cell.
35654       - Remove most calls to assert_all_pending_dns_resolves_ok(),
35655         since they're eating our cpu on exit nodes.
35656       - Stop wasting time doing a case insensitive comparison for every
35657         dns name every time we do any lookup. Canonicalize the names to
35658         lowercase and be done with it.
35659     - Start sending 'truncated' cells back rather than destroy cells,
35660       if the circuit closes in front of you. This means we won't have
35661       to abandon partially built circuits.
35662     - Only warn once per nickname from add_nickname_list_to_smartlist
35663       per failure, so an entrynode or exitnode choice that's down won't
35664       yell so much.
35665     - Put a note in the torrc about abuse potential with the default
35666       exit policy.
35667     - Revise control spec and implementation to allow all log messages to
35668       be sent to controller with their severities intact (suggested by
35669       Matt Edman). Update TorControl to handle new log event types.
35670     - Provide better explanation messages when controller's POSTDESCRIPTOR
35671       fails.
35672     - Stop putting nodename in the Platform string in server descriptors.
35673       It doesn't actually help, and it is confusing/upsetting some people.
35675   o Bugfixes on 0.1.0.2-rc:
35676     - We were printing the host mask wrong in exit policies in server
35677       descriptors. This isn't a critical bug though, since we were still
35678       obeying the exit policy internally.
35679     - Fix Tor when compiled with libevent but without pthreads: move
35680       connection_unregister() from _connection_free() to
35681       connection_free().
35682     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
35683       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
35684       when we look through the connection array, we'll find any of the
35685       cpu/dnsworkers. This is no good.
35687   o Bugfixes on 0.0.9.8:
35688     - Fix possible bug on threading platforms (e.g. win32) which was
35689       leaking a file descriptor whenever a cpuworker or dnsworker died.
35690     - When using preferred entry or exit nodes, ignore whether the
35691       circuit wants uptime or capacity. They asked for the nodes, they
35692       get the nodes.
35693     - chdir() to your datadirectory at the *end* of the daemonize process,
35694       not the beginning. This was a problem because the first time you
35695       run tor, if your datadir isn't there, and you have runasdaemon set
35696       to 1, it will try to chdir to it before it tries to create it. Oops.
35697     - Handle changed router status correctly when dirserver reloads
35698       fingerprint file. We used to be dropping all unverified descriptors
35699       right then. The bug was hidden because we would immediately
35700       fetch a directory from another dirserver, which would include the
35701       descriptors we just dropped.
35702     - When we're connecting to an OR and he's got a different nickname/key
35703       than we were expecting, only complain loudly if we're an OP or a
35704       dirserver. Complaining loudly to the OR admins just confuses them.
35705     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
35706       artificially capped at 500kB.
35709 Changes in version 0.0.9.8 - 2005-04-07
35710   o Bugfixes on 0.0.9.x:
35711     - We have a bug that I haven't found yet. Sometimes, very rarely,
35712       cpuworkers get stuck in the 'busy' state, even though the cpuworker
35713       thinks of itself as idle. This meant that no new circuits ever got
35714       established. Here's a workaround to kill any cpuworker that's been
35715       busy for more than 100 seconds.
35718 Changes in version 0.1.0.2-rc - 2005-04-01
35719   o Bugfixes on 0.1.0.1-rc:
35720     - Fixes on reachability detection:
35721       - Don't check for reachability while hibernating.
35722       - If ORPort is reachable but DirPort isn't, still publish the
35723         descriptor, but zero out DirPort until it's found reachable.
35724       - When building testing circs for ORPort testing, use only
35725         high-bandwidth nodes, so fewer circuits fail.
35726       - Complain about unreachable ORPort separately from unreachable
35727         DirPort, so the user knows what's going on.
35728       - Make sure we only conclude ORPort reachability if we didn't
35729         initiate the conn. Otherwise we could falsely conclude that
35730         we're reachable just because we connected to the guy earlier
35731         and he used that same pipe to extend to us.
35732       - Authdirservers shouldn't do ORPort reachability detection,
35733         since they're in clique mode, so it will be rare to find a
35734         server not already connected to them.
35735       - When building testing circuits, always pick middle hops running
35736         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
35737         bug. (This is a kludge; it will go away when 0.0.9.x becomes
35738         obsolete.)
35739       - When we decide we're reachable, actually publish our descriptor
35740         right then.
35741     - Fix bug in redirectstream in the controller.
35742     - Fix the state descriptor strings so logs don't claim edge streams
35743       are in a different state than they actually are.
35744     - Use recent libevent features when possible (this only really affects
35745       win32 and osx right now, because the new libevent with these
35746       features hasn't been released yet). Add code to suppress spurious
35747       libevent log msgs.
35748     - Prevent possible segfault in connection_close_unattached_ap().
35749     - Fix newlines on torrc in win32.
35750     - Improve error msgs when tor-resolve fails.
35752   o Improvements on 0.0.9.x:
35753     - New experimental script tor/contrib/ExerciseServer.py (needs more
35754       work) that uses the controller interface to build circuits and
35755       fetch pages over them. This will help us bootstrap servers that
35756       have lots of capacity but haven't noticed it yet.
35757     - New experimental script tor/contrib/PathDemo.py (needs more work)
35758       that uses the controller interface to let you choose whole paths
35759       via addresses like
35760       "<hostname>.<path,separated by dots>.<length of path>.path"
35761     - When we've connected to an OR and handshaked but didn't like
35762       the result, we were closing the conn without sending destroy
35763       cells back for pending circuits. Now send those destroys.
35766 Changes in version 0.0.9.7 - 2005-04-01
35767   o Bugfixes on 0.0.9.x:
35768     - Fix another race crash bug (thanks to Glenn Fink for reporting).
35769     - Compare identity to identity, not to nickname, when extending to
35770       a router not already in the directory. This was preventing us from
35771       extending to unknown routers. Oops.
35772     - Make sure to create OS X Tor user in <500 range, so we aren't
35773       creating actual system users.
35774     - Note where connection-that-hasn't-sent-end was marked, and fix
35775       a few really loud instances of this harmless bug (it's fixed more
35776       in 0.1.0.x).
35779 Changes in version 0.1.0.1-rc - 2005-03-28
35780   o New features:
35781     - Add reachability testing. Your Tor server will automatically try
35782       to see if its ORPort and DirPort are reachable from the outside,
35783       and it won't upload its descriptor until it decides they are.
35784     - Handle unavailable hidden services better. Handle slow or busy
35785       hidden services better.
35786     - Add support for CONNECTing through https proxies, with "HttpsProxy"
35787       config option.
35788     - New exit policy: accept most low-numbered ports, rather than
35789       rejecting most low-numbered ports.
35790     - More Tor controller support (still experimental). See
35791       http://tor.eff.org/doc/control-spec.txt for all the new features,
35792       including signals to emulate unix signals from any platform;
35793       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
35794       closestream; closecircuit; etc.
35795     - Make nt services work and start on startup on win32 (based on
35796       patch by Matt Edman).
35797     - Add a new AddressMap config directive to rewrite incoming socks
35798       addresses. This lets you, for example, declare an implicit
35799       required exit node for certain sites.
35800     - Add a new TrackHostExits config directive to trigger addressmaps
35801       for certain incoming socks addresses -- for sites that break when
35802       your exit keeps changing (based on patch by Mike Perry).
35803     - Redo the client-side dns cache so it's just an addressmap too.
35804     - Notice when our IP changes, and reset stats/uptime/reachability.
35805     - When an application is using socks5, give him the whole variety of
35806       potential socks5 responses (connect refused, host unreachable, etc),
35807       rather than just "success" or "failure".
35808     - A more sane version numbering system. See
35809       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
35810     - New contributed script "exitlist": a simple python script to
35811       parse directories and find Tor nodes that exit to listed
35812       addresses/ports.
35813     - New contributed script "privoxy-tor-toggle" to toggle whether
35814       Privoxy uses Tor. Seems to be configured for Debian by default.
35815     - Report HTTP reasons to client when getting a response from directory
35816       servers -- so you can actually know what went wrong.
35817     - New config option MaxAdvertisedBandwidth which lets you advertise
35818       a low bandwidthrate (to not attract as many circuits) while still
35819       allowing a higher bandwidthrate in reality.
35821   o Robustness/stability fixes:
35822     - Make Tor use Niels Provos's libevent instead of its current
35823       poll-but-sometimes-select mess. This will let us use faster async
35824       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
35825       on Windows too.
35826     - pthread support now too. This was forced because when we forked,
35827       we ended up wasting a lot of duplicate ram over time. Also switch
35828       to foo_r versions of some library calls to allow reentry and
35829       threadsafeness.
35830     - Better handling for heterogeneous / unreliable nodes:
35831       - Annotate circuits w/ whether they aim to contain high uptime nodes
35832         and/or high capacity nodes. When building circuits, choose
35833         appropriate nodes.
35834       - This means that every single node in an intro rend circuit,
35835         not just the last one, will have a minimum uptime.
35836       - New config option LongLivedPorts to indicate application streams
35837         that will want high uptime circuits.
35838       - Servers reset uptime when a dir fetch entirely fails. This
35839         hopefully reflects stability of the server's network connectivity.
35840       - If somebody starts his tor server in Jan 2004 and then fixes his
35841         clock, don't make his published uptime be a year.
35842       - Reset published uptime when you wake up from hibernation.
35843     - Introduce a notion of 'internal' circs, which are chosen without
35844       regard to the exit policy of the last hop. Intro and rendezvous
35845       circs must be internal circs, to avoid leaking information. Resolve
35846       and connect streams can use internal circs if they want.
35847     - New circuit pooling algorithm: make sure to have enough circs around
35848       to satisfy any predicted ports, and also make sure to have 2 internal
35849       circs around if we've required internal circs lately (and with high
35850       uptime if we've seen that lately too).
35851     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
35852       which describes how often we retry making new circuits if current
35853       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
35854       how long we're willing to make use of an already-dirty circuit.
35855     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
35856       circ as necessary, if there are any completed ones lying around
35857       when we try to launch one.
35858     - Make hidden services try to establish a rendezvous for 30 seconds,
35859       rather than for n (where n=3) attempts to build a circuit.
35860     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
35861       "ShutdownWaitLength".
35862     - Try to be more zealous about calling connection_edge_end when
35863       things go bad with edge conns in connection.c.
35864     - Revise tor-spec to add more/better stream end reasons.
35865     - Revise all calls to connection_edge_end to avoid sending "misc",
35866       and to take errno into account where possible.
35868   o Bug fixes:
35869     - Fix a race condition that can trigger an assert, when we have a
35870       pending create cell and an OR connection fails right then.
35871     - Fix several double-mark-for-close bugs, e.g. where we were finding
35872       a conn for a cell even if that conn is already marked for close.
35873     - Make sequence of log messages when starting on win32 with no config
35874       file more reasonable.
35875     - When choosing an exit node for a new non-internal circ, don't take
35876       into account whether it'll be useful for any pending x.onion
35877       addresses -- it won't.
35878     - Turn addr_policy_compare from a tristate to a quadstate; this should
35879       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
35880       for google.com" problem.
35881     - Make "platform" string in descriptor more accurate for Win32 servers,
35882       so it's not just "unknown platform".
35883     - Fix an edge case in parsing config options (thanks weasel).
35884       If they say "--" on the commandline, it's not an option.
35885     - Reject odd-looking addresses at the client (e.g. addresses that
35886       contain a colon), rather than having the server drop them because
35887       they're malformed.
35888     - tor-resolve requests were ignoring .exit if there was a working circuit
35889       they could use instead.
35890     - REUSEADDR on normal platforms means you can rebind to the port
35891       right after somebody else has let it go. But REUSEADDR on win32
35892       means to let you bind to the port _even when somebody else
35893       already has it bound_! So, don't do that on Win32.
35894     - Change version parsing logic: a version is "obsolete" if it is not
35895       recommended and (1) there is a newer recommended version in the
35896       same series, or (2) there are no recommended versions in the same
35897       series, but there are some recommended versions in a newer series.
35898       A version is "new" if it is newer than any recommended version in
35899       the same series.
35900     - Stop most cases of hanging up on a socks connection without sending
35901       the socks reject.
35903   o Helpful fixes:
35904     - Require BandwidthRate to be at least 20kB/s for servers.
35905     - When a dirserver causes you to give a warn, mention which dirserver
35906       it was.
35907     - New config option DirAllowPrivateAddresses for authdirservers.
35908       Now by default they refuse router descriptors that have non-IP or
35909       private-IP addresses.
35910     - Stop publishing socksport in the directory, since it's not
35911       actually meant to be public. For compatibility, publish a 0 there
35912       for now.
35913     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
35914       smart" value, that is low for servers and high for clients.
35915     - If our clock jumps forward by 100 seconds or more, assume something
35916       has gone wrong with our network and abandon all not-yet-used circs.
35917     - Warn when exit policy implicitly allows local addresses.
35918     - If we get an incredibly skewed timestamp from a dirserver mirror
35919       that isn't a verified OR, don't warn -- it's probably him that's
35920       wrong.
35921     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
35922       cookies to disk and doesn't log each web request to disk. (Thanks
35923       to Brett Carrington for pointing this out.)
35924     - When a client asks us for a dir mirror and we don't have one,
35925       launch an attempt to get a fresh one.
35926     - If we're hibernating and we get a SIGINT, exit immediately.
35927     - Add --with-dmalloc ./configure option, to track memory leaks.
35928     - And try to free all memory on closing, so we can detect what
35929       we're leaking.
35930     - Cache local dns resolves correctly even when they're .exit
35931       addresses.
35932     - Give a better warning when some other server advertises an
35933       ORPort that is actually an apache running ssl.
35934     - Add "opt hibernating 1" to server descriptor to make it clearer
35935       whether the server is hibernating.
35938 Changes in version 0.0.9.6 - 2005-03-24
35939   o Bugfixes on 0.0.9.x (crashes and asserts):
35940     - Add new end stream reasons to maintenance branch. Fix bug where
35941       reason (8) could trigger an assert. Prevent bug from recurring.
35942     - Apparently win32 stat wants paths to not end with a slash.
35943     - Fix assert triggers in assert_cpath_layer_ok(), where we were
35944       blowing away the circuit that conn->cpath_layer points to, then
35945       checking to see if the circ is well-formed. Backport check to make
35946       sure we dont use the cpath on a closed connection.
35947     - Prevent circuit_resume_edge_reading_helper() from trying to package
35948       inbufs for marked-for-close streams.
35949     - Don't crash on hup if your options->address has become unresolvable.
35950     - Some systems (like OS X) sometimes accept() a connection and tell
35951       you the remote host is 0.0.0.0:0. If this happens, due to some
35952       other mis-features, we get confused; so refuse the conn for now.
35954   o Bugfixes on 0.0.9.x (other):
35955     - Fix harmless but scary "Unrecognized content encoding" warn message.
35956     - Add new stream error reason: TORPROTOCOL reason means "you are not
35957       speaking a version of Tor I understand; say bye-bye to your stream."
35958     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
35959       into the future, now that we are more tolerant of skew. This
35960       resolves a bug where a Tor server would refuse to cache a directory
35961       because all the directories it gets are too far in the future;
35962       yet the Tor server never logs any complaints about clock skew.
35963     - Mac packaging magic: make man pages useable, and do not overwrite
35964       existing torrc files.
35965     - Make OS X log happily to /var/log/tor/tor.log
35968 Changes in version 0.0.9.5 - 2005-02-22
35969   o Bugfixes on 0.0.9.x:
35970     - Fix an assert race at exit nodes when resolve requests fail.
35971     - Stop picking unverified dir mirrors--it only leads to misery.
35972     - Patch from Matt Edman to make NT services work better. Service
35973       support is still not compiled into the executable by default.
35974     - Patch from Dmitri Bely so the Tor service runs better under
35975       the win32 SYSTEM account.
35976     - Make tor-resolve actually work (?) on Win32.
35977     - Fix a sign bug when getrlimit claims to have 4+ billion
35978       file descriptors available.
35979     - Stop refusing to start when bandwidthburst == bandwidthrate.
35980     - When create cells have been on the onion queue more than five
35981       seconds, just send back a destroy and take them off the list.
35984 Changes in version 0.0.9.4 - 2005-02-03
35985   o Bugfixes on 0.0.9:
35986     - Fix an assert bug that took down most of our servers: when
35987       a server claims to have 1 GB of bandwidthburst, don't
35988       freak out.
35989     - Don't crash as badly if we have spawned the max allowed number
35990       of dnsworkers, or we're out of file descriptors.
35991     - Block more file-sharing ports in the default exit policy.
35992     - MaxConn is now automatically set to the hard limit of max
35993       file descriptors we're allowed (ulimit -n), minus a few for
35994       logs, etc.
35995     - Give a clearer message when servers need to raise their
35996       ulimit -n when they start running out of file descriptors.
35997     - SGI Compatibility patches from Jan Schaumann.
35998     - Tolerate a corrupt cached directory better.
35999     - When a dirserver hasn't approved your server, list which one.
36000     - Go into soft hibernation after 95% of the bandwidth is used,
36001       not 99%. This is especially important for daily hibernators who
36002       have a small accounting max. Hopefully it will result in fewer
36003       cut connections when the hard hibernation starts.
36004     - Load-balance better when using servers that claim more than
36005       800kB/s of capacity.
36006     - Make NT services work (experimental, only used if compiled in).
36009 Changes in version 0.0.9.3 - 2005-01-21
36010   o Bugfixes on 0.0.9:
36011     - Backport the cpu use fixes from main branch, so busy servers won't
36012       need as much processor time.
36013     - Work better when we go offline and then come back, or when we
36014       run Tor at boot before the network is up. We do this by
36015       optimistically trying to fetch a new directory whenever an
36016       application request comes in and we think we're offline -- the
36017       human is hopefully a good measure of when the network is back.
36018     - Backport some minimal hidserv bugfixes: keep rend circuits open as
36019       long as you keep using them; actually publish hidserv descriptors
36020       shortly after they change, rather than waiting 20-40 minutes.
36021     - Enable Mac startup script by default.
36022     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
36023     - When you update AllowUnverifiedNodes or FirewallPorts via the
36024       controller's setconf feature, we were always appending, never
36025       resetting.
36026     - When you update HiddenServiceDir via setconf, it was screwing up
36027       the order of reading the lines, making it fail.
36028     - Do not rewrite a cached directory back to the cache; otherwise we
36029       will think it is recent and not fetch a newer one on startup.
36030     - Workaround for webservers that lie about Content-Encoding: Tor
36031       now tries to autodetect compressed directories and compression
36032       itself. This lets us Proxypass dir fetches through apache.
36035 Changes in version 0.0.9.2 - 2005-01-04
36036   o Bugfixes on 0.0.9 (crashes and asserts):
36037     - Fix an assert on startup when the disk is full and you're logging
36038       to a file.
36039     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
36040       style address, then we'd crash.
36041     - Fix an assert trigger when the running-routers string we get from
36042       a dirserver is broken.
36043     - Make worker threads start and run on win32. Now win32 servers
36044       may work better.
36045     - Bandaid (not actually fix, but now it doesn't crash) an assert
36046       where the dns worker dies mysteriously and the main Tor process
36047       doesn't remember anything about the address it was resolving.
36049   o Bugfixes on 0.0.9 (Win32):
36050     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
36051       name out of the warning/assert messages.
36052     - Fix a superficial "unhandled error on read" bug on win32.
36053     - The win32 installer no longer requires a click-through for our
36054       license, since our Free Software license grants rights but does not
36055       take any away.
36056     - Win32: When connecting to a dirserver fails, try another one
36057       immediately. (This was already working for non-win32 Tors.)
36058     - Stop trying to parse $HOME on win32 when hunting for default
36059       DataDirectory.
36060     - Make tor-resolve.c work on win32 by calling network_init().
36062   o Bugfixes on 0.0.9 (other):
36063     - Make 0.0.9.x build on Solaris again.
36064     - Due to a fencepost error, we were blowing away the \n when reporting
36065       confvalue items in the controller. So asking for multiple config
36066       values at once couldn't work.
36067     - When listing circuits that are pending on an opening OR connection,
36068       if we're an OR we were listing circuits that *end* at us as
36069       being pending on every listener, dns/cpu worker, etc. Stop that.
36070     - Dirservers were failing to create 'running-routers' or 'directory'
36071       strings if we had more than some threshold of routers. Fix them so
36072       they can handle any number of routers.
36073     - Fix a superficial "Duplicate mark for close" bug.
36074     - Stop checking for clock skew for OR connections, even for servers.
36075     - Fix a fencepost error that was chopping off the last letter of any
36076       nickname that is the maximum allowed nickname length.
36077     - Update URLs in log messages so they point to the new website.
36078     - Fix a potential problem in mangling server private keys while
36079       writing to disk (not triggered yet, as far as we know).
36080     - Include the licenses for other free software we include in Tor,
36081       now that we're shipping binary distributions more regularly.
36084 Changes in version 0.0.9.1 - 2004-12-15
36085   o Bugfixes on 0.0.9:
36086     - Make hibernation actually work.
36087     - Make HashedControlPassword config option work.
36088     - When we're reporting event circuit status to a controller,
36089       don't use the stream status code.
36092 Changes in version 0.0.9 - 2004-12-12
36093   o Cleanups:
36094     - Clean up manpage and torrc.sample file.
36095     - Clean up severities and text of log warnings.
36096   o Mistakes:
36097     - Make servers trigger an assert when they enter hibernation.
36100 Changes in version 0.0.9rc7 - 2004-12-08
36101   o Bugfixes on 0.0.9rc:
36102     - Fix a stack-trashing crash when an exit node begins hibernating.
36103     - Avoid looking at unallocated memory while considering which
36104       ports we need to build circuits to cover.
36105     - Stop a sigpipe: when an 'end' cell races with eof from the app,
36106       we shouldn't hold-open-until-flush if the eof arrived first.
36107     - Fix a bug with init_cookie_authentication() in the controller.
36108     - When recommending new-format log lines, if the upper bound is
36109       LOG_ERR, leave it implicit.
36111   o Bugfixes on 0.0.8.1:
36112     - Fix a whole slew of memory leaks.
36113     - Fix isspace() and friends so they still make Solaris happy
36114       but also so they don't trigger asserts on win32.
36115     - Fix parse_iso_time on platforms without strptime (eg win32).
36116     - win32: tolerate extra "readable" events better.
36117     - win32: when being multithreaded, leave parent fdarray open.
36118     - Make unit tests work on win32.
36121 Changes in version 0.0.9rc6 - 2004-12-06
36122   o Bugfixes on 0.0.9pre:
36123     - Clean up some more integer underflow opportunities (not exploitable
36124       we think).
36125     - While hibernating, hup should not regrow our listeners.
36126     - Send an end to the streams we close when we hibernate, rather
36127       than just chopping them off.
36128     - React to eof immediately on non-open edge connections.
36130   o Bugfixes on 0.0.8.1:
36131     - Calculate timeout for waiting for a connected cell from the time
36132       we sent the begin cell, not from the time the stream started. If
36133       it took a long time to establish the circuit, we would time out
36134       right after sending the begin cell.
36135     - Fix router_compare_addr_to_addr_policy: it was not treating a port
36136       of * as always matching, so we were picking reject *:* nodes as
36137       exit nodes too. Oops.
36139   o Features:
36140     - New circuit building strategy: keep a list of ports that we've
36141       used in the past 6 hours, and always try to have 2 circuits open
36142       or on the way that will handle each such port. Seed us with port
36143       80 so web users won't complain that Tor is "slow to start up".
36144     - Make kill -USR1 dump more useful stats about circuits.
36145     - When warning about retrying or giving up, print the address, so
36146       the user knows which one it's talking about.
36147     - If you haven't used a clean circuit in an hour, throw it away,
36148       just to be on the safe side. (This means after 6 hours a totally
36149       unused Tor client will have no circuits open.)
36152 Changes in version 0.0.9rc5 - 2004-12-01
36153   o Bugfixes on 0.0.8.1:
36154     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
36155     - Let resolve conns retry/expire also, rather than sticking around
36156       forever.
36157     - If we are using select, make sure we stay within FD_SETSIZE.
36159   o Bugfixes on 0.0.9pre:
36160     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
36161       but doesn't seem to be currently; thanks to Ilja van Sprundel for
36162       finding it.
36163     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
36164       instead. Impose minima and maxima for all *Period options; impose
36165       even tighter maxima for fetching if we are a caching dirserver.
36166       Clip rather than rejecting.
36167     - Fetch cached running-routers from servers that serve it (that is,
36168       authdirservers and servers running 0.0.9rc5-cvs or later.)
36170   o Features:
36171     - Accept *:706 (silc) in default exit policy.
36172     - Implement new versioning format for post 0.1.
36173     - Support "foo.nickname.exit" addresses, to let Alice request the
36174       address "foo" as viewed by exit node "nickname". Based on a patch
36175       by Geoff Goodell.
36176     - Make tor --version --version dump the cvs Id of every file.
36179 Changes in version 0.0.9rc4 - 2004-11-28
36180   o Bugfixes on 0.0.8.1:
36181     - Make windows sockets actually non-blocking (oops), and handle
36182       win32 socket errors better.
36184   o Bugfixes on 0.0.9rc1:
36185     - Actually catch the -USR2 signal.
36188 Changes in version 0.0.9rc3 - 2004-11-25
36189   o Bugfixes on 0.0.8.1:
36190     - Flush the log file descriptor after we print "Tor opening log file",
36191       so we don't see those messages days later.
36193   o Bugfixes on 0.0.9rc1:
36194     - Make tor-resolve work again.
36195     - Avoid infinite loop in tor-resolve if tor hangs up on it.
36196     - Fix an assert trigger for clients/servers handling resolves.
36199 Changes in version 0.0.9rc2 - 2004-11-24
36200   o Bugfixes on 0.0.9rc1:
36201     - I broke socks5 support while fixing the eof bug.
36202     - Allow unitless bandwidths and intervals; they default to bytes
36203       and seconds.
36204     - New servers don't start out hibernating; they are active until
36205       they run out of bytes, so they have a better estimate of how
36206       long it takes, and so their operators can know they're working.
36209 Changes in version 0.0.9rc1 - 2004-11-23
36210   o Bugfixes on 0.0.8.1:
36211     - Finally fix a bug that's been plaguing us for a year:
36212       With high load, circuit package window was reaching 0. Whenever
36213       we got a circuit-level sendme, we were reading a lot on each
36214       socket, but only writing out a bit. So we would eventually reach
36215       eof. This would be noticed and acted on even when there were still
36216       bytes sitting in the inbuf.
36217     - When poll() is interrupted, we shouldn't believe the revents values.
36219   o Bugfixes on 0.0.9pre6:
36220     - Fix hibernate bug that caused pre6 to be broken.
36221     - Don't keep rephist info for routers that haven't had activity for
36222       24 hours. (This matters now that clients have keys, since we track
36223       them too.)
36224     - Never call close_temp_logs while validating log options.
36225     - Fix backslash-escaping on tor.sh.in and torctl.in.
36227   o Features:
36228     - Implement weekly/monthly/daily accounting: now you specify your
36229       hibernation properties by
36230       AccountingMax N bytes|KB|MB|GB|TB
36231       AccountingStart day|week|month [day] HH:MM
36232         Defaults to "month 1 0:00".
36233     - Let bandwidth and interval config options be specified as 5 bytes,
36234       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
36235     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
36236       get back to normal.)
36237     - If your requested entry or exit node has advertised bandwidth 0,
36238       pick it anyway.
36239     - Be more greedy about filling up relay cells -- we try reading again
36240       once we've processed the stuff we read, in case enough has arrived
36241       to fill the last cell completely.
36242     - Apply NT service patch from Osamu Fujino. Still needs more work.
36245 Changes in version 0.0.9pre6 - 2004-11-15
36246   o Bugfixes on 0.0.8.1:
36247     - Fix assert failure on malformed socks4a requests.
36248     - Use identity comparison, not nickname comparison, to choose which
36249       half of circuit-ID-space each side gets to use. This is needed
36250       because sometimes we think of a router as a nickname, and sometimes
36251       as a hex ID, and we can't predict what the other side will do.
36252     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
36253       write() call will fail and we handle it there.
36254     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
36255       and smartlist_len, which are two major profiling offenders.
36257   o Bugfixes on 0.0.9pre5:
36258     - Fix a bug in read_all that was corrupting config files on windows.
36259     - When we're raising the max number of open file descriptors to
36260       'unlimited', don't log that we just raised it to '-1'.
36261     - Include event code with events, as required by control-spec.txt.
36262     - Don't give a fingerprint when clients do --list-fingerprint:
36263       it's misleading, because it will never be the same again.
36264     - Stop using strlcpy in tor_strndup, since it was slowing us
36265       down a lot.
36266     - Remove warn on startup about missing cached-directory file.
36267     - Make kill -USR1 work again.
36268     - Hibernate if we start tor during the "wait for wakeup-time" phase
36269       of an accounting interval. Log our hibernation plans better.
36270     - Authoritative dirservers now also cache their directory, so they
36271       have it on start-up.
36273   o Features:
36274     - Fetch running-routers; cache running-routers; compress
36275       running-routers; serve compressed running-routers.z
36276     - Add NSI installer script contributed by J Doe.
36277     - Commit VC6 and VC7 workspace/project files.
36278     - Commit a tor.spec for making RPM files, with help from jbash.
36279     - Add contrib/torctl.in contributed by Glenn Fink.
36280     - Implement the control-spec's SAVECONF command, to write your
36281       configuration to torrc.
36282     - Get cookie authentication for the controller closer to working.
36283     - Include control-spec.txt in the tarball.
36284     - When set_conf changes our server descriptor, upload a new copy.
36285       But don't upload it too often if there are frequent changes.
36286     - Document authentication config in man page, and document signals
36287       we catch.
36288     - Clean up confusing parts of man page and torrc.sample.
36289     - Make expand_filename handle ~ and ~username.
36290     - Use autoconf to enable largefile support where necessary. Use
36291       ftello where available, since ftell can fail at 2GB.
36292     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
36293       log more informatively.
36294     - Give a slightly more useful output for "tor -h".
36295     - Refuse application socks connections to port 0.
36296     - Check clock skew for verified servers, but allow unverified
36297       servers and clients to have any clock skew.
36298     - Break DirFetchPostPeriod into:
36299       - DirFetchPeriod for fetching full directory,
36300       - StatusFetchPeriod for fetching running-routers,
36301       - DirPostPeriod for posting server descriptor,
36302       - RendPostPeriod for posting hidden service descriptors.
36303     - Make sure the hidden service descriptors are at a random offset
36304       from each other, to hinder linkability.
36307 Changes in version 0.0.9pre5 - 2004-11-09
36308   o Bugfixes on 0.0.9pre4:
36309     - Fix a seg fault in unit tests (doesn't affect main program).
36310     - Fix an assert bug where a hidden service provider would fail if
36311       the first hop of his rendezvous circuit was down.
36312     - Hidden service operators now correctly handle version 1 style
36313       INTRODUCE1 cells (nobody generates them still, so not a critical
36314       bug).
36315     - If do_hup fails, actually notice.
36316     - Handle more errnos from accept() without closing the listener.
36317       Some OpenBSD machines were closing their listeners because
36318       they ran out of file descriptors.
36319     - Send resolve cells to exit routers that are running a new
36320       enough version of the resolve code to work right.
36321     - Better handling of winsock includes on non-MSV win32 compilers.
36322     - Some people had wrapped their tor client/server in a script
36323       that would restart it whenever it died. This did not play well
36324       with our "shut down if your version is obsolete" code. Now people
36325       don't fetch a new directory if their local cached version is
36326       recent enough.
36327     - Make our autogen.sh work on ksh as well as bash.
36329   o Major Features:
36330     - Hibernation: New config option "AccountingMaxKB" lets you
36331       set how many KBytes per month you want to allow your server to
36332       consume. Rather than spreading those bytes out evenly over the
36333       month, we instead hibernate for some of the month and pop up
36334       at a deterministic time, work until the bytes are consumed, then
36335       hibernate again. Config option "MonthlyAccountingStart" lets you
36336       specify which day of the month your billing cycle starts on.
36337     - Control interface: a separate program can now talk to your
36338       client/server over a socket, and get/set config options, receive
36339       notifications of circuits and streams starting/finishing/dying,
36340       bandwidth used, etc. The next step is to get some GUIs working.
36341       Let us know if you want to help out. See doc/control-spec.txt .
36342     - Ship a contrib/tor-control.py as an example script to interact
36343       with the control port.
36344     - "tor --hash-password zzyxz" will output a salted password for
36345       use in authenticating to the control interface.
36346     - New log format in config:
36347       "Log minsev[-maxsev] stdout|stderr|syslog" or
36348       "Log minsev[-maxsev] file /var/foo"
36350   o Minor Features:
36351     - DirPolicy config option, to let people reject incoming addresses
36352       from their dirserver.
36353     - "tor --list-fingerprint" will list your identity key fingerprint
36354       and then exit.
36355     - Add "pass" target for RedirectExit, to make it easier to break
36356       out of a sequence of RedirectExit rules.
36357     - Clients now generate a TLS cert too, in preparation for having
36358       them act more like real nodes.
36359     - Ship src/win32/ in the tarball, so people can use it to build.
36360     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
36361       is broken.
36362     - New "router-status" line in directory, to better bind each verified
36363       nickname to its identity key.
36364     - Deprecate unofficial config option abbreviations, and abbreviations
36365       not on the command line.
36366     - Add a pure-C tor-resolve implementation.
36367     - Use getrlimit and friends to ensure we can reach MaxConn (currently
36368       1024) file descriptors.
36370   o Code security improvements, inspired by Ilja:
36371     - Replace sprintf with snprintf. (I think they were all safe, but
36372       hey.)
36373     - Replace strcpy/strncpy with strlcpy in more places.
36374     - Avoid strcat; use snprintf or strlcat instead.
36375     - snprintf wrapper with consistent (though not C99) overflow behavior.
36378 Changes in version 0.0.9pre4 - 2004-10-17
36379   o Bugfixes on 0.0.9pre3:
36380     - If the server doesn't specify an exit policy, use the real default
36381       exit policy, not reject *:*.
36382     - Ignore fascistfirewall when uploading/downloading hidden service
36383       descriptors, since we go through Tor for those; and when using
36384       an HttpProxy, since we assume it can reach them all.
36385     - When looking for an authoritative dirserver, use only the ones
36386       configured at boot. Don't bother looking in the directory.
36387     - The rest of the fix for get_default_conf_file() on older win32.
36388     - Make 'Routerfile' config option obsolete.
36390   o Features:
36391     - New 'MyFamily nick1,...' config option for a server to
36392       specify other servers that shouldn't be used in the same circuit
36393       with it. Only believed if nick1 also specifies us.
36394     - New 'NodeFamily nick1,nick2,...' config option for a client to
36395       specify nodes that it doesn't want to use in the same circuit.
36396     - New 'Redirectexit pattern address:port' config option for a
36397       server to redirect exit connections, e.g. to a local squid.
36400 Changes in version 0.0.9pre3 - 2004-10-13
36401   o Bugfixes on 0.0.8.1:
36402     - Better torrc example lines for dirbindaddress and orbindaddress.
36403     - Improved bounds checking on parsed ints (e.g. config options and
36404       the ones we find in directories.)
36405     - Better handling of size_t vs int, so we're more robust on 64
36406       bit platforms.
36407     - Fix the rest of the bug where a newly started OR would appear
36408       as unverified even after we've added his fingerprint and hupped
36409       the dirserver.
36410     - Fix a bug from 0.0.7: when read() failed on a stream, we would
36411       close it without sending back an end. So 'connection refused'
36412       would simply be ignored and the user would get no response.
36414   o Bugfixes on 0.0.9pre2:
36415     - Serving the cached-on-disk directory to people is bad. We now
36416       provide no directory until we've fetched a fresh one.
36417     - Workaround for bug on windows where cached-directories get crlf
36418       corruption.
36419     - Make get_default_conf_file() work on older windows too.
36420     - If we write a *:* exit policy line in the descriptor, don't write
36421       any more exit policy lines.
36423   o Features:
36424     - Use only 0.0.9pre1 and later servers for resolve cells.
36425     - Make the dirservers file obsolete.
36426       - Include a dir-signing-key token in directories to tell the
36427         parsing entity which key is being used to sign.
36428       - Remove the built-in bulky default dirservers string.
36429       - New config option "Dirserver %s:%d [fingerprint]", which can be
36430         repeated as many times as needed. If no dirservers specified,
36431         default to moria1,moria2,tor26.
36432     - Make moria2 advertise a dirport of 80, so people behind firewalls
36433       will be able to get a directory.
36434     - Http proxy support
36435       - Dirservers translate requests for http://%s:%d/x to /x
36436       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
36437         be routed through this host.
36438       - Clients ask for /tor/x rather than /x for new enough dirservers.
36439         This way we can one day coexist peacefully with apache.
36440       - Clients specify a "Host: %s%d" http header, to be compatible
36441         with more proxies, and so running squid on an exit node can work.
36444 Changes in version 0.0.8.1 - 2004-10-13
36445   o Bugfixes:
36446     - Fix a seg fault that can be triggered remotely for Tor
36447       clients/servers with an open dirport.
36448     - Fix a rare assert trigger, where routerinfos for entries in
36449       our cpath would expire while we're building the path.
36450     - Fix a bug in OutboundBindAddress so it (hopefully) works.
36451     - Fix a rare seg fault for people running hidden services on
36452       intermittent connections.
36453     - Fix a bug in parsing opt keywords with objects.
36454     - Fix a stale pointer assert bug when a stream detaches and
36455       reattaches.
36456     - Fix a string format vulnerability (probably not exploitable)
36457       in reporting stats locally.
36458     - Fix an assert trigger: sometimes launching circuits can fail
36459       immediately, e.g. because too many circuits have failed recently.
36460     - Fix a compile warning on 64 bit platforms.
36463 Changes in version 0.0.9pre2 - 2004-10-03
36464   o Bugfixes:
36465     - Make fetching a cached directory work for 64-bit platforms too.
36466     - Make zlib.h a required header, not an optional header.
36469 Changes in version 0.0.9pre1 - 2004-10-01
36470   o Bugfixes:
36471     - Stop using separate defaults for no-config-file and
36472       empty-config-file. Now you have to explicitly turn off SocksPort,
36473       if you don't want it open.
36474     - Fix a bug in OutboundBindAddress so it (hopefully) works.
36475     - Improve man page to mention more of the 0.0.8 features.
36476     - Fix a rare seg fault for people running hidden services on
36477       intermittent connections.
36478     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
36479       happier.
36480     - Fix more dns related bugs: send back resolve_failed and end cells
36481       more reliably when the resolve fails, rather than closing the
36482       circuit and then trying to send the cell. Also attach dummy resolve
36483       connections to a circuit *before* calling dns_resolve(), to fix
36484       a bug where cached answers would never be sent in RESOLVED cells.
36485     - When we run out of disk space, or other log writing error, don't
36486       crash. Just stop logging to that log and continue.
36487     - We were starting to daemonize before we opened our logs, so if
36488       there were any problems opening logs, we would complain to stderr,
36489       which wouldn't work, and then mysteriously exit.
36490     - Fix a rare bug where sometimes a verified OR would connect to us
36491       before he'd uploaded his descriptor, which would cause us to
36492       assign conn->nickname as though he's unverified. Now we look through
36493       the fingerprint list to see if he's there.
36494     - Fix a rare assert trigger, where routerinfos for entries in
36495       our cpath would expire while we're building the path.
36497   o Features:
36498     - Clients can ask dirservers for /dir.z to get a compressed version
36499       of the directory. Only works for servers running 0.0.9, of course.
36500     - Make clients cache directories and use them to seed their router
36501       lists at startup. This means clients have a datadir again.
36502     - Configuration infrastructure support for warning on obsolete
36503       options.
36504     - Respond to content-encoding headers by trying to uncompress as
36505       appropriate.
36506     - Reply with a deflated directory when a client asks for "dir.z".
36507       We could use allow-encodings instead, but allow-encodings isn't
36508       specified in HTTP 1.0.
36509     - Raise the max dns workers from 50 to 100.
36510     - Discourage people from setting their dirfetchpostperiod more often
36511       than once per minute.
36512     - Protect dirservers from overzealous descriptor uploading -- wait
36513       10 seconds after directory gets dirty, before regenerating.
36516 Changes in version 0.0.8 - 2004-08-25
36517   o Port it to SunOS 5.9 / Athena
36520 Changes in version 0.0.8rc2 - 2004-08-20
36521   o Make it compile on cygwin again.
36522   o When picking unverified routers, skip those with low uptime and/or
36523     low bandwidth, depending on what properties you care about.
36526 Changes in version 0.0.8rc1 - 2004-08-18
36527   o Changes from 0.0.7.3:
36528     - Bugfixes:
36529       - Fix assert triggers: if the other side returns an address 0.0.0.0,
36530         don't put it into the client dns cache.
36531       - If a begin failed due to exit policy, but we believe the IP address
36532         should have been allowed, switch that router to exitpolicy reject *:*
36533         until we get our next directory.
36534     - Features:
36535       - Clients choose nodes proportional to advertised bandwidth.
36536       - Avoid using nodes with low uptime as introduction points.
36537       - Handle servers with dynamic IP addresses: don't replace
36538         options->Address with the resolved one at startup, and
36539         detect our address right before we make a routerinfo each time.
36540       - 'FascistFirewall' option to pick dirservers and ORs on specific
36541         ports; plus 'FirewallPorts' config option to tell FascistFirewall
36542         which ports are open. (Defaults to 80,443)
36543       - Be more aggressive about trying to make circuits when the network
36544         has changed (e.g. when you unsuspend your laptop).
36545       - Check for time skew on http headers; report date in response to
36546         "GET /".
36547       - If the entrynode config line has only one node, don't pick it as
36548         an exitnode.
36549       - Add strict{entry|exit}nodes config options. If set to 1, then
36550         we refuse to build circuits that don't include the specified entry
36551         or exit nodes.
36552       - OutboundBindAddress config option, to bind to a specific
36553         IP address for outgoing connect()s.
36554       - End truncated log entries (e.g. directories) with "[truncated]".
36556   o Patches to 0.0.8preX:
36557     - Bugfixes:
36558       - Patches to compile and run on win32 again (maybe)?
36559       - Fix crash when looking for ~/.torrc with no $HOME set.
36560       - Fix a race bug in the unit tests.
36561       - Handle verified/unverified name collisions better when new
36562         routerinfo's arrive in a directory.
36563       - Sometimes routers were getting entered into the stats before
36564         we'd assigned their identity_digest. Oops.
36565       - Only pick and establish intro points after we've gotten a
36566         directory.
36567     - Features:
36568       - AllowUnverifiedNodes config option to let circuits choose no-name
36569         routers in entry,middle,exit,introduction,rendezvous positions.
36570         Allow middle and rendezvous positions by default.
36571       - Add a man page for tor-resolve.
36574 Changes in version 0.0.7.3 - 2004-08-12
36575   o Stop dnsworkers from triggering an assert failure when you
36576     ask them to resolve the host "".
36579 Changes in version 0.0.8pre3 - 2004-08-09
36580   o Changes from 0.0.7.2:
36581     - Allow multiple ORs with same nickname in routerlist -- now when
36582       people give us one identity key for a nickname, then later
36583       another, we don't constantly complain until the first expires.
36584     - Remember used bandwidth (both in and out), and publish 15-minute
36585       snapshots for the past day into our descriptor.
36586     - You can now fetch $DIRURL/running-routers to get just the
36587       running-routers line, not the whole descriptor list. (But
36588       clients don't use this yet.)
36589     - When people mistakenly use Tor as an http proxy, point them
36590       at the tor-doc.html rather than the INSTALL.
36591     - Remove our mostly unused -- and broken -- hex_encode()
36592       function. Use base16_encode() instead. (Thanks to Timo Lindfors
36593       for pointing out this bug.)
36594     - Rotate onion keys every 12 hours, not every 2 hours, so we have
36595       fewer problems with people using the wrong key.
36596     - Change the default exit policy to reject the default edonkey,
36597       kazaa, gnutella ports.
36598     - Add replace_file() to util.[ch] to handle win32's rename().
36600   o Changes from 0.0.8preX:
36601     - Fix two bugs in saving onion keys to disk when rotating, so
36602       hopefully we'll get fewer people using old onion keys.
36603     - Fix an assert error that was making SocksPolicy not work.
36604     - Be willing to expire routers that have an open dirport -- it's
36605       just the authoritative dirservers we want to not forget.
36606     - Reject tor-resolve requests for .onion addresses early, so we
36607       don't build a whole rendezvous circuit and then fail.
36608     - When you're warning a server that he's unverified, don't cry
36609       wolf unpredictably.
36610     - Fix a race condition: don't try to extend onto a connection
36611       that's still handshaking.
36612     - For servers in clique mode, require the conn to be open before
36613       you'll choose it for your path.
36614     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
36615       end relay cell, etc.
36616     - Measure bandwidth capacity over the last 24 hours, not just 12
36617     - Bugfix: authoritative dirservers were making and signing a new
36618       directory for each client, rather than reusing the cached one.
36621 Changes in version 0.0.8pre2 - 2004-08-04
36622   o Changes from 0.0.7.2:
36623     - Security fixes:
36624       - Check directory signature _before_ you decide whether you're
36625         you're running an obsolete version and should exit.
36626       - Check directory signature _before_ you parse the running-routers
36627         list to decide who's running or verified.
36628     - Bugfixes and features:
36629       - Check return value of fclose while writing to disk, so we don't
36630         end up with broken files when servers run out of disk space.
36631       - Log a warning if the user uses an unsafe socks variant, so people
36632         are more likely to learn about privoxy or socat.
36633       - Dirservers now include RFC1123-style dates in the HTTP headers,
36634         which one day we will use to better detect clock skew.
36636   o Changes from 0.0.8pre1:
36637     - Make it compile without warnings again on win32.
36638     - Log a warning if you're running an unverified server, to let you
36639       know you might want to get it verified.
36640     - Only pick a default nickname if you plan to be a server.
36643 Changes in version 0.0.8pre1 - 2004-07-23
36644   o Bugfixes:
36645     - Made our unit tests compile again on OpenBSD 3.5, and tor
36646       itself compile again on OpenBSD on a sparc64.
36647     - We were neglecting milliseconds when logging on win32, so
36648       everything appeared to happen at the beginning of each second.
36650   o Protocol changes:
36651     - 'Extend' relay cell payloads now include the digest of the
36652       intended next hop's identity key. Now we can verify that we're
36653       extending to the right router, and also extend to routers we
36654       hadn't heard of before.
36656   o Features:
36657     - Tor nodes can now act as relays (with an advertised ORPort)
36658       without being manually verified by the dirserver operators.
36659       - Uploaded descriptors of unverified routers are now accepted
36660         by the dirservers, and included in the directory.
36661       - Verified routers are listed by nickname in the running-routers
36662         list; unverified routers are listed as "$<fingerprint>".
36663       - We now use hash-of-identity-key in most places rather than
36664         nickname or addr:port, for improved security/flexibility.
36665       - To avoid Sybil attacks, paths still use only verified servers.
36666         But now we have a chance to play around with hybrid approaches.
36667       - Nodes track bandwidth usage to estimate capacity (not used yet).
36668       - ClientOnly option for nodes that never want to become servers.
36669     - Directory caching.
36670       - "AuthoritativeDir 1" option for the official dirservers.
36671       - Now other nodes (clients and servers) will cache the latest
36672         directory they've pulled down.
36673       - They can enable their DirPort to serve it to others.
36674       - Clients will pull down a directory from any node with an open
36675         DirPort, and check the signature/timestamp correctly.
36676       - Authoritative dirservers now fetch directories from other
36677         authdirservers, to stay better synced.
36678       - Running-routers list tells who's down also, along with noting
36679         if they're verified (listed by nickname) or unverified (listed
36680         by hash-of-key).
36681       - Allow dirservers to serve running-router list separately.
36682         This isn't used yet.
36683     - ORs connect-on-demand to other ORs
36684       - If you get an extend cell to an OR you're not connected to,
36685         connect, handshake, and forward the create cell.
36686       - The authoritative dirservers stay connected to everybody,
36687         and everybody stays connected to 0.0.7 servers, but otherwise
36688         clients/servers expire unused connections after 5 minutes.
36689     - When servers get a sigint, they delay 30 seconds (refusing new
36690       connections) then exit. A second sigint causes immediate exit.
36691     - File and name management:
36692       - Look for .torrc if no CONFDIR "torrc" is found.
36693       - If no datadir is defined, then choose, make, and secure ~/.tor
36694         as datadir.
36695       - If torrc not found, exitpolicy reject *:*.
36696       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
36697       - If no nickname is defined, derive default from hostname.
36698       - Rename secret key files, e.g. identity.key -> secret_id_key,
36699         to discourage people from mailing their identity key to tor-ops.
36700     - Refuse to build a circuit before the directory has arrived --
36701       it won't work anyway, since you won't know the right onion keys
36702       to use.
36703     - Try other dirservers immediately if the one you try is down. This
36704       should tolerate down dirservers better now.
36705     - Parse tor version numbers so we can do an is-newer-than check
36706       rather than an is-in-the-list check.
36707     - New socks command 'resolve', to let us shim gethostbyname()
36708       locally.
36709       - A 'tor_resolve' script to access the socks resolve functionality.
36710       - A new socks-extensions.txt doc file to describe our
36711         interpretation and extensions to the socks protocols.
36712     - Add a ContactInfo option, which gets published in descriptor.
36713     - Publish OR uptime in descriptor (and thus in directory) too.
36714     - Write tor version at the top of each log file
36715     - New docs in the tarball:
36716       - tor-doc.html.
36717       - Document that you should proxy your SSL traffic too.
36720 Changes in version 0.0.7.2 - 2004-07-07
36721   o A better fix for the 0.0.0.0 problem, that will hopefully
36722     eliminate the remaining related assertion failures.
36725 Changes in version 0.0.7.1 - 2004-07-04
36726   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
36727     since internally we use 0.0.0.0 to signify "not yet resolved".
36730 Changes in version 0.0.7 - 2004-06-07
36731   o Updated the man page to reflect the new features.
36734 Changes in version 0.0.7rc2 - 2004-06-06
36735   o Changes from 0.0.7rc1:
36736     - Make it build on Win32 again.
36737   o Changes from 0.0.6.2:
36738     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
36739       settings too.
36742 Changes in version 0.0.7rc1 - 2004-06-02
36743   o Bugfixes:
36744     - On sighup, we were adding another log without removing the first
36745       one. So log messages would get duplicated n times for n sighups.
36746     - Several cases of using a connection after we'd freed it. The
36747       problem was that connections that are pending resolve are in both
36748       the pending_resolve tree, and also the circuit's resolving_streams
36749       list. When you want to remove one, you must remove it from both.
36750     - Fix a double-mark-for-close where an end cell arrived for a
36751       resolving stream, and then the resolve failed.
36752     - Check directory signatures based on name of signer, not on whom
36753       we got the directory from. This will let us cache directories more
36754       easily.
36755   o Features:
36756     - Crank up some of our constants to handle more users.
36759 Changes in version 0.0.7pre1 - 2004-06-02
36760   o Fixes for crashes and other obnoxious bugs:
36761     - Fix an epipe bug: sometimes when directory connections failed
36762       to connect, we would give them a chance to flush before closing
36763       them.
36764     - When we detached from a circuit because of resolvefailed, we
36765       would immediately try the same circuit twice more, and then
36766       give up on the resolve thinking we'd tried three different
36767       exit nodes.
36768     - Limit the number of intro circuits we'll attempt to build for a
36769       hidden service per 15-minute period.
36770     - Check recommended-software string *early*, before actually parsing
36771       the directory. Thus we can detect an obsolete version and exit,
36772       even if the new directory format doesn't parse.
36773   o Fixes for security bugs:
36774     - Remember which nodes are dirservers when you startup, and if a
36775       random OR enables his dirport, don't automatically assume he's
36776       a trusted dirserver.
36777   o Other bugfixes:
36778     - Directory connections were asking the wrong poll socket to
36779       start writing, and not asking themselves to start writing.
36780     - When we detached from a circuit because we sent a begin but
36781       didn't get a connected, we would use it again the first time;
36782       but after that we would correctly switch to a different one.
36783     - Stop warning when the first onion decrypt attempt fails; they
36784       will sometimes legitimately fail now that we rotate keys.
36785     - Override unaligned-access-ok check when $host_cpu is ia64 or
36786       arm. Apparently they allow it but the kernel whines.
36787     - Dirservers try to reconnect periodically too, in case connections
36788       have failed.
36789     - Fix some memory leaks in directory servers.
36790     - Allow backslash in Win32 filenames.
36791     - Made Tor build complain-free on FreeBSD, hopefully without
36792       breaking other BSD builds. We'll see.
36793   o Features:
36794     - Doxygen markup on all functions and global variables.
36795     - Make directory functions update routerlist, not replace it. So
36796       now directory disagreements are not so critical a problem.
36797     - Remove the upper limit on number of descriptors in a dirserver's
36798       directory (not that we were anywhere close).
36799     - Allow multiple logfiles at different severity ranges.
36800     - Allow *BindAddress to specify ":port" rather than setting *Port
36801       separately. Allow multiple instances of each BindAddress config
36802       option, so you can bind to multiple interfaces if you want.
36803     - Allow multiple exit policy lines, which are processed in order.
36804       Now we don't need that huge line with all the commas in it.
36805     - Enable accept/reject policies on SOCKS connections, so you can bind
36806       to 0.0.0.0 but still control who can use your OP.
36809 Changes in version 0.0.6.2 - 2004-05-16
36810   o Our integrity-checking digest was checking only the most recent cell,
36811     not the previous cells like we'd thought.
36812     Thanks to Stefan Mark for finding the flaw!
36815 Changes in version 0.0.6.1 - 2004-05-06
36816   o Fix two bugs in our AES counter-mode implementation (this affected
36817     onion-level stream encryption, but not TLS-level). It turns
36818     out we were doing something much more akin to a 16-character
36819     polyalphabetic cipher. Oops.
36820     Thanks to Stefan Mark for finding the flaw!
36821   o Retire moria3 as a directory server, and add tor26 as a directory
36822     server.
36825 Changes in version 0.0.6 - 2004-05-02
36826   [version bump only]
36829 Changes in version 0.0.6rc4 - 2004-05-01
36830   o Update the built-in dirservers list to use the new directory format
36831   o Fix a rare seg fault: if a node offering a hidden service attempts
36832     to build a circuit to Alice's rendezvous point and fails before it
36833     reaches the last hop, it retries with a different circuit, but
36834     then dies.
36835   o Handle windows socket errors correctly.
36838 Changes in version 0.0.6rc3 - 2004-04-28
36839   o Don't expire non-general excess circuits (if we had enough
36840     circuits open, we were expiring rendezvous circuits -- even
36841     when they had a stream attached. oops.)
36842   o Fetch randomness from /dev/urandom better (not via fopen/fread)
36843   o Better debugging for tls errors
36844   o Some versions of openssl have an SSL_pending function that erroneously
36845     returns bytes when there is a non-application record pending.
36846   o Set Content-Type on the directory and hidserv descriptor.
36847   o Remove IVs from cipher code, since AES-ctr has none.
36848   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
36849     o We were using an array of length zero in a few places.
36850     o win32's gethostbyname can't resolve an IP to an IP.
36851     o win32's close can't close a socket.
36854 Changes in version 0.0.6rc2 - 2004-04-26
36855   o Fix a bug where we were closing tls connections intermittently.
36856     It turns out openssl keeps its errors around -- so if an error
36857     happens, and you don't ask about it, and then another openssl
36858     operation happens and succeeds, and you ask if there was an error,
36859     it tells you about the first error. Fun fun.
36860   o Fix a bug that's been lurking since 27 may 03 (!)
36861     When passing back a destroy cell, we would use the wrong circ id.
36862     'Mostly harmless', but still worth fixing.
36863   o Since we don't support truncateds much, don't bother sending them;
36864     just close the circ.
36865   o check for <machine/limits.h> so we build on NetBSD again (I hope).
36866   o don't crash if a conn that sent a begin has suddenly lost its circuit
36867     (this was quite rare).
36870 Changes in version 0.0.6rc1 - 2004-04-25
36871   o We now rotate link (tls context) keys and onion keys.
36872   o CREATE cells now include oaep padding, so you can tell
36873     if you decrypted them correctly.
36874   o Add bandwidthburst to server descriptor.
36875   o Directories now say which dirserver signed them.
36876   o Use a tor_assert macro that logs failed assertions too.
36879 Changes in version 0.0.6pre5 - 2004-04-18
36880   o changes from 0.0.6pre4:
36881     - make tor build on broken freebsd 5.2 installs
36882     - fix a failed assert when you try an intro point, get a nack, and try
36883       a second one and it works.
36884     - when alice uses a port that the hidden service doesn't accept,
36885       it now sends back an end cell (denied by exit policy). otherwise
36886       alice would just have to wait to time out.
36887     - fix another rare bug: when we had tried all the intro
36888       points for a hidden service, we fetched the descriptor
36889       again, but we left our introcirc thinking it had already
36890       sent an intro, so it kept waiting for a response...
36891     - bugfix: when you sleep your hidden-service laptop, as soon
36892       as it wakes up it tries to upload a service descriptor, but
36893       socketpair fails for some reason (localhost not up yet?).
36894       now we simply give up on that upload, and we'll try again later.
36895       i'd still like to find the bug though.
36896     - if an intro circ waiting for an ack dies before getting one, then
36897       count it as a nack
36898     - we were reusing stale service descriptors and refetching usable
36899       ones. oops.
36902 Changes in version 0.0.6pre4 - 2004-04-14
36903   o changes from 0.0.6pre3:
36904     - when bob fails to connect to the rendezvous point, and his
36905       circ didn't fail because of the rendezvous point itself, then
36906       he retries a couple of times
36907     - we expire introduction and rendezvous circs more thoroughly
36908       (sometimes they were hanging around forever)
36909     - we expire unattached rendezvous streams that have been around
36910       too long (they were sticking around forever).
36911     - fix a measly fencepost error that was crashing everybody with
36912       a strict glibc.
36915 Changes in version 0.0.6pre3 - 2004-04-14
36916   o changes from 0.0.6pre2:
36917     - make hup work again
36918     - fix some memory leaks for dirservers
36919     - allow more skew in rendezvous descriptor timestamps, to help
36920       handle people like blanu who don't know what time it is
36921     - normal circs are 3 hops, but some rend/intro circs are 4, if
36922       the initiator doesn't get to choose the last hop
36923     - send acks for introductions, so alice can know whether to try
36924       again
36925     - bob publishes intro points more correctly
36926   o changes from 0.0.5:
36927     - fix an assert trigger that's been plaguing us since the days
36928       of 0.0.2prexx (thanks weasel!)
36929     - retry stream correctly when we fail to connect because of
36930       exit-policy-reject (should try another) or can't-resolve-address
36931       (also should try another, because dns on random internet servers
36932       is flaky).
36933     - when we hup a dirserver and we've *removed* a server from the
36934       approved-routers list, now we remove that server from the
36935       in-memory directories too
36938 Changes in version 0.0.6pre2 - 2004-04-08
36939   o We fixed our base32 implementation. Now it works on all architectures.
36942 Changes in version 0.0.6pre1 - 2004-04-08
36943   o Features:
36944     - Hidden services and rendezvous points are implemented. Go to
36945       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
36946       hidden services. (This only works via a socks4a proxy such as
36947       Privoxy, and currently it's quite slow.)
36950 Changes in version 0.0.5 - 2004-03-30
36951   [version bump only]
36954 Changes in version 0.0.5rc3 - 2004-03-29
36955   o Install torrc as torrc.sample -- we no longer clobber your
36956     torrc. (Woo!)
36957   o Re-enable recommendedversion checking (we broke it in rc2, oops)
36958   o Add in a 'notice' log level for things the operator should hear
36959     but that aren't warnings
36962 Changes in version 0.0.5rc2 - 2004-03-29
36963   o Hold socks connection open until reply is flushed (if possible)
36964   o Make exit nodes resolve IPs to IPs immediately, rather than asking
36965     the dns farm to do it.
36966   o Fix c99 aliasing warnings in rephist.c
36967   o Don't include server descriptors that are older than 24 hours in the
36968     directory.
36969   o Give socks 'reject' replies their whole 15s to attempt to flush,
36970     rather than seeing the 60s timeout and assuming the flush had failed.
36971   o Clean automake droppings from the cvs repository
36974 Changes in version 0.0.5rc1 - 2004-03-28
36975   o Fix mangled-state bug in directory fetching (was causing sigpipes).
36976   o Only build circuits after we've fetched the directory: clients were
36977     using only the directory servers before they'd fetched a directory.
36978     This also means longer startup time; so it goes.
36979   o Fix an assert trigger where an OP would fail to handshake, and we'd
36980     expect it to have a nickname.
36981   o Work around a tsocks bug: do a socks reject when AP connection dies
36982     early, else tsocks goes into an infinite loop.
36985 Changes in version 0.0.4 - 2004-03-26
36986   o When connecting to a dirserver or OR and the network is down,
36987     we would crash.
36990 Changes in version 0.0.3 - 2004-03-26
36991   o Warn and fail if server chose a nickname with illegal characters
36992   o Port to Solaris and Sparc:
36993     - include missing header fcntl.h
36994     - have autoconf find -lsocket -lnsl automatically
36995     - deal with hardware word alignment
36996     - make uname() work (solaris has a different return convention)
36997     - switch from using signal() to sigaction()
36998   o Preliminary work on reputation system:
36999     - Keep statistics on success/fail of connect attempts; they're published
37000       by kill -USR1 currently.
37001     - Add a RunTesting option to try to learn link state by creating test
37002       circuits, even when SocksPort is off.
37003     - Remove unused open circuits when there are too many.
37006 Changes in version 0.0.2 - 2004-03-19
37007     - Include strlcpy and strlcat for safer string ops
37008     - define INADDR_NONE so we compile (but still not run) on solaris
37011 Changes in version 0.0.2pre27 - 2004-03-14
37012   o Bugfixes:
37013     - Allow internal tor networks (we were rejecting internal IPs,
37014       now we allow them if they're set explicitly).
37015     - And fix a few endian issues.
37018 Changes in version 0.0.2pre26 - 2004-03-14
37019   o New features:
37020     - If a stream times out after 15s without a connected cell, don't
37021       try that circuit again: try a new one.
37022     - Retry streams at most 4 times. Then give up.
37023     - When a dirserver gets a descriptor from an unknown router, it
37024       logs its fingerprint (so the dirserver operator can choose to
37025       accept it even without mail from the server operator).
37026     - Inform unapproved servers when we reject their descriptors.
37027     - Make tor build on Windows again. It works as a client, who knows
37028       about as a server.
37029     - Clearer instructions in the torrc for how to set up a server.
37030     - Be more efficient about reading fd's when our global token bucket
37031       (used for rate limiting) becomes empty.
37032   o Bugfixes:
37033     - Stop asserting that computers always go forward in time. It's
37034       simply not true.
37035     - When we sent a cell (e.g. destroy) and then marked an OR connection
37036       expired, we might close it before finishing a flush if the other
37037       side isn't reading right then.
37038     - Don't allow dirservers to start if they haven't defined
37039       RecommendedVersions
37040     - We were caching transient dns failures. Oops.
37041     - Prevent servers from publishing an internal IP as their address.
37042     - Address a strcat vulnerability in circuit.c
37045 Changes in version 0.0.2pre25 - 2004-03-04
37046   o New features:
37047     - Put the OR's IP in its router descriptor, not its fqdn. That way
37048       we'll stop being stalled by gethostbyname for nodes with flaky dns,
37049       e.g. poblano.
37050   o Bugfixes:
37051     - If the user typed in an address that didn't resolve, the server
37052       crashed.
37055 Changes in version 0.0.2pre24 - 2004-03-03
37056   o Bugfixes:
37057     - Fix an assertion failure in dns.c, where we were trying to dequeue
37058       a pending dns resolve even if it wasn't pending
37059     - Fix a spurious socks5 warning about still trying to write after the
37060       connection is finished.
37061     - Hold certain marked_for_close connections open until they're finished
37062       flushing, rather than losing bytes by closing them too early.
37063     - Correctly report the reason for ending a stream
37064     - Remove some duplicate calls to connection_mark_for_close
37065     - Put switch_id and start_daemon earlier in the boot sequence, so it
37066       will actually try to chdir() to options.DataDirectory
37067     - Make 'make test' exit(1) if a test fails; fix some unit tests
37068     - Make tor fail when you use a config option it doesn't know about,
37069       rather than warn and continue.
37070     - Make --version work
37071     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
37074 Changes in version 0.0.2pre23 - 2004-02-29
37075   o New features:
37076     - Print a statement when the first circ is finished, so the user
37077       knows it's working.
37078     - If a relay cell is unrecognized at the end of the circuit,
37079       send back a destroy. (So attacks to mutate cells are more
37080       clearly thwarted.)
37081     - New config option 'excludenodes' to avoid certain nodes for circuits.
37082     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
37083       so you can collect coredumps there.
37084  o Bugfixes:
37085     - Fix a bug in tls flushing where sometimes data got wedged and
37086       didn't flush until more data got sent. Hopefully this bug was
37087       a big factor in the random delays we were seeing.
37088     - Make 'connected' cells include the resolved IP, so the client
37089       dns cache actually gets populated.
37090     - Disallow changing from ORPort=0 to ORPort>0 on hup.
37091     - When we time-out on a stream and detach from the circuit, send an
37092       end cell down it first.
37093     - Only warn about an unknown router (in exitnodes, entrynodes,
37094       excludenodes) after we've fetched a directory.
37097 Changes in version 0.0.2pre22 - 2004-02-26
37098   o New features:
37099     - Servers publish less revealing uname information in descriptors.
37100     - More memory tracking and assertions, to crash more usefully when
37101       errors happen.
37102     - If the default torrc isn't there, just use some default defaults.
37103       Plus provide an internal dirservers file if they don't have one.
37104     - When the user tries to use Tor as an http proxy, give them an http
37105       501 failure explaining that we're a socks proxy.
37106     - Dump a new router.desc on hup, to help confused people who change
37107       their exit policies and then wonder why router.desc doesn't reflect
37108       it.
37109     - Clean up the generic tor.sh init script that we ship with.
37110   o Bugfixes:
37111     - If the exit stream is pending on the resolve, and a destroy arrives,
37112       then the stream wasn't getting removed from the pending list. I
37113       think this was the one causing recent server crashes.
37114     - Use a more robust poll on OSX 10.3, since their poll is flaky.
37115     - When it couldn't resolve any dirservers, it was useless from then on.
37116       Now it reloads the RouterFile (or default dirservers) if it has no
37117       dirservers.
37118     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
37119       many users don't even *have* a /usr/local/sbin/.
37122 Changes in version 0.0.2pre21 - 2004-02-18
37123   o New features:
37124     - There's a ChangeLog file that actually reflects the changelog.
37125     - There's a 'torify' wrapper script, with an accompanying
37126       tor-tsocks.conf, that simplifies the process of using tsocks for
37127       tor. It even has a man page.
37128     - The tor binary gets installed to sbin rather than bin now.
37129     - Retry streams where the connected cell hasn't arrived in 15 seconds
37130     - Clean up exit policy handling -- get the default out of the torrc,
37131       so we can update it without forcing each server operator to fix
37132       his/her torrc.
37133     - Allow imaps and pop3s in default exit policy
37134   o Bugfixes:
37135     - Prevent picking middleman nodes as the last node in the circuit
37138 Changes in version 0.0.2pre20 - 2004-01-30
37139   o New features:
37140     - We now have a deb package, and it's in debian unstable. Go to
37141       it, apt-getters. :)
37142     - I've split the TotalBandwidth option into BandwidthRate (how many
37143       bytes per second you want to allow, long-term) and
37144       BandwidthBurst (how many bytes you will allow at once before the cap
37145       kicks in). This better token bucket approach lets you, say, set
37146       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
37147       performance while not exceeding your monthly bandwidth quota.
37148     - Push out a tls record's worth of data once you've got it, rather
37149       than waiting until you've read everything waiting to be read. This
37150       may improve performance by pipelining better. We'll see.
37151     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
37152       from failed circuits (if they haven't been connected yet) and attach
37153       to new ones.
37154     - Expire old streams that haven't managed to connect. Some day we'll
37155       have them reattach to new circuits instead.
37157   o Bugfixes:
37158     - Fix several memory leaks that were causing servers to become bloated
37159       after a while.
37160     - Fix a few very rare assert triggers. A few more remain.
37161     - Setuid to User _before_ complaining about running as root.
37164 Changes in version 0.0.2pre19 - 2004-01-07
37165   o Bugfixes:
37166     - Fix deadlock condition in dns farm. We were telling a child to die by
37167       closing the parent's file descriptor to him. But newer children were
37168       inheriting the open file descriptor from the parent, and since they
37169       weren't closing it, the socket never closed, so the child never read
37170       eof, so he never knew to exit. Similarly, dns workers were holding
37171       open other sockets, leading to all sorts of chaos.
37172     - New cleaner daemon() code for forking and backgrounding.
37173     - If you log to a file, it now prints an entry at the top of the
37174       logfile so you know it's working.
37175     - The onionskin challenge length was 30 bytes longer than necessary.
37176     - Started to patch up the spec so it's not quite so out of date.
37179 Changes in version 0.0.2pre18 - 2004-01-02
37180   o Bugfixes:
37181     - Fix endian issues with the 'integrity' field in the relay header.
37182     - Fix a potential bug where connections in state
37183       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
37186 Changes in version 0.0.2pre17 - 2003-12-30
37187   o Bugfixes:
37188     - Made --debuglogfile (or any second log file, actually) work.
37189     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
37190       adversary could force us into an infinite loop.
37192   o Features:
37193     - Each onionskin handshake now includes a hash of the computed key,
37194       to prove the server's identity and help perfect forward secrecy.
37195     - Changed cell size from 256 to 512 bytes (working toward compatibility
37196       with MorphMix).
37197     - Changed cell length to 2 bytes, and moved it to the relay header.
37198     - Implemented end-to-end integrity checking for the payloads of
37199       relay cells.
37200     - Separated streamid from 'recognized' (otherwise circuits will get
37201       messed up when we try to have streams exit from the middle). We
37202       use the integrity-checking to confirm that a cell is addressed to
37203       this hop.
37204     - Randomize the initial circid and streamid values, so an adversary who
37205       breaks into a node can't learn how many circuits or streams have
37206       been made so far.
37209 Changes in version 0.0.2pre16 - 2003-12-14
37210   o Bugfixes:
37211     - Fixed a bug that made HUP trigger an assert
37212     - Fixed a bug where a circuit that immediately failed wasn't being
37213       counted as a failed circuit in counting retries.
37215   o Features:
37216     - Now we close the circuit when we get a truncated cell: otherwise we're
37217       open to an anonymity attack where a bad node in the path truncates
37218       the circuit and then we open streams at him.
37219     - Add port ranges to exit policies
37220     - Add a conservative default exit policy
37221     - Warn if you're running tor as root
37222     - on HUP, retry OR connections and close/rebind listeners
37223     - options.EntryNodes: try these nodes first when picking the first node
37224     - options.ExitNodes: if your best choices happen to include any of
37225       your preferred exit nodes, you choose among just those preferred
37226       exit nodes.
37227     - options.ExcludedNodes: nodes that are never picked in path building
37230 Changes in version 0.0.2pre15 - 2003-12-03
37231   o Robustness and bugfixes:
37232     - Sometimes clients would cache incorrect DNS resolves, which would
37233       really screw things up.
37234     - An OP that goes offline would slowly leak all its sockets and stop
37235       working.
37236     - A wide variety of bugfixes in exit node selection, exit policy
37237       handling, and processing pending streams when a new circuit is
37238       established.
37239     - Pick nodes for a path only from those the directory says are up
37240     - Choose randomly from all running dirservers, not always the first one
37241     - Increase allowed http header size for directory fetch.
37242     - Stop writing to stderr (if we're daemonized it will be closed).
37243     - Enable -g always, so cores will be more useful to me.
37244     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
37246   o Documentation:
37247     - Wrote a man page. It lists commonly used options.
37249   o Configuration:
37250     - Change default loglevel to warn.
37251     - Make PidFile default to null rather than littering in your CWD.
37252     - OnionRouter config option is now obsolete. Instead it just checks
37253       ORPort>0.
37254     - Moved to a single unified torrc file for both clients and servers.
37257 Changes in version 0.0.2pre14 - 2003-11-29
37258   o Robustness and bugfixes:
37259     - Force the admin to make the DataDirectory himself
37260       - to get ownership/permissions right
37261       - so clients no longer make a DataDirectory and then never use it
37262     - fix bug where a client who was offline for 45 minutes would never
37263       pull down a directory again
37264     - fix (or at least hide really well) the dns assert bug that was
37265       causing server crashes
37266     - warnings and improved robustness wrt clockskew for certs
37267     - use the native daemon(3) to daemonize, when available
37268     - exit if bind() fails
37269     - exit if neither socksport nor orport is defined
37270     - include our own tor_timegm (Win32 doesn't have its own)
37271     - bugfix for win32 with lots of connections
37272     - fix minor bias in PRNG
37273     - make dirserver more robust to corrupt cached directory
37275   o Documentation:
37276     - Wrote the design document (woo)
37278   o Circuit building and exit policies:
37279     - Circuits no longer try to use nodes that the directory has told them
37280       are down.
37281     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
37282       bitcounts (18.0.0.0/8).
37283     - Make AP connections standby for a circuit if no suitable circuit
37284       exists, rather than failing
37285     - Circuits choose exit node based on addr/port, exit policies, and
37286       which AP connections are standing by
37287     - Bump min pathlen from 2 to 3
37288     - Relay end cells have a payload to describe why the stream ended.
37289     - If the stream failed because of exit policy, try again with a new
37290       circuit.
37291     - Clients have a dns cache to remember resolved addresses.
37292     - Notice more quickly when we have no working circuits
37294   o Configuration:
37295     - APPort is now called SocksPort
37296     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
37297       where to bind
37298     - RecommendedVersions is now a config variable rather than
37299       hardcoded (for dirservers)
37300     - Reloads config on HUP
37301     - Usage info on -h or --help
37302     - If you set User and Group config vars, it'll setu/gid to them.
37305 Changes in version 0.0.2pre13 - 2003-10-19
37306   o General stability:
37307     - SSL_write no longer fails when it returns WANTWRITE and the number
37308       of bytes in the buf has changed by the next SSL_write call.
37309     - Fix segfault fetching directory when network is down
37310     - Fix a variety of minor memory leaks
37311     - Dirservers reload the fingerprints file on HUP, so I don't have
37312       to take down the network when I approve a new router
37313     - Default server config file has explicit Address line to specify fqdn
37315   o Buffers:
37316     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
37317     - Make listener connections not ever alloc bufs
37319   o Autoconf improvements:
37320     - don't clobber an external CFLAGS in ./configure
37321     - Make install now works
37322     - create var/lib/tor on make install
37323     - autocreate a tor.sh initscript to help distribs
37324     - autocreate the torrc and sample-server-torrc with correct paths
37326   o Log files and Daemonizing now work:
37327     - If --DebugLogFile is specified, log to it at -l debug
37328     - If --LogFile is specified, use it instead of commandline
37329     - If --RunAsDaemon is set, tor forks and backgrounds on startup